configure 782 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714
  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. PKG_CONFIG
  610. ESD_LIBS
  611. ESD_CFLAGS
  612. ESD_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_esd
  758. with_esd_prefix
  759. with_esd_exec_prefix
  760. enable_esdtest
  761. enable_esd_shared
  762. enable_pulseaudio
  763. enable_pulseaudio_shared
  764. enable_arts
  765. enable_arts_shared
  766. enable_nas
  767. enable_nas_shared
  768. enable_sndio
  769. enable_sndio_shared
  770. enable_fusionsound
  771. enable_fusionsound_shared
  772. enable_diskaudio
  773. enable_dummyaudio
  774. enable_libsamplerate
  775. enable_libsamplerate_shared
  776. enable_video_wayland
  777. enable_video_wayland_qt_touch
  778. enable_wayland_shared
  779. enable_video_mir
  780. enable_mir_shared
  781. enable_video_x11
  782. with_x
  783. enable_x11_shared
  784. enable_video_x11_xcursor
  785. enable_video_x11_xdbe
  786. enable_video_x11_xinerama
  787. enable_video_x11_xinput
  788. enable_video_x11_xrandr
  789. enable_video_x11_scrnsaver
  790. enable_video_x11_xshape
  791. enable_video_x11_vm
  792. enable_video_vivante
  793. enable_video_cocoa
  794. enable_video_directfb
  795. enable_directfb_shared
  796. enable_video_dummy
  797. enable_video_opengl
  798. enable_video_opengles
  799. enable_video_opengles1
  800. enable_video_opengles2
  801. enable_libudev
  802. enable_dbus
  803. enable_ime
  804. enable_ibus
  805. enable_fcitx
  806. enable_input_tslib
  807. enable_pthreads
  808. enable_pthread_sem
  809. enable_directx
  810. enable_sdl_dlopen
  811. enable_clock_gettime
  812. enable_rpath
  813. enable_render_d3d
  814. '
  815. ac_precious_vars='build_alias
  816. host_alias
  817. target_alias
  818. CC
  819. CFLAGS
  820. LDFLAGS
  821. LIBS
  822. CPPFLAGS
  823. CPP
  824. CXX
  825. CXXFLAGS
  826. CCC
  827. CXXCPP
  828. XMKMF'
  829. # Initialize some variables set by options.
  830. ac_init_help=
  831. ac_init_version=false
  832. ac_unrecognized_opts=
  833. ac_unrecognized_sep=
  834. # The variables have the same names as the options, with
  835. # dashes changed to underlines.
  836. cache_file=/dev/null
  837. exec_prefix=NONE
  838. no_create=
  839. no_recursion=
  840. prefix=NONE
  841. program_prefix=NONE
  842. program_suffix=NONE
  843. program_transform_name=s,x,x,
  844. silent=
  845. site=
  846. srcdir=
  847. verbose=
  848. x_includes=NONE
  849. x_libraries=NONE
  850. # Installation directory options.
  851. # These are left unexpanded so users can "make install exec_prefix=/foo"
  852. # and all the variables that are supposed to be based on exec_prefix
  853. # by default will actually change.
  854. # Use braces instead of parens because sh, perl, etc. also accept them.
  855. # (The list follows the same order as the GNU Coding Standards.)
  856. bindir='${exec_prefix}/bin'
  857. sbindir='${exec_prefix}/sbin'
  858. libexecdir='${exec_prefix}/libexec'
  859. datarootdir='${prefix}/share'
  860. datadir='${datarootdir}'
  861. sysconfdir='${prefix}/etc'
  862. sharedstatedir='${prefix}/com'
  863. localstatedir='${prefix}/var'
  864. includedir='${prefix}/include'
  865. oldincludedir='/usr/include'
  866. docdir='${datarootdir}/doc/${PACKAGE}'
  867. infodir='${datarootdir}/info'
  868. htmldir='${docdir}'
  869. dvidir='${docdir}'
  870. pdfdir='${docdir}'
  871. psdir='${docdir}'
  872. libdir='${exec_prefix}/lib'
  873. localedir='${datarootdir}/locale'
  874. mandir='${datarootdir}/man'
  875. ac_prev=
  876. ac_dashdash=
  877. for ac_option
  878. do
  879. # If the previous option needs an argument, assign it.
  880. if test -n "$ac_prev"; then
  881. eval $ac_prev=\$ac_option
  882. ac_prev=
  883. continue
  884. fi
  885. case $ac_option in
  886. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  887. *=) ac_optarg= ;;
  888. *) ac_optarg=yes ;;
  889. esac
  890. # Accept the important Cygnus configure options, so we can diagnose typos.
  891. case $ac_dashdash$ac_option in
  892. --)
  893. ac_dashdash=yes ;;
  894. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  895. ac_prev=bindir ;;
  896. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  897. bindir=$ac_optarg ;;
  898. -build | --build | --buil | --bui | --bu)
  899. ac_prev=build_alias ;;
  900. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  901. build_alias=$ac_optarg ;;
  902. -cache-file | --cache-file | --cache-fil | --cache-fi \
  903. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  904. ac_prev=cache_file ;;
  905. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  906. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  907. cache_file=$ac_optarg ;;
  908. --config-cache | -C)
  909. cache_file=config.cache ;;
  910. -datadir | --datadir | --datadi | --datad)
  911. ac_prev=datadir ;;
  912. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  913. datadir=$ac_optarg ;;
  914. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  915. | --dataroo | --dataro | --datar)
  916. ac_prev=datarootdir ;;
  917. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  918. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  919. datarootdir=$ac_optarg ;;
  920. -disable-* | --disable-*)
  921. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  922. # Reject names that are not valid shell variable names.
  923. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  924. as_fn_error $? "invalid feature name: $ac_useropt"
  925. ac_useropt_orig=$ac_useropt
  926. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  927. case $ac_user_opts in
  928. *"
  929. "enable_$ac_useropt"
  930. "*) ;;
  931. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  932. ac_unrecognized_sep=', ';;
  933. esac
  934. eval enable_$ac_useropt=no ;;
  935. -docdir | --docdir | --docdi | --doc | --do)
  936. ac_prev=docdir ;;
  937. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  938. docdir=$ac_optarg ;;
  939. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  940. ac_prev=dvidir ;;
  941. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  942. dvidir=$ac_optarg ;;
  943. -enable-* | --enable-*)
  944. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  945. # Reject names that are not valid shell variable names.
  946. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  947. as_fn_error $? "invalid feature name: $ac_useropt"
  948. ac_useropt_orig=$ac_useropt
  949. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  950. case $ac_user_opts in
  951. *"
  952. "enable_$ac_useropt"
  953. "*) ;;
  954. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  955. ac_unrecognized_sep=', ';;
  956. esac
  957. eval enable_$ac_useropt=\$ac_optarg ;;
  958. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  959. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  960. | --exec | --exe | --ex)
  961. ac_prev=exec_prefix ;;
  962. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  963. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  964. | --exec=* | --exe=* | --ex=*)
  965. exec_prefix=$ac_optarg ;;
  966. -gas | --gas | --ga | --g)
  967. # Obsolete; use --with-gas.
  968. with_gas=yes ;;
  969. -help | --help | --hel | --he | -h)
  970. ac_init_help=long ;;
  971. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  972. ac_init_help=recursive ;;
  973. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  974. ac_init_help=short ;;
  975. -host | --host | --hos | --ho)
  976. ac_prev=host_alias ;;
  977. -host=* | --host=* | --hos=* | --ho=*)
  978. host_alias=$ac_optarg ;;
  979. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  980. ac_prev=htmldir ;;
  981. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  982. | --ht=*)
  983. htmldir=$ac_optarg ;;
  984. -includedir | --includedir | --includedi | --included | --include \
  985. | --includ | --inclu | --incl | --inc)
  986. ac_prev=includedir ;;
  987. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  988. | --includ=* | --inclu=* | --incl=* | --inc=*)
  989. includedir=$ac_optarg ;;
  990. -infodir | --infodir | --infodi | --infod | --info | --inf)
  991. ac_prev=infodir ;;
  992. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  993. infodir=$ac_optarg ;;
  994. -libdir | --libdir | --libdi | --libd)
  995. ac_prev=libdir ;;
  996. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  997. libdir=$ac_optarg ;;
  998. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  999. | --libexe | --libex | --libe)
  1000. ac_prev=libexecdir ;;
  1001. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1002. | --libexe=* | --libex=* | --libe=*)
  1003. libexecdir=$ac_optarg ;;
  1004. -localedir | --localedir | --localedi | --localed | --locale)
  1005. ac_prev=localedir ;;
  1006. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1007. localedir=$ac_optarg ;;
  1008. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1009. | --localstate | --localstat | --localsta | --localst | --locals)
  1010. ac_prev=localstatedir ;;
  1011. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1012. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1013. localstatedir=$ac_optarg ;;
  1014. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1015. ac_prev=mandir ;;
  1016. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1017. mandir=$ac_optarg ;;
  1018. -nfp | --nfp | --nf)
  1019. # Obsolete; use --without-fp.
  1020. with_fp=no ;;
  1021. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1022. | --no-cr | --no-c | -n)
  1023. no_create=yes ;;
  1024. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1025. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1026. no_recursion=yes ;;
  1027. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1028. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1029. | --oldin | --oldi | --old | --ol | --o)
  1030. ac_prev=oldincludedir ;;
  1031. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1032. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1033. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1034. oldincludedir=$ac_optarg ;;
  1035. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1036. ac_prev=prefix ;;
  1037. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1038. prefix=$ac_optarg ;;
  1039. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1040. | --program-pre | --program-pr | --program-p)
  1041. ac_prev=program_prefix ;;
  1042. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1043. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1044. program_prefix=$ac_optarg ;;
  1045. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1046. | --program-suf | --program-su | --program-s)
  1047. ac_prev=program_suffix ;;
  1048. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1049. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1050. program_suffix=$ac_optarg ;;
  1051. -program-transform-name | --program-transform-name \
  1052. | --program-transform-nam | --program-transform-na \
  1053. | --program-transform-n | --program-transform- \
  1054. | --program-transform | --program-transfor \
  1055. | --program-transfo | --program-transf \
  1056. | --program-trans | --program-tran \
  1057. | --progr-tra | --program-tr | --program-t)
  1058. ac_prev=program_transform_name ;;
  1059. -program-transform-name=* | --program-transform-name=* \
  1060. | --program-transform-nam=* | --program-transform-na=* \
  1061. | --program-transform-n=* | --program-transform-=* \
  1062. | --program-transform=* | --program-transfor=* \
  1063. | --program-transfo=* | --program-transf=* \
  1064. | --program-trans=* | --program-tran=* \
  1065. | --progr-tra=* | --program-tr=* | --program-t=*)
  1066. program_transform_name=$ac_optarg ;;
  1067. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1068. ac_prev=pdfdir ;;
  1069. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1070. pdfdir=$ac_optarg ;;
  1071. -psdir | --psdir | --psdi | --psd | --ps)
  1072. ac_prev=psdir ;;
  1073. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1074. psdir=$ac_optarg ;;
  1075. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1076. | -silent | --silent | --silen | --sile | --sil)
  1077. silent=yes ;;
  1078. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1079. ac_prev=sbindir ;;
  1080. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1081. | --sbi=* | --sb=*)
  1082. sbindir=$ac_optarg ;;
  1083. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1084. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1085. | --sharedst | --shareds | --shared | --share | --shar \
  1086. | --sha | --sh)
  1087. ac_prev=sharedstatedir ;;
  1088. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1089. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1090. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1091. | --sha=* | --sh=*)
  1092. sharedstatedir=$ac_optarg ;;
  1093. -site | --site | --sit)
  1094. ac_prev=site ;;
  1095. -site=* | --site=* | --sit=*)
  1096. site=$ac_optarg ;;
  1097. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1098. ac_prev=srcdir ;;
  1099. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1100. srcdir=$ac_optarg ;;
  1101. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1102. | --syscon | --sysco | --sysc | --sys | --sy)
  1103. ac_prev=sysconfdir ;;
  1104. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1105. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1106. sysconfdir=$ac_optarg ;;
  1107. -target | --target | --targe | --targ | --tar | --ta | --t)
  1108. ac_prev=target_alias ;;
  1109. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1110. target_alias=$ac_optarg ;;
  1111. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1112. verbose=yes ;;
  1113. -version | --version | --versio | --versi | --vers | -V)
  1114. ac_init_version=: ;;
  1115. -with-* | --with-*)
  1116. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1117. # Reject names that are not valid shell variable names.
  1118. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1119. as_fn_error $? "invalid package name: $ac_useropt"
  1120. ac_useropt_orig=$ac_useropt
  1121. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1122. case $ac_user_opts in
  1123. *"
  1124. "with_$ac_useropt"
  1125. "*) ;;
  1126. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1127. ac_unrecognized_sep=', ';;
  1128. esac
  1129. eval with_$ac_useropt=\$ac_optarg ;;
  1130. -without-* | --without-*)
  1131. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1132. # Reject names that are not valid shell variable names.
  1133. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1134. as_fn_error $? "invalid package name: $ac_useropt"
  1135. ac_useropt_orig=$ac_useropt
  1136. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1137. case $ac_user_opts in
  1138. *"
  1139. "with_$ac_useropt"
  1140. "*) ;;
  1141. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1142. ac_unrecognized_sep=', ';;
  1143. esac
  1144. eval with_$ac_useropt=no ;;
  1145. --x)
  1146. # Obsolete; use --with-x.
  1147. with_x=yes ;;
  1148. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1149. | --x-incl | --x-inc | --x-in | --x-i)
  1150. ac_prev=x_includes ;;
  1151. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1152. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1153. x_includes=$ac_optarg ;;
  1154. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1155. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1156. ac_prev=x_libraries ;;
  1157. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1158. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1159. x_libraries=$ac_optarg ;;
  1160. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1161. Try \`$0 --help' for more information"
  1162. ;;
  1163. *=*)
  1164. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1165. # Reject names that are not valid shell variable names.
  1166. case $ac_envvar in #(
  1167. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1168. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1169. esac
  1170. eval $ac_envvar=\$ac_optarg
  1171. export $ac_envvar ;;
  1172. *)
  1173. # FIXME: should be removed in autoconf 3.0.
  1174. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1175. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1176. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1177. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1178. ;;
  1179. esac
  1180. done
  1181. if test -n "$ac_prev"; then
  1182. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1183. as_fn_error $? "missing argument to $ac_option"
  1184. fi
  1185. if test -n "$ac_unrecognized_opts"; then
  1186. case $enable_option_checking in
  1187. no) ;;
  1188. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1189. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1190. esac
  1191. fi
  1192. # Check all directory arguments for consistency.
  1193. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1194. datadir sysconfdir sharedstatedir localstatedir includedir \
  1195. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1196. libdir localedir mandir
  1197. do
  1198. eval ac_val=\$$ac_var
  1199. # Remove trailing slashes.
  1200. case $ac_val in
  1201. */ )
  1202. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1203. eval $ac_var=\$ac_val;;
  1204. esac
  1205. # Be sure to have absolute directory names.
  1206. case $ac_val in
  1207. [\\/$]* | ?:[\\/]* ) continue;;
  1208. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1209. esac
  1210. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1211. done
  1212. # There might be people who depend on the old broken behavior: `$host'
  1213. # used to hold the argument of --host etc.
  1214. # FIXME: To remove some day.
  1215. build=$build_alias
  1216. host=$host_alias
  1217. target=$target_alias
  1218. # FIXME: To remove some day.
  1219. if test "x$host_alias" != x; then
  1220. if test "x$build_alias" = x; then
  1221. cross_compiling=maybe
  1222. elif test "x$build_alias" != "x$host_alias"; then
  1223. cross_compiling=yes
  1224. fi
  1225. fi
  1226. ac_tool_prefix=
  1227. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1228. test "$silent" = yes && exec 6>/dev/null
  1229. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1230. ac_ls_di=`ls -di .` &&
  1231. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1232. as_fn_error $? "working directory cannot be determined"
  1233. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1234. as_fn_error $? "pwd does not report name of working directory"
  1235. # Find the source files, if location was not specified.
  1236. if test -z "$srcdir"; then
  1237. ac_srcdir_defaulted=yes
  1238. # Try the directory containing this script, then the parent directory.
  1239. ac_confdir=`$as_dirname -- "$as_myself" ||
  1240. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1241. X"$as_myself" : 'X\(//\)[^/]' \| \
  1242. X"$as_myself" : 'X\(//\)$' \| \
  1243. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1244. $as_echo X"$as_myself" |
  1245. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1246. s//\1/
  1247. q
  1248. }
  1249. /^X\(\/\/\)[^/].*/{
  1250. s//\1/
  1251. q
  1252. }
  1253. /^X\(\/\/\)$/{
  1254. s//\1/
  1255. q
  1256. }
  1257. /^X\(\/\).*/{
  1258. s//\1/
  1259. q
  1260. }
  1261. s/.*/./; q'`
  1262. srcdir=$ac_confdir
  1263. if test ! -r "$srcdir/$ac_unique_file"; then
  1264. srcdir=..
  1265. fi
  1266. else
  1267. ac_srcdir_defaulted=no
  1268. fi
  1269. if test ! -r "$srcdir/$ac_unique_file"; then
  1270. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1271. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1272. fi
  1273. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1274. ac_abs_confdir=`(
  1275. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1276. pwd)`
  1277. # When building in place, set srcdir=.
  1278. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1279. srcdir=.
  1280. fi
  1281. # Remove unnecessary trailing slashes from srcdir.
  1282. # Double slashes in file names in object file debugging info
  1283. # mess up M-x gdb in Emacs.
  1284. case $srcdir in
  1285. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1286. esac
  1287. for ac_var in $ac_precious_vars; do
  1288. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1289. eval ac_env_${ac_var}_value=\$${ac_var}
  1290. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1291. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1292. done
  1293. #
  1294. # Report the --help message.
  1295. #
  1296. if test "$ac_init_help" = "long"; then
  1297. # Omit some internal or obsolete options to make the list less imposing.
  1298. # This message is too long to be a string in the A/UX 3.1 sh.
  1299. cat <<_ACEOF
  1300. \`configure' configures this package to adapt to many kinds of systems.
  1301. Usage: $0 [OPTION]... [VAR=VALUE]...
  1302. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1303. VAR=VALUE. See below for descriptions of some of the useful variables.
  1304. Defaults for the options are specified in brackets.
  1305. Configuration:
  1306. -h, --help display this help and exit
  1307. --help=short display options specific to this package
  1308. --help=recursive display the short help of all the included packages
  1309. -V, --version display version information and exit
  1310. -q, --quiet, --silent do not print \`checking ...' messages
  1311. --cache-file=FILE cache test results in FILE [disabled]
  1312. -C, --config-cache alias for \`--cache-file=config.cache'
  1313. -n, --no-create do not create output files
  1314. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1315. Installation directories:
  1316. --prefix=PREFIX install architecture-independent files in PREFIX
  1317. [$ac_default_prefix]
  1318. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1319. [PREFIX]
  1320. By default, \`make install' will install all the files in
  1321. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1322. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1323. for instance \`--prefix=\$HOME'.
  1324. For better control, use the options below.
  1325. Fine tuning of the installation directories:
  1326. --bindir=DIR user executables [EPREFIX/bin]
  1327. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1328. --libexecdir=DIR program executables [EPREFIX/libexec]
  1329. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1330. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1331. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1332. --libdir=DIR object code libraries [EPREFIX/lib]
  1333. --includedir=DIR C header files [PREFIX/include]
  1334. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1335. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1336. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1337. --infodir=DIR info documentation [DATAROOTDIR/info]
  1338. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1339. --mandir=DIR man documentation [DATAROOTDIR/man]
  1340. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1341. --htmldir=DIR html documentation [DOCDIR]
  1342. --dvidir=DIR dvi documentation [DOCDIR]
  1343. --pdfdir=DIR pdf documentation [DOCDIR]
  1344. --psdir=DIR ps documentation [DOCDIR]
  1345. _ACEOF
  1346. cat <<\_ACEOF
  1347. X features:
  1348. --x-includes=DIR X include files are in DIR
  1349. --x-libraries=DIR X library files are in DIR
  1350. System types:
  1351. --build=BUILD configure for building on BUILD [guessed]
  1352. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1353. _ACEOF
  1354. fi
  1355. if test -n "$ac_init_help"; then
  1356. cat <<\_ACEOF
  1357. Optional Features:
  1358. --disable-option-checking ignore unrecognized --enable/--with options
  1359. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1360. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1361. --enable-shared[=PKGS] build shared libraries [default=yes]
  1362. --enable-static[=PKGS] build static libraries [default=yes]
  1363. --enable-fast-install[=PKGS]
  1364. optimize for fast installation [default=yes]
  1365. --disable-libtool-lock avoid locking (might break parallel builds)
  1366. --enable-assertions Enable internal sanity checks
  1367. (auto/disabled/release/enabled/paranoid)
  1368. [[default=auto]]
  1369. --enable-dependency-tracking
  1370. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1371. --enable-libc Use the system C library [[default=yes]]
  1372. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1373. --enable-atomic Enable the atomic operations subsystem
  1374. [[default=yes]]
  1375. --enable-audio Enable the audio subsystem [[default=yes]]
  1376. --enable-video Enable the video subsystem [[default=yes]]
  1377. --enable-render Enable the render subsystem [[default=yes]]
  1378. --enable-events Enable the events subsystem [[default=yes]]
  1379. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1380. --enable-haptic Enable the haptic (force feedback) subsystem
  1381. [[default=yes]]
  1382. --enable-power Enable the power subsystem [[default=yes]]
  1383. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1384. --enable-threads Enable the threading subsystem [[default=yes]]
  1385. --enable-timers Enable the timer subsystem [[default=yes]]
  1386. --enable-file Enable the file subsystem [[default=yes]]
  1387. --enable-loadso Enable the shared object loading subsystem
  1388. [[default=yes]]
  1389. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1390. --enable-assembly Enable assembly routines [[default=yes]]
  1391. --enable-ssemath Allow GCC to use SSE floating point math
  1392. [[default=maybe]]
  1393. --enable-mmx use MMX assembly routines [[default=yes]]
  1394. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1395. --enable-sse use SSE assembly routines [[default=yes]]
  1396. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1397. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1398. --enable-altivec use Altivec assembly routines [[default=yes]]
  1399. --enable-oss support the OSS audio API [[default=maybe]]
  1400. --enable-alsa support the ALSA audio API [[default=yes]]
  1401. --disable-alsatest Do not try to compile and run a test Alsa program
  1402. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1403. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1404. --disable-esdtest Do not try to compile and run a test ESD program
  1405. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1406. --enable-pulseaudio use PulseAudio [[default=yes]]
  1407. --enable-pulseaudio-shared
  1408. dynamically load PulseAudio support [[default=yes]]
  1409. --enable-arts support the Analog Real Time Synthesizer
  1410. [[default=yes]]
  1411. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1412. --enable-nas support the NAS audio API [[default=yes]]
  1413. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1414. --enable-sndio support the sndio audio API [[default=yes]]
  1415. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1416. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1417. --enable-fusionsound-shared
  1418. dynamically load fusionsound audio support
  1419. [[default=yes]]
  1420. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1421. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1422. --enable-libsamplerate use libsamplerate for audio rate conversion
  1423. [[default=yes]]
  1424. --enable-libsamplerate-shared
  1425. dynamically load libsamplerate [[default=yes]]
  1426. --enable-video-wayland use Wayland video driver [[default=yes]]
  1427. --enable-video-wayland-qt-touch
  1428. QtWayland server support for Wayland video driver
  1429. [[default=yes]]
  1430. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1431. --enable-video-mir use Mir video driver [[default=yes]]
  1432. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1433. --enable-video-x11 use X11 video driver [[default=yes]]
  1434. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1435. --enable-video-x11-xcursor
  1436. enable X11 Xcursor support [[default=yes]]
  1437. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1438. --enable-video-x11-xinerama
  1439. enable X11 Xinerama support [[default=yes]]
  1440. --enable-video-x11-xinput
  1441. enable X11 XInput extension for manymouse, tablets,
  1442. etc [[default=yes]]
  1443. --enable-video-x11-xrandr
  1444. enable X11 Xrandr extension for fullscreen
  1445. [[default=yes]]
  1446. --enable-video-x11-scrnsaver
  1447. enable X11 screensaver extension [[default=yes]]
  1448. --enable-video-x11-xshape
  1449. enable X11 XShape support [[default=yes]]
  1450. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1451. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1452. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1453. --enable-video-directfb use DirectFB video driver [[default=no]]
  1454. --enable-directfb-shared
  1455. dynamically load directfb support [[default=yes]]
  1456. --enable-video-dummy use dummy video driver [[default=yes]]
  1457. --enable-video-opengl include OpenGL support [[default=yes]]
  1458. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1459. --enable-video-opengles1
  1460. include OpenGL ES 1.1 support [[default=yes]]
  1461. --enable-video-opengles2
  1462. include OpenGL ES 2.0 support [[default=yes]]
  1463. --enable-libudev enable libudev support [[default=yes]]
  1464. --enable-dbus enable D-Bus support [[default=yes]]
  1465. --enable-ime enable IME support [[default=yes]]
  1466. --enable-ibus enable IBus support [[default=yes]]
  1467. --enable-fcitx enable fcitx support [[default=yes]]
  1468. --enable-input-tslib use the Touchscreen library for input
  1469. [[default=yes]]
  1470. --enable-pthreads use POSIX threads for multi-threading
  1471. [[default=yes]]
  1472. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1473. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1474. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1475. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1476. UNIX [[default=yes]]
  1477. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1478. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1479. Optional Packages:
  1480. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1481. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1482. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1483. both]
  1484. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1485. --with-sysroot=DIR Search for dependent libraries within DIR
  1486. (or the compiler's sysroot if not specified).
  1487. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1488. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1489. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1490. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1491. --with-x use the X Window System
  1492. Some influential environment variables:
  1493. CC C compiler command
  1494. CFLAGS C compiler flags
  1495. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1496. nonstandard directory <lib dir>
  1497. LIBS libraries to pass to the linker, e.g. -l<library>
  1498. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1499. you have headers in a nonstandard directory <include dir>
  1500. CPP C preprocessor
  1501. CXX C++ compiler command
  1502. CXXFLAGS C++ compiler flags
  1503. CXXCPP C++ preprocessor
  1504. XMKMF Path to xmkmf, Makefile generator for X Window System
  1505. Use these variables to override the choices made by `configure' or to help
  1506. it to find libraries and programs with nonstandard names/locations.
  1507. Report bugs to the package provider.
  1508. _ACEOF
  1509. ac_status=$?
  1510. fi
  1511. if test "$ac_init_help" = "recursive"; then
  1512. # If there are subdirs, report their specific --help.
  1513. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1514. test -d "$ac_dir" ||
  1515. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1516. continue
  1517. ac_builddir=.
  1518. case "$ac_dir" in
  1519. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1520. *)
  1521. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1522. # A ".." for each directory in $ac_dir_suffix.
  1523. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1524. case $ac_top_builddir_sub in
  1525. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1526. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1527. esac ;;
  1528. esac
  1529. ac_abs_top_builddir=$ac_pwd
  1530. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1531. # for backward compatibility:
  1532. ac_top_builddir=$ac_top_build_prefix
  1533. case $srcdir in
  1534. .) # We are building in place.
  1535. ac_srcdir=.
  1536. ac_top_srcdir=$ac_top_builddir_sub
  1537. ac_abs_top_srcdir=$ac_pwd ;;
  1538. [\\/]* | ?:[\\/]* ) # Absolute name.
  1539. ac_srcdir=$srcdir$ac_dir_suffix;
  1540. ac_top_srcdir=$srcdir
  1541. ac_abs_top_srcdir=$srcdir ;;
  1542. *) # Relative name.
  1543. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1544. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1545. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1546. esac
  1547. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1548. cd "$ac_dir" || { ac_status=$?; continue; }
  1549. # Check for guested configure.
  1550. if test -f "$ac_srcdir/configure.gnu"; then
  1551. echo &&
  1552. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1553. elif test -f "$ac_srcdir/configure"; then
  1554. echo &&
  1555. $SHELL "$ac_srcdir/configure" --help=recursive
  1556. else
  1557. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1558. fi || ac_status=$?
  1559. cd "$ac_pwd" || { ac_status=$?; break; }
  1560. done
  1561. fi
  1562. test -n "$ac_init_help" && exit $ac_status
  1563. if $ac_init_version; then
  1564. cat <<\_ACEOF
  1565. configure
  1566. generated by GNU Autoconf 2.69
  1567. Copyright (C) 2012 Free Software Foundation, Inc.
  1568. This configure script is free software; the Free Software Foundation
  1569. gives unlimited permission to copy, distribute and modify it.
  1570. _ACEOF
  1571. exit
  1572. fi
  1573. ## ------------------------ ##
  1574. ## Autoconf initialization. ##
  1575. ## ------------------------ ##
  1576. # ac_fn_c_try_compile LINENO
  1577. # --------------------------
  1578. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1579. ac_fn_c_try_compile ()
  1580. {
  1581. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1582. rm -f conftest.$ac_objext
  1583. if { { ac_try="$ac_compile"
  1584. case "(($ac_try" in
  1585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1586. *) ac_try_echo=$ac_try;;
  1587. esac
  1588. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1589. $as_echo "$ac_try_echo"; } >&5
  1590. (eval "$ac_compile") 2>conftest.err
  1591. ac_status=$?
  1592. if test -s conftest.err; then
  1593. grep -v '^ *+' conftest.err >conftest.er1
  1594. cat conftest.er1 >&5
  1595. mv -f conftest.er1 conftest.err
  1596. fi
  1597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1598. test $ac_status = 0; } && {
  1599. test -z "$ac_c_werror_flag" ||
  1600. test ! -s conftest.err
  1601. } && test -s conftest.$ac_objext; then :
  1602. ac_retval=0
  1603. else
  1604. $as_echo "$as_me: failed program was:" >&5
  1605. sed 's/^/| /' conftest.$ac_ext >&5
  1606. ac_retval=1
  1607. fi
  1608. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1609. as_fn_set_status $ac_retval
  1610. } # ac_fn_c_try_compile
  1611. # ac_fn_c_try_link LINENO
  1612. # -----------------------
  1613. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1614. ac_fn_c_try_link ()
  1615. {
  1616. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1617. rm -f conftest.$ac_objext conftest$ac_exeext
  1618. if { { ac_try="$ac_link"
  1619. case "(($ac_try" in
  1620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1621. *) ac_try_echo=$ac_try;;
  1622. esac
  1623. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1624. $as_echo "$ac_try_echo"; } >&5
  1625. (eval "$ac_link") 2>conftest.err
  1626. ac_status=$?
  1627. if test -s conftest.err; then
  1628. grep -v '^ *+' conftest.err >conftest.er1
  1629. cat conftest.er1 >&5
  1630. mv -f conftest.er1 conftest.err
  1631. fi
  1632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1633. test $ac_status = 0; } && {
  1634. test -z "$ac_c_werror_flag" ||
  1635. test ! -s conftest.err
  1636. } && test -s conftest$ac_exeext && {
  1637. test "$cross_compiling" = yes ||
  1638. test -x conftest$ac_exeext
  1639. }; then :
  1640. ac_retval=0
  1641. else
  1642. $as_echo "$as_me: failed program was:" >&5
  1643. sed 's/^/| /' conftest.$ac_ext >&5
  1644. ac_retval=1
  1645. fi
  1646. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1647. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1648. # interfere with the next link command; also delete a directory that is
  1649. # left behind by Apple's compiler. We do this before executing the actions.
  1650. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1651. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1652. as_fn_set_status $ac_retval
  1653. } # ac_fn_c_try_link
  1654. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1655. # -------------------------------------------------------
  1656. # Tests whether HEADER exists and can be compiled using the include files in
  1657. # INCLUDES, setting the cache variable VAR accordingly.
  1658. ac_fn_c_check_header_compile ()
  1659. {
  1660. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1662. $as_echo_n "checking for $2... " >&6; }
  1663. if eval \${$3+:} false; then :
  1664. $as_echo_n "(cached) " >&6
  1665. else
  1666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1667. /* end confdefs.h. */
  1668. $4
  1669. #include <$2>
  1670. _ACEOF
  1671. if ac_fn_c_try_compile "$LINENO"; then :
  1672. eval "$3=yes"
  1673. else
  1674. eval "$3=no"
  1675. fi
  1676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1677. fi
  1678. eval ac_res=\$$3
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1680. $as_echo "$ac_res" >&6; }
  1681. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1682. } # ac_fn_c_check_header_compile
  1683. # ac_fn_c_try_cpp LINENO
  1684. # ----------------------
  1685. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1686. ac_fn_c_try_cpp ()
  1687. {
  1688. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1689. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1690. case "(($ac_try" in
  1691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1692. *) ac_try_echo=$ac_try;;
  1693. esac
  1694. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1695. $as_echo "$ac_try_echo"; } >&5
  1696. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1697. ac_status=$?
  1698. if test -s conftest.err; then
  1699. grep -v '^ *+' conftest.err >conftest.er1
  1700. cat conftest.er1 >&5
  1701. mv -f conftest.er1 conftest.err
  1702. fi
  1703. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1704. test $ac_status = 0; } > conftest.i && {
  1705. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1706. test ! -s conftest.err
  1707. }; then :
  1708. ac_retval=0
  1709. else
  1710. $as_echo "$as_me: failed program was:" >&5
  1711. sed 's/^/| /' conftest.$ac_ext >&5
  1712. ac_retval=1
  1713. fi
  1714. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1715. as_fn_set_status $ac_retval
  1716. } # ac_fn_c_try_cpp
  1717. # ac_fn_c_try_run LINENO
  1718. # ----------------------
  1719. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1720. # that executables *can* be run.
  1721. ac_fn_c_try_run ()
  1722. {
  1723. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1724. if { { ac_try="$ac_link"
  1725. case "(($ac_try" in
  1726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1727. *) ac_try_echo=$ac_try;;
  1728. esac
  1729. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1730. $as_echo "$ac_try_echo"; } >&5
  1731. (eval "$ac_link") 2>&5
  1732. ac_status=$?
  1733. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1734. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  1742. ac_status=$?
  1743. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1744. test $ac_status = 0; }; }; then :
  1745. ac_retval=0
  1746. else
  1747. $as_echo "$as_me: program exited with status $ac_status" >&5
  1748. $as_echo "$as_me: failed program was:" >&5
  1749. sed 's/^/| /' conftest.$ac_ext >&5
  1750. ac_retval=$ac_status
  1751. fi
  1752. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1753. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1754. as_fn_set_status $ac_retval
  1755. } # ac_fn_c_try_run
  1756. # ac_fn_c_check_func LINENO FUNC VAR
  1757. # ----------------------------------
  1758. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1759. ac_fn_c_check_func ()
  1760. {
  1761. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1763. $as_echo_n "checking for $2... " >&6; }
  1764. if eval \${$3+:} false; then :
  1765. $as_echo_n "(cached) " >&6
  1766. else
  1767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1768. /* end confdefs.h. */
  1769. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1770. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1771. #define $2 innocuous_$2
  1772. /* System header to define __stub macros and hopefully few prototypes,
  1773. which can conflict with char $2 (); below.
  1774. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1775. <limits.h> exists even on freestanding compilers. */
  1776. #ifdef __STDC__
  1777. # include <limits.h>
  1778. #else
  1779. # include <assert.h>
  1780. #endif
  1781. #undef $2
  1782. /* Override any GCC internal prototype to avoid an error.
  1783. Use char because int might match the return type of a GCC
  1784. builtin and then its argument prototype would still apply. */
  1785. #ifdef __cplusplus
  1786. extern "C"
  1787. #endif
  1788. char $2 ();
  1789. /* The GNU C library defines this for functions which it implements
  1790. to always fail with ENOSYS. Some functions are actually named
  1791. something starting with __ and the normal name is an alias. */
  1792. #if defined __stub_$2 || defined __stub___$2
  1793. choke me
  1794. #endif
  1795. int
  1796. main ()
  1797. {
  1798. return $2 ();
  1799. ;
  1800. return 0;
  1801. }
  1802. _ACEOF
  1803. if ac_fn_c_try_link "$LINENO"; then :
  1804. eval "$3=yes"
  1805. else
  1806. eval "$3=no"
  1807. fi
  1808. rm -f core conftest.err conftest.$ac_objext \
  1809. conftest$ac_exeext conftest.$ac_ext
  1810. fi
  1811. eval ac_res=\$$3
  1812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1813. $as_echo "$ac_res" >&6; }
  1814. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1815. } # ac_fn_c_check_func
  1816. # ac_fn_cxx_try_compile LINENO
  1817. # ----------------------------
  1818. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1819. ac_fn_cxx_try_compile ()
  1820. {
  1821. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1822. rm -f conftest.$ac_objext
  1823. if { { ac_try="$ac_compile"
  1824. case "(($ac_try" in
  1825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1826. *) ac_try_echo=$ac_try;;
  1827. esac
  1828. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1829. $as_echo "$ac_try_echo"; } >&5
  1830. (eval "$ac_compile") 2>conftest.err
  1831. ac_status=$?
  1832. if test -s conftest.err; then
  1833. grep -v '^ *+' conftest.err >conftest.er1
  1834. cat conftest.er1 >&5
  1835. mv -f conftest.er1 conftest.err
  1836. fi
  1837. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1838. test $ac_status = 0; } && {
  1839. test -z "$ac_cxx_werror_flag" ||
  1840. test ! -s conftest.err
  1841. } && test -s conftest.$ac_objext; then :
  1842. ac_retval=0
  1843. else
  1844. $as_echo "$as_me: failed program was:" >&5
  1845. sed 's/^/| /' conftest.$ac_ext >&5
  1846. ac_retval=1
  1847. fi
  1848. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1849. as_fn_set_status $ac_retval
  1850. } # ac_fn_cxx_try_compile
  1851. # ac_fn_cxx_try_cpp LINENO
  1852. # ------------------------
  1853. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1854. ac_fn_cxx_try_cpp ()
  1855. {
  1856. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1857. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1858. case "(($ac_try" in
  1859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1860. *) ac_try_echo=$ac_try;;
  1861. esac
  1862. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1863. $as_echo "$ac_try_echo"; } >&5
  1864. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1865. ac_status=$?
  1866. if test -s conftest.err; then
  1867. grep -v '^ *+' conftest.err >conftest.er1
  1868. cat conftest.er1 >&5
  1869. mv -f conftest.er1 conftest.err
  1870. fi
  1871. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1872. test $ac_status = 0; } > conftest.i && {
  1873. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1874. test ! -s conftest.err
  1875. }; then :
  1876. ac_retval=0
  1877. else
  1878. $as_echo "$as_me: failed program was:" >&5
  1879. sed 's/^/| /' conftest.$ac_ext >&5
  1880. ac_retval=1
  1881. fi
  1882. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1883. as_fn_set_status $ac_retval
  1884. } # ac_fn_cxx_try_cpp
  1885. # ac_fn_cxx_try_link LINENO
  1886. # -------------------------
  1887. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1888. ac_fn_cxx_try_link ()
  1889. {
  1890. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1891. rm -f conftest.$ac_objext conftest$ac_exeext
  1892. if { { ac_try="$ac_link"
  1893. case "(($ac_try" in
  1894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1895. *) ac_try_echo=$ac_try;;
  1896. esac
  1897. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1898. $as_echo "$ac_try_echo"; } >&5
  1899. (eval "$ac_link") 2>conftest.err
  1900. ac_status=$?
  1901. if test -s conftest.err; then
  1902. grep -v '^ *+' conftest.err >conftest.er1
  1903. cat conftest.er1 >&5
  1904. mv -f conftest.er1 conftest.err
  1905. fi
  1906. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1907. test $ac_status = 0; } && {
  1908. test -z "$ac_cxx_werror_flag" ||
  1909. test ! -s conftest.err
  1910. } && test -s conftest$ac_exeext && {
  1911. test "$cross_compiling" = yes ||
  1912. test -x conftest$ac_exeext
  1913. }; then :
  1914. ac_retval=0
  1915. else
  1916. $as_echo "$as_me: failed program was:" >&5
  1917. sed 's/^/| /' conftest.$ac_ext >&5
  1918. ac_retval=1
  1919. fi
  1920. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1921. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1922. # interfere with the next link command; also delete a directory that is
  1923. # left behind by Apple's compiler. We do this before executing the actions.
  1924. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1925. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1926. as_fn_set_status $ac_retval
  1927. } # ac_fn_cxx_try_link
  1928. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1929. # -------------------------------------------------------
  1930. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1931. # the include files in INCLUDES and setting the cache variable VAR
  1932. # accordingly.
  1933. ac_fn_c_check_header_mongrel ()
  1934. {
  1935. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1936. if eval \${$3+:} false; then :
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1938. $as_echo_n "checking for $2... " >&6; }
  1939. if eval \${$3+:} false; then :
  1940. $as_echo_n "(cached) " >&6
  1941. fi
  1942. eval ac_res=\$$3
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1944. $as_echo "$ac_res" >&6; }
  1945. else
  1946. # Is the header compilable?
  1947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1948. $as_echo_n "checking $2 usability... " >&6; }
  1949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1950. /* end confdefs.h. */
  1951. $4
  1952. #include <$2>
  1953. _ACEOF
  1954. if ac_fn_c_try_compile "$LINENO"; then :
  1955. ac_header_compiler=yes
  1956. else
  1957. ac_header_compiler=no
  1958. fi
  1959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1961. $as_echo "$ac_header_compiler" >&6; }
  1962. # Is the header present?
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1964. $as_echo_n "checking $2 presence... " >&6; }
  1965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1966. /* end confdefs.h. */
  1967. #include <$2>
  1968. _ACEOF
  1969. if ac_fn_c_try_cpp "$LINENO"; then :
  1970. ac_header_preproc=yes
  1971. else
  1972. ac_header_preproc=no
  1973. fi
  1974. rm -f conftest.err conftest.i conftest.$ac_ext
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1976. $as_echo "$ac_header_preproc" >&6; }
  1977. # So? What about this header?
  1978. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1979. yes:no: )
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1981. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1983. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1984. ;;
  1985. no:yes:* )
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1987. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1989. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1991. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1993. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1995. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1996. ;;
  1997. esac
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1999. $as_echo_n "checking for $2... " >&6; }
  2000. if eval \${$3+:} false; then :
  2001. $as_echo_n "(cached) " >&6
  2002. else
  2003. eval "$3=\$ac_header_compiler"
  2004. fi
  2005. eval ac_res=\$$3
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2007. $as_echo "$ac_res" >&6; }
  2008. fi
  2009. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2010. } # ac_fn_c_check_header_mongrel
  2011. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2012. # -------------------------------------------
  2013. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2014. # variable VAR accordingly.
  2015. ac_fn_c_check_type ()
  2016. {
  2017. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2019. $as_echo_n "checking for $2... " >&6; }
  2020. if eval \${$3+:} false; then :
  2021. $as_echo_n "(cached) " >&6
  2022. else
  2023. eval "$3=no"
  2024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2025. /* end confdefs.h. */
  2026. $4
  2027. int
  2028. main ()
  2029. {
  2030. if (sizeof ($2))
  2031. return 0;
  2032. ;
  2033. return 0;
  2034. }
  2035. _ACEOF
  2036. if ac_fn_c_try_compile "$LINENO"; then :
  2037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2038. /* end confdefs.h. */
  2039. $4
  2040. int
  2041. main ()
  2042. {
  2043. if (sizeof (($2)))
  2044. return 0;
  2045. ;
  2046. return 0;
  2047. }
  2048. _ACEOF
  2049. if ac_fn_c_try_compile "$LINENO"; then :
  2050. else
  2051. eval "$3=yes"
  2052. fi
  2053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2054. fi
  2055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2056. fi
  2057. eval ac_res=\$$3
  2058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2059. $as_echo "$ac_res" >&6; }
  2060. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2061. } # ac_fn_c_check_type
  2062. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2063. # ----------------------------------------------------
  2064. # Tries to find if the field MEMBER exists in type AGGR, after including
  2065. # INCLUDES, setting cache variable VAR accordingly.
  2066. ac_fn_c_check_member ()
  2067. {
  2068. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2070. $as_echo_n "checking for $2.$3... " >&6; }
  2071. if eval \${$4+:} false; then :
  2072. $as_echo_n "(cached) " >&6
  2073. else
  2074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2075. /* end confdefs.h. */
  2076. $5
  2077. int
  2078. main ()
  2079. {
  2080. static $2 ac_aggr;
  2081. if (ac_aggr.$3)
  2082. return 0;
  2083. ;
  2084. return 0;
  2085. }
  2086. _ACEOF
  2087. if ac_fn_c_try_compile "$LINENO"; then :
  2088. eval "$4=yes"
  2089. else
  2090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2091. /* end confdefs.h. */
  2092. $5
  2093. int
  2094. main ()
  2095. {
  2096. static $2 ac_aggr;
  2097. if (sizeof ac_aggr.$3)
  2098. return 0;
  2099. ;
  2100. return 0;
  2101. }
  2102. _ACEOF
  2103. if ac_fn_c_try_compile "$LINENO"; then :
  2104. eval "$4=yes"
  2105. else
  2106. eval "$4=no"
  2107. fi
  2108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2109. fi
  2110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2111. fi
  2112. eval ac_res=\$$4
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2114. $as_echo "$ac_res" >&6; }
  2115. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2116. } # ac_fn_c_check_member
  2117. cat >config.log <<_ACEOF
  2118. This file contains any messages produced by compilers while
  2119. running configure, to aid debugging if configure makes a mistake.
  2120. It was created by $as_me, which was
  2121. generated by GNU Autoconf 2.69. Invocation command line was
  2122. $ $0 $@
  2123. _ACEOF
  2124. exec 5>>config.log
  2125. {
  2126. cat <<_ASUNAME
  2127. ## --------- ##
  2128. ## Platform. ##
  2129. ## --------- ##
  2130. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2131. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2132. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2133. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2134. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2135. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2136. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2137. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2138. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2139. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2140. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2141. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2142. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2143. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2144. _ASUNAME
  2145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2146. for as_dir in $PATH
  2147. do
  2148. IFS=$as_save_IFS
  2149. test -z "$as_dir" && as_dir=.
  2150. $as_echo "PATH: $as_dir"
  2151. done
  2152. IFS=$as_save_IFS
  2153. } >&5
  2154. cat >&5 <<_ACEOF
  2155. ## ----------- ##
  2156. ## Core tests. ##
  2157. ## ----------- ##
  2158. _ACEOF
  2159. # Keep a trace of the command line.
  2160. # Strip out --no-create and --no-recursion so they do not pile up.
  2161. # Strip out --silent because we don't want to record it for future runs.
  2162. # Also quote any args containing shell meta-characters.
  2163. # Make two passes to allow for proper duplicate-argument suppression.
  2164. ac_configure_args=
  2165. ac_configure_args0=
  2166. ac_configure_args1=
  2167. ac_must_keep_next=false
  2168. for ac_pass in 1 2
  2169. do
  2170. for ac_arg
  2171. do
  2172. case $ac_arg in
  2173. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2174. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2175. | -silent | --silent | --silen | --sile | --sil)
  2176. continue ;;
  2177. *\'*)
  2178. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2179. esac
  2180. case $ac_pass in
  2181. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2182. 2)
  2183. as_fn_append ac_configure_args1 " '$ac_arg'"
  2184. if test $ac_must_keep_next = true; then
  2185. ac_must_keep_next=false # Got value, back to normal.
  2186. else
  2187. case $ac_arg in
  2188. *=* | --config-cache | -C | -disable-* | --disable-* \
  2189. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2190. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2191. | -with-* | --with-* | -without-* | --without-* | --x)
  2192. case "$ac_configure_args0 " in
  2193. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2194. esac
  2195. ;;
  2196. -* ) ac_must_keep_next=true ;;
  2197. esac
  2198. fi
  2199. as_fn_append ac_configure_args " '$ac_arg'"
  2200. ;;
  2201. esac
  2202. done
  2203. done
  2204. { ac_configure_args0=; unset ac_configure_args0;}
  2205. { ac_configure_args1=; unset ac_configure_args1;}
  2206. # When interrupted or exit'd, cleanup temporary files, and complete
  2207. # config.log. We remove comments because anyway the quotes in there
  2208. # would cause problems or look ugly.
  2209. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2210. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2211. trap 'exit_status=$?
  2212. # Save into config.log some information that might help in debugging.
  2213. {
  2214. echo
  2215. $as_echo "## ---------------- ##
  2216. ## Cache variables. ##
  2217. ## ---------------- ##"
  2218. echo
  2219. # The following way of writing the cache mishandles newlines in values,
  2220. (
  2221. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2222. eval ac_val=\$$ac_var
  2223. case $ac_val in #(
  2224. *${as_nl}*)
  2225. case $ac_var in #(
  2226. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2227. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2228. esac
  2229. case $ac_var in #(
  2230. _ | IFS | as_nl) ;; #(
  2231. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2232. *) { eval $ac_var=; unset $ac_var;} ;;
  2233. esac ;;
  2234. esac
  2235. done
  2236. (set) 2>&1 |
  2237. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2238. *${as_nl}ac_space=\ *)
  2239. sed -n \
  2240. "s/'\''/'\''\\\\'\'''\''/g;
  2241. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2242. ;; #(
  2243. *)
  2244. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2245. ;;
  2246. esac |
  2247. sort
  2248. )
  2249. echo
  2250. $as_echo "## ----------------- ##
  2251. ## Output variables. ##
  2252. ## ----------------- ##"
  2253. echo
  2254. for ac_var in $ac_subst_vars
  2255. do
  2256. eval ac_val=\$$ac_var
  2257. case $ac_val in
  2258. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2259. esac
  2260. $as_echo "$ac_var='\''$ac_val'\''"
  2261. done | sort
  2262. echo
  2263. if test -n "$ac_subst_files"; then
  2264. $as_echo "## ------------------- ##
  2265. ## File substitutions. ##
  2266. ## ------------------- ##"
  2267. echo
  2268. for ac_var in $ac_subst_files
  2269. do
  2270. eval ac_val=\$$ac_var
  2271. case $ac_val in
  2272. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2273. esac
  2274. $as_echo "$ac_var='\''$ac_val'\''"
  2275. done | sort
  2276. echo
  2277. fi
  2278. if test -s confdefs.h; then
  2279. $as_echo "## ----------- ##
  2280. ## confdefs.h. ##
  2281. ## ----------- ##"
  2282. echo
  2283. cat confdefs.h
  2284. echo
  2285. fi
  2286. test "$ac_signal" != 0 &&
  2287. $as_echo "$as_me: caught signal $ac_signal"
  2288. $as_echo "$as_me: exit $exit_status"
  2289. } >&5
  2290. rm -f core *.core core.conftest.* &&
  2291. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2292. exit $exit_status
  2293. ' 0
  2294. for ac_signal in 1 2 13 15; do
  2295. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2296. done
  2297. ac_signal=0
  2298. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2299. rm -f -r conftest* confdefs.h
  2300. $as_echo "/* confdefs.h */" > confdefs.h
  2301. # Predefined preprocessor variables.
  2302. cat >>confdefs.h <<_ACEOF
  2303. #define PACKAGE_NAME "$PACKAGE_NAME"
  2304. _ACEOF
  2305. cat >>confdefs.h <<_ACEOF
  2306. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2307. _ACEOF
  2308. cat >>confdefs.h <<_ACEOF
  2309. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2310. _ACEOF
  2311. cat >>confdefs.h <<_ACEOF
  2312. #define PACKAGE_STRING "$PACKAGE_STRING"
  2313. _ACEOF
  2314. cat >>confdefs.h <<_ACEOF
  2315. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2316. _ACEOF
  2317. cat >>confdefs.h <<_ACEOF
  2318. #define PACKAGE_URL "$PACKAGE_URL"
  2319. _ACEOF
  2320. # Let the site file select an alternate cache file if it wants to.
  2321. # Prefer an explicitly selected file to automatically selected ones.
  2322. ac_site_file1=NONE
  2323. ac_site_file2=NONE
  2324. if test -n "$CONFIG_SITE"; then
  2325. # We do not want a PATH search for config.site.
  2326. case $CONFIG_SITE in #((
  2327. -*) ac_site_file1=./$CONFIG_SITE;;
  2328. */*) ac_site_file1=$CONFIG_SITE;;
  2329. *) ac_site_file1=./$CONFIG_SITE;;
  2330. esac
  2331. elif test "x$prefix" != xNONE; then
  2332. ac_site_file1=$prefix/share/config.site
  2333. ac_site_file2=$prefix/etc/config.site
  2334. else
  2335. ac_site_file1=$ac_default_prefix/share/config.site
  2336. ac_site_file2=$ac_default_prefix/etc/config.site
  2337. fi
  2338. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2339. do
  2340. test "x$ac_site_file" = xNONE && continue
  2341. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2343. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2344. sed 's/^/| /' "$ac_site_file" >&5
  2345. . "$ac_site_file" \
  2346. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2347. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2348. as_fn_error $? "failed to load site script $ac_site_file
  2349. See \`config.log' for more details" "$LINENO" 5; }
  2350. fi
  2351. done
  2352. if test -r "$cache_file"; then
  2353. # Some versions of bash will fail to source /dev/null (special files
  2354. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2355. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2357. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2358. case $cache_file in
  2359. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2360. *) . "./$cache_file";;
  2361. esac
  2362. fi
  2363. else
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2365. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2366. >$cache_file
  2367. fi
  2368. # Check that the precious variables saved in the cache have kept the same
  2369. # value.
  2370. ac_cache_corrupted=false
  2371. for ac_var in $ac_precious_vars; do
  2372. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2373. eval ac_new_set=\$ac_env_${ac_var}_set
  2374. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2375. eval ac_new_val=\$ac_env_${ac_var}_value
  2376. case $ac_old_set,$ac_new_set in
  2377. set,)
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2379. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2380. ac_cache_corrupted=: ;;
  2381. ,set)
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2383. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2384. ac_cache_corrupted=: ;;
  2385. ,);;
  2386. *)
  2387. if test "x$ac_old_val" != "x$ac_new_val"; then
  2388. # differences in whitespace do not lead to failure.
  2389. ac_old_val_w=`echo x $ac_old_val`
  2390. ac_new_val_w=`echo x $ac_new_val`
  2391. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2393. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2394. ac_cache_corrupted=:
  2395. else
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2397. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2398. eval $ac_var=\$ac_old_val
  2399. fi
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2401. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2403. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2404. fi;;
  2405. esac
  2406. # Pass precious variables to config.status.
  2407. if test "$ac_new_set" = set; then
  2408. case $ac_new_val in
  2409. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2410. *) ac_arg=$ac_var=$ac_new_val ;;
  2411. esac
  2412. case " $ac_configure_args " in
  2413. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2414. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2415. esac
  2416. fi
  2417. done
  2418. if $ac_cache_corrupted; then
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2420. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2422. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2423. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2424. fi
  2425. ## -------------------- ##
  2426. ## Main body of script. ##
  2427. ## -------------------- ##
  2428. ac_ext=c
  2429. ac_cpp='$CPP $CPPFLAGS'
  2430. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2431. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2432. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2433. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2434. ac_aux_dir=
  2435. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2436. if test -f "$ac_dir/install-sh"; then
  2437. ac_aux_dir=$ac_dir
  2438. ac_install_sh="$ac_aux_dir/install-sh -c"
  2439. break
  2440. elif test -f "$ac_dir/install.sh"; then
  2441. ac_aux_dir=$ac_dir
  2442. ac_install_sh="$ac_aux_dir/install.sh -c"
  2443. break
  2444. elif test -f "$ac_dir/shtool"; then
  2445. ac_aux_dir=$ac_dir
  2446. ac_install_sh="$ac_aux_dir/shtool install -c"
  2447. break
  2448. fi
  2449. done
  2450. if test -z "$ac_aux_dir"; then
  2451. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2452. fi
  2453. # These three variables are undocumented and unsupported,
  2454. # and are intended to be withdrawn in a future Autoconf release.
  2455. # They can cause serious problems if a builder's source tree is in a directory
  2456. # whose full name contains unusual characters.
  2457. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2458. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2459. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2460. orig_CFLAGS="$CFLAGS"
  2461. #
  2462. # Making releases:
  2463. # Edit include/SDL_version.h and change the version, then:
  2464. # SDL_MICRO_VERSION += 1;
  2465. # SDL_INTERFACE_AGE += 1;
  2466. # SDL_BINARY_AGE += 1;
  2467. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2468. # if backwards compatibility has been broken,
  2469. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2470. #
  2471. SDL_MAJOR_VERSION=2
  2472. SDL_MINOR_VERSION=0
  2473. SDL_MICRO_VERSION=5
  2474. SDL_INTERFACE_AGE=0
  2475. SDL_BINARY_AGE=5
  2476. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2477. # libtool versioning
  2478. case `pwd` in
  2479. *\ * | *\ *)
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2481. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2482. esac
  2483. macro_version='2.4.2'
  2484. macro_revision='1.3337'
  2485. ltmain="$ac_aux_dir/ltmain.sh"
  2486. # Make sure we can run config.sub.
  2487. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2488. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2490. $as_echo_n "checking build system type... " >&6; }
  2491. if ${ac_cv_build+:} false; then :
  2492. $as_echo_n "(cached) " >&6
  2493. else
  2494. ac_build_alias=$build_alias
  2495. test "x$ac_build_alias" = x &&
  2496. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2497. test "x$ac_build_alias" = x &&
  2498. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2499. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2500. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2501. fi
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2503. $as_echo "$ac_cv_build" >&6; }
  2504. case $ac_cv_build in
  2505. *-*-*) ;;
  2506. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2507. esac
  2508. build=$ac_cv_build
  2509. ac_save_IFS=$IFS; IFS='-'
  2510. set x $ac_cv_build
  2511. shift
  2512. build_cpu=$1
  2513. build_vendor=$2
  2514. shift; shift
  2515. # Remember, the first character of IFS is used to create $*,
  2516. # except with old shells:
  2517. build_os=$*
  2518. IFS=$ac_save_IFS
  2519. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2521. $as_echo_n "checking host system type... " >&6; }
  2522. if ${ac_cv_host+:} false; then :
  2523. $as_echo_n "(cached) " >&6
  2524. else
  2525. if test "x$host_alias" = x; then
  2526. ac_cv_host=$ac_cv_build
  2527. else
  2528. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2529. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2530. fi
  2531. fi
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2533. $as_echo "$ac_cv_host" >&6; }
  2534. case $ac_cv_host in
  2535. *-*-*) ;;
  2536. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2537. esac
  2538. host=$ac_cv_host
  2539. ac_save_IFS=$IFS; IFS='-'
  2540. set x $ac_cv_host
  2541. shift
  2542. host_cpu=$1
  2543. host_vendor=$2
  2544. shift; shift
  2545. # Remember, the first character of IFS is used to create $*,
  2546. # except with old shells:
  2547. host_os=$*
  2548. IFS=$ac_save_IFS
  2549. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2550. # Backslashify metacharacters that are still active within
  2551. # double-quoted strings.
  2552. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2553. # Same as above, but do not quote variable references.
  2554. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2555. # Sed substitution to delay expansion of an escaped shell variable in a
  2556. # double_quote_subst'ed string.
  2557. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2558. # Sed substitution to delay expansion of an escaped single quote.
  2559. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2560. # Sed substitution to avoid accidental globbing in evaled expressions
  2561. no_glob_subst='s/\*/\\\*/g'
  2562. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2563. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2564. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2566. $as_echo_n "checking how to print strings... " >&6; }
  2567. # Test print first, because it will be a builtin if present.
  2568. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2569. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2570. ECHO='print -r --'
  2571. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2572. ECHO='printf %s\n'
  2573. else
  2574. # Use this function as a fallback that always works.
  2575. func_fallback_echo ()
  2576. {
  2577. eval 'cat <<_LTECHO_EOF
  2578. $1
  2579. _LTECHO_EOF'
  2580. }
  2581. ECHO='func_fallback_echo'
  2582. fi
  2583. # func_echo_all arg...
  2584. # Invoke $ECHO with all args, space-separated.
  2585. func_echo_all ()
  2586. {
  2587. $ECHO ""
  2588. }
  2589. case "$ECHO" in
  2590. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2591. $as_echo "printf" >&6; } ;;
  2592. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2593. $as_echo "print -r" >&6; } ;;
  2594. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2595. $as_echo "cat" >&6; } ;;
  2596. esac
  2597. ac_ext=c
  2598. ac_cpp='$CPP $CPPFLAGS'
  2599. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2600. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2601. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2602. if test -n "$ac_tool_prefix"; then
  2603. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2604. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2606. $as_echo_n "checking for $ac_word... " >&6; }
  2607. if ${ac_cv_prog_CC+:} false; then :
  2608. $as_echo_n "(cached) " >&6
  2609. else
  2610. if test -n "$CC"; then
  2611. ac_cv_prog_CC="$CC" # Let the user override the test.
  2612. else
  2613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2614. for as_dir in $PATH
  2615. do
  2616. IFS=$as_save_IFS
  2617. test -z "$as_dir" && as_dir=.
  2618. for ac_exec_ext in '' $ac_executable_extensions; do
  2619. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2620. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2622. break 2
  2623. fi
  2624. done
  2625. done
  2626. IFS=$as_save_IFS
  2627. fi
  2628. fi
  2629. CC=$ac_cv_prog_CC
  2630. if test -n "$CC"; then
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2632. $as_echo "$CC" >&6; }
  2633. else
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2635. $as_echo "no" >&6; }
  2636. fi
  2637. fi
  2638. if test -z "$ac_cv_prog_CC"; then
  2639. ac_ct_CC=$CC
  2640. # Extract the first word of "gcc", so it can be a program name with args.
  2641. set dummy gcc; ac_word=$2
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2643. $as_echo_n "checking for $ac_word... " >&6; }
  2644. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2645. $as_echo_n "(cached) " >&6
  2646. else
  2647. if test -n "$ac_ct_CC"; then
  2648. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2649. else
  2650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2651. for as_dir in $PATH
  2652. do
  2653. IFS=$as_save_IFS
  2654. test -z "$as_dir" && as_dir=.
  2655. for ac_exec_ext in '' $ac_executable_extensions; do
  2656. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2657. ac_cv_prog_ac_ct_CC="gcc"
  2658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2659. break 2
  2660. fi
  2661. done
  2662. done
  2663. IFS=$as_save_IFS
  2664. fi
  2665. fi
  2666. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2667. if test -n "$ac_ct_CC"; then
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2669. $as_echo "$ac_ct_CC" >&6; }
  2670. else
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2672. $as_echo "no" >&6; }
  2673. fi
  2674. if test "x$ac_ct_CC" = x; then
  2675. CC=""
  2676. else
  2677. case $cross_compiling:$ac_tool_warned in
  2678. yes:)
  2679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2680. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2681. ac_tool_warned=yes ;;
  2682. esac
  2683. CC=$ac_ct_CC
  2684. fi
  2685. else
  2686. CC="$ac_cv_prog_CC"
  2687. fi
  2688. if test -z "$CC"; then
  2689. if test -n "$ac_tool_prefix"; then
  2690. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2691. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2693. $as_echo_n "checking for $ac_word... " >&6; }
  2694. if ${ac_cv_prog_CC+:} false; then :
  2695. $as_echo_n "(cached) " >&6
  2696. else
  2697. if test -n "$CC"; then
  2698. ac_cv_prog_CC="$CC" # Let the user override the test.
  2699. else
  2700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2701. for as_dir in $PATH
  2702. do
  2703. IFS=$as_save_IFS
  2704. test -z "$as_dir" && as_dir=.
  2705. for ac_exec_ext in '' $ac_executable_extensions; do
  2706. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2707. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2709. break 2
  2710. fi
  2711. done
  2712. done
  2713. IFS=$as_save_IFS
  2714. fi
  2715. fi
  2716. CC=$ac_cv_prog_CC
  2717. if test -n "$CC"; then
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2719. $as_echo "$CC" >&6; }
  2720. else
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2722. $as_echo "no" >&6; }
  2723. fi
  2724. fi
  2725. fi
  2726. if test -z "$CC"; then
  2727. # Extract the first word of "cc", so it can be a program name with args.
  2728. set dummy cc; ac_word=$2
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2730. $as_echo_n "checking for $ac_word... " >&6; }
  2731. if ${ac_cv_prog_CC+:} false; then :
  2732. $as_echo_n "(cached) " >&6
  2733. else
  2734. if test -n "$CC"; then
  2735. ac_cv_prog_CC="$CC" # Let the user override the test.
  2736. else
  2737. ac_prog_rejected=no
  2738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2739. for as_dir in $PATH
  2740. do
  2741. IFS=$as_save_IFS
  2742. test -z "$as_dir" && as_dir=.
  2743. for ac_exec_ext in '' $ac_executable_extensions; do
  2744. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2745. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2746. ac_prog_rejected=yes
  2747. continue
  2748. fi
  2749. ac_cv_prog_CC="cc"
  2750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2751. break 2
  2752. fi
  2753. done
  2754. done
  2755. IFS=$as_save_IFS
  2756. if test $ac_prog_rejected = yes; then
  2757. # We found a bogon in the path, so make sure we never use it.
  2758. set dummy $ac_cv_prog_CC
  2759. shift
  2760. if test $# != 0; then
  2761. # We chose a different compiler from the bogus one.
  2762. # However, it has the same basename, so the bogon will be chosen
  2763. # first if we set CC to just the basename; use the full file name.
  2764. shift
  2765. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2766. fi
  2767. fi
  2768. fi
  2769. fi
  2770. CC=$ac_cv_prog_CC
  2771. if test -n "$CC"; then
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2773. $as_echo "$CC" >&6; }
  2774. else
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2776. $as_echo "no" >&6; }
  2777. fi
  2778. fi
  2779. if test -z "$CC"; then
  2780. if test -n "$ac_tool_prefix"; then
  2781. for ac_prog in cl.exe
  2782. do
  2783. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2784. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2786. $as_echo_n "checking for $ac_word... " >&6; }
  2787. if ${ac_cv_prog_CC+:} false; then :
  2788. $as_echo_n "(cached) " >&6
  2789. else
  2790. if test -n "$CC"; then
  2791. ac_cv_prog_CC="$CC" # Let the user override the test.
  2792. else
  2793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2794. for as_dir in $PATH
  2795. do
  2796. IFS=$as_save_IFS
  2797. test -z "$as_dir" && as_dir=.
  2798. for ac_exec_ext in '' $ac_executable_extensions; do
  2799. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2800. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2801. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2802. break 2
  2803. fi
  2804. done
  2805. done
  2806. IFS=$as_save_IFS
  2807. fi
  2808. fi
  2809. CC=$ac_cv_prog_CC
  2810. if test -n "$CC"; then
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2812. $as_echo "$CC" >&6; }
  2813. else
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2815. $as_echo "no" >&6; }
  2816. fi
  2817. test -n "$CC" && break
  2818. done
  2819. fi
  2820. if test -z "$CC"; then
  2821. ac_ct_CC=$CC
  2822. for ac_prog in cl.exe
  2823. do
  2824. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2825. set dummy $ac_prog; ac_word=$2
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2827. $as_echo_n "checking for $ac_word... " >&6; }
  2828. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2829. $as_echo_n "(cached) " >&6
  2830. else
  2831. if test -n "$ac_ct_CC"; then
  2832. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2833. else
  2834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2835. for as_dir in $PATH
  2836. do
  2837. IFS=$as_save_IFS
  2838. test -z "$as_dir" && as_dir=.
  2839. for ac_exec_ext in '' $ac_executable_extensions; do
  2840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2841. ac_cv_prog_ac_ct_CC="$ac_prog"
  2842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2843. break 2
  2844. fi
  2845. done
  2846. done
  2847. IFS=$as_save_IFS
  2848. fi
  2849. fi
  2850. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2851. if test -n "$ac_ct_CC"; then
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2853. $as_echo "$ac_ct_CC" >&6; }
  2854. else
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2856. $as_echo "no" >&6; }
  2857. fi
  2858. test -n "$ac_ct_CC" && break
  2859. done
  2860. if test "x$ac_ct_CC" = x; then
  2861. CC=""
  2862. else
  2863. case $cross_compiling:$ac_tool_warned in
  2864. yes:)
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2866. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2867. ac_tool_warned=yes ;;
  2868. esac
  2869. CC=$ac_ct_CC
  2870. fi
  2871. fi
  2872. fi
  2873. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2874. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2875. as_fn_error $? "no acceptable C compiler found in \$PATH
  2876. See \`config.log' for more details" "$LINENO" 5; }
  2877. # Provide some information about the compiler.
  2878. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2879. set X $ac_compile
  2880. ac_compiler=$2
  2881. for ac_option in --version -v -V -qversion; do
  2882. { { ac_try="$ac_compiler $ac_option >&5"
  2883. case "(($ac_try" in
  2884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2885. *) ac_try_echo=$ac_try;;
  2886. esac
  2887. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2888. $as_echo "$ac_try_echo"; } >&5
  2889. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2890. ac_status=$?
  2891. if test -s conftest.err; then
  2892. sed '10a\
  2893. ... rest of stderr output deleted ...
  2894. 10q' conftest.err >conftest.er1
  2895. cat conftest.er1 >&5
  2896. fi
  2897. rm -f conftest.er1 conftest.err
  2898. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2899. test $ac_status = 0; }
  2900. done
  2901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2902. /* end confdefs.h. */
  2903. int
  2904. main ()
  2905. {
  2906. ;
  2907. return 0;
  2908. }
  2909. _ACEOF
  2910. ac_clean_files_save=$ac_clean_files
  2911. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2912. # Try to create an executable without -o first, disregard a.out.
  2913. # It will help us diagnose broken compilers, and finding out an intuition
  2914. # of exeext.
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2916. $as_echo_n "checking whether the C compiler works... " >&6; }
  2917. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2918. # The possible output files:
  2919. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2920. ac_rmfiles=
  2921. for ac_file in $ac_files
  2922. do
  2923. case $ac_file in
  2924. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2925. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2926. esac
  2927. done
  2928. rm -f $ac_rmfiles
  2929. if { { ac_try="$ac_link_default"
  2930. case "(($ac_try" in
  2931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2932. *) ac_try_echo=$ac_try;;
  2933. esac
  2934. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2935. $as_echo "$ac_try_echo"; } >&5
  2936. (eval "$ac_link_default") 2>&5
  2937. ac_status=$?
  2938. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2939. test $ac_status = 0; }; then :
  2940. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2941. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2942. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2943. # so that the user can short-circuit this test for compilers unknown to
  2944. # Autoconf.
  2945. for ac_file in $ac_files ''
  2946. do
  2947. test -f "$ac_file" || continue
  2948. case $ac_file in
  2949. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2950. ;;
  2951. [ab].out )
  2952. # We found the default executable, but exeext='' is most
  2953. # certainly right.
  2954. break;;
  2955. *.* )
  2956. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2957. then :; else
  2958. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2959. fi
  2960. # We set ac_cv_exeext here because the later test for it is not
  2961. # safe: cross compilers may not add the suffix if given an `-o'
  2962. # argument, so we may need to know it at that point already.
  2963. # Even if this section looks crufty: it has the advantage of
  2964. # actually working.
  2965. break;;
  2966. * )
  2967. break;;
  2968. esac
  2969. done
  2970. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2971. else
  2972. ac_file=''
  2973. fi
  2974. if test -z "$ac_file"; then :
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2976. $as_echo "no" >&6; }
  2977. $as_echo "$as_me: failed program was:" >&5
  2978. sed 's/^/| /' conftest.$ac_ext >&5
  2979. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2980. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2981. as_fn_error 77 "C compiler cannot create executables
  2982. See \`config.log' for more details" "$LINENO" 5; }
  2983. else
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2985. $as_echo "yes" >&6; }
  2986. fi
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2988. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2990. $as_echo "$ac_file" >&6; }
  2991. ac_exeext=$ac_cv_exeext
  2992. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2993. ac_clean_files=$ac_clean_files_save
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2995. $as_echo_n "checking for suffix of executables... " >&6; }
  2996. if { { ac_try="$ac_link"
  2997. case "(($ac_try" in
  2998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2999. *) ac_try_echo=$ac_try;;
  3000. esac
  3001. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3002. $as_echo "$ac_try_echo"; } >&5
  3003. (eval "$ac_link") 2>&5
  3004. ac_status=$?
  3005. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3006. test $ac_status = 0; }; then :
  3007. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3008. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3009. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3010. # `rm'.
  3011. for ac_file in conftest.exe conftest conftest.*; do
  3012. test -f "$ac_file" || continue
  3013. case $ac_file in
  3014. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3015. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3016. break;;
  3017. * ) break;;
  3018. esac
  3019. done
  3020. else
  3021. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3022. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3023. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3024. See \`config.log' for more details" "$LINENO" 5; }
  3025. fi
  3026. rm -f conftest conftest$ac_cv_exeext
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3028. $as_echo "$ac_cv_exeext" >&6; }
  3029. rm -f conftest.$ac_ext
  3030. EXEEXT=$ac_cv_exeext
  3031. ac_exeext=$EXEEXT
  3032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3033. /* end confdefs.h. */
  3034. #include <stdio.h>
  3035. int
  3036. main ()
  3037. {
  3038. FILE *f = fopen ("conftest.out", "w");
  3039. return ferror (f) || fclose (f) != 0;
  3040. ;
  3041. return 0;
  3042. }
  3043. _ACEOF
  3044. ac_clean_files="$ac_clean_files conftest.out"
  3045. # Check that the compiler produces executables we can run. If not, either
  3046. # the compiler is broken, or we cross compile.
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3048. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3049. if test "$cross_compiling" != yes; then
  3050. { { ac_try="$ac_link"
  3051. case "(($ac_try" in
  3052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3053. *) ac_try_echo=$ac_try;;
  3054. esac
  3055. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3056. $as_echo "$ac_try_echo"; } >&5
  3057. (eval "$ac_link") 2>&5
  3058. ac_status=$?
  3059. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3060. test $ac_status = 0; }
  3061. if { ac_try='./conftest$ac_cv_exeext'
  3062. { { case "(($ac_try" in
  3063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3064. *) ac_try_echo=$ac_try;;
  3065. esac
  3066. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3067. $as_echo "$ac_try_echo"; } >&5
  3068. (eval "$ac_try") 2>&5
  3069. ac_status=$?
  3070. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3071. test $ac_status = 0; }; }; then
  3072. cross_compiling=no
  3073. else
  3074. if test "$cross_compiling" = maybe; then
  3075. cross_compiling=yes
  3076. else
  3077. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3078. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3079. as_fn_error $? "cannot run C compiled programs.
  3080. If you meant to cross compile, use \`--host'.
  3081. See \`config.log' for more details" "$LINENO" 5; }
  3082. fi
  3083. fi
  3084. fi
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3086. $as_echo "$cross_compiling" >&6; }
  3087. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3088. ac_clean_files=$ac_clean_files_save
  3089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3090. $as_echo_n "checking for suffix of object files... " >&6; }
  3091. if ${ac_cv_objext+:} false; then :
  3092. $as_echo_n "(cached) " >&6
  3093. else
  3094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3095. /* end confdefs.h. */
  3096. int
  3097. main ()
  3098. {
  3099. ;
  3100. return 0;
  3101. }
  3102. _ACEOF
  3103. rm -f conftest.o conftest.obj
  3104. if { { ac_try="$ac_compile"
  3105. case "(($ac_try" in
  3106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3107. *) ac_try_echo=$ac_try;;
  3108. esac
  3109. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3110. $as_echo "$ac_try_echo"; } >&5
  3111. (eval "$ac_compile") 2>&5
  3112. ac_status=$?
  3113. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3114. test $ac_status = 0; }; then :
  3115. for ac_file in conftest.o conftest.obj conftest.*; do
  3116. test -f "$ac_file" || continue;
  3117. case $ac_file in
  3118. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3119. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3120. break;;
  3121. esac
  3122. done
  3123. else
  3124. $as_echo "$as_me: failed program was:" >&5
  3125. sed 's/^/| /' conftest.$ac_ext >&5
  3126. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3127. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3128. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3129. See \`config.log' for more details" "$LINENO" 5; }
  3130. fi
  3131. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3132. fi
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3134. $as_echo "$ac_cv_objext" >&6; }
  3135. OBJEXT=$ac_cv_objext
  3136. ac_objext=$OBJEXT
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3138. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3139. if ${ac_cv_c_compiler_gnu+:} false; then :
  3140. $as_echo_n "(cached) " >&6
  3141. else
  3142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3143. /* end confdefs.h. */
  3144. int
  3145. main ()
  3146. {
  3147. #ifndef __GNUC__
  3148. choke me
  3149. #endif
  3150. ;
  3151. return 0;
  3152. }
  3153. _ACEOF
  3154. if ac_fn_c_try_compile "$LINENO"; then :
  3155. ac_compiler_gnu=yes
  3156. else
  3157. ac_compiler_gnu=no
  3158. fi
  3159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3160. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3161. fi
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3163. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3164. if test $ac_compiler_gnu = yes; then
  3165. GCC=yes
  3166. else
  3167. GCC=
  3168. fi
  3169. ac_test_CFLAGS=${CFLAGS+set}
  3170. ac_save_CFLAGS=$CFLAGS
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3172. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3173. if ${ac_cv_prog_cc_g+:} false; then :
  3174. $as_echo_n "(cached) " >&6
  3175. else
  3176. ac_save_c_werror_flag=$ac_c_werror_flag
  3177. ac_c_werror_flag=yes
  3178. ac_cv_prog_cc_g=no
  3179. CFLAGS="-g"
  3180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3181. /* end confdefs.h. */
  3182. int
  3183. main ()
  3184. {
  3185. ;
  3186. return 0;
  3187. }
  3188. _ACEOF
  3189. if ac_fn_c_try_compile "$LINENO"; then :
  3190. ac_cv_prog_cc_g=yes
  3191. else
  3192. CFLAGS=""
  3193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3194. /* end confdefs.h. */
  3195. int
  3196. main ()
  3197. {
  3198. ;
  3199. return 0;
  3200. }
  3201. _ACEOF
  3202. if ac_fn_c_try_compile "$LINENO"; then :
  3203. else
  3204. ac_c_werror_flag=$ac_save_c_werror_flag
  3205. CFLAGS="-g"
  3206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3207. /* end confdefs.h. */
  3208. int
  3209. main ()
  3210. {
  3211. ;
  3212. return 0;
  3213. }
  3214. _ACEOF
  3215. if ac_fn_c_try_compile "$LINENO"; then :
  3216. ac_cv_prog_cc_g=yes
  3217. fi
  3218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3219. fi
  3220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3221. fi
  3222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3223. ac_c_werror_flag=$ac_save_c_werror_flag
  3224. fi
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3226. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3227. if test "$ac_test_CFLAGS" = set; then
  3228. CFLAGS=$ac_save_CFLAGS
  3229. elif test $ac_cv_prog_cc_g = yes; then
  3230. if test "$GCC" = yes; then
  3231. CFLAGS="-g -O2"
  3232. else
  3233. CFLAGS="-g"
  3234. fi
  3235. else
  3236. if test "$GCC" = yes; then
  3237. CFLAGS="-O2"
  3238. else
  3239. CFLAGS=
  3240. fi
  3241. fi
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3243. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3244. if ${ac_cv_prog_cc_c89+:} false; then :
  3245. $as_echo_n "(cached) " >&6
  3246. else
  3247. ac_cv_prog_cc_c89=no
  3248. ac_save_CC=$CC
  3249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3250. /* end confdefs.h. */
  3251. #include <stdarg.h>
  3252. #include <stdio.h>
  3253. struct stat;
  3254. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3255. struct buf { int x; };
  3256. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3257. static char *e (p, i)
  3258. char **p;
  3259. int i;
  3260. {
  3261. return p[i];
  3262. }
  3263. static char *f (char * (*g) (char **, int), char **p, ...)
  3264. {
  3265. char *s;
  3266. va_list v;
  3267. va_start (v,p);
  3268. s = g (p, va_arg (v,int));
  3269. va_end (v);
  3270. return s;
  3271. }
  3272. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3273. function prototypes and stuff, but not '\xHH' hex character constants.
  3274. These don't provoke an error unfortunately, instead are silently treated
  3275. as 'x'. The following induces an error, until -std is added to get
  3276. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3277. array size at least. It's necessary to write '\x00'==0 to get something
  3278. that's true only with -std. */
  3279. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3280. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3281. inside strings and character constants. */
  3282. #define FOO(x) 'x'
  3283. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3284. int test (int i, double x);
  3285. struct s1 {int (*f) (int a);};
  3286. struct s2 {int (*f) (double a);};
  3287. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3288. int argc;
  3289. char **argv;
  3290. int
  3291. main ()
  3292. {
  3293. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3294. ;
  3295. return 0;
  3296. }
  3297. _ACEOF
  3298. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3299. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3300. do
  3301. CC="$ac_save_CC $ac_arg"
  3302. if ac_fn_c_try_compile "$LINENO"; then :
  3303. ac_cv_prog_cc_c89=$ac_arg
  3304. fi
  3305. rm -f core conftest.err conftest.$ac_objext
  3306. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3307. done
  3308. rm -f conftest.$ac_ext
  3309. CC=$ac_save_CC
  3310. fi
  3311. # AC_CACHE_VAL
  3312. case "x$ac_cv_prog_cc_c89" in
  3313. x)
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3315. $as_echo "none needed" >&6; } ;;
  3316. xno)
  3317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3318. $as_echo "unsupported" >&6; } ;;
  3319. *)
  3320. CC="$CC $ac_cv_prog_cc_c89"
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3322. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3323. esac
  3324. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3325. fi
  3326. ac_ext=c
  3327. ac_cpp='$CPP $CPPFLAGS'
  3328. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3329. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3330. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3332. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3333. if ${ac_cv_path_SED+:} false; then :
  3334. $as_echo_n "(cached) " >&6
  3335. else
  3336. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3337. for ac_i in 1 2 3 4 5 6 7; do
  3338. ac_script="$ac_script$as_nl$ac_script"
  3339. done
  3340. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3341. { ac_script=; unset ac_script;}
  3342. if test -z "$SED"; then
  3343. ac_path_SED_found=false
  3344. # Loop through the user's path and test for each of PROGNAME-LIST
  3345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3346. for as_dir in $PATH
  3347. do
  3348. IFS=$as_save_IFS
  3349. test -z "$as_dir" && as_dir=.
  3350. for ac_prog in sed gsed; do
  3351. for ac_exec_ext in '' $ac_executable_extensions; do
  3352. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3353. as_fn_executable_p "$ac_path_SED" || continue
  3354. # Check for GNU ac_path_SED and select it if it is found.
  3355. # Check for GNU $ac_path_SED
  3356. case `"$ac_path_SED" --version 2>&1` in
  3357. *GNU*)
  3358. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3359. *)
  3360. ac_count=0
  3361. $as_echo_n 0123456789 >"conftest.in"
  3362. while :
  3363. do
  3364. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3365. mv "conftest.tmp" "conftest.in"
  3366. cp "conftest.in" "conftest.nl"
  3367. $as_echo '' >> "conftest.nl"
  3368. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3369. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3370. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3371. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3372. # Best one so far, save it but keep looking for a better one
  3373. ac_cv_path_SED="$ac_path_SED"
  3374. ac_path_SED_max=$ac_count
  3375. fi
  3376. # 10*(2^10) chars as input seems more than enough
  3377. test $ac_count -gt 10 && break
  3378. done
  3379. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3380. esac
  3381. $ac_path_SED_found && break 3
  3382. done
  3383. done
  3384. done
  3385. IFS=$as_save_IFS
  3386. if test -z "$ac_cv_path_SED"; then
  3387. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3388. fi
  3389. else
  3390. ac_cv_path_SED=$SED
  3391. fi
  3392. fi
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3394. $as_echo "$ac_cv_path_SED" >&6; }
  3395. SED="$ac_cv_path_SED"
  3396. rm -f conftest.sed
  3397. test -z "$SED" && SED=sed
  3398. Xsed="$SED -e 1s/^X//"
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3400. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3401. if ${ac_cv_path_GREP+:} false; then :
  3402. $as_echo_n "(cached) " >&6
  3403. else
  3404. if test -z "$GREP"; then
  3405. ac_path_GREP_found=false
  3406. # Loop through the user's path and test for each of PROGNAME-LIST
  3407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3408. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3409. do
  3410. IFS=$as_save_IFS
  3411. test -z "$as_dir" && as_dir=.
  3412. for ac_prog in grep ggrep; do
  3413. for ac_exec_ext in '' $ac_executable_extensions; do
  3414. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3415. as_fn_executable_p "$ac_path_GREP" || continue
  3416. # Check for GNU ac_path_GREP and select it if it is found.
  3417. # Check for GNU $ac_path_GREP
  3418. case `"$ac_path_GREP" --version 2>&1` in
  3419. *GNU*)
  3420. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3421. *)
  3422. ac_count=0
  3423. $as_echo_n 0123456789 >"conftest.in"
  3424. while :
  3425. do
  3426. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3427. mv "conftest.tmp" "conftest.in"
  3428. cp "conftest.in" "conftest.nl"
  3429. $as_echo 'GREP' >> "conftest.nl"
  3430. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3431. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3432. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3433. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3434. # Best one so far, save it but keep looking for a better one
  3435. ac_cv_path_GREP="$ac_path_GREP"
  3436. ac_path_GREP_max=$ac_count
  3437. fi
  3438. # 10*(2^10) chars as input seems more than enough
  3439. test $ac_count -gt 10 && break
  3440. done
  3441. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3442. esac
  3443. $ac_path_GREP_found && break 3
  3444. done
  3445. done
  3446. done
  3447. IFS=$as_save_IFS
  3448. if test -z "$ac_cv_path_GREP"; then
  3449. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3450. fi
  3451. else
  3452. ac_cv_path_GREP=$GREP
  3453. fi
  3454. fi
  3455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3456. $as_echo "$ac_cv_path_GREP" >&6; }
  3457. GREP="$ac_cv_path_GREP"
  3458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3459. $as_echo_n "checking for egrep... " >&6; }
  3460. if ${ac_cv_path_EGREP+:} false; then :
  3461. $as_echo_n "(cached) " >&6
  3462. else
  3463. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3464. then ac_cv_path_EGREP="$GREP -E"
  3465. else
  3466. if test -z "$EGREP"; then
  3467. ac_path_EGREP_found=false
  3468. # Loop through the user's path and test for each of PROGNAME-LIST
  3469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3470. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3471. do
  3472. IFS=$as_save_IFS
  3473. test -z "$as_dir" && as_dir=.
  3474. for ac_prog in egrep; do
  3475. for ac_exec_ext in '' $ac_executable_extensions; do
  3476. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3477. as_fn_executable_p "$ac_path_EGREP" || continue
  3478. # Check for GNU ac_path_EGREP and select it if it is found.
  3479. # Check for GNU $ac_path_EGREP
  3480. case `"$ac_path_EGREP" --version 2>&1` in
  3481. *GNU*)
  3482. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3483. *)
  3484. ac_count=0
  3485. $as_echo_n 0123456789 >"conftest.in"
  3486. while :
  3487. do
  3488. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3489. mv "conftest.tmp" "conftest.in"
  3490. cp "conftest.in" "conftest.nl"
  3491. $as_echo 'EGREP' >> "conftest.nl"
  3492. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3493. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3494. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3495. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3496. # Best one so far, save it but keep looking for a better one
  3497. ac_cv_path_EGREP="$ac_path_EGREP"
  3498. ac_path_EGREP_max=$ac_count
  3499. fi
  3500. # 10*(2^10) chars as input seems more than enough
  3501. test $ac_count -gt 10 && break
  3502. done
  3503. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3504. esac
  3505. $ac_path_EGREP_found && break 3
  3506. done
  3507. done
  3508. done
  3509. IFS=$as_save_IFS
  3510. if test -z "$ac_cv_path_EGREP"; then
  3511. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3512. fi
  3513. else
  3514. ac_cv_path_EGREP=$EGREP
  3515. fi
  3516. fi
  3517. fi
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3519. $as_echo "$ac_cv_path_EGREP" >&6; }
  3520. EGREP="$ac_cv_path_EGREP"
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3522. $as_echo_n "checking for fgrep... " >&6; }
  3523. if ${ac_cv_path_FGREP+:} false; then :
  3524. $as_echo_n "(cached) " >&6
  3525. else
  3526. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3527. then ac_cv_path_FGREP="$GREP -F"
  3528. else
  3529. if test -z "$FGREP"; then
  3530. ac_path_FGREP_found=false
  3531. # Loop through the user's path and test for each of PROGNAME-LIST
  3532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3533. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3534. do
  3535. IFS=$as_save_IFS
  3536. test -z "$as_dir" && as_dir=.
  3537. for ac_prog in fgrep; do
  3538. for ac_exec_ext in '' $ac_executable_extensions; do
  3539. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3540. as_fn_executable_p "$ac_path_FGREP" || continue
  3541. # Check for GNU ac_path_FGREP and select it if it is found.
  3542. # Check for GNU $ac_path_FGREP
  3543. case `"$ac_path_FGREP" --version 2>&1` in
  3544. *GNU*)
  3545. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3546. *)
  3547. ac_count=0
  3548. $as_echo_n 0123456789 >"conftest.in"
  3549. while :
  3550. do
  3551. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3552. mv "conftest.tmp" "conftest.in"
  3553. cp "conftest.in" "conftest.nl"
  3554. $as_echo 'FGREP' >> "conftest.nl"
  3555. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3556. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3557. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3558. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3559. # Best one so far, save it but keep looking for a better one
  3560. ac_cv_path_FGREP="$ac_path_FGREP"
  3561. ac_path_FGREP_max=$ac_count
  3562. fi
  3563. # 10*(2^10) chars as input seems more than enough
  3564. test $ac_count -gt 10 && break
  3565. done
  3566. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3567. esac
  3568. $ac_path_FGREP_found && break 3
  3569. done
  3570. done
  3571. done
  3572. IFS=$as_save_IFS
  3573. if test -z "$ac_cv_path_FGREP"; then
  3574. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3575. fi
  3576. else
  3577. ac_cv_path_FGREP=$FGREP
  3578. fi
  3579. fi
  3580. fi
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3582. $as_echo "$ac_cv_path_FGREP" >&6; }
  3583. FGREP="$ac_cv_path_FGREP"
  3584. test -z "$GREP" && GREP=grep
  3585. # Check whether --with-gnu-ld was given.
  3586. if test "${with_gnu_ld+set}" = set; then :
  3587. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3588. else
  3589. with_gnu_ld=no
  3590. fi
  3591. ac_prog=ld
  3592. if test "$GCC" = yes; then
  3593. # Check if gcc -print-prog-name=ld gives a path.
  3594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3595. $as_echo_n "checking for ld used by $CC... " >&6; }
  3596. case $host in
  3597. *-*-mingw*)
  3598. # gcc leaves a trailing carriage return which upsets mingw
  3599. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3600. *)
  3601. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3602. esac
  3603. case $ac_prog in
  3604. # Accept absolute paths.
  3605. [\\/]* | ?:[\\/]*)
  3606. re_direlt='/[^/][^/]*/\.\./'
  3607. # Canonicalize the pathname of ld
  3608. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3609. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3610. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3611. done
  3612. test -z "$LD" && LD="$ac_prog"
  3613. ;;
  3614. "")
  3615. # If it fails, then pretend we aren't using GCC.
  3616. ac_prog=ld
  3617. ;;
  3618. *)
  3619. # If it is relative, then search for the first ld in PATH.
  3620. with_gnu_ld=unknown
  3621. ;;
  3622. esac
  3623. elif test "$with_gnu_ld" = yes; then
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3625. $as_echo_n "checking for GNU ld... " >&6; }
  3626. else
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3628. $as_echo_n "checking for non-GNU ld... " >&6; }
  3629. fi
  3630. if ${lt_cv_path_LD+:} false; then :
  3631. $as_echo_n "(cached) " >&6
  3632. else
  3633. if test -z "$LD"; then
  3634. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3635. for ac_dir in $PATH; do
  3636. IFS="$lt_save_ifs"
  3637. test -z "$ac_dir" && ac_dir=.
  3638. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3639. lt_cv_path_LD="$ac_dir/$ac_prog"
  3640. # Check to see if the program is GNU ld. I'd rather use --version,
  3641. # but apparently some variants of GNU ld only accept -v.
  3642. # Break only if it was the GNU/non-GNU ld that we prefer.
  3643. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3644. *GNU* | *'with BFD'*)
  3645. test "$with_gnu_ld" != no && break
  3646. ;;
  3647. *)
  3648. test "$with_gnu_ld" != yes && break
  3649. ;;
  3650. esac
  3651. fi
  3652. done
  3653. IFS="$lt_save_ifs"
  3654. else
  3655. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3656. fi
  3657. fi
  3658. LD="$lt_cv_path_LD"
  3659. if test -n "$LD"; then
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3661. $as_echo "$LD" >&6; }
  3662. else
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3664. $as_echo "no" >&6; }
  3665. fi
  3666. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3668. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3669. if ${lt_cv_prog_gnu_ld+:} false; then :
  3670. $as_echo_n "(cached) " >&6
  3671. else
  3672. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3673. case `$LD -v 2>&1 </dev/null` in
  3674. *GNU* | *'with BFD'*)
  3675. lt_cv_prog_gnu_ld=yes
  3676. ;;
  3677. *)
  3678. lt_cv_prog_gnu_ld=no
  3679. ;;
  3680. esac
  3681. fi
  3682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3683. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3684. with_gnu_ld=$lt_cv_prog_gnu_ld
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3686. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3687. if ${lt_cv_path_NM+:} false; then :
  3688. $as_echo_n "(cached) " >&6
  3689. else
  3690. if test -n "$NM"; then
  3691. # Let the user override the test.
  3692. lt_cv_path_NM="$NM"
  3693. else
  3694. lt_nm_to_check="${ac_tool_prefix}nm"
  3695. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3696. lt_nm_to_check="$lt_nm_to_check nm"
  3697. fi
  3698. for lt_tmp_nm in $lt_nm_to_check; do
  3699. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3700. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3701. IFS="$lt_save_ifs"
  3702. test -z "$ac_dir" && ac_dir=.
  3703. tmp_nm="$ac_dir/$lt_tmp_nm"
  3704. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3705. # Check to see if the nm accepts a BSD-compat flag.
  3706. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3707. # nm: unknown option "B" ignored
  3708. # Tru64's nm complains that /dev/null is an invalid object file
  3709. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3710. */dev/null* | *'Invalid file or object type'*)
  3711. lt_cv_path_NM="$tmp_nm -B"
  3712. break
  3713. ;;
  3714. *)
  3715. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3716. */dev/null*)
  3717. lt_cv_path_NM="$tmp_nm -p"
  3718. break
  3719. ;;
  3720. *)
  3721. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3722. continue # so that we can try to find one that supports BSD flags
  3723. ;;
  3724. esac
  3725. ;;
  3726. esac
  3727. fi
  3728. done
  3729. IFS="$lt_save_ifs"
  3730. done
  3731. : ${lt_cv_path_NM=no}
  3732. fi
  3733. fi
  3734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3735. $as_echo "$lt_cv_path_NM" >&6; }
  3736. if test "$lt_cv_path_NM" != "no"; then
  3737. NM="$lt_cv_path_NM"
  3738. else
  3739. # Didn't find any BSD compatible name lister, look for dumpbin.
  3740. if test -n "$DUMPBIN"; then :
  3741. # Let the user override the test.
  3742. else
  3743. if test -n "$ac_tool_prefix"; then
  3744. for ac_prog in dumpbin "link -dump"
  3745. do
  3746. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3747. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3749. $as_echo_n "checking for $ac_word... " >&6; }
  3750. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3751. $as_echo_n "(cached) " >&6
  3752. else
  3753. if test -n "$DUMPBIN"; then
  3754. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3755. else
  3756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3757. for as_dir in $PATH
  3758. do
  3759. IFS=$as_save_IFS
  3760. test -z "$as_dir" && as_dir=.
  3761. for ac_exec_ext in '' $ac_executable_extensions; do
  3762. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3763. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3764. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3765. break 2
  3766. fi
  3767. done
  3768. done
  3769. IFS=$as_save_IFS
  3770. fi
  3771. fi
  3772. DUMPBIN=$ac_cv_prog_DUMPBIN
  3773. if test -n "$DUMPBIN"; then
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3775. $as_echo "$DUMPBIN" >&6; }
  3776. else
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3778. $as_echo "no" >&6; }
  3779. fi
  3780. test -n "$DUMPBIN" && break
  3781. done
  3782. fi
  3783. if test -z "$DUMPBIN"; then
  3784. ac_ct_DUMPBIN=$DUMPBIN
  3785. for ac_prog in dumpbin "link -dump"
  3786. do
  3787. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3788. set dummy $ac_prog; ac_word=$2
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3790. $as_echo_n "checking for $ac_word... " >&6; }
  3791. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3792. $as_echo_n "(cached) " >&6
  3793. else
  3794. if test -n "$ac_ct_DUMPBIN"; then
  3795. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3796. else
  3797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3798. for as_dir in $PATH
  3799. do
  3800. IFS=$as_save_IFS
  3801. test -z "$as_dir" && as_dir=.
  3802. for ac_exec_ext in '' $ac_executable_extensions; do
  3803. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3804. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3806. break 2
  3807. fi
  3808. done
  3809. done
  3810. IFS=$as_save_IFS
  3811. fi
  3812. fi
  3813. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3814. if test -n "$ac_ct_DUMPBIN"; then
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3816. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3817. else
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3819. $as_echo "no" >&6; }
  3820. fi
  3821. test -n "$ac_ct_DUMPBIN" && break
  3822. done
  3823. if test "x$ac_ct_DUMPBIN" = x; then
  3824. DUMPBIN=":"
  3825. else
  3826. case $cross_compiling:$ac_tool_warned in
  3827. yes:)
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3829. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3830. ac_tool_warned=yes ;;
  3831. esac
  3832. DUMPBIN=$ac_ct_DUMPBIN
  3833. fi
  3834. fi
  3835. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3836. *COFF*)
  3837. DUMPBIN="$DUMPBIN -symbols"
  3838. ;;
  3839. *)
  3840. DUMPBIN=:
  3841. ;;
  3842. esac
  3843. fi
  3844. if test "$DUMPBIN" != ":"; then
  3845. NM="$DUMPBIN"
  3846. fi
  3847. fi
  3848. test -z "$NM" && NM=nm
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3850. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3851. if ${lt_cv_nm_interface+:} false; then :
  3852. $as_echo_n "(cached) " >&6
  3853. else
  3854. lt_cv_nm_interface="BSD nm"
  3855. echo "int some_variable = 0;" > conftest.$ac_ext
  3856. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3857. (eval "$ac_compile" 2>conftest.err)
  3858. cat conftest.err >&5
  3859. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3860. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3861. cat conftest.err >&5
  3862. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3863. cat conftest.out >&5
  3864. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3865. lt_cv_nm_interface="MS dumpbin"
  3866. fi
  3867. rm -f conftest*
  3868. fi
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3870. $as_echo "$lt_cv_nm_interface" >&6; }
  3871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3872. $as_echo_n "checking whether ln -s works... " >&6; }
  3873. LN_S=$as_ln_s
  3874. if test "$LN_S" = "ln -s"; then
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3876. $as_echo "yes" >&6; }
  3877. else
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3879. $as_echo "no, using $LN_S" >&6; }
  3880. fi
  3881. # find the maximum length of command line arguments
  3882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3883. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3884. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3885. $as_echo_n "(cached) " >&6
  3886. else
  3887. i=0
  3888. teststring="ABCD"
  3889. case $build_os in
  3890. msdosdjgpp*)
  3891. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3892. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3893. # during glob expansion). Even if it were fixed, the result of this
  3894. # check would be larger than it should be.
  3895. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3896. ;;
  3897. gnu*)
  3898. # Under GNU Hurd, this test is not required because there is
  3899. # no limit to the length of command line arguments.
  3900. # Libtool will interpret -1 as no limit whatsoever
  3901. lt_cv_sys_max_cmd_len=-1;
  3902. ;;
  3903. cygwin* | mingw* | cegcc*)
  3904. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3905. # about 5 minutes as the teststring grows exponentially.
  3906. # Worse, since 9x/ME are not pre-emptively multitasking,
  3907. # you end up with a "frozen" computer, even though with patience
  3908. # the test eventually succeeds (with a max line length of 256k).
  3909. # Instead, let's just punt: use the minimum linelength reported by
  3910. # all of the supported platforms: 8192 (on NT/2K/XP).
  3911. lt_cv_sys_max_cmd_len=8192;
  3912. ;;
  3913. mint*)
  3914. # On MiNT this can take a long time and run out of memory.
  3915. lt_cv_sys_max_cmd_len=8192;
  3916. ;;
  3917. amigaos*)
  3918. # On AmigaOS with pdksh, this test takes hours, literally.
  3919. # So we just punt and use a minimum line length of 8192.
  3920. lt_cv_sys_max_cmd_len=8192;
  3921. ;;
  3922. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3923. # This has been around since 386BSD, at least. Likely further.
  3924. if test -x /sbin/sysctl; then
  3925. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3926. elif test -x /usr/sbin/sysctl; then
  3927. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3928. else
  3929. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3930. fi
  3931. # And add a safety zone
  3932. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3933. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3934. ;;
  3935. interix*)
  3936. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3937. lt_cv_sys_max_cmd_len=196608
  3938. ;;
  3939. os2*)
  3940. # The test takes a long time on OS/2.
  3941. lt_cv_sys_max_cmd_len=8192
  3942. ;;
  3943. osf*)
  3944. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3945. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3946. # nice to cause kernel panics so lets avoid the loop below.
  3947. # First set a reasonable default.
  3948. lt_cv_sys_max_cmd_len=16384
  3949. #
  3950. if test -x /sbin/sysconfig; then
  3951. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3952. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3953. esac
  3954. fi
  3955. ;;
  3956. sco3.2v5*)
  3957. lt_cv_sys_max_cmd_len=102400
  3958. ;;
  3959. sysv5* | sco5v6* | sysv4.2uw2*)
  3960. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3961. if test -n "$kargmax"; then
  3962. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3963. else
  3964. lt_cv_sys_max_cmd_len=32768
  3965. fi
  3966. ;;
  3967. *)
  3968. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3969. if test -n "$lt_cv_sys_max_cmd_len"; then
  3970. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3971. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3972. else
  3973. # Make teststring a little bigger before we do anything with it.
  3974. # a 1K string should be a reasonable start.
  3975. for i in 1 2 3 4 5 6 7 8 ; do
  3976. teststring=$teststring$teststring
  3977. done
  3978. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3979. # If test is not a shell built-in, we'll probably end up computing a
  3980. # maximum length that is only half of the actual maximum length, but
  3981. # we can't tell.
  3982. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3983. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3984. test $i != 17 # 1/2 MB should be enough
  3985. do
  3986. i=`expr $i + 1`
  3987. teststring=$teststring$teststring
  3988. done
  3989. # Only check the string length outside the loop.
  3990. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3991. teststring=
  3992. # Add a significant safety factor because C++ compilers can tack on
  3993. # massive amounts of additional arguments before passing them to the
  3994. # linker. It appears as though 1/2 is a usable value.
  3995. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3996. fi
  3997. ;;
  3998. esac
  3999. fi
  4000. if test -n $lt_cv_sys_max_cmd_len ; then
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4002. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4003. else
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4005. $as_echo "none" >&6; }
  4006. fi
  4007. max_cmd_len=$lt_cv_sys_max_cmd_len
  4008. : ${CP="cp -f"}
  4009. : ${MV="mv -f"}
  4010. : ${RM="rm -f"}
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4012. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4013. # Try some XSI features
  4014. xsi_shell=no
  4015. ( _lt_dummy="a/b/c"
  4016. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4017. = c,a/b,b/c, \
  4018. && eval 'test $(( 1 + 1 )) -eq 2 \
  4019. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4020. && xsi_shell=yes
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4022. $as_echo "$xsi_shell" >&6; }
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4024. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4025. lt_shell_append=no
  4026. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4027. >/dev/null 2>&1 \
  4028. && lt_shell_append=yes
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4030. $as_echo "$lt_shell_append" >&6; }
  4031. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4032. lt_unset=unset
  4033. else
  4034. lt_unset=false
  4035. fi
  4036. # test EBCDIC or ASCII
  4037. case `echo X|tr X '\101'` in
  4038. A) # ASCII based system
  4039. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4040. lt_SP2NL='tr \040 \012'
  4041. lt_NL2SP='tr \015\012 \040\040'
  4042. ;;
  4043. *) # EBCDIC based system
  4044. lt_SP2NL='tr \100 \n'
  4045. lt_NL2SP='tr \r\n \100\100'
  4046. ;;
  4047. esac
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4049. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4050. if ${lt_cv_to_host_file_cmd+:} false; then :
  4051. $as_echo_n "(cached) " >&6
  4052. else
  4053. case $host in
  4054. *-*-mingw* )
  4055. case $build in
  4056. *-*-mingw* ) # actually msys
  4057. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4058. ;;
  4059. *-*-cygwin* )
  4060. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4061. ;;
  4062. * ) # otherwise, assume *nix
  4063. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4064. ;;
  4065. esac
  4066. ;;
  4067. *-*-cygwin* )
  4068. case $build in
  4069. *-*-mingw* ) # actually msys
  4070. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4071. ;;
  4072. *-*-cygwin* )
  4073. lt_cv_to_host_file_cmd=func_convert_file_noop
  4074. ;;
  4075. * ) # otherwise, assume *nix
  4076. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4077. ;;
  4078. esac
  4079. ;;
  4080. * ) # unhandled hosts (and "normal" native builds)
  4081. lt_cv_to_host_file_cmd=func_convert_file_noop
  4082. ;;
  4083. esac
  4084. fi
  4085. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4087. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4089. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4090. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4091. $as_echo_n "(cached) " >&6
  4092. else
  4093. #assume ordinary cross tools, or native build.
  4094. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4095. case $host in
  4096. *-*-mingw* )
  4097. case $build in
  4098. *-*-mingw* ) # actually msys
  4099. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4100. ;;
  4101. esac
  4102. ;;
  4103. esac
  4104. fi
  4105. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4107. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4109. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4110. if ${lt_cv_ld_reload_flag+:} false; then :
  4111. $as_echo_n "(cached) " >&6
  4112. else
  4113. lt_cv_ld_reload_flag='-r'
  4114. fi
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4116. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4117. reload_flag=$lt_cv_ld_reload_flag
  4118. case $reload_flag in
  4119. "" | " "*) ;;
  4120. *) reload_flag=" $reload_flag" ;;
  4121. esac
  4122. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4123. case $host_os in
  4124. cygwin* | mingw* | pw32* | cegcc*)
  4125. if test "$GCC" != yes; then
  4126. reload_cmds=false
  4127. fi
  4128. ;;
  4129. darwin*)
  4130. if test "$GCC" = yes; then
  4131. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4132. else
  4133. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4134. fi
  4135. ;;
  4136. esac
  4137. if test -n "$ac_tool_prefix"; then
  4138. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4139. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4141. $as_echo_n "checking for $ac_word... " >&6; }
  4142. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4143. $as_echo_n "(cached) " >&6
  4144. else
  4145. if test -n "$OBJDUMP"; then
  4146. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4147. else
  4148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4149. for as_dir in $PATH
  4150. do
  4151. IFS=$as_save_IFS
  4152. test -z "$as_dir" && as_dir=.
  4153. for ac_exec_ext in '' $ac_executable_extensions; do
  4154. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4155. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4156. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4157. break 2
  4158. fi
  4159. done
  4160. done
  4161. IFS=$as_save_IFS
  4162. fi
  4163. fi
  4164. OBJDUMP=$ac_cv_prog_OBJDUMP
  4165. if test -n "$OBJDUMP"; then
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4167. $as_echo "$OBJDUMP" >&6; }
  4168. else
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4170. $as_echo "no" >&6; }
  4171. fi
  4172. fi
  4173. if test -z "$ac_cv_prog_OBJDUMP"; then
  4174. ac_ct_OBJDUMP=$OBJDUMP
  4175. # Extract the first word of "objdump", so it can be a program name with args.
  4176. set dummy objdump; ac_word=$2
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4178. $as_echo_n "checking for $ac_word... " >&6; }
  4179. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4180. $as_echo_n "(cached) " >&6
  4181. else
  4182. if test -n "$ac_ct_OBJDUMP"; then
  4183. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4184. else
  4185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4186. for as_dir in $PATH
  4187. do
  4188. IFS=$as_save_IFS
  4189. test -z "$as_dir" && as_dir=.
  4190. for ac_exec_ext in '' $ac_executable_extensions; do
  4191. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4192. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4193. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4194. break 2
  4195. fi
  4196. done
  4197. done
  4198. IFS=$as_save_IFS
  4199. fi
  4200. fi
  4201. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4202. if test -n "$ac_ct_OBJDUMP"; then
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4204. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4205. else
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4207. $as_echo "no" >&6; }
  4208. fi
  4209. if test "x$ac_ct_OBJDUMP" = x; then
  4210. OBJDUMP="false"
  4211. else
  4212. case $cross_compiling:$ac_tool_warned in
  4213. yes:)
  4214. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4215. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4216. ac_tool_warned=yes ;;
  4217. esac
  4218. OBJDUMP=$ac_ct_OBJDUMP
  4219. fi
  4220. else
  4221. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4222. fi
  4223. test -z "$OBJDUMP" && OBJDUMP=objdump
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4225. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4226. if ${lt_cv_deplibs_check_method+:} false; then :
  4227. $as_echo_n "(cached) " >&6
  4228. else
  4229. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4230. lt_cv_file_magic_test_file=
  4231. lt_cv_deplibs_check_method='unknown'
  4232. # Need to set the preceding variable on all platforms that support
  4233. # interlibrary dependencies.
  4234. # 'none' -- dependencies not supported.
  4235. # `unknown' -- same as none, but documents that we really don't know.
  4236. # 'pass_all' -- all dependencies passed with no checks.
  4237. # 'test_compile' -- check by making test program.
  4238. # 'file_magic [[regex]]' -- check by looking for files in library path
  4239. # which responds to the $file_magic_cmd with a given extended regex.
  4240. # If you have `file' or equivalent on your system and you're not sure
  4241. # whether `pass_all' will *always* work, you probably want this one.
  4242. case $host_os in
  4243. aix[4-9]*)
  4244. lt_cv_deplibs_check_method=pass_all
  4245. ;;
  4246. beos*)
  4247. lt_cv_deplibs_check_method=pass_all
  4248. ;;
  4249. bsdi[45]*)
  4250. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4251. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4252. lt_cv_file_magic_test_file=/shlib/libc.so
  4253. ;;
  4254. cygwin*)
  4255. # func_win32_libid is a shell function defined in ltmain.sh
  4256. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4257. lt_cv_file_magic_cmd='func_win32_libid'
  4258. lt_cv_deplibs_check_method=pass_all
  4259. ;;
  4260. mingw* | pw32*)
  4261. # Base MSYS/MinGW do not provide the 'file' command needed by
  4262. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4263. # unless we find 'file', for example because we are cross-compiling.
  4264. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4265. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4266. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4267. lt_cv_file_magic_cmd='func_win32_libid'
  4268. else
  4269. # Keep this pattern in sync with the one in func_win32_libid.
  4270. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4271. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4272. fi
  4273. lt_cv_deplibs_check_method=pass_all
  4274. ;;
  4275. cegcc*)
  4276. # use the weaker test based on 'objdump'. See mingw*.
  4277. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4278. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4279. ;;
  4280. darwin* | rhapsody*)
  4281. lt_cv_deplibs_check_method=pass_all
  4282. ;;
  4283. freebsd* | dragonfly*)
  4284. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4285. case $host_cpu in
  4286. i*86 )
  4287. # Not sure whether the presence of OpenBSD here was a mistake.
  4288. # Let's accept both of them until this is cleared up.
  4289. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4290. lt_cv_file_magic_cmd=/usr/bin/file
  4291. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4292. ;;
  4293. esac
  4294. else
  4295. lt_cv_deplibs_check_method=pass_all
  4296. fi
  4297. ;;
  4298. gnu*)
  4299. lt_cv_deplibs_check_method=pass_all
  4300. ;;
  4301. haiku*)
  4302. lt_cv_deplibs_check_method=pass_all
  4303. ;;
  4304. hpux10.20* | hpux11*)
  4305. lt_cv_file_magic_cmd=/usr/bin/file
  4306. case $host_cpu in
  4307. ia64*)
  4308. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4309. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4310. ;;
  4311. hppa*64*)
  4312. 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]'
  4313. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4314. ;;
  4315. *)
  4316. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4317. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4318. ;;
  4319. esac
  4320. ;;
  4321. interix[3-9]*)
  4322. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4323. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4324. ;;
  4325. irix5* | irix6* | nonstopux*)
  4326. case $LD in
  4327. *-32|*"-32 ") libmagic=32-bit;;
  4328. *-n32|*"-n32 ") libmagic=N32;;
  4329. *-64|*"-64 ") libmagic=64-bit;;
  4330. *) libmagic=never-match;;
  4331. esac
  4332. lt_cv_deplibs_check_method=pass_all
  4333. ;;
  4334. # This must be glibc/ELF.
  4335. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4336. lt_cv_deplibs_check_method=pass_all
  4337. ;;
  4338. netbsd*)
  4339. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4340. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4341. else
  4342. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4343. fi
  4344. ;;
  4345. newos6*)
  4346. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4347. lt_cv_file_magic_cmd=/usr/bin/file
  4348. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4349. ;;
  4350. *nto* | *qnx*)
  4351. lt_cv_deplibs_check_method=pass_all
  4352. ;;
  4353. openbsd*)
  4354. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4355. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4356. else
  4357. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4358. fi
  4359. ;;
  4360. osf3* | osf4* | osf5*)
  4361. lt_cv_deplibs_check_method=pass_all
  4362. ;;
  4363. rdos*)
  4364. lt_cv_deplibs_check_method=pass_all
  4365. ;;
  4366. solaris*)
  4367. lt_cv_deplibs_check_method=pass_all
  4368. ;;
  4369. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4370. lt_cv_deplibs_check_method=pass_all
  4371. ;;
  4372. sysv4 | sysv4.3*)
  4373. case $host_vendor in
  4374. motorola)
  4375. 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]'
  4376. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4377. ;;
  4378. ncr)
  4379. lt_cv_deplibs_check_method=pass_all
  4380. ;;
  4381. sequent)
  4382. lt_cv_file_magic_cmd='/bin/file'
  4383. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4384. ;;
  4385. sni)
  4386. lt_cv_file_magic_cmd='/bin/file'
  4387. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4388. lt_cv_file_magic_test_file=/lib/libc.so
  4389. ;;
  4390. siemens)
  4391. lt_cv_deplibs_check_method=pass_all
  4392. ;;
  4393. pc)
  4394. lt_cv_deplibs_check_method=pass_all
  4395. ;;
  4396. esac
  4397. ;;
  4398. tpf*)
  4399. lt_cv_deplibs_check_method=pass_all
  4400. ;;
  4401. esac
  4402. fi
  4403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4404. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4405. file_magic_glob=
  4406. want_nocaseglob=no
  4407. if test "$build" = "$host"; then
  4408. case $host_os in
  4409. mingw* | pw32*)
  4410. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4411. want_nocaseglob=yes
  4412. else
  4413. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4414. fi
  4415. ;;
  4416. esac
  4417. fi
  4418. file_magic_cmd=$lt_cv_file_magic_cmd
  4419. deplibs_check_method=$lt_cv_deplibs_check_method
  4420. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4421. if test -n "$ac_tool_prefix"; then
  4422. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4423. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4425. $as_echo_n "checking for $ac_word... " >&6; }
  4426. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4427. $as_echo_n "(cached) " >&6
  4428. else
  4429. if test -n "$DLLTOOL"; then
  4430. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4431. else
  4432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4433. for as_dir in $PATH
  4434. do
  4435. IFS=$as_save_IFS
  4436. test -z "$as_dir" && as_dir=.
  4437. for ac_exec_ext in '' $ac_executable_extensions; do
  4438. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4439. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4441. break 2
  4442. fi
  4443. done
  4444. done
  4445. IFS=$as_save_IFS
  4446. fi
  4447. fi
  4448. DLLTOOL=$ac_cv_prog_DLLTOOL
  4449. if test -n "$DLLTOOL"; then
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4451. $as_echo "$DLLTOOL" >&6; }
  4452. else
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4454. $as_echo "no" >&6; }
  4455. fi
  4456. fi
  4457. if test -z "$ac_cv_prog_DLLTOOL"; then
  4458. ac_ct_DLLTOOL=$DLLTOOL
  4459. # Extract the first word of "dlltool", so it can be a program name with args.
  4460. set dummy dlltool; ac_word=$2
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4462. $as_echo_n "checking for $ac_word... " >&6; }
  4463. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4464. $as_echo_n "(cached) " >&6
  4465. else
  4466. if test -n "$ac_ct_DLLTOOL"; then
  4467. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4468. else
  4469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4470. for as_dir in $PATH
  4471. do
  4472. IFS=$as_save_IFS
  4473. test -z "$as_dir" && as_dir=.
  4474. for ac_exec_ext in '' $ac_executable_extensions; do
  4475. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4476. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4478. break 2
  4479. fi
  4480. done
  4481. done
  4482. IFS=$as_save_IFS
  4483. fi
  4484. fi
  4485. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4486. if test -n "$ac_ct_DLLTOOL"; then
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4488. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4489. else
  4490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4491. $as_echo "no" >&6; }
  4492. fi
  4493. if test "x$ac_ct_DLLTOOL" = x; then
  4494. DLLTOOL="false"
  4495. else
  4496. case $cross_compiling:$ac_tool_warned in
  4497. yes:)
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4499. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4500. ac_tool_warned=yes ;;
  4501. esac
  4502. DLLTOOL=$ac_ct_DLLTOOL
  4503. fi
  4504. else
  4505. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4506. fi
  4507. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4509. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4510. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4511. $as_echo_n "(cached) " >&6
  4512. else
  4513. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4514. case $host_os in
  4515. cygwin* | mingw* | pw32* | cegcc*)
  4516. # two different shell functions defined in ltmain.sh
  4517. # decide which to use based on capabilities of $DLLTOOL
  4518. case `$DLLTOOL --help 2>&1` in
  4519. *--identify-strict*)
  4520. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4521. ;;
  4522. *)
  4523. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4524. ;;
  4525. esac
  4526. ;;
  4527. *)
  4528. # fallback: assume linklib IS sharedlib
  4529. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4530. ;;
  4531. esac
  4532. fi
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4534. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4535. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4536. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4537. if test -n "$ac_tool_prefix"; then
  4538. for ac_prog in ar
  4539. do
  4540. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4541. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4543. $as_echo_n "checking for $ac_word... " >&6; }
  4544. if ${ac_cv_prog_AR+:} false; then :
  4545. $as_echo_n "(cached) " >&6
  4546. else
  4547. if test -n "$AR"; then
  4548. ac_cv_prog_AR="$AR" # Let the user override the test.
  4549. else
  4550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4551. for as_dir in $PATH
  4552. do
  4553. IFS=$as_save_IFS
  4554. test -z "$as_dir" && as_dir=.
  4555. for ac_exec_ext in '' $ac_executable_extensions; do
  4556. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4557. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4559. break 2
  4560. fi
  4561. done
  4562. done
  4563. IFS=$as_save_IFS
  4564. fi
  4565. fi
  4566. AR=$ac_cv_prog_AR
  4567. if test -n "$AR"; then
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4569. $as_echo "$AR" >&6; }
  4570. else
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4572. $as_echo "no" >&6; }
  4573. fi
  4574. test -n "$AR" && break
  4575. done
  4576. fi
  4577. if test -z "$AR"; then
  4578. ac_ct_AR=$AR
  4579. for ac_prog in ar
  4580. do
  4581. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4582. set dummy $ac_prog; ac_word=$2
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4584. $as_echo_n "checking for $ac_word... " >&6; }
  4585. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4586. $as_echo_n "(cached) " >&6
  4587. else
  4588. if test -n "$ac_ct_AR"; then
  4589. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4590. else
  4591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4592. for as_dir in $PATH
  4593. do
  4594. IFS=$as_save_IFS
  4595. test -z "$as_dir" && as_dir=.
  4596. for ac_exec_ext in '' $ac_executable_extensions; do
  4597. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4598. ac_cv_prog_ac_ct_AR="$ac_prog"
  4599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4600. break 2
  4601. fi
  4602. done
  4603. done
  4604. IFS=$as_save_IFS
  4605. fi
  4606. fi
  4607. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4608. if test -n "$ac_ct_AR"; then
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4610. $as_echo "$ac_ct_AR" >&6; }
  4611. else
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4613. $as_echo "no" >&6; }
  4614. fi
  4615. test -n "$ac_ct_AR" && break
  4616. done
  4617. if test "x$ac_ct_AR" = x; then
  4618. AR="false"
  4619. else
  4620. case $cross_compiling:$ac_tool_warned in
  4621. yes:)
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4623. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4624. ac_tool_warned=yes ;;
  4625. esac
  4626. AR=$ac_ct_AR
  4627. fi
  4628. fi
  4629. : ${AR=ar}
  4630. : ${AR_FLAGS=cru}
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4632. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4633. if ${lt_cv_ar_at_file+:} false; then :
  4634. $as_echo_n "(cached) " >&6
  4635. else
  4636. lt_cv_ar_at_file=no
  4637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4638. /* end confdefs.h. */
  4639. int
  4640. main ()
  4641. {
  4642. ;
  4643. return 0;
  4644. }
  4645. _ACEOF
  4646. if ac_fn_c_try_compile "$LINENO"; then :
  4647. echo conftest.$ac_objext > conftest.lst
  4648. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4649. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4650. (eval $lt_ar_try) 2>&5
  4651. ac_status=$?
  4652. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4653. test $ac_status = 0; }
  4654. if test "$ac_status" -eq 0; then
  4655. # Ensure the archiver fails upon bogus file names.
  4656. rm -f conftest.$ac_objext libconftest.a
  4657. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4658. (eval $lt_ar_try) 2>&5
  4659. ac_status=$?
  4660. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4661. test $ac_status = 0; }
  4662. if test "$ac_status" -ne 0; then
  4663. lt_cv_ar_at_file=@
  4664. fi
  4665. fi
  4666. rm -f conftest.* libconftest.a
  4667. fi
  4668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4669. fi
  4670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4671. $as_echo "$lt_cv_ar_at_file" >&6; }
  4672. if test "x$lt_cv_ar_at_file" = xno; then
  4673. archiver_list_spec=
  4674. else
  4675. archiver_list_spec=$lt_cv_ar_at_file
  4676. fi
  4677. if test -n "$ac_tool_prefix"; then
  4678. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4679. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4681. $as_echo_n "checking for $ac_word... " >&6; }
  4682. if ${ac_cv_prog_STRIP+:} false; then :
  4683. $as_echo_n "(cached) " >&6
  4684. else
  4685. if test -n "$STRIP"; then
  4686. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4687. else
  4688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4689. for as_dir in $PATH
  4690. do
  4691. IFS=$as_save_IFS
  4692. test -z "$as_dir" && as_dir=.
  4693. for ac_exec_ext in '' $ac_executable_extensions; do
  4694. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4695. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4696. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4697. break 2
  4698. fi
  4699. done
  4700. done
  4701. IFS=$as_save_IFS
  4702. fi
  4703. fi
  4704. STRIP=$ac_cv_prog_STRIP
  4705. if test -n "$STRIP"; then
  4706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4707. $as_echo "$STRIP" >&6; }
  4708. else
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4710. $as_echo "no" >&6; }
  4711. fi
  4712. fi
  4713. if test -z "$ac_cv_prog_STRIP"; then
  4714. ac_ct_STRIP=$STRIP
  4715. # Extract the first word of "strip", so it can be a program name with args.
  4716. set dummy strip; ac_word=$2
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4718. $as_echo_n "checking for $ac_word... " >&6; }
  4719. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4720. $as_echo_n "(cached) " >&6
  4721. else
  4722. if test -n "$ac_ct_STRIP"; then
  4723. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4724. else
  4725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4726. for as_dir in $PATH
  4727. do
  4728. IFS=$as_save_IFS
  4729. test -z "$as_dir" && as_dir=.
  4730. for ac_exec_ext in '' $ac_executable_extensions; do
  4731. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4732. ac_cv_prog_ac_ct_STRIP="strip"
  4733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4734. break 2
  4735. fi
  4736. done
  4737. done
  4738. IFS=$as_save_IFS
  4739. fi
  4740. fi
  4741. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4742. if test -n "$ac_ct_STRIP"; then
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4744. $as_echo "$ac_ct_STRIP" >&6; }
  4745. else
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4747. $as_echo "no" >&6; }
  4748. fi
  4749. if test "x$ac_ct_STRIP" = x; then
  4750. STRIP=":"
  4751. else
  4752. case $cross_compiling:$ac_tool_warned in
  4753. yes:)
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4755. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4756. ac_tool_warned=yes ;;
  4757. esac
  4758. STRIP=$ac_ct_STRIP
  4759. fi
  4760. else
  4761. STRIP="$ac_cv_prog_STRIP"
  4762. fi
  4763. test -z "$STRIP" && STRIP=:
  4764. if test -n "$ac_tool_prefix"; then
  4765. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4766. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4768. $as_echo_n "checking for $ac_word... " >&6; }
  4769. if ${ac_cv_prog_RANLIB+:} false; then :
  4770. $as_echo_n "(cached) " >&6
  4771. else
  4772. if test -n "$RANLIB"; then
  4773. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4774. else
  4775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4776. for as_dir in $PATH
  4777. do
  4778. IFS=$as_save_IFS
  4779. test -z "$as_dir" && as_dir=.
  4780. for ac_exec_ext in '' $ac_executable_extensions; do
  4781. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4782. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4784. break 2
  4785. fi
  4786. done
  4787. done
  4788. IFS=$as_save_IFS
  4789. fi
  4790. fi
  4791. RANLIB=$ac_cv_prog_RANLIB
  4792. if test -n "$RANLIB"; then
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4794. $as_echo "$RANLIB" >&6; }
  4795. else
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4797. $as_echo "no" >&6; }
  4798. fi
  4799. fi
  4800. if test -z "$ac_cv_prog_RANLIB"; then
  4801. ac_ct_RANLIB=$RANLIB
  4802. # Extract the first word of "ranlib", so it can be a program name with args.
  4803. set dummy ranlib; ac_word=$2
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4805. $as_echo_n "checking for $ac_word... " >&6; }
  4806. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4807. $as_echo_n "(cached) " >&6
  4808. else
  4809. if test -n "$ac_ct_RANLIB"; then
  4810. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4811. else
  4812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4813. for as_dir in $PATH
  4814. do
  4815. IFS=$as_save_IFS
  4816. test -z "$as_dir" && as_dir=.
  4817. for ac_exec_ext in '' $ac_executable_extensions; do
  4818. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4819. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4821. break 2
  4822. fi
  4823. done
  4824. done
  4825. IFS=$as_save_IFS
  4826. fi
  4827. fi
  4828. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4829. if test -n "$ac_ct_RANLIB"; then
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4831. $as_echo "$ac_ct_RANLIB" >&6; }
  4832. else
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4834. $as_echo "no" >&6; }
  4835. fi
  4836. if test "x$ac_ct_RANLIB" = x; then
  4837. RANLIB=":"
  4838. else
  4839. case $cross_compiling:$ac_tool_warned in
  4840. yes:)
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4843. ac_tool_warned=yes ;;
  4844. esac
  4845. RANLIB=$ac_ct_RANLIB
  4846. fi
  4847. else
  4848. RANLIB="$ac_cv_prog_RANLIB"
  4849. fi
  4850. test -z "$RANLIB" && RANLIB=:
  4851. # Determine commands to create old-style static archives.
  4852. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4853. old_postinstall_cmds='chmod 644 $oldlib'
  4854. old_postuninstall_cmds=
  4855. if test -n "$RANLIB"; then
  4856. case $host_os in
  4857. openbsd*)
  4858. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4859. ;;
  4860. *)
  4861. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4862. ;;
  4863. esac
  4864. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4865. fi
  4866. case $host_os in
  4867. darwin*)
  4868. lock_old_archive_extraction=yes ;;
  4869. *)
  4870. lock_old_archive_extraction=no ;;
  4871. esac
  4872. for ac_prog in gawk mawk nawk awk
  4873. do
  4874. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4875. set dummy $ac_prog; ac_word=$2
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4877. $as_echo_n "checking for $ac_word... " >&6; }
  4878. if ${ac_cv_prog_AWK+:} false; then :
  4879. $as_echo_n "(cached) " >&6
  4880. else
  4881. if test -n "$AWK"; then
  4882. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4883. else
  4884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4885. for as_dir in $PATH
  4886. do
  4887. IFS=$as_save_IFS
  4888. test -z "$as_dir" && as_dir=.
  4889. for ac_exec_ext in '' $ac_executable_extensions; do
  4890. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4891. ac_cv_prog_AWK="$ac_prog"
  4892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4893. break 2
  4894. fi
  4895. done
  4896. done
  4897. IFS=$as_save_IFS
  4898. fi
  4899. fi
  4900. AWK=$ac_cv_prog_AWK
  4901. if test -n "$AWK"; then
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4903. $as_echo "$AWK" >&6; }
  4904. else
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4906. $as_echo "no" >&6; }
  4907. fi
  4908. test -n "$AWK" && break
  4909. done
  4910. # If no C compiler was specified, use CC.
  4911. LTCC=${LTCC-"$CC"}
  4912. # If no C compiler flags were specified, use CFLAGS.
  4913. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4914. # Allow CC to be a program name with arguments.
  4915. compiler=$CC
  4916. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4918. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4919. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4920. $as_echo_n "(cached) " >&6
  4921. else
  4922. # These are sane defaults that work on at least a few old systems.
  4923. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4924. # Character class describing NM global symbol codes.
  4925. symcode='[BCDEGRST]'
  4926. # Regexp to match symbols that can be accessed directly from C.
  4927. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4928. # Define system-specific variables.
  4929. case $host_os in
  4930. aix*)
  4931. symcode='[BCDT]'
  4932. ;;
  4933. cygwin* | mingw* | pw32* | cegcc*)
  4934. symcode='[ABCDGISTW]'
  4935. ;;
  4936. hpux*)
  4937. if test "$host_cpu" = ia64; then
  4938. symcode='[ABCDEGRST]'
  4939. fi
  4940. ;;
  4941. irix* | nonstopux*)
  4942. symcode='[BCDEGRST]'
  4943. ;;
  4944. osf*)
  4945. symcode='[BCDEGQRST]'
  4946. ;;
  4947. solaris*)
  4948. symcode='[BDRT]'
  4949. ;;
  4950. sco3.2v5*)
  4951. symcode='[DT]'
  4952. ;;
  4953. sysv4.2uw2*)
  4954. symcode='[DT]'
  4955. ;;
  4956. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4957. symcode='[ABDT]'
  4958. ;;
  4959. sysv4)
  4960. symcode='[DFNSTU]'
  4961. ;;
  4962. esac
  4963. # If we're using GNU nm, then use its standard symbol codes.
  4964. case `$NM -V 2>&1` in
  4965. *GNU* | *'with BFD'*)
  4966. symcode='[ABCDGIRSTW]' ;;
  4967. esac
  4968. # Transform an extracted symbol line into a proper C declaration.
  4969. # Some systems (esp. on ia64) link data and code symbols differently,
  4970. # so use this general approach.
  4971. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4972. # Transform an extracted symbol line into symbol name and symbol address
  4973. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4974. 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'"
  4975. # Handle CRLF in mingw tool chain
  4976. opt_cr=
  4977. case $build_os in
  4978. mingw*)
  4979. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4980. ;;
  4981. esac
  4982. # Try without a prefix underscore, then with it.
  4983. for ac_symprfx in "" "_"; do
  4984. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4985. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4986. # Write the raw and C identifiers.
  4987. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4988. # Fake it for dumpbin and say T for any non-static function
  4989. # and D for any global variable.
  4990. # Also find C++ and __fastcall symbols from MSVC++,
  4991. # which start with @ or ?.
  4992. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4993. " {last_section=section; section=\$ 3};"\
  4994. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4995. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4996. " \$ 0!~/External *\|/{next};"\
  4997. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4998. " {if(hide[section]) next};"\
  4999. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5000. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5001. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5002. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5003. " ' prfx=^$ac_symprfx"
  5004. else
  5005. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5006. fi
  5007. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5008. # Check to see that the pipe works correctly.
  5009. pipe_works=no
  5010. rm -f conftest*
  5011. cat > conftest.$ac_ext <<_LT_EOF
  5012. #ifdef __cplusplus
  5013. extern "C" {
  5014. #endif
  5015. char nm_test_var;
  5016. void nm_test_func(void);
  5017. void nm_test_func(void){}
  5018. #ifdef __cplusplus
  5019. }
  5020. #endif
  5021. int main(){nm_test_var='a';nm_test_func();return(0);}
  5022. _LT_EOF
  5023. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5024. (eval $ac_compile) 2>&5
  5025. ac_status=$?
  5026. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5027. test $ac_status = 0; }; then
  5028. # Now try to grab the symbols.
  5029. nlist=conftest.nm
  5030. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5031. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5032. ac_status=$?
  5033. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5034. test $ac_status = 0; } && test -s "$nlist"; then
  5035. # Try sorting and uniquifying the output.
  5036. if sort "$nlist" | uniq > "$nlist"T; then
  5037. mv -f "$nlist"T "$nlist"
  5038. else
  5039. rm -f "$nlist"T
  5040. fi
  5041. # Make sure that we snagged all the symbols we need.
  5042. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5043. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5044. cat <<_LT_EOF > conftest.$ac_ext
  5045. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5046. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5047. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5048. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5049. # define LT_DLSYM_CONST
  5050. #elif defined(__osf__)
  5051. /* This system does not cope well with relocations in const data. */
  5052. # define LT_DLSYM_CONST
  5053. #else
  5054. # define LT_DLSYM_CONST const
  5055. #endif
  5056. #ifdef __cplusplus
  5057. extern "C" {
  5058. #endif
  5059. _LT_EOF
  5060. # Now generate the symbol file.
  5061. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5062. cat <<_LT_EOF >> conftest.$ac_ext
  5063. /* The mapping between symbol names and symbols. */
  5064. LT_DLSYM_CONST struct {
  5065. const char *name;
  5066. void *address;
  5067. }
  5068. lt__PROGRAM__LTX_preloaded_symbols[] =
  5069. {
  5070. { "@PROGRAM@", (void *) 0 },
  5071. _LT_EOF
  5072. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5073. cat <<\_LT_EOF >> conftest.$ac_ext
  5074. {0, (void *) 0}
  5075. };
  5076. /* This works around a problem in FreeBSD linker */
  5077. #ifdef FREEBSD_WORKAROUND
  5078. static const void *lt_preloaded_setup() {
  5079. return lt__PROGRAM__LTX_preloaded_symbols;
  5080. }
  5081. #endif
  5082. #ifdef __cplusplus
  5083. }
  5084. #endif
  5085. _LT_EOF
  5086. # Now try linking the two files.
  5087. mv conftest.$ac_objext conftstm.$ac_objext
  5088. lt_globsym_save_LIBS=$LIBS
  5089. lt_globsym_save_CFLAGS=$CFLAGS
  5090. LIBS="conftstm.$ac_objext"
  5091. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5092. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5093. (eval $ac_link) 2>&5
  5094. ac_status=$?
  5095. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5096. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5097. pipe_works=yes
  5098. fi
  5099. LIBS=$lt_globsym_save_LIBS
  5100. CFLAGS=$lt_globsym_save_CFLAGS
  5101. else
  5102. echo "cannot find nm_test_func in $nlist" >&5
  5103. fi
  5104. else
  5105. echo "cannot find nm_test_var in $nlist" >&5
  5106. fi
  5107. else
  5108. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5109. fi
  5110. else
  5111. echo "$progname: failed program was:" >&5
  5112. cat conftest.$ac_ext >&5
  5113. fi
  5114. rm -rf conftest* conftst*
  5115. # Do not use the global_symbol_pipe unless it works.
  5116. if test "$pipe_works" = yes; then
  5117. break
  5118. else
  5119. lt_cv_sys_global_symbol_pipe=
  5120. fi
  5121. done
  5122. fi
  5123. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5124. lt_cv_sys_global_symbol_to_cdecl=
  5125. fi
  5126. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5128. $as_echo "failed" >&6; }
  5129. else
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5131. $as_echo "ok" >&6; }
  5132. fi
  5133. # Response file support.
  5134. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5135. nm_file_list_spec='@'
  5136. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5137. nm_file_list_spec='@'
  5138. fi
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5140. $as_echo_n "checking for sysroot... " >&6; }
  5141. # Check whether --with-sysroot was given.
  5142. if test "${with_sysroot+set}" = set; then :
  5143. withval=$with_sysroot;
  5144. else
  5145. with_sysroot=no
  5146. fi
  5147. lt_sysroot=
  5148. case ${with_sysroot} in #(
  5149. yes)
  5150. if test "$GCC" = yes; then
  5151. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5152. fi
  5153. ;; #(
  5154. /*)
  5155. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5156. ;; #(
  5157. no|'')
  5158. ;; #(
  5159. *)
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5161. $as_echo "${with_sysroot}" >&6; }
  5162. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5163. ;;
  5164. esac
  5165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5166. $as_echo "${lt_sysroot:-no}" >&6; }
  5167. # Check whether --enable-libtool-lock was given.
  5168. if test "${enable_libtool_lock+set}" = set; then :
  5169. enableval=$enable_libtool_lock;
  5170. fi
  5171. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5172. # Some flags need to be propagated to the compiler or linker for good
  5173. # libtool support.
  5174. case $host in
  5175. ia64-*-hpux*)
  5176. # Find out which ABI we are using.
  5177. echo 'int i;' > conftest.$ac_ext
  5178. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5179. (eval $ac_compile) 2>&5
  5180. ac_status=$?
  5181. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5182. test $ac_status = 0; }; then
  5183. case `/usr/bin/file conftest.$ac_objext` in
  5184. *ELF-32*)
  5185. HPUX_IA64_MODE="32"
  5186. ;;
  5187. *ELF-64*)
  5188. HPUX_IA64_MODE="64"
  5189. ;;
  5190. esac
  5191. fi
  5192. rm -rf conftest*
  5193. ;;
  5194. *-*-irix6*)
  5195. # Find out which ABI we are using.
  5196. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5197. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5198. (eval $ac_compile) 2>&5
  5199. ac_status=$?
  5200. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5201. test $ac_status = 0; }; then
  5202. if test "$lt_cv_prog_gnu_ld" = yes; then
  5203. case `/usr/bin/file conftest.$ac_objext` in
  5204. *32-bit*)
  5205. LD="${LD-ld} -melf32bsmip"
  5206. ;;
  5207. *N32*)
  5208. LD="${LD-ld} -melf32bmipn32"
  5209. ;;
  5210. *64-bit*)
  5211. LD="${LD-ld} -melf64bmip"
  5212. ;;
  5213. esac
  5214. else
  5215. case `/usr/bin/file conftest.$ac_objext` in
  5216. *32-bit*)
  5217. LD="${LD-ld} -32"
  5218. ;;
  5219. *N32*)
  5220. LD="${LD-ld} -n32"
  5221. ;;
  5222. *64-bit*)
  5223. LD="${LD-ld} -64"
  5224. ;;
  5225. esac
  5226. fi
  5227. fi
  5228. rm -rf conftest*
  5229. ;;
  5230. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5231. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5232. # Find out which ABI we are using.
  5233. echo 'int i;' > conftest.$ac_ext
  5234. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5235. (eval $ac_compile) 2>&5
  5236. ac_status=$?
  5237. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5238. test $ac_status = 0; }; then
  5239. case `/usr/bin/file conftest.o` in
  5240. *32-bit*)
  5241. case $host in
  5242. x86_64-*kfreebsd*-gnu)
  5243. LD="${LD-ld} -m elf_i386_fbsd"
  5244. ;;
  5245. x86_64-*linux*)
  5246. LD="${LD-ld} -m elf_i386"
  5247. ;;
  5248. ppc64-*linux*|powerpc64-*linux*)
  5249. LD="${LD-ld} -m elf32ppclinux"
  5250. ;;
  5251. s390x-*linux*)
  5252. LD="${LD-ld} -m elf_s390"
  5253. ;;
  5254. sparc64-*linux*)
  5255. LD="${LD-ld} -m elf32_sparc"
  5256. ;;
  5257. esac
  5258. ;;
  5259. *64-bit*)
  5260. case $host in
  5261. x86_64-*kfreebsd*-gnu)
  5262. LD="${LD-ld} -m elf_x86_64_fbsd"
  5263. ;;
  5264. x86_64-*linux*)
  5265. LD="${LD-ld} -m elf_x86_64"
  5266. ;;
  5267. powerpc64le-*linux*)
  5268. LD="${LD-ld} -m elf64lppc"
  5269. ;;
  5270. powerpc64-*linux*)
  5271. LD="${LD-ld} -m elf64ppc"
  5272. ;;
  5273. s390*-*linux*|s390*-*tpf*)
  5274. LD="${LD-ld} -m elf64_s390"
  5275. ;;
  5276. sparc*-*linux*)
  5277. LD="${LD-ld} -m elf64_sparc"
  5278. ;;
  5279. esac
  5280. ;;
  5281. esac
  5282. fi
  5283. rm -rf conftest*
  5284. ;;
  5285. *-*-sco3.2v5*)
  5286. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5287. SAVE_CFLAGS="$CFLAGS"
  5288. CFLAGS="$CFLAGS -belf"
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5290. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5291. if ${lt_cv_cc_needs_belf+:} false; then :
  5292. $as_echo_n "(cached) " >&6
  5293. else
  5294. ac_ext=c
  5295. ac_cpp='$CPP $CPPFLAGS'
  5296. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5297. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5298. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5300. /* end confdefs.h. */
  5301. int
  5302. main ()
  5303. {
  5304. ;
  5305. return 0;
  5306. }
  5307. _ACEOF
  5308. if ac_fn_c_try_link "$LINENO"; then :
  5309. lt_cv_cc_needs_belf=yes
  5310. else
  5311. lt_cv_cc_needs_belf=no
  5312. fi
  5313. rm -f core conftest.err conftest.$ac_objext \
  5314. conftest$ac_exeext conftest.$ac_ext
  5315. ac_ext=c
  5316. ac_cpp='$CPP $CPPFLAGS'
  5317. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5318. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5319. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5320. fi
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5322. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5323. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5324. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5325. CFLAGS="$SAVE_CFLAGS"
  5326. fi
  5327. ;;
  5328. *-*solaris*)
  5329. # Find out which ABI we are using.
  5330. echo 'int i;' > conftest.$ac_ext
  5331. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5332. (eval $ac_compile) 2>&5
  5333. ac_status=$?
  5334. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5335. test $ac_status = 0; }; then
  5336. case `/usr/bin/file conftest.o` in
  5337. *64-bit*)
  5338. case $lt_cv_prog_gnu_ld in
  5339. yes*)
  5340. case $host in
  5341. i?86-*-solaris*)
  5342. LD="${LD-ld} -m elf_x86_64"
  5343. ;;
  5344. sparc*-*-solaris*)
  5345. LD="${LD-ld} -m elf64_sparc"
  5346. ;;
  5347. esac
  5348. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5349. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5350. LD="${LD-ld}_sol2"
  5351. fi
  5352. ;;
  5353. *)
  5354. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5355. LD="${LD-ld} -64"
  5356. fi
  5357. ;;
  5358. esac
  5359. ;;
  5360. esac
  5361. fi
  5362. rm -rf conftest*
  5363. ;;
  5364. esac
  5365. need_locks="$enable_libtool_lock"
  5366. if test -n "$ac_tool_prefix"; then
  5367. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5368. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5370. $as_echo_n "checking for $ac_word... " >&6; }
  5371. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5372. $as_echo_n "(cached) " >&6
  5373. else
  5374. if test -n "$MANIFEST_TOOL"; then
  5375. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5376. else
  5377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5378. for as_dir in $PATH
  5379. do
  5380. IFS=$as_save_IFS
  5381. test -z "$as_dir" && as_dir=.
  5382. for ac_exec_ext in '' $ac_executable_extensions; do
  5383. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5384. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5386. break 2
  5387. fi
  5388. done
  5389. done
  5390. IFS=$as_save_IFS
  5391. fi
  5392. fi
  5393. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5394. if test -n "$MANIFEST_TOOL"; then
  5395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5396. $as_echo "$MANIFEST_TOOL" >&6; }
  5397. else
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5399. $as_echo "no" >&6; }
  5400. fi
  5401. fi
  5402. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5403. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5404. # Extract the first word of "mt", so it can be a program name with args.
  5405. set dummy mt; ac_word=$2
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5407. $as_echo_n "checking for $ac_word... " >&6; }
  5408. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5409. $as_echo_n "(cached) " >&6
  5410. else
  5411. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5412. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5413. else
  5414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5415. for as_dir in $PATH
  5416. do
  5417. IFS=$as_save_IFS
  5418. test -z "$as_dir" && as_dir=.
  5419. for ac_exec_ext in '' $ac_executable_extensions; do
  5420. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5421. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5422. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5423. break 2
  5424. fi
  5425. done
  5426. done
  5427. IFS=$as_save_IFS
  5428. fi
  5429. fi
  5430. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5431. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5433. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5434. else
  5435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5436. $as_echo "no" >&6; }
  5437. fi
  5438. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5439. MANIFEST_TOOL=":"
  5440. else
  5441. case $cross_compiling:$ac_tool_warned in
  5442. yes:)
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5444. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5445. ac_tool_warned=yes ;;
  5446. esac
  5447. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5448. fi
  5449. else
  5450. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5451. fi
  5452. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5454. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5455. if ${lt_cv_path_mainfest_tool+:} false; then :
  5456. $as_echo_n "(cached) " >&6
  5457. else
  5458. lt_cv_path_mainfest_tool=no
  5459. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5460. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5461. cat conftest.err >&5
  5462. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5463. lt_cv_path_mainfest_tool=yes
  5464. fi
  5465. rm -f conftest*
  5466. fi
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5468. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5469. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5470. MANIFEST_TOOL=:
  5471. fi
  5472. case $host_os in
  5473. rhapsody* | darwin*)
  5474. if test -n "$ac_tool_prefix"; then
  5475. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5476. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5478. $as_echo_n "checking for $ac_word... " >&6; }
  5479. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5480. $as_echo_n "(cached) " >&6
  5481. else
  5482. if test -n "$DSYMUTIL"; then
  5483. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5484. else
  5485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5486. for as_dir in $PATH
  5487. do
  5488. IFS=$as_save_IFS
  5489. test -z "$as_dir" && as_dir=.
  5490. for ac_exec_ext in '' $ac_executable_extensions; do
  5491. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5492. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5494. break 2
  5495. fi
  5496. done
  5497. done
  5498. IFS=$as_save_IFS
  5499. fi
  5500. fi
  5501. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5502. if test -n "$DSYMUTIL"; then
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5504. $as_echo "$DSYMUTIL" >&6; }
  5505. else
  5506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5507. $as_echo "no" >&6; }
  5508. fi
  5509. fi
  5510. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5511. ac_ct_DSYMUTIL=$DSYMUTIL
  5512. # Extract the first word of "dsymutil", so it can be a program name with args.
  5513. set dummy dsymutil; ac_word=$2
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5515. $as_echo_n "checking for $ac_word... " >&6; }
  5516. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5517. $as_echo_n "(cached) " >&6
  5518. else
  5519. if test -n "$ac_ct_DSYMUTIL"; then
  5520. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5521. else
  5522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5523. for as_dir in $PATH
  5524. do
  5525. IFS=$as_save_IFS
  5526. test -z "$as_dir" && as_dir=.
  5527. for ac_exec_ext in '' $ac_executable_extensions; do
  5528. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5529. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5531. break 2
  5532. fi
  5533. done
  5534. done
  5535. IFS=$as_save_IFS
  5536. fi
  5537. fi
  5538. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5539. if test -n "$ac_ct_DSYMUTIL"; then
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5541. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5542. else
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5544. $as_echo "no" >&6; }
  5545. fi
  5546. if test "x$ac_ct_DSYMUTIL" = x; then
  5547. DSYMUTIL=":"
  5548. else
  5549. case $cross_compiling:$ac_tool_warned in
  5550. yes:)
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5552. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5553. ac_tool_warned=yes ;;
  5554. esac
  5555. DSYMUTIL=$ac_ct_DSYMUTIL
  5556. fi
  5557. else
  5558. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5559. fi
  5560. if test -n "$ac_tool_prefix"; then
  5561. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5562. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5564. $as_echo_n "checking for $ac_word... " >&6; }
  5565. if ${ac_cv_prog_NMEDIT+:} false; then :
  5566. $as_echo_n "(cached) " >&6
  5567. else
  5568. if test -n "$NMEDIT"; then
  5569. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5570. else
  5571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5572. for as_dir in $PATH
  5573. do
  5574. IFS=$as_save_IFS
  5575. test -z "$as_dir" && as_dir=.
  5576. for ac_exec_ext in '' $ac_executable_extensions; do
  5577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5578. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5580. break 2
  5581. fi
  5582. done
  5583. done
  5584. IFS=$as_save_IFS
  5585. fi
  5586. fi
  5587. NMEDIT=$ac_cv_prog_NMEDIT
  5588. if test -n "$NMEDIT"; then
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5590. $as_echo "$NMEDIT" >&6; }
  5591. else
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5593. $as_echo "no" >&6; }
  5594. fi
  5595. fi
  5596. if test -z "$ac_cv_prog_NMEDIT"; then
  5597. ac_ct_NMEDIT=$NMEDIT
  5598. # Extract the first word of "nmedit", so it can be a program name with args.
  5599. set dummy nmedit; ac_word=$2
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5601. $as_echo_n "checking for $ac_word... " >&6; }
  5602. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5603. $as_echo_n "(cached) " >&6
  5604. else
  5605. if test -n "$ac_ct_NMEDIT"; then
  5606. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5607. else
  5608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5609. for as_dir in $PATH
  5610. do
  5611. IFS=$as_save_IFS
  5612. test -z "$as_dir" && as_dir=.
  5613. for ac_exec_ext in '' $ac_executable_extensions; do
  5614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5615. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5617. break 2
  5618. fi
  5619. done
  5620. done
  5621. IFS=$as_save_IFS
  5622. fi
  5623. fi
  5624. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5625. if test -n "$ac_ct_NMEDIT"; then
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5627. $as_echo "$ac_ct_NMEDIT" >&6; }
  5628. else
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5630. $as_echo "no" >&6; }
  5631. fi
  5632. if test "x$ac_ct_NMEDIT" = x; then
  5633. NMEDIT=":"
  5634. else
  5635. case $cross_compiling:$ac_tool_warned in
  5636. yes:)
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5639. ac_tool_warned=yes ;;
  5640. esac
  5641. NMEDIT=$ac_ct_NMEDIT
  5642. fi
  5643. else
  5644. NMEDIT="$ac_cv_prog_NMEDIT"
  5645. fi
  5646. if test -n "$ac_tool_prefix"; then
  5647. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5648. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5650. $as_echo_n "checking for $ac_word... " >&6; }
  5651. if ${ac_cv_prog_LIPO+:} false; then :
  5652. $as_echo_n "(cached) " >&6
  5653. else
  5654. if test -n "$LIPO"; then
  5655. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5656. else
  5657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5658. for as_dir in $PATH
  5659. do
  5660. IFS=$as_save_IFS
  5661. test -z "$as_dir" && as_dir=.
  5662. for ac_exec_ext in '' $ac_executable_extensions; do
  5663. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5664. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5666. break 2
  5667. fi
  5668. done
  5669. done
  5670. IFS=$as_save_IFS
  5671. fi
  5672. fi
  5673. LIPO=$ac_cv_prog_LIPO
  5674. if test -n "$LIPO"; then
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5676. $as_echo "$LIPO" >&6; }
  5677. else
  5678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5679. $as_echo "no" >&6; }
  5680. fi
  5681. fi
  5682. if test -z "$ac_cv_prog_LIPO"; then
  5683. ac_ct_LIPO=$LIPO
  5684. # Extract the first word of "lipo", so it can be a program name with args.
  5685. set dummy lipo; ac_word=$2
  5686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5687. $as_echo_n "checking for $ac_word... " >&6; }
  5688. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5689. $as_echo_n "(cached) " >&6
  5690. else
  5691. if test -n "$ac_ct_LIPO"; then
  5692. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5693. else
  5694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5695. for as_dir in $PATH
  5696. do
  5697. IFS=$as_save_IFS
  5698. test -z "$as_dir" && as_dir=.
  5699. for ac_exec_ext in '' $ac_executable_extensions; do
  5700. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5701. ac_cv_prog_ac_ct_LIPO="lipo"
  5702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5703. break 2
  5704. fi
  5705. done
  5706. done
  5707. IFS=$as_save_IFS
  5708. fi
  5709. fi
  5710. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5711. if test -n "$ac_ct_LIPO"; then
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5713. $as_echo "$ac_ct_LIPO" >&6; }
  5714. else
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5716. $as_echo "no" >&6; }
  5717. fi
  5718. if test "x$ac_ct_LIPO" = x; then
  5719. LIPO=":"
  5720. else
  5721. case $cross_compiling:$ac_tool_warned in
  5722. yes:)
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5724. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5725. ac_tool_warned=yes ;;
  5726. esac
  5727. LIPO=$ac_ct_LIPO
  5728. fi
  5729. else
  5730. LIPO="$ac_cv_prog_LIPO"
  5731. fi
  5732. if test -n "$ac_tool_prefix"; then
  5733. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5734. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5736. $as_echo_n "checking for $ac_word... " >&6; }
  5737. if ${ac_cv_prog_OTOOL+:} false; then :
  5738. $as_echo_n "(cached) " >&6
  5739. else
  5740. if test -n "$OTOOL"; then
  5741. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5742. else
  5743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5744. for as_dir in $PATH
  5745. do
  5746. IFS=$as_save_IFS
  5747. test -z "$as_dir" && as_dir=.
  5748. for ac_exec_ext in '' $ac_executable_extensions; do
  5749. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5750. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5752. break 2
  5753. fi
  5754. done
  5755. done
  5756. IFS=$as_save_IFS
  5757. fi
  5758. fi
  5759. OTOOL=$ac_cv_prog_OTOOL
  5760. if test -n "$OTOOL"; then
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5762. $as_echo "$OTOOL" >&6; }
  5763. else
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5765. $as_echo "no" >&6; }
  5766. fi
  5767. fi
  5768. if test -z "$ac_cv_prog_OTOOL"; then
  5769. ac_ct_OTOOL=$OTOOL
  5770. # Extract the first word of "otool", so it can be a program name with args.
  5771. set dummy otool; ac_word=$2
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5773. $as_echo_n "checking for $ac_word... " >&6; }
  5774. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5775. $as_echo_n "(cached) " >&6
  5776. else
  5777. if test -n "$ac_ct_OTOOL"; then
  5778. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5779. else
  5780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5781. for as_dir in $PATH
  5782. do
  5783. IFS=$as_save_IFS
  5784. test -z "$as_dir" && as_dir=.
  5785. for ac_exec_ext in '' $ac_executable_extensions; do
  5786. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5787. ac_cv_prog_ac_ct_OTOOL="otool"
  5788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5789. break 2
  5790. fi
  5791. done
  5792. done
  5793. IFS=$as_save_IFS
  5794. fi
  5795. fi
  5796. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5797. if test -n "$ac_ct_OTOOL"; then
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5799. $as_echo "$ac_ct_OTOOL" >&6; }
  5800. else
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5802. $as_echo "no" >&6; }
  5803. fi
  5804. if test "x$ac_ct_OTOOL" = x; then
  5805. OTOOL=":"
  5806. else
  5807. case $cross_compiling:$ac_tool_warned in
  5808. yes:)
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5810. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5811. ac_tool_warned=yes ;;
  5812. esac
  5813. OTOOL=$ac_ct_OTOOL
  5814. fi
  5815. else
  5816. OTOOL="$ac_cv_prog_OTOOL"
  5817. fi
  5818. if test -n "$ac_tool_prefix"; then
  5819. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5820. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5822. $as_echo_n "checking for $ac_word... " >&6; }
  5823. if ${ac_cv_prog_OTOOL64+:} false; then :
  5824. $as_echo_n "(cached) " >&6
  5825. else
  5826. if test -n "$OTOOL64"; then
  5827. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5828. else
  5829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5830. for as_dir in $PATH
  5831. do
  5832. IFS=$as_save_IFS
  5833. test -z "$as_dir" && as_dir=.
  5834. for ac_exec_ext in '' $ac_executable_extensions; do
  5835. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5836. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5838. break 2
  5839. fi
  5840. done
  5841. done
  5842. IFS=$as_save_IFS
  5843. fi
  5844. fi
  5845. OTOOL64=$ac_cv_prog_OTOOL64
  5846. if test -n "$OTOOL64"; then
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5848. $as_echo "$OTOOL64" >&6; }
  5849. else
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5851. $as_echo "no" >&6; }
  5852. fi
  5853. fi
  5854. if test -z "$ac_cv_prog_OTOOL64"; then
  5855. ac_ct_OTOOL64=$OTOOL64
  5856. # Extract the first word of "otool64", so it can be a program name with args.
  5857. set dummy otool64; ac_word=$2
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5859. $as_echo_n "checking for $ac_word... " >&6; }
  5860. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5861. $as_echo_n "(cached) " >&6
  5862. else
  5863. if test -n "$ac_ct_OTOOL64"; then
  5864. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5865. else
  5866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5867. for as_dir in $PATH
  5868. do
  5869. IFS=$as_save_IFS
  5870. test -z "$as_dir" && as_dir=.
  5871. for ac_exec_ext in '' $ac_executable_extensions; do
  5872. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5873. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5875. break 2
  5876. fi
  5877. done
  5878. done
  5879. IFS=$as_save_IFS
  5880. fi
  5881. fi
  5882. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5883. if test -n "$ac_ct_OTOOL64"; then
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5885. $as_echo "$ac_ct_OTOOL64" >&6; }
  5886. else
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5888. $as_echo "no" >&6; }
  5889. fi
  5890. if test "x$ac_ct_OTOOL64" = x; then
  5891. OTOOL64=":"
  5892. else
  5893. case $cross_compiling:$ac_tool_warned in
  5894. yes:)
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5896. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5897. ac_tool_warned=yes ;;
  5898. esac
  5899. OTOOL64=$ac_ct_OTOOL64
  5900. fi
  5901. else
  5902. OTOOL64="$ac_cv_prog_OTOOL64"
  5903. fi
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5905. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5906. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5907. $as_echo_n "(cached) " >&6
  5908. else
  5909. lt_cv_apple_cc_single_mod=no
  5910. if test -z "${LT_MULTI_MODULE}"; then
  5911. # By default we will add the -single_module flag. You can override
  5912. # by either setting the environment variable LT_MULTI_MODULE
  5913. # non-empty at configure time, or by adding -multi_module to the
  5914. # link flags.
  5915. rm -rf libconftest.dylib*
  5916. echo "int foo(void){return 1;}" > conftest.c
  5917. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5918. -dynamiclib -Wl,-single_module conftest.c" >&5
  5919. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5920. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5921. _lt_result=$?
  5922. # If there is a non-empty error log, and "single_module"
  5923. # appears in it, assume the flag caused a linker warning
  5924. if test -s conftest.err && $GREP single_module conftest.err; then
  5925. cat conftest.err >&5
  5926. # Otherwise, if the output was created with a 0 exit code from
  5927. # the compiler, it worked.
  5928. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5929. lt_cv_apple_cc_single_mod=yes
  5930. else
  5931. cat conftest.err >&5
  5932. fi
  5933. rm -rf libconftest.dylib*
  5934. rm -f conftest.*
  5935. fi
  5936. fi
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5938. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5940. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5941. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5942. $as_echo_n "(cached) " >&6
  5943. else
  5944. lt_cv_ld_exported_symbols_list=no
  5945. save_LDFLAGS=$LDFLAGS
  5946. echo "_main" > conftest.sym
  5947. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5949. /* end confdefs.h. */
  5950. int
  5951. main ()
  5952. {
  5953. ;
  5954. return 0;
  5955. }
  5956. _ACEOF
  5957. if ac_fn_c_try_link "$LINENO"; then :
  5958. lt_cv_ld_exported_symbols_list=yes
  5959. else
  5960. lt_cv_ld_exported_symbols_list=no
  5961. fi
  5962. rm -f core conftest.err conftest.$ac_objext \
  5963. conftest$ac_exeext conftest.$ac_ext
  5964. LDFLAGS="$save_LDFLAGS"
  5965. fi
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5967. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5969. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5970. if ${lt_cv_ld_force_load+:} false; then :
  5971. $as_echo_n "(cached) " >&6
  5972. else
  5973. lt_cv_ld_force_load=no
  5974. cat > conftest.c << _LT_EOF
  5975. int forced_loaded() { return 2;}
  5976. _LT_EOF
  5977. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5978. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5979. echo "$AR cru libconftest.a conftest.o" >&5
  5980. $AR cru libconftest.a conftest.o 2>&5
  5981. echo "$RANLIB libconftest.a" >&5
  5982. $RANLIB libconftest.a 2>&5
  5983. cat > conftest.c << _LT_EOF
  5984. int main() { return 0;}
  5985. _LT_EOF
  5986. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5987. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5988. _lt_result=$?
  5989. if test -s conftest.err && $GREP force_load conftest.err; then
  5990. cat conftest.err >&5
  5991. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5992. lt_cv_ld_force_load=yes
  5993. else
  5994. cat conftest.err >&5
  5995. fi
  5996. rm -f conftest.err libconftest.a conftest conftest.c
  5997. rm -rf conftest.dSYM
  5998. fi
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6000. $as_echo "$lt_cv_ld_force_load" >&6; }
  6001. case $host_os in
  6002. rhapsody* | darwin1.[012])
  6003. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6004. darwin1.*)
  6005. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6006. darwin*) # darwin 5.x on
  6007. # if running on 10.5 or later, the deployment target defaults
  6008. # to the OS version, if on x86, and 10.4, the deployment
  6009. # target defaults to 10.4. Don't you love it?
  6010. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6011. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6012. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6013. 10.[012]*)
  6014. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6015. 10.*)
  6016. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6017. esac
  6018. ;;
  6019. esac
  6020. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6021. _lt_dar_single_mod='$single_module'
  6022. fi
  6023. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6024. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6025. else
  6026. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6027. fi
  6028. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6029. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6030. else
  6031. _lt_dsymutil=
  6032. fi
  6033. ;;
  6034. esac
  6035. ac_ext=c
  6036. ac_cpp='$CPP $CPPFLAGS'
  6037. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6038. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6039. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6041. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6042. # On Suns, sometimes $CPP names a directory.
  6043. if test -n "$CPP" && test -d "$CPP"; then
  6044. CPP=
  6045. fi
  6046. if test -z "$CPP"; then
  6047. if ${ac_cv_prog_CPP+:} false; then :
  6048. $as_echo_n "(cached) " >&6
  6049. else
  6050. # Double quotes because CPP needs to be expanded
  6051. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6052. do
  6053. ac_preproc_ok=false
  6054. for ac_c_preproc_warn_flag in '' yes
  6055. do
  6056. # Use a header file that comes with gcc, so configuring glibc
  6057. # with a fresh cross-compiler works.
  6058. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6059. # <limits.h> exists even on freestanding compilers.
  6060. # On the NeXT, cc -E runs the code through the compiler's parser,
  6061. # not just through cpp. "Syntax error" is here to catch this case.
  6062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6063. /* end confdefs.h. */
  6064. #ifdef __STDC__
  6065. # include <limits.h>
  6066. #else
  6067. # include <assert.h>
  6068. #endif
  6069. Syntax error
  6070. _ACEOF
  6071. if ac_fn_c_try_cpp "$LINENO"; then :
  6072. else
  6073. # Broken: fails on valid input.
  6074. continue
  6075. fi
  6076. rm -f conftest.err conftest.i conftest.$ac_ext
  6077. # OK, works on sane cases. Now check whether nonexistent headers
  6078. # can be detected and how.
  6079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6080. /* end confdefs.h. */
  6081. #include <ac_nonexistent.h>
  6082. _ACEOF
  6083. if ac_fn_c_try_cpp "$LINENO"; then :
  6084. # Broken: success on invalid input.
  6085. continue
  6086. else
  6087. # Passes both tests.
  6088. ac_preproc_ok=:
  6089. break
  6090. fi
  6091. rm -f conftest.err conftest.i conftest.$ac_ext
  6092. done
  6093. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6094. rm -f conftest.i conftest.err conftest.$ac_ext
  6095. if $ac_preproc_ok; then :
  6096. break
  6097. fi
  6098. done
  6099. ac_cv_prog_CPP=$CPP
  6100. fi
  6101. CPP=$ac_cv_prog_CPP
  6102. else
  6103. ac_cv_prog_CPP=$CPP
  6104. fi
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6106. $as_echo "$CPP" >&6; }
  6107. ac_preproc_ok=false
  6108. for ac_c_preproc_warn_flag in '' yes
  6109. do
  6110. # Use a header file that comes with gcc, so configuring glibc
  6111. # with a fresh cross-compiler works.
  6112. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6113. # <limits.h> exists even on freestanding compilers.
  6114. # On the NeXT, cc -E runs the code through the compiler's parser,
  6115. # not just through cpp. "Syntax error" is here to catch this case.
  6116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6117. /* end confdefs.h. */
  6118. #ifdef __STDC__
  6119. # include <limits.h>
  6120. #else
  6121. # include <assert.h>
  6122. #endif
  6123. Syntax error
  6124. _ACEOF
  6125. if ac_fn_c_try_cpp "$LINENO"; then :
  6126. else
  6127. # Broken: fails on valid input.
  6128. continue
  6129. fi
  6130. rm -f conftest.err conftest.i conftest.$ac_ext
  6131. # OK, works on sane cases. Now check whether nonexistent headers
  6132. # can be detected and how.
  6133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6134. /* end confdefs.h. */
  6135. #include <ac_nonexistent.h>
  6136. _ACEOF
  6137. if ac_fn_c_try_cpp "$LINENO"; then :
  6138. # Broken: success on invalid input.
  6139. continue
  6140. else
  6141. # Passes both tests.
  6142. ac_preproc_ok=:
  6143. break
  6144. fi
  6145. rm -f conftest.err conftest.i conftest.$ac_ext
  6146. done
  6147. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6148. rm -f conftest.i conftest.err conftest.$ac_ext
  6149. if $ac_preproc_ok; then :
  6150. else
  6151. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6152. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6153. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6154. See \`config.log' for more details" "$LINENO" 5; }
  6155. fi
  6156. ac_ext=c
  6157. ac_cpp='$CPP $CPPFLAGS'
  6158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6162. $as_echo_n "checking for ANSI C header files... " >&6; }
  6163. if ${ac_cv_header_stdc+:} false; then :
  6164. $as_echo_n "(cached) " >&6
  6165. else
  6166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6167. /* end confdefs.h. */
  6168. #include <stdlib.h>
  6169. #include <stdarg.h>
  6170. #include <string.h>
  6171. #include <float.h>
  6172. int
  6173. main ()
  6174. {
  6175. ;
  6176. return 0;
  6177. }
  6178. _ACEOF
  6179. if ac_fn_c_try_compile "$LINENO"; then :
  6180. ac_cv_header_stdc=yes
  6181. else
  6182. ac_cv_header_stdc=no
  6183. fi
  6184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6185. if test $ac_cv_header_stdc = yes; then
  6186. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6188. /* end confdefs.h. */
  6189. #include <string.h>
  6190. _ACEOF
  6191. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6192. $EGREP "memchr" >/dev/null 2>&1; then :
  6193. else
  6194. ac_cv_header_stdc=no
  6195. fi
  6196. rm -f conftest*
  6197. fi
  6198. if test $ac_cv_header_stdc = yes; then
  6199. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6201. /* end confdefs.h. */
  6202. #include <stdlib.h>
  6203. _ACEOF
  6204. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6205. $EGREP "free" >/dev/null 2>&1; then :
  6206. else
  6207. ac_cv_header_stdc=no
  6208. fi
  6209. rm -f conftest*
  6210. fi
  6211. if test $ac_cv_header_stdc = yes; then
  6212. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6213. if test "$cross_compiling" = yes; then :
  6214. :
  6215. else
  6216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6217. /* end confdefs.h. */
  6218. #include <ctype.h>
  6219. #include <stdlib.h>
  6220. #if ((' ' & 0x0FF) == 0x020)
  6221. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6222. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6223. #else
  6224. # define ISLOWER(c) \
  6225. (('a' <= (c) && (c) <= 'i') \
  6226. || ('j' <= (c) && (c) <= 'r') \
  6227. || ('s' <= (c) && (c) <= 'z'))
  6228. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6229. #endif
  6230. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6231. int
  6232. main ()
  6233. {
  6234. int i;
  6235. for (i = 0; i < 256; i++)
  6236. if (XOR (islower (i), ISLOWER (i))
  6237. || toupper (i) != TOUPPER (i))
  6238. return 2;
  6239. return 0;
  6240. }
  6241. _ACEOF
  6242. if ac_fn_c_try_run "$LINENO"; then :
  6243. else
  6244. ac_cv_header_stdc=no
  6245. fi
  6246. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6247. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6248. fi
  6249. fi
  6250. fi
  6251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6252. $as_echo "$ac_cv_header_stdc" >&6; }
  6253. if test $ac_cv_header_stdc = yes; then
  6254. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6255. fi
  6256. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6257. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6258. inttypes.h stdint.h unistd.h
  6259. do :
  6260. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6261. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6262. "
  6263. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6264. cat >>confdefs.h <<_ACEOF
  6265. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6266. _ACEOF
  6267. fi
  6268. done
  6269. for ac_header in dlfcn.h
  6270. do :
  6271. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6272. "
  6273. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6274. cat >>confdefs.h <<_ACEOF
  6275. #define HAVE_DLFCN_H 1
  6276. _ACEOF
  6277. fi
  6278. done
  6279. # Set options
  6280. enable_win32_dll=yes
  6281. case $host in
  6282. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6283. if test -n "$ac_tool_prefix"; then
  6284. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6285. set dummy ${ac_tool_prefix}as; ac_word=$2
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6287. $as_echo_n "checking for $ac_word... " >&6; }
  6288. if ${ac_cv_prog_AS+:} false; then :
  6289. $as_echo_n "(cached) " >&6
  6290. else
  6291. if test -n "$AS"; then
  6292. ac_cv_prog_AS="$AS" # Let the user override the test.
  6293. else
  6294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6295. for as_dir in $PATH
  6296. do
  6297. IFS=$as_save_IFS
  6298. test -z "$as_dir" && as_dir=.
  6299. for ac_exec_ext in '' $ac_executable_extensions; do
  6300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6301. ac_cv_prog_AS="${ac_tool_prefix}as"
  6302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6303. break 2
  6304. fi
  6305. done
  6306. done
  6307. IFS=$as_save_IFS
  6308. fi
  6309. fi
  6310. AS=$ac_cv_prog_AS
  6311. if test -n "$AS"; then
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6313. $as_echo "$AS" >&6; }
  6314. else
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6316. $as_echo "no" >&6; }
  6317. fi
  6318. fi
  6319. if test -z "$ac_cv_prog_AS"; then
  6320. ac_ct_AS=$AS
  6321. # Extract the first word of "as", so it can be a program name with args.
  6322. set dummy as; ac_word=$2
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6324. $as_echo_n "checking for $ac_word... " >&6; }
  6325. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6326. $as_echo_n "(cached) " >&6
  6327. else
  6328. if test -n "$ac_ct_AS"; then
  6329. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6330. else
  6331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6332. for as_dir in $PATH
  6333. do
  6334. IFS=$as_save_IFS
  6335. test -z "$as_dir" && as_dir=.
  6336. for ac_exec_ext in '' $ac_executable_extensions; do
  6337. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6338. ac_cv_prog_ac_ct_AS="as"
  6339. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6340. break 2
  6341. fi
  6342. done
  6343. done
  6344. IFS=$as_save_IFS
  6345. fi
  6346. fi
  6347. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6348. if test -n "$ac_ct_AS"; then
  6349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6350. $as_echo "$ac_ct_AS" >&6; }
  6351. else
  6352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6353. $as_echo "no" >&6; }
  6354. fi
  6355. if test "x$ac_ct_AS" = x; then
  6356. AS="false"
  6357. else
  6358. case $cross_compiling:$ac_tool_warned in
  6359. yes:)
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6361. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6362. ac_tool_warned=yes ;;
  6363. esac
  6364. AS=$ac_ct_AS
  6365. fi
  6366. else
  6367. AS="$ac_cv_prog_AS"
  6368. fi
  6369. if test -n "$ac_tool_prefix"; then
  6370. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6371. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6373. $as_echo_n "checking for $ac_word... " >&6; }
  6374. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6375. $as_echo_n "(cached) " >&6
  6376. else
  6377. if test -n "$DLLTOOL"; then
  6378. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6379. else
  6380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6381. for as_dir in $PATH
  6382. do
  6383. IFS=$as_save_IFS
  6384. test -z "$as_dir" && as_dir=.
  6385. for ac_exec_ext in '' $ac_executable_extensions; do
  6386. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6387. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6389. break 2
  6390. fi
  6391. done
  6392. done
  6393. IFS=$as_save_IFS
  6394. fi
  6395. fi
  6396. DLLTOOL=$ac_cv_prog_DLLTOOL
  6397. if test -n "$DLLTOOL"; then
  6398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6399. $as_echo "$DLLTOOL" >&6; }
  6400. else
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6402. $as_echo "no" >&6; }
  6403. fi
  6404. fi
  6405. if test -z "$ac_cv_prog_DLLTOOL"; then
  6406. ac_ct_DLLTOOL=$DLLTOOL
  6407. # Extract the first word of "dlltool", so it can be a program name with args.
  6408. set dummy dlltool; ac_word=$2
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6410. $as_echo_n "checking for $ac_word... " >&6; }
  6411. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6412. $as_echo_n "(cached) " >&6
  6413. else
  6414. if test -n "$ac_ct_DLLTOOL"; then
  6415. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6416. else
  6417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6418. for as_dir in $PATH
  6419. do
  6420. IFS=$as_save_IFS
  6421. test -z "$as_dir" && as_dir=.
  6422. for ac_exec_ext in '' $ac_executable_extensions; do
  6423. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6424. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6425. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6426. break 2
  6427. fi
  6428. done
  6429. done
  6430. IFS=$as_save_IFS
  6431. fi
  6432. fi
  6433. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6434. if test -n "$ac_ct_DLLTOOL"; then
  6435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6436. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6437. else
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6439. $as_echo "no" >&6; }
  6440. fi
  6441. if test "x$ac_ct_DLLTOOL" = x; then
  6442. DLLTOOL="false"
  6443. else
  6444. case $cross_compiling:$ac_tool_warned in
  6445. yes:)
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6447. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6448. ac_tool_warned=yes ;;
  6449. esac
  6450. DLLTOOL=$ac_ct_DLLTOOL
  6451. fi
  6452. else
  6453. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6454. fi
  6455. if test -n "$ac_tool_prefix"; then
  6456. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6457. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6459. $as_echo_n "checking for $ac_word... " >&6; }
  6460. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6461. $as_echo_n "(cached) " >&6
  6462. else
  6463. if test -n "$OBJDUMP"; then
  6464. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6465. else
  6466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6467. for as_dir in $PATH
  6468. do
  6469. IFS=$as_save_IFS
  6470. test -z "$as_dir" && as_dir=.
  6471. for ac_exec_ext in '' $ac_executable_extensions; do
  6472. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6473. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6474. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6475. break 2
  6476. fi
  6477. done
  6478. done
  6479. IFS=$as_save_IFS
  6480. fi
  6481. fi
  6482. OBJDUMP=$ac_cv_prog_OBJDUMP
  6483. if test -n "$OBJDUMP"; then
  6484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6485. $as_echo "$OBJDUMP" >&6; }
  6486. else
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6488. $as_echo "no" >&6; }
  6489. fi
  6490. fi
  6491. if test -z "$ac_cv_prog_OBJDUMP"; then
  6492. ac_ct_OBJDUMP=$OBJDUMP
  6493. # Extract the first word of "objdump", so it can be a program name with args.
  6494. set dummy objdump; ac_word=$2
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6496. $as_echo_n "checking for $ac_word... " >&6; }
  6497. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6498. $as_echo_n "(cached) " >&6
  6499. else
  6500. if test -n "$ac_ct_OBJDUMP"; then
  6501. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6502. else
  6503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6504. for as_dir in $PATH
  6505. do
  6506. IFS=$as_save_IFS
  6507. test -z "$as_dir" && as_dir=.
  6508. for ac_exec_ext in '' $ac_executable_extensions; do
  6509. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6510. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6511. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6512. break 2
  6513. fi
  6514. done
  6515. done
  6516. IFS=$as_save_IFS
  6517. fi
  6518. fi
  6519. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6520. if test -n "$ac_ct_OBJDUMP"; then
  6521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6522. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6523. else
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6525. $as_echo "no" >&6; }
  6526. fi
  6527. if test "x$ac_ct_OBJDUMP" = x; then
  6528. OBJDUMP="false"
  6529. else
  6530. case $cross_compiling:$ac_tool_warned in
  6531. yes:)
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6533. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6534. ac_tool_warned=yes ;;
  6535. esac
  6536. OBJDUMP=$ac_ct_OBJDUMP
  6537. fi
  6538. else
  6539. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6540. fi
  6541. ;;
  6542. esac
  6543. test -z "$AS" && AS=as
  6544. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6545. test -z "$OBJDUMP" && OBJDUMP=objdump
  6546. enable_dlopen=no
  6547. # Check whether --enable-shared was given.
  6548. if test "${enable_shared+set}" = set; then :
  6549. enableval=$enable_shared; p=${PACKAGE-default}
  6550. case $enableval in
  6551. yes) enable_shared=yes ;;
  6552. no) enable_shared=no ;;
  6553. *)
  6554. enable_shared=no
  6555. # Look at the argument we got. We use all the common list separators.
  6556. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6557. for pkg in $enableval; do
  6558. IFS="$lt_save_ifs"
  6559. if test "X$pkg" = "X$p"; then
  6560. enable_shared=yes
  6561. fi
  6562. done
  6563. IFS="$lt_save_ifs"
  6564. ;;
  6565. esac
  6566. else
  6567. enable_shared=yes
  6568. fi
  6569. # Check whether --enable-static was given.
  6570. if test "${enable_static+set}" = set; then :
  6571. enableval=$enable_static; p=${PACKAGE-default}
  6572. case $enableval in
  6573. yes) enable_static=yes ;;
  6574. no) enable_static=no ;;
  6575. *)
  6576. enable_static=no
  6577. # Look at the argument we got. We use all the common list separators.
  6578. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6579. for pkg in $enableval; do
  6580. IFS="$lt_save_ifs"
  6581. if test "X$pkg" = "X$p"; then
  6582. enable_static=yes
  6583. fi
  6584. done
  6585. IFS="$lt_save_ifs"
  6586. ;;
  6587. esac
  6588. else
  6589. enable_static=yes
  6590. fi
  6591. # Check whether --with-pic was given.
  6592. if test "${with_pic+set}" = set; then :
  6593. withval=$with_pic; lt_p=${PACKAGE-default}
  6594. case $withval in
  6595. yes|no) pic_mode=$withval ;;
  6596. *)
  6597. pic_mode=default
  6598. # Look at the argument we got. We use all the common list separators.
  6599. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6600. for lt_pkg in $withval; do
  6601. IFS="$lt_save_ifs"
  6602. if test "X$lt_pkg" = "X$lt_p"; then
  6603. pic_mode=yes
  6604. fi
  6605. done
  6606. IFS="$lt_save_ifs"
  6607. ;;
  6608. esac
  6609. else
  6610. pic_mode=default
  6611. fi
  6612. test -z "$pic_mode" && pic_mode=default
  6613. # Check whether --enable-fast-install was given.
  6614. if test "${enable_fast_install+set}" = set; then :
  6615. enableval=$enable_fast_install; p=${PACKAGE-default}
  6616. case $enableval in
  6617. yes) enable_fast_install=yes ;;
  6618. no) enable_fast_install=no ;;
  6619. *)
  6620. enable_fast_install=no
  6621. # Look at the argument we got. We use all the common list separators.
  6622. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6623. for pkg in $enableval; do
  6624. IFS="$lt_save_ifs"
  6625. if test "X$pkg" = "X$p"; then
  6626. enable_fast_install=yes
  6627. fi
  6628. done
  6629. IFS="$lt_save_ifs"
  6630. ;;
  6631. esac
  6632. else
  6633. enable_fast_install=yes
  6634. fi
  6635. # This can be used to rebuild libtool when needed
  6636. LIBTOOL_DEPS="$ltmain"
  6637. # Always use our own libtool.
  6638. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6639. test -z "$LN_S" && LN_S="ln -s"
  6640. if test -n "${ZSH_VERSION+set}" ; then
  6641. setopt NO_GLOB_SUBST
  6642. fi
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6644. $as_echo_n "checking for objdir... " >&6; }
  6645. if ${lt_cv_objdir+:} false; then :
  6646. $as_echo_n "(cached) " >&6
  6647. else
  6648. rm -f .libs 2>/dev/null
  6649. mkdir .libs 2>/dev/null
  6650. if test -d .libs; then
  6651. lt_cv_objdir=.libs
  6652. else
  6653. # MS-DOS does not allow filenames that begin with a dot.
  6654. lt_cv_objdir=_libs
  6655. fi
  6656. rmdir .libs 2>/dev/null
  6657. fi
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6659. $as_echo "$lt_cv_objdir" >&6; }
  6660. objdir=$lt_cv_objdir
  6661. cat >>confdefs.h <<_ACEOF
  6662. #define LT_OBJDIR "$lt_cv_objdir/"
  6663. _ACEOF
  6664. case $host_os in
  6665. aix3*)
  6666. # AIX sometimes has problems with the GCC collect2 program. For some
  6667. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6668. # vanish in a puff of smoke.
  6669. if test "X${COLLECT_NAMES+set}" != Xset; then
  6670. COLLECT_NAMES=
  6671. export COLLECT_NAMES
  6672. fi
  6673. ;;
  6674. esac
  6675. # Global variables:
  6676. ofile=libtool
  6677. can_build_shared=yes
  6678. # All known linkers require a `.a' archive for static linking (except MSVC,
  6679. # which needs '.lib').
  6680. libext=a
  6681. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6682. old_CC="$CC"
  6683. old_CFLAGS="$CFLAGS"
  6684. # Set sane defaults for various variables
  6685. test -z "$CC" && CC=cc
  6686. test -z "$LTCC" && LTCC=$CC
  6687. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6688. test -z "$LD" && LD=ld
  6689. test -z "$ac_objext" && ac_objext=o
  6690. for cc_temp in $compiler""; do
  6691. case $cc_temp in
  6692. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6693. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6694. \-*) ;;
  6695. *) break;;
  6696. esac
  6697. done
  6698. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6699. # Only perform the check for file, if the check method requires it
  6700. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6701. case $deplibs_check_method in
  6702. file_magic*)
  6703. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6705. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6706. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6707. $as_echo_n "(cached) " >&6
  6708. else
  6709. case $MAGIC_CMD in
  6710. [\\/*] | ?:[\\/]*)
  6711. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6712. ;;
  6713. *)
  6714. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6715. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6716. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6717. for ac_dir in $ac_dummy; do
  6718. IFS="$lt_save_ifs"
  6719. test -z "$ac_dir" && ac_dir=.
  6720. if test -f $ac_dir/${ac_tool_prefix}file; then
  6721. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6722. if test -n "$file_magic_test_file"; then
  6723. case $deplibs_check_method in
  6724. "file_magic "*)
  6725. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6726. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6727. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6728. $EGREP "$file_magic_regex" > /dev/null; then
  6729. :
  6730. else
  6731. cat <<_LT_EOF 1>&2
  6732. *** Warning: the command libtool uses to detect shared libraries,
  6733. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6734. *** The result is that libtool may fail to recognize shared libraries
  6735. *** as such. This will affect the creation of libtool libraries that
  6736. *** depend on shared libraries, but programs linked with such libtool
  6737. *** libraries will work regardless of this problem. Nevertheless, you
  6738. *** may want to report the problem to your system manager and/or to
  6739. *** bug-libtool@gnu.org
  6740. _LT_EOF
  6741. fi ;;
  6742. esac
  6743. fi
  6744. break
  6745. fi
  6746. done
  6747. IFS="$lt_save_ifs"
  6748. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6749. ;;
  6750. esac
  6751. fi
  6752. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6753. if test -n "$MAGIC_CMD"; then
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6755. $as_echo "$MAGIC_CMD" >&6; }
  6756. else
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6758. $as_echo "no" >&6; }
  6759. fi
  6760. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6761. if test -n "$ac_tool_prefix"; then
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6763. $as_echo_n "checking for file... " >&6; }
  6764. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6765. $as_echo_n "(cached) " >&6
  6766. else
  6767. case $MAGIC_CMD in
  6768. [\\/*] | ?:[\\/]*)
  6769. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6770. ;;
  6771. *)
  6772. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6773. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6774. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6775. for ac_dir in $ac_dummy; do
  6776. IFS="$lt_save_ifs"
  6777. test -z "$ac_dir" && ac_dir=.
  6778. if test -f $ac_dir/file; then
  6779. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6780. if test -n "$file_magic_test_file"; then
  6781. case $deplibs_check_method in
  6782. "file_magic "*)
  6783. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6784. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6785. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6786. $EGREP "$file_magic_regex" > /dev/null; then
  6787. :
  6788. else
  6789. cat <<_LT_EOF 1>&2
  6790. *** Warning: the command libtool uses to detect shared libraries,
  6791. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6792. *** The result is that libtool may fail to recognize shared libraries
  6793. *** as such. This will affect the creation of libtool libraries that
  6794. *** depend on shared libraries, but programs linked with such libtool
  6795. *** libraries will work regardless of this problem. Nevertheless, you
  6796. *** may want to report the problem to your system manager and/or to
  6797. *** bug-libtool@gnu.org
  6798. _LT_EOF
  6799. fi ;;
  6800. esac
  6801. fi
  6802. break
  6803. fi
  6804. done
  6805. IFS="$lt_save_ifs"
  6806. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6807. ;;
  6808. esac
  6809. fi
  6810. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6811. if test -n "$MAGIC_CMD"; then
  6812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6813. $as_echo "$MAGIC_CMD" >&6; }
  6814. else
  6815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6816. $as_echo "no" >&6; }
  6817. fi
  6818. else
  6819. MAGIC_CMD=:
  6820. fi
  6821. fi
  6822. fi
  6823. ;;
  6824. esac
  6825. # Use C for the default configuration in the libtool script
  6826. lt_save_CC="$CC"
  6827. ac_ext=c
  6828. ac_cpp='$CPP $CPPFLAGS'
  6829. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6830. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6831. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6832. # Source file extension for C test sources.
  6833. ac_ext=c
  6834. # Object file extension for compiled C test sources.
  6835. objext=o
  6836. objext=$objext
  6837. # Code to be used in simple compile tests
  6838. lt_simple_compile_test_code="int some_variable = 0;"
  6839. # Code to be used in simple link tests
  6840. lt_simple_link_test_code='int main(){return(0);}'
  6841. # If no C compiler was specified, use CC.
  6842. LTCC=${LTCC-"$CC"}
  6843. # If no C compiler flags were specified, use CFLAGS.
  6844. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6845. # Allow CC to be a program name with arguments.
  6846. compiler=$CC
  6847. # Save the default compiler, since it gets overwritten when the other
  6848. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6849. compiler_DEFAULT=$CC
  6850. # save warnings/boilerplate of simple test code
  6851. ac_outfile=conftest.$ac_objext
  6852. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6853. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6854. _lt_compiler_boilerplate=`cat conftest.err`
  6855. $RM conftest*
  6856. ac_outfile=conftest.$ac_objext
  6857. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6858. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6859. _lt_linker_boilerplate=`cat conftest.err`
  6860. $RM -r conftest*
  6861. ## CAVEAT EMPTOR:
  6862. ## There is no encapsulation within the following macros, do not change
  6863. ## the running order or otherwise move them around unless you know exactly
  6864. ## what you are doing...
  6865. if test -n "$compiler"; then
  6866. lt_prog_compiler_no_builtin_flag=
  6867. if test "$GCC" = yes; then
  6868. case $cc_basename in
  6869. nvcc*)
  6870. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6871. *)
  6872. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6873. esac
  6874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6875. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6876. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6877. $as_echo_n "(cached) " >&6
  6878. else
  6879. lt_cv_prog_compiler_rtti_exceptions=no
  6880. ac_outfile=conftest.$ac_objext
  6881. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6882. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6883. # Insert the option either (1) after the last *FLAGS variable, or
  6884. # (2) before a word containing "conftest.", or (3) at the end.
  6885. # Note that $ac_compile itself does not contain backslashes and begins
  6886. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6887. # The option is referenced via a variable to avoid confusing sed.
  6888. lt_compile=`echo "$ac_compile" | $SED \
  6889. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6890. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6891. -e 's:$: $lt_compiler_flag:'`
  6892. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6893. (eval "$lt_compile" 2>conftest.err)
  6894. ac_status=$?
  6895. cat conftest.err >&5
  6896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6897. if (exit $ac_status) && test -s "$ac_outfile"; then
  6898. # The compiler can only warn and ignore the option if not recognized
  6899. # So say no if there are warnings other than the usual output.
  6900. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6901. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6902. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6903. lt_cv_prog_compiler_rtti_exceptions=yes
  6904. fi
  6905. fi
  6906. $RM conftest*
  6907. fi
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6909. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6910. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6911. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6912. else
  6913. :
  6914. fi
  6915. fi
  6916. lt_prog_compiler_wl=
  6917. lt_prog_compiler_pic=
  6918. lt_prog_compiler_static=
  6919. if test "$GCC" = yes; then
  6920. lt_prog_compiler_wl='-Wl,'
  6921. lt_prog_compiler_static='-static'
  6922. case $host_os in
  6923. aix*)
  6924. # All AIX code is PIC.
  6925. if test "$host_cpu" = ia64; then
  6926. # AIX 5 now supports IA64 processor
  6927. lt_prog_compiler_static='-Bstatic'
  6928. fi
  6929. ;;
  6930. amigaos*)
  6931. case $host_cpu in
  6932. powerpc)
  6933. # see comment about AmigaOS4 .so support
  6934. lt_prog_compiler_pic='-fPIC'
  6935. ;;
  6936. m68k)
  6937. # FIXME: we need at least 68020 code to build shared libraries, but
  6938. # adding the `-m68020' flag to GCC prevents building anything better,
  6939. # like `-m68040'.
  6940. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6941. ;;
  6942. esac
  6943. ;;
  6944. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6945. # PIC is the default for these OSes.
  6946. ;;
  6947. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6948. # This hack is so that the source file can tell whether it is being
  6949. # built for inclusion in a dll (and should export symbols for example).
  6950. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6951. # (--disable-auto-import) libraries
  6952. lt_prog_compiler_pic='-DDLL_EXPORT'
  6953. ;;
  6954. darwin* | rhapsody*)
  6955. # PIC is the default on this platform
  6956. # Common symbols not allowed in MH_DYLIB files
  6957. lt_prog_compiler_pic='-fno-common'
  6958. ;;
  6959. haiku*)
  6960. # PIC is the default for Haiku.
  6961. # The "-static" flag exists, but is broken.
  6962. lt_prog_compiler_static=
  6963. ;;
  6964. hpux*)
  6965. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6966. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6967. # sets the default TLS model and affects inlining.
  6968. case $host_cpu in
  6969. hppa*64*)
  6970. # +Z the default
  6971. ;;
  6972. *)
  6973. lt_prog_compiler_pic='-fPIC'
  6974. ;;
  6975. esac
  6976. ;;
  6977. interix[3-9]*)
  6978. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6979. # Instead, we relocate shared libraries at runtime.
  6980. ;;
  6981. msdosdjgpp*)
  6982. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6983. # on systems that don't support them.
  6984. lt_prog_compiler_can_build_shared=no
  6985. enable_shared=no
  6986. ;;
  6987. *nto* | *qnx*)
  6988. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6989. # it will coredump.
  6990. lt_prog_compiler_pic='-fPIC -shared'
  6991. ;;
  6992. sysv4*MP*)
  6993. if test -d /usr/nec; then
  6994. lt_prog_compiler_pic=-Kconform_pic
  6995. fi
  6996. ;;
  6997. *)
  6998. lt_prog_compiler_pic='-fPIC'
  6999. ;;
  7000. esac
  7001. case $cc_basename in
  7002. nvcc*) # Cuda Compiler Driver 2.2
  7003. lt_prog_compiler_wl='-Xlinker '
  7004. if test -n "$lt_prog_compiler_pic"; then
  7005. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7006. fi
  7007. ;;
  7008. esac
  7009. else
  7010. # PORTME Check for flag to pass linker flags through the system compiler.
  7011. case $host_os in
  7012. aix*)
  7013. lt_prog_compiler_wl='-Wl,'
  7014. if test "$host_cpu" = ia64; then
  7015. # AIX 5 now supports IA64 processor
  7016. lt_prog_compiler_static='-Bstatic'
  7017. else
  7018. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7019. fi
  7020. ;;
  7021. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7022. # This hack is so that the source file can tell whether it is being
  7023. # built for inclusion in a dll (and should export symbols for example).
  7024. lt_prog_compiler_pic='-DDLL_EXPORT'
  7025. ;;
  7026. hpux9* | hpux10* | hpux11*)
  7027. lt_prog_compiler_wl='-Wl,'
  7028. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7029. # not for PA HP-UX.
  7030. case $host_cpu in
  7031. hppa*64*|ia64*)
  7032. # +Z the default
  7033. ;;
  7034. *)
  7035. lt_prog_compiler_pic='+Z'
  7036. ;;
  7037. esac
  7038. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7039. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7040. ;;
  7041. irix5* | irix6* | nonstopux*)
  7042. lt_prog_compiler_wl='-Wl,'
  7043. # PIC (with -KPIC) is the default.
  7044. lt_prog_compiler_static='-non_shared'
  7045. ;;
  7046. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7047. case $cc_basename in
  7048. # old Intel for x86_64 which still supported -KPIC.
  7049. ecc*)
  7050. lt_prog_compiler_wl='-Wl,'
  7051. lt_prog_compiler_pic='-KPIC'
  7052. lt_prog_compiler_static='-static'
  7053. ;;
  7054. # icc used to be incompatible with GCC.
  7055. # ICC 10 doesn't accept -KPIC any more.
  7056. icc* | ifort*)
  7057. lt_prog_compiler_wl='-Wl,'
  7058. lt_prog_compiler_pic='-fPIC'
  7059. lt_prog_compiler_static='-static'
  7060. ;;
  7061. # Lahey Fortran 8.1.
  7062. lf95*)
  7063. lt_prog_compiler_wl='-Wl,'
  7064. lt_prog_compiler_pic='--shared'
  7065. lt_prog_compiler_static='--static'
  7066. ;;
  7067. nagfor*)
  7068. # NAG Fortran compiler
  7069. lt_prog_compiler_wl='-Wl,-Wl,,'
  7070. lt_prog_compiler_pic='-PIC'
  7071. lt_prog_compiler_static='-Bstatic'
  7072. ;;
  7073. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7074. # Portland Group compilers (*not* the Pentium gcc compiler,
  7075. # which looks to be a dead project)
  7076. lt_prog_compiler_wl='-Wl,'
  7077. lt_prog_compiler_pic='-fpic'
  7078. lt_prog_compiler_static='-Bstatic'
  7079. ;;
  7080. ccc*)
  7081. lt_prog_compiler_wl='-Wl,'
  7082. # All Alpha code is PIC.
  7083. lt_prog_compiler_static='-non_shared'
  7084. ;;
  7085. xl* | bgxl* | bgf* | mpixl*)
  7086. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7087. lt_prog_compiler_wl='-Wl,'
  7088. lt_prog_compiler_pic='-qpic'
  7089. lt_prog_compiler_static='-qstaticlink'
  7090. ;;
  7091. *)
  7092. case `$CC -V 2>&1 | sed 5q` in
  7093. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7094. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7095. lt_prog_compiler_pic='-KPIC'
  7096. lt_prog_compiler_static='-Bstatic'
  7097. lt_prog_compiler_wl=''
  7098. ;;
  7099. *Sun\ F* | *Sun*Fortran*)
  7100. lt_prog_compiler_pic='-KPIC'
  7101. lt_prog_compiler_static='-Bstatic'
  7102. lt_prog_compiler_wl='-Qoption ld '
  7103. ;;
  7104. *Sun\ C*)
  7105. # Sun C 5.9
  7106. lt_prog_compiler_pic='-KPIC'
  7107. lt_prog_compiler_static='-Bstatic'
  7108. lt_prog_compiler_wl='-Wl,'
  7109. ;;
  7110. *Intel*\ [CF]*Compiler*)
  7111. lt_prog_compiler_wl='-Wl,'
  7112. lt_prog_compiler_pic='-fPIC'
  7113. lt_prog_compiler_static='-static'
  7114. ;;
  7115. *Portland\ Group*)
  7116. lt_prog_compiler_wl='-Wl,'
  7117. lt_prog_compiler_pic='-fpic'
  7118. lt_prog_compiler_static='-Bstatic'
  7119. ;;
  7120. esac
  7121. ;;
  7122. esac
  7123. ;;
  7124. newsos6)
  7125. lt_prog_compiler_pic='-KPIC'
  7126. lt_prog_compiler_static='-Bstatic'
  7127. ;;
  7128. *nto* | *qnx*)
  7129. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7130. # it will coredump.
  7131. lt_prog_compiler_pic='-fPIC -shared'
  7132. ;;
  7133. osf3* | osf4* | osf5*)
  7134. lt_prog_compiler_wl='-Wl,'
  7135. # All OSF/1 code is PIC.
  7136. lt_prog_compiler_static='-non_shared'
  7137. ;;
  7138. rdos*)
  7139. lt_prog_compiler_static='-non_shared'
  7140. ;;
  7141. solaris*)
  7142. lt_prog_compiler_pic='-KPIC'
  7143. lt_prog_compiler_static='-Bstatic'
  7144. case $cc_basename in
  7145. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7146. lt_prog_compiler_wl='-Qoption ld ';;
  7147. *)
  7148. lt_prog_compiler_wl='-Wl,';;
  7149. esac
  7150. ;;
  7151. sunos4*)
  7152. lt_prog_compiler_wl='-Qoption ld '
  7153. lt_prog_compiler_pic='-PIC'
  7154. lt_prog_compiler_static='-Bstatic'
  7155. ;;
  7156. sysv4 | sysv4.2uw2* | sysv4.3*)
  7157. lt_prog_compiler_wl='-Wl,'
  7158. lt_prog_compiler_pic='-KPIC'
  7159. lt_prog_compiler_static='-Bstatic'
  7160. ;;
  7161. sysv4*MP*)
  7162. if test -d /usr/nec ;then
  7163. lt_prog_compiler_pic='-Kconform_pic'
  7164. lt_prog_compiler_static='-Bstatic'
  7165. fi
  7166. ;;
  7167. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7168. lt_prog_compiler_wl='-Wl,'
  7169. lt_prog_compiler_pic='-KPIC'
  7170. lt_prog_compiler_static='-Bstatic'
  7171. ;;
  7172. unicos*)
  7173. lt_prog_compiler_wl='-Wl,'
  7174. lt_prog_compiler_can_build_shared=no
  7175. ;;
  7176. uts4*)
  7177. lt_prog_compiler_pic='-pic'
  7178. lt_prog_compiler_static='-Bstatic'
  7179. ;;
  7180. *)
  7181. lt_prog_compiler_can_build_shared=no
  7182. ;;
  7183. esac
  7184. fi
  7185. case $host_os in
  7186. # For platforms which do not support PIC, -DPIC is meaningless:
  7187. *djgpp*)
  7188. lt_prog_compiler_pic=
  7189. ;;
  7190. *)
  7191. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7192. ;;
  7193. esac
  7194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7195. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7196. if ${lt_cv_prog_compiler_pic+:} false; then :
  7197. $as_echo_n "(cached) " >&6
  7198. else
  7199. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7200. fi
  7201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7202. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7203. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7204. #
  7205. # Check to make sure the PIC flag actually works.
  7206. #
  7207. if test -n "$lt_prog_compiler_pic"; then
  7208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7209. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7210. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7211. $as_echo_n "(cached) " >&6
  7212. else
  7213. lt_cv_prog_compiler_pic_works=no
  7214. ac_outfile=conftest.$ac_objext
  7215. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7216. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7217. # Insert the option either (1) after the last *FLAGS variable, or
  7218. # (2) before a word containing "conftest.", or (3) at the end.
  7219. # Note that $ac_compile itself does not contain backslashes and begins
  7220. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7221. # The option is referenced via a variable to avoid confusing sed.
  7222. lt_compile=`echo "$ac_compile" | $SED \
  7223. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7224. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7225. -e 's:$: $lt_compiler_flag:'`
  7226. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7227. (eval "$lt_compile" 2>conftest.err)
  7228. ac_status=$?
  7229. cat conftest.err >&5
  7230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7231. if (exit $ac_status) && test -s "$ac_outfile"; then
  7232. # The compiler can only warn and ignore the option if not recognized
  7233. # So say no if there are warnings other than the usual output.
  7234. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7235. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7236. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7237. lt_cv_prog_compiler_pic_works=yes
  7238. fi
  7239. fi
  7240. $RM conftest*
  7241. fi
  7242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7243. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7244. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7245. case $lt_prog_compiler_pic in
  7246. "" | " "*) ;;
  7247. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7248. esac
  7249. else
  7250. lt_prog_compiler_pic=
  7251. lt_prog_compiler_can_build_shared=no
  7252. fi
  7253. fi
  7254. #
  7255. # Check to make sure the static flag actually works.
  7256. #
  7257. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7259. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7260. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7261. $as_echo_n "(cached) " >&6
  7262. else
  7263. lt_cv_prog_compiler_static_works=no
  7264. save_LDFLAGS="$LDFLAGS"
  7265. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7266. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7267. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7268. # The linker can only warn and ignore the option if not recognized
  7269. # So say no if there are warnings
  7270. if test -s conftest.err; then
  7271. # Append any errors to the config.log.
  7272. cat conftest.err 1>&5
  7273. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7274. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7275. if diff conftest.exp conftest.er2 >/dev/null; then
  7276. lt_cv_prog_compiler_static_works=yes
  7277. fi
  7278. else
  7279. lt_cv_prog_compiler_static_works=yes
  7280. fi
  7281. fi
  7282. $RM -r conftest*
  7283. LDFLAGS="$save_LDFLAGS"
  7284. fi
  7285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7286. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7287. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7288. :
  7289. else
  7290. lt_prog_compiler_static=
  7291. fi
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7293. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7294. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7295. $as_echo_n "(cached) " >&6
  7296. else
  7297. lt_cv_prog_compiler_c_o=no
  7298. $RM -r conftest 2>/dev/null
  7299. mkdir conftest
  7300. cd conftest
  7301. mkdir out
  7302. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7303. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7304. # Insert the option either (1) after the last *FLAGS variable, or
  7305. # (2) before a word containing "conftest.", or (3) at the end.
  7306. # Note that $ac_compile itself does not contain backslashes and begins
  7307. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7308. lt_compile=`echo "$ac_compile" | $SED \
  7309. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7310. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7311. -e 's:$: $lt_compiler_flag:'`
  7312. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7313. (eval "$lt_compile" 2>out/conftest.err)
  7314. ac_status=$?
  7315. cat out/conftest.err >&5
  7316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7317. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7318. then
  7319. # The compiler can only warn and ignore the option if not recognized
  7320. # So say no if there are warnings
  7321. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7322. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7323. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7324. lt_cv_prog_compiler_c_o=yes
  7325. fi
  7326. fi
  7327. chmod u+w . 2>&5
  7328. $RM conftest*
  7329. # SGI C++ compiler will create directory out/ii_files/ for
  7330. # template instantiation
  7331. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7332. $RM out/* && rmdir out
  7333. cd ..
  7334. $RM -r conftest
  7335. $RM conftest*
  7336. fi
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7338. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7340. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7341. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7342. $as_echo_n "(cached) " >&6
  7343. else
  7344. lt_cv_prog_compiler_c_o=no
  7345. $RM -r conftest 2>/dev/null
  7346. mkdir conftest
  7347. cd conftest
  7348. mkdir out
  7349. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7350. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7351. # Insert the option either (1) after the last *FLAGS variable, or
  7352. # (2) before a word containing "conftest.", or (3) at the end.
  7353. # Note that $ac_compile itself does not contain backslashes and begins
  7354. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7355. lt_compile=`echo "$ac_compile" | $SED \
  7356. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7357. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7358. -e 's:$: $lt_compiler_flag:'`
  7359. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7360. (eval "$lt_compile" 2>out/conftest.err)
  7361. ac_status=$?
  7362. cat out/conftest.err >&5
  7363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7364. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7365. then
  7366. # The compiler can only warn and ignore the option if not recognized
  7367. # So say no if there are warnings
  7368. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7369. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7370. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7371. lt_cv_prog_compiler_c_o=yes
  7372. fi
  7373. fi
  7374. chmod u+w . 2>&5
  7375. $RM conftest*
  7376. # SGI C++ compiler will create directory out/ii_files/ for
  7377. # template instantiation
  7378. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7379. $RM out/* && rmdir out
  7380. cd ..
  7381. $RM -r conftest
  7382. $RM conftest*
  7383. fi
  7384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7385. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7386. hard_links="nottested"
  7387. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7388. # do not overwrite the value of need_locks provided by the user
  7389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7390. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7391. hard_links=yes
  7392. $RM conftest*
  7393. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7394. touch conftest.a
  7395. ln conftest.a conftest.b 2>&5 || hard_links=no
  7396. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7398. $as_echo "$hard_links" >&6; }
  7399. if test "$hard_links" = no; then
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7401. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7402. need_locks=warn
  7403. fi
  7404. else
  7405. need_locks=no
  7406. fi
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7408. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7409. runpath_var=
  7410. allow_undefined_flag=
  7411. always_export_symbols=no
  7412. archive_cmds=
  7413. archive_expsym_cmds=
  7414. compiler_needs_object=no
  7415. enable_shared_with_static_runtimes=no
  7416. export_dynamic_flag_spec=
  7417. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7418. hardcode_automatic=no
  7419. hardcode_direct=no
  7420. hardcode_direct_absolute=no
  7421. hardcode_libdir_flag_spec=
  7422. hardcode_libdir_separator=
  7423. hardcode_minus_L=no
  7424. hardcode_shlibpath_var=unsupported
  7425. inherit_rpath=no
  7426. link_all_deplibs=unknown
  7427. module_cmds=
  7428. module_expsym_cmds=
  7429. old_archive_from_new_cmds=
  7430. old_archive_from_expsyms_cmds=
  7431. thread_safe_flag_spec=
  7432. whole_archive_flag_spec=
  7433. # include_expsyms should be a list of space-separated symbols to be *always*
  7434. # included in the symbol list
  7435. include_expsyms=
  7436. # exclude_expsyms can be an extended regexp of symbols to exclude
  7437. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7438. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7439. # as well as any symbol that contains `d'.
  7440. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7441. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7442. # platforms (ab)use it in PIC code, but their linkers get confused if
  7443. # the symbol is explicitly referenced. Since portable code cannot
  7444. # rely on this symbol name, it's probably fine to never include it in
  7445. # preloaded symbol tables.
  7446. # Exclude shared library initialization/finalization symbols.
  7447. extract_expsyms_cmds=
  7448. case $host_os in
  7449. cygwin* | mingw* | pw32* | cegcc*)
  7450. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7451. # When not using gcc, we currently assume that we are using
  7452. # Microsoft Visual C++.
  7453. if test "$GCC" != yes; then
  7454. with_gnu_ld=no
  7455. fi
  7456. ;;
  7457. interix*)
  7458. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7459. with_gnu_ld=yes
  7460. ;;
  7461. openbsd*)
  7462. with_gnu_ld=no
  7463. ;;
  7464. esac
  7465. ld_shlibs=yes
  7466. # On some targets, GNU ld is compatible enough with the native linker
  7467. # that we're better off using the native interface for both.
  7468. lt_use_gnu_ld_interface=no
  7469. if test "$with_gnu_ld" = yes; then
  7470. case $host_os in
  7471. aix*)
  7472. # The AIX port of GNU ld has always aspired to compatibility
  7473. # with the native linker. However, as the warning in the GNU ld
  7474. # block says, versions before 2.19.5* couldn't really create working
  7475. # shared libraries, regardless of the interface used.
  7476. case `$LD -v 2>&1` in
  7477. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7478. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7479. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7480. *)
  7481. lt_use_gnu_ld_interface=yes
  7482. ;;
  7483. esac
  7484. ;;
  7485. *)
  7486. lt_use_gnu_ld_interface=yes
  7487. ;;
  7488. esac
  7489. fi
  7490. if test "$lt_use_gnu_ld_interface" = yes; then
  7491. # If archive_cmds runs LD, not CC, wlarc should be empty
  7492. wlarc='${wl}'
  7493. # Set some defaults for GNU ld with shared library support. These
  7494. # are reset later if shared libraries are not supported. Putting them
  7495. # here allows them to be overridden if necessary.
  7496. runpath_var=LD_RUN_PATH
  7497. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7498. export_dynamic_flag_spec='${wl}--export-dynamic'
  7499. # ancient GNU ld didn't support --whole-archive et. al.
  7500. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7501. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7502. else
  7503. whole_archive_flag_spec=
  7504. fi
  7505. supports_anon_versioning=no
  7506. case `$LD -v 2>&1` in
  7507. *GNU\ gold*) supports_anon_versioning=yes ;;
  7508. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7509. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7510. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7511. *\ 2.11.*) ;; # other 2.11 versions
  7512. *) supports_anon_versioning=yes ;;
  7513. esac
  7514. # See if GNU ld supports shared libraries.
  7515. case $host_os in
  7516. aix[3-9]*)
  7517. # On AIX/PPC, the GNU linker is very broken
  7518. if test "$host_cpu" != ia64; then
  7519. ld_shlibs=no
  7520. cat <<_LT_EOF 1>&2
  7521. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7522. *** to be unable to reliably create shared libraries on AIX.
  7523. *** Therefore, libtool is disabling shared libraries support. If you
  7524. *** really care for shared libraries, you may want to install binutils
  7525. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7526. *** You will then need to restart the configuration process.
  7527. _LT_EOF
  7528. fi
  7529. ;;
  7530. amigaos*)
  7531. case $host_cpu in
  7532. powerpc)
  7533. # see comment about AmigaOS4 .so support
  7534. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7535. archive_expsym_cmds=''
  7536. ;;
  7537. m68k)
  7538. 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)'
  7539. hardcode_libdir_flag_spec='-L$libdir'
  7540. hardcode_minus_L=yes
  7541. ;;
  7542. esac
  7543. ;;
  7544. beos*)
  7545. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7546. allow_undefined_flag=unsupported
  7547. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7548. # support --undefined. This deserves some investigation. FIXME
  7549. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7550. else
  7551. ld_shlibs=no
  7552. fi
  7553. ;;
  7554. cygwin* | mingw* | pw32* | cegcc*)
  7555. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7556. # as there is no search path for DLLs.
  7557. hardcode_libdir_flag_spec='-L$libdir'
  7558. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7559. allow_undefined_flag=unsupported
  7560. always_export_symbols=no
  7561. enable_shared_with_static_runtimes=yes
  7562. 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'
  7563. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7564. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7565. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7566. # If the export-symbols file already is a .def file (1st line
  7567. # is EXPORTS), use it as is; otherwise, prepend...
  7568. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7569. cp $export_symbols $output_objdir/$soname.def;
  7570. else
  7571. echo EXPORTS > $output_objdir/$soname.def;
  7572. cat $export_symbols >> $output_objdir/$soname.def;
  7573. fi~
  7574. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7575. else
  7576. ld_shlibs=no
  7577. fi
  7578. ;;
  7579. haiku*)
  7580. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7581. link_all_deplibs=yes
  7582. ;;
  7583. interix[3-9]*)
  7584. hardcode_direct=no
  7585. hardcode_shlibpath_var=no
  7586. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7587. export_dynamic_flag_spec='${wl}-E'
  7588. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7589. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7590. # default) and relocated if they conflict, which is a slow very memory
  7591. # consuming and fragmenting process. To avoid this, we pick a random,
  7592. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7593. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7594. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7595. 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'
  7596. ;;
  7597. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7598. tmp_diet=no
  7599. if test "$host_os" = linux-dietlibc; then
  7600. case $cc_basename in
  7601. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7602. esac
  7603. fi
  7604. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7605. && test "$tmp_diet" = no
  7606. then
  7607. tmp_addflag=' $pic_flag'
  7608. tmp_sharedflag='-shared'
  7609. case $cc_basename,$host_cpu in
  7610. pgcc*) # Portland Group C compiler
  7611. 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'
  7612. tmp_addflag=' $pic_flag'
  7613. ;;
  7614. pgf77* | pgf90* | pgf95* | pgfortran*)
  7615. # Portland Group f77 and f90 compilers
  7616. 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'
  7617. tmp_addflag=' $pic_flag -Mnomain' ;;
  7618. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7619. tmp_addflag=' -i_dynamic' ;;
  7620. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7621. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7622. ifc* | ifort*) # Intel Fortran compiler
  7623. tmp_addflag=' -nofor_main' ;;
  7624. lf95*) # Lahey Fortran 8.1
  7625. whole_archive_flag_spec=
  7626. tmp_sharedflag='--shared' ;;
  7627. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7628. tmp_sharedflag='-qmkshrobj'
  7629. tmp_addflag= ;;
  7630. nvcc*) # Cuda Compiler Driver 2.2
  7631. 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'
  7632. compiler_needs_object=yes
  7633. ;;
  7634. esac
  7635. case `$CC -V 2>&1 | sed 5q` in
  7636. *Sun\ C*) # Sun C 5.9
  7637. 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'
  7638. compiler_needs_object=yes
  7639. tmp_sharedflag='-G' ;;
  7640. *Sun\ F*) # Sun Fortran 8.3
  7641. tmp_sharedflag='-G' ;;
  7642. esac
  7643. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7644. if test "x$supports_anon_versioning" = xyes; then
  7645. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7646. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7647. echo "local: *; };" >> $output_objdir/$libname.ver~
  7648. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7649. fi
  7650. case $cc_basename in
  7651. xlf* | bgf* | bgxlf* | mpixlf*)
  7652. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7653. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7654. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7655. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7656. if test "x$supports_anon_versioning" = xyes; then
  7657. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7658. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7659. echo "local: *; };" >> $output_objdir/$libname.ver~
  7660. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7661. fi
  7662. ;;
  7663. esac
  7664. else
  7665. ld_shlibs=no
  7666. fi
  7667. ;;
  7668. netbsd*)
  7669. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7670. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7671. wlarc=
  7672. else
  7673. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7674. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7675. fi
  7676. ;;
  7677. solaris*)
  7678. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7679. ld_shlibs=no
  7680. cat <<_LT_EOF 1>&2
  7681. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7682. *** create shared libraries on Solaris systems. Therefore, libtool
  7683. *** is disabling shared libraries support. We urge you to upgrade GNU
  7684. *** binutils to release 2.9.1 or newer. Another option is to modify
  7685. *** your PATH or compiler configuration so that the native linker is
  7686. *** used, and then restart.
  7687. _LT_EOF
  7688. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7689. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7690. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7691. else
  7692. ld_shlibs=no
  7693. fi
  7694. ;;
  7695. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7696. case `$LD -v 2>&1` in
  7697. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7698. ld_shlibs=no
  7699. cat <<_LT_EOF 1>&2
  7700. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7701. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7702. *** is disabling shared libraries support. We urge you to upgrade GNU
  7703. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7704. *** your PATH or compiler configuration so that the native linker is
  7705. *** used, and then restart.
  7706. _LT_EOF
  7707. ;;
  7708. *)
  7709. # For security reasons, it is highly recommended that you always
  7710. # use absolute paths for naming shared libraries, and exclude the
  7711. # DT_RUNPATH tag from executables and libraries. But doing so
  7712. # requires that you compile everything twice, which is a pain.
  7713. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7714. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7715. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7716. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7717. else
  7718. ld_shlibs=no
  7719. fi
  7720. ;;
  7721. esac
  7722. ;;
  7723. sunos4*)
  7724. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7725. wlarc=
  7726. hardcode_direct=yes
  7727. hardcode_shlibpath_var=no
  7728. ;;
  7729. *)
  7730. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7731. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7732. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7733. else
  7734. ld_shlibs=no
  7735. fi
  7736. ;;
  7737. esac
  7738. if test "$ld_shlibs" = no; then
  7739. runpath_var=
  7740. hardcode_libdir_flag_spec=
  7741. export_dynamic_flag_spec=
  7742. whole_archive_flag_spec=
  7743. fi
  7744. else
  7745. # PORTME fill in a description of your system's linker (not GNU ld)
  7746. case $host_os in
  7747. aix3*)
  7748. allow_undefined_flag=unsupported
  7749. always_export_symbols=yes
  7750. 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'
  7751. # Note: this linker hardcodes the directories in LIBPATH if there
  7752. # are no directories specified by -L.
  7753. hardcode_minus_L=yes
  7754. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7755. # Neither direct hardcoding nor static linking is supported with a
  7756. # broken collect2.
  7757. hardcode_direct=unsupported
  7758. fi
  7759. ;;
  7760. aix[4-9]*)
  7761. if test "$host_cpu" = ia64; then
  7762. # On IA64, the linker does run time linking by default, so we don't
  7763. # have to do anything special.
  7764. aix_use_runtimelinking=no
  7765. exp_sym_flag='-Bexport'
  7766. no_entry_flag=""
  7767. else
  7768. # If we're using GNU nm, then we don't want the "-C" option.
  7769. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7770. # Also, AIX nm treats weak defined symbols like other global
  7771. # defined symbols, whereas GNU nm marks them as "W".
  7772. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7773. 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'
  7774. else
  7775. 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'
  7776. fi
  7777. aix_use_runtimelinking=no
  7778. # Test if we are trying to use run time linking or normal
  7779. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7780. # need to do runtime linking.
  7781. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7782. for ld_flag in $LDFLAGS; do
  7783. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7784. aix_use_runtimelinking=yes
  7785. break
  7786. fi
  7787. done
  7788. ;;
  7789. esac
  7790. exp_sym_flag='-bexport'
  7791. no_entry_flag='-bnoentry'
  7792. fi
  7793. # When large executables or shared objects are built, AIX ld can
  7794. # have problems creating the table of contents. If linking a library
  7795. # or program results in "error TOC overflow" add -mminimal-toc to
  7796. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7797. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7798. archive_cmds=''
  7799. hardcode_direct=yes
  7800. hardcode_direct_absolute=yes
  7801. hardcode_libdir_separator=':'
  7802. link_all_deplibs=yes
  7803. file_list_spec='${wl}-f,'
  7804. if test "$GCC" = yes; then
  7805. case $host_os in aix4.[012]|aix4.[012].*)
  7806. # We only want to do this on AIX 4.2 and lower, the check
  7807. # below for broken collect2 doesn't work under 4.3+
  7808. collect2name=`${CC} -print-prog-name=collect2`
  7809. if test -f "$collect2name" &&
  7810. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7811. then
  7812. # We have reworked collect2
  7813. :
  7814. else
  7815. # We have old collect2
  7816. hardcode_direct=unsupported
  7817. # It fails to find uninstalled libraries when the uninstalled
  7818. # path is not listed in the libpath. Setting hardcode_minus_L
  7819. # to unsupported forces relinking
  7820. hardcode_minus_L=yes
  7821. hardcode_libdir_flag_spec='-L$libdir'
  7822. hardcode_libdir_separator=
  7823. fi
  7824. ;;
  7825. esac
  7826. shared_flag='-shared'
  7827. if test "$aix_use_runtimelinking" = yes; then
  7828. shared_flag="$shared_flag "'${wl}-G'
  7829. fi
  7830. else
  7831. # not using gcc
  7832. if test "$host_cpu" = ia64; then
  7833. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7834. # chokes on -Wl,-G. The following line is correct:
  7835. shared_flag='-G'
  7836. else
  7837. if test "$aix_use_runtimelinking" = yes; then
  7838. shared_flag='${wl}-G'
  7839. else
  7840. shared_flag='${wl}-bM:SRE'
  7841. fi
  7842. fi
  7843. fi
  7844. export_dynamic_flag_spec='${wl}-bexpall'
  7845. # It seems that -bexpall does not export symbols beginning with
  7846. # underscore (_), so it is better to generate a list of symbols to export.
  7847. always_export_symbols=yes
  7848. if test "$aix_use_runtimelinking" = yes; then
  7849. # Warning - without using the other runtime loading flags (-brtl),
  7850. # -berok will link without error, but may produce a broken library.
  7851. allow_undefined_flag='-berok'
  7852. # Determine the default libpath from the value encoded in an
  7853. # empty executable.
  7854. if test "${lt_cv_aix_libpath+set}" = set; then
  7855. aix_libpath=$lt_cv_aix_libpath
  7856. else
  7857. if ${lt_cv_aix_libpath_+:} false; then :
  7858. $as_echo_n "(cached) " >&6
  7859. else
  7860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7861. /* end confdefs.h. */
  7862. int
  7863. main ()
  7864. {
  7865. ;
  7866. return 0;
  7867. }
  7868. _ACEOF
  7869. if ac_fn_c_try_link "$LINENO"; then :
  7870. lt_aix_libpath_sed='
  7871. /Import File Strings/,/^$/ {
  7872. /^0/ {
  7873. s/^0 *\([^ ]*\) *$/\1/
  7874. p
  7875. }
  7876. }'
  7877. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7878. # Check for a 64-bit object if we didn't find anything.
  7879. if test -z "$lt_cv_aix_libpath_"; then
  7880. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7881. fi
  7882. fi
  7883. rm -f core conftest.err conftest.$ac_objext \
  7884. conftest$ac_exeext conftest.$ac_ext
  7885. if test -z "$lt_cv_aix_libpath_"; then
  7886. lt_cv_aix_libpath_="/usr/lib:/lib"
  7887. fi
  7888. fi
  7889. aix_libpath=$lt_cv_aix_libpath_
  7890. fi
  7891. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7892. 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"
  7893. else
  7894. if test "$host_cpu" = ia64; then
  7895. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7896. allow_undefined_flag="-z nodefs"
  7897. 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"
  7898. else
  7899. # Determine the default libpath from the value encoded in an
  7900. # empty executable.
  7901. if test "${lt_cv_aix_libpath+set}" = set; then
  7902. aix_libpath=$lt_cv_aix_libpath
  7903. else
  7904. if ${lt_cv_aix_libpath_+:} false; then :
  7905. $as_echo_n "(cached) " >&6
  7906. else
  7907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7908. /* end confdefs.h. */
  7909. int
  7910. main ()
  7911. {
  7912. ;
  7913. return 0;
  7914. }
  7915. _ACEOF
  7916. if ac_fn_c_try_link "$LINENO"; then :
  7917. lt_aix_libpath_sed='
  7918. /Import File Strings/,/^$/ {
  7919. /^0/ {
  7920. s/^0 *\([^ ]*\) *$/\1/
  7921. p
  7922. }
  7923. }'
  7924. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7925. # Check for a 64-bit object if we didn't find anything.
  7926. if test -z "$lt_cv_aix_libpath_"; then
  7927. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7928. fi
  7929. fi
  7930. rm -f core conftest.err conftest.$ac_objext \
  7931. conftest$ac_exeext conftest.$ac_ext
  7932. if test -z "$lt_cv_aix_libpath_"; then
  7933. lt_cv_aix_libpath_="/usr/lib:/lib"
  7934. fi
  7935. fi
  7936. aix_libpath=$lt_cv_aix_libpath_
  7937. fi
  7938. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7939. # Warning - without using the other run time loading flags,
  7940. # -berok will link without error, but may produce a broken library.
  7941. no_undefined_flag=' ${wl}-bernotok'
  7942. allow_undefined_flag=' ${wl}-berok'
  7943. if test "$with_gnu_ld" = yes; then
  7944. # We only use this code for GNU lds that support --whole-archive.
  7945. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7946. else
  7947. # Exported symbols can be pulled into shared objects from archives
  7948. whole_archive_flag_spec='$convenience'
  7949. fi
  7950. archive_cmds_need_lc=yes
  7951. # This is similar to how AIX traditionally builds its shared libraries.
  7952. 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'
  7953. fi
  7954. fi
  7955. ;;
  7956. amigaos*)
  7957. case $host_cpu in
  7958. powerpc)
  7959. # see comment about AmigaOS4 .so support
  7960. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7961. archive_expsym_cmds=''
  7962. ;;
  7963. m68k)
  7964. 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)'
  7965. hardcode_libdir_flag_spec='-L$libdir'
  7966. hardcode_minus_L=yes
  7967. ;;
  7968. esac
  7969. ;;
  7970. bsdi[45]*)
  7971. export_dynamic_flag_spec=-rdynamic
  7972. ;;
  7973. cygwin* | mingw* | pw32* | cegcc*)
  7974. # When not using gcc, we currently assume that we are using
  7975. # Microsoft Visual C++.
  7976. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7977. # no search path for DLLs.
  7978. case $cc_basename in
  7979. cl*)
  7980. # Native MSVC
  7981. hardcode_libdir_flag_spec=' '
  7982. allow_undefined_flag=unsupported
  7983. always_export_symbols=yes
  7984. file_list_spec='@'
  7985. # Tell ltmain to make .lib files, not .a files.
  7986. libext=lib
  7987. # Tell ltmain to make .dll files, not .so files.
  7988. shrext_cmds=".dll"
  7989. # FIXME: Setting linknames here is a bad hack.
  7990. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7991. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7992. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7993. else
  7994. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7995. fi~
  7996. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7997. linknames='
  7998. # The linker will not automatically build a static lib if we build a DLL.
  7999. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8000. enable_shared_with_static_runtimes=yes
  8001. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8002. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8003. # Don't use ranlib
  8004. old_postinstall_cmds='chmod 644 $oldlib'
  8005. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8006. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8007. case $lt_outputfile in
  8008. *.exe|*.EXE) ;;
  8009. *)
  8010. lt_outputfile="$lt_outputfile.exe"
  8011. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8012. ;;
  8013. esac~
  8014. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8015. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8016. $RM "$lt_outputfile.manifest";
  8017. fi'
  8018. ;;
  8019. *)
  8020. # Assume MSVC wrapper
  8021. hardcode_libdir_flag_spec=' '
  8022. allow_undefined_flag=unsupported
  8023. # Tell ltmain to make .lib files, not .a files.
  8024. libext=lib
  8025. # Tell ltmain to make .dll files, not .so files.
  8026. shrext_cmds=".dll"
  8027. # FIXME: Setting linknames here is a bad hack.
  8028. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8029. # The linker will automatically build a .lib file if we build a DLL.
  8030. old_archive_from_new_cmds='true'
  8031. # FIXME: Should let the user specify the lib program.
  8032. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8033. enable_shared_with_static_runtimes=yes
  8034. ;;
  8035. esac
  8036. ;;
  8037. darwin* | rhapsody*)
  8038. archive_cmds_need_lc=no
  8039. hardcode_direct=no
  8040. hardcode_automatic=yes
  8041. hardcode_shlibpath_var=unsupported
  8042. if test "$lt_cv_ld_force_load" = "yes"; then
  8043. 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\"`'
  8044. else
  8045. whole_archive_flag_spec=''
  8046. fi
  8047. link_all_deplibs=yes
  8048. allow_undefined_flag="$_lt_dar_allow_undefined"
  8049. case $cc_basename in
  8050. ifort*) _lt_dar_can_shared=yes ;;
  8051. *) _lt_dar_can_shared=$GCC ;;
  8052. esac
  8053. if test "$_lt_dar_can_shared" = "yes"; then
  8054. output_verbose_link_cmd=func_echo_all
  8055. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8056. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8057. 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}"
  8058. 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}"
  8059. else
  8060. ld_shlibs=no
  8061. fi
  8062. ;;
  8063. dgux*)
  8064. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8065. hardcode_libdir_flag_spec='-L$libdir'
  8066. hardcode_shlibpath_var=no
  8067. ;;
  8068. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8069. # support. Future versions do this automatically, but an explicit c++rt0.o
  8070. # does not break anything, and helps significantly (at the cost of a little
  8071. # extra space).
  8072. freebsd2.2*)
  8073. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8074. hardcode_libdir_flag_spec='-R$libdir'
  8075. hardcode_direct=yes
  8076. hardcode_shlibpath_var=no
  8077. ;;
  8078. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8079. freebsd2.*)
  8080. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8081. hardcode_direct=yes
  8082. hardcode_minus_L=yes
  8083. hardcode_shlibpath_var=no
  8084. ;;
  8085. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8086. freebsd* | dragonfly*)
  8087. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8088. hardcode_libdir_flag_spec='-R$libdir'
  8089. hardcode_direct=yes
  8090. hardcode_shlibpath_var=no
  8091. ;;
  8092. hpux9*)
  8093. if test "$GCC" = yes; then
  8094. 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'
  8095. else
  8096. 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'
  8097. fi
  8098. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8099. hardcode_libdir_separator=:
  8100. hardcode_direct=yes
  8101. # hardcode_minus_L: Not really in the search PATH,
  8102. # but as the default location of the library.
  8103. hardcode_minus_L=yes
  8104. export_dynamic_flag_spec='${wl}-E'
  8105. ;;
  8106. hpux10*)
  8107. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8108. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8109. else
  8110. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8111. fi
  8112. if test "$with_gnu_ld" = no; then
  8113. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8114. hardcode_libdir_separator=:
  8115. hardcode_direct=yes
  8116. hardcode_direct_absolute=yes
  8117. export_dynamic_flag_spec='${wl}-E'
  8118. # hardcode_minus_L: Not really in the search PATH,
  8119. # but as the default location of the library.
  8120. hardcode_minus_L=yes
  8121. fi
  8122. ;;
  8123. hpux11*)
  8124. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8125. case $host_cpu in
  8126. hppa*64*)
  8127. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8128. ;;
  8129. ia64*)
  8130. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8131. ;;
  8132. *)
  8133. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8134. ;;
  8135. esac
  8136. else
  8137. case $host_cpu in
  8138. hppa*64*)
  8139. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8140. ;;
  8141. ia64*)
  8142. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8143. ;;
  8144. *)
  8145. # Older versions of the 11.00 compiler do not understand -b yet
  8146. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8148. $as_echo_n "checking if $CC understands -b... " >&6; }
  8149. if ${lt_cv_prog_compiler__b+:} false; then :
  8150. $as_echo_n "(cached) " >&6
  8151. else
  8152. lt_cv_prog_compiler__b=no
  8153. save_LDFLAGS="$LDFLAGS"
  8154. LDFLAGS="$LDFLAGS -b"
  8155. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8156. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8157. # The linker can only warn and ignore the option if not recognized
  8158. # So say no if there are warnings
  8159. if test -s conftest.err; then
  8160. # Append any errors to the config.log.
  8161. cat conftest.err 1>&5
  8162. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8163. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8164. if diff conftest.exp conftest.er2 >/dev/null; then
  8165. lt_cv_prog_compiler__b=yes
  8166. fi
  8167. else
  8168. lt_cv_prog_compiler__b=yes
  8169. fi
  8170. fi
  8171. $RM -r conftest*
  8172. LDFLAGS="$save_LDFLAGS"
  8173. fi
  8174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8175. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8176. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8177. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8178. else
  8179. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8180. fi
  8181. ;;
  8182. esac
  8183. fi
  8184. if test "$with_gnu_ld" = no; then
  8185. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8186. hardcode_libdir_separator=:
  8187. case $host_cpu in
  8188. hppa*64*|ia64*)
  8189. hardcode_direct=no
  8190. hardcode_shlibpath_var=no
  8191. ;;
  8192. *)
  8193. hardcode_direct=yes
  8194. hardcode_direct_absolute=yes
  8195. export_dynamic_flag_spec='${wl}-E'
  8196. # hardcode_minus_L: Not really in the search PATH,
  8197. # but as the default location of the library.
  8198. hardcode_minus_L=yes
  8199. ;;
  8200. esac
  8201. fi
  8202. ;;
  8203. irix5* | irix6* | nonstopux*)
  8204. if test "$GCC" = yes; then
  8205. 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'
  8206. # Try to use the -exported_symbol ld option, if it does not
  8207. # work, assume that -exports_file does not work either and
  8208. # implicitly export all symbols.
  8209. # This should be the same for all languages, so no per-tag cache variable.
  8210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8211. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8212. if ${lt_cv_irix_exported_symbol+:} false; then :
  8213. $as_echo_n "(cached) " >&6
  8214. else
  8215. save_LDFLAGS="$LDFLAGS"
  8216. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8218. /* end confdefs.h. */
  8219. int foo (void) { return 0; }
  8220. _ACEOF
  8221. if ac_fn_c_try_link "$LINENO"; then :
  8222. lt_cv_irix_exported_symbol=yes
  8223. else
  8224. lt_cv_irix_exported_symbol=no
  8225. fi
  8226. rm -f core conftest.err conftest.$ac_objext \
  8227. conftest$ac_exeext conftest.$ac_ext
  8228. LDFLAGS="$save_LDFLAGS"
  8229. fi
  8230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8231. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8232. if test "$lt_cv_irix_exported_symbol" = yes; then
  8233. 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'
  8234. fi
  8235. else
  8236. 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'
  8237. 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'
  8238. fi
  8239. archive_cmds_need_lc='no'
  8240. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8241. hardcode_libdir_separator=:
  8242. inherit_rpath=yes
  8243. link_all_deplibs=yes
  8244. ;;
  8245. netbsd*)
  8246. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8247. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8248. else
  8249. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8250. fi
  8251. hardcode_libdir_flag_spec='-R$libdir'
  8252. hardcode_direct=yes
  8253. hardcode_shlibpath_var=no
  8254. ;;
  8255. newsos6)
  8256. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8257. hardcode_direct=yes
  8258. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8259. hardcode_libdir_separator=:
  8260. hardcode_shlibpath_var=no
  8261. ;;
  8262. *nto* | *qnx*)
  8263. ;;
  8264. openbsd*)
  8265. if test -f /usr/libexec/ld.so; then
  8266. hardcode_direct=yes
  8267. hardcode_shlibpath_var=no
  8268. hardcode_direct_absolute=yes
  8269. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8270. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8271. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8272. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8273. export_dynamic_flag_spec='${wl}-E'
  8274. else
  8275. case $host_os in
  8276. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8277. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8278. hardcode_libdir_flag_spec='-R$libdir'
  8279. ;;
  8280. *)
  8281. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8282. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8283. ;;
  8284. esac
  8285. fi
  8286. else
  8287. ld_shlibs=no
  8288. fi
  8289. ;;
  8290. os2*)
  8291. hardcode_libdir_flag_spec='-L$libdir'
  8292. hardcode_minus_L=yes
  8293. allow_undefined_flag=unsupported
  8294. 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'
  8295. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8296. ;;
  8297. osf3*)
  8298. if test "$GCC" = yes; then
  8299. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8300. 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'
  8301. else
  8302. allow_undefined_flag=' -expect_unresolved \*'
  8303. 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'
  8304. fi
  8305. archive_cmds_need_lc='no'
  8306. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8307. hardcode_libdir_separator=:
  8308. ;;
  8309. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8310. if test "$GCC" = yes; then
  8311. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8312. 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'
  8313. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8314. else
  8315. allow_undefined_flag=' -expect_unresolved \*'
  8316. 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'
  8317. 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~
  8318. $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'
  8319. # Both c and cxx compiler support -rpath directly
  8320. hardcode_libdir_flag_spec='-rpath $libdir'
  8321. fi
  8322. archive_cmds_need_lc='no'
  8323. hardcode_libdir_separator=:
  8324. ;;
  8325. solaris*)
  8326. no_undefined_flag=' -z defs'
  8327. if test "$GCC" = yes; then
  8328. wlarc='${wl}'
  8329. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8330. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8331. $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'
  8332. else
  8333. case `$CC -V 2>&1` in
  8334. *"Compilers 5.0"*)
  8335. wlarc=''
  8336. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8337. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8338. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8339. ;;
  8340. *)
  8341. wlarc='${wl}'
  8342. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8343. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8344. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8345. ;;
  8346. esac
  8347. fi
  8348. hardcode_libdir_flag_spec='-R$libdir'
  8349. hardcode_shlibpath_var=no
  8350. case $host_os in
  8351. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8352. *)
  8353. # The compiler driver will combine and reorder linker options,
  8354. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8355. # but is careful enough not to reorder.
  8356. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8357. if test "$GCC" = yes; then
  8358. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8359. else
  8360. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8361. fi
  8362. ;;
  8363. esac
  8364. link_all_deplibs=yes
  8365. ;;
  8366. sunos4*)
  8367. if test "x$host_vendor" = xsequent; then
  8368. # Use $CC to link under sequent, because it throws in some extra .o
  8369. # files that make .init and .fini sections work.
  8370. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8371. else
  8372. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8373. fi
  8374. hardcode_libdir_flag_spec='-L$libdir'
  8375. hardcode_direct=yes
  8376. hardcode_minus_L=yes
  8377. hardcode_shlibpath_var=no
  8378. ;;
  8379. sysv4)
  8380. case $host_vendor in
  8381. sni)
  8382. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8383. hardcode_direct=yes # is this really true???
  8384. ;;
  8385. siemens)
  8386. ## LD is ld it makes a PLAMLIB
  8387. ## CC just makes a GrossModule.
  8388. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8389. reload_cmds='$CC -r -o $output$reload_objs'
  8390. hardcode_direct=no
  8391. ;;
  8392. motorola)
  8393. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8394. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8395. ;;
  8396. esac
  8397. runpath_var='LD_RUN_PATH'
  8398. hardcode_shlibpath_var=no
  8399. ;;
  8400. sysv4.3*)
  8401. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8402. hardcode_shlibpath_var=no
  8403. export_dynamic_flag_spec='-Bexport'
  8404. ;;
  8405. sysv4*MP*)
  8406. if test -d /usr/nec; then
  8407. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8408. hardcode_shlibpath_var=no
  8409. runpath_var=LD_RUN_PATH
  8410. hardcode_runpath_var=yes
  8411. ld_shlibs=yes
  8412. fi
  8413. ;;
  8414. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8415. no_undefined_flag='${wl}-z,text'
  8416. archive_cmds_need_lc=no
  8417. hardcode_shlibpath_var=no
  8418. runpath_var='LD_RUN_PATH'
  8419. if test "$GCC" = yes; then
  8420. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8421. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8422. else
  8423. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8424. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8425. fi
  8426. ;;
  8427. sysv5* | sco3.2v5* | sco5v6*)
  8428. # Note: We can NOT use -z defs as we might desire, because we do not
  8429. # link with -lc, and that would cause any symbols used from libc to
  8430. # always be unresolved, which means just about no library would
  8431. # ever link correctly. If we're not using GNU ld we use -z text
  8432. # though, which does catch some bad symbols but isn't as heavy-handed
  8433. # as -z defs.
  8434. no_undefined_flag='${wl}-z,text'
  8435. allow_undefined_flag='${wl}-z,nodefs'
  8436. archive_cmds_need_lc=no
  8437. hardcode_shlibpath_var=no
  8438. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8439. hardcode_libdir_separator=':'
  8440. link_all_deplibs=yes
  8441. export_dynamic_flag_spec='${wl}-Bexport'
  8442. runpath_var='LD_RUN_PATH'
  8443. if test "$GCC" = yes; then
  8444. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8445. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8446. else
  8447. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8448. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8449. fi
  8450. ;;
  8451. uts4*)
  8452. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8453. hardcode_libdir_flag_spec='-L$libdir'
  8454. hardcode_shlibpath_var=no
  8455. ;;
  8456. *)
  8457. ld_shlibs=no
  8458. ;;
  8459. esac
  8460. if test x$host_vendor = xsni; then
  8461. case $host in
  8462. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8463. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8464. ;;
  8465. esac
  8466. fi
  8467. fi
  8468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8469. $as_echo "$ld_shlibs" >&6; }
  8470. test "$ld_shlibs" = no && can_build_shared=no
  8471. with_gnu_ld=$with_gnu_ld
  8472. #
  8473. # Do we need to explicitly link libc?
  8474. #
  8475. case "x$archive_cmds_need_lc" in
  8476. x|xyes)
  8477. # Assume -lc should be added
  8478. archive_cmds_need_lc=yes
  8479. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8480. case $archive_cmds in
  8481. *'~'*)
  8482. # FIXME: we may have to deal with multi-command sequences.
  8483. ;;
  8484. '$CC '*)
  8485. # Test whether the compiler implicitly links with -lc since on some
  8486. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8487. # to ld, don't add -lc before -lgcc.
  8488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8489. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8490. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8491. $as_echo_n "(cached) " >&6
  8492. else
  8493. $RM conftest*
  8494. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8495. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8496. (eval $ac_compile) 2>&5
  8497. ac_status=$?
  8498. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8499. test $ac_status = 0; } 2>conftest.err; then
  8500. soname=conftest
  8501. lib=conftest
  8502. libobjs=conftest.$ac_objext
  8503. deplibs=
  8504. wl=$lt_prog_compiler_wl
  8505. pic_flag=$lt_prog_compiler_pic
  8506. compiler_flags=-v
  8507. linker_flags=-v
  8508. verstring=
  8509. output_objdir=.
  8510. libname=conftest
  8511. lt_save_allow_undefined_flag=$allow_undefined_flag
  8512. allow_undefined_flag=
  8513. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8514. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8515. ac_status=$?
  8516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8517. test $ac_status = 0; }
  8518. then
  8519. lt_cv_archive_cmds_need_lc=no
  8520. else
  8521. lt_cv_archive_cmds_need_lc=yes
  8522. fi
  8523. allow_undefined_flag=$lt_save_allow_undefined_flag
  8524. else
  8525. cat conftest.err 1>&5
  8526. fi
  8527. $RM conftest*
  8528. fi
  8529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8530. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8531. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8532. ;;
  8533. esac
  8534. fi
  8535. ;;
  8536. esac
  8537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8538. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8539. if test "$GCC" = yes; then
  8540. case $host_os in
  8541. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8542. *) lt_awk_arg="/^libraries:/" ;;
  8543. esac
  8544. case $host_os in
  8545. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8546. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8547. esac
  8548. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8549. case $lt_search_path_spec in
  8550. *\;*)
  8551. # if the path contains ";" then we assume it to be the separator
  8552. # otherwise default to the standard path separator (i.e. ":") - it is
  8553. # assumed that no part of a normal pathname contains ";" but that should
  8554. # okay in the real world where ";" in dirpaths is itself problematic.
  8555. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8556. ;;
  8557. *)
  8558. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8559. ;;
  8560. esac
  8561. # Ok, now we have the path, separated by spaces, we can step through it
  8562. # and add multilib dir if necessary...
  8563. lt_tmp_lt_search_path_spec=
  8564. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8565. # ...but if some path already ends with the multilib dir we assume
  8566. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8567. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8568. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8569. lt_multi_os_dir=
  8570. ;;
  8571. esac
  8572. for lt_sys_path in $lt_search_path_spec; do
  8573. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8574. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8575. elif test -n "$lt_multi_os_dir"; then
  8576. test -d "$lt_sys_path" && \
  8577. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8578. fi
  8579. done
  8580. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8581. BEGIN {RS=" "; FS="/|\n";} {
  8582. lt_foo="";
  8583. lt_count=0;
  8584. for (lt_i = NF; lt_i > 0; lt_i--) {
  8585. if ($lt_i != "" && $lt_i != ".") {
  8586. if ($lt_i == "..") {
  8587. lt_count++;
  8588. } else {
  8589. if (lt_count == 0) {
  8590. lt_foo="/" $lt_i lt_foo;
  8591. } else {
  8592. lt_count--;
  8593. }
  8594. }
  8595. }
  8596. }
  8597. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8598. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8599. }'`
  8600. # AWK program above erroneously prepends '/' to C:/dos/paths
  8601. # for these hosts.
  8602. case $host_os in
  8603. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8604. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8605. esac
  8606. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8607. else
  8608. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8609. fi
  8610. library_names_spec=
  8611. libname_spec='lib$name'
  8612. soname_spec=
  8613. shrext_cmds=".so"
  8614. postinstall_cmds=
  8615. postuninstall_cmds=
  8616. finish_cmds=
  8617. finish_eval=
  8618. shlibpath_var=
  8619. shlibpath_overrides_runpath=unknown
  8620. version_type=none
  8621. dynamic_linker="$host_os ld.so"
  8622. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8623. need_lib_prefix=unknown
  8624. hardcode_into_libs=no
  8625. # when you set need_version to no, make sure it does not cause -set_version
  8626. # flags to be left without arguments
  8627. need_version=unknown
  8628. case $host_os in
  8629. aix3*)
  8630. version_type=linux # correct to gnu/linux during the next big refactor
  8631. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8632. shlibpath_var=LIBPATH
  8633. # AIX 3 has no versioning support, so we append a major version to the name.
  8634. soname_spec='${libname}${release}${shared_ext}$major'
  8635. ;;
  8636. aix[4-9]*)
  8637. version_type=linux # correct to gnu/linux during the next big refactor
  8638. need_lib_prefix=no
  8639. need_version=no
  8640. hardcode_into_libs=yes
  8641. if test "$host_cpu" = ia64; then
  8642. # AIX 5 supports IA64
  8643. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8644. shlibpath_var=LD_LIBRARY_PATH
  8645. else
  8646. # With GCC up to 2.95.x, collect2 would create an import file
  8647. # for dependence libraries. The import file would start with
  8648. # the line `#! .'. This would cause the generated library to
  8649. # depend on `.', always an invalid library. This was fixed in
  8650. # development snapshots of GCC prior to 3.0.
  8651. case $host_os in
  8652. aix4 | aix4.[01] | aix4.[01].*)
  8653. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8654. echo ' yes '
  8655. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8656. :
  8657. else
  8658. can_build_shared=no
  8659. fi
  8660. ;;
  8661. esac
  8662. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8663. # soname into executable. Probably we can add versioning support to
  8664. # collect2, so additional links can be useful in future.
  8665. if test "$aix_use_runtimelinking" = yes; then
  8666. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8667. # instead of lib<name>.a to let people know that these are not
  8668. # typical AIX shared libraries.
  8669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8670. else
  8671. # We preserve .a as extension for shared libraries through AIX4.2
  8672. # and later when we are not doing run time linking.
  8673. library_names_spec='${libname}${release}.a $libname.a'
  8674. soname_spec='${libname}${release}${shared_ext}$major'
  8675. fi
  8676. shlibpath_var=LIBPATH
  8677. fi
  8678. ;;
  8679. amigaos*)
  8680. case $host_cpu in
  8681. powerpc)
  8682. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8683. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8685. ;;
  8686. m68k)
  8687. library_names_spec='$libname.ixlibrary $libname.a'
  8688. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8689. 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'
  8690. ;;
  8691. esac
  8692. ;;
  8693. beos*)
  8694. library_names_spec='${libname}${shared_ext}'
  8695. dynamic_linker="$host_os ld.so"
  8696. shlibpath_var=LIBRARY_PATH
  8697. ;;
  8698. bsdi[45]*)
  8699. version_type=linux # correct to gnu/linux during the next big refactor
  8700. need_version=no
  8701. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8702. soname_spec='${libname}${release}${shared_ext}$major'
  8703. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8704. shlibpath_var=LD_LIBRARY_PATH
  8705. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8706. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8707. # the default ld.so.conf also contains /usr/contrib/lib and
  8708. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8709. # libtool to hard-code these into programs
  8710. ;;
  8711. cygwin* | mingw* | pw32* | cegcc*)
  8712. version_type=windows
  8713. shrext_cmds=".dll"
  8714. need_version=no
  8715. need_lib_prefix=no
  8716. case $GCC,$cc_basename in
  8717. yes,*)
  8718. # gcc
  8719. library_names_spec='$libname.dll.a'
  8720. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8721. postinstall_cmds='base_file=`basename \${file}`~
  8722. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8723. dldir=$destdir/`dirname \$dlpath`~
  8724. test -d \$dldir || mkdir -p \$dldir~
  8725. $install_prog $dir/$dlname \$dldir/$dlname~
  8726. chmod a+x \$dldir/$dlname~
  8727. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8728. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8729. fi'
  8730. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8731. dlpath=$dir/\$dldll~
  8732. $RM \$dlpath'
  8733. shlibpath_overrides_runpath=yes
  8734. case $host_os in
  8735. cygwin*)
  8736. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8737. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8738. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8739. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8740. ;;
  8741. mingw* | cegcc*)
  8742. # MinGW DLLs use traditional 'lib' prefix
  8743. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8744. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8745. ;;
  8746. pw32*)
  8747. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8748. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8749. ;;
  8750. esac
  8751. dynamic_linker='Win32 ld.exe'
  8752. ;;
  8753. *,cl*)
  8754. # Native MSVC
  8755. libname_spec='$name'
  8756. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8757. library_names_spec='${libname}.dll.lib'
  8758. case $build_os in
  8759. mingw*)
  8760. sys_lib_search_path_spec=
  8761. lt_save_ifs=$IFS
  8762. IFS=';'
  8763. for lt_path in $LIB
  8764. do
  8765. IFS=$lt_save_ifs
  8766. # Let DOS variable expansion print the short 8.3 style file name.
  8767. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8768. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8769. done
  8770. IFS=$lt_save_ifs
  8771. # Convert to MSYS style.
  8772. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8773. ;;
  8774. cygwin*)
  8775. # Convert to unix form, then to dos form, then back to unix form
  8776. # but this time dos style (no spaces!) so that the unix form looks
  8777. # like /cygdrive/c/PROGRA~1:/cygdr...
  8778. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8779. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8780. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8781. ;;
  8782. *)
  8783. sys_lib_search_path_spec="$LIB"
  8784. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8785. # It is most probably a Windows format PATH.
  8786. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8787. else
  8788. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8789. fi
  8790. # FIXME: find the short name or the path components, as spaces are
  8791. # common. (e.g. "Program Files" -> "PROGRA~1")
  8792. ;;
  8793. esac
  8794. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8795. postinstall_cmds='base_file=`basename \${file}`~
  8796. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8797. dldir=$destdir/`dirname \$dlpath`~
  8798. test -d \$dldir || mkdir -p \$dldir~
  8799. $install_prog $dir/$dlname \$dldir/$dlname'
  8800. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8801. dlpath=$dir/\$dldll~
  8802. $RM \$dlpath'
  8803. shlibpath_overrides_runpath=yes
  8804. dynamic_linker='Win32 link.exe'
  8805. ;;
  8806. *)
  8807. # Assume MSVC wrapper
  8808. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8809. dynamic_linker='Win32 ld.exe'
  8810. ;;
  8811. esac
  8812. # FIXME: first we should search . and the directory the executable is in
  8813. shlibpath_var=PATH
  8814. ;;
  8815. darwin* | rhapsody*)
  8816. dynamic_linker="$host_os dyld"
  8817. version_type=darwin
  8818. need_lib_prefix=no
  8819. need_version=no
  8820. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8821. soname_spec='${libname}${release}${major}$shared_ext'
  8822. shlibpath_overrides_runpath=yes
  8823. shlibpath_var=DYLD_LIBRARY_PATH
  8824. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8825. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8826. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8827. ;;
  8828. dgux*)
  8829. version_type=linux # correct to gnu/linux during the next big refactor
  8830. need_lib_prefix=no
  8831. need_version=no
  8832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8833. soname_spec='${libname}${release}${shared_ext}$major'
  8834. shlibpath_var=LD_LIBRARY_PATH
  8835. ;;
  8836. freebsd* | dragonfly*)
  8837. # DragonFly does not have aout. When/if they implement a new
  8838. # versioning mechanism, adjust this.
  8839. if test -x /usr/bin/objformat; then
  8840. objformat=`/usr/bin/objformat`
  8841. else
  8842. case $host_os in
  8843. freebsd[23].*) objformat=aout ;;
  8844. *) objformat=elf ;;
  8845. esac
  8846. fi
  8847. version_type=freebsd-$objformat
  8848. case $version_type in
  8849. freebsd-elf*)
  8850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8851. need_version=no
  8852. need_lib_prefix=no
  8853. ;;
  8854. freebsd-*)
  8855. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8856. need_version=yes
  8857. ;;
  8858. esac
  8859. shlibpath_var=LD_LIBRARY_PATH
  8860. case $host_os in
  8861. freebsd2.*)
  8862. shlibpath_overrides_runpath=yes
  8863. ;;
  8864. freebsd3.[01]* | freebsdelf3.[01]*)
  8865. shlibpath_overrides_runpath=yes
  8866. hardcode_into_libs=yes
  8867. ;;
  8868. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8869. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8870. shlibpath_overrides_runpath=no
  8871. hardcode_into_libs=yes
  8872. ;;
  8873. *) # from 4.6 on, and DragonFly
  8874. shlibpath_overrides_runpath=yes
  8875. hardcode_into_libs=yes
  8876. ;;
  8877. esac
  8878. ;;
  8879. gnu*)
  8880. version_type=linux # correct to gnu/linux during the next big refactor
  8881. need_lib_prefix=no
  8882. need_version=no
  8883. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8884. soname_spec='${libname}${release}${shared_ext}$major'
  8885. shlibpath_var=LD_LIBRARY_PATH
  8886. shlibpath_overrides_runpath=no
  8887. hardcode_into_libs=yes
  8888. ;;
  8889. haiku*)
  8890. version_type=linux # correct to gnu/linux during the next big refactor
  8891. need_lib_prefix=no
  8892. need_version=no
  8893. dynamic_linker="$host_os runtime_loader"
  8894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8895. soname_spec='${libname}${release}${shared_ext}$major'
  8896. shlibpath_var=LIBRARY_PATH
  8897. shlibpath_overrides_runpath=yes
  8898. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8899. hardcode_into_libs=yes
  8900. ;;
  8901. hpux9* | hpux10* | hpux11*)
  8902. # Give a soname corresponding to the major version so that dld.sl refuses to
  8903. # link against other versions.
  8904. version_type=sunos
  8905. need_lib_prefix=no
  8906. need_version=no
  8907. case $host_cpu in
  8908. ia64*)
  8909. shrext_cmds='.so'
  8910. hardcode_into_libs=yes
  8911. dynamic_linker="$host_os dld.so"
  8912. shlibpath_var=LD_LIBRARY_PATH
  8913. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8914. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8915. soname_spec='${libname}${release}${shared_ext}$major'
  8916. if test "X$HPUX_IA64_MODE" = X32; then
  8917. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8918. else
  8919. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8920. fi
  8921. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8922. ;;
  8923. hppa*64*)
  8924. shrext_cmds='.sl'
  8925. hardcode_into_libs=yes
  8926. dynamic_linker="$host_os dld.sl"
  8927. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8928. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8930. soname_spec='${libname}${release}${shared_ext}$major'
  8931. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8932. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8933. ;;
  8934. *)
  8935. shrext_cmds='.sl'
  8936. dynamic_linker="$host_os dld.sl"
  8937. shlibpath_var=SHLIB_PATH
  8938. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  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. ;;
  8942. esac
  8943. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8944. postinstall_cmds='chmod 555 $lib'
  8945. # or fails outright, so override atomically:
  8946. install_override_mode=555
  8947. ;;
  8948. interix[3-9]*)
  8949. version_type=linux # correct to gnu/linux during the next big refactor
  8950. need_lib_prefix=no
  8951. need_version=no
  8952. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8953. soname_spec='${libname}${release}${shared_ext}$major'
  8954. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8955. shlibpath_var=LD_LIBRARY_PATH
  8956. shlibpath_overrides_runpath=no
  8957. hardcode_into_libs=yes
  8958. ;;
  8959. irix5* | irix6* | nonstopux*)
  8960. case $host_os in
  8961. nonstopux*) version_type=nonstopux ;;
  8962. *)
  8963. if test "$lt_cv_prog_gnu_ld" = yes; then
  8964. version_type=linux # correct to gnu/linux during the next big refactor
  8965. else
  8966. version_type=irix
  8967. fi ;;
  8968. esac
  8969. need_lib_prefix=no
  8970. need_version=no
  8971. soname_spec='${libname}${release}${shared_ext}$major'
  8972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8973. case $host_os in
  8974. irix5* | nonstopux*)
  8975. libsuff= shlibsuff=
  8976. ;;
  8977. *)
  8978. case $LD in # libtool.m4 will add one of these switches to LD
  8979. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8980. libsuff= shlibsuff= libmagic=32-bit;;
  8981. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8982. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8983. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8984. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8985. *) libsuff= shlibsuff= libmagic=never-match;;
  8986. esac
  8987. ;;
  8988. esac
  8989. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8990. shlibpath_overrides_runpath=no
  8991. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8992. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8993. hardcode_into_libs=yes
  8994. ;;
  8995. # No shared lib support for Linux oldld, aout, or coff.
  8996. linux*oldld* | linux*aout* | linux*coff*)
  8997. dynamic_linker=no
  8998. ;;
  8999. # This must be glibc/ELF.
  9000. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9001. version_type=linux # correct to gnu/linux during the next big refactor
  9002. need_lib_prefix=no
  9003. need_version=no
  9004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9005. soname_spec='${libname}${release}${shared_ext}$major'
  9006. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9007. shlibpath_var=LD_LIBRARY_PATH
  9008. shlibpath_overrides_runpath=no
  9009. # Some binutils ld are patched to set DT_RUNPATH
  9010. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9011. $as_echo_n "(cached) " >&6
  9012. else
  9013. lt_cv_shlibpath_overrides_runpath=no
  9014. save_LDFLAGS=$LDFLAGS
  9015. save_libdir=$libdir
  9016. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9017. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9019. /* end confdefs.h. */
  9020. int
  9021. main ()
  9022. {
  9023. ;
  9024. return 0;
  9025. }
  9026. _ACEOF
  9027. if ac_fn_c_try_link "$LINENO"; then :
  9028. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9029. lt_cv_shlibpath_overrides_runpath=yes
  9030. fi
  9031. fi
  9032. rm -f core conftest.err conftest.$ac_objext \
  9033. conftest$ac_exeext conftest.$ac_ext
  9034. LDFLAGS=$save_LDFLAGS
  9035. libdir=$save_libdir
  9036. fi
  9037. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9038. # This implies no fast_install, which is unacceptable.
  9039. # Some rework will be needed to allow for fast_install
  9040. # before this can be enabled.
  9041. hardcode_into_libs=yes
  9042. # Append ld.so.conf contents to the search path
  9043. if test -f /etc/ld.so.conf; then
  9044. 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' ' '`
  9045. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9046. fi
  9047. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9048. # powerpc, because MkLinux only supported shared libraries with the
  9049. # GNU dynamic linker. Since this was broken with cross compilers,
  9050. # most powerpc-linux boxes support dynamic linking these days and
  9051. # people can always --disable-shared, the test was removed, and we
  9052. # assume the GNU/Linux dynamic linker is in use.
  9053. dynamic_linker='GNU/Linux ld.so'
  9054. ;;
  9055. netbsd*)
  9056. version_type=sunos
  9057. need_lib_prefix=no
  9058. need_version=no
  9059. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9060. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9061. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9062. dynamic_linker='NetBSD (a.out) ld.so'
  9063. else
  9064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9065. soname_spec='${libname}${release}${shared_ext}$major'
  9066. dynamic_linker='NetBSD ld.elf_so'
  9067. fi
  9068. shlibpath_var=LD_LIBRARY_PATH
  9069. shlibpath_overrides_runpath=yes
  9070. hardcode_into_libs=yes
  9071. ;;
  9072. newsos6)
  9073. version_type=linux # correct to gnu/linux during the next big refactor
  9074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9075. shlibpath_var=LD_LIBRARY_PATH
  9076. shlibpath_overrides_runpath=yes
  9077. ;;
  9078. *nto* | *qnx*)
  9079. version_type=qnx
  9080. need_lib_prefix=no
  9081. need_version=no
  9082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9083. soname_spec='${libname}${release}${shared_ext}$major'
  9084. shlibpath_var=LD_LIBRARY_PATH
  9085. shlibpath_overrides_runpath=no
  9086. hardcode_into_libs=yes
  9087. dynamic_linker='ldqnx.so'
  9088. ;;
  9089. openbsd*)
  9090. version_type=sunos
  9091. sys_lib_dlsearch_path_spec="/usr/lib"
  9092. need_lib_prefix=no
  9093. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9094. case $host_os in
  9095. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9096. *) need_version=no ;;
  9097. esac
  9098. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9099. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9100. shlibpath_var=LD_LIBRARY_PATH
  9101. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9102. case $host_os in
  9103. openbsd2.[89] | openbsd2.[89].*)
  9104. shlibpath_overrides_runpath=no
  9105. ;;
  9106. *)
  9107. shlibpath_overrides_runpath=yes
  9108. ;;
  9109. esac
  9110. else
  9111. shlibpath_overrides_runpath=yes
  9112. fi
  9113. ;;
  9114. os2*)
  9115. libname_spec='$name'
  9116. shrext_cmds=".dll"
  9117. need_lib_prefix=no
  9118. library_names_spec='$libname${shared_ext} $libname.a'
  9119. dynamic_linker='OS/2 ld.exe'
  9120. shlibpath_var=LIBPATH
  9121. ;;
  9122. osf3* | osf4* | osf5*)
  9123. version_type=osf
  9124. need_lib_prefix=no
  9125. need_version=no
  9126. soname_spec='${libname}${release}${shared_ext}$major'
  9127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9128. shlibpath_var=LD_LIBRARY_PATH
  9129. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9130. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9131. ;;
  9132. rdos*)
  9133. dynamic_linker=no
  9134. ;;
  9135. solaris*)
  9136. version_type=linux # correct to gnu/linux during the next big refactor
  9137. need_lib_prefix=no
  9138. need_version=no
  9139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9140. soname_spec='${libname}${release}${shared_ext}$major'
  9141. shlibpath_var=LD_LIBRARY_PATH
  9142. shlibpath_overrides_runpath=yes
  9143. hardcode_into_libs=yes
  9144. # ldd complains unless libraries are executable
  9145. postinstall_cmds='chmod +x $lib'
  9146. ;;
  9147. sunos4*)
  9148. version_type=sunos
  9149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9150. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9151. shlibpath_var=LD_LIBRARY_PATH
  9152. shlibpath_overrides_runpath=yes
  9153. if test "$with_gnu_ld" = yes; then
  9154. need_lib_prefix=no
  9155. fi
  9156. need_version=yes
  9157. ;;
  9158. sysv4 | sysv4.3*)
  9159. version_type=linux # correct to gnu/linux during the next big refactor
  9160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9161. soname_spec='${libname}${release}${shared_ext}$major'
  9162. shlibpath_var=LD_LIBRARY_PATH
  9163. case $host_vendor in
  9164. sni)
  9165. shlibpath_overrides_runpath=no
  9166. need_lib_prefix=no
  9167. runpath_var=LD_RUN_PATH
  9168. ;;
  9169. siemens)
  9170. need_lib_prefix=no
  9171. ;;
  9172. motorola)
  9173. need_lib_prefix=no
  9174. need_version=no
  9175. shlibpath_overrides_runpath=no
  9176. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9177. ;;
  9178. esac
  9179. ;;
  9180. sysv4*MP*)
  9181. if test -d /usr/nec ;then
  9182. version_type=linux # correct to gnu/linux during the next big refactor
  9183. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9184. soname_spec='$libname${shared_ext}.$major'
  9185. shlibpath_var=LD_LIBRARY_PATH
  9186. fi
  9187. ;;
  9188. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9189. version_type=freebsd-elf
  9190. need_lib_prefix=no
  9191. need_version=no
  9192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9193. soname_spec='${libname}${release}${shared_ext}$major'
  9194. shlibpath_var=LD_LIBRARY_PATH
  9195. shlibpath_overrides_runpath=yes
  9196. hardcode_into_libs=yes
  9197. if test "$with_gnu_ld" = yes; then
  9198. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9199. else
  9200. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9201. case $host_os in
  9202. sco3.2v5*)
  9203. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9204. ;;
  9205. esac
  9206. fi
  9207. sys_lib_dlsearch_path_spec='/usr/lib'
  9208. ;;
  9209. tpf*)
  9210. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9211. version_type=linux # correct to gnu/linux during the next big refactor
  9212. need_lib_prefix=no
  9213. need_version=no
  9214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9215. shlibpath_var=LD_LIBRARY_PATH
  9216. shlibpath_overrides_runpath=no
  9217. hardcode_into_libs=yes
  9218. ;;
  9219. uts4*)
  9220. version_type=linux # correct to gnu/linux during the next big refactor
  9221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9222. soname_spec='${libname}${release}${shared_ext}$major'
  9223. shlibpath_var=LD_LIBRARY_PATH
  9224. ;;
  9225. *)
  9226. dynamic_linker=no
  9227. ;;
  9228. esac
  9229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9230. $as_echo "$dynamic_linker" >&6; }
  9231. test "$dynamic_linker" = no && can_build_shared=no
  9232. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9233. if test "$GCC" = yes; then
  9234. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9235. fi
  9236. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9237. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9238. fi
  9239. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9240. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9241. fi
  9242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9243. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9244. hardcode_action=
  9245. if test -n "$hardcode_libdir_flag_spec" ||
  9246. test -n "$runpath_var" ||
  9247. test "X$hardcode_automatic" = "Xyes" ; then
  9248. # We can hardcode non-existent directories.
  9249. if test "$hardcode_direct" != no &&
  9250. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9251. # have to relink, otherwise we might link with an installed library
  9252. # when we should be linking with a yet-to-be-installed one
  9253. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9254. test "$hardcode_minus_L" != no; then
  9255. # Linking always hardcodes the temporary library directory.
  9256. hardcode_action=relink
  9257. else
  9258. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9259. hardcode_action=immediate
  9260. fi
  9261. else
  9262. # We cannot hardcode anything, or else we can only hardcode existing
  9263. # directories.
  9264. hardcode_action=unsupported
  9265. fi
  9266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9267. $as_echo "$hardcode_action" >&6; }
  9268. if test "$hardcode_action" = relink ||
  9269. test "$inherit_rpath" = yes; then
  9270. # Fast installation is not supported
  9271. enable_fast_install=no
  9272. elif test "$shlibpath_overrides_runpath" = yes ||
  9273. test "$enable_shared" = no; then
  9274. # Fast installation is not necessary
  9275. enable_fast_install=needless
  9276. fi
  9277. if test "x$enable_dlopen" != xyes; then
  9278. enable_dlopen=unknown
  9279. enable_dlopen_self=unknown
  9280. enable_dlopen_self_static=unknown
  9281. else
  9282. lt_cv_dlopen=no
  9283. lt_cv_dlopen_libs=
  9284. case $host_os in
  9285. beos*)
  9286. lt_cv_dlopen="load_add_on"
  9287. lt_cv_dlopen_libs=
  9288. lt_cv_dlopen_self=yes
  9289. ;;
  9290. mingw* | pw32* | cegcc*)
  9291. lt_cv_dlopen="LoadLibrary"
  9292. lt_cv_dlopen_libs=
  9293. ;;
  9294. cygwin*)
  9295. lt_cv_dlopen="dlopen"
  9296. lt_cv_dlopen_libs=
  9297. ;;
  9298. darwin*)
  9299. # if libdl is installed we need to link against it
  9300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9301. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9302. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9303. $as_echo_n "(cached) " >&6
  9304. else
  9305. ac_check_lib_save_LIBS=$LIBS
  9306. LIBS="-ldl $LIBS"
  9307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9308. /* end confdefs.h. */
  9309. /* Override any GCC internal prototype to avoid an error.
  9310. Use char because int might match the return type of a GCC
  9311. builtin and then its argument prototype would still apply. */
  9312. #ifdef __cplusplus
  9313. extern "C"
  9314. #endif
  9315. char dlopen ();
  9316. int
  9317. main ()
  9318. {
  9319. return dlopen ();
  9320. ;
  9321. return 0;
  9322. }
  9323. _ACEOF
  9324. if ac_fn_c_try_link "$LINENO"; then :
  9325. ac_cv_lib_dl_dlopen=yes
  9326. else
  9327. ac_cv_lib_dl_dlopen=no
  9328. fi
  9329. rm -f core conftest.err conftest.$ac_objext \
  9330. conftest$ac_exeext conftest.$ac_ext
  9331. LIBS=$ac_check_lib_save_LIBS
  9332. fi
  9333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9334. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9335. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9336. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9337. else
  9338. lt_cv_dlopen="dyld"
  9339. lt_cv_dlopen_libs=
  9340. lt_cv_dlopen_self=yes
  9341. fi
  9342. ;;
  9343. *)
  9344. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9345. if test "x$ac_cv_func_shl_load" = xyes; then :
  9346. lt_cv_dlopen="shl_load"
  9347. else
  9348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9349. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9350. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9351. $as_echo_n "(cached) " >&6
  9352. else
  9353. ac_check_lib_save_LIBS=$LIBS
  9354. LIBS="-ldld $LIBS"
  9355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9356. /* end confdefs.h. */
  9357. /* Override any GCC internal prototype to avoid an error.
  9358. Use char because int might match the return type of a GCC
  9359. builtin and then its argument prototype would still apply. */
  9360. #ifdef __cplusplus
  9361. extern "C"
  9362. #endif
  9363. char shl_load ();
  9364. int
  9365. main ()
  9366. {
  9367. return shl_load ();
  9368. ;
  9369. return 0;
  9370. }
  9371. _ACEOF
  9372. if ac_fn_c_try_link "$LINENO"; then :
  9373. ac_cv_lib_dld_shl_load=yes
  9374. else
  9375. ac_cv_lib_dld_shl_load=no
  9376. fi
  9377. rm -f core conftest.err conftest.$ac_objext \
  9378. conftest$ac_exeext conftest.$ac_ext
  9379. LIBS=$ac_check_lib_save_LIBS
  9380. fi
  9381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9382. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9383. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9384. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9385. else
  9386. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9387. if test "x$ac_cv_func_dlopen" = xyes; then :
  9388. lt_cv_dlopen="dlopen"
  9389. else
  9390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9391. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9392. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9393. $as_echo_n "(cached) " >&6
  9394. else
  9395. ac_check_lib_save_LIBS=$LIBS
  9396. LIBS="-ldl $LIBS"
  9397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9398. /* end confdefs.h. */
  9399. /* Override any GCC internal prototype to avoid an error.
  9400. Use char because int might match the return type of a GCC
  9401. builtin and then its argument prototype would still apply. */
  9402. #ifdef __cplusplus
  9403. extern "C"
  9404. #endif
  9405. char dlopen ();
  9406. int
  9407. main ()
  9408. {
  9409. return dlopen ();
  9410. ;
  9411. return 0;
  9412. }
  9413. _ACEOF
  9414. if ac_fn_c_try_link "$LINENO"; then :
  9415. ac_cv_lib_dl_dlopen=yes
  9416. else
  9417. ac_cv_lib_dl_dlopen=no
  9418. fi
  9419. rm -f core conftest.err conftest.$ac_objext \
  9420. conftest$ac_exeext conftest.$ac_ext
  9421. LIBS=$ac_check_lib_save_LIBS
  9422. fi
  9423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9424. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9425. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9426. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9427. else
  9428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9429. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9430. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9431. $as_echo_n "(cached) " >&6
  9432. else
  9433. ac_check_lib_save_LIBS=$LIBS
  9434. LIBS="-lsvld $LIBS"
  9435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9436. /* end confdefs.h. */
  9437. /* Override any GCC internal prototype to avoid an error.
  9438. Use char because int might match the return type of a GCC
  9439. builtin and then its argument prototype would still apply. */
  9440. #ifdef __cplusplus
  9441. extern "C"
  9442. #endif
  9443. char dlopen ();
  9444. int
  9445. main ()
  9446. {
  9447. return dlopen ();
  9448. ;
  9449. return 0;
  9450. }
  9451. _ACEOF
  9452. if ac_fn_c_try_link "$LINENO"; then :
  9453. ac_cv_lib_svld_dlopen=yes
  9454. else
  9455. ac_cv_lib_svld_dlopen=no
  9456. fi
  9457. rm -f core conftest.err conftest.$ac_objext \
  9458. conftest$ac_exeext conftest.$ac_ext
  9459. LIBS=$ac_check_lib_save_LIBS
  9460. fi
  9461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9462. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9463. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9464. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9465. else
  9466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9467. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9468. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9469. $as_echo_n "(cached) " >&6
  9470. else
  9471. ac_check_lib_save_LIBS=$LIBS
  9472. LIBS="-ldld $LIBS"
  9473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9474. /* end confdefs.h. */
  9475. /* Override any GCC internal prototype to avoid an error.
  9476. Use char because int might match the return type of a GCC
  9477. builtin and then its argument prototype would still apply. */
  9478. #ifdef __cplusplus
  9479. extern "C"
  9480. #endif
  9481. char dld_link ();
  9482. int
  9483. main ()
  9484. {
  9485. return dld_link ();
  9486. ;
  9487. return 0;
  9488. }
  9489. _ACEOF
  9490. if ac_fn_c_try_link "$LINENO"; then :
  9491. ac_cv_lib_dld_dld_link=yes
  9492. else
  9493. ac_cv_lib_dld_dld_link=no
  9494. fi
  9495. rm -f core conftest.err conftest.$ac_objext \
  9496. conftest$ac_exeext conftest.$ac_ext
  9497. LIBS=$ac_check_lib_save_LIBS
  9498. fi
  9499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9500. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9501. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9502. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9503. fi
  9504. fi
  9505. fi
  9506. fi
  9507. fi
  9508. fi
  9509. ;;
  9510. esac
  9511. if test "x$lt_cv_dlopen" != xno; then
  9512. enable_dlopen=yes
  9513. else
  9514. enable_dlopen=no
  9515. fi
  9516. case $lt_cv_dlopen in
  9517. dlopen)
  9518. save_CPPFLAGS="$CPPFLAGS"
  9519. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9520. save_LDFLAGS="$LDFLAGS"
  9521. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9522. save_LIBS="$LIBS"
  9523. LIBS="$lt_cv_dlopen_libs $LIBS"
  9524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9525. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9526. if ${lt_cv_dlopen_self+:} false; then :
  9527. $as_echo_n "(cached) " >&6
  9528. else
  9529. if test "$cross_compiling" = yes; then :
  9530. lt_cv_dlopen_self=cross
  9531. else
  9532. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9533. lt_status=$lt_dlunknown
  9534. cat > conftest.$ac_ext <<_LT_EOF
  9535. #line $LINENO "configure"
  9536. #include "confdefs.h"
  9537. #if HAVE_DLFCN_H
  9538. #include <dlfcn.h>
  9539. #endif
  9540. #include <stdio.h>
  9541. #ifdef RTLD_GLOBAL
  9542. # define LT_DLGLOBAL RTLD_GLOBAL
  9543. #else
  9544. # ifdef DL_GLOBAL
  9545. # define LT_DLGLOBAL DL_GLOBAL
  9546. # else
  9547. # define LT_DLGLOBAL 0
  9548. # endif
  9549. #endif
  9550. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9551. find out it does not work in some platform. */
  9552. #ifndef LT_DLLAZY_OR_NOW
  9553. # ifdef RTLD_LAZY
  9554. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9555. # else
  9556. # ifdef DL_LAZY
  9557. # define LT_DLLAZY_OR_NOW DL_LAZY
  9558. # else
  9559. # ifdef RTLD_NOW
  9560. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9561. # else
  9562. # ifdef DL_NOW
  9563. # define LT_DLLAZY_OR_NOW DL_NOW
  9564. # else
  9565. # define LT_DLLAZY_OR_NOW 0
  9566. # endif
  9567. # endif
  9568. # endif
  9569. # endif
  9570. #endif
  9571. /* When -fvisbility=hidden is used, assume the code has been annotated
  9572. correspondingly for the symbols needed. */
  9573. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9574. int fnord () __attribute__((visibility("default")));
  9575. #endif
  9576. int fnord () { return 42; }
  9577. int main ()
  9578. {
  9579. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9580. int status = $lt_dlunknown;
  9581. if (self)
  9582. {
  9583. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9584. else
  9585. {
  9586. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9587. else puts (dlerror ());
  9588. }
  9589. /* dlclose (self); */
  9590. }
  9591. else
  9592. puts (dlerror ());
  9593. return status;
  9594. }
  9595. _LT_EOF
  9596. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9597. (eval $ac_link) 2>&5
  9598. ac_status=$?
  9599. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9600. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9601. (./conftest; exit; ) >&5 2>/dev/null
  9602. lt_status=$?
  9603. case x$lt_status in
  9604. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9605. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9606. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9607. esac
  9608. else :
  9609. # compilation failed
  9610. lt_cv_dlopen_self=no
  9611. fi
  9612. fi
  9613. rm -fr conftest*
  9614. fi
  9615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9616. $as_echo "$lt_cv_dlopen_self" >&6; }
  9617. if test "x$lt_cv_dlopen_self" = xyes; then
  9618. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9620. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9621. if ${lt_cv_dlopen_self_static+:} false; then :
  9622. $as_echo_n "(cached) " >&6
  9623. else
  9624. if test "$cross_compiling" = yes; then :
  9625. lt_cv_dlopen_self_static=cross
  9626. else
  9627. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9628. lt_status=$lt_dlunknown
  9629. cat > conftest.$ac_ext <<_LT_EOF
  9630. #line $LINENO "configure"
  9631. #include "confdefs.h"
  9632. #if HAVE_DLFCN_H
  9633. #include <dlfcn.h>
  9634. #endif
  9635. #include <stdio.h>
  9636. #ifdef RTLD_GLOBAL
  9637. # define LT_DLGLOBAL RTLD_GLOBAL
  9638. #else
  9639. # ifdef DL_GLOBAL
  9640. # define LT_DLGLOBAL DL_GLOBAL
  9641. # else
  9642. # define LT_DLGLOBAL 0
  9643. # endif
  9644. #endif
  9645. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9646. find out it does not work in some platform. */
  9647. #ifndef LT_DLLAZY_OR_NOW
  9648. # ifdef RTLD_LAZY
  9649. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9650. # else
  9651. # ifdef DL_LAZY
  9652. # define LT_DLLAZY_OR_NOW DL_LAZY
  9653. # else
  9654. # ifdef RTLD_NOW
  9655. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9656. # else
  9657. # ifdef DL_NOW
  9658. # define LT_DLLAZY_OR_NOW DL_NOW
  9659. # else
  9660. # define LT_DLLAZY_OR_NOW 0
  9661. # endif
  9662. # endif
  9663. # endif
  9664. # endif
  9665. #endif
  9666. /* When -fvisbility=hidden is used, assume the code has been annotated
  9667. correspondingly for the symbols needed. */
  9668. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9669. int fnord () __attribute__((visibility("default")));
  9670. #endif
  9671. int fnord () { return 42; }
  9672. int main ()
  9673. {
  9674. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9675. int status = $lt_dlunknown;
  9676. if (self)
  9677. {
  9678. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9679. else
  9680. {
  9681. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9682. else puts (dlerror ());
  9683. }
  9684. /* dlclose (self); */
  9685. }
  9686. else
  9687. puts (dlerror ());
  9688. return status;
  9689. }
  9690. _LT_EOF
  9691. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9692. (eval $ac_link) 2>&5
  9693. ac_status=$?
  9694. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9695. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9696. (./conftest; exit; ) >&5 2>/dev/null
  9697. lt_status=$?
  9698. case x$lt_status in
  9699. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9700. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9701. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9702. esac
  9703. else :
  9704. # compilation failed
  9705. lt_cv_dlopen_self_static=no
  9706. fi
  9707. fi
  9708. rm -fr conftest*
  9709. fi
  9710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9711. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9712. fi
  9713. CPPFLAGS="$save_CPPFLAGS"
  9714. LDFLAGS="$save_LDFLAGS"
  9715. LIBS="$save_LIBS"
  9716. ;;
  9717. esac
  9718. case $lt_cv_dlopen_self in
  9719. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9720. *) enable_dlopen_self=unknown ;;
  9721. esac
  9722. case $lt_cv_dlopen_self_static in
  9723. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9724. *) enable_dlopen_self_static=unknown ;;
  9725. esac
  9726. fi
  9727. striplib=
  9728. old_striplib=
  9729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9730. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9731. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9732. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9733. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9735. $as_echo "yes" >&6; }
  9736. else
  9737. # FIXME - insert some real tests, host_os isn't really good enough
  9738. case $host_os in
  9739. darwin*)
  9740. if test -n "$STRIP" ; then
  9741. striplib="$STRIP -x"
  9742. old_striplib="$STRIP -S"
  9743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9744. $as_echo "yes" >&6; }
  9745. else
  9746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9747. $as_echo "no" >&6; }
  9748. fi
  9749. ;;
  9750. *)
  9751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9752. $as_echo "no" >&6; }
  9753. ;;
  9754. esac
  9755. fi
  9756. # Report which library types will actually be built
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9758. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9760. $as_echo "$can_build_shared" >&6; }
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9762. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9763. test "$can_build_shared" = "no" && enable_shared=no
  9764. # On AIX, shared libraries and static libraries use the same namespace, and
  9765. # are all built from PIC.
  9766. case $host_os in
  9767. aix3*)
  9768. test "$enable_shared" = yes && enable_static=no
  9769. if test -n "$RANLIB"; then
  9770. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9771. postinstall_cmds='$RANLIB $lib'
  9772. fi
  9773. ;;
  9774. aix[4-9]*)
  9775. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9776. test "$enable_shared" = yes && enable_static=no
  9777. fi
  9778. ;;
  9779. esac
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9781. $as_echo "$enable_shared" >&6; }
  9782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9783. $as_echo_n "checking whether to build static libraries... " >&6; }
  9784. # Make sure either enable_shared or enable_static is yes.
  9785. test "$enable_shared" = yes || enable_static=yes
  9786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9787. $as_echo "$enable_static" >&6; }
  9788. fi
  9789. ac_ext=c
  9790. ac_cpp='$CPP $CPPFLAGS'
  9791. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9792. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9793. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9794. CC="$lt_save_CC"
  9795. ac_config_commands="$ac_config_commands libtool"
  9796. # Only expand once:
  9797. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9798. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9799. LT_REVISION=$SDL_INTERFACE_AGE
  9800. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9801. ac_ext=c
  9802. ac_cpp='$CPP $CPPFLAGS'
  9803. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9804. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9805. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9806. if test -n "$ac_tool_prefix"; then
  9807. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9808. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9810. $as_echo_n "checking for $ac_word... " >&6; }
  9811. if ${ac_cv_prog_CC+:} false; then :
  9812. $as_echo_n "(cached) " >&6
  9813. else
  9814. if test -n "$CC"; then
  9815. ac_cv_prog_CC="$CC" # Let the user override the test.
  9816. else
  9817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9818. for as_dir in $PATH
  9819. do
  9820. IFS=$as_save_IFS
  9821. test -z "$as_dir" && as_dir=.
  9822. for ac_exec_ext in '' $ac_executable_extensions; do
  9823. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9824. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9826. break 2
  9827. fi
  9828. done
  9829. done
  9830. IFS=$as_save_IFS
  9831. fi
  9832. fi
  9833. CC=$ac_cv_prog_CC
  9834. if test -n "$CC"; then
  9835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9836. $as_echo "$CC" >&6; }
  9837. else
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9839. $as_echo "no" >&6; }
  9840. fi
  9841. fi
  9842. if test -z "$ac_cv_prog_CC"; then
  9843. ac_ct_CC=$CC
  9844. # Extract the first word of "gcc", so it can be a program name with args.
  9845. set dummy gcc; ac_word=$2
  9846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9847. $as_echo_n "checking for $ac_word... " >&6; }
  9848. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9849. $as_echo_n "(cached) " >&6
  9850. else
  9851. if test -n "$ac_ct_CC"; then
  9852. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9853. else
  9854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9855. for as_dir in $PATH
  9856. do
  9857. IFS=$as_save_IFS
  9858. test -z "$as_dir" && as_dir=.
  9859. for ac_exec_ext in '' $ac_executable_extensions; do
  9860. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9861. ac_cv_prog_ac_ct_CC="gcc"
  9862. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9863. break 2
  9864. fi
  9865. done
  9866. done
  9867. IFS=$as_save_IFS
  9868. fi
  9869. fi
  9870. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9871. if test -n "$ac_ct_CC"; then
  9872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9873. $as_echo "$ac_ct_CC" >&6; }
  9874. else
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9876. $as_echo "no" >&6; }
  9877. fi
  9878. if test "x$ac_ct_CC" = x; then
  9879. CC=""
  9880. else
  9881. case $cross_compiling:$ac_tool_warned in
  9882. yes:)
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9884. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9885. ac_tool_warned=yes ;;
  9886. esac
  9887. CC=$ac_ct_CC
  9888. fi
  9889. else
  9890. CC="$ac_cv_prog_CC"
  9891. fi
  9892. if test -z "$CC"; then
  9893. if test -n "$ac_tool_prefix"; then
  9894. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9895. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9897. $as_echo_n "checking for $ac_word... " >&6; }
  9898. if ${ac_cv_prog_CC+:} false; then :
  9899. $as_echo_n "(cached) " >&6
  9900. else
  9901. if test -n "$CC"; then
  9902. ac_cv_prog_CC="$CC" # Let the user override the test.
  9903. else
  9904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9905. for as_dir in $PATH
  9906. do
  9907. IFS=$as_save_IFS
  9908. test -z "$as_dir" && as_dir=.
  9909. for ac_exec_ext in '' $ac_executable_extensions; do
  9910. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9911. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9913. break 2
  9914. fi
  9915. done
  9916. done
  9917. IFS=$as_save_IFS
  9918. fi
  9919. fi
  9920. CC=$ac_cv_prog_CC
  9921. if test -n "$CC"; then
  9922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9923. $as_echo "$CC" >&6; }
  9924. else
  9925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9926. $as_echo "no" >&6; }
  9927. fi
  9928. fi
  9929. fi
  9930. if test -z "$CC"; then
  9931. # Extract the first word of "cc", so it can be a program name with args.
  9932. set dummy cc; ac_word=$2
  9933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9934. $as_echo_n "checking for $ac_word... " >&6; }
  9935. if ${ac_cv_prog_CC+:} false; then :
  9936. $as_echo_n "(cached) " >&6
  9937. else
  9938. if test -n "$CC"; then
  9939. ac_cv_prog_CC="$CC" # Let the user override the test.
  9940. else
  9941. ac_prog_rejected=no
  9942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9943. for as_dir in $PATH
  9944. do
  9945. IFS=$as_save_IFS
  9946. test -z "$as_dir" && as_dir=.
  9947. for ac_exec_ext in '' $ac_executable_extensions; do
  9948. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9949. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9950. ac_prog_rejected=yes
  9951. continue
  9952. fi
  9953. ac_cv_prog_CC="cc"
  9954. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9955. break 2
  9956. fi
  9957. done
  9958. done
  9959. IFS=$as_save_IFS
  9960. if test $ac_prog_rejected = yes; then
  9961. # We found a bogon in the path, so make sure we never use it.
  9962. set dummy $ac_cv_prog_CC
  9963. shift
  9964. if test $# != 0; then
  9965. # We chose a different compiler from the bogus one.
  9966. # However, it has the same basename, so the bogon will be chosen
  9967. # first if we set CC to just the basename; use the full file name.
  9968. shift
  9969. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9970. fi
  9971. fi
  9972. fi
  9973. fi
  9974. CC=$ac_cv_prog_CC
  9975. if test -n "$CC"; then
  9976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9977. $as_echo "$CC" >&6; }
  9978. else
  9979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9980. $as_echo "no" >&6; }
  9981. fi
  9982. fi
  9983. if test -z "$CC"; then
  9984. if test -n "$ac_tool_prefix"; then
  9985. for ac_prog in cl.exe
  9986. do
  9987. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9988. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9990. $as_echo_n "checking for $ac_word... " >&6; }
  9991. if ${ac_cv_prog_CC+:} false; then :
  9992. $as_echo_n "(cached) " >&6
  9993. else
  9994. if test -n "$CC"; then
  9995. ac_cv_prog_CC="$CC" # Let the user override the test.
  9996. else
  9997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9998. for as_dir in $PATH
  9999. do
  10000. IFS=$as_save_IFS
  10001. test -z "$as_dir" && as_dir=.
  10002. for ac_exec_ext in '' $ac_executable_extensions; do
  10003. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10004. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10006. break 2
  10007. fi
  10008. done
  10009. done
  10010. IFS=$as_save_IFS
  10011. fi
  10012. fi
  10013. CC=$ac_cv_prog_CC
  10014. if test -n "$CC"; then
  10015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10016. $as_echo "$CC" >&6; }
  10017. else
  10018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10019. $as_echo "no" >&6; }
  10020. fi
  10021. test -n "$CC" && break
  10022. done
  10023. fi
  10024. if test -z "$CC"; then
  10025. ac_ct_CC=$CC
  10026. for ac_prog in cl.exe
  10027. do
  10028. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10029. set dummy $ac_prog; ac_word=$2
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10031. $as_echo_n "checking for $ac_word... " >&6; }
  10032. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10033. $as_echo_n "(cached) " >&6
  10034. else
  10035. if test -n "$ac_ct_CC"; then
  10036. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10037. else
  10038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10039. for as_dir in $PATH
  10040. do
  10041. IFS=$as_save_IFS
  10042. test -z "$as_dir" && as_dir=.
  10043. for ac_exec_ext in '' $ac_executable_extensions; do
  10044. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10045. ac_cv_prog_ac_ct_CC="$ac_prog"
  10046. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10047. break 2
  10048. fi
  10049. done
  10050. done
  10051. IFS=$as_save_IFS
  10052. fi
  10053. fi
  10054. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10055. if test -n "$ac_ct_CC"; then
  10056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10057. $as_echo "$ac_ct_CC" >&6; }
  10058. else
  10059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10060. $as_echo "no" >&6; }
  10061. fi
  10062. test -n "$ac_ct_CC" && break
  10063. done
  10064. if test "x$ac_ct_CC" = x; then
  10065. CC=""
  10066. else
  10067. case $cross_compiling:$ac_tool_warned in
  10068. yes:)
  10069. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10070. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10071. ac_tool_warned=yes ;;
  10072. esac
  10073. CC=$ac_ct_CC
  10074. fi
  10075. fi
  10076. fi
  10077. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10078. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10079. as_fn_error $? "no acceptable C compiler found in \$PATH
  10080. See \`config.log' for more details" "$LINENO" 5; }
  10081. # Provide some information about the compiler.
  10082. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10083. set X $ac_compile
  10084. ac_compiler=$2
  10085. for ac_option in --version -v -V -qversion; do
  10086. { { ac_try="$ac_compiler $ac_option >&5"
  10087. case "(($ac_try" in
  10088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10089. *) ac_try_echo=$ac_try;;
  10090. esac
  10091. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10092. $as_echo "$ac_try_echo"; } >&5
  10093. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10094. ac_status=$?
  10095. if test -s conftest.err; then
  10096. sed '10a\
  10097. ... rest of stderr output deleted ...
  10098. 10q' conftest.err >conftest.er1
  10099. cat conftest.er1 >&5
  10100. fi
  10101. rm -f conftest.er1 conftest.err
  10102. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10103. test $ac_status = 0; }
  10104. done
  10105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10106. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10107. if ${ac_cv_c_compiler_gnu+:} false; then :
  10108. $as_echo_n "(cached) " >&6
  10109. else
  10110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10111. /* end confdefs.h. */
  10112. int
  10113. main ()
  10114. {
  10115. #ifndef __GNUC__
  10116. choke me
  10117. #endif
  10118. ;
  10119. return 0;
  10120. }
  10121. _ACEOF
  10122. if ac_fn_c_try_compile "$LINENO"; then :
  10123. ac_compiler_gnu=yes
  10124. else
  10125. ac_compiler_gnu=no
  10126. fi
  10127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10128. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10129. fi
  10130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10131. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10132. if test $ac_compiler_gnu = yes; then
  10133. GCC=yes
  10134. else
  10135. GCC=
  10136. fi
  10137. ac_test_CFLAGS=${CFLAGS+set}
  10138. ac_save_CFLAGS=$CFLAGS
  10139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10140. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10141. if ${ac_cv_prog_cc_g+:} false; then :
  10142. $as_echo_n "(cached) " >&6
  10143. else
  10144. ac_save_c_werror_flag=$ac_c_werror_flag
  10145. ac_c_werror_flag=yes
  10146. ac_cv_prog_cc_g=no
  10147. CFLAGS="-g"
  10148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10149. /* end confdefs.h. */
  10150. int
  10151. main ()
  10152. {
  10153. ;
  10154. return 0;
  10155. }
  10156. _ACEOF
  10157. if ac_fn_c_try_compile "$LINENO"; then :
  10158. ac_cv_prog_cc_g=yes
  10159. else
  10160. CFLAGS=""
  10161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10162. /* end confdefs.h. */
  10163. int
  10164. main ()
  10165. {
  10166. ;
  10167. return 0;
  10168. }
  10169. _ACEOF
  10170. if ac_fn_c_try_compile "$LINENO"; then :
  10171. else
  10172. ac_c_werror_flag=$ac_save_c_werror_flag
  10173. CFLAGS="-g"
  10174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10175. /* end confdefs.h. */
  10176. int
  10177. main ()
  10178. {
  10179. ;
  10180. return 0;
  10181. }
  10182. _ACEOF
  10183. if ac_fn_c_try_compile "$LINENO"; then :
  10184. ac_cv_prog_cc_g=yes
  10185. fi
  10186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10187. fi
  10188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10189. fi
  10190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10191. ac_c_werror_flag=$ac_save_c_werror_flag
  10192. fi
  10193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10194. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10195. if test "$ac_test_CFLAGS" = set; then
  10196. CFLAGS=$ac_save_CFLAGS
  10197. elif test $ac_cv_prog_cc_g = yes; then
  10198. if test "$GCC" = yes; then
  10199. CFLAGS="-g -O2"
  10200. else
  10201. CFLAGS="-g"
  10202. fi
  10203. else
  10204. if test "$GCC" = yes; then
  10205. CFLAGS="-O2"
  10206. else
  10207. CFLAGS=
  10208. fi
  10209. fi
  10210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10211. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10212. if ${ac_cv_prog_cc_c89+:} false; then :
  10213. $as_echo_n "(cached) " >&6
  10214. else
  10215. ac_cv_prog_cc_c89=no
  10216. ac_save_CC=$CC
  10217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10218. /* end confdefs.h. */
  10219. #include <stdarg.h>
  10220. #include <stdio.h>
  10221. struct stat;
  10222. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10223. struct buf { int x; };
  10224. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10225. static char *e (p, i)
  10226. char **p;
  10227. int i;
  10228. {
  10229. return p[i];
  10230. }
  10231. static char *f (char * (*g) (char **, int), char **p, ...)
  10232. {
  10233. char *s;
  10234. va_list v;
  10235. va_start (v,p);
  10236. s = g (p, va_arg (v,int));
  10237. va_end (v);
  10238. return s;
  10239. }
  10240. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10241. function prototypes and stuff, but not '\xHH' hex character constants.
  10242. These don't provoke an error unfortunately, instead are silently treated
  10243. as 'x'. The following induces an error, until -std is added to get
  10244. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10245. array size at least. It's necessary to write '\x00'==0 to get something
  10246. that's true only with -std. */
  10247. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10248. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10249. inside strings and character constants. */
  10250. #define FOO(x) 'x'
  10251. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10252. int test (int i, double x);
  10253. struct s1 {int (*f) (int a);};
  10254. struct s2 {int (*f) (double a);};
  10255. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10256. int argc;
  10257. char **argv;
  10258. int
  10259. main ()
  10260. {
  10261. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10262. ;
  10263. return 0;
  10264. }
  10265. _ACEOF
  10266. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10267. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10268. do
  10269. CC="$ac_save_CC $ac_arg"
  10270. if ac_fn_c_try_compile "$LINENO"; then :
  10271. ac_cv_prog_cc_c89=$ac_arg
  10272. fi
  10273. rm -f core conftest.err conftest.$ac_objext
  10274. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10275. done
  10276. rm -f conftest.$ac_ext
  10277. CC=$ac_save_CC
  10278. fi
  10279. # AC_CACHE_VAL
  10280. case "x$ac_cv_prog_cc_c89" in
  10281. x)
  10282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10283. $as_echo "none needed" >&6; } ;;
  10284. xno)
  10285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10286. $as_echo "unsupported" >&6; } ;;
  10287. *)
  10288. CC="$CC $ac_cv_prog_cc_c89"
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10290. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10291. esac
  10292. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10293. fi
  10294. ac_ext=c
  10295. ac_cpp='$CPP $CPPFLAGS'
  10296. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10297. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10298. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10299. ac_ext=cpp
  10300. ac_cpp='$CXXCPP $CPPFLAGS'
  10301. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10302. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10303. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10304. if test -z "$CXX"; then
  10305. if test -n "$CCC"; then
  10306. CXX=$CCC
  10307. else
  10308. if test -n "$ac_tool_prefix"; then
  10309. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10310. do
  10311. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10312. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10314. $as_echo_n "checking for $ac_word... " >&6; }
  10315. if ${ac_cv_prog_CXX+:} false; then :
  10316. $as_echo_n "(cached) " >&6
  10317. else
  10318. if test -n "$CXX"; then
  10319. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10320. else
  10321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10322. for as_dir in $PATH
  10323. do
  10324. IFS=$as_save_IFS
  10325. test -z "$as_dir" && as_dir=.
  10326. for ac_exec_ext in '' $ac_executable_extensions; do
  10327. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10328. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10329. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10330. break 2
  10331. fi
  10332. done
  10333. done
  10334. IFS=$as_save_IFS
  10335. fi
  10336. fi
  10337. CXX=$ac_cv_prog_CXX
  10338. if test -n "$CXX"; then
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10340. $as_echo "$CXX" >&6; }
  10341. else
  10342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10343. $as_echo "no" >&6; }
  10344. fi
  10345. test -n "$CXX" && break
  10346. done
  10347. fi
  10348. if test -z "$CXX"; then
  10349. ac_ct_CXX=$CXX
  10350. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10351. do
  10352. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10353. set dummy $ac_prog; ac_word=$2
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10355. $as_echo_n "checking for $ac_word... " >&6; }
  10356. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10357. $as_echo_n "(cached) " >&6
  10358. else
  10359. if test -n "$ac_ct_CXX"; then
  10360. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10361. else
  10362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10363. for as_dir in $PATH
  10364. do
  10365. IFS=$as_save_IFS
  10366. test -z "$as_dir" && as_dir=.
  10367. for ac_exec_ext in '' $ac_executable_extensions; do
  10368. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10369. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10370. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10371. break 2
  10372. fi
  10373. done
  10374. done
  10375. IFS=$as_save_IFS
  10376. fi
  10377. fi
  10378. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10379. if test -n "$ac_ct_CXX"; then
  10380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10381. $as_echo "$ac_ct_CXX" >&6; }
  10382. else
  10383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10384. $as_echo "no" >&6; }
  10385. fi
  10386. test -n "$ac_ct_CXX" && break
  10387. done
  10388. if test "x$ac_ct_CXX" = x; then
  10389. CXX="g++"
  10390. else
  10391. case $cross_compiling:$ac_tool_warned in
  10392. yes:)
  10393. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10394. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10395. ac_tool_warned=yes ;;
  10396. esac
  10397. CXX=$ac_ct_CXX
  10398. fi
  10399. fi
  10400. fi
  10401. fi
  10402. # Provide some information about the compiler.
  10403. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10404. set X $ac_compile
  10405. ac_compiler=$2
  10406. for ac_option in --version -v -V -qversion; do
  10407. { { ac_try="$ac_compiler $ac_option >&5"
  10408. case "(($ac_try" in
  10409. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10410. *) ac_try_echo=$ac_try;;
  10411. esac
  10412. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10413. $as_echo "$ac_try_echo"; } >&5
  10414. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10415. ac_status=$?
  10416. if test -s conftest.err; then
  10417. sed '10a\
  10418. ... rest of stderr output deleted ...
  10419. 10q' conftest.err >conftest.er1
  10420. cat conftest.er1 >&5
  10421. fi
  10422. rm -f conftest.er1 conftest.err
  10423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10424. test $ac_status = 0; }
  10425. done
  10426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10427. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10428. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10429. $as_echo_n "(cached) " >&6
  10430. else
  10431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10432. /* end confdefs.h. */
  10433. int
  10434. main ()
  10435. {
  10436. #ifndef __GNUC__
  10437. choke me
  10438. #endif
  10439. ;
  10440. return 0;
  10441. }
  10442. _ACEOF
  10443. if ac_fn_cxx_try_compile "$LINENO"; then :
  10444. ac_compiler_gnu=yes
  10445. else
  10446. ac_compiler_gnu=no
  10447. fi
  10448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10449. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10450. fi
  10451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10452. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10453. if test $ac_compiler_gnu = yes; then
  10454. GXX=yes
  10455. else
  10456. GXX=
  10457. fi
  10458. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10459. ac_save_CXXFLAGS=$CXXFLAGS
  10460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10461. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10462. if ${ac_cv_prog_cxx_g+:} false; then :
  10463. $as_echo_n "(cached) " >&6
  10464. else
  10465. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10466. ac_cxx_werror_flag=yes
  10467. ac_cv_prog_cxx_g=no
  10468. CXXFLAGS="-g"
  10469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10470. /* end confdefs.h. */
  10471. int
  10472. main ()
  10473. {
  10474. ;
  10475. return 0;
  10476. }
  10477. _ACEOF
  10478. if ac_fn_cxx_try_compile "$LINENO"; then :
  10479. ac_cv_prog_cxx_g=yes
  10480. else
  10481. CXXFLAGS=""
  10482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10483. /* end confdefs.h. */
  10484. int
  10485. main ()
  10486. {
  10487. ;
  10488. return 0;
  10489. }
  10490. _ACEOF
  10491. if ac_fn_cxx_try_compile "$LINENO"; then :
  10492. else
  10493. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10494. CXXFLAGS="-g"
  10495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10496. /* end confdefs.h. */
  10497. int
  10498. main ()
  10499. {
  10500. ;
  10501. return 0;
  10502. }
  10503. _ACEOF
  10504. if ac_fn_cxx_try_compile "$LINENO"; then :
  10505. ac_cv_prog_cxx_g=yes
  10506. fi
  10507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10508. fi
  10509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10510. fi
  10511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10512. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10513. fi
  10514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10515. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10516. if test "$ac_test_CXXFLAGS" = set; then
  10517. CXXFLAGS=$ac_save_CXXFLAGS
  10518. elif test $ac_cv_prog_cxx_g = yes; then
  10519. if test "$GXX" = yes; then
  10520. CXXFLAGS="-g -O2"
  10521. else
  10522. CXXFLAGS="-g"
  10523. fi
  10524. else
  10525. if test "$GXX" = yes; then
  10526. CXXFLAGS="-O2"
  10527. else
  10528. CXXFLAGS=
  10529. fi
  10530. fi
  10531. ac_ext=c
  10532. ac_cpp='$CPP $CPPFLAGS'
  10533. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10534. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10535. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10536. func_stripname_cnf ()
  10537. {
  10538. case ${2} in
  10539. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10540. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10541. esac
  10542. } # func_stripname_cnf
  10543. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10544. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10545. (test "X$CXX" != "Xg++"))) ; then
  10546. ac_ext=cpp
  10547. ac_cpp='$CXXCPP $CPPFLAGS'
  10548. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10549. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10550. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10552. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10553. if test -z "$CXXCPP"; then
  10554. if ${ac_cv_prog_CXXCPP+:} false; then :
  10555. $as_echo_n "(cached) " >&6
  10556. else
  10557. # Double quotes because CXXCPP needs to be expanded
  10558. for CXXCPP in "$CXX -E" "/lib/cpp"
  10559. do
  10560. ac_preproc_ok=false
  10561. for ac_cxx_preproc_warn_flag in '' yes
  10562. do
  10563. # Use a header file that comes with gcc, so configuring glibc
  10564. # with a fresh cross-compiler works.
  10565. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10566. # <limits.h> exists even on freestanding compilers.
  10567. # On the NeXT, cc -E runs the code through the compiler's parser,
  10568. # not just through cpp. "Syntax error" is here to catch this case.
  10569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10570. /* end confdefs.h. */
  10571. #ifdef __STDC__
  10572. # include <limits.h>
  10573. #else
  10574. # include <assert.h>
  10575. #endif
  10576. Syntax error
  10577. _ACEOF
  10578. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10579. else
  10580. # Broken: fails on valid input.
  10581. continue
  10582. fi
  10583. rm -f conftest.err conftest.i conftest.$ac_ext
  10584. # OK, works on sane cases. Now check whether nonexistent headers
  10585. # can be detected and how.
  10586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10587. /* end confdefs.h. */
  10588. #include <ac_nonexistent.h>
  10589. _ACEOF
  10590. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10591. # Broken: success on invalid input.
  10592. continue
  10593. else
  10594. # Passes both tests.
  10595. ac_preproc_ok=:
  10596. break
  10597. fi
  10598. rm -f conftest.err conftest.i conftest.$ac_ext
  10599. done
  10600. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10601. rm -f conftest.i conftest.err conftest.$ac_ext
  10602. if $ac_preproc_ok; then :
  10603. break
  10604. fi
  10605. done
  10606. ac_cv_prog_CXXCPP=$CXXCPP
  10607. fi
  10608. CXXCPP=$ac_cv_prog_CXXCPP
  10609. else
  10610. ac_cv_prog_CXXCPP=$CXXCPP
  10611. fi
  10612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10613. $as_echo "$CXXCPP" >&6; }
  10614. ac_preproc_ok=false
  10615. for ac_cxx_preproc_warn_flag in '' yes
  10616. do
  10617. # Use a header file that comes with gcc, so configuring glibc
  10618. # with a fresh cross-compiler works.
  10619. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10620. # <limits.h> exists even on freestanding compilers.
  10621. # On the NeXT, cc -E runs the code through the compiler's parser,
  10622. # not just through cpp. "Syntax error" is here to catch this case.
  10623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10624. /* end confdefs.h. */
  10625. #ifdef __STDC__
  10626. # include <limits.h>
  10627. #else
  10628. # include <assert.h>
  10629. #endif
  10630. Syntax error
  10631. _ACEOF
  10632. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10633. else
  10634. # Broken: fails on valid input.
  10635. continue
  10636. fi
  10637. rm -f conftest.err conftest.i conftest.$ac_ext
  10638. # OK, works on sane cases. Now check whether nonexistent headers
  10639. # can be detected and how.
  10640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10641. /* end confdefs.h. */
  10642. #include <ac_nonexistent.h>
  10643. _ACEOF
  10644. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10645. # Broken: success on invalid input.
  10646. continue
  10647. else
  10648. # Passes both tests.
  10649. ac_preproc_ok=:
  10650. break
  10651. fi
  10652. rm -f conftest.err conftest.i conftest.$ac_ext
  10653. done
  10654. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10655. rm -f conftest.i conftest.err conftest.$ac_ext
  10656. if $ac_preproc_ok; then :
  10657. else
  10658. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10659. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10660. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10661. See \`config.log' for more details" "$LINENO" 5; }
  10662. fi
  10663. ac_ext=c
  10664. ac_cpp='$CPP $CPPFLAGS'
  10665. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10666. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10667. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10668. else
  10669. _lt_caught_CXX_error=yes
  10670. fi
  10671. ac_ext=cpp
  10672. ac_cpp='$CXXCPP $CPPFLAGS'
  10673. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10674. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10675. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10676. archive_cmds_need_lc_CXX=no
  10677. allow_undefined_flag_CXX=
  10678. always_export_symbols_CXX=no
  10679. archive_expsym_cmds_CXX=
  10680. compiler_needs_object_CXX=no
  10681. export_dynamic_flag_spec_CXX=
  10682. hardcode_direct_CXX=no
  10683. hardcode_direct_absolute_CXX=no
  10684. hardcode_libdir_flag_spec_CXX=
  10685. hardcode_libdir_separator_CXX=
  10686. hardcode_minus_L_CXX=no
  10687. hardcode_shlibpath_var_CXX=unsupported
  10688. hardcode_automatic_CXX=no
  10689. inherit_rpath_CXX=no
  10690. module_cmds_CXX=
  10691. module_expsym_cmds_CXX=
  10692. link_all_deplibs_CXX=unknown
  10693. old_archive_cmds_CXX=$old_archive_cmds
  10694. reload_flag_CXX=$reload_flag
  10695. reload_cmds_CXX=$reload_cmds
  10696. no_undefined_flag_CXX=
  10697. whole_archive_flag_spec_CXX=
  10698. enable_shared_with_static_runtimes_CXX=no
  10699. # Source file extension for C++ test sources.
  10700. ac_ext=cpp
  10701. # Object file extension for compiled C++ test sources.
  10702. objext=o
  10703. objext_CXX=$objext
  10704. # No sense in running all these tests if we already determined that
  10705. # the CXX compiler isn't working. Some variables (like enable_shared)
  10706. # are currently assumed to apply to all compilers on this platform,
  10707. # and will be corrupted by setting them based on a non-working compiler.
  10708. if test "$_lt_caught_CXX_error" != yes; then
  10709. # Code to be used in simple compile tests
  10710. lt_simple_compile_test_code="int some_variable = 0;"
  10711. # Code to be used in simple link tests
  10712. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10713. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10714. # If no C compiler was specified, use CC.
  10715. LTCC=${LTCC-"$CC"}
  10716. # If no C compiler flags were specified, use CFLAGS.
  10717. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10718. # Allow CC to be a program name with arguments.
  10719. compiler=$CC
  10720. # save warnings/boilerplate of simple test code
  10721. ac_outfile=conftest.$ac_objext
  10722. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10723. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10724. _lt_compiler_boilerplate=`cat conftest.err`
  10725. $RM conftest*
  10726. ac_outfile=conftest.$ac_objext
  10727. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10728. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10729. _lt_linker_boilerplate=`cat conftest.err`
  10730. $RM -r conftest*
  10731. # Allow CC to be a program name with arguments.
  10732. lt_save_CC=$CC
  10733. lt_save_CFLAGS=$CFLAGS
  10734. lt_save_LD=$LD
  10735. lt_save_GCC=$GCC
  10736. GCC=$GXX
  10737. lt_save_with_gnu_ld=$with_gnu_ld
  10738. lt_save_path_LD=$lt_cv_path_LD
  10739. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10740. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10741. else
  10742. $as_unset lt_cv_prog_gnu_ld
  10743. fi
  10744. if test -n "${lt_cv_path_LDCXX+set}"; then
  10745. lt_cv_path_LD=$lt_cv_path_LDCXX
  10746. else
  10747. $as_unset lt_cv_path_LD
  10748. fi
  10749. test -z "${LDCXX+set}" || LD=$LDCXX
  10750. CC=${CXX-"c++"}
  10751. CFLAGS=$CXXFLAGS
  10752. compiler=$CC
  10753. compiler_CXX=$CC
  10754. for cc_temp in $compiler""; do
  10755. case $cc_temp in
  10756. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10757. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10758. \-*) ;;
  10759. *) break;;
  10760. esac
  10761. done
  10762. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10763. if test -n "$compiler"; then
  10764. # We don't want -fno-exception when compiling C++ code, so set the
  10765. # no_builtin_flag separately
  10766. if test "$GXX" = yes; then
  10767. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10768. else
  10769. lt_prog_compiler_no_builtin_flag_CXX=
  10770. fi
  10771. if test "$GXX" = yes; then
  10772. # Set up default GNU C++ configuration
  10773. # Check whether --with-gnu-ld was given.
  10774. if test "${with_gnu_ld+set}" = set; then :
  10775. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10776. else
  10777. with_gnu_ld=no
  10778. fi
  10779. ac_prog=ld
  10780. if test "$GCC" = yes; then
  10781. # Check if gcc -print-prog-name=ld gives a path.
  10782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10783. $as_echo_n "checking for ld used by $CC... " >&6; }
  10784. case $host in
  10785. *-*-mingw*)
  10786. # gcc leaves a trailing carriage return which upsets mingw
  10787. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10788. *)
  10789. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10790. esac
  10791. case $ac_prog in
  10792. # Accept absolute paths.
  10793. [\\/]* | ?:[\\/]*)
  10794. re_direlt='/[^/][^/]*/\.\./'
  10795. # Canonicalize the pathname of ld
  10796. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10797. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10798. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10799. done
  10800. test -z "$LD" && LD="$ac_prog"
  10801. ;;
  10802. "")
  10803. # If it fails, then pretend we aren't using GCC.
  10804. ac_prog=ld
  10805. ;;
  10806. *)
  10807. # If it is relative, then search for the first ld in PATH.
  10808. with_gnu_ld=unknown
  10809. ;;
  10810. esac
  10811. elif test "$with_gnu_ld" = yes; then
  10812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10813. $as_echo_n "checking for GNU ld... " >&6; }
  10814. else
  10815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10816. $as_echo_n "checking for non-GNU ld... " >&6; }
  10817. fi
  10818. if ${lt_cv_path_LD+:} false; then :
  10819. $as_echo_n "(cached) " >&6
  10820. else
  10821. if test -z "$LD"; then
  10822. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10823. for ac_dir in $PATH; do
  10824. IFS="$lt_save_ifs"
  10825. test -z "$ac_dir" && ac_dir=.
  10826. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10827. lt_cv_path_LD="$ac_dir/$ac_prog"
  10828. # Check to see if the program is GNU ld. I'd rather use --version,
  10829. # but apparently some variants of GNU ld only accept -v.
  10830. # Break only if it was the GNU/non-GNU ld that we prefer.
  10831. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10832. *GNU* | *'with BFD'*)
  10833. test "$with_gnu_ld" != no && break
  10834. ;;
  10835. *)
  10836. test "$with_gnu_ld" != yes && break
  10837. ;;
  10838. esac
  10839. fi
  10840. done
  10841. IFS="$lt_save_ifs"
  10842. else
  10843. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10844. fi
  10845. fi
  10846. LD="$lt_cv_path_LD"
  10847. if test -n "$LD"; then
  10848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10849. $as_echo "$LD" >&6; }
  10850. else
  10851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10852. $as_echo "no" >&6; }
  10853. fi
  10854. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10856. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10857. if ${lt_cv_prog_gnu_ld+:} false; then :
  10858. $as_echo_n "(cached) " >&6
  10859. else
  10860. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10861. case `$LD -v 2>&1 </dev/null` in
  10862. *GNU* | *'with BFD'*)
  10863. lt_cv_prog_gnu_ld=yes
  10864. ;;
  10865. *)
  10866. lt_cv_prog_gnu_ld=no
  10867. ;;
  10868. esac
  10869. fi
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10871. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10872. with_gnu_ld=$lt_cv_prog_gnu_ld
  10873. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10874. # archiving commands below assume that GNU ld is being used.
  10875. if test "$with_gnu_ld" = yes; then
  10876. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10877. 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'
  10878. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10879. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10880. # If archive_cmds runs LD, not CC, wlarc should be empty
  10881. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10882. # investigate it a little bit more. (MM)
  10883. wlarc='${wl}'
  10884. # ancient GNU ld didn't support --whole-archive et. al.
  10885. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10886. $GREP 'no-whole-archive' > /dev/null; then
  10887. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10888. else
  10889. whole_archive_flag_spec_CXX=
  10890. fi
  10891. else
  10892. with_gnu_ld=no
  10893. wlarc=
  10894. # A generic and very simple default shared library creation
  10895. # command for GNU C++ for the case where it uses the native
  10896. # linker, instead of GNU ld. If possible, this setting should
  10897. # overridden to take advantage of the native linker features on
  10898. # the platform it is being used on.
  10899. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10900. fi
  10901. # Commands to make compiler produce verbose output that lists
  10902. # what "hidden" libraries, object files and flags are used when
  10903. # linking a shared library.
  10904. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10905. else
  10906. GXX=no
  10907. with_gnu_ld=no
  10908. wlarc=
  10909. fi
  10910. # PORTME: fill in a description of your system's C++ link characteristics
  10911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10912. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10913. ld_shlibs_CXX=yes
  10914. case $host_os in
  10915. aix3*)
  10916. # FIXME: insert proper C++ library support
  10917. ld_shlibs_CXX=no
  10918. ;;
  10919. aix[4-9]*)
  10920. if test "$host_cpu" = ia64; then
  10921. # On IA64, the linker does run time linking by default, so we don't
  10922. # have to do anything special.
  10923. aix_use_runtimelinking=no
  10924. exp_sym_flag='-Bexport'
  10925. no_entry_flag=""
  10926. else
  10927. aix_use_runtimelinking=no
  10928. # Test if we are trying to use run time linking or normal
  10929. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10930. # need to do runtime linking.
  10931. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10932. for ld_flag in $LDFLAGS; do
  10933. case $ld_flag in
  10934. *-brtl*)
  10935. aix_use_runtimelinking=yes
  10936. break
  10937. ;;
  10938. esac
  10939. done
  10940. ;;
  10941. esac
  10942. exp_sym_flag='-bexport'
  10943. no_entry_flag='-bnoentry'
  10944. fi
  10945. # When large executables or shared objects are built, AIX ld can
  10946. # have problems creating the table of contents. If linking a library
  10947. # or program results in "error TOC overflow" add -mminimal-toc to
  10948. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10949. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10950. archive_cmds_CXX=''
  10951. hardcode_direct_CXX=yes
  10952. hardcode_direct_absolute_CXX=yes
  10953. hardcode_libdir_separator_CXX=':'
  10954. link_all_deplibs_CXX=yes
  10955. file_list_spec_CXX='${wl}-f,'
  10956. if test "$GXX" = yes; then
  10957. case $host_os in aix4.[012]|aix4.[012].*)
  10958. # We only want to do this on AIX 4.2 and lower, the check
  10959. # below for broken collect2 doesn't work under 4.3+
  10960. collect2name=`${CC} -print-prog-name=collect2`
  10961. if test -f "$collect2name" &&
  10962. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10963. then
  10964. # We have reworked collect2
  10965. :
  10966. else
  10967. # We have old collect2
  10968. hardcode_direct_CXX=unsupported
  10969. # It fails to find uninstalled libraries when the uninstalled
  10970. # path is not listed in the libpath. Setting hardcode_minus_L
  10971. # to unsupported forces relinking
  10972. hardcode_minus_L_CXX=yes
  10973. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10974. hardcode_libdir_separator_CXX=
  10975. fi
  10976. esac
  10977. shared_flag='-shared'
  10978. if test "$aix_use_runtimelinking" = yes; then
  10979. shared_flag="$shared_flag "'${wl}-G'
  10980. fi
  10981. else
  10982. # not using gcc
  10983. if test "$host_cpu" = ia64; then
  10984. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10985. # chokes on -Wl,-G. The following line is correct:
  10986. shared_flag='-G'
  10987. else
  10988. if test "$aix_use_runtimelinking" = yes; then
  10989. shared_flag='${wl}-G'
  10990. else
  10991. shared_flag='${wl}-bM:SRE'
  10992. fi
  10993. fi
  10994. fi
  10995. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10996. # It seems that -bexpall does not export symbols beginning with
  10997. # underscore (_), so it is better to generate a list of symbols to
  10998. # export.
  10999. always_export_symbols_CXX=yes
  11000. if test "$aix_use_runtimelinking" = yes; then
  11001. # Warning - without using the other runtime loading flags (-brtl),
  11002. # -berok will link without error, but may produce a broken library.
  11003. allow_undefined_flag_CXX='-berok'
  11004. # Determine the default libpath from the value encoded in an empty
  11005. # executable.
  11006. if test "${lt_cv_aix_libpath+set}" = set; then
  11007. aix_libpath=$lt_cv_aix_libpath
  11008. else
  11009. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11010. $as_echo_n "(cached) " >&6
  11011. else
  11012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11013. /* end confdefs.h. */
  11014. int
  11015. main ()
  11016. {
  11017. ;
  11018. return 0;
  11019. }
  11020. _ACEOF
  11021. if ac_fn_cxx_try_link "$LINENO"; then :
  11022. lt_aix_libpath_sed='
  11023. /Import File Strings/,/^$/ {
  11024. /^0/ {
  11025. s/^0 *\([^ ]*\) *$/\1/
  11026. p
  11027. }
  11028. }'
  11029. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11030. # Check for a 64-bit object if we didn't find anything.
  11031. if test -z "$lt_cv_aix_libpath__CXX"; then
  11032. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11033. fi
  11034. fi
  11035. rm -f core conftest.err conftest.$ac_objext \
  11036. conftest$ac_exeext conftest.$ac_ext
  11037. if test -z "$lt_cv_aix_libpath__CXX"; then
  11038. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11039. fi
  11040. fi
  11041. aix_libpath=$lt_cv_aix_libpath__CXX
  11042. fi
  11043. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11044. 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"
  11045. else
  11046. if test "$host_cpu" = ia64; then
  11047. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11048. allow_undefined_flag_CXX="-z nodefs"
  11049. 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"
  11050. else
  11051. # Determine the default libpath from the value encoded in an
  11052. # empty executable.
  11053. if test "${lt_cv_aix_libpath+set}" = set; then
  11054. aix_libpath=$lt_cv_aix_libpath
  11055. else
  11056. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11057. $as_echo_n "(cached) " >&6
  11058. else
  11059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11060. /* end confdefs.h. */
  11061. int
  11062. main ()
  11063. {
  11064. ;
  11065. return 0;
  11066. }
  11067. _ACEOF
  11068. if ac_fn_cxx_try_link "$LINENO"; then :
  11069. lt_aix_libpath_sed='
  11070. /Import File Strings/,/^$/ {
  11071. /^0/ {
  11072. s/^0 *\([^ ]*\) *$/\1/
  11073. p
  11074. }
  11075. }'
  11076. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11077. # Check for a 64-bit object if we didn't find anything.
  11078. if test -z "$lt_cv_aix_libpath__CXX"; then
  11079. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11080. fi
  11081. fi
  11082. rm -f core conftest.err conftest.$ac_objext \
  11083. conftest$ac_exeext conftest.$ac_ext
  11084. if test -z "$lt_cv_aix_libpath__CXX"; then
  11085. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11086. fi
  11087. fi
  11088. aix_libpath=$lt_cv_aix_libpath__CXX
  11089. fi
  11090. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11091. # Warning - without using the other run time loading flags,
  11092. # -berok will link without error, but may produce a broken library.
  11093. no_undefined_flag_CXX=' ${wl}-bernotok'
  11094. allow_undefined_flag_CXX=' ${wl}-berok'
  11095. if test "$with_gnu_ld" = yes; then
  11096. # We only use this code for GNU lds that support --whole-archive.
  11097. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11098. else
  11099. # Exported symbols can be pulled into shared objects from archives
  11100. whole_archive_flag_spec_CXX='$convenience'
  11101. fi
  11102. archive_cmds_need_lc_CXX=yes
  11103. # This is similar to how AIX traditionally builds its shared
  11104. # libraries.
  11105. 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'
  11106. fi
  11107. fi
  11108. ;;
  11109. beos*)
  11110. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11111. allow_undefined_flag_CXX=unsupported
  11112. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11113. # support --undefined. This deserves some investigation. FIXME
  11114. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11115. else
  11116. ld_shlibs_CXX=no
  11117. fi
  11118. ;;
  11119. chorus*)
  11120. case $cc_basename in
  11121. *)
  11122. # FIXME: insert proper C++ library support
  11123. ld_shlibs_CXX=no
  11124. ;;
  11125. esac
  11126. ;;
  11127. cygwin* | mingw* | pw32* | cegcc*)
  11128. case $GXX,$cc_basename in
  11129. ,cl* | no,cl*)
  11130. # Native MSVC
  11131. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11132. # no search path for DLLs.
  11133. hardcode_libdir_flag_spec_CXX=' '
  11134. allow_undefined_flag_CXX=unsupported
  11135. always_export_symbols_CXX=yes
  11136. file_list_spec_CXX='@'
  11137. # Tell ltmain to make .lib files, not .a files.
  11138. libext=lib
  11139. # Tell ltmain to make .dll files, not .so files.
  11140. shrext_cmds=".dll"
  11141. # FIXME: Setting linknames here is a bad hack.
  11142. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11143. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11144. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11145. else
  11146. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11147. fi~
  11148. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11149. linknames='
  11150. # The linker will not automatically build a static lib if we build a DLL.
  11151. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11152. enable_shared_with_static_runtimes_CXX=yes
  11153. # Don't use ranlib
  11154. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11155. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11156. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11157. case $lt_outputfile in
  11158. *.exe|*.EXE) ;;
  11159. *)
  11160. lt_outputfile="$lt_outputfile.exe"
  11161. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11162. ;;
  11163. esac~
  11164. func_to_tool_file "$lt_outputfile"~
  11165. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11166. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11167. $RM "$lt_outputfile.manifest";
  11168. fi'
  11169. ;;
  11170. *)
  11171. # g++
  11172. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11173. # as there is no search path for DLLs.
  11174. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11175. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11176. allow_undefined_flag_CXX=unsupported
  11177. always_export_symbols_CXX=no
  11178. enable_shared_with_static_runtimes_CXX=yes
  11179. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11180. 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'
  11181. # If the export-symbols file already is a .def file (1st line
  11182. # is EXPORTS), use it as is; otherwise, prepend...
  11183. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11184. cp $export_symbols $output_objdir/$soname.def;
  11185. else
  11186. echo EXPORTS > $output_objdir/$soname.def;
  11187. cat $export_symbols >> $output_objdir/$soname.def;
  11188. fi~
  11189. $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'
  11190. else
  11191. ld_shlibs_CXX=no
  11192. fi
  11193. ;;
  11194. esac
  11195. ;;
  11196. darwin* | rhapsody*)
  11197. archive_cmds_need_lc_CXX=no
  11198. hardcode_direct_CXX=no
  11199. hardcode_automatic_CXX=yes
  11200. hardcode_shlibpath_var_CXX=unsupported
  11201. if test "$lt_cv_ld_force_load" = "yes"; then
  11202. 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\"`'
  11203. else
  11204. whole_archive_flag_spec_CXX=''
  11205. fi
  11206. link_all_deplibs_CXX=yes
  11207. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11208. case $cc_basename in
  11209. ifort*) _lt_dar_can_shared=yes ;;
  11210. *) _lt_dar_can_shared=$GCC ;;
  11211. esac
  11212. if test "$_lt_dar_can_shared" = "yes"; then
  11213. output_verbose_link_cmd=func_echo_all
  11214. 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}"
  11215. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11216. 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}"
  11217. 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}"
  11218. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11219. 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}"
  11220. 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}"
  11221. fi
  11222. else
  11223. ld_shlibs_CXX=no
  11224. fi
  11225. ;;
  11226. dgux*)
  11227. case $cc_basename in
  11228. ec++*)
  11229. # FIXME: insert proper C++ library support
  11230. ld_shlibs_CXX=no
  11231. ;;
  11232. ghcx*)
  11233. # Green Hills C++ Compiler
  11234. # FIXME: insert proper C++ library support
  11235. ld_shlibs_CXX=no
  11236. ;;
  11237. *)
  11238. # FIXME: insert proper C++ library support
  11239. ld_shlibs_CXX=no
  11240. ;;
  11241. esac
  11242. ;;
  11243. freebsd2.*)
  11244. # C++ shared libraries reported to be fairly broken before
  11245. # switch to ELF
  11246. ld_shlibs_CXX=no
  11247. ;;
  11248. freebsd-elf*)
  11249. archive_cmds_need_lc_CXX=no
  11250. ;;
  11251. freebsd* | dragonfly*)
  11252. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11253. # conventions
  11254. ld_shlibs_CXX=yes
  11255. ;;
  11256. gnu*)
  11257. ;;
  11258. haiku*)
  11259. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11260. link_all_deplibs_CXX=yes
  11261. ;;
  11262. hpux9*)
  11263. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11264. hardcode_libdir_separator_CXX=:
  11265. export_dynamic_flag_spec_CXX='${wl}-E'
  11266. hardcode_direct_CXX=yes
  11267. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11268. # but as the default
  11269. # location of the library.
  11270. case $cc_basename in
  11271. CC*)
  11272. # FIXME: insert proper C++ library support
  11273. ld_shlibs_CXX=no
  11274. ;;
  11275. aCC*)
  11276. 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'
  11277. # Commands to make compiler produce verbose output that lists
  11278. # what "hidden" libraries, object files and flags are used when
  11279. # linking a shared library.
  11280. #
  11281. # There doesn't appear to be a way to prevent this compiler from
  11282. # explicitly linking system object files so we need to strip them
  11283. # from the output so that they don't get included in the library
  11284. # dependencies.
  11285. 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"'
  11286. ;;
  11287. *)
  11288. if test "$GXX" = yes; then
  11289. 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'
  11290. else
  11291. # FIXME: insert proper C++ library support
  11292. ld_shlibs_CXX=no
  11293. fi
  11294. ;;
  11295. esac
  11296. ;;
  11297. hpux10*|hpux11*)
  11298. if test $with_gnu_ld = no; then
  11299. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11300. hardcode_libdir_separator_CXX=:
  11301. case $host_cpu in
  11302. hppa*64*|ia64*)
  11303. ;;
  11304. *)
  11305. export_dynamic_flag_spec_CXX='${wl}-E'
  11306. ;;
  11307. esac
  11308. fi
  11309. case $host_cpu in
  11310. hppa*64*|ia64*)
  11311. hardcode_direct_CXX=no
  11312. hardcode_shlibpath_var_CXX=no
  11313. ;;
  11314. *)
  11315. hardcode_direct_CXX=yes
  11316. hardcode_direct_absolute_CXX=yes
  11317. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11318. # but as the default
  11319. # location of the library.
  11320. ;;
  11321. esac
  11322. case $cc_basename in
  11323. CC*)
  11324. # FIXME: insert proper C++ library support
  11325. ld_shlibs_CXX=no
  11326. ;;
  11327. aCC*)
  11328. case $host_cpu in
  11329. hppa*64*)
  11330. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11331. ;;
  11332. ia64*)
  11333. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11334. ;;
  11335. *)
  11336. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11337. ;;
  11338. esac
  11339. # Commands to make compiler produce verbose output that lists
  11340. # what "hidden" libraries, object files and flags are used when
  11341. # linking a shared library.
  11342. #
  11343. # There doesn't appear to be a way to prevent this compiler from
  11344. # explicitly linking system object files so we need to strip them
  11345. # from the output so that they don't get included in the library
  11346. # dependencies.
  11347. 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"'
  11348. ;;
  11349. *)
  11350. if test "$GXX" = yes; then
  11351. if test $with_gnu_ld = no; then
  11352. case $host_cpu in
  11353. hppa*64*)
  11354. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11355. ;;
  11356. ia64*)
  11357. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11358. ;;
  11359. *)
  11360. 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'
  11361. ;;
  11362. esac
  11363. fi
  11364. else
  11365. # FIXME: insert proper C++ library support
  11366. ld_shlibs_CXX=no
  11367. fi
  11368. ;;
  11369. esac
  11370. ;;
  11371. interix[3-9]*)
  11372. hardcode_direct_CXX=no
  11373. hardcode_shlibpath_var_CXX=no
  11374. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11375. export_dynamic_flag_spec_CXX='${wl}-E'
  11376. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11377. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11378. # default) and relocated if they conflict, which is a slow very memory
  11379. # consuming and fragmenting process. To avoid this, we pick a random,
  11380. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11381. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11382. 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'
  11383. 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'
  11384. ;;
  11385. irix5* | irix6*)
  11386. case $cc_basename in
  11387. CC*)
  11388. # SGI C++
  11389. 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'
  11390. # Archives containing C++ object files must be created using
  11391. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11392. # necessary to make sure instantiated templates are included
  11393. # in the archive.
  11394. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11395. ;;
  11396. *)
  11397. if test "$GXX" = yes; then
  11398. if test "$with_gnu_ld" = no; then
  11399. 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'
  11400. else
  11401. 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'
  11402. fi
  11403. fi
  11404. link_all_deplibs_CXX=yes
  11405. ;;
  11406. esac
  11407. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11408. hardcode_libdir_separator_CXX=:
  11409. inherit_rpath_CXX=yes
  11410. ;;
  11411. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11412. case $cc_basename in
  11413. KCC*)
  11414. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11415. # KCC will only create a shared library if the output file
  11416. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11417. # to its proper name (with version) after linking.
  11418. 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'
  11419. 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'
  11420. # Commands to make compiler produce verbose output that lists
  11421. # what "hidden" libraries, object files and flags are used when
  11422. # linking a shared library.
  11423. #
  11424. # There doesn't appear to be a way to prevent this compiler from
  11425. # explicitly linking system object files so we need to strip them
  11426. # from the output so that they don't get included in the library
  11427. # dependencies.
  11428. 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"'
  11429. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11430. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11431. # Archives containing C++ object files must be created using
  11432. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11433. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11434. ;;
  11435. icpc* | ecpc* )
  11436. # Intel C++
  11437. with_gnu_ld=yes
  11438. # version 8.0 and above of icpc choke on multiply defined symbols
  11439. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11440. # earlier do not add the objects themselves.
  11441. case `$CC -V 2>&1` in
  11442. *"Version 7."*)
  11443. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11444. 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'
  11445. ;;
  11446. *) # Version 8.0 or newer
  11447. tmp_idyn=
  11448. case $host_cpu in
  11449. ia64*) tmp_idyn=' -i_dynamic';;
  11450. esac
  11451. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11452. 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'
  11453. ;;
  11454. esac
  11455. archive_cmds_need_lc_CXX=no
  11456. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11457. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11458. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11459. ;;
  11460. pgCC* | pgcpp*)
  11461. # Portland Group C++ compiler
  11462. case `$CC -V` in
  11463. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11464. prelink_cmds_CXX='tpldir=Template.dir~
  11465. rm -rf $tpldir~
  11466. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11467. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11468. old_archive_cmds_CXX='tpldir=Template.dir~
  11469. rm -rf $tpldir~
  11470. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11471. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11472. $RANLIB $oldlib'
  11473. archive_cmds_CXX='tpldir=Template.dir~
  11474. rm -rf $tpldir~
  11475. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11476. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11477. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11478. rm -rf $tpldir~
  11479. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11480. $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'
  11481. ;;
  11482. *) # Version 6 and above use weak symbols
  11483. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11484. 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'
  11485. ;;
  11486. esac
  11487. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11488. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11489. 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'
  11490. ;;
  11491. cxx*)
  11492. # Compaq C++
  11493. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11494. 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'
  11495. runpath_var=LD_RUN_PATH
  11496. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11497. hardcode_libdir_separator_CXX=:
  11498. # Commands to make compiler produce verbose output that lists
  11499. # what "hidden" libraries, object files and flags are used when
  11500. # linking a shared library.
  11501. #
  11502. # There doesn't appear to be a way to prevent this compiler from
  11503. # explicitly linking system object files so we need to strip them
  11504. # from the output so that they don't get included in the library
  11505. # dependencies.
  11506. 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'
  11507. ;;
  11508. xl* | mpixl* | bgxl*)
  11509. # IBM XL 8.0 on PPC, with GNU ld
  11510. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11511. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11512. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11513. if test "x$supports_anon_versioning" = xyes; then
  11514. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11515. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11516. echo "local: *; };" >> $output_objdir/$libname.ver~
  11517. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11518. fi
  11519. ;;
  11520. *)
  11521. case `$CC -V 2>&1 | sed 5q` in
  11522. *Sun\ C*)
  11523. # Sun C++ 5.9
  11524. no_undefined_flag_CXX=' -zdefs'
  11525. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11526. 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'
  11527. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11528. 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'
  11529. compiler_needs_object_CXX=yes
  11530. # Not sure whether something based on
  11531. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11532. # would be better.
  11533. output_verbose_link_cmd='func_echo_all'
  11534. # Archives containing C++ object files must be created using
  11535. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11536. # necessary to make sure instantiated templates are included
  11537. # in the archive.
  11538. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11539. ;;
  11540. esac
  11541. ;;
  11542. esac
  11543. ;;
  11544. lynxos*)
  11545. # FIXME: insert proper C++ library support
  11546. ld_shlibs_CXX=no
  11547. ;;
  11548. m88k*)
  11549. # FIXME: insert proper C++ library support
  11550. ld_shlibs_CXX=no
  11551. ;;
  11552. mvs*)
  11553. case $cc_basename in
  11554. cxx*)
  11555. # FIXME: insert proper C++ library support
  11556. ld_shlibs_CXX=no
  11557. ;;
  11558. *)
  11559. # FIXME: insert proper C++ library support
  11560. ld_shlibs_CXX=no
  11561. ;;
  11562. esac
  11563. ;;
  11564. netbsd*)
  11565. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11566. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11567. wlarc=
  11568. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11569. hardcode_direct_CXX=yes
  11570. hardcode_shlibpath_var_CXX=no
  11571. fi
  11572. # Workaround some broken pre-1.5 toolchains
  11573. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11574. ;;
  11575. *nto* | *qnx*)
  11576. ld_shlibs_CXX=yes
  11577. ;;
  11578. openbsd2*)
  11579. # C++ shared libraries are fairly broken
  11580. ld_shlibs_CXX=no
  11581. ;;
  11582. openbsd*)
  11583. if test -f /usr/libexec/ld.so; then
  11584. hardcode_direct_CXX=yes
  11585. hardcode_shlibpath_var_CXX=no
  11586. hardcode_direct_absolute_CXX=yes
  11587. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11588. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11589. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11590. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11591. export_dynamic_flag_spec_CXX='${wl}-E'
  11592. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11593. fi
  11594. output_verbose_link_cmd=func_echo_all
  11595. else
  11596. ld_shlibs_CXX=no
  11597. fi
  11598. ;;
  11599. osf3* | osf4* | osf5*)
  11600. case $cc_basename in
  11601. KCC*)
  11602. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11603. # KCC will only create a shared library if the output file
  11604. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11605. # to its proper name (with version) after linking.
  11606. 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'
  11607. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11608. hardcode_libdir_separator_CXX=:
  11609. # Archives containing C++ object files must be created using
  11610. # the KAI C++ compiler.
  11611. case $host in
  11612. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11613. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11614. esac
  11615. ;;
  11616. RCC*)
  11617. # Rational C++ 2.4.1
  11618. # FIXME: insert proper C++ library support
  11619. ld_shlibs_CXX=no
  11620. ;;
  11621. cxx*)
  11622. case $host in
  11623. osf3*)
  11624. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11625. 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'
  11626. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11627. ;;
  11628. *)
  11629. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11630. 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'
  11631. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11632. echo "-hidden">> $lib.exp~
  11633. $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~
  11634. $RM $lib.exp'
  11635. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11636. ;;
  11637. esac
  11638. hardcode_libdir_separator_CXX=:
  11639. # Commands to make compiler produce verbose output that lists
  11640. # what "hidden" libraries, object files and flags are used when
  11641. # linking a shared library.
  11642. #
  11643. # There doesn't appear to be a way to prevent this compiler from
  11644. # explicitly linking system object files so we need to strip them
  11645. # from the output so that they don't get included in the library
  11646. # dependencies.
  11647. 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"'
  11648. ;;
  11649. *)
  11650. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11651. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11652. case $host in
  11653. osf3*)
  11654. 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'
  11655. ;;
  11656. *)
  11657. 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'
  11658. ;;
  11659. esac
  11660. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11661. hardcode_libdir_separator_CXX=:
  11662. # Commands to make compiler produce verbose output that lists
  11663. # what "hidden" libraries, object files and flags are used when
  11664. # linking a shared library.
  11665. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11666. else
  11667. # FIXME: insert proper C++ library support
  11668. ld_shlibs_CXX=no
  11669. fi
  11670. ;;
  11671. esac
  11672. ;;
  11673. psos*)
  11674. # FIXME: insert proper C++ library support
  11675. ld_shlibs_CXX=no
  11676. ;;
  11677. sunos4*)
  11678. case $cc_basename in
  11679. CC*)
  11680. # Sun C++ 4.x
  11681. # FIXME: insert proper C++ library support
  11682. ld_shlibs_CXX=no
  11683. ;;
  11684. lcc*)
  11685. # Lucid
  11686. # FIXME: insert proper C++ library support
  11687. ld_shlibs_CXX=no
  11688. ;;
  11689. *)
  11690. # FIXME: insert proper C++ library support
  11691. ld_shlibs_CXX=no
  11692. ;;
  11693. esac
  11694. ;;
  11695. solaris*)
  11696. case $cc_basename in
  11697. CC* | sunCC*)
  11698. # Sun C++ 4.2, 5.x and Centerline C++
  11699. archive_cmds_need_lc_CXX=yes
  11700. no_undefined_flag_CXX=' -zdefs'
  11701. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11702. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11703. $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'
  11704. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11705. hardcode_shlibpath_var_CXX=no
  11706. case $host_os in
  11707. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11708. *)
  11709. # The compiler driver will combine and reorder linker options,
  11710. # but understands `-z linker_flag'.
  11711. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11712. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11713. ;;
  11714. esac
  11715. link_all_deplibs_CXX=yes
  11716. output_verbose_link_cmd='func_echo_all'
  11717. # Archives containing C++ object files must be created using
  11718. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11719. # necessary to make sure instantiated templates are included
  11720. # in the archive.
  11721. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11722. ;;
  11723. gcx*)
  11724. # Green Hills C++ Compiler
  11725. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11726. # The C++ compiler must be used to create the archive.
  11727. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11728. ;;
  11729. *)
  11730. # GNU C++ compiler with Solaris linker
  11731. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11732. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11733. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11734. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11735. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11736. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11737. # Commands to make compiler produce verbose output that lists
  11738. # what "hidden" libraries, object files and flags are used when
  11739. # linking a shared library.
  11740. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11741. else
  11742. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11743. # platform.
  11744. archive_cmds_CXX='$CC -G -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 -G -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 -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11751. fi
  11752. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11753. case $host_os in
  11754. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11755. *)
  11756. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11757. ;;
  11758. esac
  11759. fi
  11760. ;;
  11761. esac
  11762. ;;
  11763. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11764. no_undefined_flag_CXX='${wl}-z,text'
  11765. archive_cmds_need_lc_CXX=no
  11766. hardcode_shlibpath_var_CXX=no
  11767. runpath_var='LD_RUN_PATH'
  11768. case $cc_basename in
  11769. CC*)
  11770. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11771. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11772. ;;
  11773. *)
  11774. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11775. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11776. ;;
  11777. esac
  11778. ;;
  11779. sysv5* | sco3.2v5* | sco5v6*)
  11780. # Note: We can NOT use -z defs as we might desire, because we do not
  11781. # link with -lc, and that would cause any symbols used from libc to
  11782. # always be unresolved, which means just about no library would
  11783. # ever link correctly. If we're not using GNU ld we use -z text
  11784. # though, which does catch some bad symbols but isn't as heavy-handed
  11785. # as -z defs.
  11786. no_undefined_flag_CXX='${wl}-z,text'
  11787. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11788. archive_cmds_need_lc_CXX=no
  11789. hardcode_shlibpath_var_CXX=no
  11790. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11791. hardcode_libdir_separator_CXX=':'
  11792. link_all_deplibs_CXX=yes
  11793. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11794. runpath_var='LD_RUN_PATH'
  11795. case $cc_basename in
  11796. CC*)
  11797. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11798. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11799. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11800. '"$old_archive_cmds_CXX"
  11801. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11802. '"$reload_cmds_CXX"
  11803. ;;
  11804. *)
  11805. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11806. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11807. ;;
  11808. esac
  11809. ;;
  11810. tandem*)
  11811. case $cc_basename in
  11812. NCC*)
  11813. # NonStop-UX NCC 3.20
  11814. # FIXME: insert proper C++ library support
  11815. ld_shlibs_CXX=no
  11816. ;;
  11817. *)
  11818. # FIXME: insert proper C++ library support
  11819. ld_shlibs_CXX=no
  11820. ;;
  11821. esac
  11822. ;;
  11823. vxworks*)
  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. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11833. $as_echo "$ld_shlibs_CXX" >&6; }
  11834. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11835. GCC_CXX="$GXX"
  11836. LD_CXX="$LD"
  11837. ## CAVEAT EMPTOR:
  11838. ## There is no encapsulation within the following macros, do not change
  11839. ## the running order or otherwise move them around unless you know exactly
  11840. ## what you are doing...
  11841. # Dependencies to place before and after the object being linked:
  11842. predep_objects_CXX=
  11843. postdep_objects_CXX=
  11844. predeps_CXX=
  11845. postdeps_CXX=
  11846. compiler_lib_search_path_CXX=
  11847. cat > conftest.$ac_ext <<_LT_EOF
  11848. class Foo
  11849. {
  11850. public:
  11851. Foo (void) { a = 0; }
  11852. private:
  11853. int a;
  11854. };
  11855. _LT_EOF
  11856. _lt_libdeps_save_CFLAGS=$CFLAGS
  11857. case "$CC $CFLAGS " in #(
  11858. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11859. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11860. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11861. esac
  11862. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11863. (eval $ac_compile) 2>&5
  11864. ac_status=$?
  11865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11866. test $ac_status = 0; }; then
  11867. # Parse the compiler output and extract the necessary
  11868. # objects, libraries and library flags.
  11869. # Sentinel used to keep track of whether or not we are before
  11870. # the conftest object file.
  11871. pre_test_object_deps_done=no
  11872. for p in `eval "$output_verbose_link_cmd"`; do
  11873. case ${prev}${p} in
  11874. -L* | -R* | -l*)
  11875. # Some compilers place space between "-{L,R}" and the path.
  11876. # Remove the space.
  11877. if test $p = "-L" ||
  11878. test $p = "-R"; then
  11879. prev=$p
  11880. continue
  11881. fi
  11882. # Expand the sysroot to ease extracting the directories later.
  11883. if test -z "$prev"; then
  11884. case $p in
  11885. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11886. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11887. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11888. esac
  11889. fi
  11890. case $p in
  11891. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11892. esac
  11893. if test "$pre_test_object_deps_done" = no; then
  11894. case ${prev} in
  11895. -L | -R)
  11896. # Internal compiler library paths should come after those
  11897. # provided the user. The postdeps already come after the
  11898. # user supplied libs so there is no need to process them.
  11899. if test -z "$compiler_lib_search_path_CXX"; then
  11900. compiler_lib_search_path_CXX="${prev}${p}"
  11901. else
  11902. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11903. fi
  11904. ;;
  11905. # The "-l" case would never come before the object being
  11906. # linked, so don't bother handling this case.
  11907. esac
  11908. else
  11909. if test -z "$postdeps_CXX"; then
  11910. postdeps_CXX="${prev}${p}"
  11911. else
  11912. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11913. fi
  11914. fi
  11915. prev=
  11916. ;;
  11917. *.lto.$objext) ;; # Ignore GCC LTO objects
  11918. *.$objext)
  11919. # This assumes that the test object file only shows up
  11920. # once in the compiler output.
  11921. if test "$p" = "conftest.$objext"; then
  11922. pre_test_object_deps_done=yes
  11923. continue
  11924. fi
  11925. if test "$pre_test_object_deps_done" = no; then
  11926. if test -z "$predep_objects_CXX"; then
  11927. predep_objects_CXX="$p"
  11928. else
  11929. predep_objects_CXX="$predep_objects_CXX $p"
  11930. fi
  11931. else
  11932. if test -z "$postdep_objects_CXX"; then
  11933. postdep_objects_CXX="$p"
  11934. else
  11935. postdep_objects_CXX="$postdep_objects_CXX $p"
  11936. fi
  11937. fi
  11938. ;;
  11939. *) ;; # Ignore the rest.
  11940. esac
  11941. done
  11942. # Clean up.
  11943. rm -f a.out a.exe
  11944. else
  11945. echo "libtool.m4: error: problem compiling CXX test program"
  11946. fi
  11947. $RM -f confest.$objext
  11948. CFLAGS=$_lt_libdeps_save_CFLAGS
  11949. # PORTME: override above test on systems where it is broken
  11950. case $host_os in
  11951. interix[3-9]*)
  11952. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11953. # hack all around it, let's just trust "g++" to DTRT.
  11954. predep_objects_CXX=
  11955. postdep_objects_CXX=
  11956. postdeps_CXX=
  11957. ;;
  11958. linux*)
  11959. case `$CC -V 2>&1 | sed 5q` in
  11960. *Sun\ C*)
  11961. # Sun C++ 5.9
  11962. # The more standards-conforming stlport4 library is
  11963. # incompatible with the Cstd library. Avoid specifying
  11964. # it if it's in CXXFLAGS. Ignore libCrun as
  11965. # -library=stlport4 depends on it.
  11966. case " $CXX $CXXFLAGS " in
  11967. *" -library=stlport4 "*)
  11968. solaris_use_stlport4=yes
  11969. ;;
  11970. esac
  11971. if test "$solaris_use_stlport4" != yes; then
  11972. postdeps_CXX='-library=Cstd -library=Crun'
  11973. fi
  11974. ;;
  11975. esac
  11976. ;;
  11977. solaris*)
  11978. case $cc_basename in
  11979. CC* | sunCC*)
  11980. # The more standards-conforming stlport4 library is
  11981. # incompatible with the Cstd library. Avoid specifying
  11982. # it if it's in CXXFLAGS. Ignore libCrun as
  11983. # -library=stlport4 depends on it.
  11984. case " $CXX $CXXFLAGS " in
  11985. *" -library=stlport4 "*)
  11986. solaris_use_stlport4=yes
  11987. ;;
  11988. esac
  11989. # Adding this requires a known-good setup of shared libraries for
  11990. # Sun compiler versions before 5.6, else PIC objects from an old
  11991. # archive will be linked into the output, leading to subtle bugs.
  11992. if test "$solaris_use_stlport4" != yes; then
  11993. postdeps_CXX='-library=Cstd -library=Crun'
  11994. fi
  11995. ;;
  11996. esac
  11997. ;;
  11998. esac
  11999. case " $postdeps_CXX " in
  12000. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12001. esac
  12002. compiler_lib_search_dirs_CXX=
  12003. if test -n "${compiler_lib_search_path_CXX}"; then
  12004. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12005. fi
  12006. lt_prog_compiler_wl_CXX=
  12007. lt_prog_compiler_pic_CXX=
  12008. lt_prog_compiler_static_CXX=
  12009. # C++ specific cases for pic, static, wl, etc.
  12010. if test "$GXX" = yes; then
  12011. lt_prog_compiler_wl_CXX='-Wl,'
  12012. lt_prog_compiler_static_CXX='-static'
  12013. case $host_os in
  12014. aix*)
  12015. # All AIX code is PIC.
  12016. if test "$host_cpu" = ia64; then
  12017. # AIX 5 now supports IA64 processor
  12018. lt_prog_compiler_static_CXX='-Bstatic'
  12019. fi
  12020. ;;
  12021. amigaos*)
  12022. case $host_cpu in
  12023. powerpc)
  12024. # see comment about AmigaOS4 .so support
  12025. lt_prog_compiler_pic_CXX='-fPIC'
  12026. ;;
  12027. m68k)
  12028. # FIXME: we need at least 68020 code to build shared libraries, but
  12029. # adding the `-m68020' flag to GCC prevents building anything better,
  12030. # like `-m68040'.
  12031. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12032. ;;
  12033. esac
  12034. ;;
  12035. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12036. # PIC is the default for these OSes.
  12037. ;;
  12038. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12039. # This hack is so that the source file can tell whether it is being
  12040. # built for inclusion in a dll (and should export symbols for example).
  12041. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12042. # (--disable-auto-import) libraries
  12043. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12044. ;;
  12045. darwin* | rhapsody*)
  12046. # PIC is the default on this platform
  12047. # Common symbols not allowed in MH_DYLIB files
  12048. lt_prog_compiler_pic_CXX='-fno-common'
  12049. ;;
  12050. *djgpp*)
  12051. # DJGPP does not support shared libraries at all
  12052. lt_prog_compiler_pic_CXX=
  12053. ;;
  12054. haiku*)
  12055. # PIC is the default for Haiku.
  12056. # The "-static" flag exists, but is broken.
  12057. lt_prog_compiler_static_CXX=
  12058. ;;
  12059. interix[3-9]*)
  12060. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12061. # Instead, we relocate shared libraries at runtime.
  12062. ;;
  12063. sysv4*MP*)
  12064. if test -d /usr/nec; then
  12065. lt_prog_compiler_pic_CXX=-Kconform_pic
  12066. fi
  12067. ;;
  12068. hpux*)
  12069. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12070. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12071. # sets the default TLS model and affects inlining.
  12072. case $host_cpu in
  12073. hppa*64*)
  12074. ;;
  12075. *)
  12076. lt_prog_compiler_pic_CXX='-fPIC'
  12077. ;;
  12078. esac
  12079. ;;
  12080. *qnx* | *nto*)
  12081. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12082. # it will coredump.
  12083. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12084. ;;
  12085. *)
  12086. lt_prog_compiler_pic_CXX='-fPIC'
  12087. ;;
  12088. esac
  12089. else
  12090. case $host_os in
  12091. aix[4-9]*)
  12092. # All AIX code is PIC.
  12093. if test "$host_cpu" = ia64; then
  12094. # AIX 5 now supports IA64 processor
  12095. lt_prog_compiler_static_CXX='-Bstatic'
  12096. else
  12097. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12098. fi
  12099. ;;
  12100. chorus*)
  12101. case $cc_basename in
  12102. cxch68*)
  12103. # Green Hills C++ Compiler
  12104. # _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"
  12105. ;;
  12106. esac
  12107. ;;
  12108. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12109. # This hack is so that the source file can tell whether it is being
  12110. # built for inclusion in a dll (and should export symbols for example).
  12111. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12112. ;;
  12113. dgux*)
  12114. case $cc_basename in
  12115. ec++*)
  12116. lt_prog_compiler_pic_CXX='-KPIC'
  12117. ;;
  12118. ghcx*)
  12119. # Green Hills C++ Compiler
  12120. lt_prog_compiler_pic_CXX='-pic'
  12121. ;;
  12122. *)
  12123. ;;
  12124. esac
  12125. ;;
  12126. freebsd* | dragonfly*)
  12127. # FreeBSD uses GNU C++
  12128. ;;
  12129. hpux9* | hpux10* | hpux11*)
  12130. case $cc_basename in
  12131. CC*)
  12132. lt_prog_compiler_wl_CXX='-Wl,'
  12133. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12134. if test "$host_cpu" != ia64; then
  12135. lt_prog_compiler_pic_CXX='+Z'
  12136. fi
  12137. ;;
  12138. aCC*)
  12139. lt_prog_compiler_wl_CXX='-Wl,'
  12140. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12141. case $host_cpu in
  12142. hppa*64*|ia64*)
  12143. # +Z the default
  12144. ;;
  12145. *)
  12146. lt_prog_compiler_pic_CXX='+Z'
  12147. ;;
  12148. esac
  12149. ;;
  12150. *)
  12151. ;;
  12152. esac
  12153. ;;
  12154. interix*)
  12155. # This is c89, which is MS Visual C++ (no shared libs)
  12156. # Anyone wants to do a port?
  12157. ;;
  12158. irix5* | irix6* | nonstopux*)
  12159. case $cc_basename in
  12160. CC*)
  12161. lt_prog_compiler_wl_CXX='-Wl,'
  12162. lt_prog_compiler_static_CXX='-non_shared'
  12163. # CC pic flag -KPIC is the default.
  12164. ;;
  12165. *)
  12166. ;;
  12167. esac
  12168. ;;
  12169. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12170. case $cc_basename in
  12171. KCC*)
  12172. # KAI C++ Compiler
  12173. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12174. lt_prog_compiler_pic_CXX='-fPIC'
  12175. ;;
  12176. ecpc* )
  12177. # old Intel C++ for x86_64 which still supported -KPIC.
  12178. lt_prog_compiler_wl_CXX='-Wl,'
  12179. lt_prog_compiler_pic_CXX='-KPIC'
  12180. lt_prog_compiler_static_CXX='-static'
  12181. ;;
  12182. icpc* )
  12183. # Intel C++, used to be incompatible with GCC.
  12184. # ICC 10 doesn't accept -KPIC any more.
  12185. lt_prog_compiler_wl_CXX='-Wl,'
  12186. lt_prog_compiler_pic_CXX='-fPIC'
  12187. lt_prog_compiler_static_CXX='-static'
  12188. ;;
  12189. pgCC* | pgcpp*)
  12190. # Portland Group C++ compiler
  12191. lt_prog_compiler_wl_CXX='-Wl,'
  12192. lt_prog_compiler_pic_CXX='-fpic'
  12193. lt_prog_compiler_static_CXX='-Bstatic'
  12194. ;;
  12195. cxx*)
  12196. # Compaq C++
  12197. # Make sure the PIC flag is empty. It appears that all Alpha
  12198. # Linux and Compaq Tru64 Unix objects are PIC.
  12199. lt_prog_compiler_pic_CXX=
  12200. lt_prog_compiler_static_CXX='-non_shared'
  12201. ;;
  12202. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12203. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12204. lt_prog_compiler_wl_CXX='-Wl,'
  12205. lt_prog_compiler_pic_CXX='-qpic'
  12206. lt_prog_compiler_static_CXX='-qstaticlink'
  12207. ;;
  12208. *)
  12209. case `$CC -V 2>&1 | sed 5q` in
  12210. *Sun\ C*)
  12211. # Sun C++ 5.9
  12212. lt_prog_compiler_pic_CXX='-KPIC'
  12213. lt_prog_compiler_static_CXX='-Bstatic'
  12214. lt_prog_compiler_wl_CXX='-Qoption ld '
  12215. ;;
  12216. esac
  12217. ;;
  12218. esac
  12219. ;;
  12220. lynxos*)
  12221. ;;
  12222. m88k*)
  12223. ;;
  12224. mvs*)
  12225. case $cc_basename in
  12226. cxx*)
  12227. lt_prog_compiler_pic_CXX='-W c,exportall'
  12228. ;;
  12229. *)
  12230. ;;
  12231. esac
  12232. ;;
  12233. netbsd*)
  12234. ;;
  12235. *qnx* | *nto*)
  12236. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12237. # it will coredump.
  12238. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12239. ;;
  12240. osf3* | osf4* | osf5*)
  12241. case $cc_basename in
  12242. KCC*)
  12243. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12244. ;;
  12245. RCC*)
  12246. # Rational C++ 2.4.1
  12247. lt_prog_compiler_pic_CXX='-pic'
  12248. ;;
  12249. cxx*)
  12250. # Digital/Compaq C++
  12251. lt_prog_compiler_wl_CXX='-Wl,'
  12252. # Make sure the PIC flag is empty. It appears that all Alpha
  12253. # Linux and Compaq Tru64 Unix objects are PIC.
  12254. lt_prog_compiler_pic_CXX=
  12255. lt_prog_compiler_static_CXX='-non_shared'
  12256. ;;
  12257. *)
  12258. ;;
  12259. esac
  12260. ;;
  12261. psos*)
  12262. ;;
  12263. solaris*)
  12264. case $cc_basename in
  12265. CC* | sunCC*)
  12266. # Sun C++ 4.2, 5.x and Centerline C++
  12267. lt_prog_compiler_pic_CXX='-KPIC'
  12268. lt_prog_compiler_static_CXX='-Bstatic'
  12269. lt_prog_compiler_wl_CXX='-Qoption ld '
  12270. ;;
  12271. gcx*)
  12272. # Green Hills C++ Compiler
  12273. lt_prog_compiler_pic_CXX='-PIC'
  12274. ;;
  12275. *)
  12276. ;;
  12277. esac
  12278. ;;
  12279. sunos4*)
  12280. case $cc_basename in
  12281. CC*)
  12282. # Sun C++ 4.x
  12283. lt_prog_compiler_pic_CXX='-pic'
  12284. lt_prog_compiler_static_CXX='-Bstatic'
  12285. ;;
  12286. lcc*)
  12287. # Lucid
  12288. lt_prog_compiler_pic_CXX='-pic'
  12289. ;;
  12290. *)
  12291. ;;
  12292. esac
  12293. ;;
  12294. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12295. case $cc_basename in
  12296. CC*)
  12297. lt_prog_compiler_wl_CXX='-Wl,'
  12298. lt_prog_compiler_pic_CXX='-KPIC'
  12299. lt_prog_compiler_static_CXX='-Bstatic'
  12300. ;;
  12301. esac
  12302. ;;
  12303. tandem*)
  12304. case $cc_basename in
  12305. NCC*)
  12306. # NonStop-UX NCC 3.20
  12307. lt_prog_compiler_pic_CXX='-KPIC'
  12308. ;;
  12309. *)
  12310. ;;
  12311. esac
  12312. ;;
  12313. vxworks*)
  12314. ;;
  12315. *)
  12316. lt_prog_compiler_can_build_shared_CXX=no
  12317. ;;
  12318. esac
  12319. fi
  12320. case $host_os in
  12321. # For platforms which do not support PIC, -DPIC is meaningless:
  12322. *djgpp*)
  12323. lt_prog_compiler_pic_CXX=
  12324. ;;
  12325. *)
  12326. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12327. ;;
  12328. esac
  12329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12330. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12331. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12332. $as_echo_n "(cached) " >&6
  12333. else
  12334. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12335. fi
  12336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12337. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12338. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12339. #
  12340. # Check to make sure the PIC flag actually works.
  12341. #
  12342. if test -n "$lt_prog_compiler_pic_CXX"; then
  12343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12344. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12345. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12346. $as_echo_n "(cached) " >&6
  12347. else
  12348. lt_cv_prog_compiler_pic_works_CXX=no
  12349. ac_outfile=conftest.$ac_objext
  12350. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12351. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12352. # Insert the option either (1) after the last *FLAGS variable, or
  12353. # (2) before a word containing "conftest.", or (3) at the end.
  12354. # Note that $ac_compile itself does not contain backslashes and begins
  12355. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12356. # The option is referenced via a variable to avoid confusing sed.
  12357. lt_compile=`echo "$ac_compile" | $SED \
  12358. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12359. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12360. -e 's:$: $lt_compiler_flag:'`
  12361. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12362. (eval "$lt_compile" 2>conftest.err)
  12363. ac_status=$?
  12364. cat conftest.err >&5
  12365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12366. if (exit $ac_status) && test -s "$ac_outfile"; then
  12367. # The compiler can only warn and ignore the option if not recognized
  12368. # So say no if there are warnings other than the usual output.
  12369. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12370. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12371. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12372. lt_cv_prog_compiler_pic_works_CXX=yes
  12373. fi
  12374. fi
  12375. $RM conftest*
  12376. fi
  12377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12378. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12379. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12380. case $lt_prog_compiler_pic_CXX in
  12381. "" | " "*) ;;
  12382. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12383. esac
  12384. else
  12385. lt_prog_compiler_pic_CXX=
  12386. lt_prog_compiler_can_build_shared_CXX=no
  12387. fi
  12388. fi
  12389. #
  12390. # Check to make sure the static flag actually works.
  12391. #
  12392. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12394. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12395. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12396. $as_echo_n "(cached) " >&6
  12397. else
  12398. lt_cv_prog_compiler_static_works_CXX=no
  12399. save_LDFLAGS="$LDFLAGS"
  12400. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12401. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12402. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12403. # The linker can only warn and ignore the option if not recognized
  12404. # So say no if there are warnings
  12405. if test -s conftest.err; then
  12406. # Append any errors to the config.log.
  12407. cat conftest.err 1>&5
  12408. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12409. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12410. if diff conftest.exp conftest.er2 >/dev/null; then
  12411. lt_cv_prog_compiler_static_works_CXX=yes
  12412. fi
  12413. else
  12414. lt_cv_prog_compiler_static_works_CXX=yes
  12415. fi
  12416. fi
  12417. $RM -r conftest*
  12418. LDFLAGS="$save_LDFLAGS"
  12419. fi
  12420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12421. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12422. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12423. :
  12424. else
  12425. lt_prog_compiler_static_CXX=
  12426. fi
  12427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12428. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12429. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12430. $as_echo_n "(cached) " >&6
  12431. else
  12432. lt_cv_prog_compiler_c_o_CXX=no
  12433. $RM -r conftest 2>/dev/null
  12434. mkdir conftest
  12435. cd conftest
  12436. mkdir out
  12437. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12438. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12439. # Insert the option either (1) after the last *FLAGS variable, or
  12440. # (2) before a word containing "conftest.", or (3) at the end.
  12441. # Note that $ac_compile itself does not contain backslashes and begins
  12442. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12443. lt_compile=`echo "$ac_compile" | $SED \
  12444. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12445. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12446. -e 's:$: $lt_compiler_flag:'`
  12447. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12448. (eval "$lt_compile" 2>out/conftest.err)
  12449. ac_status=$?
  12450. cat out/conftest.err >&5
  12451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12452. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12453. then
  12454. # The compiler can only warn and ignore the option if not recognized
  12455. # So say no if there are warnings
  12456. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12457. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12458. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12459. lt_cv_prog_compiler_c_o_CXX=yes
  12460. fi
  12461. fi
  12462. chmod u+w . 2>&5
  12463. $RM conftest*
  12464. # SGI C++ compiler will create directory out/ii_files/ for
  12465. # template instantiation
  12466. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12467. $RM out/* && rmdir out
  12468. cd ..
  12469. $RM -r conftest
  12470. $RM conftest*
  12471. fi
  12472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12473. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12475. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12476. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12477. $as_echo_n "(cached) " >&6
  12478. else
  12479. lt_cv_prog_compiler_c_o_CXX=no
  12480. $RM -r conftest 2>/dev/null
  12481. mkdir conftest
  12482. cd conftest
  12483. mkdir out
  12484. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12485. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12486. # Insert the option either (1) after the last *FLAGS variable, or
  12487. # (2) before a word containing "conftest.", or (3) at the end.
  12488. # Note that $ac_compile itself does not contain backslashes and begins
  12489. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12490. lt_compile=`echo "$ac_compile" | $SED \
  12491. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12492. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12493. -e 's:$: $lt_compiler_flag:'`
  12494. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12495. (eval "$lt_compile" 2>out/conftest.err)
  12496. ac_status=$?
  12497. cat out/conftest.err >&5
  12498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12499. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12500. then
  12501. # The compiler can only warn and ignore the option if not recognized
  12502. # So say no if there are warnings
  12503. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12504. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12505. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12506. lt_cv_prog_compiler_c_o_CXX=yes
  12507. fi
  12508. fi
  12509. chmod u+w . 2>&5
  12510. $RM conftest*
  12511. # SGI C++ compiler will create directory out/ii_files/ for
  12512. # template instantiation
  12513. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12514. $RM out/* && rmdir out
  12515. cd ..
  12516. $RM -r conftest
  12517. $RM conftest*
  12518. fi
  12519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12520. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12521. hard_links="nottested"
  12522. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12523. # do not overwrite the value of need_locks provided by the user
  12524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12525. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12526. hard_links=yes
  12527. $RM conftest*
  12528. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12529. touch conftest.a
  12530. ln conftest.a conftest.b 2>&5 || hard_links=no
  12531. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12533. $as_echo "$hard_links" >&6; }
  12534. if test "$hard_links" = no; then
  12535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12536. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12537. need_locks=warn
  12538. fi
  12539. else
  12540. need_locks=no
  12541. fi
  12542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12543. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12544. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12545. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12546. case $host_os in
  12547. aix[4-9]*)
  12548. # If we're using GNU nm, then we don't want the "-C" option.
  12549. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12550. # Also, AIX nm treats weak defined symbols like other global defined
  12551. # symbols, whereas GNU nm marks them as "W".
  12552. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12553. 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'
  12554. else
  12555. 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'
  12556. fi
  12557. ;;
  12558. pw32*)
  12559. export_symbols_cmds_CXX="$ltdll_cmds"
  12560. ;;
  12561. cygwin* | mingw* | cegcc*)
  12562. case $cc_basename in
  12563. cl*)
  12564. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12565. ;;
  12566. *)
  12567. 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'
  12568. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12569. ;;
  12570. esac
  12571. ;;
  12572. *)
  12573. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12574. ;;
  12575. esac
  12576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12577. $as_echo "$ld_shlibs_CXX" >&6; }
  12578. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12579. with_gnu_ld_CXX=$with_gnu_ld
  12580. #
  12581. # Do we need to explicitly link libc?
  12582. #
  12583. case "x$archive_cmds_need_lc_CXX" in
  12584. x|xyes)
  12585. # Assume -lc should be added
  12586. archive_cmds_need_lc_CXX=yes
  12587. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12588. case $archive_cmds_CXX in
  12589. *'~'*)
  12590. # FIXME: we may have to deal with multi-command sequences.
  12591. ;;
  12592. '$CC '*)
  12593. # Test whether the compiler implicitly links with -lc since on some
  12594. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12595. # to ld, don't add -lc before -lgcc.
  12596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12597. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12598. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12599. $as_echo_n "(cached) " >&6
  12600. else
  12601. $RM conftest*
  12602. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12603. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12604. (eval $ac_compile) 2>&5
  12605. ac_status=$?
  12606. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12607. test $ac_status = 0; } 2>conftest.err; then
  12608. soname=conftest
  12609. lib=conftest
  12610. libobjs=conftest.$ac_objext
  12611. deplibs=
  12612. wl=$lt_prog_compiler_wl_CXX
  12613. pic_flag=$lt_prog_compiler_pic_CXX
  12614. compiler_flags=-v
  12615. linker_flags=-v
  12616. verstring=
  12617. output_objdir=.
  12618. libname=conftest
  12619. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12620. allow_undefined_flag_CXX=
  12621. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12622. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12623. ac_status=$?
  12624. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12625. test $ac_status = 0; }
  12626. then
  12627. lt_cv_archive_cmds_need_lc_CXX=no
  12628. else
  12629. lt_cv_archive_cmds_need_lc_CXX=yes
  12630. fi
  12631. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12632. else
  12633. cat conftest.err 1>&5
  12634. fi
  12635. $RM conftest*
  12636. fi
  12637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12638. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12639. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12640. ;;
  12641. esac
  12642. fi
  12643. ;;
  12644. esac
  12645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12646. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12647. library_names_spec=
  12648. libname_spec='lib$name'
  12649. soname_spec=
  12650. shrext_cmds=".so"
  12651. postinstall_cmds=
  12652. postuninstall_cmds=
  12653. finish_cmds=
  12654. finish_eval=
  12655. shlibpath_var=
  12656. shlibpath_overrides_runpath=unknown
  12657. version_type=none
  12658. dynamic_linker="$host_os ld.so"
  12659. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12660. need_lib_prefix=unknown
  12661. hardcode_into_libs=no
  12662. # when you set need_version to no, make sure it does not cause -set_version
  12663. # flags to be left without arguments
  12664. need_version=unknown
  12665. case $host_os in
  12666. aix3*)
  12667. version_type=linux # correct to gnu/linux during the next big refactor
  12668. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12669. shlibpath_var=LIBPATH
  12670. # AIX 3 has no versioning support, so we append a major version to the name.
  12671. soname_spec='${libname}${release}${shared_ext}$major'
  12672. ;;
  12673. aix[4-9]*)
  12674. version_type=linux # correct to gnu/linux during the next big refactor
  12675. need_lib_prefix=no
  12676. need_version=no
  12677. hardcode_into_libs=yes
  12678. if test "$host_cpu" = ia64; then
  12679. # AIX 5 supports IA64
  12680. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12681. shlibpath_var=LD_LIBRARY_PATH
  12682. else
  12683. # With GCC up to 2.95.x, collect2 would create an import file
  12684. # for dependence libraries. The import file would start with
  12685. # the line `#! .'. This would cause the generated library to
  12686. # depend on `.', always an invalid library. This was fixed in
  12687. # development snapshots of GCC prior to 3.0.
  12688. case $host_os in
  12689. aix4 | aix4.[01] | aix4.[01].*)
  12690. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12691. echo ' yes '
  12692. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12693. :
  12694. else
  12695. can_build_shared=no
  12696. fi
  12697. ;;
  12698. esac
  12699. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12700. # soname into executable. Probably we can add versioning support to
  12701. # collect2, so additional links can be useful in future.
  12702. if test "$aix_use_runtimelinking" = yes; then
  12703. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12704. # instead of lib<name>.a to let people know that these are not
  12705. # typical AIX shared libraries.
  12706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12707. else
  12708. # We preserve .a as extension for shared libraries through AIX4.2
  12709. # and later when we are not doing run time linking.
  12710. library_names_spec='${libname}${release}.a $libname.a'
  12711. soname_spec='${libname}${release}${shared_ext}$major'
  12712. fi
  12713. shlibpath_var=LIBPATH
  12714. fi
  12715. ;;
  12716. amigaos*)
  12717. case $host_cpu in
  12718. powerpc)
  12719. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12720. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12721. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12722. ;;
  12723. m68k)
  12724. library_names_spec='$libname.ixlibrary $libname.a'
  12725. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12726. 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'
  12727. ;;
  12728. esac
  12729. ;;
  12730. beos*)
  12731. library_names_spec='${libname}${shared_ext}'
  12732. dynamic_linker="$host_os ld.so"
  12733. shlibpath_var=LIBRARY_PATH
  12734. ;;
  12735. bsdi[45]*)
  12736. version_type=linux # correct to gnu/linux during the next big refactor
  12737. need_version=no
  12738. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12739. soname_spec='${libname}${release}${shared_ext}$major'
  12740. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12741. shlibpath_var=LD_LIBRARY_PATH
  12742. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12743. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12744. # the default ld.so.conf also contains /usr/contrib/lib and
  12745. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12746. # libtool to hard-code these into programs
  12747. ;;
  12748. cygwin* | mingw* | pw32* | cegcc*)
  12749. version_type=windows
  12750. shrext_cmds=".dll"
  12751. need_version=no
  12752. need_lib_prefix=no
  12753. case $GCC,$cc_basename in
  12754. yes,*)
  12755. # gcc
  12756. library_names_spec='$libname.dll.a'
  12757. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12758. postinstall_cmds='base_file=`basename \${file}`~
  12759. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12760. dldir=$destdir/`dirname \$dlpath`~
  12761. test -d \$dldir || mkdir -p \$dldir~
  12762. $install_prog $dir/$dlname \$dldir/$dlname~
  12763. chmod a+x \$dldir/$dlname~
  12764. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12765. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12766. fi'
  12767. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12768. dlpath=$dir/\$dldll~
  12769. $RM \$dlpath'
  12770. shlibpath_overrides_runpath=yes
  12771. case $host_os in
  12772. cygwin*)
  12773. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12774. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12775. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12776. ;;
  12777. mingw* | cegcc*)
  12778. # MinGW DLLs use traditional 'lib' prefix
  12779. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12780. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12781. ;;
  12782. pw32*)
  12783. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12784. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12785. ;;
  12786. esac
  12787. dynamic_linker='Win32 ld.exe'
  12788. ;;
  12789. *,cl*)
  12790. # Native MSVC
  12791. libname_spec='$name'
  12792. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12793. library_names_spec='${libname}.dll.lib'
  12794. case $build_os in
  12795. mingw*)
  12796. sys_lib_search_path_spec=
  12797. lt_save_ifs=$IFS
  12798. IFS=';'
  12799. for lt_path in $LIB
  12800. do
  12801. IFS=$lt_save_ifs
  12802. # Let DOS variable expansion print the short 8.3 style file name.
  12803. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12804. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12805. done
  12806. IFS=$lt_save_ifs
  12807. # Convert to MSYS style.
  12808. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12809. ;;
  12810. cygwin*)
  12811. # Convert to unix form, then to dos form, then back to unix form
  12812. # but this time dos style (no spaces!) so that the unix form looks
  12813. # like /cygdrive/c/PROGRA~1:/cygdr...
  12814. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12815. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12816. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12817. ;;
  12818. *)
  12819. sys_lib_search_path_spec="$LIB"
  12820. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12821. # It is most probably a Windows format PATH.
  12822. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12823. else
  12824. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12825. fi
  12826. # FIXME: find the short name or the path components, as spaces are
  12827. # common. (e.g. "Program Files" -> "PROGRA~1")
  12828. ;;
  12829. esac
  12830. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12831. postinstall_cmds='base_file=`basename \${file}`~
  12832. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12833. dldir=$destdir/`dirname \$dlpath`~
  12834. test -d \$dldir || mkdir -p \$dldir~
  12835. $install_prog $dir/$dlname \$dldir/$dlname'
  12836. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12837. dlpath=$dir/\$dldll~
  12838. $RM \$dlpath'
  12839. shlibpath_overrides_runpath=yes
  12840. dynamic_linker='Win32 link.exe'
  12841. ;;
  12842. *)
  12843. # Assume MSVC wrapper
  12844. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12845. dynamic_linker='Win32 ld.exe'
  12846. ;;
  12847. esac
  12848. # FIXME: first we should search . and the directory the executable is in
  12849. shlibpath_var=PATH
  12850. ;;
  12851. darwin* | rhapsody*)
  12852. dynamic_linker="$host_os dyld"
  12853. version_type=darwin
  12854. need_lib_prefix=no
  12855. need_version=no
  12856. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12857. soname_spec='${libname}${release}${major}$shared_ext'
  12858. shlibpath_overrides_runpath=yes
  12859. shlibpath_var=DYLD_LIBRARY_PATH
  12860. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12861. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12862. ;;
  12863. dgux*)
  12864. version_type=linux # correct to gnu/linux during the next big refactor
  12865. need_lib_prefix=no
  12866. need_version=no
  12867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12868. soname_spec='${libname}${release}${shared_ext}$major'
  12869. shlibpath_var=LD_LIBRARY_PATH
  12870. ;;
  12871. freebsd* | dragonfly*)
  12872. # DragonFly does not have aout. When/if they implement a new
  12873. # versioning mechanism, adjust this.
  12874. if test -x /usr/bin/objformat; then
  12875. objformat=`/usr/bin/objformat`
  12876. else
  12877. case $host_os in
  12878. freebsd[23].*) objformat=aout ;;
  12879. *) objformat=elf ;;
  12880. esac
  12881. fi
  12882. version_type=freebsd-$objformat
  12883. case $version_type in
  12884. freebsd-elf*)
  12885. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12886. need_version=no
  12887. need_lib_prefix=no
  12888. ;;
  12889. freebsd-*)
  12890. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12891. need_version=yes
  12892. ;;
  12893. esac
  12894. shlibpath_var=LD_LIBRARY_PATH
  12895. case $host_os in
  12896. freebsd2.*)
  12897. shlibpath_overrides_runpath=yes
  12898. ;;
  12899. freebsd3.[01]* | freebsdelf3.[01]*)
  12900. shlibpath_overrides_runpath=yes
  12901. hardcode_into_libs=yes
  12902. ;;
  12903. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12904. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12905. shlibpath_overrides_runpath=no
  12906. hardcode_into_libs=yes
  12907. ;;
  12908. *) # from 4.6 on, and DragonFly
  12909. shlibpath_overrides_runpath=yes
  12910. hardcode_into_libs=yes
  12911. ;;
  12912. esac
  12913. ;;
  12914. gnu*)
  12915. version_type=linux # correct to gnu/linux during the next big refactor
  12916. need_lib_prefix=no
  12917. need_version=no
  12918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12919. soname_spec='${libname}${release}${shared_ext}$major'
  12920. shlibpath_var=LD_LIBRARY_PATH
  12921. shlibpath_overrides_runpath=no
  12922. hardcode_into_libs=yes
  12923. ;;
  12924. haiku*)
  12925. version_type=linux # correct to gnu/linux during the next big refactor
  12926. need_lib_prefix=no
  12927. need_version=no
  12928. dynamic_linker="$host_os runtime_loader"
  12929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12930. soname_spec='${libname}${release}${shared_ext}$major'
  12931. shlibpath_var=LIBRARY_PATH
  12932. shlibpath_overrides_runpath=yes
  12933. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12934. hardcode_into_libs=yes
  12935. ;;
  12936. hpux9* | hpux10* | hpux11*)
  12937. # Give a soname corresponding to the major version so that dld.sl refuses to
  12938. # link against other versions.
  12939. version_type=sunos
  12940. need_lib_prefix=no
  12941. need_version=no
  12942. case $host_cpu in
  12943. ia64*)
  12944. shrext_cmds='.so'
  12945. hardcode_into_libs=yes
  12946. dynamic_linker="$host_os dld.so"
  12947. shlibpath_var=LD_LIBRARY_PATH
  12948. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12949. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12950. soname_spec='${libname}${release}${shared_ext}$major'
  12951. if test "X$HPUX_IA64_MODE" = X32; then
  12952. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12953. else
  12954. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12955. fi
  12956. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12957. ;;
  12958. hppa*64*)
  12959. shrext_cmds='.sl'
  12960. hardcode_into_libs=yes
  12961. dynamic_linker="$host_os dld.sl"
  12962. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12963. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12965. soname_spec='${libname}${release}${shared_ext}$major'
  12966. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12967. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12968. ;;
  12969. *)
  12970. shrext_cmds='.sl'
  12971. dynamic_linker="$host_os dld.sl"
  12972. shlibpath_var=SHLIB_PATH
  12973. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  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. ;;
  12977. esac
  12978. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12979. postinstall_cmds='chmod 555 $lib'
  12980. # or fails outright, so override atomically:
  12981. install_override_mode=555
  12982. ;;
  12983. interix[3-9]*)
  12984. version_type=linux # correct to gnu/linux during the next big refactor
  12985. need_lib_prefix=no
  12986. need_version=no
  12987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12988. soname_spec='${libname}${release}${shared_ext}$major'
  12989. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12990. shlibpath_var=LD_LIBRARY_PATH
  12991. shlibpath_overrides_runpath=no
  12992. hardcode_into_libs=yes
  12993. ;;
  12994. irix5* | irix6* | nonstopux*)
  12995. case $host_os in
  12996. nonstopux*) version_type=nonstopux ;;
  12997. *)
  12998. if test "$lt_cv_prog_gnu_ld" = yes; then
  12999. version_type=linux # correct to gnu/linux during the next big refactor
  13000. else
  13001. version_type=irix
  13002. fi ;;
  13003. esac
  13004. need_lib_prefix=no
  13005. need_version=no
  13006. soname_spec='${libname}${release}${shared_ext}$major'
  13007. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13008. case $host_os in
  13009. irix5* | nonstopux*)
  13010. libsuff= shlibsuff=
  13011. ;;
  13012. *)
  13013. case $LD in # libtool.m4 will add one of these switches to LD
  13014. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13015. libsuff= shlibsuff= libmagic=32-bit;;
  13016. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13017. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13018. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13019. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13020. *) libsuff= shlibsuff= libmagic=never-match;;
  13021. esac
  13022. ;;
  13023. esac
  13024. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13025. shlibpath_overrides_runpath=no
  13026. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13027. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13028. hardcode_into_libs=yes
  13029. ;;
  13030. # No shared lib support for Linux oldld, aout, or coff.
  13031. linux*oldld* | linux*aout* | linux*coff*)
  13032. dynamic_linker=no
  13033. ;;
  13034. # This must be glibc/ELF.
  13035. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13036. version_type=linux # correct to gnu/linux during the next big refactor
  13037. need_lib_prefix=no
  13038. need_version=no
  13039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13040. soname_spec='${libname}${release}${shared_ext}$major'
  13041. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13042. shlibpath_var=LD_LIBRARY_PATH
  13043. shlibpath_overrides_runpath=no
  13044. # Some binutils ld are patched to set DT_RUNPATH
  13045. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13046. $as_echo_n "(cached) " >&6
  13047. else
  13048. lt_cv_shlibpath_overrides_runpath=no
  13049. save_LDFLAGS=$LDFLAGS
  13050. save_libdir=$libdir
  13051. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13052. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13054. /* end confdefs.h. */
  13055. int
  13056. main ()
  13057. {
  13058. ;
  13059. return 0;
  13060. }
  13061. _ACEOF
  13062. if ac_fn_cxx_try_link "$LINENO"; then :
  13063. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13064. lt_cv_shlibpath_overrides_runpath=yes
  13065. fi
  13066. fi
  13067. rm -f core conftest.err conftest.$ac_objext \
  13068. conftest$ac_exeext conftest.$ac_ext
  13069. LDFLAGS=$save_LDFLAGS
  13070. libdir=$save_libdir
  13071. fi
  13072. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13073. # This implies no fast_install, which is unacceptable.
  13074. # Some rework will be needed to allow for fast_install
  13075. # before this can be enabled.
  13076. hardcode_into_libs=yes
  13077. # Append ld.so.conf contents to the search path
  13078. if test -f /etc/ld.so.conf; then
  13079. 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' ' '`
  13080. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13081. fi
  13082. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13083. # powerpc, because MkLinux only supported shared libraries with the
  13084. # GNU dynamic linker. Since this was broken with cross compilers,
  13085. # most powerpc-linux boxes support dynamic linking these days and
  13086. # people can always --disable-shared, the test was removed, and we
  13087. # assume the GNU/Linux dynamic linker is in use.
  13088. dynamic_linker='GNU/Linux ld.so'
  13089. ;;
  13090. netbsd*)
  13091. version_type=sunos
  13092. need_lib_prefix=no
  13093. need_version=no
  13094. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13096. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13097. dynamic_linker='NetBSD (a.out) ld.so'
  13098. else
  13099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13100. soname_spec='${libname}${release}${shared_ext}$major'
  13101. dynamic_linker='NetBSD ld.elf_so'
  13102. fi
  13103. shlibpath_var=LD_LIBRARY_PATH
  13104. shlibpath_overrides_runpath=yes
  13105. hardcode_into_libs=yes
  13106. ;;
  13107. newsos6)
  13108. version_type=linux # correct to gnu/linux during the next big refactor
  13109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13110. shlibpath_var=LD_LIBRARY_PATH
  13111. shlibpath_overrides_runpath=yes
  13112. ;;
  13113. *nto* | *qnx*)
  13114. version_type=qnx
  13115. need_lib_prefix=no
  13116. need_version=no
  13117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13118. soname_spec='${libname}${release}${shared_ext}$major'
  13119. shlibpath_var=LD_LIBRARY_PATH
  13120. shlibpath_overrides_runpath=no
  13121. hardcode_into_libs=yes
  13122. dynamic_linker='ldqnx.so'
  13123. ;;
  13124. openbsd*)
  13125. version_type=sunos
  13126. sys_lib_dlsearch_path_spec="/usr/lib"
  13127. need_lib_prefix=no
  13128. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13129. case $host_os in
  13130. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13131. *) need_version=no ;;
  13132. esac
  13133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13134. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13135. shlibpath_var=LD_LIBRARY_PATH
  13136. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13137. case $host_os in
  13138. openbsd2.[89] | openbsd2.[89].*)
  13139. shlibpath_overrides_runpath=no
  13140. ;;
  13141. *)
  13142. shlibpath_overrides_runpath=yes
  13143. ;;
  13144. esac
  13145. else
  13146. shlibpath_overrides_runpath=yes
  13147. fi
  13148. ;;
  13149. os2*)
  13150. libname_spec='$name'
  13151. shrext_cmds=".dll"
  13152. need_lib_prefix=no
  13153. library_names_spec='$libname${shared_ext} $libname.a'
  13154. dynamic_linker='OS/2 ld.exe'
  13155. shlibpath_var=LIBPATH
  13156. ;;
  13157. osf3* | osf4* | osf5*)
  13158. version_type=osf
  13159. need_lib_prefix=no
  13160. need_version=no
  13161. soname_spec='${libname}${release}${shared_ext}$major'
  13162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13163. shlibpath_var=LD_LIBRARY_PATH
  13164. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13165. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13166. ;;
  13167. rdos*)
  13168. dynamic_linker=no
  13169. ;;
  13170. solaris*)
  13171. version_type=linux # correct to gnu/linux during the next big refactor
  13172. need_lib_prefix=no
  13173. need_version=no
  13174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13175. soname_spec='${libname}${release}${shared_ext}$major'
  13176. shlibpath_var=LD_LIBRARY_PATH
  13177. shlibpath_overrides_runpath=yes
  13178. hardcode_into_libs=yes
  13179. # ldd complains unless libraries are executable
  13180. postinstall_cmds='chmod +x $lib'
  13181. ;;
  13182. sunos4*)
  13183. version_type=sunos
  13184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13185. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13186. shlibpath_var=LD_LIBRARY_PATH
  13187. shlibpath_overrides_runpath=yes
  13188. if test "$with_gnu_ld" = yes; then
  13189. need_lib_prefix=no
  13190. fi
  13191. need_version=yes
  13192. ;;
  13193. sysv4 | sysv4.3*)
  13194. version_type=linux # correct to gnu/linux during the next big refactor
  13195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13196. soname_spec='${libname}${release}${shared_ext}$major'
  13197. shlibpath_var=LD_LIBRARY_PATH
  13198. case $host_vendor in
  13199. sni)
  13200. shlibpath_overrides_runpath=no
  13201. need_lib_prefix=no
  13202. runpath_var=LD_RUN_PATH
  13203. ;;
  13204. siemens)
  13205. need_lib_prefix=no
  13206. ;;
  13207. motorola)
  13208. need_lib_prefix=no
  13209. need_version=no
  13210. shlibpath_overrides_runpath=no
  13211. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13212. ;;
  13213. esac
  13214. ;;
  13215. sysv4*MP*)
  13216. if test -d /usr/nec ;then
  13217. version_type=linux # correct to gnu/linux during the next big refactor
  13218. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13219. soname_spec='$libname${shared_ext}.$major'
  13220. shlibpath_var=LD_LIBRARY_PATH
  13221. fi
  13222. ;;
  13223. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13224. version_type=freebsd-elf
  13225. need_lib_prefix=no
  13226. need_version=no
  13227. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13228. soname_spec='${libname}${release}${shared_ext}$major'
  13229. shlibpath_var=LD_LIBRARY_PATH
  13230. shlibpath_overrides_runpath=yes
  13231. hardcode_into_libs=yes
  13232. if test "$with_gnu_ld" = yes; then
  13233. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13234. else
  13235. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13236. case $host_os in
  13237. sco3.2v5*)
  13238. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13239. ;;
  13240. esac
  13241. fi
  13242. sys_lib_dlsearch_path_spec='/usr/lib'
  13243. ;;
  13244. tpf*)
  13245. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13246. version_type=linux # correct to gnu/linux during the next big refactor
  13247. need_lib_prefix=no
  13248. need_version=no
  13249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13250. shlibpath_var=LD_LIBRARY_PATH
  13251. shlibpath_overrides_runpath=no
  13252. hardcode_into_libs=yes
  13253. ;;
  13254. uts4*)
  13255. version_type=linux # correct to gnu/linux during the next big refactor
  13256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13257. soname_spec='${libname}${release}${shared_ext}$major'
  13258. shlibpath_var=LD_LIBRARY_PATH
  13259. ;;
  13260. *)
  13261. dynamic_linker=no
  13262. ;;
  13263. esac
  13264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13265. $as_echo "$dynamic_linker" >&6; }
  13266. test "$dynamic_linker" = no && can_build_shared=no
  13267. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13268. if test "$GCC" = yes; then
  13269. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13270. fi
  13271. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13272. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13273. fi
  13274. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13275. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13276. fi
  13277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13278. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13279. hardcode_action_CXX=
  13280. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13281. test -n "$runpath_var_CXX" ||
  13282. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13283. # We can hardcode non-existent directories.
  13284. if test "$hardcode_direct_CXX" != no &&
  13285. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13286. # have to relink, otherwise we might link with an installed library
  13287. # when we should be linking with a yet-to-be-installed one
  13288. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13289. test "$hardcode_minus_L_CXX" != no; then
  13290. # Linking always hardcodes the temporary library directory.
  13291. hardcode_action_CXX=relink
  13292. else
  13293. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13294. hardcode_action_CXX=immediate
  13295. fi
  13296. else
  13297. # We cannot hardcode anything, or else we can only hardcode existing
  13298. # directories.
  13299. hardcode_action_CXX=unsupported
  13300. fi
  13301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13302. $as_echo "$hardcode_action_CXX" >&6; }
  13303. if test "$hardcode_action_CXX" = relink ||
  13304. test "$inherit_rpath_CXX" = yes; then
  13305. # Fast installation is not supported
  13306. enable_fast_install=no
  13307. elif test "$shlibpath_overrides_runpath" = yes ||
  13308. test "$enable_shared" = no; then
  13309. # Fast installation is not necessary
  13310. enable_fast_install=needless
  13311. fi
  13312. fi # test -n "$compiler"
  13313. CC=$lt_save_CC
  13314. CFLAGS=$lt_save_CFLAGS
  13315. LDCXX=$LD
  13316. LD=$lt_save_LD
  13317. GCC=$lt_save_GCC
  13318. with_gnu_ld=$lt_save_with_gnu_ld
  13319. lt_cv_path_LDCXX=$lt_cv_path_LD
  13320. lt_cv_path_LD=$lt_save_path_LD
  13321. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13322. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13323. fi # test "$_lt_caught_CXX_error" != yes
  13324. ac_ext=c
  13325. ac_cpp='$CPP $CPPFLAGS'
  13326. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13327. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13328. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13329. # Find a good install program. We prefer a C program (faster),
  13330. # so one script is as good as another. But avoid the broken or
  13331. # incompatible versions:
  13332. # SysV /etc/install, /usr/sbin/install
  13333. # SunOS /usr/etc/install
  13334. # IRIX /sbin/install
  13335. # AIX /bin/install
  13336. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13337. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13338. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13339. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13340. # OS/2's system install, which has a completely different semantic
  13341. # ./install, which can be erroneously created by make from ./install.sh.
  13342. # Reject install programs that cannot install multiple files.
  13343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13344. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13345. if test -z "$INSTALL"; then
  13346. if ${ac_cv_path_install+:} false; then :
  13347. $as_echo_n "(cached) " >&6
  13348. else
  13349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13350. for as_dir in $PATH
  13351. do
  13352. IFS=$as_save_IFS
  13353. test -z "$as_dir" && as_dir=.
  13354. # Account for people who put trailing slashes in PATH elements.
  13355. case $as_dir/ in #((
  13356. ./ | .// | /[cC]/* | \
  13357. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13358. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13359. /usr/ucb/* ) ;;
  13360. *)
  13361. # OSF1 and SCO ODT 3.0 have their own names for install.
  13362. # Don't use installbsd from OSF since it installs stuff as root
  13363. # by default.
  13364. for ac_prog in ginstall scoinst install; do
  13365. for ac_exec_ext in '' $ac_executable_extensions; do
  13366. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13367. if test $ac_prog = install &&
  13368. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13369. # AIX install. It has an incompatible calling convention.
  13370. :
  13371. elif test $ac_prog = install &&
  13372. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13373. # program-specific install script used by HP pwplus--don't use.
  13374. :
  13375. else
  13376. rm -rf conftest.one conftest.two conftest.dir
  13377. echo one > conftest.one
  13378. echo two > conftest.two
  13379. mkdir conftest.dir
  13380. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13381. test -s conftest.one && test -s conftest.two &&
  13382. test -s conftest.dir/conftest.one &&
  13383. test -s conftest.dir/conftest.two
  13384. then
  13385. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13386. break 3
  13387. fi
  13388. fi
  13389. fi
  13390. done
  13391. done
  13392. ;;
  13393. esac
  13394. done
  13395. IFS=$as_save_IFS
  13396. rm -rf conftest.one conftest.two conftest.dir
  13397. fi
  13398. if test "${ac_cv_path_install+set}" = set; then
  13399. INSTALL=$ac_cv_path_install
  13400. else
  13401. # As a last resort, use the slow shell script. Don't cache a
  13402. # value for INSTALL within a source directory, because that will
  13403. # break other packages using the cache if that directory is
  13404. # removed, or if the value is a relative name.
  13405. INSTALL=$ac_install_sh
  13406. fi
  13407. fi
  13408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13409. $as_echo "$INSTALL" >&6; }
  13410. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13411. # It thinks the first close brace ends the variable substitution.
  13412. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13413. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13414. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13416. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13417. set x ${MAKE-make}
  13418. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13419. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13420. $as_echo_n "(cached) " >&6
  13421. else
  13422. cat >conftest.make <<\_ACEOF
  13423. SHELL = /bin/sh
  13424. all:
  13425. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13426. _ACEOF
  13427. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13428. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13429. *@@@%%%=?*=@@@%%%*)
  13430. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13431. *)
  13432. eval ac_cv_prog_make_${ac_make}_set=no;;
  13433. esac
  13434. rm -f conftest.make
  13435. fi
  13436. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13438. $as_echo "yes" >&6; }
  13439. SET_MAKE=
  13440. else
  13441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13442. $as_echo "no" >&6; }
  13443. SET_MAKE="MAKE=${MAKE-make}"
  13444. fi
  13445. if test -n "$ac_tool_prefix"; then
  13446. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13447. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13449. $as_echo_n "checking for $ac_word... " >&6; }
  13450. if ${ac_cv_prog_WINDRES+:} false; then :
  13451. $as_echo_n "(cached) " >&6
  13452. else
  13453. if test -n "$WINDRES"; then
  13454. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13455. else
  13456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13457. for as_dir in $PATH
  13458. do
  13459. IFS=$as_save_IFS
  13460. test -z "$as_dir" && as_dir=.
  13461. for ac_exec_ext in '' $ac_executable_extensions; do
  13462. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13463. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13465. break 2
  13466. fi
  13467. done
  13468. done
  13469. IFS=$as_save_IFS
  13470. fi
  13471. fi
  13472. WINDRES=$ac_cv_prog_WINDRES
  13473. if test -n "$WINDRES"; then
  13474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13475. $as_echo "$WINDRES" >&6; }
  13476. else
  13477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13478. $as_echo "no" >&6; }
  13479. fi
  13480. fi
  13481. if test -z "$ac_cv_prog_WINDRES"; then
  13482. ac_ct_WINDRES=$WINDRES
  13483. # Extract the first word of "windres", so it can be a program name with args.
  13484. set dummy windres; ac_word=$2
  13485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13486. $as_echo_n "checking for $ac_word... " >&6; }
  13487. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13488. $as_echo_n "(cached) " >&6
  13489. else
  13490. if test -n "$ac_ct_WINDRES"; then
  13491. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13492. else
  13493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13494. for as_dir in $PATH
  13495. do
  13496. IFS=$as_save_IFS
  13497. test -z "$as_dir" && as_dir=.
  13498. for ac_exec_ext in '' $ac_executable_extensions; do
  13499. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13500. ac_cv_prog_ac_ct_WINDRES="windres"
  13501. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13502. break 2
  13503. fi
  13504. done
  13505. done
  13506. IFS=$as_save_IFS
  13507. fi
  13508. fi
  13509. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13510. if test -n "$ac_ct_WINDRES"; then
  13511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13512. $as_echo "$ac_ct_WINDRES" >&6; }
  13513. else
  13514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13515. $as_echo "no" >&6; }
  13516. fi
  13517. if test "x$ac_ct_WINDRES" = x; then
  13518. WINDRES=":"
  13519. else
  13520. case $cross_compiling:$ac_tool_warned in
  13521. yes:)
  13522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13523. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13524. ac_tool_warned=yes ;;
  13525. esac
  13526. WINDRES=$ac_ct_WINDRES
  13527. fi
  13528. else
  13529. WINDRES="$ac_cv_prog_WINDRES"
  13530. fi
  13531. case "$host" in
  13532. *-*-mingw32*)
  13533. # Except on msys, where make can't handle full pathnames (bug 1972)
  13534. ;;
  13535. *)
  13536. srcdir=`cd $srcdir && pwd`
  13537. ;;
  13538. esac
  13539. INCLUDE="-I$srcdir/include"
  13540. if test x$srcdir != x.; then
  13541. INCLUDE="-Iinclude $INCLUDE"
  13542. elif test -d .hg; then
  13543. as_fn_error $? "
  13544. *** When building from Mercurial you should configure and build in a
  13545. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13546. " "$LINENO" 5
  13547. fi
  13548. BASE_CFLAGS=""
  13549. BASE_LDFLAGS=""
  13550. case "$host" in
  13551. *-*-cygwin*)
  13552. # We build SDL on cygwin without the UNIX emulation layer
  13553. save_CFLAGS="$CFLAGS"
  13554. have_no_cygwin=no
  13555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13556. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13557. CFLAGS="$save_CFLAGS -mno-cygwin"
  13558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13559. /* end confdefs.h. */
  13560. int
  13561. main ()
  13562. {
  13563. ;
  13564. return 0;
  13565. }
  13566. _ACEOF
  13567. if ac_fn_c_try_compile "$LINENO"; then :
  13568. have_no_cygwin=yes
  13569. fi
  13570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13572. $as_echo "$have_no_cygwin" >&6; }
  13573. CFLAGS="$save_CFLAGS"
  13574. if test x$have_no_cygwin = xyes; then
  13575. BASE_CFLAGS="-mno-cygwin"
  13576. BASE_LDFLAGS="-mno-cygwin"
  13577. fi
  13578. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13579. ;;
  13580. esac
  13581. # Uncomment the following line if you want to force SDL and applications
  13582. # built with it to be compiled for a particular architecture.
  13583. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13584. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13585. # The default optimization for SDL is -O3 (Bug #31)
  13586. if test "x$orig_CFLAGS" = x; then
  13587. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13588. fi
  13589. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13590. BUILD_LDFLAGS="$LDFLAGS"
  13591. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13592. ## These are common directories to find software packages
  13593. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13594. # if test -d $path/include; then
  13595. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13596. # fi
  13597. # if test -d $path/lib; then
  13598. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13599. # fi
  13600. #done
  13601. SDL_CFLAGS="$BASE_CFLAGS"
  13602. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13603. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13604. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13605. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13606. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13607. find_lib()
  13608. {
  13609. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13610. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13611. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13612. if test "$cross_compiling" = yes; then
  13613. host_lib_path=""
  13614. else
  13615. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13616. fi
  13617. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13618. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13619. if test x$lib != x; then
  13620. echo $lib
  13621. return
  13622. fi
  13623. done
  13624. }
  13625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13626. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13627. if ${ac_cv_c_const+:} false; then :
  13628. $as_echo_n "(cached) " >&6
  13629. else
  13630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13631. /* end confdefs.h. */
  13632. int
  13633. main ()
  13634. {
  13635. #ifndef __cplusplus
  13636. /* Ultrix mips cc rejects this sort of thing. */
  13637. typedef int charset[2];
  13638. const charset cs = { 0, 0 };
  13639. /* SunOS 4.1.1 cc rejects this. */
  13640. char const *const *pcpcc;
  13641. char **ppc;
  13642. /* NEC SVR4.0.2 mips cc rejects this. */
  13643. struct point {int x, y;};
  13644. static struct point const zero = {0,0};
  13645. /* AIX XL C 1.02.0.0 rejects this.
  13646. It does not let you subtract one const X* pointer from another in
  13647. an arm of an if-expression whose if-part is not a constant
  13648. expression */
  13649. const char *g = "string";
  13650. pcpcc = &g + (g ? g-g : 0);
  13651. /* HPUX 7.0 cc rejects these. */
  13652. ++pcpcc;
  13653. ppc = (char**) pcpcc;
  13654. pcpcc = (char const *const *) ppc;
  13655. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13656. char tx;
  13657. char *t = &tx;
  13658. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13659. *t++ = 0;
  13660. if (s) return 0;
  13661. }
  13662. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13663. int x[] = {25, 17};
  13664. const int *foo = &x[0];
  13665. ++foo;
  13666. }
  13667. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13668. typedef const int *iptr;
  13669. iptr p = 0;
  13670. ++p;
  13671. }
  13672. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13673. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13674. struct s { int j; const int *ap[3]; } bx;
  13675. struct s *b = &bx; b->j = 5;
  13676. }
  13677. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13678. const int foo = 10;
  13679. if (!foo) return 0;
  13680. }
  13681. return !cs[0] && !zero.x;
  13682. #endif
  13683. ;
  13684. return 0;
  13685. }
  13686. _ACEOF
  13687. if ac_fn_c_try_compile "$LINENO"; then :
  13688. ac_cv_c_const=yes
  13689. else
  13690. ac_cv_c_const=no
  13691. fi
  13692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13693. fi
  13694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13695. $as_echo "$ac_cv_c_const" >&6; }
  13696. if test $ac_cv_c_const = no; then
  13697. $as_echo "#define const /**/" >>confdefs.h
  13698. fi
  13699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13700. $as_echo_n "checking for inline... " >&6; }
  13701. if ${ac_cv_c_inline+:} false; then :
  13702. $as_echo_n "(cached) " >&6
  13703. else
  13704. ac_cv_c_inline=no
  13705. for ac_kw in inline __inline__ __inline; do
  13706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13707. /* end confdefs.h. */
  13708. #ifndef __cplusplus
  13709. typedef int foo_t;
  13710. static $ac_kw foo_t static_foo () {return 0; }
  13711. $ac_kw foo_t foo () {return 0; }
  13712. #endif
  13713. _ACEOF
  13714. if ac_fn_c_try_compile "$LINENO"; then :
  13715. ac_cv_c_inline=$ac_kw
  13716. fi
  13717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13718. test "$ac_cv_c_inline" != no && break
  13719. done
  13720. fi
  13721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13722. $as_echo "$ac_cv_c_inline" >&6; }
  13723. case $ac_cv_c_inline in
  13724. inline | yes) ;;
  13725. *)
  13726. case $ac_cv_c_inline in
  13727. no) ac_val=;;
  13728. *) ac_val=$ac_cv_c_inline;;
  13729. esac
  13730. cat >>confdefs.h <<_ACEOF
  13731. #ifndef __cplusplus
  13732. #define inline $ac_val
  13733. #endif
  13734. _ACEOF
  13735. ;;
  13736. esac
  13737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13738. $as_echo_n "checking for working volatile... " >&6; }
  13739. if ${ac_cv_c_volatile+:} false; then :
  13740. $as_echo_n "(cached) " >&6
  13741. else
  13742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13743. /* end confdefs.h. */
  13744. int
  13745. main ()
  13746. {
  13747. volatile int x;
  13748. int * volatile y = (int *) 0;
  13749. return !x && !y;
  13750. ;
  13751. return 0;
  13752. }
  13753. _ACEOF
  13754. if ac_fn_c_try_compile "$LINENO"; then :
  13755. ac_cv_c_volatile=yes
  13756. else
  13757. ac_cv_c_volatile=no
  13758. fi
  13759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13760. fi
  13761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13762. $as_echo "$ac_cv_c_volatile" >&6; }
  13763. if test $ac_cv_c_volatile = no; then
  13764. $as_echo "#define volatile /**/" >>confdefs.h
  13765. fi
  13766. # Check whether --enable-assertions was given.
  13767. if test "${enable_assertions+set}" = set; then :
  13768. enableval=$enable_assertions;
  13769. else
  13770. enable_assertions=auto
  13771. fi
  13772. case "$enable_assertions" in
  13773. auto) # Use optimization settings to determine assertion level
  13774. ;;
  13775. disabled)
  13776. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13777. ;;
  13778. release)
  13779. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13780. ;;
  13781. enabled)
  13782. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13783. ;;
  13784. paranoid)
  13785. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13786. ;;
  13787. *)
  13788. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13789. ;;
  13790. esac
  13791. # Check whether --enable-dependency-tracking was given.
  13792. if test "${enable_dependency_tracking+set}" = set; then :
  13793. enableval=$enable_dependency_tracking;
  13794. else
  13795. enable_dependency_tracking=yes
  13796. fi
  13797. if test x$enable_dependency_tracking = xyes; then
  13798. have_gcc_mmd_mt=no
  13799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13800. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13802. /* end confdefs.h. */
  13803. #if !defined(__GNUC__) || __GNUC__ < 3
  13804. #error Dependency tracking requires GCC 3.0 or newer
  13805. #endif
  13806. int
  13807. main ()
  13808. {
  13809. ;
  13810. return 0;
  13811. }
  13812. _ACEOF
  13813. if ac_fn_c_try_compile "$LINENO"; then :
  13814. have_gcc_mmd_mt=yes
  13815. fi
  13816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13818. $as_echo "$have_gcc_mmd_mt" >&6; }
  13819. if test x$have_gcc_mmd_mt = xyes; then
  13820. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13821. fi
  13822. fi
  13823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13824. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13825. have_no_undefined=no
  13826. case "$host" in
  13827. *-*-openbsd*)
  13828. ;;
  13829. *)
  13830. save_LDFLAGS="$LDFLAGS"
  13831. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13833. /* end confdefs.h. */
  13834. int
  13835. main ()
  13836. {
  13837. ;
  13838. return 0;
  13839. }
  13840. _ACEOF
  13841. if ac_fn_c_try_link "$LINENO"; then :
  13842. have_no_undefined=yes
  13843. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13844. fi
  13845. rm -f core conftest.err conftest.$ac_objext \
  13846. conftest$ac_exeext conftest.$ac_ext
  13847. LDFLAGS="$save_LDFLAGS"
  13848. ;;
  13849. esac
  13850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13851. $as_echo "$have_no_undefined" >&6; }
  13852. # Check whether --enable-libc was given.
  13853. if test "${enable_libc+set}" = set; then :
  13854. enableval=$enable_libc;
  13855. else
  13856. enable_libc=yes
  13857. fi
  13858. if test x$enable_libc = xyes; then
  13859. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13861. $as_echo_n "checking for ANSI C header files... " >&6; }
  13862. if ${ac_cv_header_stdc+:} false; then :
  13863. $as_echo_n "(cached) " >&6
  13864. else
  13865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13866. /* end confdefs.h. */
  13867. #include <stdlib.h>
  13868. #include <stdarg.h>
  13869. #include <string.h>
  13870. #include <float.h>
  13871. int
  13872. main ()
  13873. {
  13874. ;
  13875. return 0;
  13876. }
  13877. _ACEOF
  13878. if ac_fn_c_try_compile "$LINENO"; then :
  13879. ac_cv_header_stdc=yes
  13880. else
  13881. ac_cv_header_stdc=no
  13882. fi
  13883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13884. if test $ac_cv_header_stdc = yes; then
  13885. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13887. /* end confdefs.h. */
  13888. #include <string.h>
  13889. _ACEOF
  13890. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13891. $EGREP "memchr" >/dev/null 2>&1; then :
  13892. else
  13893. ac_cv_header_stdc=no
  13894. fi
  13895. rm -f conftest*
  13896. fi
  13897. if test $ac_cv_header_stdc = yes; then
  13898. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13900. /* end confdefs.h. */
  13901. #include <stdlib.h>
  13902. _ACEOF
  13903. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13904. $EGREP "free" >/dev/null 2>&1; then :
  13905. else
  13906. ac_cv_header_stdc=no
  13907. fi
  13908. rm -f conftest*
  13909. fi
  13910. if test $ac_cv_header_stdc = yes; then
  13911. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13912. if test "$cross_compiling" = yes; then :
  13913. :
  13914. else
  13915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13916. /* end confdefs.h. */
  13917. #include <ctype.h>
  13918. #include <stdlib.h>
  13919. #if ((' ' & 0x0FF) == 0x020)
  13920. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13921. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13922. #else
  13923. # define ISLOWER(c) \
  13924. (('a' <= (c) && (c) <= 'i') \
  13925. || ('j' <= (c) && (c) <= 'r') \
  13926. || ('s' <= (c) && (c) <= 'z'))
  13927. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13928. #endif
  13929. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13930. int
  13931. main ()
  13932. {
  13933. int i;
  13934. for (i = 0; i < 256; i++)
  13935. if (XOR (islower (i), ISLOWER (i))
  13936. || toupper (i) != TOUPPER (i))
  13937. return 2;
  13938. return 0;
  13939. }
  13940. _ACEOF
  13941. if ac_fn_c_try_run "$LINENO"; then :
  13942. else
  13943. ac_cv_header_stdc=no
  13944. fi
  13945. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13946. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13947. fi
  13948. fi
  13949. fi
  13950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13951. $as_echo "$ac_cv_header_stdc" >&6; }
  13952. if test $ac_cv_header_stdc = yes; then
  13953. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13954. fi
  13955. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
  13956. do :
  13957. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13958. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13959. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13960. cat >>confdefs.h <<_ACEOF
  13961. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13962. _ACEOF
  13963. fi
  13964. done
  13965. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13966. if test "x$ac_cv_type_size_t" = xyes; then :
  13967. else
  13968. cat >>confdefs.h <<_ACEOF
  13969. #define size_t unsigned int
  13970. _ACEOF
  13971. fi
  13972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13973. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13974. if ${ac_cv_define_M_PI+:} false; then :
  13975. $as_echo_n "(cached) " >&6
  13976. else
  13977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13978. /* end confdefs.h. */
  13979. #include <math.h>
  13980. #ifdef M_PI
  13981. YES_IS_DEFINED
  13982. #endif
  13983. _ACEOF
  13984. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13985. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13986. ac_cv_define_M_PI=yes
  13987. else
  13988. ac_cv_define_M_PI=no
  13989. fi
  13990. rm -f conftest*
  13991. fi
  13992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13993. $as_echo "$ac_cv_define_M_PI" >&6; }
  13994. if test "$ac_cv_define_M_PI" = "yes" ; then
  13995. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13996. fi
  13997. case "$host" in
  13998. *-*-cygwin* | *-*-mingw32*)
  13999. ;;
  14000. *)
  14001. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14002. # for constant arguments. Useless!
  14003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14004. $as_echo_n "checking for working alloca.h... " >&6; }
  14005. if ${ac_cv_working_alloca_h+:} false; then :
  14006. $as_echo_n "(cached) " >&6
  14007. else
  14008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14009. /* end confdefs.h. */
  14010. #include <alloca.h>
  14011. int
  14012. main ()
  14013. {
  14014. char *p = (char *) alloca (2 * sizeof (int));
  14015. if (p) return 0;
  14016. ;
  14017. return 0;
  14018. }
  14019. _ACEOF
  14020. if ac_fn_c_try_link "$LINENO"; then :
  14021. ac_cv_working_alloca_h=yes
  14022. else
  14023. ac_cv_working_alloca_h=no
  14024. fi
  14025. rm -f core conftest.err conftest.$ac_objext \
  14026. conftest$ac_exeext conftest.$ac_ext
  14027. fi
  14028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14029. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14030. if test $ac_cv_working_alloca_h = yes; then
  14031. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14032. fi
  14033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14034. $as_echo_n "checking for alloca... " >&6; }
  14035. if ${ac_cv_func_alloca_works+:} false; then :
  14036. $as_echo_n "(cached) " >&6
  14037. else
  14038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14039. /* end confdefs.h. */
  14040. #ifdef __GNUC__
  14041. # define alloca __builtin_alloca
  14042. #else
  14043. # ifdef _MSC_VER
  14044. # include <malloc.h>
  14045. # define alloca _alloca
  14046. # else
  14047. # ifdef HAVE_ALLOCA_H
  14048. # include <alloca.h>
  14049. # else
  14050. # ifdef _AIX
  14051. #pragma alloca
  14052. # else
  14053. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14054. void *alloca (size_t);
  14055. # endif
  14056. # endif
  14057. # endif
  14058. # endif
  14059. #endif
  14060. int
  14061. main ()
  14062. {
  14063. char *p = (char *) alloca (1);
  14064. if (p) return 0;
  14065. ;
  14066. return 0;
  14067. }
  14068. _ACEOF
  14069. if ac_fn_c_try_link "$LINENO"; then :
  14070. ac_cv_func_alloca_works=yes
  14071. else
  14072. ac_cv_func_alloca_works=no
  14073. fi
  14074. rm -f core conftest.err conftest.$ac_objext \
  14075. conftest$ac_exeext conftest.$ac_ext
  14076. fi
  14077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14078. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14079. if test $ac_cv_func_alloca_works = yes; then
  14080. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14081. else
  14082. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14083. # that cause trouble. Some versions do not even contain alloca or
  14084. # contain a buggy version. If you still want to use their alloca,
  14085. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14086. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14087. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14089. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14090. if ${ac_cv_os_cray+:} false; then :
  14091. $as_echo_n "(cached) " >&6
  14092. else
  14093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14094. /* end confdefs.h. */
  14095. #if defined CRAY && ! defined CRAY2
  14096. webecray
  14097. #else
  14098. wenotbecray
  14099. #endif
  14100. _ACEOF
  14101. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14102. $EGREP "webecray" >/dev/null 2>&1; then :
  14103. ac_cv_os_cray=yes
  14104. else
  14105. ac_cv_os_cray=no
  14106. fi
  14107. rm -f conftest*
  14108. fi
  14109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14110. $as_echo "$ac_cv_os_cray" >&6; }
  14111. if test $ac_cv_os_cray = yes; then
  14112. for ac_func in _getb67 GETB67 getb67; do
  14113. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14114. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14115. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14116. cat >>confdefs.h <<_ACEOF
  14117. #define CRAY_STACKSEG_END $ac_func
  14118. _ACEOF
  14119. break
  14120. fi
  14121. done
  14122. fi
  14123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14124. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14125. if ${ac_cv_c_stack_direction+:} false; then :
  14126. $as_echo_n "(cached) " >&6
  14127. else
  14128. if test "$cross_compiling" = yes; then :
  14129. ac_cv_c_stack_direction=0
  14130. else
  14131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14132. /* end confdefs.h. */
  14133. $ac_includes_default
  14134. int
  14135. find_stack_direction (int *addr, int depth)
  14136. {
  14137. int dir, dummy = 0;
  14138. if (! addr)
  14139. addr = &dummy;
  14140. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14141. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14142. return dir + dummy;
  14143. }
  14144. int
  14145. main (int argc, char **argv)
  14146. {
  14147. return find_stack_direction (0, argc + !argv + 20) < 0;
  14148. }
  14149. _ACEOF
  14150. if ac_fn_c_try_run "$LINENO"; then :
  14151. ac_cv_c_stack_direction=1
  14152. else
  14153. ac_cv_c_stack_direction=-1
  14154. fi
  14155. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14156. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14157. fi
  14158. fi
  14159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14160. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14161. cat >>confdefs.h <<_ACEOF
  14162. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14163. _ACEOF
  14164. fi
  14165. ;;
  14166. esac
  14167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14168. $as_echo_n "checking for working memcmp... " >&6; }
  14169. if ${ac_cv_func_memcmp_working+:} false; then :
  14170. $as_echo_n "(cached) " >&6
  14171. else
  14172. if test "$cross_compiling" = yes; then :
  14173. ac_cv_func_memcmp_working=no
  14174. else
  14175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14176. /* end confdefs.h. */
  14177. $ac_includes_default
  14178. int
  14179. main ()
  14180. {
  14181. /* Some versions of memcmp are not 8-bit clean. */
  14182. char c0 = '\100', c1 = '\200', c2 = '\201';
  14183. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14184. return 1;
  14185. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14186. or more and with at least one buffer not starting on a 4-byte boundary.
  14187. William Lewis provided this test program. */
  14188. {
  14189. char foo[21];
  14190. char bar[21];
  14191. int i;
  14192. for (i = 0; i < 4; i++)
  14193. {
  14194. char *a = foo + i;
  14195. char *b = bar + i;
  14196. strcpy (a, "--------01111111");
  14197. strcpy (b, "--------10000000");
  14198. if (memcmp (a, b, 16) >= 0)
  14199. return 1;
  14200. }
  14201. return 0;
  14202. }
  14203. ;
  14204. return 0;
  14205. }
  14206. _ACEOF
  14207. if ac_fn_c_try_run "$LINENO"; then :
  14208. ac_cv_func_memcmp_working=yes
  14209. else
  14210. ac_cv_func_memcmp_working=no
  14211. fi
  14212. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14213. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14214. fi
  14215. fi
  14216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14217. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14218. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14219. *" memcmp.$ac_objext "* ) ;;
  14220. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14221. ;;
  14222. esac
  14223. if test x$ac_cv_func_memcmp_working = xyes; then
  14224. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14225. fi
  14226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14227. $as_echo_n "checking for working strtod... " >&6; }
  14228. if ${ac_cv_func_strtod+:} false; then :
  14229. $as_echo_n "(cached) " >&6
  14230. else
  14231. if test "$cross_compiling" = yes; then :
  14232. ac_cv_func_strtod=no
  14233. else
  14234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14235. /* end confdefs.h. */
  14236. $ac_includes_default
  14237. #ifndef strtod
  14238. double strtod ();
  14239. #endif
  14240. int
  14241. main()
  14242. {
  14243. {
  14244. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14245. char *string = " +69";
  14246. char *term;
  14247. double value;
  14248. value = strtod (string, &term);
  14249. if (value != 69 || term != (string + 4))
  14250. return 1;
  14251. }
  14252. {
  14253. /* Under Solaris 2.4, strtod returns the wrong value for the
  14254. terminating character under some conditions. */
  14255. char *string = "NaN";
  14256. char *term;
  14257. strtod (string, &term);
  14258. if (term != string && *(term - 1) == 0)
  14259. return 1;
  14260. }
  14261. return 0;
  14262. }
  14263. _ACEOF
  14264. if ac_fn_c_try_run "$LINENO"; then :
  14265. ac_cv_func_strtod=yes
  14266. else
  14267. ac_cv_func_strtod=no
  14268. fi
  14269. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14270. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14271. fi
  14272. fi
  14273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14274. $as_echo "$ac_cv_func_strtod" >&6; }
  14275. if test $ac_cv_func_strtod = no; then
  14276. case " $LIBOBJS " in
  14277. *" strtod.$ac_objext "* ) ;;
  14278. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14279. ;;
  14280. esac
  14281. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14282. if test "x$ac_cv_func_pow" = xyes; then :
  14283. fi
  14284. if test $ac_cv_func_pow = no; then
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14286. $as_echo_n "checking for pow in -lm... " >&6; }
  14287. if ${ac_cv_lib_m_pow+:} false; then :
  14288. $as_echo_n "(cached) " >&6
  14289. else
  14290. ac_check_lib_save_LIBS=$LIBS
  14291. LIBS="-lm $LIBS"
  14292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14293. /* end confdefs.h. */
  14294. /* Override any GCC internal prototype to avoid an error.
  14295. Use char because int might match the return type of a GCC
  14296. builtin and then its argument prototype would still apply. */
  14297. #ifdef __cplusplus
  14298. extern "C"
  14299. #endif
  14300. char pow ();
  14301. int
  14302. main ()
  14303. {
  14304. return pow ();
  14305. ;
  14306. return 0;
  14307. }
  14308. _ACEOF
  14309. if ac_fn_c_try_link "$LINENO"; then :
  14310. ac_cv_lib_m_pow=yes
  14311. else
  14312. ac_cv_lib_m_pow=no
  14313. fi
  14314. rm -f core conftest.err conftest.$ac_objext \
  14315. conftest$ac_exeext conftest.$ac_ext
  14316. LIBS=$ac_check_lib_save_LIBS
  14317. fi
  14318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14319. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14320. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14321. POW_LIB=-lm
  14322. else
  14323. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14324. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14325. fi
  14326. fi
  14327. fi
  14328. if test x$ac_cv_func_strtod = xyes; then
  14329. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14330. fi
  14331. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14332. if test "x$ac_cv_func_mprotect" = xyes; then :
  14333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14334. /* end confdefs.h. */
  14335. #include <sys/types.h>
  14336. #include <sys/mman.h>
  14337. int
  14338. main ()
  14339. {
  14340. ;
  14341. return 0;
  14342. }
  14343. _ACEOF
  14344. if ac_fn_c_try_compile "$LINENO"; then :
  14345. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14346. fi
  14347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14348. fi
  14349. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove 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 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval
  14350. do :
  14351. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14352. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14353. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14354. cat >>confdefs.h <<_ACEOF
  14355. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14356. _ACEOF
  14357. fi
  14358. done
  14359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14360. $as_echo_n "checking for pow in -lm... " >&6; }
  14361. if ${ac_cv_lib_m_pow+:} false; then :
  14362. $as_echo_n "(cached) " >&6
  14363. else
  14364. ac_check_lib_save_LIBS=$LIBS
  14365. LIBS="-lm $LIBS"
  14366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14367. /* end confdefs.h. */
  14368. /* Override any GCC internal prototype to avoid an error.
  14369. Use char because int might match the return type of a GCC
  14370. builtin and then its argument prototype would still apply. */
  14371. #ifdef __cplusplus
  14372. extern "C"
  14373. #endif
  14374. char pow ();
  14375. int
  14376. main ()
  14377. {
  14378. return pow ();
  14379. ;
  14380. return 0;
  14381. }
  14382. _ACEOF
  14383. if ac_fn_c_try_link "$LINENO"; then :
  14384. ac_cv_lib_m_pow=yes
  14385. else
  14386. ac_cv_lib_m_pow=no
  14387. fi
  14388. rm -f core conftest.err conftest.$ac_objext \
  14389. conftest$ac_exeext conftest.$ac_ext
  14390. LIBS=$ac_check_lib_save_LIBS
  14391. fi
  14392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14393. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14394. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14395. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14396. fi
  14397. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14398. do :
  14399. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14400. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14401. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14402. cat >>confdefs.h <<_ACEOF
  14403. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14404. _ACEOF
  14405. fi
  14406. done
  14407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14408. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14409. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14410. $as_echo_n "(cached) " >&6
  14411. else
  14412. ac_check_lib_save_LIBS=$LIBS
  14413. LIBS="-liconv $LIBS"
  14414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14415. /* end confdefs.h. */
  14416. /* Override any GCC internal prototype to avoid an error.
  14417. Use char because int might match the return type of a GCC
  14418. builtin and then its argument prototype would still apply. */
  14419. #ifdef __cplusplus
  14420. extern "C"
  14421. #endif
  14422. char iconv_open ();
  14423. int
  14424. main ()
  14425. {
  14426. return iconv_open ();
  14427. ;
  14428. return 0;
  14429. }
  14430. _ACEOF
  14431. if ac_fn_c_try_link "$LINENO"; then :
  14432. ac_cv_lib_iconv_iconv_open=yes
  14433. else
  14434. ac_cv_lib_iconv_iconv_open=no
  14435. fi
  14436. rm -f core conftest.err conftest.$ac_objext \
  14437. conftest$ac_exeext conftest.$ac_ext
  14438. LIBS=$ac_check_lib_save_LIBS
  14439. fi
  14440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14441. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14442. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14443. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14444. fi
  14445. for ac_func in iconv
  14446. do :
  14447. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14448. if test "x$ac_cv_func_iconv" = xyes; then :
  14449. cat >>confdefs.h <<_ACEOF
  14450. #define HAVE_ICONV 1
  14451. _ACEOF
  14452. fi
  14453. done
  14454. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14455. "
  14456. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14457. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14458. fi
  14459. fi
  14460. # Check whether --enable-gcc-atomics was given.
  14461. if test "${enable_gcc_atomics+set}" = set; then :
  14462. enableval=$enable_gcc_atomics;
  14463. else
  14464. enable_gcc_atomics=yes
  14465. fi
  14466. if test x$enable_gcc_atomics = xyes; then
  14467. have_gcc_atomics=no
  14468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14469. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14471. /* end confdefs.h. */
  14472. int
  14473. main ()
  14474. {
  14475. int a;
  14476. void *x, *y, *z;
  14477. __sync_lock_test_and_set(&a, 4);
  14478. __sync_lock_test_and_set(&x, y);
  14479. __sync_fetch_and_add(&a, 1);
  14480. __sync_bool_compare_and_swap(&a, 5, 10);
  14481. __sync_bool_compare_and_swap(&x, y, z);
  14482. ;
  14483. return 0;
  14484. }
  14485. _ACEOF
  14486. if ac_fn_c_try_link "$LINENO"; then :
  14487. have_gcc_atomics=yes
  14488. fi
  14489. rm -f core conftest.err conftest.$ac_objext \
  14490. conftest$ac_exeext conftest.$ac_ext
  14491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14492. $as_echo "$have_gcc_atomics" >&6; }
  14493. if test x$have_gcc_atomics = xyes; then
  14494. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14495. else
  14496. # See if we have the minimum operation needed for GCC atomics
  14497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14498. /* end confdefs.h. */
  14499. int
  14500. main ()
  14501. {
  14502. int a;
  14503. __sync_lock_test_and_set(&a, 1);
  14504. __sync_lock_release(&a);
  14505. ;
  14506. return 0;
  14507. }
  14508. _ACEOF
  14509. if ac_fn_c_try_link "$LINENO"; then :
  14510. have_gcc_sync_lock_test_and_set=yes
  14511. fi
  14512. rm -f core conftest.err conftest.$ac_objext \
  14513. conftest$ac_exeext conftest.$ac_ext
  14514. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14515. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14516. fi
  14517. fi
  14518. fi
  14519. # Standard C sources
  14520. SOURCES="$SOURCES $srcdir/src/*.c"
  14521. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14522. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14523. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14524. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14525. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14526. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14527. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14528. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14529. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14530. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14531. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14532. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14533. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14534. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14535. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14536. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14537. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14538. # Check whether --enable-atomic was given.
  14539. if test "${enable_atomic+set}" = set; then :
  14540. enableval=$enable_atomic;
  14541. else
  14542. enable_atomic=yes
  14543. fi
  14544. if test x$enable_atomic != xyes; then
  14545. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14546. else
  14547. SUMMARY_modules="${SUMMARY_modules} atomic"
  14548. fi
  14549. # Check whether --enable-audio was given.
  14550. if test "${enable_audio+set}" = set; then :
  14551. enableval=$enable_audio;
  14552. else
  14553. enable_audio=yes
  14554. fi
  14555. if test x$enable_audio != xyes; then
  14556. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14557. else
  14558. SUMMARY_modules="${SUMMARY_modules} audio"
  14559. fi
  14560. # Check whether --enable-video was given.
  14561. if test "${enable_video+set}" = set; then :
  14562. enableval=$enable_video;
  14563. else
  14564. enable_video=yes
  14565. fi
  14566. if test x$enable_video != xyes; then
  14567. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14568. else
  14569. SUMMARY_modules="${SUMMARY_modules} video"
  14570. fi
  14571. # Check whether --enable-render was given.
  14572. if test "${enable_render+set}" = set; then :
  14573. enableval=$enable_render;
  14574. else
  14575. enable_render=yes
  14576. fi
  14577. if test x$enable_render != xyes; then
  14578. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14579. else
  14580. SUMMARY_modules="${SUMMARY_modules} render"
  14581. fi
  14582. # Check whether --enable-events was given.
  14583. if test "${enable_events+set}" = set; then :
  14584. enableval=$enable_events;
  14585. else
  14586. enable_events=yes
  14587. fi
  14588. if test x$enable_events != xyes; then
  14589. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14590. else
  14591. SUMMARY_modules="${SUMMARY_modules} events"
  14592. fi
  14593. # Check whether --enable-joystick was given.
  14594. if test "${enable_joystick+set}" = set; then :
  14595. enableval=$enable_joystick;
  14596. else
  14597. enable_joystick=yes
  14598. fi
  14599. if test x$enable_joystick != xyes; then
  14600. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14601. else
  14602. SUMMARY_modules="${SUMMARY_modules} joystick"
  14603. fi
  14604. # Check whether --enable-haptic was given.
  14605. if test "${enable_haptic+set}" = set; then :
  14606. enableval=$enable_haptic;
  14607. else
  14608. enable_haptic=yes
  14609. fi
  14610. if test x$enable_haptic != xyes; then
  14611. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14612. else
  14613. SUMMARY_modules="${SUMMARY_modules} haptic"
  14614. fi
  14615. # Check whether --enable-power was given.
  14616. if test "${enable_power+set}" = set; then :
  14617. enableval=$enable_power;
  14618. else
  14619. enable_power=yes
  14620. fi
  14621. if test x$enable_power != xyes; then
  14622. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14623. else
  14624. SUMMARY_modules="${SUMMARY_modules} power"
  14625. fi
  14626. # Check whether --enable-filesystem was given.
  14627. if test "${enable_filesystem+set}" = set; then :
  14628. enableval=$enable_filesystem;
  14629. else
  14630. enable_filesystem=yes
  14631. fi
  14632. if test x$enable_filesystem != xyes; then
  14633. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14634. else
  14635. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14636. fi
  14637. # Check whether --enable-threads was given.
  14638. if test "${enable_threads+set}" = set; then :
  14639. enableval=$enable_threads;
  14640. else
  14641. enable_threads=yes
  14642. fi
  14643. if test x$enable_threads != xyes; then
  14644. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14645. else
  14646. SUMMARY_modules="${SUMMARY_modules} threads"
  14647. fi
  14648. # Check whether --enable-timers was given.
  14649. if test "${enable_timers+set}" = set; then :
  14650. enableval=$enable_timers;
  14651. else
  14652. enable_timers=yes
  14653. fi
  14654. if test x$enable_timers != xyes; then
  14655. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14656. else
  14657. SUMMARY_modules="${SUMMARY_modules} timers"
  14658. fi
  14659. # Check whether --enable-file was given.
  14660. if test "${enable_file+set}" = set; then :
  14661. enableval=$enable_file;
  14662. else
  14663. enable_file=yes
  14664. fi
  14665. if test x$enable_file != xyes; then
  14666. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14667. else
  14668. SUMMARY_modules="${SUMMARY_modules} file"
  14669. fi
  14670. # Check whether --enable-loadso was given.
  14671. if test "${enable_loadso+set}" = set; then :
  14672. enableval=$enable_loadso;
  14673. else
  14674. enable_loadso=yes
  14675. fi
  14676. if test x$enable_loadso != xyes; then
  14677. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14678. else
  14679. SUMMARY_modules="${SUMMARY_modules} loadso"
  14680. fi
  14681. # Check whether --enable-cpuinfo was given.
  14682. if test "${enable_cpuinfo+set}" = set; then :
  14683. enableval=$enable_cpuinfo;
  14684. else
  14685. enable_cpuinfo=yes
  14686. fi
  14687. if test x$enable_cpuinfo != xyes; then
  14688. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14689. else
  14690. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14691. fi
  14692. # Check whether --enable-assembly was given.
  14693. if test "${enable_assembly+set}" = set; then :
  14694. enableval=$enable_assembly;
  14695. else
  14696. enable_assembly=yes
  14697. fi
  14698. if test x$enable_assembly = xyes; then
  14699. SUMMARY_modules="${SUMMARY_modules} assembly"
  14700. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14701. # Make sure that we don't generate floating point code that would
  14702. # cause illegal instruction exceptions on older processors
  14703. case "$host" in
  14704. *-*-darwin*)
  14705. # Don't need to worry about Apple hardware, it's all SSE capable
  14706. default_ssemath=yes
  14707. ;;
  14708. *64-*-*)
  14709. # x86 64-bit architectures all have SSE instructions
  14710. default_ssemath=yes
  14711. ;;
  14712. *)
  14713. default_ssemath=no
  14714. ;;
  14715. esac
  14716. # Check whether --enable-ssemath was given.
  14717. if test "${enable_ssemath+set}" = set; then :
  14718. enableval=$enable_ssemath;
  14719. else
  14720. enable_ssemath=$default_ssemath
  14721. fi
  14722. if test x$enable_ssemath = xno; then
  14723. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14724. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14725. fi
  14726. fi
  14727. # Check whether --enable-mmx was given.
  14728. if test "${enable_mmx+set}" = set; then :
  14729. enableval=$enable_mmx;
  14730. else
  14731. enable_mmx=yes
  14732. fi
  14733. if test x$enable_mmx = xyes; then
  14734. save_CFLAGS="$CFLAGS"
  14735. have_gcc_mmx=no
  14736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14737. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14738. mmx_CFLAGS="-mmmx"
  14739. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14741. /* end confdefs.h. */
  14742. #ifdef __MINGW32__
  14743. #include <_mingw.h>
  14744. #ifdef __MINGW64_VERSION_MAJOR
  14745. #include <intrin.h>
  14746. #else
  14747. #include <mmintrin.h>
  14748. #endif
  14749. #else
  14750. #include <mmintrin.h>
  14751. #endif
  14752. #ifndef __MMX__
  14753. #error Assembler CPP flag not enabled
  14754. #endif
  14755. int
  14756. main ()
  14757. {
  14758. ;
  14759. return 0;
  14760. }
  14761. _ACEOF
  14762. if ac_fn_c_try_compile "$LINENO"; then :
  14763. have_gcc_mmx=yes
  14764. fi
  14765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14767. $as_echo "$have_gcc_mmx" >&6; }
  14768. CFLAGS="$save_CFLAGS"
  14769. if test x$have_gcc_mmx = xyes; then
  14770. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14771. SUMMARY_math="${SUMMARY_math} mmx"
  14772. fi
  14773. fi
  14774. # Check whether --enable-3dnow was given.
  14775. if test "${enable_3dnow+set}" = set; then :
  14776. enableval=$enable_3dnow;
  14777. else
  14778. enable_3dnow=yes
  14779. fi
  14780. if test x$enable_3dnow = xyes; then
  14781. save_CFLAGS="$CFLAGS"
  14782. have_gcc_3dnow=no
  14783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14784. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14785. amd3dnow_CFLAGS="-m3dnow"
  14786. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14788. /* end confdefs.h. */
  14789. #include <mm3dnow.h>
  14790. #ifndef __3dNOW__
  14791. #error Assembler CPP flag not enabled
  14792. #endif
  14793. int
  14794. main ()
  14795. {
  14796. void *p = 0;
  14797. _m_prefetch(p);
  14798. ;
  14799. return 0;
  14800. }
  14801. _ACEOF
  14802. if ac_fn_c_try_link "$LINENO"; then :
  14803. have_gcc_3dnow=yes
  14804. fi
  14805. rm -f core conftest.err conftest.$ac_objext \
  14806. conftest$ac_exeext conftest.$ac_ext
  14807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14808. $as_echo "$have_gcc_3dnow" >&6; }
  14809. CFLAGS="$save_CFLAGS"
  14810. if test x$have_gcc_3dnow = xyes; then
  14811. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14812. SUMMARY_math="${SUMMARY_math} 3dnow"
  14813. fi
  14814. fi
  14815. # Check whether --enable-sse was given.
  14816. if test "${enable_sse+set}" = set; then :
  14817. enableval=$enable_sse;
  14818. else
  14819. enable_sse=yes
  14820. fi
  14821. if test x$enable_sse = xyes; then
  14822. save_CFLAGS="$CFLAGS"
  14823. have_gcc_sse=no
  14824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14825. $as_echo_n "checking for GCC -msse option... " >&6; }
  14826. sse_CFLAGS="-msse"
  14827. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14829. /* end confdefs.h. */
  14830. #ifdef __MINGW32__
  14831. #include <_mingw.h>
  14832. #ifdef __MINGW64_VERSION_MAJOR
  14833. #include <intrin.h>
  14834. #else
  14835. #include <xmmintrin.h>
  14836. #endif
  14837. #else
  14838. #include <xmmintrin.h>
  14839. #endif
  14840. #ifndef __SSE__
  14841. #error Assembler CPP flag not enabled
  14842. #endif
  14843. int
  14844. main ()
  14845. {
  14846. ;
  14847. return 0;
  14848. }
  14849. _ACEOF
  14850. if ac_fn_c_try_compile "$LINENO"; then :
  14851. have_gcc_sse=yes
  14852. fi
  14853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14855. $as_echo "$have_gcc_sse" >&6; }
  14856. CFLAGS="$save_CFLAGS"
  14857. if test x$have_gcc_sse = xyes; then
  14858. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14859. SUMMARY_math="${SUMMARY_math} sse"
  14860. fi
  14861. fi
  14862. # Check whether --enable-sse2 was given.
  14863. if test "${enable_sse2+set}" = set; then :
  14864. enableval=$enable_sse2;
  14865. else
  14866. enable_sse2=$default_ssemath
  14867. fi
  14868. if test x$enable_sse2 = xyes; then
  14869. save_CFLAGS="$CFLAGS"
  14870. have_gcc_sse2=no
  14871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14872. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14873. sse2_CFLAGS="-msse2"
  14874. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14876. /* end confdefs.h. */
  14877. #ifdef __MINGW32__
  14878. #include <_mingw.h>
  14879. #ifdef __MINGW64_VERSION_MAJOR
  14880. #include <intrin.h>
  14881. #else
  14882. #include <emmintrin.h>
  14883. #endif
  14884. #else
  14885. #include <emmintrin.h>
  14886. #endif
  14887. #ifndef __SSE2__
  14888. #error Assembler CPP flag not enabled
  14889. #endif
  14890. int
  14891. main ()
  14892. {
  14893. ;
  14894. return 0;
  14895. }
  14896. _ACEOF
  14897. if ac_fn_c_try_compile "$LINENO"; then :
  14898. have_gcc_sse2=yes
  14899. fi
  14900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14902. $as_echo "$have_gcc_sse2" >&6; }
  14903. CFLAGS="$save_CFLAGS"
  14904. if test x$have_gcc_sse2 = xyes; then
  14905. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14906. SUMMARY_math="${SUMMARY_math} sse2"
  14907. fi
  14908. fi
  14909. # Check whether --enable-sse3 was given.
  14910. if test "${enable_sse3+set}" = set; then :
  14911. enableval=$enable_sse3;
  14912. else
  14913. enable_sse3=$default_ssemath
  14914. fi
  14915. if test x$enable_sse3 = xyes; then
  14916. save_CFLAGS="$CFLAGS"
  14917. have_gcc_sse3=no
  14918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  14919. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  14920. sse3_CFLAGS="-msse3"
  14921. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  14922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14923. /* end confdefs.h. */
  14924. #ifdef __MINGW32__
  14925. #include <_mingw.h>
  14926. #ifdef __MINGW64_VERSION_MAJOR
  14927. #include <intrin.h>
  14928. #else
  14929. #include <pmmintrin.h>
  14930. #endif
  14931. #else
  14932. #include <pmmintrin.h>
  14933. #endif
  14934. #ifndef __SSE2__
  14935. #error Assembler CPP flag not enabled
  14936. #endif
  14937. int
  14938. main ()
  14939. {
  14940. ;
  14941. return 0;
  14942. }
  14943. _ACEOF
  14944. if ac_fn_c_try_compile "$LINENO"; then :
  14945. have_gcc_sse3=yes
  14946. fi
  14947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  14949. $as_echo "$have_gcc_sse3" >&6; }
  14950. CFLAGS="$save_CFLAGS"
  14951. if test x$have_gcc_sse3 = xyes; then
  14952. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  14953. SUMMARY_math="${SUMMARY_math} sse3"
  14954. fi
  14955. fi
  14956. # Check whether --enable-altivec was given.
  14957. if test "${enable_altivec+set}" = set; then :
  14958. enableval=$enable_altivec;
  14959. else
  14960. enable_altivec=yes
  14961. fi
  14962. if test x$enable_altivec = xyes; then
  14963. save_CFLAGS="$CFLAGS"
  14964. have_gcc_altivec=no
  14965. have_altivec_h_hdr=no
  14966. altivec_CFLAGS="-maltivec"
  14967. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14969. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14971. /* end confdefs.h. */
  14972. #include <altivec.h>
  14973. vector unsigned int vzero() {
  14974. return vec_splat_u32(0);
  14975. }
  14976. int
  14977. main ()
  14978. {
  14979. ;
  14980. return 0;
  14981. }
  14982. _ACEOF
  14983. if ac_fn_c_try_compile "$LINENO"; then :
  14984. have_gcc_altivec=yes
  14985. have_altivec_h_hdr=yes
  14986. fi
  14987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14989. $as_echo "$have_gcc_altivec" >&6; }
  14990. if test x$have_gcc_altivec = xno; then
  14991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14992. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14994. /* end confdefs.h. */
  14995. vector unsigned int vzero() {
  14996. return vec_splat_u32(0);
  14997. }
  14998. int
  14999. main ()
  15000. {
  15001. ;
  15002. return 0;
  15003. }
  15004. _ACEOF
  15005. if ac_fn_c_try_compile "$LINENO"; then :
  15006. have_gcc_altivec=yes
  15007. fi
  15008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15010. $as_echo "$have_gcc_altivec" >&6; }
  15011. fi
  15012. if test x$have_gcc_altivec = xno; then
  15013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15014. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15015. altivec_CFLAGS="-faltivec"
  15016. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15018. /* end confdefs.h. */
  15019. #include <altivec.h>
  15020. vector unsigned int vzero() {
  15021. return vec_splat_u32(0);
  15022. }
  15023. int
  15024. main ()
  15025. {
  15026. ;
  15027. return 0;
  15028. }
  15029. _ACEOF
  15030. if ac_fn_c_try_compile "$LINENO"; then :
  15031. have_gcc_altivec=yes
  15032. have_altivec_h_hdr=yes
  15033. fi
  15034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15036. $as_echo "$have_gcc_altivec" >&6; }
  15037. fi
  15038. if test x$have_gcc_altivec = xno; then
  15039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15040. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15042. /* end confdefs.h. */
  15043. vector unsigned int vzero() {
  15044. return vec_splat_u32(0);
  15045. }
  15046. int
  15047. main ()
  15048. {
  15049. ;
  15050. return 0;
  15051. }
  15052. _ACEOF
  15053. if ac_fn_c_try_compile "$LINENO"; then :
  15054. have_gcc_altivec=yes
  15055. fi
  15056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15058. $as_echo "$have_gcc_altivec" >&6; }
  15059. fi
  15060. CFLAGS="$save_CFLAGS"
  15061. if test x$have_gcc_altivec = xyes; then
  15062. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15063. if test x$have_altivec_h_hdr = xyes; then
  15064. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15065. fi
  15066. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15067. SUMMARY_math="${SUMMARY_math} altivec"
  15068. fi
  15069. fi
  15070. fi
  15071. CheckOSS()
  15072. {
  15073. # Check whether --enable-oss was given.
  15074. if test "${enable_oss+set}" = set; then :
  15075. enableval=$enable_oss;
  15076. else
  15077. enable_oss=maybe
  15078. fi
  15079. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15080. # use sndio instead. So on there, we default to disabled. You can force
  15081. # it on if you really want, though.
  15082. if test x$enable_oss = xmaybe; then
  15083. enable_oss=yes
  15084. case "$host" in
  15085. *-*-openbsd*)
  15086. enable_oss=no;;
  15087. esac
  15088. fi
  15089. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15091. $as_echo_n "checking for OSS audio support... " >&6; }
  15092. have_oss=no
  15093. if test x$have_oss != xyes; then
  15094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15095. /* end confdefs.h. */
  15096. #include <sys/soundcard.h>
  15097. int
  15098. main ()
  15099. {
  15100. int arg = SNDCTL_DSP_SETFRAGMENT;
  15101. ;
  15102. return 0;
  15103. }
  15104. _ACEOF
  15105. if ac_fn_c_try_compile "$LINENO"; then :
  15106. have_oss=yes
  15107. fi
  15108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15109. fi
  15110. if test x$have_oss != xyes; then
  15111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15112. /* end confdefs.h. */
  15113. #include <soundcard.h>
  15114. int
  15115. main ()
  15116. {
  15117. int arg = SNDCTL_DSP_SETFRAGMENT;
  15118. ;
  15119. return 0;
  15120. }
  15121. _ACEOF
  15122. if ac_fn_c_try_compile "$LINENO"; then :
  15123. have_oss=yes
  15124. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15125. fi
  15126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15127. fi
  15128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15129. $as_echo "$have_oss" >&6; }
  15130. if test x$have_oss = xyes; then
  15131. SUMMARY_audio="${SUMMARY_audio} oss"
  15132. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15133. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15134. have_audio=yes
  15135. # We may need to link with ossaudio emulation library
  15136. case "$host" in
  15137. *-*-openbsd*|*-*-netbsd*)
  15138. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15139. esac
  15140. fi
  15141. fi
  15142. }
  15143. CheckALSA()
  15144. {
  15145. # Check whether --enable-alsa was given.
  15146. if test "${enable_alsa+set}" = set; then :
  15147. enableval=$enable_alsa;
  15148. else
  15149. enable_alsa=yes
  15150. fi
  15151. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15152. alsa_save_CFLAGS="$CFLAGS"
  15153. alsa_save_LDFLAGS="$LDFLAGS"
  15154. alsa_save_LIBS="$LIBS"
  15155. alsa_found=yes
  15156. # Check whether --with-alsa-prefix was given.
  15157. if test "${with_alsa_prefix+set}" = set; then :
  15158. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15159. else
  15160. alsa_prefix=""
  15161. fi
  15162. # Check whether --with-alsa-inc-prefix was given.
  15163. if test "${with_alsa_inc_prefix+set}" = set; then :
  15164. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15165. else
  15166. alsa_inc_prefix=""
  15167. fi
  15168. # Check whether --enable-alsatest was given.
  15169. if test "${enable_alsatest+set}" = set; then :
  15170. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15171. else
  15172. enable_alsatest=yes
  15173. fi
  15174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15175. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15176. if test "$alsa_inc_prefix" != "" ; then
  15177. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15178. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15179. fi
  15180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15181. $as_echo "$ALSA_CFLAGS" >&6; }
  15182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15183. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15184. if test "$alsa_prefix" != "" ; then
  15185. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15186. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15187. fi
  15188. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15189. LIBS=`echo $LIBS | sed 's/-lm//'`
  15190. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15191. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15192. LIBS=`echo $LIBS | sed 's/ //'`
  15193. LIBS="$ALSA_LIBS $LIBS"
  15194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15195. $as_echo "$ALSA_LIBS" >&6; }
  15196. min_alsa_version=1.0.11
  15197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15198. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15199. no_alsa=""
  15200. alsa_min_major_version=`echo $min_alsa_version | \
  15201. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15202. alsa_min_minor_version=`echo $min_alsa_version | \
  15203. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15204. alsa_min_micro_version=`echo $min_alsa_version | \
  15205. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15206. ac_ext=c
  15207. ac_cpp='$CPP $CPPFLAGS'
  15208. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15209. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15210. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15212. /* end confdefs.h. */
  15213. #include <alsa/asoundlib.h>
  15214. int
  15215. main ()
  15216. {
  15217. /* ensure backward compatibility */
  15218. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15219. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15220. #endif
  15221. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15222. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15223. #endif
  15224. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15225. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15226. #endif
  15227. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15228. exit(0);
  15229. # else
  15230. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15231. # error not present
  15232. # endif
  15233. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15234. exit(0);
  15235. # else
  15236. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15237. # error not present
  15238. # endif
  15239. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15240. # error not present
  15241. # endif
  15242. # endif
  15243. # endif
  15244. exit(0);
  15245. ;
  15246. return 0;
  15247. }
  15248. _ACEOF
  15249. if ac_fn_c_try_compile "$LINENO"; then :
  15250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15251. $as_echo "found." >&6; }
  15252. else
  15253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15254. $as_echo "not present." >&6; }
  15255. alsa_found=no
  15256. fi
  15257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15258. ac_ext=c
  15259. ac_cpp='$CPP $CPPFLAGS'
  15260. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15261. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15262. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15263. if test "x$enable_alsatest" = "xyes"; then
  15264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15265. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15266. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15267. $as_echo_n "(cached) " >&6
  15268. else
  15269. ac_check_lib_save_LIBS=$LIBS
  15270. LIBS="-lasound $LIBS"
  15271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15272. /* end confdefs.h. */
  15273. /* Override any GCC internal prototype to avoid an error.
  15274. Use char because int might match the return type of a GCC
  15275. builtin and then its argument prototype would still apply. */
  15276. #ifdef __cplusplus
  15277. extern "C"
  15278. #endif
  15279. char snd_ctl_open ();
  15280. int
  15281. main ()
  15282. {
  15283. return snd_ctl_open ();
  15284. ;
  15285. return 0;
  15286. }
  15287. _ACEOF
  15288. if ac_fn_c_try_link "$LINENO"; then :
  15289. ac_cv_lib_asound_snd_ctl_open=yes
  15290. else
  15291. ac_cv_lib_asound_snd_ctl_open=no
  15292. fi
  15293. rm -f core conftest.err conftest.$ac_objext \
  15294. conftest$ac_exeext conftest.$ac_ext
  15295. LIBS=$ac_check_lib_save_LIBS
  15296. fi
  15297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15298. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15299. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15300. cat >>confdefs.h <<_ACEOF
  15301. #define HAVE_LIBASOUND 1
  15302. _ACEOF
  15303. LIBS="-lasound $LIBS"
  15304. else
  15305. alsa_found=no
  15306. fi
  15307. fi
  15308. if test "x$alsa_found" = "xyes" ; then
  15309. have_alsa=yes
  15310. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15311. LIBS=`echo $LIBS | sed 's/ //'`
  15312. LIBS="-lasound $LIBS"
  15313. fi
  15314. if test "x$alsa_found" = "xno" ; then
  15315. have_alsa=no
  15316. CFLAGS="$alsa_save_CFLAGS"
  15317. LDFLAGS="$alsa_save_LDFLAGS"
  15318. LIBS="$alsa_save_LIBS"
  15319. ALSA_CFLAGS=""
  15320. ALSA_LIBS=""
  15321. fi
  15322. # Restore all flags from before the ALSA detection runs
  15323. CFLAGS="$alsa_save_CFLAGS"
  15324. LDFLAGS="$alsa_save_LDFLAGS"
  15325. LIBS="$alsa_save_LIBS"
  15326. if test x$have_alsa = xyes; then
  15327. # Check whether --enable-alsa-shared was given.
  15328. if test "${enable_alsa_shared+set}" = set; then :
  15329. enableval=$enable_alsa_shared;
  15330. else
  15331. enable_alsa_shared=yes
  15332. fi
  15333. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15334. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15335. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15336. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15337. if test x$have_loadso != xyes && \
  15338. test x$enable_alsa_shared = xyes; then
  15339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15340. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15341. fi
  15342. if test x$have_loadso = xyes && \
  15343. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15344. echo "-- dynamic libasound -> $alsa_lib"
  15345. cat >>confdefs.h <<_ACEOF
  15346. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15347. _ACEOF
  15348. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15349. else
  15350. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15351. SUMMARY_audio="${SUMMARY_audio} alsa"
  15352. fi
  15353. have_audio=yes
  15354. fi
  15355. fi
  15356. }
  15357. CheckESD()
  15358. {
  15359. # Check whether --enable-esd was given.
  15360. if test "${enable_esd+set}" = set; then :
  15361. enableval=$enable_esd;
  15362. else
  15363. enable_esd=yes
  15364. fi
  15365. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15366. # Check whether --with-esd-prefix was given.
  15367. if test "${with_esd_prefix+set}" = set; then :
  15368. withval=$with_esd_prefix; esd_prefix="$withval"
  15369. else
  15370. esd_prefix=""
  15371. fi
  15372. # Check whether --with-esd-exec-prefix was given.
  15373. if test "${with_esd_exec_prefix+set}" = set; then :
  15374. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15375. else
  15376. esd_exec_prefix=""
  15377. fi
  15378. # Check whether --enable-esdtest was given.
  15379. if test "${enable_esdtest+set}" = set; then :
  15380. enableval=$enable_esdtest;
  15381. else
  15382. enable_esdtest=yes
  15383. fi
  15384. if test x$esd_exec_prefix != x ; then
  15385. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15386. if test x${ESD_CONFIG+set} != xset ; then
  15387. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15388. fi
  15389. fi
  15390. if test x$esd_prefix != x ; then
  15391. esd_args="$esd_args --prefix=$esd_prefix"
  15392. if test x${ESD_CONFIG+set} != xset ; then
  15393. ESD_CONFIG=$esd_prefix/bin/esd-config
  15394. fi
  15395. fi
  15396. # Extract the first word of "esd-config", so it can be a program name with args.
  15397. set dummy esd-config; ac_word=$2
  15398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15399. $as_echo_n "checking for $ac_word... " >&6; }
  15400. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15401. $as_echo_n "(cached) " >&6
  15402. else
  15403. case $ESD_CONFIG in
  15404. [\\/]* | ?:[\\/]*)
  15405. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15406. ;;
  15407. *)
  15408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15409. for as_dir in $PATH
  15410. do
  15411. IFS=$as_save_IFS
  15412. test -z "$as_dir" && as_dir=.
  15413. for ac_exec_ext in '' $ac_executable_extensions; do
  15414. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15415. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15417. break 2
  15418. fi
  15419. done
  15420. done
  15421. IFS=$as_save_IFS
  15422. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15423. ;;
  15424. esac
  15425. fi
  15426. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15427. if test -n "$ESD_CONFIG"; then
  15428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15429. $as_echo "$ESD_CONFIG" >&6; }
  15430. else
  15431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15432. $as_echo "no" >&6; }
  15433. fi
  15434. min_esd_version=0.2.8
  15435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15436. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15437. no_esd=""
  15438. if test "$ESD_CONFIG" = "no" ; then
  15439. no_esd=yes
  15440. else
  15441. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15442. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15443. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15444. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15445. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15446. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15447. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15448. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15449. if test "x$enable_esdtest" = "xyes" ; then
  15450. ac_save_CFLAGS="$CFLAGS"
  15451. ac_save_LIBS="$LIBS"
  15452. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15453. LIBS="$LIBS $ESD_LIBS"
  15454. rm -f conf.esdtest
  15455. if test "$cross_compiling" = yes; then :
  15456. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15457. else
  15458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15459. /* end confdefs.h. */
  15460. #include <stdio.h>
  15461. #include <stdlib.h>
  15462. #include <string.h>
  15463. #include <esd.h>
  15464. char*
  15465. my_strdup (char *str)
  15466. {
  15467. char *new_str;
  15468. if (str)
  15469. {
  15470. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15471. strcpy (new_str, str);
  15472. }
  15473. else
  15474. new_str = NULL;
  15475. return new_str;
  15476. }
  15477. int main ()
  15478. {
  15479. int major, minor, micro;
  15480. char *tmp_version;
  15481. system ("touch conf.esdtest");
  15482. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15483. tmp_version = my_strdup("$min_esd_version");
  15484. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15485. printf("%s, bad version string\n", "$min_esd_version");
  15486. exit(1);
  15487. }
  15488. if (($esd_major_version > major) ||
  15489. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15490. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15491. {
  15492. return 0;
  15493. }
  15494. else
  15495. {
  15496. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15497. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15498. printf("*** best to upgrade to the required version.\n");
  15499. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15500. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15501. printf("*** config.cache before re-running configure\n");
  15502. return 1;
  15503. }
  15504. }
  15505. _ACEOF
  15506. if ac_fn_c_try_run "$LINENO"; then :
  15507. else
  15508. no_esd=yes
  15509. fi
  15510. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15511. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15512. fi
  15513. CFLAGS="$ac_save_CFLAGS"
  15514. LIBS="$ac_save_LIBS"
  15515. fi
  15516. fi
  15517. if test "x$no_esd" = x ; then
  15518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15519. $as_echo "yes" >&6; }
  15520. have_esd=yes
  15521. else
  15522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15523. $as_echo "no" >&6; }
  15524. if test "$ESD_CONFIG" = "no" ; then
  15525. echo "*** The esd-config script installed by ESD could not be found"
  15526. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15527. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15528. echo "*** full path to esd-config."
  15529. else
  15530. if test -f conf.esdtest ; then
  15531. :
  15532. else
  15533. echo "*** Could not run ESD test program, checking why..."
  15534. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15535. LIBS="$LIBS $ESD_LIBS"
  15536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15537. /* end confdefs.h. */
  15538. #include <stdio.h>
  15539. #include <esd.h>
  15540. int
  15541. main ()
  15542. {
  15543. return 0;
  15544. ;
  15545. return 0;
  15546. }
  15547. _ACEOF
  15548. if ac_fn_c_try_link "$LINENO"; then :
  15549. echo "*** The test program compiled, but did not run. This usually means"
  15550. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15551. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15552. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15553. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15554. echo "*** is required on your system"
  15555. echo "***"
  15556. echo "*** If you have an old version installed, it is best to remove it, although"
  15557. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15558. else
  15559. echo "*** The test program failed to compile or link. See the file config.log for the"
  15560. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15561. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15562. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15563. fi
  15564. rm -f core conftest.err conftest.$ac_objext \
  15565. conftest$ac_exeext conftest.$ac_ext
  15566. CFLAGS="$ac_save_CFLAGS"
  15567. LIBS="$ac_save_LIBS"
  15568. fi
  15569. fi
  15570. ESD_CFLAGS=""
  15571. ESD_LIBS=""
  15572. have_esd=no
  15573. fi
  15574. rm -f conf.esdtest
  15575. if test x$have_esd = xyes; then
  15576. # Check whether --enable-esd-shared was given.
  15577. if test "${enable_esd_shared+set}" = set; then :
  15578. enableval=$enable_esd_shared;
  15579. else
  15580. enable_esd_shared=yes
  15581. fi
  15582. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15583. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15584. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15585. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15586. if test x$have_loadso != xyes && \
  15587. test x$enable_esd_shared = xyes; then
  15588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15589. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15590. fi
  15591. if test x$have_loadso = xyes && \
  15592. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15593. echo "-- dynamic libesd -> $esd_lib"
  15594. cat >>confdefs.h <<_ACEOF
  15595. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15596. _ACEOF
  15597. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15598. else
  15599. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15600. SUMMARY_audio="${SUMMARY_audio} esd"
  15601. fi
  15602. have_audio=yes
  15603. fi
  15604. fi
  15605. }
  15606. CheckPulseAudio()
  15607. {
  15608. # Check whether --enable-pulseaudio was given.
  15609. if test "${enable_pulseaudio+set}" = set; then :
  15610. enableval=$enable_pulseaudio;
  15611. else
  15612. enable_pulseaudio=yes
  15613. fi
  15614. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15615. audio_pulseaudio=no
  15616. PULSEAUDIO_REQUIRED_VERSION=0.9
  15617. # Extract the first word of "pkg-config", so it can be a program name with args.
  15618. set dummy pkg-config; ac_word=$2
  15619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15620. $as_echo_n "checking for $ac_word... " >&6; }
  15621. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15622. $as_echo_n "(cached) " >&6
  15623. else
  15624. case $PKG_CONFIG in
  15625. [\\/]* | ?:[\\/]*)
  15626. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15627. ;;
  15628. *)
  15629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15630. for as_dir in $PATH
  15631. do
  15632. IFS=$as_save_IFS
  15633. test -z "$as_dir" && as_dir=.
  15634. for ac_exec_ext in '' $ac_executable_extensions; do
  15635. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15636. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15638. break 2
  15639. fi
  15640. done
  15641. done
  15642. IFS=$as_save_IFS
  15643. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15644. ;;
  15645. esac
  15646. fi
  15647. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15648. if test -n "$PKG_CONFIG"; then
  15649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15650. $as_echo "$PKG_CONFIG" >&6; }
  15651. else
  15652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15653. $as_echo "no" >&6; }
  15654. fi
  15655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15656. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15657. if test x$PKG_CONFIG != xno; then
  15658. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15659. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15660. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15661. audio_pulseaudio=yes
  15662. fi
  15663. fi
  15664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15665. $as_echo "$audio_pulseaudio" >&6; }
  15666. if test x$audio_pulseaudio = xyes; then
  15667. # Check whether --enable-pulseaudio-shared was given.
  15668. if test "${enable_pulseaudio_shared+set}" = set; then :
  15669. enableval=$enable_pulseaudio_shared;
  15670. else
  15671. enable_pulseaudio_shared=yes
  15672. fi
  15673. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15674. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15675. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15676. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15677. if test x$have_loadso != xyes && \
  15678. test x$enable_pulseaudio_shared = xyes; then
  15679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15680. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15681. fi
  15682. if test x$have_loadso = xyes && \
  15683. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15684. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15685. cat >>confdefs.h <<_ACEOF
  15686. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15687. _ACEOF
  15688. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15689. case "$host" in
  15690. # On Solaris, pulseaudio must be linked deferred explicitly
  15691. # to prevent undefined symbol failures.
  15692. *-*-solaris*)
  15693. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15694. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15695. esac
  15696. else
  15697. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15698. SUMMARY_audio="${SUMMARY_audio} pulse"
  15699. fi
  15700. have_audio=yes
  15701. fi
  15702. fi
  15703. }
  15704. CheckARTSC()
  15705. {
  15706. # Check whether --enable-arts was given.
  15707. if test "${enable_arts+set}" = set; then :
  15708. enableval=$enable_arts;
  15709. else
  15710. enable_arts=yes
  15711. fi
  15712. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15713. # Extract the first word of "artsc-config", so it can be a program name with args.
  15714. set dummy artsc-config; ac_word=$2
  15715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15716. $as_echo_n "checking for $ac_word... " >&6; }
  15717. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15718. $as_echo_n "(cached) " >&6
  15719. else
  15720. case $ARTSCONFIG in
  15721. [\\/]* | ?:[\\/]*)
  15722. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15723. ;;
  15724. *)
  15725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15726. for as_dir in $PATH
  15727. do
  15728. IFS=$as_save_IFS
  15729. test -z "$as_dir" && as_dir=.
  15730. for ac_exec_ext in '' $ac_executable_extensions; do
  15731. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15732. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15734. break 2
  15735. fi
  15736. done
  15737. done
  15738. IFS=$as_save_IFS
  15739. ;;
  15740. esac
  15741. fi
  15742. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15743. if test -n "$ARTSCONFIG"; then
  15744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15745. $as_echo "$ARTSCONFIG" >&6; }
  15746. else
  15747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15748. $as_echo "no" >&6; }
  15749. fi
  15750. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15751. : # arts isn't installed
  15752. else
  15753. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15754. ARTS_LIBS=`$ARTSCONFIG --libs`
  15755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15756. $as_echo_n "checking for aRts development environment... " >&6; }
  15757. audio_arts=no
  15758. save_CFLAGS="$CFLAGS"
  15759. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15761. /* end confdefs.h. */
  15762. #include <artsc.h>
  15763. int
  15764. main ()
  15765. {
  15766. arts_stream_t stream;
  15767. ;
  15768. return 0;
  15769. }
  15770. _ACEOF
  15771. if ac_fn_c_try_compile "$LINENO"; then :
  15772. audio_arts=yes
  15773. fi
  15774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15775. CFLAGS="$save_CFLAGS"
  15776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15777. $as_echo "$audio_arts" >&6; }
  15778. if test x$audio_arts = xyes; then
  15779. # Check whether --enable-arts-shared was given.
  15780. if test "${enable_arts_shared+set}" = set; then :
  15781. enableval=$enable_arts_shared;
  15782. else
  15783. enable_arts_shared=yes
  15784. fi
  15785. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15786. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15787. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15788. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15789. if test x$have_loadso != xyes && \
  15790. test x$enable_arts_shared = xyes; then
  15791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15792. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15793. fi
  15794. if test x$have_loadso = xyes && \
  15795. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15796. echo "-- dynamic libartsc -> $arts_lib"
  15797. cat >>confdefs.h <<_ACEOF
  15798. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15799. _ACEOF
  15800. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15801. else
  15802. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15803. SUMMARY_audio="${SUMMARY_audio} arts"
  15804. fi
  15805. have_audio=yes
  15806. fi
  15807. fi
  15808. fi
  15809. }
  15810. CheckNAS()
  15811. {
  15812. # Check whether --enable-nas was given.
  15813. if test "${enable_nas+set}" = set; then :
  15814. enableval=$enable_nas;
  15815. else
  15816. enable_nas=yes
  15817. fi
  15818. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15819. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15820. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15821. have_nas_hdr=yes
  15822. fi
  15823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15824. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15825. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15826. $as_echo_n "(cached) " >&6
  15827. else
  15828. ac_check_lib_save_LIBS=$LIBS
  15829. LIBS="-laudio $LIBS"
  15830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15831. /* end confdefs.h. */
  15832. /* Override any GCC internal prototype to avoid an error.
  15833. Use char because int might match the return type of a GCC
  15834. builtin and then its argument prototype would still apply. */
  15835. #ifdef __cplusplus
  15836. extern "C"
  15837. #endif
  15838. char AuOpenServer ();
  15839. int
  15840. main ()
  15841. {
  15842. return AuOpenServer ();
  15843. ;
  15844. return 0;
  15845. }
  15846. _ACEOF
  15847. if ac_fn_c_try_link "$LINENO"; then :
  15848. ac_cv_lib_audio_AuOpenServer=yes
  15849. else
  15850. ac_cv_lib_audio_AuOpenServer=no
  15851. fi
  15852. rm -f core conftest.err conftest.$ac_objext \
  15853. conftest$ac_exeext conftest.$ac_ext
  15854. LIBS=$ac_check_lib_save_LIBS
  15855. fi
  15856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15857. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15858. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15859. have_nas_lib=yes
  15860. fi
  15861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15862. $as_echo_n "checking for NAS audio support... " >&6; }
  15863. have_nas=no
  15864. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15865. have_nas=yes
  15866. NAS_LIBS="-laudio"
  15867. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15868. have_nas=yes
  15869. NAS_CFLAGS="-I/usr/X11R6/include/"
  15870. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15871. fi
  15872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15873. $as_echo "$have_nas" >&6; }
  15874. if test x$have_nas = xyes; then
  15875. # Check whether --enable-nas-shared was given.
  15876. if test "${enable_nas_shared+set}" = set; then :
  15877. enableval=$enable_nas_shared;
  15878. else
  15879. enable_nas_shared=yes
  15880. fi
  15881. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15882. if test x$have_loadso != xyes && \
  15883. test x$enable_nas_shared = xyes; then
  15884. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15885. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15886. fi
  15887. if test x$have_loadso = xyes && \
  15888. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15889. echo "-- dynamic libaudio -> $nas_lib"
  15890. cat >>confdefs.h <<_ACEOF
  15891. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15892. _ACEOF
  15893. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15894. else
  15895. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15896. SUMMARY_audio="${SUMMARY_audio} nas"
  15897. fi
  15898. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15899. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15900. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15901. have_audio=yes
  15902. fi
  15903. fi
  15904. }
  15905. CheckSNDIO()
  15906. {
  15907. # Check whether --enable-sndio was given.
  15908. if test "${enable_sndio+set}" = set; then :
  15909. enableval=$enable_sndio;
  15910. else
  15911. enable_sndio=yes
  15912. fi
  15913. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15914. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15915. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15916. have_sndio_hdr=yes
  15917. fi
  15918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15919. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15920. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15921. $as_echo_n "(cached) " >&6
  15922. else
  15923. ac_check_lib_save_LIBS=$LIBS
  15924. LIBS="-lsndio $LIBS"
  15925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15926. /* end confdefs.h. */
  15927. /* Override any GCC internal prototype to avoid an error.
  15928. Use char because int might match the return type of a GCC
  15929. builtin and then its argument prototype would still apply. */
  15930. #ifdef __cplusplus
  15931. extern "C"
  15932. #endif
  15933. char sio_open ();
  15934. int
  15935. main ()
  15936. {
  15937. return sio_open ();
  15938. ;
  15939. return 0;
  15940. }
  15941. _ACEOF
  15942. if ac_fn_c_try_link "$LINENO"; then :
  15943. ac_cv_lib_sndio_sio_open=yes
  15944. else
  15945. ac_cv_lib_sndio_sio_open=no
  15946. fi
  15947. rm -f core conftest.err conftest.$ac_objext \
  15948. conftest$ac_exeext conftest.$ac_ext
  15949. LIBS=$ac_check_lib_save_LIBS
  15950. fi
  15951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15952. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15953. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15954. have_sndio_lib=yes
  15955. fi
  15956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15957. $as_echo_n "checking for sndio audio support... " >&6; }
  15958. have_sndio=no
  15959. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15960. have_sndio=yes
  15961. SNDIO_LIBS="-lsndio"
  15962. fi
  15963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15964. $as_echo "$have_sndio" >&6; }
  15965. if test x$have_sndio = xyes; then
  15966. # Check whether --enable-sndio-shared was given.
  15967. if test "${enable_sndio_shared+set}" = set; then :
  15968. enableval=$enable_sndio_shared;
  15969. else
  15970. enable_sndio_shared=yes
  15971. fi
  15972. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15973. if test x$have_loadso != xyes && \
  15974. test x$enable_sndio_shared = xyes; then
  15975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15976. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15977. fi
  15978. if test x$have_loadso = xyes && \
  15979. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15980. echo "-- dynamic libsndio -> $sndio_lib"
  15981. cat >>confdefs.h <<_ACEOF
  15982. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15983. _ACEOF
  15984. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  15985. else
  15986. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15987. SUMMARY_audio="${SUMMARY_audio} sndio"
  15988. fi
  15989. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15990. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15991. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15992. have_audio=yes
  15993. fi
  15994. fi
  15995. }
  15996. CheckFusionSound()
  15997. {
  15998. # Check whether --enable-fusionsound was given.
  15999. if test "${enable_fusionsound+set}" = set; then :
  16000. enableval=$enable_fusionsound;
  16001. else
  16002. enable_fusionsound=no
  16003. fi
  16004. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16005. fusionsound=no
  16006. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16007. # Extract the first word of "pkg-config", so it can be a program name with args.
  16008. set dummy pkg-config; ac_word=$2
  16009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16010. $as_echo_n "checking for $ac_word... " >&6; }
  16011. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16012. $as_echo_n "(cached) " >&6
  16013. else
  16014. case $PKG_CONFIG in
  16015. [\\/]* | ?:[\\/]*)
  16016. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16017. ;;
  16018. *)
  16019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16020. for as_dir in $PATH
  16021. do
  16022. IFS=$as_save_IFS
  16023. test -z "$as_dir" && as_dir=.
  16024. for ac_exec_ext in '' $ac_executable_extensions; do
  16025. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16026. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16027. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16028. break 2
  16029. fi
  16030. done
  16031. done
  16032. IFS=$as_save_IFS
  16033. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16034. ;;
  16035. esac
  16036. fi
  16037. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16038. if test -n "$PKG_CONFIG"; then
  16039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16040. $as_echo "$PKG_CONFIG" >&6; }
  16041. else
  16042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16043. $as_echo "no" >&6; }
  16044. fi
  16045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16046. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16047. if test x$PKG_CONFIG != xno; then
  16048. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16049. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16050. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16051. fusionsound=yes
  16052. fi
  16053. fi
  16054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16055. $as_echo "$fusionsound" >&6; }
  16056. if test x$fusionsound = xyes; then
  16057. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16058. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16059. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16060. # Check whether --enable-fusionsound-shared was given.
  16061. if test "${enable_fusionsound_shared+set}" = set; then :
  16062. enableval=$enable_fusionsound_shared;
  16063. else
  16064. enable_fusionsound_shared=yes
  16065. fi
  16066. fusionsound_shared=no
  16067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16068. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16069. if test x$have_loadso != xyes && \
  16070. test x$enable_fusionsound_shared = xyes; then
  16071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16072. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16073. fi
  16074. if test x$have_loadso = xyes && \
  16075. test x$enable_fusionsound_shared = xyes; then
  16076. cat >>confdefs.h <<_ACEOF
  16077. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16078. _ACEOF
  16079. fusionsound_shared=yes
  16080. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16081. else
  16082. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16083. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16084. fi
  16085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16086. $as_echo "$fusionsound_shared" >&6; }
  16087. have_audio=yes
  16088. fi
  16089. fi
  16090. }
  16091. CheckDiskAudio()
  16092. {
  16093. # Check whether --enable-diskaudio was given.
  16094. if test "${enable_diskaudio+set}" = set; then :
  16095. enableval=$enable_diskaudio;
  16096. else
  16097. enable_diskaudio=yes
  16098. fi
  16099. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16100. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16101. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16102. SUMMARY_audio="${SUMMARY_audio} disk"
  16103. fi
  16104. }
  16105. CheckDummyAudio()
  16106. {
  16107. # Check whether --enable-dummyaudio was given.
  16108. if test "${enable_dummyaudio+set}" = set; then :
  16109. enableval=$enable_dummyaudio;
  16110. else
  16111. enable_dummyaudio=yes
  16112. fi
  16113. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16114. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16115. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16116. SUMMARY_audio="${SUMMARY_audio} dummy"
  16117. fi
  16118. }
  16119. CheckLibSampleRate()
  16120. {
  16121. # Check whether --enable-libsamplerate was given.
  16122. if test "${enable_libsamplerate+set}" = set; then :
  16123. enableval=$enable_libsamplerate;
  16124. else
  16125. enable_libsamplerate=yes
  16126. fi
  16127. if test x$enable_libsamplerate = xyes; then
  16128. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16129. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16130. have_samplerate_h_hdr=yes
  16131. else
  16132. have_samplerate_h_hdr=no
  16133. fi
  16134. if test x$have_samplerate_h_hdr = xyes; then
  16135. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16136. # Check whether --enable-libsamplerate-shared was given.
  16137. if test "${enable_libsamplerate_shared+set}" = set; then :
  16138. enableval=$enable_libsamplerate_shared;
  16139. else
  16140. enable_libsamplerate_shared=yes
  16141. fi
  16142. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16143. if test x$have_loadso != xyes && \
  16144. test x$enable_libsamplerate_shared = xyes; then
  16145. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16146. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16147. fi
  16148. if test x$have_loadso = xyes && \
  16149. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16150. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16151. cat >>confdefs.h <<_ACEOF
  16152. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16153. _ACEOF
  16154. else
  16155. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16156. fi
  16157. fi
  16158. fi
  16159. }
  16160. CheckVisibilityHidden()
  16161. {
  16162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16163. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16164. have_gcc_fvisibility=no
  16165. visibility_CFLAGS="-fvisibility=hidden"
  16166. save_CFLAGS="$CFLAGS"
  16167. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16169. /* end confdefs.h. */
  16170. #if !defined(__GNUC__) || __GNUC__ < 4
  16171. #error SDL only uses visibility attributes in GCC 4 or newer
  16172. #endif
  16173. int
  16174. main ()
  16175. {
  16176. ;
  16177. return 0;
  16178. }
  16179. _ACEOF
  16180. if ac_fn_c_try_compile "$LINENO"; then :
  16181. have_gcc_fvisibility=yes
  16182. fi
  16183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16185. $as_echo "$have_gcc_fvisibility" >&6; }
  16186. CFLAGS="$save_CFLAGS"
  16187. if test x$have_gcc_fvisibility = xyes; then
  16188. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16189. fi
  16190. }
  16191. CheckStackBoundary()
  16192. {
  16193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16194. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16195. have_gcc_preferred_stack_boundary=no
  16196. save_CFLAGS="$CFLAGS"
  16197. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16199. /* end confdefs.h. */
  16200. int x = 0;
  16201. int
  16202. main ()
  16203. {
  16204. ;
  16205. return 0;
  16206. }
  16207. _ACEOF
  16208. if ac_fn_c_try_compile "$LINENO"; then :
  16209. have_gcc_preferred_stack_boundary=yes
  16210. fi
  16211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16213. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16214. CFLAGS="$save_CFLAGS"
  16215. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16216. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16217. fi
  16218. }
  16219. CheckDeclarationAfterStatement()
  16220. {
  16221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16222. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16223. have_gcc_declaration_after_statement=no
  16224. save_CFLAGS="$CFLAGS"
  16225. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16227. /* end confdefs.h. */
  16228. int x = 0;
  16229. int
  16230. main ()
  16231. {
  16232. ;
  16233. return 0;
  16234. }
  16235. _ACEOF
  16236. if ac_fn_c_try_compile "$LINENO"; then :
  16237. have_gcc_declaration_after_statement=yes
  16238. fi
  16239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16241. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16242. CFLAGS="$save_CFLAGS"
  16243. if test x$have_gcc_declaration_after_statement = xyes; then
  16244. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16245. fi
  16246. }
  16247. CheckWarnAll()
  16248. {
  16249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16250. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16251. have_gcc_Wall=no
  16252. save_CFLAGS="$CFLAGS"
  16253. CFLAGS="$save_CFLAGS -Wall"
  16254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16255. /* end confdefs.h. */
  16256. int x = 0;
  16257. int
  16258. main ()
  16259. {
  16260. ;
  16261. return 0;
  16262. }
  16263. _ACEOF
  16264. if ac_fn_c_try_compile "$LINENO"; then :
  16265. have_gcc_Wall=yes
  16266. fi
  16267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16269. $as_echo "$have_gcc_Wall" >&6; }
  16270. CFLAGS="$save_CFLAGS"
  16271. if test x$have_gcc_Wall = xyes; then
  16272. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16274. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16275. need_gcc_Wno_multichar=no
  16276. case "$host" in
  16277. *-*-haiku*)
  16278. need_gcc_Wno_multichar=yes
  16279. ;;
  16280. esac
  16281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16282. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16283. if test x$need_gcc_Wno_multichar = xyes; then
  16284. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16285. fi
  16286. fi
  16287. }
  16288. CheckWayland()
  16289. {
  16290. # Check whether --enable-video-wayland was given.
  16291. if test "${enable_video_wayland+set}" = set; then :
  16292. enableval=$enable_video_wayland;
  16293. else
  16294. enable_video_wayland=yes
  16295. fi
  16296. # Check whether --enable-video-wayland-qt-touch was given.
  16297. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16298. enableval=$enable_video_wayland_qt_touch;
  16299. else
  16300. enable_video_wayland_qt_touch=yes
  16301. fi
  16302. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16303. # Extract the first word of "pkg-config", so it can be a program name with args.
  16304. set dummy pkg-config; ac_word=$2
  16305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16306. $as_echo_n "checking for $ac_word... " >&6; }
  16307. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16308. $as_echo_n "(cached) " >&6
  16309. else
  16310. case $PKG_CONFIG in
  16311. [\\/]* | ?:[\\/]*)
  16312. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16313. ;;
  16314. *)
  16315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16316. for as_dir in $PATH
  16317. do
  16318. IFS=$as_save_IFS
  16319. test -z "$as_dir" && as_dir=.
  16320. for ac_exec_ext in '' $ac_executable_extensions; do
  16321. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16322. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16323. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16324. break 2
  16325. fi
  16326. done
  16327. done
  16328. IFS=$as_save_IFS
  16329. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16330. ;;
  16331. esac
  16332. fi
  16333. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16334. if test -n "$PKG_CONFIG"; then
  16335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16336. $as_echo "$PKG_CONFIG" >&6; }
  16337. else
  16338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16339. $as_echo "no" >&6; }
  16340. fi
  16341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16342. $as_echo_n "checking for Wayland support... " >&6; }
  16343. video_wayland=no
  16344. if test x$PKG_CONFIG != xno && \
  16345. test x$video_opengl_egl = xyes && \
  16346. test x$video_opengles_v2 = xyes; then
  16347. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16348. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16349. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16350. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16351. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16352. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16353. video_wayland=yes
  16354. fi
  16355. fi
  16356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16357. $as_echo "$video_wayland" >&6; }
  16358. if test x$video_wayland = xyes; then
  16359. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16360. if test x$enable_video_wayland_qt_touch = xyes; then
  16361. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16362. fi
  16363. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
  16364. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16365. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16366. # Check whether --enable-wayland-shared was given.
  16367. if test "${enable_wayland_shared+set}" = set; then :
  16368. enableval=$enable_wayland_shared;
  16369. else
  16370. enable_wayland_shared=maybe
  16371. fi
  16372. case "$host" in
  16373. *)
  16374. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16375. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16376. if test x$wayland_egl_lib = x; then
  16377. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16378. fi
  16379. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16380. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16381. ;;
  16382. esac
  16383. if test x$enable_wayland_shared = xmaybe; then
  16384. enable_wayland_shared=yes
  16385. fi
  16386. if test x$have_loadso != xyes && \
  16387. test x$enable_wayland_shared = xyes; then
  16388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16389. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16390. enable_wayland_shared=no
  16391. fi
  16392. if test x$have_loadso = xyes && \
  16393. test x$enable_wayland_shared = xyes && \
  16394. test x$wayland_client_lib != x && \
  16395. test x$wayland_egl_lib != x && \
  16396. test x$wayland_cursor_lib != x && \
  16397. test x$xkbcommon_lib != x; then
  16398. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16399. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16400. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16401. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16402. cat >>confdefs.h <<_ACEOF
  16403. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16404. _ACEOF
  16405. cat >>confdefs.h <<_ACEOF
  16406. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16407. _ACEOF
  16408. cat >>confdefs.h <<_ACEOF
  16409. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16410. _ACEOF
  16411. cat >>confdefs.h <<_ACEOF
  16412. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16413. _ACEOF
  16414. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16415. else
  16416. enable_wayland_shared=no
  16417. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16418. SUMMARY_video="${SUMMARY_video} wayland"
  16419. fi
  16420. have_video=yes
  16421. fi
  16422. fi
  16423. }
  16424. CheckMir()
  16425. {
  16426. # Check whether --enable-video-mir was given.
  16427. if test "${enable_video_mir+set}" = set; then :
  16428. enableval=$enable_video_mir;
  16429. else
  16430. enable_video_mir=yes
  16431. fi
  16432. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16433. # Extract the first word of "pkg-config", so it can be a program name with args.
  16434. set dummy pkg-config; ac_word=$2
  16435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16436. $as_echo_n "checking for $ac_word... " >&6; }
  16437. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16438. $as_echo_n "(cached) " >&6
  16439. else
  16440. case $PKG_CONFIG in
  16441. [\\/]* | ?:[\\/]*)
  16442. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16443. ;;
  16444. *)
  16445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16446. for as_dir in $PATH
  16447. do
  16448. IFS=$as_save_IFS
  16449. test -z "$as_dir" && as_dir=.
  16450. for ac_exec_ext in '' $ac_executable_extensions; do
  16451. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16452. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16454. break 2
  16455. fi
  16456. done
  16457. done
  16458. IFS=$as_save_IFS
  16459. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16460. ;;
  16461. esac
  16462. fi
  16463. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16464. if test -n "$PKG_CONFIG"; then
  16465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16466. $as_echo "$PKG_CONFIG" >&6; }
  16467. else
  16468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16469. $as_echo "no" >&6; }
  16470. fi
  16471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16472. $as_echo_n "checking for Mir support... " >&6; }
  16473. video_mir=no
  16474. if test x$PKG_CONFIG != xno; then
  16475. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16476. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16477. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16478. save_CFLAGS="$CFLAGS"
  16479. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16481. /* end confdefs.h. */
  16482. #include <mir_toolkit/mir_client_library.h>
  16483. int
  16484. main ()
  16485. {
  16486. MirTouchAction actions = mir_touch_actions
  16487. ;
  16488. return 0;
  16489. }
  16490. _ACEOF
  16491. if ac_fn_c_try_compile "$LINENO"; then :
  16492. video_mir=yes
  16493. fi
  16494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16495. CFLAGS="$save_CFLAGS"
  16496. fi
  16497. fi
  16498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16499. $as_echo "$video_mir" >&6; }
  16500. if test x$video_mir = xyes; then
  16501. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16502. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16503. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16504. # Check whether --enable-mir-shared was given.
  16505. if test "${enable_mir_shared+set}" = set; then :
  16506. enableval=$enable_mir_shared;
  16507. else
  16508. enable_mir_shared=maybe
  16509. fi
  16510. case "$host" in
  16511. *)
  16512. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16513. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16514. ;;
  16515. esac
  16516. if test x$enable_mir_shared = xmaybe; then
  16517. enable_mir_shared=yes
  16518. fi
  16519. if test x$have_loadso != xyes && \
  16520. test x$enable_mir_shared = xyes; then
  16521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16522. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16523. enable_mir_shared=no
  16524. fi
  16525. if test x$have_loadso = xyes && \
  16526. test x$enable_mir_shared = xyes && \
  16527. test x$mirclient_lib != x && \
  16528. test x$xkbcommon_lib != x; then
  16529. echo "-- dynamic libmirclient -> $mirclient_lib"
  16530. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16531. cat >>confdefs.h <<_ACEOF
  16532. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16533. _ACEOF
  16534. cat >>confdefs.h <<_ACEOF
  16535. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16536. _ACEOF
  16537. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16538. else
  16539. enable_mir_shared=no
  16540. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16541. SUMMARY_video="${SUMMARY_video} mir"
  16542. fi
  16543. have_video=yes
  16544. fi
  16545. fi
  16546. }
  16547. CheckNativeClient()
  16548. {
  16549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16550. /* end confdefs.h. */
  16551. #if !defined(__native_client__)
  16552. #error "NO NACL"
  16553. #endif
  16554. int
  16555. main ()
  16556. {
  16557. ;
  16558. return 0;
  16559. }
  16560. _ACEOF
  16561. if ac_fn_c_try_compile "$LINENO"; then :
  16562. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16563. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16564. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16565. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16566. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16567. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16568. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16569. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16570. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16571. SUMMARY_audio="${SUMMARY_audio} nacl"
  16572. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16573. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16574. fi
  16575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16576. }
  16577. CheckX11()
  16578. {
  16579. # Check whether --enable-video-x11 was given.
  16580. if test "${enable_video_x11+set}" = set; then :
  16581. enableval=$enable_video_x11;
  16582. else
  16583. enable_video_x11=yes
  16584. fi
  16585. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16586. case "$host" in
  16587. *-*-darwin*)
  16588. # This isn't necessary for X11, but fixes GLX detection
  16589. if test "x$x_includes" = xNONE && \
  16590. test "x$x_libraries" = xNONE && \
  16591. test -d /usr/X11R6/include && \
  16592. test -d /usr/X11R6/lib; then
  16593. x_includes="/usr/X11R6/include"
  16594. x_libraries="/usr/X11R6/lib"
  16595. fi
  16596. ;;
  16597. esac
  16598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16599. $as_echo_n "checking for X... " >&6; }
  16600. # Check whether --with-x was given.
  16601. if test "${with_x+set}" = set; then :
  16602. withval=$with_x;
  16603. fi
  16604. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16605. if test "x$with_x" = xno; then
  16606. # The user explicitly disabled X.
  16607. have_x=disabled
  16608. else
  16609. case $x_includes,$x_libraries in #(
  16610. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16611. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16612. $as_echo_n "(cached) " >&6
  16613. else
  16614. # One or both of the vars are not set, and there is no cached value.
  16615. ac_x_includes=no ac_x_libraries=no
  16616. rm -f -r conftest.dir
  16617. if mkdir conftest.dir; then
  16618. cd conftest.dir
  16619. cat >Imakefile <<'_ACEOF'
  16620. incroot:
  16621. @echo incroot='${INCROOT}'
  16622. usrlibdir:
  16623. @echo usrlibdir='${USRLIBDIR}'
  16624. libdir:
  16625. @echo libdir='${LIBDIR}'
  16626. _ACEOF
  16627. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16628. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16629. for ac_var in incroot usrlibdir libdir; do
  16630. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16631. done
  16632. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16633. for ac_extension in a so sl dylib la dll; do
  16634. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16635. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16636. ac_im_usrlibdir=$ac_im_libdir; break
  16637. fi
  16638. done
  16639. # Screen out bogus values from the imake configuration. They are
  16640. # bogus both because they are the default anyway, and because
  16641. # using them would break gcc on systems where it needs fixed includes.
  16642. case $ac_im_incroot in
  16643. /usr/include) ac_x_includes= ;;
  16644. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16645. esac
  16646. case $ac_im_usrlibdir in
  16647. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16648. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16649. esac
  16650. fi
  16651. cd ..
  16652. rm -f -r conftest.dir
  16653. fi
  16654. # Standard set of common directories for X headers.
  16655. # Check X11 before X11Rn because it is often a symlink to the current release.
  16656. ac_x_header_dirs='
  16657. /usr/X11/include
  16658. /usr/X11R7/include
  16659. /usr/X11R6/include
  16660. /usr/X11R5/include
  16661. /usr/X11R4/include
  16662. /usr/include/X11
  16663. /usr/include/X11R7
  16664. /usr/include/X11R6
  16665. /usr/include/X11R5
  16666. /usr/include/X11R4
  16667. /usr/local/X11/include
  16668. /usr/local/X11R7/include
  16669. /usr/local/X11R6/include
  16670. /usr/local/X11R5/include
  16671. /usr/local/X11R4/include
  16672. /usr/local/include/X11
  16673. /usr/local/include/X11R7
  16674. /usr/local/include/X11R6
  16675. /usr/local/include/X11R5
  16676. /usr/local/include/X11R4
  16677. /usr/X386/include
  16678. /usr/x386/include
  16679. /usr/XFree86/include/X11
  16680. /usr/include
  16681. /usr/local/include
  16682. /usr/unsupported/include
  16683. /usr/athena/include
  16684. /usr/local/x11r5/include
  16685. /usr/lpp/Xamples/include
  16686. /usr/openwin/include
  16687. /usr/openwin/share/include'
  16688. if test "$ac_x_includes" = no; then
  16689. # Guess where to find include files, by looking for Xlib.h.
  16690. # First, try using that file with no special directory specified.
  16691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16692. /* end confdefs.h. */
  16693. #include <X11/Xlib.h>
  16694. _ACEOF
  16695. if ac_fn_c_try_cpp "$LINENO"; then :
  16696. # We can compile using X headers with no special include directory.
  16697. ac_x_includes=
  16698. else
  16699. for ac_dir in $ac_x_header_dirs; do
  16700. if test -r "$ac_dir/X11/Xlib.h"; then
  16701. ac_x_includes=$ac_dir
  16702. break
  16703. fi
  16704. done
  16705. fi
  16706. rm -f conftest.err conftest.i conftest.$ac_ext
  16707. fi # $ac_x_includes = no
  16708. if test "$ac_x_libraries" = no; then
  16709. # Check for the libraries.
  16710. # See if we find them without any special options.
  16711. # Don't add to $LIBS permanently.
  16712. ac_save_LIBS=$LIBS
  16713. LIBS="-lX11 $LIBS"
  16714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16715. /* end confdefs.h. */
  16716. #include <X11/Xlib.h>
  16717. int
  16718. main ()
  16719. {
  16720. XrmInitialize ()
  16721. ;
  16722. return 0;
  16723. }
  16724. _ACEOF
  16725. if ac_fn_c_try_link "$LINENO"; then :
  16726. LIBS=$ac_save_LIBS
  16727. # We can link X programs with no special library path.
  16728. ac_x_libraries=
  16729. else
  16730. LIBS=$ac_save_LIBS
  16731. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16732. do
  16733. # Don't even attempt the hair of trying to link an X program!
  16734. for ac_extension in a so sl dylib la dll; do
  16735. if test -r "$ac_dir/libX11.$ac_extension"; then
  16736. ac_x_libraries=$ac_dir
  16737. break 2
  16738. fi
  16739. done
  16740. done
  16741. fi
  16742. rm -f core conftest.err conftest.$ac_objext \
  16743. conftest$ac_exeext conftest.$ac_ext
  16744. fi # $ac_x_libraries = no
  16745. case $ac_x_includes,$ac_x_libraries in #(
  16746. no,* | *,no | *\'*)
  16747. # Didn't find X, or a directory has "'" in its name.
  16748. ac_cv_have_x="have_x=no";; #(
  16749. *)
  16750. # Record where we found X for the cache.
  16751. ac_cv_have_x="have_x=yes\
  16752. ac_x_includes='$ac_x_includes'\
  16753. ac_x_libraries='$ac_x_libraries'"
  16754. esac
  16755. fi
  16756. ;; #(
  16757. *) have_x=yes;;
  16758. esac
  16759. eval "$ac_cv_have_x"
  16760. fi # $with_x != no
  16761. if test "$have_x" != yes; then
  16762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16763. $as_echo "$have_x" >&6; }
  16764. no_x=yes
  16765. else
  16766. # If each of the values was on the command line, it overrides each guess.
  16767. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16768. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16769. # Update the cache value to reflect the command line values.
  16770. ac_cv_have_x="have_x=yes\
  16771. ac_x_includes='$x_includes'\
  16772. ac_x_libraries='$x_libraries'"
  16773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16774. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16775. fi
  16776. if test "$no_x" = yes; then
  16777. # Not all programs may use this symbol, but it does not hurt to define it.
  16778. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16779. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16780. else
  16781. if test -n "$x_includes"; then
  16782. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16783. fi
  16784. # It would also be nice to do this for all -L options, not just this one.
  16785. if test -n "$x_libraries"; then
  16786. X_LIBS="$X_LIBS -L$x_libraries"
  16787. # For Solaris; some versions of Sun CC require a space after -R and
  16788. # others require no space. Words are not sufficient . . . .
  16789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16790. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16791. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16792. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16793. ac_c_werror_flag=yes
  16794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16795. /* end confdefs.h. */
  16796. int
  16797. main ()
  16798. {
  16799. ;
  16800. return 0;
  16801. }
  16802. _ACEOF
  16803. if ac_fn_c_try_link "$LINENO"; then :
  16804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16805. $as_echo "no" >&6; }
  16806. X_LIBS="$X_LIBS -R$x_libraries"
  16807. else
  16808. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16810. /* end confdefs.h. */
  16811. int
  16812. main ()
  16813. {
  16814. ;
  16815. return 0;
  16816. }
  16817. _ACEOF
  16818. if ac_fn_c_try_link "$LINENO"; then :
  16819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16820. $as_echo "yes" >&6; }
  16821. X_LIBS="$X_LIBS -R $x_libraries"
  16822. else
  16823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16824. $as_echo "neither works" >&6; }
  16825. fi
  16826. rm -f core conftest.err conftest.$ac_objext \
  16827. conftest$ac_exeext conftest.$ac_ext
  16828. fi
  16829. rm -f core conftest.err conftest.$ac_objext \
  16830. conftest$ac_exeext conftest.$ac_ext
  16831. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16832. LIBS=$ac_xsave_LIBS
  16833. fi
  16834. # Check for system-dependent libraries X programs must link with.
  16835. # Do this before checking for the system-independent R6 libraries
  16836. # (-lICE), since we may need -lsocket or whatever for X linking.
  16837. if test "$ISC" = yes; then
  16838. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16839. else
  16840. # Martyn Johnson says this is needed for Ultrix, if the X
  16841. # libraries were built with DECnet support. And Karl Berry says
  16842. # the Alpha needs dnet_stub (dnet does not exist).
  16843. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16845. /* end confdefs.h. */
  16846. /* Override any GCC internal prototype to avoid an error.
  16847. Use char because int might match the return type of a GCC
  16848. builtin and then its argument prototype would still apply. */
  16849. #ifdef __cplusplus
  16850. extern "C"
  16851. #endif
  16852. char XOpenDisplay ();
  16853. int
  16854. main ()
  16855. {
  16856. return XOpenDisplay ();
  16857. ;
  16858. return 0;
  16859. }
  16860. _ACEOF
  16861. if ac_fn_c_try_link "$LINENO"; then :
  16862. else
  16863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16864. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16865. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16866. $as_echo_n "(cached) " >&6
  16867. else
  16868. ac_check_lib_save_LIBS=$LIBS
  16869. LIBS="-ldnet $LIBS"
  16870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16871. /* end confdefs.h. */
  16872. /* Override any GCC internal prototype to avoid an error.
  16873. Use char because int might match the return type of a GCC
  16874. builtin and then its argument prototype would still apply. */
  16875. #ifdef __cplusplus
  16876. extern "C"
  16877. #endif
  16878. char dnet_ntoa ();
  16879. int
  16880. main ()
  16881. {
  16882. return dnet_ntoa ();
  16883. ;
  16884. return 0;
  16885. }
  16886. _ACEOF
  16887. if ac_fn_c_try_link "$LINENO"; then :
  16888. ac_cv_lib_dnet_dnet_ntoa=yes
  16889. else
  16890. ac_cv_lib_dnet_dnet_ntoa=no
  16891. fi
  16892. rm -f core conftest.err conftest.$ac_objext \
  16893. conftest$ac_exeext conftest.$ac_ext
  16894. LIBS=$ac_check_lib_save_LIBS
  16895. fi
  16896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16897. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16898. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16899. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16900. fi
  16901. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16903. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16904. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16905. $as_echo_n "(cached) " >&6
  16906. else
  16907. ac_check_lib_save_LIBS=$LIBS
  16908. LIBS="-ldnet_stub $LIBS"
  16909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16910. /* end confdefs.h. */
  16911. /* Override any GCC internal prototype to avoid an error.
  16912. Use char because int might match the return type of a GCC
  16913. builtin and then its argument prototype would still apply. */
  16914. #ifdef __cplusplus
  16915. extern "C"
  16916. #endif
  16917. char dnet_ntoa ();
  16918. int
  16919. main ()
  16920. {
  16921. return dnet_ntoa ();
  16922. ;
  16923. return 0;
  16924. }
  16925. _ACEOF
  16926. if ac_fn_c_try_link "$LINENO"; then :
  16927. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16928. else
  16929. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16930. fi
  16931. rm -f core conftest.err conftest.$ac_objext \
  16932. conftest$ac_exeext conftest.$ac_ext
  16933. LIBS=$ac_check_lib_save_LIBS
  16934. fi
  16935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16936. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16937. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16938. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16939. fi
  16940. fi
  16941. fi
  16942. rm -f core conftest.err conftest.$ac_objext \
  16943. conftest$ac_exeext conftest.$ac_ext
  16944. LIBS="$ac_xsave_LIBS"
  16945. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16946. # to get the SysV transport functions.
  16947. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16948. # needs -lnsl.
  16949. # The nsl library prevents programs from opening the X display
  16950. # on Irix 5.2, according to T.E. Dickey.
  16951. # The functions gethostbyname, getservbyname, and inet_addr are
  16952. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16953. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16954. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16955. fi
  16956. if test $ac_cv_func_gethostbyname = no; then
  16957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16958. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16959. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16960. $as_echo_n "(cached) " >&6
  16961. else
  16962. ac_check_lib_save_LIBS=$LIBS
  16963. LIBS="-lnsl $LIBS"
  16964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16965. /* end confdefs.h. */
  16966. /* Override any GCC internal prototype to avoid an error.
  16967. Use char because int might match the return type of a GCC
  16968. builtin and then its argument prototype would still apply. */
  16969. #ifdef __cplusplus
  16970. extern "C"
  16971. #endif
  16972. char gethostbyname ();
  16973. int
  16974. main ()
  16975. {
  16976. return gethostbyname ();
  16977. ;
  16978. return 0;
  16979. }
  16980. _ACEOF
  16981. if ac_fn_c_try_link "$LINENO"; then :
  16982. ac_cv_lib_nsl_gethostbyname=yes
  16983. else
  16984. ac_cv_lib_nsl_gethostbyname=no
  16985. fi
  16986. rm -f core conftest.err conftest.$ac_objext \
  16987. conftest$ac_exeext conftest.$ac_ext
  16988. LIBS=$ac_check_lib_save_LIBS
  16989. fi
  16990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16991. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16992. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16993. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16994. fi
  16995. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16997. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16998. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16999. $as_echo_n "(cached) " >&6
  17000. else
  17001. ac_check_lib_save_LIBS=$LIBS
  17002. LIBS="-lbsd $LIBS"
  17003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17004. /* end confdefs.h. */
  17005. /* Override any GCC internal prototype to avoid an error.
  17006. Use char because int might match the return type of a GCC
  17007. builtin and then its argument prototype would still apply. */
  17008. #ifdef __cplusplus
  17009. extern "C"
  17010. #endif
  17011. char gethostbyname ();
  17012. int
  17013. main ()
  17014. {
  17015. return gethostbyname ();
  17016. ;
  17017. return 0;
  17018. }
  17019. _ACEOF
  17020. if ac_fn_c_try_link "$LINENO"; then :
  17021. ac_cv_lib_bsd_gethostbyname=yes
  17022. else
  17023. ac_cv_lib_bsd_gethostbyname=no
  17024. fi
  17025. rm -f core conftest.err conftest.$ac_objext \
  17026. conftest$ac_exeext conftest.$ac_ext
  17027. LIBS=$ac_check_lib_save_LIBS
  17028. fi
  17029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17030. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17031. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17032. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17033. fi
  17034. fi
  17035. fi
  17036. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17037. # socket/setsockopt and other routines are undefined under SCO ODT
  17038. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17039. # on later versions), says Simon Leinen: it contains gethostby*
  17040. # variants that don't use the name server (or something). -lsocket
  17041. # must be given before -lnsl if both are needed. We assume that
  17042. # if connect needs -lnsl, so does gethostbyname.
  17043. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17044. if test "x$ac_cv_func_connect" = xyes; then :
  17045. fi
  17046. if test $ac_cv_func_connect = no; then
  17047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17048. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17049. if ${ac_cv_lib_socket_connect+:} false; then :
  17050. $as_echo_n "(cached) " >&6
  17051. else
  17052. ac_check_lib_save_LIBS=$LIBS
  17053. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17055. /* end confdefs.h. */
  17056. /* Override any GCC internal prototype to avoid an error.
  17057. Use char because int might match the return type of a GCC
  17058. builtin and then its argument prototype would still apply. */
  17059. #ifdef __cplusplus
  17060. extern "C"
  17061. #endif
  17062. char connect ();
  17063. int
  17064. main ()
  17065. {
  17066. return connect ();
  17067. ;
  17068. return 0;
  17069. }
  17070. _ACEOF
  17071. if ac_fn_c_try_link "$LINENO"; then :
  17072. ac_cv_lib_socket_connect=yes
  17073. else
  17074. ac_cv_lib_socket_connect=no
  17075. fi
  17076. rm -f core conftest.err conftest.$ac_objext \
  17077. conftest$ac_exeext conftest.$ac_ext
  17078. LIBS=$ac_check_lib_save_LIBS
  17079. fi
  17080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17081. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17082. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17083. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17084. fi
  17085. fi
  17086. # Guillermo Gomez says -lposix is necessary on A/UX.
  17087. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17088. if test "x$ac_cv_func_remove" = xyes; then :
  17089. fi
  17090. if test $ac_cv_func_remove = no; then
  17091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17092. $as_echo_n "checking for remove in -lposix... " >&6; }
  17093. if ${ac_cv_lib_posix_remove+:} false; then :
  17094. $as_echo_n "(cached) " >&6
  17095. else
  17096. ac_check_lib_save_LIBS=$LIBS
  17097. LIBS="-lposix $LIBS"
  17098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17099. /* end confdefs.h. */
  17100. /* Override any GCC internal prototype to avoid an error.
  17101. Use char because int might match the return type of a GCC
  17102. builtin and then its argument prototype would still apply. */
  17103. #ifdef __cplusplus
  17104. extern "C"
  17105. #endif
  17106. char remove ();
  17107. int
  17108. main ()
  17109. {
  17110. return remove ();
  17111. ;
  17112. return 0;
  17113. }
  17114. _ACEOF
  17115. if ac_fn_c_try_link "$LINENO"; then :
  17116. ac_cv_lib_posix_remove=yes
  17117. else
  17118. ac_cv_lib_posix_remove=no
  17119. fi
  17120. rm -f core conftest.err conftest.$ac_objext \
  17121. conftest$ac_exeext conftest.$ac_ext
  17122. LIBS=$ac_check_lib_save_LIBS
  17123. fi
  17124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17125. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17126. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17127. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17128. fi
  17129. fi
  17130. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17131. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17132. if test "x$ac_cv_func_shmat" = xyes; then :
  17133. fi
  17134. if test $ac_cv_func_shmat = no; then
  17135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17136. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17137. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17138. $as_echo_n "(cached) " >&6
  17139. else
  17140. ac_check_lib_save_LIBS=$LIBS
  17141. LIBS="-lipc $LIBS"
  17142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17143. /* end confdefs.h. */
  17144. /* Override any GCC internal prototype to avoid an error.
  17145. Use char because int might match the return type of a GCC
  17146. builtin and then its argument prototype would still apply. */
  17147. #ifdef __cplusplus
  17148. extern "C"
  17149. #endif
  17150. char shmat ();
  17151. int
  17152. main ()
  17153. {
  17154. return shmat ();
  17155. ;
  17156. return 0;
  17157. }
  17158. _ACEOF
  17159. if ac_fn_c_try_link "$LINENO"; then :
  17160. ac_cv_lib_ipc_shmat=yes
  17161. else
  17162. ac_cv_lib_ipc_shmat=no
  17163. fi
  17164. rm -f core conftest.err conftest.$ac_objext \
  17165. conftest$ac_exeext conftest.$ac_ext
  17166. LIBS=$ac_check_lib_save_LIBS
  17167. fi
  17168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17169. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17170. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17171. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17172. fi
  17173. fi
  17174. fi
  17175. # Check for libraries that X11R6 Xt/Xaw programs need.
  17176. ac_save_LDFLAGS=$LDFLAGS
  17177. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17178. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17179. # check for ICE first), but we must link in the order -lSM -lICE or
  17180. # we get undefined symbols. So assume we have SM if we have ICE.
  17181. # These have to be linked with before -lX11, unlike the other
  17182. # libraries we check for below, so use a different variable.
  17183. # John Interrante, Karl Berry
  17184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17185. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17186. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17187. $as_echo_n "(cached) " >&6
  17188. else
  17189. ac_check_lib_save_LIBS=$LIBS
  17190. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17192. /* end confdefs.h. */
  17193. /* Override any GCC internal prototype to avoid an error.
  17194. Use char because int might match the return type of a GCC
  17195. builtin and then its argument prototype would still apply. */
  17196. #ifdef __cplusplus
  17197. extern "C"
  17198. #endif
  17199. char IceConnectionNumber ();
  17200. int
  17201. main ()
  17202. {
  17203. return IceConnectionNumber ();
  17204. ;
  17205. return 0;
  17206. }
  17207. _ACEOF
  17208. if ac_fn_c_try_link "$LINENO"; then :
  17209. ac_cv_lib_ICE_IceConnectionNumber=yes
  17210. else
  17211. ac_cv_lib_ICE_IceConnectionNumber=no
  17212. fi
  17213. rm -f core conftest.err conftest.$ac_objext \
  17214. conftest$ac_exeext conftest.$ac_ext
  17215. LIBS=$ac_check_lib_save_LIBS
  17216. fi
  17217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17218. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17219. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17220. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17221. fi
  17222. LDFLAGS=$ac_save_LDFLAGS
  17223. fi
  17224. if test x$have_x = xyes; then
  17225. # Check whether --enable-x11-shared was given.
  17226. if test "${enable_x11_shared+set}" = set; then :
  17227. enableval=$enable_x11_shared;
  17228. else
  17229. enable_x11_shared=maybe
  17230. fi
  17231. case "$host" in
  17232. *-*-darwin*)
  17233. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17234. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17235. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17236. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17237. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17238. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17239. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17240. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17241. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17242. ;;
  17243. *-*-openbsd*)
  17244. x11_lib='libX11.so'
  17245. x11ext_lib='libXext.so'
  17246. xcursor_lib='libXcursor.so'
  17247. xinerama_lib='libXinerama.so'
  17248. xinput_lib='libXi.so'
  17249. xrandr_lib='libXrandr.so'
  17250. xrender_lib='libXrender.so'
  17251. xss_lib='libXss.so'
  17252. xvidmode_lib='libXxf86vm.so'
  17253. ;;
  17254. *)
  17255. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17256. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17257. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17258. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17259. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17260. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17261. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17262. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17263. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17264. ;;
  17265. esac
  17266. if test x$ac_cv_func_shmat != xyes; then
  17267. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17268. fi
  17269. CFLAGS="$CFLAGS $X_CFLAGS"
  17270. LDFLAGS="$LDFLAGS $X_LIBS"
  17271. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17272. #include <X11/Xproto.h>
  17273. "
  17274. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17275. have_xext_h_hdr=yes
  17276. else
  17277. have_xext_h_hdr=no
  17278. fi
  17279. if test x$have_xext_h_hdr != xyes; then
  17280. as_fn_error $? "
  17281. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17282. " "$LINENO" 5
  17283. fi
  17284. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17285. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17286. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17287. # Needed so SDL applications can include SDL_syswm.h
  17288. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17289. if test x$enable_x11_shared = xmaybe; then
  17290. enable_x11_shared=yes
  17291. fi
  17292. if test x$have_loadso != xyes && \
  17293. test x$enable_x11_shared = xyes; then
  17294. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17295. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17296. enable_x11_shared=no
  17297. fi
  17298. if test x$have_loadso = xyes && \
  17299. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17300. echo "-- dynamic libX11 -> $x11_lib"
  17301. echo "-- dynamic libX11ext -> $x11ext_lib"
  17302. cat >>confdefs.h <<_ACEOF
  17303. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17304. _ACEOF
  17305. cat >>confdefs.h <<_ACEOF
  17306. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17307. _ACEOF
  17308. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17309. else
  17310. enable_x11_shared=no
  17311. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17312. SUMMARY_video="${SUMMARY_video} x11"
  17313. fi
  17314. have_video=yes
  17315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17316. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17317. have_const_param_XextAddDisplay=no
  17318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17319. /* end confdefs.h. */
  17320. #include <X11/Xlib.h>
  17321. #include <X11/Xproto.h>
  17322. #include <X11/extensions/Xext.h>
  17323. #include <X11/extensions/extutil.h>
  17324. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17325. int
  17326. main ()
  17327. {
  17328. ;
  17329. return 0;
  17330. }
  17331. _ACEOF
  17332. if ac_fn_c_try_compile "$LINENO"; then :
  17333. have_const_param_XextAddDisplay=yes
  17334. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17335. fi
  17336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17338. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17340. $as_echo_n "checking for XGenericEvent... " >&6; }
  17341. have_XGenericEvent=no
  17342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17343. /* end confdefs.h. */
  17344. #include <X11/Xlib.h>
  17345. int
  17346. main ()
  17347. {
  17348. Display *display;
  17349. XEvent event;
  17350. XGenericEventCookie *cookie = &event.xcookie;
  17351. XNextEvent(display, &event);
  17352. XGetEventData(display, cookie);
  17353. XFreeEventData(display, cookie);
  17354. ;
  17355. return 0;
  17356. }
  17357. _ACEOF
  17358. if ac_fn_c_try_compile "$LINENO"; then :
  17359. have_XGenericEvent=yes
  17360. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17361. fi
  17362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17364. $as_echo "$have_XGenericEvent" >&6; }
  17365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17366. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17367. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17368. $as_echo_n "(cached) " >&6
  17369. else
  17370. ac_check_lib_save_LIBS=$LIBS
  17371. LIBS="-lX11 $LIBS"
  17372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17373. /* end confdefs.h. */
  17374. /* Override any GCC internal prototype to avoid an error.
  17375. Use char because int might match the return type of a GCC
  17376. builtin and then its argument prototype would still apply. */
  17377. #ifdef __cplusplus
  17378. extern "C"
  17379. #endif
  17380. char XkbKeycodeToKeysym ();
  17381. int
  17382. main ()
  17383. {
  17384. return XkbKeycodeToKeysym ();
  17385. ;
  17386. return 0;
  17387. }
  17388. _ACEOF
  17389. if ac_fn_c_try_link "$LINENO"; then :
  17390. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17391. else
  17392. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17393. fi
  17394. rm -f core conftest.err conftest.$ac_objext \
  17395. conftest$ac_exeext conftest.$ac_ext
  17396. LIBS=$ac_check_lib_save_LIBS
  17397. fi
  17398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17399. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17400. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17401. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17402. fi
  17403. # Check whether --enable-video-x11-xcursor was given.
  17404. if test "${enable_video_x11_xcursor+set}" = set; then :
  17405. enableval=$enable_video_x11_xcursor;
  17406. else
  17407. enable_video_x11_xcursor=yes
  17408. fi
  17409. if test x$enable_video_x11_xcursor = xyes; then
  17410. definitely_enable_video_x11_xcursor=no
  17411. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17412. "
  17413. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17414. have_xcursor_h_hdr=yes
  17415. else
  17416. have_xcursor_h_hdr=no
  17417. fi
  17418. if test x$have_xcursor_h_hdr = xyes; then
  17419. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17420. echo "-- dynamic libXcursor -> $xcursor_lib"
  17421. cat >>confdefs.h <<_ACEOF
  17422. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17423. _ACEOF
  17424. definitely_enable_video_x11_xcursor=yes
  17425. else
  17426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17427. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17428. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17429. $as_echo_n "(cached) " >&6
  17430. else
  17431. ac_check_lib_save_LIBS=$LIBS
  17432. LIBS="-lXcursor $LIBS"
  17433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17434. /* end confdefs.h. */
  17435. /* Override any GCC internal prototype to avoid an error.
  17436. Use char because int might match the return type of a GCC
  17437. builtin and then its argument prototype would still apply. */
  17438. #ifdef __cplusplus
  17439. extern "C"
  17440. #endif
  17441. char XcursorImageCreate ();
  17442. int
  17443. main ()
  17444. {
  17445. return XcursorImageCreate ();
  17446. ;
  17447. return 0;
  17448. }
  17449. _ACEOF
  17450. if ac_fn_c_try_link "$LINENO"; then :
  17451. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17452. else
  17453. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17454. fi
  17455. rm -f core conftest.err conftest.$ac_objext \
  17456. conftest$ac_exeext conftest.$ac_ext
  17457. LIBS=$ac_check_lib_save_LIBS
  17458. fi
  17459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17460. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17461. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17462. have_xcursor_lib=yes
  17463. fi
  17464. if test x$have_xcursor_lib = xyes ; then
  17465. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17466. definitely_enable_video_x11_xcursor=yes
  17467. fi
  17468. fi
  17469. fi
  17470. fi
  17471. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17472. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17473. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17474. fi
  17475. # Check whether --enable-video-x11-xdbe was given.
  17476. if test "${enable_video_x11_xdbe+set}" = set; then :
  17477. enableval=$enable_video_x11_xdbe;
  17478. else
  17479. enable_video_x11_xdbe=yes
  17480. fi
  17481. if test x$enable_video_x11_xdbe = xyes; then
  17482. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17483. "
  17484. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17485. have_dbe_h_hdr=yes
  17486. else
  17487. have_dbe_h_hdr=no
  17488. fi
  17489. if test x$have_dbe_h_hdr = xyes; then
  17490. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17491. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17492. fi
  17493. fi
  17494. # Check whether --enable-video-x11-xinerama was given.
  17495. if test "${enable_video_x11_xinerama+set}" = set; then :
  17496. enableval=$enable_video_x11_xinerama;
  17497. else
  17498. enable_video_x11_xinerama=yes
  17499. fi
  17500. if test x$enable_video_x11_xinerama = xyes; then
  17501. definitely_enable_video_x11_xinerama=no
  17502. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17503. "
  17504. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17505. have_xinerama_h_hdr=yes
  17506. else
  17507. have_xinerama_h_hdr=no
  17508. fi
  17509. if test x$have_xinerama_h_hdr = xyes; then
  17510. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17511. echo "-- dynamic libXinerama -> $xinerama_lib"
  17512. cat >>confdefs.h <<_ACEOF
  17513. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17514. _ACEOF
  17515. definitely_enable_video_x11_xinerama=yes
  17516. else
  17517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17518. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17519. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17520. $as_echo_n "(cached) " >&6
  17521. else
  17522. ac_check_lib_save_LIBS=$LIBS
  17523. LIBS="-lXinerama $LIBS"
  17524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17525. /* end confdefs.h. */
  17526. /* Override any GCC internal prototype to avoid an error.
  17527. Use char because int might match the return type of a GCC
  17528. builtin and then its argument prototype would still apply. */
  17529. #ifdef __cplusplus
  17530. extern "C"
  17531. #endif
  17532. char XineramaQueryExtension ();
  17533. int
  17534. main ()
  17535. {
  17536. return XineramaQueryExtension ();
  17537. ;
  17538. return 0;
  17539. }
  17540. _ACEOF
  17541. if ac_fn_c_try_link "$LINENO"; then :
  17542. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17543. else
  17544. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17545. fi
  17546. rm -f core conftest.err conftest.$ac_objext \
  17547. conftest$ac_exeext conftest.$ac_ext
  17548. LIBS=$ac_check_lib_save_LIBS
  17549. fi
  17550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17551. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17552. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17553. have_xinerama_lib=yes
  17554. fi
  17555. if test x$have_xinerama_lib = xyes ; then
  17556. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17557. definitely_enable_video_x11_xinerama=yes
  17558. fi
  17559. fi
  17560. fi
  17561. fi
  17562. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17563. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17564. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17565. fi
  17566. # Check whether --enable-video-x11-xinput was given.
  17567. if test "${enable_video_x11_xinput+set}" = set; then :
  17568. enableval=$enable_video_x11_xinput;
  17569. else
  17570. enable_video_x11_xinput=yes
  17571. fi
  17572. if test x$enable_video_x11_xinput = xyes; then
  17573. definitely_enable_video_x11_xinput=no
  17574. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17575. "
  17576. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17577. have_xinput_h_hdr=yes
  17578. else
  17579. have_xinput_h_hdr=no
  17580. fi
  17581. if test x$have_xinput_h_hdr = xyes; then
  17582. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17583. echo "-- dynamic libXi -> $xinput_lib"
  17584. cat >>confdefs.h <<_ACEOF
  17585. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17586. _ACEOF
  17587. definitely_enable_video_x11_xinput=yes
  17588. else
  17589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17590. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17591. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17592. $as_echo_n "(cached) " >&6
  17593. else
  17594. ac_check_lib_save_LIBS=$LIBS
  17595. LIBS="-lXi $LIBS"
  17596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17597. /* end confdefs.h. */
  17598. /* Override any GCC internal prototype to avoid an error.
  17599. Use char because int might match the return type of a GCC
  17600. builtin and then its argument prototype would still apply. */
  17601. #ifdef __cplusplus
  17602. extern "C"
  17603. #endif
  17604. char XOpenDevice ();
  17605. int
  17606. main ()
  17607. {
  17608. return XOpenDevice ();
  17609. ;
  17610. return 0;
  17611. }
  17612. _ACEOF
  17613. if ac_fn_c_try_link "$LINENO"; then :
  17614. ac_cv_lib_Xi_XOpenDevice=yes
  17615. else
  17616. ac_cv_lib_Xi_XOpenDevice=no
  17617. fi
  17618. rm -f core conftest.err conftest.$ac_objext \
  17619. conftest$ac_exeext conftest.$ac_ext
  17620. LIBS=$ac_check_lib_save_LIBS
  17621. fi
  17622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17623. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17624. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17625. have_xinput_lib=yes
  17626. fi
  17627. if test x$have_xinput_lib = xyes ; then
  17628. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17629. definitely_enable_video_x11_xinput=yes
  17630. fi
  17631. fi
  17632. fi
  17633. fi
  17634. if test x$definitely_enable_video_x11_xinput = xyes; then
  17635. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17636. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17638. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17639. have_xinput2_multitouch=no
  17640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17641. /* end confdefs.h. */
  17642. #include <X11/Xlib.h>
  17643. #include <X11/Xproto.h>
  17644. #include <X11/extensions/XInput2.h>
  17645. int
  17646. main ()
  17647. {
  17648. int event_type = XI_TouchBegin;
  17649. XITouchClassInfo *t;
  17650. ;
  17651. return 0;
  17652. }
  17653. _ACEOF
  17654. if ac_fn_c_try_compile "$LINENO"; then :
  17655. have_xinput2_multitouch=yes
  17656. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17657. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17658. fi
  17659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17661. $as_echo "$have_xinput2_multitouch" >&6; }
  17662. fi
  17663. # Check whether --enable-video-x11-xrandr was given.
  17664. if test "${enable_video_x11_xrandr+set}" = set; then :
  17665. enableval=$enable_video_x11_xrandr;
  17666. else
  17667. enable_video_x11_xrandr=yes
  17668. fi
  17669. if test x$enable_video_x11_xrandr = xyes; then
  17670. definitely_enable_video_x11_xrandr=no
  17671. have_xrandr_h_hdr=no
  17672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17673. /* end confdefs.h. */
  17674. #include <X11/Xlib.h>
  17675. #include <X11/extensions/Xrandr.h>
  17676. int
  17677. main ()
  17678. {
  17679. XRRScreenResources *res = NULL;
  17680. ;
  17681. return 0;
  17682. }
  17683. _ACEOF
  17684. if ac_fn_c_try_compile "$LINENO"; then :
  17685. have_xrandr_h_hdr=yes
  17686. fi
  17687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17688. if test x$have_xrandr_h_hdr = xyes; then
  17689. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17690. echo "-- dynamic libXrandr -> $xrandr_lib"
  17691. cat >>confdefs.h <<_ACEOF
  17692. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17693. _ACEOF
  17694. definitely_enable_video_x11_xrandr=yes
  17695. else
  17696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17697. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17698. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17699. $as_echo_n "(cached) " >&6
  17700. else
  17701. ac_check_lib_save_LIBS=$LIBS
  17702. LIBS="-lXrandr $LIBS"
  17703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17704. /* end confdefs.h. */
  17705. /* Override any GCC internal prototype to avoid an error.
  17706. Use char because int might match the return type of a GCC
  17707. builtin and then its argument prototype would still apply. */
  17708. #ifdef __cplusplus
  17709. extern "C"
  17710. #endif
  17711. char XRRQueryExtension ();
  17712. int
  17713. main ()
  17714. {
  17715. return XRRQueryExtension ();
  17716. ;
  17717. return 0;
  17718. }
  17719. _ACEOF
  17720. if ac_fn_c_try_link "$LINENO"; then :
  17721. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17722. else
  17723. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17724. fi
  17725. rm -f core conftest.err conftest.$ac_objext \
  17726. conftest$ac_exeext conftest.$ac_ext
  17727. LIBS=$ac_check_lib_save_LIBS
  17728. fi
  17729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17730. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17731. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17732. have_xrandr_lib=yes
  17733. fi
  17734. if test x$have_xrandr_lib = xyes ; then
  17735. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17736. definitely_enable_video_x11_xrandr=yes
  17737. fi
  17738. fi
  17739. fi
  17740. fi
  17741. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17742. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17743. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17744. fi
  17745. # Check whether --enable-video-x11-scrnsaver was given.
  17746. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17747. enableval=$enable_video_x11_scrnsaver;
  17748. else
  17749. enable_video_x11_scrnsaver=yes
  17750. fi
  17751. if test x$enable_video_x11_scrnsaver = xyes; then
  17752. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17753. "
  17754. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17755. have_scrnsaver_h_hdr=yes
  17756. else
  17757. have_scrnsaver_h_hdr=no
  17758. fi
  17759. if test x$have_scrnsaver_h_hdr = xyes; then
  17760. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17761. echo "-- dynamic libXss -> $xss_lib"
  17762. cat >>confdefs.h <<_ACEOF
  17763. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17764. _ACEOF
  17765. definitely_enable_video_x11_scrnsaver=yes
  17766. else
  17767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17768. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17769. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17770. $as_echo_n "(cached) " >&6
  17771. else
  17772. ac_check_lib_save_LIBS=$LIBS
  17773. LIBS="-lXss $LIBS"
  17774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17775. /* end confdefs.h. */
  17776. /* Override any GCC internal prototype to avoid an error.
  17777. Use char because int might match the return type of a GCC
  17778. builtin and then its argument prototype would still apply. */
  17779. #ifdef __cplusplus
  17780. extern "C"
  17781. #endif
  17782. char XScreenSaverSuspend ();
  17783. int
  17784. main ()
  17785. {
  17786. return XScreenSaverSuspend ();
  17787. ;
  17788. return 0;
  17789. }
  17790. _ACEOF
  17791. if ac_fn_c_try_link "$LINENO"; then :
  17792. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17793. else
  17794. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17795. fi
  17796. rm -f core conftest.err conftest.$ac_objext \
  17797. conftest$ac_exeext conftest.$ac_ext
  17798. LIBS=$ac_check_lib_save_LIBS
  17799. fi
  17800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17801. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17802. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17803. have_xss_lib=yes
  17804. fi
  17805. if test x$have_xss_lib = xyes ; then
  17806. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17807. definitely_enable_video_x11_scrnsaver=yes
  17808. fi
  17809. fi
  17810. fi
  17811. fi
  17812. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17813. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17814. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17815. fi
  17816. # Check whether --enable-video-x11-xshape was given.
  17817. if test "${enable_video_x11_xshape+set}" = set; then :
  17818. enableval=$enable_video_x11_xshape;
  17819. else
  17820. enable_video_x11_xshape=yes
  17821. fi
  17822. if test x$enable_video_x11_xshape = xyes; then
  17823. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17824. "
  17825. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17826. have_shape_h_hdr=yes
  17827. else
  17828. have_shape_h_hdr=no
  17829. fi
  17830. if test x$have_shape_h_hdr = xyes; then
  17831. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17832. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17833. fi
  17834. fi
  17835. # Check whether --enable-video-x11-vm was given.
  17836. if test "${enable_video_x11_vm+set}" = set; then :
  17837. enableval=$enable_video_x11_vm;
  17838. else
  17839. enable_video_x11_vm=yes
  17840. fi
  17841. if test x$enable_video_x11_vm = xyes; then
  17842. definitely_enable_video_x11_vm=no
  17843. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17844. "
  17845. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17846. have_vm_h_hdr=yes
  17847. else
  17848. have_vm_h_hdr=no
  17849. fi
  17850. if test x$have_vm_h_hdr = xyes; then
  17851. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17852. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17853. cat >>confdefs.h <<_ACEOF
  17854. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17855. _ACEOF
  17856. definitely_enable_video_x11_vm=yes
  17857. else
  17858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17859. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17860. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17861. $as_echo_n "(cached) " >&6
  17862. else
  17863. ac_check_lib_save_LIBS=$LIBS
  17864. LIBS="-lXxf86vm $LIBS"
  17865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17866. /* end confdefs.h. */
  17867. /* Override any GCC internal prototype to avoid an error.
  17868. Use char because int might match the return type of a GCC
  17869. builtin and then its argument prototype would still apply. */
  17870. #ifdef __cplusplus
  17871. extern "C"
  17872. #endif
  17873. char XF86VidModeQueryVersion ();
  17874. int
  17875. main ()
  17876. {
  17877. return XF86VidModeQueryVersion ();
  17878. ;
  17879. return 0;
  17880. }
  17881. _ACEOF
  17882. if ac_fn_c_try_link "$LINENO"; then :
  17883. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17884. else
  17885. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17886. fi
  17887. rm -f core conftest.err conftest.$ac_objext \
  17888. conftest$ac_exeext conftest.$ac_ext
  17889. LIBS=$ac_check_lib_save_LIBS
  17890. fi
  17891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17892. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17893. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17894. have_vm_lib=yes
  17895. fi
  17896. if test x$have_vm_lib = xyes ; then
  17897. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17898. definitely_enable_video_x11_vm=yes
  17899. fi
  17900. fi
  17901. fi
  17902. fi
  17903. if test x$definitely_enable_video_x11_vm = xyes; then
  17904. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17905. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  17906. fi
  17907. fi
  17908. fi
  17909. }
  17910. CheckVivanteVideo()
  17911. {
  17912. # Check whether --enable-video-vivante was given.
  17913. if test "${enable_video_vivante+set}" = set; then :
  17914. enableval=$enable_video_vivante;
  17915. else
  17916. enable_video_vivante=yes
  17917. fi
  17918. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  17919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  17920. $as_echo_n "checking for Vivante VDK API... " >&6; }
  17921. have_vivante_vdk=no
  17922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17923. /* end confdefs.h. */
  17924. #define LINUX
  17925. #define EGL_API_FB
  17926. #include <gc_vdk.h>
  17927. int
  17928. main ()
  17929. {
  17930. ;
  17931. return 0;
  17932. }
  17933. _ACEOF
  17934. if ac_fn_c_try_compile "$LINENO"; then :
  17935. have_vivante_vdk=yes
  17936. fi
  17937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  17939. $as_echo "$have_vivante_vdk" >&6; }
  17940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  17941. $as_echo_n "checking for Vivante FB API... " >&6; }
  17942. have_vivante_egl=no
  17943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17944. /* end confdefs.h. */
  17945. #define LINUX
  17946. #define EGL_API_FB
  17947. #include <EGL/eglvivante.h>
  17948. int
  17949. main ()
  17950. {
  17951. ;
  17952. return 0;
  17953. }
  17954. _ACEOF
  17955. if ac_fn_c_try_compile "$LINENO"; then :
  17956. have_vivante_egl=yes
  17957. fi
  17958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  17960. $as_echo "$have_vivante_egl" >&6; }
  17961. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  17962. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  17963. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  17964. if test x$have_vivante_vdk = xyes; then
  17965. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  17966. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  17967. fi
  17968. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  17969. SUMMARY_video="${SUMMARY_video} vivante"
  17970. have_video=yes
  17971. fi
  17972. fi
  17973. }
  17974. CheckHaikuVideo()
  17975. {
  17976. if test x$enable_video = xyes; then
  17977. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17978. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17979. have_video=yes
  17980. SUMMARY_video="${SUMMARY_video} haiku"
  17981. fi
  17982. }
  17983. CheckCOCOA()
  17984. {
  17985. # Check whether --enable-video-cocoa was given.
  17986. if test "${enable_video_cocoa+set}" = set; then :
  17987. enableval=$enable_video_cocoa;
  17988. else
  17989. enable_video_cocoa=yes
  17990. fi
  17991. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17992. save_CFLAGS="$CFLAGS"
  17993. CFLAGS="$CFLAGS -x objective-c"
  17994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17995. $as_echo_n "checking for Cocoa framework... " >&6; }
  17996. have_cocoa=no
  17997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17998. /* end confdefs.h. */
  17999. #import <Cocoa/Cocoa.h>
  18000. int
  18001. main ()
  18002. {
  18003. ;
  18004. return 0;
  18005. }
  18006. _ACEOF
  18007. if ac_fn_c_try_compile "$LINENO"; then :
  18008. have_cocoa=yes
  18009. fi
  18010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18012. $as_echo "$have_cocoa" >&6; }
  18013. CFLAGS="$save_CFLAGS"
  18014. if test x$have_cocoa = xyes; then
  18015. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18016. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18017. SUMMARY_video="${SUMMARY_video} cocoa"
  18018. have_video=yes
  18019. fi
  18020. fi
  18021. }
  18022. CheckDirectFB()
  18023. {
  18024. # Check whether --enable-video-directfb was given.
  18025. if test "${enable_video_directfb+set}" = set; then :
  18026. enableval=$enable_video_directfb;
  18027. else
  18028. enable_video_directfb=no
  18029. fi
  18030. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18031. video_directfb=no
  18032. DIRECTFB_REQUIRED_VERSION=1.0.0
  18033. for ac_prog in directfb-config
  18034. do
  18035. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18036. set dummy $ac_prog; ac_word=$2
  18037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18038. $as_echo_n "checking for $ac_word... " >&6; }
  18039. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18040. $as_echo_n "(cached) " >&6
  18041. else
  18042. case $DIRECTFBCONFIG in
  18043. [\\/]* | ?:[\\/]*)
  18044. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18045. ;;
  18046. *)
  18047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18048. as_dummy="$prefix/bin:$PATH"
  18049. for as_dir in $as_dummy
  18050. do
  18051. IFS=$as_save_IFS
  18052. test -z "$as_dir" && as_dir=.
  18053. for ac_exec_ext in '' $ac_executable_extensions; do
  18054. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18055. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18056. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18057. break 2
  18058. fi
  18059. done
  18060. done
  18061. IFS=$as_save_IFS
  18062. ;;
  18063. esac
  18064. fi
  18065. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18066. if test -n "$DIRECTFBCONFIG"; then
  18067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18068. $as_echo "$DIRECTFBCONFIG" >&6; }
  18069. else
  18070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18071. $as_echo "no" >&6; }
  18072. fi
  18073. test -n "$DIRECTFBCONFIG" && break
  18074. done
  18075. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18076. if test x$DIRECTFBCONFIG = xno; then
  18077. # Extract the first word of "pkg-config", so it can be a program name with args.
  18078. set dummy pkg-config; ac_word=$2
  18079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18080. $as_echo_n "checking for $ac_word... " >&6; }
  18081. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18082. $as_echo_n "(cached) " >&6
  18083. else
  18084. case $PKG_CONFIG in
  18085. [\\/]* | ?:[\\/]*)
  18086. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18087. ;;
  18088. *)
  18089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18090. for as_dir in $PATH
  18091. do
  18092. IFS=$as_save_IFS
  18093. test -z "$as_dir" && as_dir=.
  18094. for ac_exec_ext in '' $ac_executable_extensions; do
  18095. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18096. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18097. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18098. break 2
  18099. fi
  18100. done
  18101. done
  18102. IFS=$as_save_IFS
  18103. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18104. ;;
  18105. esac
  18106. fi
  18107. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18108. if test -n "$PKG_CONFIG"; then
  18109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18110. $as_echo "$PKG_CONFIG" >&6; }
  18111. else
  18112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18113. $as_echo "no" >&6; }
  18114. fi
  18115. if test x$PKG_CONFIG != xno; then
  18116. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18117. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18118. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18119. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18120. video_directfb=yes
  18121. fi
  18122. fi
  18123. else
  18124. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18125. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18126. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18127. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18128. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18129. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18130. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18131. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18132. video_directfb=yes
  18133. fi
  18134. fi
  18135. if test x$video_directfb = xyes; then
  18136. # SuSE 11.1 installs directfb-config without directfb-devel
  18137. save_CPPFLAGS="$CPPFLAGS"
  18138. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18139. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18140. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18141. have_directfb_hdr=yes
  18142. else
  18143. have_directfb_hdr=no
  18144. fi
  18145. CPPFLAGS="$save_CPPFLAGS"
  18146. video_directfb=$have_directfb_hdr
  18147. fi
  18148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18149. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18151. $as_echo "$video_directfb" >&6; }
  18152. if test x$video_directfb = xyes; then
  18153. # Check whether --enable-directfb-shared was given.
  18154. if test "${enable_directfb_shared+set}" = set; then :
  18155. enableval=$enable_directfb_shared;
  18156. else
  18157. enable_directfb_shared=yes
  18158. fi
  18159. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18160. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18161. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18162. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18164. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18165. directfb_shared=no
  18166. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  18167. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18168. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18169. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18170. if test x$have_loadso != xyes && \
  18171. test x$enable_directfb_shared = xyes; then
  18172. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18173. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18174. fi
  18175. if test x$have_loadso = xyes && \
  18176. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18177. directfb_shared=yes
  18178. echo "-- $directfb_lib_spec -> $directfb_lib"
  18179. cat >>confdefs.h <<_ACEOF
  18180. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18181. _ACEOF
  18182. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18183. else
  18184. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18185. SUMMARY_video="${SUMMARY_video} directfb"
  18186. fi
  18187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18188. $as_echo "$directfb_shared" >&6; }
  18189. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18190. have_video=yes
  18191. fi
  18192. fi
  18193. }
  18194. CheckDummyVideo()
  18195. {
  18196. # Check whether --enable-video-dummy was given.
  18197. if test "${enable_video_dummy+set}" = set; then :
  18198. enableval=$enable_video_dummy;
  18199. else
  18200. enable_video_dummy=yes
  18201. fi
  18202. if test x$enable_video_dummy = xyes; then
  18203. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18204. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18205. have_video=yes
  18206. SUMMARY_video="${SUMMARY_video} dummy"
  18207. fi
  18208. }
  18209. # Check whether --enable-video-opengl was given.
  18210. if test "${enable_video_opengl+set}" = set; then :
  18211. enableval=$enable_video_opengl;
  18212. else
  18213. enable_video_opengl=yes
  18214. fi
  18215. CheckOpenGLX11()
  18216. {
  18217. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18219. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18220. video_opengl=no
  18221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18222. /* end confdefs.h. */
  18223. #include <GL/gl.h>
  18224. #include <GL/glx.h>
  18225. int
  18226. main ()
  18227. {
  18228. ;
  18229. return 0;
  18230. }
  18231. _ACEOF
  18232. if ac_fn_c_try_compile "$LINENO"; then :
  18233. video_opengl=yes
  18234. fi
  18235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18237. $as_echo "$video_opengl" >&6; }
  18238. if test x$video_opengl = xyes; then
  18239. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18240. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18241. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18242. SUMMARY_video="${SUMMARY_video} opengl"
  18243. fi
  18244. fi
  18245. }
  18246. # Check whether --enable-video-opengles was given.
  18247. if test "${enable_video_opengles+set}" = set; then :
  18248. enableval=$enable_video_opengles;
  18249. else
  18250. enable_video_opengles=yes
  18251. fi
  18252. # Check whether --enable-video-opengles1 was given.
  18253. if test "${enable_video_opengles1+set}" = set; then :
  18254. enableval=$enable_video_opengles1;
  18255. else
  18256. enable_video_opengles1=yes
  18257. fi
  18258. # Check whether --enable-video-opengles2 was given.
  18259. if test "${enable_video_opengles2+set}" = set; then :
  18260. enableval=$enable_video_opengles2;
  18261. else
  18262. enable_video_opengles2=yes
  18263. fi
  18264. CheckOpenGLESX11()
  18265. {
  18266. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18268. $as_echo_n "checking for EGL support... " >&6; }
  18269. video_opengl_egl=no
  18270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18271. /* end confdefs.h. */
  18272. #define LINUX
  18273. #define EGL_API_FB
  18274. #include <EGL/egl.h>
  18275. #include <EGL/eglext.h>
  18276. int
  18277. main ()
  18278. {
  18279. ;
  18280. return 0;
  18281. }
  18282. _ACEOF
  18283. if ac_fn_c_try_compile "$LINENO"; then :
  18284. video_opengl_egl=yes
  18285. fi
  18286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18288. $as_echo "$video_opengl_egl" >&6; }
  18289. if test x$video_opengl_egl = xyes; then
  18290. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18291. fi
  18292. if test x$enable_video_opengles1 = xyes; then
  18293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18294. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18295. video_opengles_v1=no
  18296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18297. /* end confdefs.h. */
  18298. #include <GLES/gl.h>
  18299. #include <GLES/glext.h>
  18300. int
  18301. main ()
  18302. {
  18303. ;
  18304. return 0;
  18305. }
  18306. _ACEOF
  18307. if ac_fn_c_try_compile "$LINENO"; then :
  18308. video_opengles_v1=yes
  18309. fi
  18310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18312. $as_echo "$video_opengles_v1" >&6; }
  18313. if test x$video_opengles_v1 = xyes; then
  18314. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18315. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18316. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18317. fi
  18318. fi
  18319. if test x$enable_video_opengles2 = xyes; then
  18320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18321. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18322. video_opengles_v2=no
  18323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18324. /* end confdefs.h. */
  18325. #include <GLES2/gl2.h>
  18326. #include <GLES2/gl2ext.h>
  18327. int
  18328. main ()
  18329. {
  18330. ;
  18331. return 0;
  18332. }
  18333. _ACEOF
  18334. if ac_fn_c_try_compile "$LINENO"; then :
  18335. video_opengles_v2=yes
  18336. fi
  18337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18339. $as_echo "$video_opengles_v2" >&6; }
  18340. if test x$video_opengles_v2 = xyes; then
  18341. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18342. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18343. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18344. fi
  18345. fi
  18346. fi
  18347. }
  18348. CheckWINDOWSGL()
  18349. {
  18350. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18351. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18352. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18353. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18354. SUMMARY_video="${SUMMARY_video} opengl"
  18355. fi
  18356. }
  18357. CheckWINDOWSGLES()
  18358. {
  18359. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18361. $as_echo_n "checking for EGL support... " >&6; }
  18362. video_opengl_egl=no
  18363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18364. /* end confdefs.h. */
  18365. #include <EGL/egl.h>
  18366. int
  18367. main ()
  18368. {
  18369. ;
  18370. return 0;
  18371. }
  18372. _ACEOF
  18373. if ac_fn_c_try_compile "$LINENO"; then :
  18374. video_opengl_egl=yes
  18375. fi
  18376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18378. $as_echo "$video_opengl_egl" >&6; }
  18379. if test x$video_opengl_egl = xyes; then
  18380. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18381. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18382. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18383. fi
  18384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18385. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18386. video_opengles_v2=no
  18387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18388. /* end confdefs.h. */
  18389. #include <GLES2/gl2.h>
  18390. #include <GLES2/gl2ext.h>
  18391. int
  18392. main ()
  18393. {
  18394. ;
  18395. return 0;
  18396. }
  18397. _ACEOF
  18398. if ac_fn_c_try_compile "$LINENO"; then :
  18399. video_opengles_v2=yes
  18400. fi
  18401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18403. $as_echo "$video_opengles_v2" >&6; }
  18404. if test x$video_opengles_v2 = xyes; then
  18405. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18406. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18407. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18408. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18409. fi
  18410. fi
  18411. }
  18412. CheckHaikuGL()
  18413. {
  18414. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18415. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18416. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18417. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18418. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18419. SUMMARY_video="${SUMMARY_video} opengl"
  18420. fi
  18421. }
  18422. CheckMacGL()
  18423. {
  18424. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18425. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18426. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18427. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18428. SUMMARY_video="${SUMMARY_video} opengl"
  18429. fi
  18430. }
  18431. CheckEmscriptenGLES()
  18432. {
  18433. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18435. $as_echo_n "checking for EGL support... " >&6; }
  18436. video_opengl_egl=no
  18437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18438. /* end confdefs.h. */
  18439. #include <EGL/egl.h>
  18440. int
  18441. main ()
  18442. {
  18443. ;
  18444. return 0;
  18445. }
  18446. _ACEOF
  18447. if ac_fn_c_try_compile "$LINENO"; then :
  18448. video_opengl_egl=yes
  18449. fi
  18450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18452. $as_echo "$video_opengl_egl" >&6; }
  18453. if test x$video_opengl_egl = xyes; then
  18454. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18455. fi
  18456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18457. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18458. video_opengles_v2=no
  18459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18460. /* end confdefs.h. */
  18461. #include <GLES2/gl2.h>
  18462. #include <GLES2/gl2ext.h>
  18463. int
  18464. main ()
  18465. {
  18466. ;
  18467. return 0;
  18468. }
  18469. _ACEOF
  18470. if ac_fn_c_try_compile "$LINENO"; then :
  18471. video_opengles_v2=yes
  18472. fi
  18473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18475. $as_echo "$video_opengles_v2" >&6; }
  18476. if test x$video_opengles_v2 = xyes; then
  18477. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18478. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18479. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18480. fi
  18481. fi
  18482. }
  18483. CheckInputEvents()
  18484. {
  18485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18486. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18487. use_input_events=no
  18488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18489. /* end confdefs.h. */
  18490. #include <linux/input.h>
  18491. int
  18492. main ()
  18493. {
  18494. #ifndef EVIOCGNAME
  18495. #error EVIOCGNAME() ioctl not available
  18496. #endif
  18497. ;
  18498. return 0;
  18499. }
  18500. _ACEOF
  18501. if ac_fn_c_try_compile "$LINENO"; then :
  18502. use_input_events=yes
  18503. fi
  18504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18506. $as_echo "$use_input_events" >&6; }
  18507. if test x$use_input_events = xyes; then
  18508. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18509. SUMMARY_input="${SUMMARY_input} linuxev"
  18510. fi
  18511. }
  18512. CheckInputKD()
  18513. {
  18514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18515. $as_echo_n "checking for Linux kd.h... " >&6; }
  18516. use_input_kd=no
  18517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18518. /* end confdefs.h. */
  18519. #include <linux/kd.h>
  18520. #include <linux/keyboard.h>
  18521. int
  18522. main ()
  18523. {
  18524. struct kbentry kbe;
  18525. kbe.kb_table = KG_CTRL;
  18526. ioctl(0, KDGKBENT, &kbe);
  18527. ;
  18528. return 0;
  18529. }
  18530. _ACEOF
  18531. if ac_fn_c_try_compile "$LINENO"; then :
  18532. use_input_kd=yes
  18533. fi
  18534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18536. $as_echo "$use_input_kd" >&6; }
  18537. if test x$use_input_kd = xyes; then
  18538. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18539. SUMMARY_input="${SUMMARY_input} linuxkd"
  18540. fi
  18541. }
  18542. CheckLibUDev()
  18543. {
  18544. # Check whether --enable-libudev was given.
  18545. if test "${enable_libudev+set}" = set; then :
  18546. enableval=$enable_libudev;
  18547. else
  18548. enable_libudev=yes
  18549. fi
  18550. if test x$enable_libudev = xyes; then
  18551. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18552. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18553. have_libudev_h_hdr=yes
  18554. else
  18555. have_libudev_h_hdr=no
  18556. fi
  18557. if test x$have_libudev_h_hdr = xyes; then
  18558. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18559. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18560. if test x$udev_lib != x; then
  18561. echo "-- dynamic udev -> $udev_lib"
  18562. cat >>confdefs.h <<_ACEOF
  18563. #define SDL_UDEV_DYNAMIC "$udev_lib"
  18564. _ACEOF
  18565. fi
  18566. fi
  18567. fi
  18568. }
  18569. CheckDBus()
  18570. {
  18571. # Check whether --enable-dbus was given.
  18572. if test "${enable_dbus+set}" = set; then :
  18573. enableval=$enable_dbus;
  18574. else
  18575. enable_dbus=yes
  18576. fi
  18577. if test x$enable_dbus = xyes; then
  18578. # Extract the first word of "pkg-config", so it can be a program name with args.
  18579. set dummy pkg-config; ac_word=$2
  18580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18581. $as_echo_n "checking for $ac_word... " >&6; }
  18582. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18583. $as_echo_n "(cached) " >&6
  18584. else
  18585. case $PKG_CONFIG in
  18586. [\\/]* | ?:[\\/]*)
  18587. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18588. ;;
  18589. *)
  18590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18591. for as_dir in $PATH
  18592. do
  18593. IFS=$as_save_IFS
  18594. test -z "$as_dir" && as_dir=.
  18595. for ac_exec_ext in '' $ac_executable_extensions; do
  18596. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18597. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18599. break 2
  18600. fi
  18601. done
  18602. done
  18603. IFS=$as_save_IFS
  18604. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18605. ;;
  18606. esac
  18607. fi
  18608. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18609. if test -n "$PKG_CONFIG"; then
  18610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18611. $as_echo "$PKG_CONFIG" >&6; }
  18612. else
  18613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18614. $as_echo "no" >&6; }
  18615. fi
  18616. if test x$PKG_CONFIG != xno; then
  18617. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18618. save_CFLAGS="$CFLAGS"
  18619. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18620. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18621. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18622. have_dbus_dbus_h_hdr=yes
  18623. else
  18624. have_dbus_dbus_h_hdr=no
  18625. fi
  18626. CFLAGS="$save_CFLAGS"
  18627. if test x$have_dbus_dbus_h_hdr = xyes; then
  18628. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18629. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18630. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18631. fi
  18632. fi
  18633. fi
  18634. }
  18635. CheckIME()
  18636. {
  18637. # Check whether --enable-ime was given.
  18638. if test "${enable_ime+set}" = set; then :
  18639. enableval=$enable_ime;
  18640. else
  18641. enable_ime=yes
  18642. fi
  18643. if test x$enable_ime = xyes; then
  18644. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  18645. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  18646. fi
  18647. }
  18648. CheckIBus()
  18649. {
  18650. # Check whether --enable-ibus was given.
  18651. if test "${enable_ibus+set}" = set; then :
  18652. enableval=$enable_ibus;
  18653. else
  18654. enable_ibus=yes
  18655. fi
  18656. if test x$enable_ibus = xyes; then
  18657. # Extract the first word of "pkg-config", so it can be a program name with args.
  18658. set dummy pkg-config; ac_word=$2
  18659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18660. $as_echo_n "checking for $ac_word... " >&6; }
  18661. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18662. $as_echo_n "(cached) " >&6
  18663. else
  18664. case $PKG_CONFIG in
  18665. [\\/]* | ?:[\\/]*)
  18666. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18667. ;;
  18668. *)
  18669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18670. for as_dir in $PATH
  18671. do
  18672. IFS=$as_save_IFS
  18673. test -z "$as_dir" && as_dir=.
  18674. for ac_exec_ext in '' $ac_executable_extensions; do
  18675. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18676. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18678. break 2
  18679. fi
  18680. done
  18681. done
  18682. IFS=$as_save_IFS
  18683. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18684. ;;
  18685. esac
  18686. fi
  18687. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18688. if test -n "$PKG_CONFIG"; then
  18689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18690. $as_echo "$PKG_CONFIG" >&6; }
  18691. else
  18692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18693. $as_echo "no" >&6; }
  18694. fi
  18695. if test x$PKG_CONFIG != xno; then
  18696. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  18697. save_CFLAGS="$CFLAGS"
  18698. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  18699. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  18700. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  18701. have_ibus_ibus_h_hdr=yes
  18702. else
  18703. have_ibus_ibus_h_hdr=no
  18704. fi
  18705. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  18706. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  18707. have_inotify_inotify_h_hdr=yes
  18708. else
  18709. have_inotify_inotify_h_hdr=no
  18710. fi
  18711. CFLAGS="$save_CFLAGS"
  18712. if test x$have_ibus_ibus_h_hdr = xyes; then
  18713. if test x$enable_ime != xyes; then
  18714. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  18715. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  18716. have_ibus_ibus_h_hdr=no
  18717. elif test x$enable_dbus != xyes; then
  18718. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  18719. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  18720. have_ibus_ibus_h_hdr=no
  18721. elif test x$have_inotify_inotify_h_hdr != xyes; then
  18722. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  18723. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  18724. have_ibus_ibus_h_hdr=no
  18725. else
  18726. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  18727. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  18728. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  18729. fi
  18730. fi
  18731. fi
  18732. fi
  18733. }
  18734. CheckFcitx()
  18735. {
  18736. # Check whether --enable-fcitx was given.
  18737. if test "${enable_fcitx+set}" = set; then :
  18738. enableval=$enable_fcitx;
  18739. else
  18740. enable_fcitx=yes
  18741. fi
  18742. if test x$enable_fcitx = xyes; then
  18743. # Extract the first word of "pkg-config", so it can be a program name with args.
  18744. set dummy pkg-config; ac_word=$2
  18745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18746. $as_echo_n "checking for $ac_word... " >&6; }
  18747. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18748. $as_echo_n "(cached) " >&6
  18749. else
  18750. case $PKG_CONFIG in
  18751. [\\/]* | ?:[\\/]*)
  18752. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18753. ;;
  18754. *)
  18755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18756. for as_dir in $PATH
  18757. do
  18758. IFS=$as_save_IFS
  18759. test -z "$as_dir" && as_dir=.
  18760. for ac_exec_ext in '' $ac_executable_extensions; do
  18761. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18762. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18763. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18764. break 2
  18765. fi
  18766. done
  18767. done
  18768. IFS=$as_save_IFS
  18769. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18770. ;;
  18771. esac
  18772. fi
  18773. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18774. if test -n "$PKG_CONFIG"; then
  18775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18776. $as_echo "$PKG_CONFIG" >&6; }
  18777. else
  18778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18779. $as_echo "no" >&6; }
  18780. fi
  18781. if test x$PKG_CONFIG != xno; then
  18782. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  18783. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  18784. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  18785. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  18786. have_fcitx_frontend_h_hdr=yes
  18787. else
  18788. have_fcitx_frontend_h_hdr=no
  18789. fi
  18790. CFLAGS="$save_CFLAGS"
  18791. if test x$have_fcitx_frontend_h_hdr = xyes; then
  18792. if test x$enable_ime != xyes; then
  18793. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  18794. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  18795. have_fcitx_frontend_h_hdr=no
  18796. elif test x$enable_dbus != xyes; then
  18797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  18798. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  18799. have_fcitx_frontend_h_hdr=no
  18800. else
  18801. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  18802. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  18803. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  18804. fi
  18805. fi
  18806. fi
  18807. fi
  18808. }
  18809. CheckTslib()
  18810. {
  18811. # Check whether --enable-input-tslib was given.
  18812. if test "${enable_input_tslib+set}" = set; then :
  18813. enableval=$enable_input_tslib;
  18814. else
  18815. enable_input_tslib=yes
  18816. fi
  18817. if test x$enable_input_tslib = xyes; then
  18818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18819. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18820. enable_input_tslib=no
  18821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18822. /* end confdefs.h. */
  18823. #include "tslib.h"
  18824. int
  18825. main ()
  18826. {
  18827. ;
  18828. return 0;
  18829. }
  18830. _ACEOF
  18831. if ac_fn_c_try_compile "$LINENO"; then :
  18832. enable_input_tslib=yes
  18833. fi
  18834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18836. $as_echo "$enable_input_tslib" >&6; }
  18837. if test x$enable_input_tslib = xyes; then
  18838. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18839. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18840. SUMMARY_input="${SUMMARY_input} ts"
  18841. fi
  18842. fi
  18843. }
  18844. CheckPTHREAD()
  18845. {
  18846. # Check whether --enable-pthreads was given.
  18847. if test "${enable_pthreads+set}" = set; then :
  18848. enableval=$enable_pthreads;
  18849. else
  18850. enable_pthreads=yes
  18851. fi
  18852. # Check whether --enable-pthread-sem was given.
  18853. if test "${enable_pthread_sem+set}" = set; then :
  18854. enableval=$enable_pthread_sem;
  18855. else
  18856. enable_pthread_sem=yes
  18857. fi
  18858. case "$host" in
  18859. *-*-androideabi*)
  18860. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18861. pthread_lib=""
  18862. ;;
  18863. *-*-linux*|*-*-uclinux*)
  18864. pthread_cflags="-D_REENTRANT"
  18865. pthread_lib="-lpthread"
  18866. ;;
  18867. *-*-bsdi*)
  18868. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18869. pthread_lib=""
  18870. ;;
  18871. *-*-darwin*)
  18872. pthread_cflags="-D_THREAD_SAFE"
  18873. # causes Carbon.p complaints?
  18874. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18875. ;;
  18876. *-*-freebsd*|*-*-dragonfly*)
  18877. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18878. pthread_lib="-pthread"
  18879. ;;
  18880. *-*-netbsd*)
  18881. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18882. pthread_lib="-lpthread"
  18883. ;;
  18884. *-*-openbsd*)
  18885. pthread_cflags="-D_REENTRANT"
  18886. pthread_lib="-pthread"
  18887. ;;
  18888. *-*-solaris2.9)
  18889. # From Solaris 9+, posix4's preferred name is rt.
  18890. pthread_cflags="-D_REENTRANT"
  18891. pthread_lib="-lpthread -lrt"
  18892. ;;
  18893. *-*-solaris2.10)
  18894. # Solaris 10+ merged pthread into libc.
  18895. pthread_cflags="-D_REENTRANT"
  18896. pthread_lib="-lrt"
  18897. ;;
  18898. *-*-solaris*)
  18899. # Solaris 11+ merged rt into libc.
  18900. pthread_cflags="-D_REENTRANT"
  18901. pthread_lib=""
  18902. ;;
  18903. *-*-sysv5*)
  18904. pthread_cflags="-D_REENTRANT -Kthread"
  18905. pthread_lib=""
  18906. ;;
  18907. *-*-aix*)
  18908. pthread_cflags="-D_REENTRANT -mthreads"
  18909. pthread_lib="-lpthread"
  18910. ;;
  18911. *-*-hpux11*)
  18912. pthread_cflags="-D_REENTRANT"
  18913. pthread_lib="-L/usr/lib -lpthread"
  18914. ;;
  18915. *-*-haiku*)
  18916. pthread_cflags="-D_REENTRANT"
  18917. pthread_lib=""
  18918. ;;
  18919. *)
  18920. pthread_cflags="-D_REENTRANT"
  18921. pthread_lib="-lpthread"
  18922. ;;
  18923. esac
  18924. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18925. # Save the original compiler flags and libraries
  18926. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18927. # Add the pthread compiler flags and libraries
  18928. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18929. # Check to see if we have pthread support on this system
  18930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18931. $as_echo_n "checking for pthreads... " >&6; }
  18932. use_pthreads=no
  18933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18934. /* end confdefs.h. */
  18935. #include <pthread.h>
  18936. int
  18937. main ()
  18938. {
  18939. pthread_attr_t type;
  18940. pthread_attr_init(&type);
  18941. ;
  18942. return 0;
  18943. }
  18944. _ACEOF
  18945. if ac_fn_c_try_link "$LINENO"; then :
  18946. use_pthreads=yes
  18947. fi
  18948. rm -f core conftest.err conftest.$ac_objext \
  18949. conftest$ac_exeext conftest.$ac_ext
  18950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18951. $as_echo "$use_pthreads" >&6; }
  18952. # Restore the compiler flags and libraries
  18953. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18954. # Do futher testing if we have pthread support...
  18955. if test x$use_pthreads = xyes; then
  18956. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18957. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18958. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18959. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18960. # Save the original compiler flags and libraries
  18961. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18962. # Add the pthread compiler flags and libraries
  18963. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18964. # Check to see if recursive mutexes are available
  18965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18966. $as_echo_n "checking for recursive mutexes... " >&6; }
  18967. has_recursive_mutexes=no
  18968. if test x$has_recursive_mutexes = xno; then
  18969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18970. /* end confdefs.h. */
  18971. #define _GNU_SOURCE 1
  18972. #include <pthread.h>
  18973. int
  18974. main ()
  18975. {
  18976. pthread_mutexattr_t attr;
  18977. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18978. ;
  18979. return 0;
  18980. }
  18981. _ACEOF
  18982. if ac_fn_c_try_link "$LINENO"; then :
  18983. has_recursive_mutexes=yes
  18984. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18985. fi
  18986. rm -f core conftest.err conftest.$ac_objext \
  18987. conftest$ac_exeext conftest.$ac_ext
  18988. fi
  18989. if test x$has_recursive_mutexes = xno; then
  18990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18991. /* end confdefs.h. */
  18992. #define _GNU_SOURCE 1
  18993. #include <pthread.h>
  18994. int
  18995. main ()
  18996. {
  18997. pthread_mutexattr_t attr;
  18998. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18999. ;
  19000. return 0;
  19001. }
  19002. _ACEOF
  19003. if ac_fn_c_try_link "$LINENO"; then :
  19004. has_recursive_mutexes=yes
  19005. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19006. fi
  19007. rm -f core conftest.err conftest.$ac_objext \
  19008. conftest$ac_exeext conftest.$ac_ext
  19009. fi
  19010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19011. $as_echo "$has_recursive_mutexes" >&6; }
  19012. # Check to see if pthread semaphore support is missing
  19013. if test x$enable_pthread_sem = xyes; then
  19014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19015. $as_echo_n "checking for pthread semaphores... " >&6; }
  19016. have_pthread_sem=no
  19017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19018. /* end confdefs.h. */
  19019. #include <pthread.h>
  19020. #include <semaphore.h>
  19021. int
  19022. main ()
  19023. {
  19024. ;
  19025. return 0;
  19026. }
  19027. _ACEOF
  19028. if ac_fn_c_try_compile "$LINENO"; then :
  19029. have_pthread_sem=yes
  19030. fi
  19031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19033. $as_echo "$have_pthread_sem" >&6; }
  19034. fi
  19035. if test x$have_pthread_sem = xyes; then
  19036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19037. $as_echo_n "checking for sem_timedwait... " >&6; }
  19038. have_sem_timedwait=no
  19039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19040. /* end confdefs.h. */
  19041. #include <pthread.h>
  19042. #include <semaphore.h>
  19043. int
  19044. main ()
  19045. {
  19046. sem_timedwait(NULL, NULL);
  19047. ;
  19048. return 0;
  19049. }
  19050. _ACEOF
  19051. if ac_fn_c_try_link "$LINENO"; then :
  19052. have_sem_timedwait=yes
  19053. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19054. fi
  19055. rm -f core conftest.err conftest.$ac_objext \
  19056. conftest$ac_exeext conftest.$ac_ext
  19057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19058. $as_echo "$have_sem_timedwait" >&6; }
  19059. fi
  19060. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19061. "
  19062. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19063. have_pthread_np_h=yes
  19064. else
  19065. have_pthread_np_h=no
  19066. fi
  19067. if test x$have_pthread_np_h = xyes; then
  19068. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19069. fi
  19070. # Check to see if pthread naming is available
  19071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19072. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19074. /* end confdefs.h. */
  19075. /* Override any GCC internal prototype to avoid an error.
  19076. Use char because int might match the return type of a GCC
  19077. builtin and then its argument prototype would still apply. */
  19078. #ifdef __cplusplus
  19079. extern "C"
  19080. #endif
  19081. char pthread_setname_np ();
  19082. int
  19083. main ()
  19084. {
  19085. return pthread_setname_np ();
  19086. ;
  19087. return 0;
  19088. }
  19089. _ACEOF
  19090. if ac_fn_c_try_link "$LINENO"; then :
  19091. has_pthread_setname_np=yes
  19092. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19093. else
  19094. has_pthread_setname_np=no
  19095. fi
  19096. rm -f core conftest.err conftest.$ac_objext \
  19097. conftest$ac_exeext conftest.$ac_ext
  19098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19099. $as_echo "$has_pthread_setname_np" >&6; }
  19100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19101. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19103. /* end confdefs.h. */
  19104. /* Override any GCC internal prototype to avoid an error.
  19105. Use char because int might match the return type of a GCC
  19106. builtin and then its argument prototype would still apply. */
  19107. #ifdef __cplusplus
  19108. extern "C"
  19109. #endif
  19110. char pthread_set_name_np ();
  19111. int
  19112. main ()
  19113. {
  19114. return pthread_set_name_np ();
  19115. ;
  19116. return 0;
  19117. }
  19118. _ACEOF
  19119. if ac_fn_c_try_link "$LINENO"; then :
  19120. has_pthread_set_name_np=yes
  19121. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19122. else
  19123. has_pthread_set_name_np=no
  19124. fi
  19125. rm -f core conftest.err conftest.$ac_objext \
  19126. conftest$ac_exeext conftest.$ac_ext
  19127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19128. $as_echo "$has_pthread_set_name_np" >&6; }
  19129. # Restore the compiler flags and libraries
  19130. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19131. # Basic thread creation functions
  19132. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19133. # Semaphores
  19134. # We can fake these with mutexes and condition variables if necessary
  19135. if test x$have_pthread_sem = xyes; then
  19136. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19137. else
  19138. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19139. fi
  19140. # Mutexes
  19141. # We can fake these with semaphores if necessary
  19142. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19143. # Condition variables
  19144. # We can fake these with semaphores and mutexes if necessary
  19145. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19146. # Thread local storage
  19147. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19148. have_threads=yes
  19149. fi
  19150. fi
  19151. }
  19152. CheckWINDOWS()
  19153. {
  19154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19155. $as_echo_n "checking Windows compiler... " >&6; }
  19156. have_win32_gcc=no
  19157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19158. /* end confdefs.h. */
  19159. #include <windows.h>
  19160. int
  19161. main ()
  19162. {
  19163. ;
  19164. return 0;
  19165. }
  19166. _ACEOF
  19167. if ac_fn_c_try_compile "$LINENO"; then :
  19168. have_win32_gcc=yes
  19169. fi
  19170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19172. $as_echo "$have_win32_gcc" >&6; }
  19173. if test x$have_win32_gcc != xyes; then
  19174. as_fn_error $? "
  19175. *** Your compiler ($CC) does not produce Windows executables!
  19176. " "$LINENO" 5
  19177. fi
  19178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19179. $as_echo_n "checking Windows CE... " >&6; }
  19180. have_wince=no
  19181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19182. /* end confdefs.h. */
  19183. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19184. #error This is not Windows CE
  19185. #endif
  19186. int
  19187. main ()
  19188. {
  19189. ;
  19190. return 0;
  19191. }
  19192. _ACEOF
  19193. if ac_fn_c_try_compile "$LINENO"; then :
  19194. have_wince=yes
  19195. as_fn_error $? "
  19196. *** Sorry, Windows CE is no longer supported.
  19197. " "$LINENO" 5
  19198. fi
  19199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19201. $as_echo "$have_wince" >&6; }
  19202. # This fixes Windows stack alignment with newer GCC
  19203. CheckStackBoundary
  19204. }
  19205. CheckDIRECTX()
  19206. {
  19207. # Check whether --enable-directx was given.
  19208. if test "${enable_directx+set}" = set; then :
  19209. enableval=$enable_directx;
  19210. else
  19211. enable_directx=yes
  19212. fi
  19213. if test x$enable_directx = xyes; then
  19214. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19215. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19216. have_d3d=yes
  19217. fi
  19218. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19219. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19220. have_d3d11=yes
  19221. fi
  19222. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19223. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19224. have_ddraw=yes
  19225. fi
  19226. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19227. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19228. have_dsound=yes
  19229. fi
  19230. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19231. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19232. have_dinput=yes
  19233. fi
  19234. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19235. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19236. have_dxgi=yes
  19237. fi
  19238. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19239. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19240. have_xaudio2=yes
  19241. fi
  19242. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19243. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19244. have_xinput=yes
  19245. fi
  19246. if test x$have_ddraw = xyes; then
  19247. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19248. fi
  19249. if test x$have_dinput = xyes; then
  19250. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19251. fi
  19252. if test x$have_dsound = xyes; then
  19253. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19254. fi
  19255. if test x$have_dxgi = xyes; then
  19256. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19257. fi
  19258. if test x$have_xinput = xyes; then
  19259. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19260. fi
  19261. SUMMARY_video="${SUMMARY_video} directx"
  19262. SUMMARY_audio="${SUMMARY_audio} directx"
  19263. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19264. # FIXME: ...so force it off for now.
  19265. case "$host" in
  19266. *-*-cygwin*)
  19267. have_dinput=false
  19268. ;;
  19269. esac
  19270. fi
  19271. }
  19272. CheckDLOPEN()
  19273. {
  19274. # Check whether --enable-sdl-dlopen was given.
  19275. if test "${enable_sdl_dlopen+set}" = set; then :
  19276. enableval=$enable_sdl_dlopen;
  19277. else
  19278. enable_sdl_dlopen=yes
  19279. fi
  19280. if test x$enable_sdl_dlopen = xyes; then
  19281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19282. $as_echo_n "checking for dlopen... " >&6; }
  19283. have_dlopen=no
  19284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19285. /* end confdefs.h. */
  19286. #include <dlfcn.h>
  19287. int
  19288. main ()
  19289. {
  19290. void *handle = dlopen("", RTLD_NOW);
  19291. const char *loaderror = (char *) dlerror();
  19292. ;
  19293. return 0;
  19294. }
  19295. _ACEOF
  19296. if ac_fn_c_try_compile "$LINENO"; then :
  19297. have_dlopen=yes
  19298. fi
  19299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19301. $as_echo "$have_dlopen" >&6; }
  19302. if test x$have_dlopen = xyes; then
  19303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19304. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19305. if ${ac_cv_lib_c_dlopen+:} false; then :
  19306. $as_echo_n "(cached) " >&6
  19307. else
  19308. ac_check_lib_save_LIBS=$LIBS
  19309. LIBS="-lc $LIBS"
  19310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19311. /* end confdefs.h. */
  19312. /* Override any GCC internal prototype to avoid an error.
  19313. Use char because int might match the return type of a GCC
  19314. builtin and then its argument prototype would still apply. */
  19315. #ifdef __cplusplus
  19316. extern "C"
  19317. #endif
  19318. char dlopen ();
  19319. int
  19320. main ()
  19321. {
  19322. return dlopen ();
  19323. ;
  19324. return 0;
  19325. }
  19326. _ACEOF
  19327. if ac_fn_c_try_link "$LINENO"; then :
  19328. ac_cv_lib_c_dlopen=yes
  19329. else
  19330. ac_cv_lib_c_dlopen=no
  19331. fi
  19332. rm -f core conftest.err conftest.$ac_objext \
  19333. conftest$ac_exeext conftest.$ac_ext
  19334. LIBS=$ac_check_lib_save_LIBS
  19335. fi
  19336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19337. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19338. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19339. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19340. else
  19341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19342. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19343. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19344. $as_echo_n "(cached) " >&6
  19345. else
  19346. ac_check_lib_save_LIBS=$LIBS
  19347. LIBS="-ldl $LIBS"
  19348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19349. /* end confdefs.h. */
  19350. /* Override any GCC internal prototype to avoid an error.
  19351. Use char because int might match the return type of a GCC
  19352. builtin and then its argument prototype would still apply. */
  19353. #ifdef __cplusplus
  19354. extern "C"
  19355. #endif
  19356. char dlopen ();
  19357. int
  19358. main ()
  19359. {
  19360. return dlopen ();
  19361. ;
  19362. return 0;
  19363. }
  19364. _ACEOF
  19365. if ac_fn_c_try_link "$LINENO"; then :
  19366. ac_cv_lib_dl_dlopen=yes
  19367. else
  19368. ac_cv_lib_dl_dlopen=no
  19369. fi
  19370. rm -f core conftest.err conftest.$ac_objext \
  19371. conftest$ac_exeext conftest.$ac_ext
  19372. LIBS=$ac_check_lib_save_LIBS
  19373. fi
  19374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19375. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19376. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19377. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19378. else
  19379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19380. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19381. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19382. $as_echo_n "(cached) " >&6
  19383. else
  19384. ac_check_lib_save_LIBS=$LIBS
  19385. LIBS="-lltdl $LIBS"
  19386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19387. /* end confdefs.h. */
  19388. /* Override any GCC internal prototype to avoid an error.
  19389. Use char because int might match the return type of a GCC
  19390. builtin and then its argument prototype would still apply. */
  19391. #ifdef __cplusplus
  19392. extern "C"
  19393. #endif
  19394. char dlopen ();
  19395. int
  19396. main ()
  19397. {
  19398. return dlopen ();
  19399. ;
  19400. return 0;
  19401. }
  19402. _ACEOF
  19403. if ac_fn_c_try_link "$LINENO"; then :
  19404. ac_cv_lib_ltdl_dlopen=yes
  19405. else
  19406. ac_cv_lib_ltdl_dlopen=no
  19407. fi
  19408. rm -f core conftest.err conftest.$ac_objext \
  19409. conftest$ac_exeext conftest.$ac_ext
  19410. LIBS=$ac_check_lib_save_LIBS
  19411. fi
  19412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19413. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19414. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19415. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19416. fi
  19417. fi
  19418. fi
  19419. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19420. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19421. have_loadso=yes
  19422. fi
  19423. fi
  19424. }
  19425. CheckUSBHID()
  19426. {
  19427. case "$host" in
  19428. *-*-*bsd*)
  19429. if test x$enable_joystick = xyes; then
  19430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19431. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19432. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19433. $as_echo_n "(cached) " >&6
  19434. else
  19435. ac_check_lib_save_LIBS=$LIBS
  19436. LIBS="-lusbhid $LIBS"
  19437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19438. /* end confdefs.h. */
  19439. /* Override any GCC internal prototype to avoid an error.
  19440. Use char because int might match the return type of a GCC
  19441. builtin and then its argument prototype would still apply. */
  19442. #ifdef __cplusplus
  19443. extern "C"
  19444. #endif
  19445. char hid_init ();
  19446. int
  19447. main ()
  19448. {
  19449. return hid_init ();
  19450. ;
  19451. return 0;
  19452. }
  19453. _ACEOF
  19454. if ac_fn_c_try_link "$LINENO"; then :
  19455. ac_cv_lib_usbhid_hid_init=yes
  19456. else
  19457. ac_cv_lib_usbhid_hid_init=no
  19458. fi
  19459. rm -f core conftest.err conftest.$ac_objext \
  19460. conftest$ac_exeext conftest.$ac_ext
  19461. LIBS=$ac_check_lib_save_LIBS
  19462. fi
  19463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19464. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19465. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19466. have_libusbhid=yes
  19467. fi
  19468. if test x$have_libusbhid = xyes; then
  19469. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19470. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19471. USB_CFLAGS="-DHAVE_USBHID_H"
  19472. fi
  19473. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19474. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19475. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19476. fi
  19477. USB_LIBS="$USB_LIBS -lusbhid"
  19478. else
  19479. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19480. if test "x$ac_cv_header_usb_h" = xyes; then :
  19481. USB_CFLAGS="-DHAVE_USB_H"
  19482. fi
  19483. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19484. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19485. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19486. fi
  19487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19488. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19489. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19490. $as_echo_n "(cached) " >&6
  19491. else
  19492. ac_check_lib_save_LIBS=$LIBS
  19493. LIBS="-lusb $LIBS"
  19494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19495. /* end confdefs.h. */
  19496. /* Override any GCC internal prototype to avoid an error.
  19497. Use char because int might match the return type of a GCC
  19498. builtin and then its argument prototype would still apply. */
  19499. #ifdef __cplusplus
  19500. extern "C"
  19501. #endif
  19502. char hid_init ();
  19503. int
  19504. main ()
  19505. {
  19506. return hid_init ();
  19507. ;
  19508. return 0;
  19509. }
  19510. _ACEOF
  19511. if ac_fn_c_try_link "$LINENO"; then :
  19512. ac_cv_lib_usb_hid_init=yes
  19513. else
  19514. ac_cv_lib_usb_hid_init=no
  19515. fi
  19516. rm -f core conftest.err conftest.$ac_objext \
  19517. conftest$ac_exeext conftest.$ac_ext
  19518. LIBS=$ac_check_lib_save_LIBS
  19519. fi
  19520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19521. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19522. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19523. USB_LIBS="$USB_LIBS -lusb"
  19524. fi
  19525. fi
  19526. save_CFLAGS="$CFLAGS"
  19527. CFLAGS="$CFLAGS $USB_CFLAGS"
  19528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19529. $as_echo_n "checking for usbhid... " >&6; }
  19530. have_usbhid=no
  19531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19532. /* end confdefs.h. */
  19533. #include <sys/types.h>
  19534. #if defined(HAVE_USB_H)
  19535. #include <usb.h>
  19536. #endif
  19537. #ifdef __DragonFly__
  19538. # include <bus/usb/usb.h>
  19539. # include <bus/usb/usbhid.h>
  19540. #else
  19541. # include <dev/usb/usb.h>
  19542. # include <dev/usb/usbhid.h>
  19543. #endif
  19544. #if defined(HAVE_USBHID_H)
  19545. #include <usbhid.h>
  19546. #elif defined(HAVE_LIBUSB_H)
  19547. #include <libusb.h>
  19548. #elif defined(HAVE_LIBUSBHID_H)
  19549. #include <libusbhid.h>
  19550. #endif
  19551. int
  19552. main ()
  19553. {
  19554. struct report_desc *repdesc;
  19555. struct usb_ctl_report *repbuf;
  19556. hid_kind_t hidkind;
  19557. ;
  19558. return 0;
  19559. }
  19560. _ACEOF
  19561. if ac_fn_c_try_compile "$LINENO"; then :
  19562. have_usbhid=yes
  19563. fi
  19564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19566. $as_echo "$have_usbhid" >&6; }
  19567. if test x$have_usbhid = xyes; then
  19568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19569. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19570. have_usbhid_ucr_data=no
  19571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19572. /* end confdefs.h. */
  19573. #include <sys/types.h>
  19574. #if defined(HAVE_USB_H)
  19575. #include <usb.h>
  19576. #endif
  19577. #ifdef __DragonFly__
  19578. # include <bus/usb/usb.h>
  19579. # include <bus/usb/usbhid.h>
  19580. #else
  19581. # include <dev/usb/usb.h>
  19582. # include <dev/usb/usbhid.h>
  19583. #endif
  19584. #if defined(HAVE_USBHID_H)
  19585. #include <usbhid.h>
  19586. #elif defined(HAVE_LIBUSB_H)
  19587. #include <libusb.h>
  19588. #elif defined(HAVE_LIBUSBHID_H)
  19589. #include <libusbhid.h>
  19590. #endif
  19591. int
  19592. main ()
  19593. {
  19594. struct usb_ctl_report buf;
  19595. if (buf.ucr_data) { }
  19596. ;
  19597. return 0;
  19598. }
  19599. _ACEOF
  19600. if ac_fn_c_try_compile "$LINENO"; then :
  19601. have_usbhid_ucr_data=yes
  19602. fi
  19603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19604. if test x$have_usbhid_ucr_data = xyes; then
  19605. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19606. fi
  19607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19608. $as_echo "$have_usbhid_ucr_data" >&6; }
  19609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19610. $as_echo_n "checking for new usbhid API... " >&6; }
  19611. have_usbhid_new=no
  19612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19613. /* end confdefs.h. */
  19614. #include <sys/types.h>
  19615. #if defined(HAVE_USB_H)
  19616. #include <usb.h>
  19617. #endif
  19618. #ifdef __DragonFly__
  19619. #include <bus/usb/usb.h>
  19620. #include <bus/usb/usbhid.h>
  19621. #else
  19622. #include <dev/usb/usb.h>
  19623. #include <dev/usb/usbhid.h>
  19624. #endif
  19625. #if defined(HAVE_USBHID_H)
  19626. #include <usbhid.h>
  19627. #elif defined(HAVE_LIBUSB_H)
  19628. #include <libusb.h>
  19629. #elif defined(HAVE_LIBUSBHID_H)
  19630. #include <libusbhid.h>
  19631. #endif
  19632. int
  19633. main ()
  19634. {
  19635. report_desc_t d;
  19636. hid_start_parse(d, 1, 1);
  19637. ;
  19638. return 0;
  19639. }
  19640. _ACEOF
  19641. if ac_fn_c_try_compile "$LINENO"; then :
  19642. have_usbhid_new=yes
  19643. fi
  19644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19645. if test x$have_usbhid_new = xyes; then
  19646. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19647. fi
  19648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19649. $as_echo "$have_usbhid_new" >&6; }
  19650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19651. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19652. have_machine_joystick=no
  19653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19654. /* end confdefs.h. */
  19655. #include <machine/joystick.h>
  19656. int
  19657. main ()
  19658. {
  19659. struct joystick t;
  19660. ;
  19661. return 0;
  19662. }
  19663. _ACEOF
  19664. if ac_fn_c_try_compile "$LINENO"; then :
  19665. have_machine_joystick=yes
  19666. fi
  19667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19668. if test x$have_machine_joystick = xyes; then
  19669. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19670. fi
  19671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19672. $as_echo "$have_machine_joystick" >&6; }
  19673. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19674. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19675. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19676. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19677. have_joystick=yes
  19678. fi
  19679. CFLAGS="$save_CFLAGS"
  19680. fi
  19681. ;;
  19682. esac
  19683. }
  19684. CheckClockGettime()
  19685. {
  19686. # Check whether --enable-clock_gettime was given.
  19687. if test "${enable_clock_gettime+set}" = set; then :
  19688. enableval=$enable_clock_gettime;
  19689. else
  19690. enable_clock_gettime=yes
  19691. fi
  19692. if test x$enable_clock_gettime = xyes; then
  19693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19694. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19695. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19696. $as_echo_n "(cached) " >&6
  19697. else
  19698. ac_check_lib_save_LIBS=$LIBS
  19699. LIBS="-lrt $LIBS"
  19700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19701. /* end confdefs.h. */
  19702. /* Override any GCC internal prototype to avoid an error.
  19703. Use char because int might match the return type of a GCC
  19704. builtin and then its argument prototype would still apply. */
  19705. #ifdef __cplusplus
  19706. extern "C"
  19707. #endif
  19708. char clock_gettime ();
  19709. int
  19710. main ()
  19711. {
  19712. return clock_gettime ();
  19713. ;
  19714. return 0;
  19715. }
  19716. _ACEOF
  19717. if ac_fn_c_try_link "$LINENO"; then :
  19718. ac_cv_lib_rt_clock_gettime=yes
  19719. else
  19720. ac_cv_lib_rt_clock_gettime=no
  19721. fi
  19722. rm -f core conftest.err conftest.$ac_objext \
  19723. conftest$ac_exeext conftest.$ac_ext
  19724. LIBS=$ac_check_lib_save_LIBS
  19725. fi
  19726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19727. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19728. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19729. have_clock_gettime=yes
  19730. fi
  19731. if test x$have_clock_gettime = xyes; then
  19732. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19733. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19734. else
  19735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19736. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19737. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19738. $as_echo_n "(cached) " >&6
  19739. else
  19740. ac_check_lib_save_LIBS=$LIBS
  19741. LIBS="-lc $LIBS"
  19742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19743. /* end confdefs.h. */
  19744. /* Override any GCC internal prototype to avoid an error.
  19745. Use char because int might match the return type of a GCC
  19746. builtin and then its argument prototype would still apply. */
  19747. #ifdef __cplusplus
  19748. extern "C"
  19749. #endif
  19750. char clock_gettime ();
  19751. int
  19752. main ()
  19753. {
  19754. return clock_gettime ();
  19755. ;
  19756. return 0;
  19757. }
  19758. _ACEOF
  19759. if ac_fn_c_try_link "$LINENO"; then :
  19760. ac_cv_lib_c_clock_gettime=yes
  19761. else
  19762. ac_cv_lib_c_clock_gettime=no
  19763. fi
  19764. rm -f core conftest.err conftest.$ac_objext \
  19765. conftest$ac_exeext conftest.$ac_ext
  19766. LIBS=$ac_check_lib_save_LIBS
  19767. fi
  19768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19769. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19770. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19771. have_clock_gettime=yes
  19772. fi
  19773. if test x$have_clock_gettime = xyes; then
  19774. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19775. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19776. fi
  19777. fi
  19778. fi
  19779. }
  19780. CheckLinuxVersion()
  19781. {
  19782. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19783. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19784. have_linux_version_h=yes
  19785. fi
  19786. if test x$have_linux_version_h = xyes; then
  19787. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19788. fi
  19789. }
  19790. CheckRPATH()
  19791. {
  19792. # Check whether --enable-rpath was given.
  19793. if test "${enable_rpath+set}" = set; then :
  19794. enableval=$enable_rpath;
  19795. else
  19796. enable_rpath=yes
  19797. fi
  19798. }
  19799. CheckWarnAll
  19800. case "$host" in
  19801. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19802. case "$host" in
  19803. *-raspberry-linux*)
  19804. # Raspberry Pi
  19805. ARCH=linux
  19806. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19807. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19808. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19809. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19810. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19811. if test x$enable_video = xyes; then
  19812. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19813. # FIXME: confdefs? Not AC_DEFINE?
  19814. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19815. SUMMARY_video="${SUMMARY_video} rpi"
  19816. fi
  19817. ;;
  19818. *-*-androideabi*)
  19819. # Android
  19820. ARCH=android
  19821. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  19822. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  19823. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  19824. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  19825. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  19826. if test x$enable_video = xyes; then
  19827. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  19828. # FIXME: confdefs? Not AC_DEFINE?
  19829. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  19830. SUMMARY_video="${SUMMARY_video} android"
  19831. fi
  19832. ;;
  19833. *-*-linux*) ARCH=linux ;;
  19834. *-*-uclinux*) ARCH=linux ;;
  19835. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19836. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19837. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19838. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19839. *-*-bsdi*) ARCH=bsdi ;;
  19840. *-*-freebsd*) ARCH=freebsd ;;
  19841. *-*-dragonfly*) ARCH=freebsd ;;
  19842. *-raspberry-netbsd*)
  19843. # Raspberry Pi
  19844. ARCH=netbsd
  19845. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19846. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19847. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19848. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19849. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
  19850. if test x$enable_video = xyes; then
  19851. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19852. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19853. SUMMARY_video="${SUMMARY_video} raspberry"
  19854. fi
  19855. ;;
  19856. *-*-netbsd*) ARCH=netbsd ;;
  19857. *-*-openbsd*) ARCH=openbsd ;;
  19858. *-*-sysv5*) ARCH=sysv5 ;;
  19859. *-*-solaris*) ARCH=solaris ;;
  19860. *-*-hpux*) ARCH=hpux ;;
  19861. *-*-aix*) ARCH=aix ;;
  19862. *-*-minix*) ARCH=minix ;;
  19863. esac
  19864. CheckVisibilityHidden
  19865. CheckDeclarationAfterStatement
  19866. CheckDummyVideo
  19867. CheckDiskAudio
  19868. CheckDummyAudio
  19869. CheckDLOPEN
  19870. CheckOSS
  19871. CheckALSA
  19872. CheckPulseAudio
  19873. CheckARTSC
  19874. CheckESD
  19875. CheckNAS
  19876. CheckSNDIO
  19877. CheckFusionSound
  19878. CheckLibSampleRate
  19879. CheckX11
  19880. CheckDirectFB
  19881. CheckOpenGLX11
  19882. CheckOpenGLESX11
  19883. CheckMir
  19884. CheckWayland
  19885. CheckLibUDev
  19886. CheckDBus
  19887. CheckIME
  19888. CheckIBus
  19889. CheckFcitx
  19890. case $ARCH in
  19891. linux)
  19892. CheckInputEvents
  19893. CheckInputKD
  19894. ;;
  19895. esac
  19896. CheckTslib
  19897. CheckUSBHID
  19898. CheckPTHREAD
  19899. CheckClockGettime
  19900. CheckLinuxVersion
  19901. CheckRPATH
  19902. CheckVivanteVideo
  19903. # Set up files for the audio library
  19904. if test x$enable_audio = xyes; then
  19905. case $ARCH in
  19906. sysv5|solaris|hpux)
  19907. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19908. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19909. have_audio=yes
  19910. ;;
  19911. netbsd) # Don't use this on OpenBSD, it's busted.
  19912. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19913. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19914. have_audio=yes
  19915. ;;
  19916. aix)
  19917. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19918. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19919. have_audio=yes
  19920. ;;
  19921. android)
  19922. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  19923. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  19924. SUMMARY_audio="${SUMMARY_audio} android"
  19925. have_audio=yes
  19926. ;;
  19927. esac
  19928. fi
  19929. # Set up files for the joystick library
  19930. if test x$enable_joystick = xyes; then
  19931. case $ARCH in
  19932. linux)
  19933. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19934. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19935. have_joystick=yes
  19936. ;;
  19937. android)
  19938. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  19939. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  19940. have_joystick=yes
  19941. ;;
  19942. esac
  19943. fi
  19944. # Set up files for the haptic library
  19945. if test x$enable_haptic = xyes; then
  19946. if test x$use_input_events = xyes; then
  19947. case $ARCH in
  19948. linux)
  19949. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19950. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19951. have_haptic=yes
  19952. ;;
  19953. esac
  19954. fi
  19955. fi
  19956. # Set up files for the power library
  19957. if test x$enable_power = xyes; then
  19958. case $ARCH in
  19959. linux)
  19960. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19961. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19962. have_power=yes
  19963. ;;
  19964. android)
  19965. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  19966. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  19967. have_power=yes
  19968. ;;
  19969. esac
  19970. fi
  19971. # Set up files for the filesystem library
  19972. if test x$enable_filesystem = xyes; then
  19973. case $ARCH in
  19974. android)
  19975. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  19976. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  19977. have_filesystem=yes
  19978. ;;
  19979. *)
  19980. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19981. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19982. have_filesystem=yes
  19983. ;;
  19984. esac
  19985. fi
  19986. # Set up files for the timer library
  19987. if test x$enable_timers = xyes; then
  19988. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19989. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19990. have_timers=yes
  19991. fi
  19992. # Set up files for udev hotplugging support
  19993. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19994. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19995. fi
  19996. # Set up files for evdev input
  19997. if test x$use_input_events = xyes; then
  19998. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  19999. fi
  20000. ;;
  20001. *-*-cygwin* | *-*-mingw32*)
  20002. ARCH=win32
  20003. if test "$build" != "$host"; then # cross-compiling
  20004. # Default cross-compile location
  20005. ac_default_prefix=/usr/local/cross-tools/$host
  20006. else
  20007. # Look for the location of the tools and install there
  20008. if test "$BUILD_PREFIX" != ""; then
  20009. ac_default_prefix=$BUILD_PREFIX
  20010. fi
  20011. fi
  20012. CheckDeclarationAfterStatement
  20013. CheckDummyVideo
  20014. CheckDiskAudio
  20015. CheckDummyAudio
  20016. CheckWINDOWS
  20017. CheckWINDOWSGL
  20018. CheckWINDOWSGLES
  20019. CheckDIRECTX
  20020. # Set up the core platform files
  20021. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20022. # Set up files for the video library
  20023. if test x$enable_video = xyes; then
  20024. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20025. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20026. have_video=yes
  20027. # Check whether --enable-render-d3d was given.
  20028. if test "${enable_render_d3d+set}" = set; then :
  20029. enableval=$enable_render_d3d;
  20030. else
  20031. enable_render_d3d=yes
  20032. fi
  20033. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20034. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20035. fi
  20036. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20037. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20038. fi
  20039. fi
  20040. # Set up files for the audio library
  20041. if test x$enable_audio = xyes; then
  20042. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20043. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20044. if test x$have_dsound = xyes; then
  20045. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20046. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20047. fi
  20048. if test x$have_xaudio2 = xyes; then
  20049. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  20050. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  20051. fi
  20052. have_audio=yes
  20053. fi
  20054. # Set up files for the joystick library
  20055. if test x$enable_joystick = xyes; then
  20056. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20057. if test x$have_xinput = xyes; then
  20058. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20059. fi
  20060. if test x$have_dinput = xyes; then
  20061. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20062. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20063. fi
  20064. else
  20065. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20066. fi
  20067. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20068. have_joystick=yes
  20069. fi
  20070. if test x$enable_haptic = xyes; then
  20071. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20072. if test x$have_xinput = xyes; then
  20073. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20074. fi
  20075. if test x$have_dinput = xyes; then
  20076. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20077. fi
  20078. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20079. have_haptic=yes
  20080. fi
  20081. fi
  20082. if test x$enable_power = xyes; then
  20083. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20084. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20085. have_power=yes
  20086. fi
  20087. if test x$enable_filesystem = xyes; then
  20088. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20089. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20090. have_filesystem=yes
  20091. fi
  20092. # Set up files for the thread library
  20093. if test x$enable_threads = xyes; then
  20094. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20095. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20096. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20097. have_threads=yes
  20098. fi
  20099. # Set up files for the timer library
  20100. if test x$enable_timers = xyes; then
  20101. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20102. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20103. have_timers=yes
  20104. fi
  20105. # Set up files for the shared object loading library
  20106. if test x$enable_loadso = xyes; then
  20107. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20108. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20109. have_loadso=yes
  20110. fi
  20111. # Set up the system libraries we need
  20112. if test -f /lib/w32api/libuuid.a; then
  20113. LIBUUID=/lib/w32api/libuuid.a
  20114. else
  20115. LIBUUID=-luuid
  20116. fi
  20117. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20118. # The Windows platform requires special setup
  20119. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20120. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20121. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20122. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20123. # Check to see if this is a mingw or cygwin build
  20124. have_mingw32=
  20125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20126. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20127. if ${ac_cv_lib_mingw32_main+:} false; then :
  20128. $as_echo_n "(cached) " >&6
  20129. else
  20130. ac_check_lib_save_LIBS=$LIBS
  20131. LIBS="-lmingw32 $LIBS"
  20132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20133. /* end confdefs.h. */
  20134. int
  20135. main ()
  20136. {
  20137. return main ();
  20138. ;
  20139. return 0;
  20140. }
  20141. _ACEOF
  20142. if ac_fn_c_try_link "$LINENO"; then :
  20143. ac_cv_lib_mingw32_main=yes
  20144. else
  20145. ac_cv_lib_mingw32_main=no
  20146. fi
  20147. rm -f core conftest.err conftest.$ac_objext \
  20148. conftest$ac_exeext conftest.$ac_ext
  20149. LIBS=$ac_check_lib_save_LIBS
  20150. fi
  20151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20152. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20153. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20154. have_mingw32=yes
  20155. fi
  20156. if test x$have_mingw32 = xyes; then
  20157. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20158. else
  20159. SDL_LIBS="-lcygwin $SDL_LIBS"
  20160. fi
  20161. ;;
  20162. *-*-beos*)
  20163. as_fn_error $? "
  20164. *** BeOS support has been removed as of SDL 2.0.2.
  20165. " "$LINENO" 5
  20166. ;;
  20167. *-*-haiku*)
  20168. ARCH=haiku
  20169. ac_default_prefix=/boot/system
  20170. CheckDummyVideo
  20171. CheckDiskAudio
  20172. CheckDummyAudio
  20173. CheckDLOPEN
  20174. CheckHaikuVideo
  20175. CheckHaikuGL
  20176. CheckPTHREAD
  20177. # Set up files for the audio library
  20178. if test x$enable_audio = xyes; then
  20179. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20180. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20181. have_audio=yes
  20182. fi
  20183. # Set up files for the joystick library
  20184. if test x$enable_joystick = xyes; then
  20185. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20186. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20187. have_joystick=yes
  20188. fi
  20189. # Set up files for the timer library
  20190. if test x$enable_timers = xyes; then
  20191. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20192. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20193. have_timers=yes
  20194. fi
  20195. # Set up files for the system power library
  20196. if test x$enable_power = xyes; then
  20197. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20198. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20199. have_power=yes
  20200. fi
  20201. # Set up files for the system filesystem library
  20202. if test x$enable_filesystem = xyes; then
  20203. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20204. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20205. have_filesystem=yes
  20206. fi
  20207. # The Haiku platform requires special setup.
  20208. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20209. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20210. ;;
  20211. arm*-apple-darwin*|*-ios-*)
  20212. ARCH=ios
  20213. CheckVisibilityHidden
  20214. CheckDeclarationAfterStatement
  20215. CheckDummyVideo
  20216. CheckDiskAudio
  20217. CheckDummyAudio
  20218. CheckDLOPEN
  20219. CheckPTHREAD
  20220. # Set up files for the audio library
  20221. if test x$enable_audio = xyes; then
  20222. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20223. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20224. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20225. have_audio=yes
  20226. fi
  20227. # Set up files for the joystick library
  20228. if test x$enable_joystick = xyes; then
  20229. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20230. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20231. have_joystick=yes
  20232. fi
  20233. # Set up files for the haptic library
  20234. #if test x$enable_haptic = xyes; then
  20235. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20236. # have_haptic=yes
  20237. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20238. #fi
  20239. # Set up files for the power library
  20240. if test x$enable_power = xyes; then
  20241. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20242. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20243. have_power=yes
  20244. fi
  20245. # Set up files for the filesystem library
  20246. if test x$enable_filesystem = xyes; then
  20247. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20248. have_filesystem=yes
  20249. fi
  20250. # Set up additional files for the file library
  20251. if test x$enable_file = xyes; then
  20252. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20253. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20254. fi
  20255. # Set up files for the timer library
  20256. if test x$enable_timers = xyes; then
  20257. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20258. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20259. have_timers=yes
  20260. fi
  20261. # The iOS platform requires special setup.
  20262. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20263. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20264. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20265. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20266. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20267. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20268. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20269. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20270. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20271. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20272. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20273. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20274. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20275. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20276. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20277. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20278. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20279. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20280. ;;
  20281. *-*-darwin* )
  20282. # This could be either full "Mac OS X", or plain "Darwin" which is
  20283. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20284. # Next line is broken, and a few files below require Mac OS X (full)
  20285. ARCH=macosx
  20286. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20287. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20288. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20289. CheckVisibilityHidden
  20290. CheckDeclarationAfterStatement
  20291. CheckDummyVideo
  20292. CheckDiskAudio
  20293. CheckDummyAudio
  20294. CheckDLOPEN
  20295. CheckCOCOA
  20296. CheckX11
  20297. CheckMacGL
  20298. CheckOpenGLX11
  20299. CheckPTHREAD
  20300. # Set up files for the audio library
  20301. if test x$enable_audio = xyes; then
  20302. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20303. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20304. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20305. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20306. have_audio=yes
  20307. fi
  20308. # Set up files for the joystick library
  20309. if test x$enable_joystick = xyes; then
  20310. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20311. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20312. have_joystick=yes
  20313. fi
  20314. # Set up files for the haptic library
  20315. if test x$enable_haptic = xyes; then
  20316. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20317. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20318. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20319. have_haptic=yes
  20320. fi
  20321. # Set up files for the power library
  20322. if test x$enable_power = xyes; then
  20323. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20324. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20325. have_power=yes
  20326. fi
  20327. # Set up files for the filesystem library
  20328. if test x$enable_filesystem = xyes; then
  20329. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20330. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20331. have_filesystem=yes
  20332. fi
  20333. # Set up files for the timer library
  20334. if test x$enable_timers = xyes; then
  20335. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20336. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20337. have_timers=yes
  20338. fi
  20339. # Set up additional files for the file library
  20340. if test x$enable_file = xyes; then
  20341. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20342. fi
  20343. # The Mac OS X platform requires special setup.
  20344. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20345. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20346. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20347. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20348. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20349. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20350. ;;
  20351. *-nacl|*-pnacl)
  20352. ARCH=nacl
  20353. CheckNativeClient
  20354. CheckDummyAudio
  20355. CheckDummyVideo
  20356. CheckInputEvents
  20357. CheckPTHREAD
  20358. # Set up files for the timer library
  20359. if test x$enable_timers = xyes; then
  20360. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20361. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20362. have_timers=yes
  20363. fi
  20364. if test x$enable_filesystem = xyes; then
  20365. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20366. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20367. have_filesystem=yes
  20368. fi
  20369. ;;
  20370. *-*-emscripten* )
  20371. if test x$enable_video = xyes; then
  20372. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20373. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20374. have_video=yes
  20375. SUMMARY_video="${SUMMARY_video} emscripten"
  20376. fi
  20377. if test x$enable_audio = xyes; then
  20378. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20379. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20380. have_audio=yes
  20381. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20382. fi
  20383. CheckVisibilityHidden
  20384. CheckDeclarationAfterStatement
  20385. CheckDummyVideo
  20386. CheckDiskAudio
  20387. CheckDummyAudio
  20388. CheckDLOPEN
  20389. CheckClockGettime
  20390. CheckEmscriptenGLES
  20391. # Set up files for the power library
  20392. if test x$enable_power = xyes; then
  20393. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20394. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20395. have_power=yes
  20396. fi
  20397. # Set up files for the power library
  20398. if test x$enable_joystick = xyes; then
  20399. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20400. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20401. have_joystick=yes
  20402. fi
  20403. # Set up files for the filesystem library
  20404. if test x$enable_filesystem = xyes; then
  20405. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20406. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20407. have_filesystem=yes
  20408. fi
  20409. # Set up files for the timer library
  20410. if test x$enable_timers = xyes; then
  20411. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20412. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20413. have_timers=yes
  20414. fi
  20415. ;;
  20416. *)
  20417. as_fn_error $? "
  20418. *** Unsupported host: Please add to configure.in
  20419. " "$LINENO" 5
  20420. ;;
  20421. esac
  20422. # Verify that we have all the platform specific files we need
  20423. if test x$have_joystick != xyes; then
  20424. if test x$enable_joystick = xyes; then
  20425. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20426. fi
  20427. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20428. fi
  20429. if test x$have_haptic != xyes; then
  20430. if test x$enable_haptic = xyes; then
  20431. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20432. fi
  20433. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20434. fi
  20435. if test x$have_threads != xyes; then
  20436. if test x$enable_threads = xyes; then
  20437. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20438. fi
  20439. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20440. fi
  20441. if test x$have_timers != xyes; then
  20442. if test x$enable_timers = xyes; then
  20443. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20444. fi
  20445. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20446. fi
  20447. if test x$have_filesystem != xyes; then
  20448. if test x$enable_filesystem = xyes; then
  20449. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20450. fi
  20451. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20452. fi
  20453. if test x$have_loadso != xyes; then
  20454. if test x$enable_loadso = xyes; then
  20455. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20456. fi
  20457. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20458. fi
  20459. if test x$SDLMAIN_SOURCES = x; then
  20460. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20461. fi
  20462. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20463. if test x$video_wayland = xyes; then
  20464. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  20465. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  20466. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20467. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  20468. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20469. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  20470. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  20471. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  20472. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  20473. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20474. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20475. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  20476. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  20477. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20478. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20479. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  20480. WAYLAND_CORE_PROTOCOL_OBJECT="
  20481. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  20482. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  20483. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20484. do echo ; echo \$p | sed\
  20485. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20486. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20487. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  20488. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20489. do echo ; echo \$p | sed\
  20490. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20491. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20492. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  20493. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20494. do echo ; echo \$p | sed\
  20495. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  20496. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  20497. WAYLAND_PROTOCOLS_DEPENDS="
  20498. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  20499. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  20500. $WAYLAND_CORE_PROTOCOL_OBJECT
  20501. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  20502. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  20503. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  20504. "
  20505. fi
  20506. OBJECTS=`echo $SOURCES`
  20507. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20508. for EXT in asm cc m c S; do
  20509. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20510. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20511. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20512. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20513. done
  20514. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20515. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20516. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20517. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20518. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20519. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20520. \\$(WINDRES) \\$< \\$@,g"`
  20521. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20522. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20523. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20524. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20525. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20526. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20527. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20528. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20529. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20530. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20531. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20532. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20533. # Set runtime shared library paths as needed
  20534. if test "x$enable_rpath" = "xyes"; then
  20535. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20536. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  20538. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  20539. have_enable_new_dtags=no
  20540. save_LDFLAGS="$LDFLAGS"
  20541. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  20542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20543. /* end confdefs.h. */
  20544. int
  20545. main ()
  20546. {
  20547. ;
  20548. return 0;
  20549. }
  20550. _ACEOF
  20551. if ac_fn_c_try_link "$LINENO"; then :
  20552. have_enable_new_dtags=yes
  20553. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  20554. fi
  20555. rm -f core conftest.err conftest.$ac_objext \
  20556. conftest$ac_exeext conftest.$ac_ext
  20557. LDFLAGS="$save_LDFLAGS"
  20558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  20559. $as_echo "$have_enable_new_dtags" >&6; }
  20560. fi
  20561. if test $ARCH = solaris; then
  20562. SDL_RLD_FLAGS="-R\${libdir}"
  20563. fi
  20564. else
  20565. SDL_RLD_FLAGS=""
  20566. fi
  20567. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20568. if test x$enable_shared = xyes; then
  20569. ENABLE_SHARED_TRUE=
  20570. ENABLE_SHARED_FALSE="#"
  20571. else
  20572. ENABLE_SHARED_TRUE="#"
  20573. ENABLE_SHARED_FALSE=
  20574. fi
  20575. if test x$enable_static = xyes; then
  20576. ENABLE_STATIC_TRUE=
  20577. ENABLE_STATIC_FALSE="#"
  20578. else
  20579. ENABLE_STATIC_TRUE="#"
  20580. ENABLE_STATIC_FALSE=
  20581. fi
  20582. cat >Makefile.rules <<__EOF__
  20583. # Build rules for objects
  20584. -include \$(OBJECTS:.lo=.d)
  20585. # Special dependency for SDL.c, since it depends on SDL_revision.h
  20586. $srcdir/src/SDL.c: update-revision
  20587. $DEPENDS
  20588. $VERSION_DEPENDS
  20589. $SDLMAIN_DEPENDS
  20590. $SDLTEST_DEPENDS
  20591. $WAYLAND_PROTOCOLS_DEPENDS
  20592. __EOF__
  20593. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  20594. ac_config_commands="$ac_config_commands sdl2_config"
  20595. SUMMARY="SDL2 Configure Summary:\n"
  20596. if test x$enable_shared = xyes; then
  20597. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  20598. fi
  20599. if test x$enable_static = xyes; then
  20600. SUMMARY="${SUMMARY}Building Static Libraries\n"
  20601. fi
  20602. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  20603. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  20604. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  20605. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  20606. if test x$have_x = xyes; then
  20607. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  20608. fi
  20609. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  20610. if test x$have_samplerate_h_hdr = xyes; then
  20611. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  20612. else
  20613. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  20614. fi
  20615. if test x$have_libudev_h_hdr = xyes; then
  20616. SUMMARY="${SUMMARY}Using libudev : YES\n"
  20617. else
  20618. SUMMARY="${SUMMARY}Using libudev : NO\n"
  20619. fi
  20620. if test x$have_dbus_dbus_h_hdr = xyes; then
  20621. SUMMARY="${SUMMARY}Using dbus : YES\n"
  20622. else
  20623. SUMMARY="${SUMMARY}Using dbus : NO\n"
  20624. fi
  20625. if test x$enable_ime = xyes; then
  20626. SUMMARY="${SUMMARY}Using ime : YES\n"
  20627. else
  20628. SUMMARY="${SUMMARY}Using ime : NO\n"
  20629. fi
  20630. if test x$have_ibus_ibus_h_hdr = xyes; then
  20631. SUMMARY="${SUMMARY}Using ibus : YES\n"
  20632. else
  20633. SUMMARY="${SUMMARY}Using ibus : NO\n"
  20634. fi
  20635. if test x$have_fcitx_frontend_h_hdr = xyes; then
  20636. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  20637. else
  20638. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  20639. fi
  20640. ac_config_commands="$ac_config_commands summary"
  20641. cat >confcache <<\_ACEOF
  20642. # This file is a shell script that caches the results of configure
  20643. # tests run on this system so they can be shared between configure
  20644. # scripts and configure runs, see configure's option --config-cache.
  20645. # It is not useful on other systems. If it contains results you don't
  20646. # want to keep, you may remove or edit it.
  20647. #
  20648. # config.status only pays attention to the cache file if you give it
  20649. # the --recheck option to rerun configure.
  20650. #
  20651. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20652. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20653. # following values.
  20654. _ACEOF
  20655. # The following way of writing the cache mishandles newlines in values,
  20656. # but we know of no workaround that is simple, portable, and efficient.
  20657. # So, we kill variables containing newlines.
  20658. # Ultrix sh set writes to stderr and can't be redirected directly,
  20659. # and sets the high bit in the cache file unless we assign to the vars.
  20660. (
  20661. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20662. eval ac_val=\$$ac_var
  20663. case $ac_val in #(
  20664. *${as_nl}*)
  20665. case $ac_var in #(
  20666. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20667. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20668. esac
  20669. case $ac_var in #(
  20670. _ | IFS | as_nl) ;; #(
  20671. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20672. *) { eval $ac_var=; unset $ac_var;} ;;
  20673. esac ;;
  20674. esac
  20675. done
  20676. (set) 2>&1 |
  20677. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20678. *${as_nl}ac_space=\ *)
  20679. # `set' does not quote correctly, so add quotes: double-quote
  20680. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20681. sed -n \
  20682. "s/'/'\\\\''/g;
  20683. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20684. ;; #(
  20685. *)
  20686. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20687. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20688. ;;
  20689. esac |
  20690. sort
  20691. ) |
  20692. sed '
  20693. /^ac_cv_env_/b end
  20694. t clear
  20695. :clear
  20696. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20697. t end
  20698. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20699. :end' >>confcache
  20700. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20701. if test -w "$cache_file"; then
  20702. if test "x$cache_file" != "x/dev/null"; then
  20703. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20704. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20705. if test ! -f "$cache_file" || test -h "$cache_file"; then
  20706. cat confcache >"$cache_file"
  20707. else
  20708. case $cache_file in #(
  20709. */* | ?:*)
  20710. mv -f confcache "$cache_file"$$ &&
  20711. mv -f "$cache_file"$$ "$cache_file" ;; #(
  20712. *)
  20713. mv -f confcache "$cache_file" ;;
  20714. esac
  20715. fi
  20716. fi
  20717. else
  20718. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20719. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20720. fi
  20721. fi
  20722. rm -f confcache
  20723. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20724. # Let make expand exec_prefix.
  20725. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20726. DEFS=-DHAVE_CONFIG_H
  20727. ac_libobjs=
  20728. ac_ltlibobjs=
  20729. U=
  20730. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20731. # 1. Remove the extension, and $U if already installed.
  20732. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20733. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20734. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20735. # will be set to the directory where LIBOBJS objects are built.
  20736. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20737. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20738. done
  20739. LIBOBJS=$ac_libobjs
  20740. LTLIBOBJS=$ac_ltlibobjs
  20741. : "${CONFIG_STATUS=./config.status}"
  20742. ac_write_fail=0
  20743. ac_clean_files_save=$ac_clean_files
  20744. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20745. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20746. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20747. as_write_fail=0
  20748. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20749. #! $SHELL
  20750. # Generated by $as_me.
  20751. # Run this file to recreate the current configuration.
  20752. # Compiler output produced by configure, useful for debugging
  20753. # configure, is in config.log if it exists.
  20754. debug=false
  20755. ac_cs_recheck=false
  20756. ac_cs_silent=false
  20757. SHELL=\${CONFIG_SHELL-$SHELL}
  20758. export SHELL
  20759. _ASEOF
  20760. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20761. ## -------------------- ##
  20762. ## M4sh Initialization. ##
  20763. ## -------------------- ##
  20764. # Be more Bourne compatible
  20765. DUALCASE=1; export DUALCASE # for MKS sh
  20766. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20767. emulate sh
  20768. NULLCMD=:
  20769. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20770. # is contrary to our usage. Disable this feature.
  20771. alias -g '${1+"$@"}'='"$@"'
  20772. setopt NO_GLOB_SUBST
  20773. else
  20774. case `(set -o) 2>/dev/null` in #(
  20775. *posix*) :
  20776. set -o posix ;; #(
  20777. *) :
  20778. ;;
  20779. esac
  20780. fi
  20781. as_nl='
  20782. '
  20783. export as_nl
  20784. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20785. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20786. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20787. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20788. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20789. # but without wasting forks for bash or zsh.
  20790. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20791. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20792. as_echo='print -r --'
  20793. as_echo_n='print -rn --'
  20794. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20795. as_echo='printf %s\n'
  20796. as_echo_n='printf %s'
  20797. else
  20798. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20799. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20800. as_echo_n='/usr/ucb/echo -n'
  20801. else
  20802. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20803. as_echo_n_body='eval
  20804. arg=$1;
  20805. case $arg in #(
  20806. *"$as_nl"*)
  20807. expr "X$arg" : "X\\(.*\\)$as_nl";
  20808. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20809. esac;
  20810. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20811. '
  20812. export as_echo_n_body
  20813. as_echo_n='sh -c $as_echo_n_body as_echo'
  20814. fi
  20815. export as_echo_body
  20816. as_echo='sh -c $as_echo_body as_echo'
  20817. fi
  20818. # The user is always right.
  20819. if test "${PATH_SEPARATOR+set}" != set; then
  20820. PATH_SEPARATOR=:
  20821. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20822. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20823. PATH_SEPARATOR=';'
  20824. }
  20825. fi
  20826. # IFS
  20827. # We need space, tab and new line, in precisely that order. Quoting is
  20828. # there to prevent editors from complaining about space-tab.
  20829. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20830. # splitting by setting IFS to empty value.)
  20831. IFS=" "" $as_nl"
  20832. # Find who we are. Look in the path if we contain no directory separator.
  20833. as_myself=
  20834. case $0 in #((
  20835. *[\\/]* ) as_myself=$0 ;;
  20836. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20837. for as_dir in $PATH
  20838. do
  20839. IFS=$as_save_IFS
  20840. test -z "$as_dir" && as_dir=.
  20841. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20842. done
  20843. IFS=$as_save_IFS
  20844. ;;
  20845. esac
  20846. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20847. # in which case we are not to be found in the path.
  20848. if test "x$as_myself" = x; then
  20849. as_myself=$0
  20850. fi
  20851. if test ! -f "$as_myself"; then
  20852. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20853. exit 1
  20854. fi
  20855. # Unset variables that we do not need and which cause bugs (e.g. in
  20856. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20857. # suppresses any "Segmentation fault" message there. '((' could
  20858. # trigger a bug in pdksh 5.2.14.
  20859. for as_var in BASH_ENV ENV MAIL MAILPATH
  20860. do eval test x\${$as_var+set} = xset \
  20861. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20862. done
  20863. PS1='$ '
  20864. PS2='> '
  20865. PS4='+ '
  20866. # NLS nuisances.
  20867. LC_ALL=C
  20868. export LC_ALL
  20869. LANGUAGE=C
  20870. export LANGUAGE
  20871. # CDPATH.
  20872. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20873. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20874. # ----------------------------------------
  20875. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20876. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20877. # script with STATUS, using 1 if that was 0.
  20878. as_fn_error ()
  20879. {
  20880. as_status=$1; test $as_status -eq 0 && as_status=1
  20881. if test "$4"; then
  20882. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20883. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20884. fi
  20885. $as_echo "$as_me: error: $2" >&2
  20886. as_fn_exit $as_status
  20887. } # as_fn_error
  20888. # as_fn_set_status STATUS
  20889. # -----------------------
  20890. # Set $? to STATUS, without forking.
  20891. as_fn_set_status ()
  20892. {
  20893. return $1
  20894. } # as_fn_set_status
  20895. # as_fn_exit STATUS
  20896. # -----------------
  20897. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20898. as_fn_exit ()
  20899. {
  20900. set +e
  20901. as_fn_set_status $1
  20902. exit $1
  20903. } # as_fn_exit
  20904. # as_fn_unset VAR
  20905. # ---------------
  20906. # Portably unset VAR.
  20907. as_fn_unset ()
  20908. {
  20909. { eval $1=; unset $1;}
  20910. }
  20911. as_unset=as_fn_unset
  20912. # as_fn_append VAR VALUE
  20913. # ----------------------
  20914. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20915. # advantage of any shell optimizations that allow amortized linear growth over
  20916. # repeated appends, instead of the typical quadratic growth present in naive
  20917. # implementations.
  20918. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20919. eval 'as_fn_append ()
  20920. {
  20921. eval $1+=\$2
  20922. }'
  20923. else
  20924. as_fn_append ()
  20925. {
  20926. eval $1=\$$1\$2
  20927. }
  20928. fi # as_fn_append
  20929. # as_fn_arith ARG...
  20930. # ------------------
  20931. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20932. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20933. # must be portable across $(()) and expr.
  20934. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20935. eval 'as_fn_arith ()
  20936. {
  20937. as_val=$(( $* ))
  20938. }'
  20939. else
  20940. as_fn_arith ()
  20941. {
  20942. as_val=`expr "$@" || test $? -eq 1`
  20943. }
  20944. fi # as_fn_arith
  20945. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20946. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20947. as_expr=expr
  20948. else
  20949. as_expr=false
  20950. fi
  20951. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20952. as_basename=basename
  20953. else
  20954. as_basename=false
  20955. fi
  20956. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20957. as_dirname=dirname
  20958. else
  20959. as_dirname=false
  20960. fi
  20961. as_me=`$as_basename -- "$0" ||
  20962. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20963. X"$0" : 'X\(//\)$' \| \
  20964. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20965. $as_echo X/"$0" |
  20966. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20967. s//\1/
  20968. q
  20969. }
  20970. /^X\/\(\/\/\)$/{
  20971. s//\1/
  20972. q
  20973. }
  20974. /^X\/\(\/\).*/{
  20975. s//\1/
  20976. q
  20977. }
  20978. s/.*/./; q'`
  20979. # Avoid depending upon Character Ranges.
  20980. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20981. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20982. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20983. as_cr_digits='0123456789'
  20984. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20985. ECHO_C= ECHO_N= ECHO_T=
  20986. case `echo -n x` in #(((((
  20987. -n*)
  20988. case `echo 'xy\c'` in
  20989. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20990. xy) ECHO_C='\c';;
  20991. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20992. ECHO_T=' ';;
  20993. esac;;
  20994. *)
  20995. ECHO_N='-n';;
  20996. esac
  20997. rm -f conf$$ conf$$.exe conf$$.file
  20998. if test -d conf$$.dir; then
  20999. rm -f conf$$.dir/conf$$.file
  21000. else
  21001. rm -f conf$$.dir
  21002. mkdir conf$$.dir 2>/dev/null
  21003. fi
  21004. if (echo >conf$$.file) 2>/dev/null; then
  21005. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21006. as_ln_s='ln -s'
  21007. # ... but there are two gotchas:
  21008. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21009. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21010. # In both cases, we have to default to `cp -pR'.
  21011. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21012. as_ln_s='cp -pR'
  21013. elif ln conf$$.file conf$$ 2>/dev/null; then
  21014. as_ln_s=ln
  21015. else
  21016. as_ln_s='cp -pR'
  21017. fi
  21018. else
  21019. as_ln_s='cp -pR'
  21020. fi
  21021. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21022. rmdir conf$$.dir 2>/dev/null
  21023. # as_fn_mkdir_p
  21024. # -------------
  21025. # Create "$as_dir" as a directory, including parents if necessary.
  21026. as_fn_mkdir_p ()
  21027. {
  21028. case $as_dir in #(
  21029. -*) as_dir=./$as_dir;;
  21030. esac
  21031. test -d "$as_dir" || eval $as_mkdir_p || {
  21032. as_dirs=
  21033. while :; do
  21034. case $as_dir in #(
  21035. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21036. *) as_qdir=$as_dir;;
  21037. esac
  21038. as_dirs="'$as_qdir' $as_dirs"
  21039. as_dir=`$as_dirname -- "$as_dir" ||
  21040. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21041. X"$as_dir" : 'X\(//\)[^/]' \| \
  21042. X"$as_dir" : 'X\(//\)$' \| \
  21043. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21044. $as_echo X"$as_dir" |
  21045. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21046. s//\1/
  21047. q
  21048. }
  21049. /^X\(\/\/\)[^/].*/{
  21050. s//\1/
  21051. q
  21052. }
  21053. /^X\(\/\/\)$/{
  21054. s//\1/
  21055. q
  21056. }
  21057. /^X\(\/\).*/{
  21058. s//\1/
  21059. q
  21060. }
  21061. s/.*/./; q'`
  21062. test -d "$as_dir" && break
  21063. done
  21064. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21065. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21066. } # as_fn_mkdir_p
  21067. if mkdir -p . 2>/dev/null; then
  21068. as_mkdir_p='mkdir -p "$as_dir"'
  21069. else
  21070. test -d ./-p && rmdir ./-p
  21071. as_mkdir_p=false
  21072. fi
  21073. # as_fn_executable_p FILE
  21074. # -----------------------
  21075. # Test if FILE is an executable regular file.
  21076. as_fn_executable_p ()
  21077. {
  21078. test -f "$1" && test -x "$1"
  21079. } # as_fn_executable_p
  21080. as_test_x='test -x'
  21081. as_executable_p=as_fn_executable_p
  21082. # Sed expression to map a string onto a valid CPP name.
  21083. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21084. # Sed expression to map a string onto a valid variable name.
  21085. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21086. exec 6>&1
  21087. ## ----------------------------------- ##
  21088. ## Main body of $CONFIG_STATUS script. ##
  21089. ## ----------------------------------- ##
  21090. _ASEOF
  21091. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21092. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21093. # Save the log message, to keep $0 and so on meaningful, and to
  21094. # report actual input values of CONFIG_FILES etc. instead of their
  21095. # values after options handling.
  21096. ac_log="
  21097. This file was extended by $as_me, which was
  21098. generated by GNU Autoconf 2.69. Invocation command line was
  21099. CONFIG_FILES = $CONFIG_FILES
  21100. CONFIG_HEADERS = $CONFIG_HEADERS
  21101. CONFIG_LINKS = $CONFIG_LINKS
  21102. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21103. $ $0 $@
  21104. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21105. "
  21106. _ACEOF
  21107. case $ac_config_files in *"
  21108. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21109. esac
  21110. case $ac_config_headers in *"
  21111. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21112. esac
  21113. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21114. # Files that config.status was made for.
  21115. config_files="$ac_config_files"
  21116. config_headers="$ac_config_headers"
  21117. config_commands="$ac_config_commands"
  21118. _ACEOF
  21119. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21120. ac_cs_usage="\
  21121. \`$as_me' instantiates files and other configuration actions
  21122. from templates according to the current configuration. Unless the files
  21123. and actions are specified as TAGs, all are instantiated by default.
  21124. Usage: $0 [OPTION]... [TAG]...
  21125. -h, --help print this help, then exit
  21126. -V, --version print version number and configuration settings, then exit
  21127. --config print configuration, then exit
  21128. -q, --quiet, --silent
  21129. do not print progress messages
  21130. -d, --debug don't remove temporary files
  21131. --recheck update $as_me by reconfiguring in the same conditions
  21132. --file=FILE[:TEMPLATE]
  21133. instantiate the configuration file FILE
  21134. --header=FILE[:TEMPLATE]
  21135. instantiate the configuration header FILE
  21136. Configuration files:
  21137. $config_files
  21138. Configuration headers:
  21139. $config_headers
  21140. Configuration commands:
  21141. $config_commands
  21142. Report bugs to the package provider."
  21143. _ACEOF
  21144. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21145. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21146. ac_cs_version="\\
  21147. config.status
  21148. configured by $0, generated by GNU Autoconf 2.69,
  21149. with options \\"\$ac_cs_config\\"
  21150. Copyright (C) 2012 Free Software Foundation, Inc.
  21151. This config.status script is free software; the Free Software Foundation
  21152. gives unlimited permission to copy, distribute and modify it."
  21153. ac_pwd='$ac_pwd'
  21154. srcdir='$srcdir'
  21155. INSTALL='$INSTALL'
  21156. AWK='$AWK'
  21157. test -n "\$AWK" || AWK=awk
  21158. _ACEOF
  21159. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21160. # The default lists apply if the user does not specify any file.
  21161. ac_need_defaults=:
  21162. while test $# != 0
  21163. do
  21164. case $1 in
  21165. --*=?*)
  21166. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21167. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21168. ac_shift=:
  21169. ;;
  21170. --*=)
  21171. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21172. ac_optarg=
  21173. ac_shift=:
  21174. ;;
  21175. *)
  21176. ac_option=$1
  21177. ac_optarg=$2
  21178. ac_shift=shift
  21179. ;;
  21180. esac
  21181. case $ac_option in
  21182. # Handling of the options.
  21183. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21184. ac_cs_recheck=: ;;
  21185. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21186. $as_echo "$ac_cs_version"; exit ;;
  21187. --config | --confi | --conf | --con | --co | --c )
  21188. $as_echo "$ac_cs_config"; exit ;;
  21189. --debug | --debu | --deb | --de | --d | -d )
  21190. debug=: ;;
  21191. --file | --fil | --fi | --f )
  21192. $ac_shift
  21193. case $ac_optarg in
  21194. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21195. '') as_fn_error $? "missing file argument" ;;
  21196. esac
  21197. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21198. ac_need_defaults=false;;
  21199. --header | --heade | --head | --hea )
  21200. $ac_shift
  21201. case $ac_optarg in
  21202. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21203. esac
  21204. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21205. ac_need_defaults=false;;
  21206. --he | --h)
  21207. # Conflict between --help and --header
  21208. as_fn_error $? "ambiguous option: \`$1'
  21209. Try \`$0 --help' for more information.";;
  21210. --help | --hel | -h )
  21211. $as_echo "$ac_cs_usage"; exit ;;
  21212. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21213. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21214. ac_cs_silent=: ;;
  21215. # This is an error.
  21216. -*) as_fn_error $? "unrecognized option: \`$1'
  21217. Try \`$0 --help' for more information." ;;
  21218. *) as_fn_append ac_config_targets " $1"
  21219. ac_need_defaults=false ;;
  21220. esac
  21221. shift
  21222. done
  21223. ac_configure_extra_args=
  21224. if $ac_cs_silent; then
  21225. exec 6>/dev/null
  21226. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21227. fi
  21228. _ACEOF
  21229. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21230. if \$ac_cs_recheck; then
  21231. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21232. shift
  21233. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21234. CONFIG_SHELL='$SHELL'
  21235. export CONFIG_SHELL
  21236. exec "\$@"
  21237. fi
  21238. _ACEOF
  21239. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21240. exec 5>>config.log
  21241. {
  21242. echo
  21243. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21244. ## Running $as_me. ##
  21245. _ASBOX
  21246. $as_echo "$ac_log"
  21247. } >&5
  21248. _ACEOF
  21249. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21250. #
  21251. # INIT-COMMANDS
  21252. #
  21253. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21254. # if CDPATH is set.
  21255. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21256. sed_quote_subst='$sed_quote_subst'
  21257. double_quote_subst='$double_quote_subst'
  21258. delay_variable_subst='$delay_variable_subst'
  21259. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21260. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21261. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21262. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21263. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21264. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21265. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21266. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21267. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21268. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21269. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21270. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21271. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21272. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21273. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21274. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21275. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21276. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21277. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21278. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21279. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21280. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21281. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21282. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21283. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21284. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21285. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21286. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21287. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21288. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21289. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21290. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21291. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21292. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21293. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21294. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21295. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21296. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21297. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21298. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21299. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21300. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21301. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21302. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21303. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21304. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21305. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21306. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21307. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21308. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21309. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21310. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21311. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21312. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21313. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21314. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21315. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21316. 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"`'
  21317. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21318. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21319. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21320. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21321. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21322. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21323. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21324. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21325. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21326. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21327. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21328. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21329. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21330. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21331. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21332. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21333. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21334. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21335. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21336. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21337. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21338. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21339. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21340. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21341. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21342. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21343. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21344. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21345. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21346. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21347. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21348. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21349. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21350. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21351. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21352. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21353. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21354. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21355. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21356. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21357. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21358. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21359. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21360. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21361. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21362. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21363. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21364. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21365. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21366. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21367. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21368. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21369. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21370. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21371. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21372. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21373. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21374. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21375. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21376. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21377. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21378. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21379. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21380. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21381. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21382. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21383. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21384. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21385. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21386. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21387. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21388. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21389. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21390. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21391. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21392. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21393. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21394. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21395. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21396. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21397. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21398. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21399. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21400. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21401. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21402. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21403. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21404. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21405. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21406. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21407. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21408. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21409. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21410. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21411. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21412. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21413. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21414. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21415. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21416. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21417. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21418. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21419. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21420. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21421. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21422. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21423. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21424. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21425. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21426. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21427. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21428. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21429. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21430. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21431. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21432. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21433. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21434. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21435. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21436. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21437. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21438. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21439. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21440. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21441. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21442. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21443. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21444. LTCC='$LTCC'
  21445. LTCFLAGS='$LTCFLAGS'
  21446. compiler='$compiler_DEFAULT'
  21447. # A function that is used when there is no print builtin or printf.
  21448. func_fallback_echo ()
  21449. {
  21450. eval 'cat <<_LTECHO_EOF
  21451. \$1
  21452. _LTECHO_EOF'
  21453. }
  21454. # Quote evaled strings.
  21455. for var in AS \
  21456. DLLTOOL \
  21457. OBJDUMP \
  21458. SHELL \
  21459. ECHO \
  21460. PATH_SEPARATOR \
  21461. SED \
  21462. GREP \
  21463. EGREP \
  21464. FGREP \
  21465. LD \
  21466. NM \
  21467. LN_S \
  21468. lt_SP2NL \
  21469. lt_NL2SP \
  21470. reload_flag \
  21471. deplibs_check_method \
  21472. file_magic_cmd \
  21473. file_magic_glob \
  21474. want_nocaseglob \
  21475. sharedlib_from_linklib_cmd \
  21476. AR \
  21477. AR_FLAGS \
  21478. archiver_list_spec \
  21479. STRIP \
  21480. RANLIB \
  21481. CC \
  21482. CFLAGS \
  21483. compiler \
  21484. lt_cv_sys_global_symbol_pipe \
  21485. lt_cv_sys_global_symbol_to_cdecl \
  21486. lt_cv_sys_global_symbol_to_c_name_address \
  21487. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21488. nm_file_list_spec \
  21489. lt_prog_compiler_no_builtin_flag \
  21490. lt_prog_compiler_pic \
  21491. lt_prog_compiler_wl \
  21492. lt_prog_compiler_static \
  21493. lt_cv_prog_compiler_c_o \
  21494. need_locks \
  21495. MANIFEST_TOOL \
  21496. DSYMUTIL \
  21497. NMEDIT \
  21498. LIPO \
  21499. OTOOL \
  21500. OTOOL64 \
  21501. shrext_cmds \
  21502. export_dynamic_flag_spec \
  21503. whole_archive_flag_spec \
  21504. compiler_needs_object \
  21505. with_gnu_ld \
  21506. allow_undefined_flag \
  21507. no_undefined_flag \
  21508. hardcode_libdir_flag_spec \
  21509. hardcode_libdir_separator \
  21510. exclude_expsyms \
  21511. include_expsyms \
  21512. file_list_spec \
  21513. variables_saved_for_relink \
  21514. libname_spec \
  21515. library_names_spec \
  21516. soname_spec \
  21517. install_override_mode \
  21518. finish_eval \
  21519. old_striplib \
  21520. striplib \
  21521. compiler_lib_search_dirs \
  21522. predep_objects \
  21523. postdep_objects \
  21524. predeps \
  21525. postdeps \
  21526. compiler_lib_search_path \
  21527. LD_CXX \
  21528. reload_flag_CXX \
  21529. compiler_CXX \
  21530. lt_prog_compiler_no_builtin_flag_CXX \
  21531. lt_prog_compiler_pic_CXX \
  21532. lt_prog_compiler_wl_CXX \
  21533. lt_prog_compiler_static_CXX \
  21534. lt_cv_prog_compiler_c_o_CXX \
  21535. export_dynamic_flag_spec_CXX \
  21536. whole_archive_flag_spec_CXX \
  21537. compiler_needs_object_CXX \
  21538. with_gnu_ld_CXX \
  21539. allow_undefined_flag_CXX \
  21540. no_undefined_flag_CXX \
  21541. hardcode_libdir_flag_spec_CXX \
  21542. hardcode_libdir_separator_CXX \
  21543. exclude_expsyms_CXX \
  21544. include_expsyms_CXX \
  21545. file_list_spec_CXX \
  21546. compiler_lib_search_dirs_CXX \
  21547. predep_objects_CXX \
  21548. postdep_objects_CXX \
  21549. predeps_CXX \
  21550. postdeps_CXX \
  21551. compiler_lib_search_path_CXX; do
  21552. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21553. *[\\\\\\\`\\"\\\$]*)
  21554. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21555. ;;
  21556. *)
  21557. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21558. ;;
  21559. esac
  21560. done
  21561. # Double-quote double-evaled strings.
  21562. for var in reload_cmds \
  21563. old_postinstall_cmds \
  21564. old_postuninstall_cmds \
  21565. old_archive_cmds \
  21566. extract_expsyms_cmds \
  21567. old_archive_from_new_cmds \
  21568. old_archive_from_expsyms_cmds \
  21569. archive_cmds \
  21570. archive_expsym_cmds \
  21571. module_cmds \
  21572. module_expsym_cmds \
  21573. export_symbols_cmds \
  21574. prelink_cmds \
  21575. postlink_cmds \
  21576. postinstall_cmds \
  21577. postuninstall_cmds \
  21578. finish_cmds \
  21579. sys_lib_search_path_spec \
  21580. sys_lib_dlsearch_path_spec \
  21581. reload_cmds_CXX \
  21582. old_archive_cmds_CXX \
  21583. old_archive_from_new_cmds_CXX \
  21584. old_archive_from_expsyms_cmds_CXX \
  21585. archive_cmds_CXX \
  21586. archive_expsym_cmds_CXX \
  21587. module_cmds_CXX \
  21588. module_expsym_cmds_CXX \
  21589. export_symbols_cmds_CXX \
  21590. prelink_cmds_CXX \
  21591. postlink_cmds_CXX; do
  21592. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21593. *[\\\\\\\`\\"\\\$]*)
  21594. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21595. ;;
  21596. *)
  21597. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21598. ;;
  21599. esac
  21600. done
  21601. ac_aux_dir='$ac_aux_dir'
  21602. xsi_shell='$xsi_shell'
  21603. lt_shell_append='$lt_shell_append'
  21604. # See if we are running on zsh, and set the options which allow our
  21605. # commands through without removal of \ escapes INIT.
  21606. if test -n "\${ZSH_VERSION+set}" ; then
  21607. setopt NO_GLOB_SUBST
  21608. fi
  21609. PACKAGE='$PACKAGE'
  21610. VERSION='$VERSION'
  21611. TIMESTAMP='$TIMESTAMP'
  21612. RM='$RM'
  21613. ofile='$ofile'
  21614. SUMMARY="$SUMMARY"
  21615. _ACEOF
  21616. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21617. # Handling of arguments.
  21618. for ac_config_target in $ac_config_targets
  21619. do
  21620. case $ac_config_target in
  21621. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  21622. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21623. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  21624. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  21625. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  21626. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  21627. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  21628. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  21629. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  21630. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21631. esac
  21632. done
  21633. # If the user did not use the arguments to specify the items to instantiate,
  21634. # then the envvar interface is used. Set only those that are not.
  21635. # We use the long form for the default assignment because of an extremely
  21636. # bizarre bug on SunOS 4.1.3.
  21637. if $ac_need_defaults; then
  21638. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21639. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21640. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21641. fi
  21642. # Have a temporary directory for convenience. Make it in the build tree
  21643. # simply because there is no reason against having it here, and in addition,
  21644. # creating and moving files from /tmp can sometimes cause problems.
  21645. # Hook for its removal unless debugging.
  21646. # Note that there is a small window in which the directory will not be cleaned:
  21647. # after its creation but before its name has been assigned to `$tmp'.
  21648. $debug ||
  21649. {
  21650. tmp= ac_tmp=
  21651. trap 'exit_status=$?
  21652. : "${ac_tmp:=$tmp}"
  21653. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21654. ' 0
  21655. trap 'as_fn_exit 1' 1 2 13 15
  21656. }
  21657. # Create a (secure) tmp directory for tmp files.
  21658. {
  21659. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21660. test -d "$tmp"
  21661. } ||
  21662. {
  21663. tmp=./conf$$-$RANDOM
  21664. (umask 077 && mkdir "$tmp")
  21665. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  21666. ac_tmp=$tmp
  21667. # Set up the scripts for CONFIG_FILES section.
  21668. # No need to generate them if there are no CONFIG_FILES.
  21669. # This happens for instance with `./config.status config.h'.
  21670. if test -n "$CONFIG_FILES"; then
  21671. ac_cr=`echo X | tr X '\015'`
  21672. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  21673. # But we know of no other shell where ac_cr would be empty at this
  21674. # point, so we can use a bashism as a fallback.
  21675. if test "x$ac_cr" = x; then
  21676. eval ac_cr=\$\'\\r\'
  21677. fi
  21678. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21679. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21680. ac_cs_awk_cr='\\r'
  21681. else
  21682. ac_cs_awk_cr=$ac_cr
  21683. fi
  21684. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  21685. _ACEOF
  21686. {
  21687. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21688. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21689. echo "_ACEOF"
  21690. } >conf$$subs.sh ||
  21691. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21692. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  21693. ac_delim='%!_!# '
  21694. for ac_last_try in false false false false false :; do
  21695. . ./conf$$subs.sh ||
  21696. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21697. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21698. if test $ac_delim_n = $ac_delim_num; then
  21699. break
  21700. elif $ac_last_try; then
  21701. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21702. else
  21703. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21704. fi
  21705. done
  21706. rm -f conf$$subs.sh
  21707. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21708. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  21709. _ACEOF
  21710. sed -n '
  21711. h
  21712. s/^/S["/; s/!.*/"]=/
  21713. p
  21714. g
  21715. s/^[^!]*!//
  21716. :repl
  21717. t repl
  21718. s/'"$ac_delim"'$//
  21719. t delim
  21720. :nl
  21721. h
  21722. s/\(.\{148\}\)..*/\1/
  21723. t more1
  21724. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21725. p
  21726. n
  21727. b repl
  21728. :more1
  21729. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21730. p
  21731. g
  21732. s/.\{148\}//
  21733. t nl
  21734. :delim
  21735. h
  21736. s/\(.\{148\}\)..*/\1/
  21737. t more2
  21738. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21739. p
  21740. b
  21741. :more2
  21742. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21743. p
  21744. g
  21745. s/.\{148\}//
  21746. t delim
  21747. ' <conf$$subs.awk | sed '
  21748. /^[^""]/{
  21749. N
  21750. s/\n//
  21751. }
  21752. ' >>$CONFIG_STATUS || ac_write_fail=1
  21753. rm -f conf$$subs.awk
  21754. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21755. _ACAWK
  21756. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21757. for (key in S) S_is_set[key] = 1
  21758. FS = ""
  21759. }
  21760. {
  21761. line = $ 0
  21762. nfields = split(line, field, "@")
  21763. substed = 0
  21764. len = length(field[1])
  21765. for (i = 2; i < nfields; i++) {
  21766. key = field[i]
  21767. keylen = length(key)
  21768. if (S_is_set[key]) {
  21769. value = S[key]
  21770. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21771. len += length(value) + length(field[++i])
  21772. substed = 1
  21773. } else
  21774. len += 1 + keylen
  21775. }
  21776. print line
  21777. }
  21778. _ACAWK
  21779. _ACEOF
  21780. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21781. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21782. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21783. else
  21784. cat
  21785. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21786. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21787. _ACEOF
  21788. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21789. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21790. # trailing colons and then remove the whole line if VPATH becomes empty
  21791. # (actually we leave an empty line to preserve line numbers).
  21792. if test "x$srcdir" = x.; then
  21793. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21794. h
  21795. s///
  21796. s/^/:/
  21797. s/[ ]*$/:/
  21798. s/:\$(srcdir):/:/g
  21799. s/:\${srcdir}:/:/g
  21800. s/:@srcdir@:/:/g
  21801. s/^:*//
  21802. s/:*$//
  21803. x
  21804. s/\(=[ ]*\).*/\1/
  21805. G
  21806. s/\n//
  21807. s/^[^=]*=[ ]*$//
  21808. }'
  21809. fi
  21810. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21811. fi # test -n "$CONFIG_FILES"
  21812. # Set up the scripts for CONFIG_HEADERS section.
  21813. # No need to generate them if there are no CONFIG_HEADERS.
  21814. # This happens for instance with `./config.status Makefile'.
  21815. if test -n "$CONFIG_HEADERS"; then
  21816. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21817. BEGIN {
  21818. _ACEOF
  21819. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21820. # here-document in config.status, that substitutes the proper values into
  21821. # config.h.in to produce config.h.
  21822. # Create a delimiter string that does not exist in confdefs.h, to ease
  21823. # handling of long lines.
  21824. ac_delim='%!_!# '
  21825. for ac_last_try in false false :; do
  21826. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21827. if test -z "$ac_tt"; then
  21828. break
  21829. elif $ac_last_try; then
  21830. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21831. else
  21832. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21833. fi
  21834. done
  21835. # For the awk script, D is an array of macro values keyed by name,
  21836. # likewise P contains macro parameters if any. Preserve backslash
  21837. # newline sequences.
  21838. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21839. sed -n '
  21840. s/.\{148\}/&'"$ac_delim"'/g
  21841. t rset
  21842. :rset
  21843. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21844. t def
  21845. d
  21846. :def
  21847. s/\\$//
  21848. t bsnl
  21849. s/["\\]/\\&/g
  21850. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21851. D["\1"]=" \3"/p
  21852. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21853. d
  21854. :bsnl
  21855. s/["\\]/\\&/g
  21856. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21857. D["\1"]=" \3\\\\\\n"\\/p
  21858. t cont
  21859. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21860. t cont
  21861. d
  21862. :cont
  21863. n
  21864. s/.\{148\}/&'"$ac_delim"'/g
  21865. t clear
  21866. :clear
  21867. s/\\$//
  21868. t bsnlc
  21869. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21870. d
  21871. :bsnlc
  21872. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21873. b cont
  21874. ' <confdefs.h | sed '
  21875. s/'"$ac_delim"'/"\\\
  21876. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21877. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21878. for (key in D) D_is_set[key] = 1
  21879. FS = ""
  21880. }
  21881. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21882. line = \$ 0
  21883. split(line, arg, " ")
  21884. if (arg[1] == "#") {
  21885. defundef = arg[2]
  21886. mac1 = arg[3]
  21887. } else {
  21888. defundef = substr(arg[1], 2)
  21889. mac1 = arg[2]
  21890. }
  21891. split(mac1, mac2, "(") #)
  21892. macro = mac2[1]
  21893. prefix = substr(line, 1, index(line, defundef) - 1)
  21894. if (D_is_set[macro]) {
  21895. # Preserve the white space surrounding the "#".
  21896. print prefix "define", macro P[macro] D[macro]
  21897. next
  21898. } else {
  21899. # Replace #undef with comments. This is necessary, for example,
  21900. # in the case of _POSIX_SOURCE, which is predefined and required
  21901. # on some systems where configure will not decide to define it.
  21902. if (defundef == "undef") {
  21903. print "/*", prefix defundef, macro, "*/"
  21904. next
  21905. }
  21906. }
  21907. }
  21908. { print }
  21909. _ACAWK
  21910. _ACEOF
  21911. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21912. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21913. fi # test -n "$CONFIG_HEADERS"
  21914. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21915. shift
  21916. for ac_tag
  21917. do
  21918. case $ac_tag in
  21919. :[FHLC]) ac_mode=$ac_tag; continue;;
  21920. esac
  21921. case $ac_mode$ac_tag in
  21922. :[FHL]*:*);;
  21923. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21924. :[FH]-) ac_tag=-:-;;
  21925. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21926. esac
  21927. ac_save_IFS=$IFS
  21928. IFS=:
  21929. set x $ac_tag
  21930. IFS=$ac_save_IFS
  21931. shift
  21932. ac_file=$1
  21933. shift
  21934. case $ac_mode in
  21935. :L) ac_source=$1;;
  21936. :[FH])
  21937. ac_file_inputs=
  21938. for ac_f
  21939. do
  21940. case $ac_f in
  21941. -) ac_f="$ac_tmp/stdin";;
  21942. *) # Look for the file first in the build tree, then in the source tree
  21943. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21944. # because $ac_f cannot contain `:'.
  21945. test -f "$ac_f" ||
  21946. case $ac_f in
  21947. [\\/$]*) false;;
  21948. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21949. esac ||
  21950. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21951. esac
  21952. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21953. as_fn_append ac_file_inputs " '$ac_f'"
  21954. done
  21955. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21956. # use $as_me), people would be surprised to read:
  21957. # /* config.h. Generated by config.status. */
  21958. configure_input='Generated from '`
  21959. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21960. `' by configure.'
  21961. if test x"$ac_file" != x-; then
  21962. configure_input="$ac_file. $configure_input"
  21963. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21964. $as_echo "$as_me: creating $ac_file" >&6;}
  21965. fi
  21966. # Neutralize special characters interpreted by sed in replacement strings.
  21967. case $configure_input in #(
  21968. *\&* | *\|* | *\\* )
  21969. ac_sed_conf_input=`$as_echo "$configure_input" |
  21970. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21971. *) ac_sed_conf_input=$configure_input;;
  21972. esac
  21973. case $ac_tag in
  21974. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21975. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21976. esac
  21977. ;;
  21978. esac
  21979. ac_dir=`$as_dirname -- "$ac_file" ||
  21980. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21981. X"$ac_file" : 'X\(//\)[^/]' \| \
  21982. X"$ac_file" : 'X\(//\)$' \| \
  21983. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21984. $as_echo X"$ac_file" |
  21985. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21986. s//\1/
  21987. q
  21988. }
  21989. /^X\(\/\/\)[^/].*/{
  21990. s//\1/
  21991. q
  21992. }
  21993. /^X\(\/\/\)$/{
  21994. s//\1/
  21995. q
  21996. }
  21997. /^X\(\/\).*/{
  21998. s//\1/
  21999. q
  22000. }
  22001. s/.*/./; q'`
  22002. as_dir="$ac_dir"; as_fn_mkdir_p
  22003. ac_builddir=.
  22004. case "$ac_dir" in
  22005. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22006. *)
  22007. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22008. # A ".." for each directory in $ac_dir_suffix.
  22009. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22010. case $ac_top_builddir_sub in
  22011. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22012. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22013. esac ;;
  22014. esac
  22015. ac_abs_top_builddir=$ac_pwd
  22016. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22017. # for backward compatibility:
  22018. ac_top_builddir=$ac_top_build_prefix
  22019. case $srcdir in
  22020. .) # We are building in place.
  22021. ac_srcdir=.
  22022. ac_top_srcdir=$ac_top_builddir_sub
  22023. ac_abs_top_srcdir=$ac_pwd ;;
  22024. [\\/]* | ?:[\\/]* ) # Absolute name.
  22025. ac_srcdir=$srcdir$ac_dir_suffix;
  22026. ac_top_srcdir=$srcdir
  22027. ac_abs_top_srcdir=$srcdir ;;
  22028. *) # Relative name.
  22029. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22030. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22031. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22032. esac
  22033. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22034. case $ac_mode in
  22035. :F)
  22036. #
  22037. # CONFIG_FILE
  22038. #
  22039. case $INSTALL in
  22040. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22041. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22042. esac
  22043. _ACEOF
  22044. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22045. # If the template does not know about datarootdir, expand it.
  22046. # FIXME: This hack should be removed a few years after 2.60.
  22047. ac_datarootdir_hack=; ac_datarootdir_seen=
  22048. ac_sed_dataroot='
  22049. /datarootdir/ {
  22050. p
  22051. q
  22052. }
  22053. /@datadir@/p
  22054. /@docdir@/p
  22055. /@infodir@/p
  22056. /@localedir@/p
  22057. /@mandir@/p'
  22058. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22059. *datarootdir*) ac_datarootdir_seen=yes;;
  22060. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22062. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22063. _ACEOF
  22064. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22065. ac_datarootdir_hack='
  22066. s&@datadir@&$datadir&g
  22067. s&@docdir@&$docdir&g
  22068. s&@infodir@&$infodir&g
  22069. s&@localedir@&$localedir&g
  22070. s&@mandir@&$mandir&g
  22071. s&\\\${datarootdir}&$datarootdir&g' ;;
  22072. esac
  22073. _ACEOF
  22074. # Neutralize VPATH when `$srcdir' = `.'.
  22075. # Shell code in configure.ac might set extrasub.
  22076. # FIXME: do we really want to maintain this feature?
  22077. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22078. ac_sed_extra="$ac_vpsub
  22079. $extrasub
  22080. _ACEOF
  22081. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22082. :t
  22083. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22084. s|@configure_input@|$ac_sed_conf_input|;t t
  22085. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22086. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22087. s&@srcdir@&$ac_srcdir&;t t
  22088. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22089. s&@top_srcdir@&$ac_top_srcdir&;t t
  22090. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22091. s&@builddir@&$ac_builddir&;t t
  22092. s&@abs_builddir@&$ac_abs_builddir&;t t
  22093. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22094. s&@INSTALL@&$ac_INSTALL&;t t
  22095. $ac_datarootdir_hack
  22096. "
  22097. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22098. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22099. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22100. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22101. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22102. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22104. which seems to be undefined. Please make sure it is defined" >&5
  22105. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22106. which seems to be undefined. Please make sure it is defined" >&2;}
  22107. rm -f "$ac_tmp/stdin"
  22108. case $ac_file in
  22109. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22110. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22111. esac \
  22112. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22113. ;;
  22114. :H)
  22115. #
  22116. # CONFIG_HEADER
  22117. #
  22118. if test x"$ac_file" != x-; then
  22119. {
  22120. $as_echo "/* $configure_input */" \
  22121. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22122. } >"$ac_tmp/config.h" \
  22123. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22124. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22125. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22126. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22127. else
  22128. rm -f "$ac_file"
  22129. mv "$ac_tmp/config.h" "$ac_file" \
  22130. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22131. fi
  22132. else
  22133. $as_echo "/* $configure_input */" \
  22134. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22135. || as_fn_error $? "could not create -" "$LINENO" 5
  22136. fi
  22137. ;;
  22138. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22139. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22140. ;;
  22141. esac
  22142. case $ac_file$ac_mode in
  22143. "libtool":C)
  22144. # See if we are running on zsh, and set the options which allow our
  22145. # commands through without removal of \ escapes.
  22146. if test -n "${ZSH_VERSION+set}" ; then
  22147. setopt NO_GLOB_SUBST
  22148. fi
  22149. cfgfile="${ofile}T"
  22150. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22151. $RM "$cfgfile"
  22152. cat <<_LT_EOF >> "$cfgfile"
  22153. #! $SHELL
  22154. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22155. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22156. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22157. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22158. #
  22159. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22160. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22161. # Foundation, Inc.
  22162. # Written by Gordon Matzigkeit, 1996
  22163. #
  22164. # This file is part of GNU Libtool.
  22165. #
  22166. # GNU Libtool is free software; you can redistribute it and/or
  22167. # modify it under the terms of the GNU General Public License as
  22168. # published by the Free Software Foundation; either version 2 of
  22169. # the License, or (at your option) any later version.
  22170. #
  22171. # As a special exception to the GNU General Public License,
  22172. # if you distribute this file as part of a program or library that
  22173. # is built using GNU Libtool, you may include this file under the
  22174. # same distribution terms that you use for the rest of that program.
  22175. #
  22176. # GNU Libtool is distributed in the hope that it will be useful,
  22177. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22178. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22179. # GNU General Public License for more details.
  22180. #
  22181. # You should have received a copy of the GNU General Public License
  22182. # along with GNU Libtool; see the file COPYING. If not, a copy
  22183. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22184. # obtained by writing to the Free Software Foundation, Inc.,
  22185. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22186. # The names of the tagged configurations supported by this script.
  22187. available_tags="CXX "
  22188. # ### BEGIN LIBTOOL CONFIG
  22189. # Which release of libtool.m4 was used?
  22190. macro_version=$macro_version
  22191. macro_revision=$macro_revision
  22192. # Assembler program.
  22193. AS=$lt_AS
  22194. # DLL creation program.
  22195. DLLTOOL=$lt_DLLTOOL
  22196. # Object dumper program.
  22197. OBJDUMP=$lt_OBJDUMP
  22198. # Whether or not to build shared libraries.
  22199. build_libtool_libs=$enable_shared
  22200. # Whether or not to build static libraries.
  22201. build_old_libs=$enable_static
  22202. # What type of objects to build.
  22203. pic_mode=$pic_mode
  22204. # Whether or not to optimize for fast installation.
  22205. fast_install=$enable_fast_install
  22206. # Shell to use when invoking shell scripts.
  22207. SHELL=$lt_SHELL
  22208. # An echo program that protects backslashes.
  22209. ECHO=$lt_ECHO
  22210. # The PATH separator for the build system.
  22211. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22212. # The host system.
  22213. host_alias=$host_alias
  22214. host=$host
  22215. host_os=$host_os
  22216. # The build system.
  22217. build_alias=$build_alias
  22218. build=$build
  22219. build_os=$build_os
  22220. # A sed program that does not truncate output.
  22221. SED=$lt_SED
  22222. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22223. Xsed="\$SED -e 1s/^X//"
  22224. # A grep program that handles long lines.
  22225. GREP=$lt_GREP
  22226. # An ERE matcher.
  22227. EGREP=$lt_EGREP
  22228. # A literal string matcher.
  22229. FGREP=$lt_FGREP
  22230. # A BSD- or MS-compatible name lister.
  22231. NM=$lt_NM
  22232. # Whether we need soft or hard links.
  22233. LN_S=$lt_LN_S
  22234. # What is the maximum length of a command?
  22235. max_cmd_len=$max_cmd_len
  22236. # Object file suffix (normally "o").
  22237. objext=$ac_objext
  22238. # Executable file suffix (normally "").
  22239. exeext=$exeext
  22240. # whether the shell understands "unset".
  22241. lt_unset=$lt_unset
  22242. # turn spaces into newlines.
  22243. SP2NL=$lt_lt_SP2NL
  22244. # turn newlines into spaces.
  22245. NL2SP=$lt_lt_NL2SP
  22246. # convert \$build file names to \$host format.
  22247. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22248. # convert \$build files to toolchain format.
  22249. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22250. # Method to check whether dependent libraries are shared objects.
  22251. deplibs_check_method=$lt_deplibs_check_method
  22252. # Command to use when deplibs_check_method = "file_magic".
  22253. file_magic_cmd=$lt_file_magic_cmd
  22254. # How to find potential files when deplibs_check_method = "file_magic".
  22255. file_magic_glob=$lt_file_magic_glob
  22256. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22257. want_nocaseglob=$lt_want_nocaseglob
  22258. # Command to associate shared and link libraries.
  22259. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22260. # The archiver.
  22261. AR=$lt_AR
  22262. # Flags to create an archive.
  22263. AR_FLAGS=$lt_AR_FLAGS
  22264. # How to feed a file listing to the archiver.
  22265. archiver_list_spec=$lt_archiver_list_spec
  22266. # A symbol stripping program.
  22267. STRIP=$lt_STRIP
  22268. # Commands used to install an old-style archive.
  22269. RANLIB=$lt_RANLIB
  22270. old_postinstall_cmds=$lt_old_postinstall_cmds
  22271. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22272. # Whether to use a lock for old archive extraction.
  22273. lock_old_archive_extraction=$lock_old_archive_extraction
  22274. # A C compiler.
  22275. LTCC=$lt_CC
  22276. # LTCC compiler flags.
  22277. LTCFLAGS=$lt_CFLAGS
  22278. # Take the output of nm and produce a listing of raw symbols and C names.
  22279. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22280. # Transform the output of nm in a proper C declaration.
  22281. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22282. # Transform the output of nm in a C name address pair.
  22283. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22284. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22285. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22286. # Specify filename containing input files for \$NM.
  22287. nm_file_list_spec=$lt_nm_file_list_spec
  22288. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22289. lt_sysroot=$lt_sysroot
  22290. # The name of the directory that contains temporary libtool files.
  22291. objdir=$objdir
  22292. # Used to examine libraries when file_magic_cmd begins with "file".
  22293. MAGIC_CMD=$MAGIC_CMD
  22294. # Must we lock files when doing compilation?
  22295. need_locks=$lt_need_locks
  22296. # Manifest tool.
  22297. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22298. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22299. DSYMUTIL=$lt_DSYMUTIL
  22300. # Tool to change global to local symbols on Mac OS X.
  22301. NMEDIT=$lt_NMEDIT
  22302. # Tool to manipulate fat objects and archives on Mac OS X.
  22303. LIPO=$lt_LIPO
  22304. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22305. OTOOL=$lt_OTOOL
  22306. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22307. OTOOL64=$lt_OTOOL64
  22308. # Old archive suffix (normally "a").
  22309. libext=$libext
  22310. # Shared library suffix (normally ".so").
  22311. shrext_cmds=$lt_shrext_cmds
  22312. # The commands to extract the exported symbol list from a shared archive.
  22313. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22314. # Variables whose values should be saved in libtool wrapper scripts and
  22315. # restored at link time.
  22316. variables_saved_for_relink=$lt_variables_saved_for_relink
  22317. # Do we need the "lib" prefix for modules?
  22318. need_lib_prefix=$need_lib_prefix
  22319. # Do we need a version for libraries?
  22320. need_version=$need_version
  22321. # Library versioning type.
  22322. version_type=$version_type
  22323. # Shared library runtime path variable.
  22324. runpath_var=$runpath_var
  22325. # Shared library path variable.
  22326. shlibpath_var=$shlibpath_var
  22327. # Is shlibpath searched before the hard-coded library search path?
  22328. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22329. # Format of library name prefix.
  22330. libname_spec=$lt_libname_spec
  22331. # List of archive names. First name is the real one, the rest are links.
  22332. # The last name is the one that the linker finds with -lNAME
  22333. library_names_spec=$lt_library_names_spec
  22334. # The coded name of the library, if different from the real name.
  22335. soname_spec=$lt_soname_spec
  22336. # Permission mode override for installation of shared libraries.
  22337. install_override_mode=$lt_install_override_mode
  22338. # Command to use after installation of a shared archive.
  22339. postinstall_cmds=$lt_postinstall_cmds
  22340. # Command to use after uninstallation of a shared archive.
  22341. postuninstall_cmds=$lt_postuninstall_cmds
  22342. # Commands used to finish a libtool library installation in a directory.
  22343. finish_cmds=$lt_finish_cmds
  22344. # As "finish_cmds", except a single script fragment to be evaled but
  22345. # not shown.
  22346. finish_eval=$lt_finish_eval
  22347. # Whether we should hardcode library paths into libraries.
  22348. hardcode_into_libs=$hardcode_into_libs
  22349. # Compile-time system search path for libraries.
  22350. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22351. # Run-time system search path for libraries.
  22352. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22353. # Whether dlopen is supported.
  22354. dlopen_support=$enable_dlopen
  22355. # Whether dlopen of programs is supported.
  22356. dlopen_self=$enable_dlopen_self
  22357. # Whether dlopen of statically linked programs is supported.
  22358. dlopen_self_static=$enable_dlopen_self_static
  22359. # Commands to strip libraries.
  22360. old_striplib=$lt_old_striplib
  22361. striplib=$lt_striplib
  22362. # The linker used to build libraries.
  22363. LD=$lt_LD
  22364. # How to create reloadable object files.
  22365. reload_flag=$lt_reload_flag
  22366. reload_cmds=$lt_reload_cmds
  22367. # Commands used to build an old-style archive.
  22368. old_archive_cmds=$lt_old_archive_cmds
  22369. # A language specific compiler.
  22370. CC=$lt_compiler
  22371. # Is the compiler the GNU compiler?
  22372. with_gcc=$GCC
  22373. # Compiler flag to turn off builtin functions.
  22374. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22375. # Additional compiler flags for building library objects.
  22376. pic_flag=$lt_lt_prog_compiler_pic
  22377. # How to pass a linker flag through the compiler.
  22378. wl=$lt_lt_prog_compiler_wl
  22379. # Compiler flag to prevent dynamic linking.
  22380. link_static_flag=$lt_lt_prog_compiler_static
  22381. # Does compiler simultaneously support -c and -o options?
  22382. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22383. # Whether or not to add -lc for building shared libraries.
  22384. build_libtool_need_lc=$archive_cmds_need_lc
  22385. # Whether or not to disallow shared libs when runtime libs are static.
  22386. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22387. # Compiler flag to allow reflexive dlopens.
  22388. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22389. # Compiler flag to generate shared objects directly from archives.
  22390. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22391. # Whether the compiler copes with passing no objects directly.
  22392. compiler_needs_object=$lt_compiler_needs_object
  22393. # Create an old-style archive from a shared archive.
  22394. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22395. # Create a temporary old-style archive to link instead of a shared archive.
  22396. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22397. # Commands used to build a shared archive.
  22398. archive_cmds=$lt_archive_cmds
  22399. archive_expsym_cmds=$lt_archive_expsym_cmds
  22400. # Commands used to build a loadable module if different from building
  22401. # a shared archive.
  22402. module_cmds=$lt_module_cmds
  22403. module_expsym_cmds=$lt_module_expsym_cmds
  22404. # Whether we are building with GNU ld or not.
  22405. with_gnu_ld=$lt_with_gnu_ld
  22406. # Flag that allows shared libraries with undefined symbols to be built.
  22407. allow_undefined_flag=$lt_allow_undefined_flag
  22408. # Flag that enforces no undefined symbols.
  22409. no_undefined_flag=$lt_no_undefined_flag
  22410. # Flag to hardcode \$libdir into a binary during linking.
  22411. # This must work even if \$libdir does not exist
  22412. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22413. # Whether we need a single "-rpath" flag with a separated argument.
  22414. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22415. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22416. # DIR into the resulting binary.
  22417. hardcode_direct=$hardcode_direct
  22418. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22419. # DIR into the resulting binary and the resulting library dependency is
  22420. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22421. # library is relocated.
  22422. hardcode_direct_absolute=$hardcode_direct_absolute
  22423. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22424. # into the resulting binary.
  22425. hardcode_minus_L=$hardcode_minus_L
  22426. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22427. # into the resulting binary.
  22428. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22429. # Set to "yes" if building a shared library automatically hardcodes DIR
  22430. # into the library and all subsequent libraries and executables linked
  22431. # against it.
  22432. hardcode_automatic=$hardcode_automatic
  22433. # Set to yes if linker adds runtime paths of dependent libraries
  22434. # to runtime path list.
  22435. inherit_rpath=$inherit_rpath
  22436. # Whether libtool must link a program against all its dependency libraries.
  22437. link_all_deplibs=$link_all_deplibs
  22438. # Set to "yes" if exported symbols are required.
  22439. always_export_symbols=$always_export_symbols
  22440. # The commands to list exported symbols.
  22441. export_symbols_cmds=$lt_export_symbols_cmds
  22442. # Symbols that should not be listed in the preloaded symbols.
  22443. exclude_expsyms=$lt_exclude_expsyms
  22444. # Symbols that must always be exported.
  22445. include_expsyms=$lt_include_expsyms
  22446. # Commands necessary for linking programs (against libraries) with templates.
  22447. prelink_cmds=$lt_prelink_cmds
  22448. # Commands necessary for finishing linking programs.
  22449. postlink_cmds=$lt_postlink_cmds
  22450. # Specify filename containing input files.
  22451. file_list_spec=$lt_file_list_spec
  22452. # How to hardcode a shared library path into an executable.
  22453. hardcode_action=$hardcode_action
  22454. # The directories searched by this compiler when creating a shared library.
  22455. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22456. # Dependencies to place before and after the objects being linked to
  22457. # create a shared library.
  22458. predep_objects=$lt_predep_objects
  22459. postdep_objects=$lt_postdep_objects
  22460. predeps=$lt_predeps
  22461. postdeps=$lt_postdeps
  22462. # The library search path used internally by the compiler when linking
  22463. # a shared library.
  22464. compiler_lib_search_path=$lt_compiler_lib_search_path
  22465. # ### END LIBTOOL CONFIG
  22466. _LT_EOF
  22467. case $host_os in
  22468. aix3*)
  22469. cat <<\_LT_EOF >> "$cfgfile"
  22470. # AIX sometimes has problems with the GCC collect2 program. For some
  22471. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22472. # vanish in a puff of smoke.
  22473. if test "X${COLLECT_NAMES+set}" != Xset; then
  22474. COLLECT_NAMES=
  22475. export COLLECT_NAMES
  22476. fi
  22477. _LT_EOF
  22478. ;;
  22479. esac
  22480. ltmain="$ac_aux_dir/ltmain.sh"
  22481. # We use sed instead of cat because bash on DJGPP gets confused if
  22482. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22483. # text mode, it properly converts lines to CR/LF. This bash problem
  22484. # is reportedly fixed, but why not run on old versions too?
  22485. sed '$q' "$ltmain" >> "$cfgfile" \
  22486. || (rm -f "$cfgfile"; exit 1)
  22487. if test x"$xsi_shell" = xyes; then
  22488. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22489. func_dirname ()\
  22490. {\
  22491. \ case ${1} in\
  22492. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22493. \ * ) func_dirname_result="${3}" ;;\
  22494. \ esac\
  22495. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22496. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22497. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22498. test 0 -eq $? || _lt_function_replace_fail=:
  22499. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22500. func_basename ()\
  22501. {\
  22502. \ func_basename_result="${1##*/}"\
  22503. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22504. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22505. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22506. test 0 -eq $? || _lt_function_replace_fail=:
  22507. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22508. func_dirname_and_basename ()\
  22509. {\
  22510. \ case ${1} in\
  22511. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22512. \ * ) func_dirname_result="${3}" ;;\
  22513. \ esac\
  22514. \ func_basename_result="${1##*/}"\
  22515. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22516. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22517. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22518. test 0 -eq $? || _lt_function_replace_fail=:
  22519. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22520. func_stripname ()\
  22521. {\
  22522. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22523. \ # positional parameters, so assign one to ordinary parameter first.\
  22524. \ func_stripname_result=${3}\
  22525. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22526. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22527. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22528. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22529. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22530. test 0 -eq $? || _lt_function_replace_fail=:
  22531. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22532. func_split_long_opt ()\
  22533. {\
  22534. \ func_split_long_opt_name=${1%%=*}\
  22535. \ func_split_long_opt_arg=${1#*=}\
  22536. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22537. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22538. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22539. test 0 -eq $? || _lt_function_replace_fail=:
  22540. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22541. func_split_short_opt ()\
  22542. {\
  22543. \ func_split_short_opt_arg=${1#??}\
  22544. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22545. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22546. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22547. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22548. test 0 -eq $? || _lt_function_replace_fail=:
  22549. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22550. func_lo2o ()\
  22551. {\
  22552. \ case ${1} in\
  22553. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22554. \ *) func_lo2o_result=${1} ;;\
  22555. \ esac\
  22556. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22557. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22558. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22559. test 0 -eq $? || _lt_function_replace_fail=:
  22560. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22561. func_xform ()\
  22562. {\
  22563. func_xform_result=${1%.*}.lo\
  22564. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22565. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22566. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22567. test 0 -eq $? || _lt_function_replace_fail=:
  22568. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22569. func_arith ()\
  22570. {\
  22571. func_arith_result=$(( $* ))\
  22572. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22573. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22574. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22575. test 0 -eq $? || _lt_function_replace_fail=:
  22576. sed -e '/^func_len ()$/,/^} # func_len /c\
  22577. func_len ()\
  22578. {\
  22579. func_len_result=${#1}\
  22580. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22581. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22582. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22583. test 0 -eq $? || _lt_function_replace_fail=:
  22584. fi
  22585. if test x"$lt_shell_append" = xyes; then
  22586. sed -e '/^func_append ()$/,/^} # func_append /c\
  22587. func_append ()\
  22588. {\
  22589. eval "${1}+=\\${2}"\
  22590. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  22591. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22592. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22593. test 0 -eq $? || _lt_function_replace_fail=:
  22594. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  22595. func_append_quoted ()\
  22596. {\
  22597. \ func_quote_for_eval "${2}"\
  22598. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  22599. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  22600. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22601. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22602. test 0 -eq $? || _lt_function_replace_fail=:
  22603. # Save a `func_append' function call where possible by direct use of '+='
  22604. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  22605. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22606. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22607. test 0 -eq $? || _lt_function_replace_fail=:
  22608. else
  22609. # Save a `func_append' function call even when '+=' is not available
  22610. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  22611. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22612. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22613. test 0 -eq $? || _lt_function_replace_fail=:
  22614. fi
  22615. if test x"$_lt_function_replace_fail" = x":"; then
  22616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  22617. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  22618. fi
  22619. mv -f "$cfgfile" "$ofile" ||
  22620. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22621. chmod +x "$ofile"
  22622. cat <<_LT_EOF >> "$ofile"
  22623. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  22624. # The linker used to build libraries.
  22625. LD=$lt_LD_CXX
  22626. # How to create reloadable object files.
  22627. reload_flag=$lt_reload_flag_CXX
  22628. reload_cmds=$lt_reload_cmds_CXX
  22629. # Commands used to build an old-style archive.
  22630. old_archive_cmds=$lt_old_archive_cmds_CXX
  22631. # A language specific compiler.
  22632. CC=$lt_compiler_CXX
  22633. # Is the compiler the GNU compiler?
  22634. with_gcc=$GCC_CXX
  22635. # Compiler flag to turn off builtin functions.
  22636. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22637. # Additional compiler flags for building library objects.
  22638. pic_flag=$lt_lt_prog_compiler_pic_CXX
  22639. # How to pass a linker flag through the compiler.
  22640. wl=$lt_lt_prog_compiler_wl_CXX
  22641. # Compiler flag to prevent dynamic linking.
  22642. link_static_flag=$lt_lt_prog_compiler_static_CXX
  22643. # Does compiler simultaneously support -c and -o options?
  22644. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22645. # Whether or not to add -lc for building shared libraries.
  22646. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22647. # Whether or not to disallow shared libs when runtime libs are static.
  22648. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22649. # Compiler flag to allow reflexive dlopens.
  22650. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22651. # Compiler flag to generate shared objects directly from archives.
  22652. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22653. # Whether the compiler copes with passing no objects directly.
  22654. compiler_needs_object=$lt_compiler_needs_object_CXX
  22655. # Create an old-style archive from a shared archive.
  22656. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22657. # Create a temporary old-style archive to link instead of a shared archive.
  22658. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22659. # Commands used to build a shared archive.
  22660. archive_cmds=$lt_archive_cmds_CXX
  22661. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22662. # Commands used to build a loadable module if different from building
  22663. # a shared archive.
  22664. module_cmds=$lt_module_cmds_CXX
  22665. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  22666. # Whether we are building with GNU ld or not.
  22667. with_gnu_ld=$lt_with_gnu_ld_CXX
  22668. # Flag that allows shared libraries with undefined symbols to be built.
  22669. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  22670. # Flag that enforces no undefined symbols.
  22671. no_undefined_flag=$lt_no_undefined_flag_CXX
  22672. # Flag to hardcode \$libdir into a binary during linking.
  22673. # This must work even if \$libdir does not exist
  22674. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  22675. # Whether we need a single "-rpath" flag with a separated argument.
  22676. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  22677. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22678. # DIR into the resulting binary.
  22679. hardcode_direct=$hardcode_direct_CXX
  22680. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22681. # DIR into the resulting binary and the resulting library dependency is
  22682. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22683. # library is relocated.
  22684. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  22685. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22686. # into the resulting binary.
  22687. hardcode_minus_L=$hardcode_minus_L_CXX
  22688. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22689. # into the resulting binary.
  22690. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  22691. # Set to "yes" if building a shared library automatically hardcodes DIR
  22692. # into the library and all subsequent libraries and executables linked
  22693. # against it.
  22694. hardcode_automatic=$hardcode_automatic_CXX
  22695. # Set to yes if linker adds runtime paths of dependent libraries
  22696. # to runtime path list.
  22697. inherit_rpath=$inherit_rpath_CXX
  22698. # Whether libtool must link a program against all its dependency libraries.
  22699. link_all_deplibs=$link_all_deplibs_CXX
  22700. # Set to "yes" if exported symbols are required.
  22701. always_export_symbols=$always_export_symbols_CXX
  22702. # The commands to list exported symbols.
  22703. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  22704. # Symbols that should not be listed in the preloaded symbols.
  22705. exclude_expsyms=$lt_exclude_expsyms_CXX
  22706. # Symbols that must always be exported.
  22707. include_expsyms=$lt_include_expsyms_CXX
  22708. # Commands necessary for linking programs (against libraries) with templates.
  22709. prelink_cmds=$lt_prelink_cmds_CXX
  22710. # Commands necessary for finishing linking programs.
  22711. postlink_cmds=$lt_postlink_cmds_CXX
  22712. # Specify filename containing input files.
  22713. file_list_spec=$lt_file_list_spec_CXX
  22714. # How to hardcode a shared library path into an executable.
  22715. hardcode_action=$hardcode_action_CXX
  22716. # The directories searched by this compiler when creating a shared library.
  22717. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  22718. # Dependencies to place before and after the objects being linked to
  22719. # create a shared library.
  22720. predep_objects=$lt_predep_objects_CXX
  22721. postdep_objects=$lt_postdep_objects_CXX
  22722. predeps=$lt_predeps_CXX
  22723. postdeps=$lt_postdeps_CXX
  22724. # The library search path used internally by the compiler when linking
  22725. # a shared library.
  22726. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  22727. # ### END LIBTOOL TAG CONFIG: CXX
  22728. _LT_EOF
  22729. ;;
  22730. "sdl2_config":C) chmod a+x sdl2-config ;;
  22731. "summary":C) echo -en "$SUMMARY" ;;
  22732. esac
  22733. done # for ac_tag
  22734. as_fn_exit 0
  22735. _ACEOF
  22736. ac_clean_files=$ac_clean_files_save
  22737. test $ac_write_fail = 0 ||
  22738. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  22739. # configure is writing to config.log, and then calls config.status.
  22740. # config.status does its own redirection, appending to config.log.
  22741. # Unfortunately, on DOS this fails, as config.log is still kept open
  22742. # by configure, so config.status won't be able to write to it; its
  22743. # output is simply discarded. So we exec the FD to /dev/null,
  22744. # effectively closing config.log, so it can be properly (re)opened and
  22745. # appended to by config.status. When coming back to configure, we
  22746. # need to make the FD available again.
  22747. if test "$no_create" != yes; then
  22748. ac_cs_success=:
  22749. ac_config_status_args=
  22750. test "$silent" = yes &&
  22751. ac_config_status_args="$ac_config_status_args --quiet"
  22752. exec 5>/dev/null
  22753. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22754. exec 5>>config.log
  22755. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22756. # would make configure fail if this is the last instruction.
  22757. $ac_cs_success || as_fn_exit 1
  22758. fi
  22759. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22760. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22761. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22762. fi