configure 780 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615
  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_altivec
  750. enable_oss
  751. enable_alsa
  752. with_alsa_prefix
  753. with_alsa_inc_prefix
  754. enable_alsatest
  755. enable_alsa_shared
  756. enable_esd
  757. with_esd_prefix
  758. with_esd_exec_prefix
  759. enable_esdtest
  760. enable_esd_shared
  761. enable_pulseaudio
  762. enable_pulseaudio_shared
  763. enable_arts
  764. enable_arts_shared
  765. enable_nas
  766. enable_nas_shared
  767. enable_sndio
  768. enable_sndio_shared
  769. enable_fusionsound
  770. enable_fusionsound_shared
  771. enable_diskaudio
  772. enable_dummyaudio
  773. enable_libsamplerate
  774. enable_libsamplerate_shared
  775. enable_video_wayland
  776. enable_video_wayland_qt_touch
  777. enable_wayland_shared
  778. enable_video_mir
  779. enable_mir_shared
  780. enable_video_x11
  781. with_x
  782. enable_x11_shared
  783. enable_video_x11_xcursor
  784. enable_video_x11_xdbe
  785. enable_video_x11_xinerama
  786. enable_video_x11_xinput
  787. enable_video_x11_xrandr
  788. enable_video_x11_scrnsaver
  789. enable_video_x11_xshape
  790. enable_video_x11_vm
  791. enable_video_vivante
  792. enable_video_cocoa
  793. enable_video_directfb
  794. enable_directfb_shared
  795. enable_video_dummy
  796. enable_video_opengl
  797. enable_video_opengles
  798. enable_video_opengles1
  799. enable_video_opengles2
  800. enable_libudev
  801. enable_dbus
  802. enable_ime
  803. enable_ibus
  804. enable_fcitx
  805. enable_input_tslib
  806. enable_pthreads
  807. enable_pthread_sem
  808. enable_directx
  809. enable_sdl_dlopen
  810. enable_clock_gettime
  811. enable_rpath
  812. enable_render_d3d
  813. '
  814. ac_precious_vars='build_alias
  815. host_alias
  816. target_alias
  817. CC
  818. CFLAGS
  819. LDFLAGS
  820. LIBS
  821. CPPFLAGS
  822. CPP
  823. CXX
  824. CXXFLAGS
  825. CCC
  826. CXXCPP
  827. XMKMF'
  828. # Initialize some variables set by options.
  829. ac_init_help=
  830. ac_init_version=false
  831. ac_unrecognized_opts=
  832. ac_unrecognized_sep=
  833. # The variables have the same names as the options, with
  834. # dashes changed to underlines.
  835. cache_file=/dev/null
  836. exec_prefix=NONE
  837. no_create=
  838. no_recursion=
  839. prefix=NONE
  840. program_prefix=NONE
  841. program_suffix=NONE
  842. program_transform_name=s,x,x,
  843. silent=
  844. site=
  845. srcdir=
  846. verbose=
  847. x_includes=NONE
  848. x_libraries=NONE
  849. # Installation directory options.
  850. # These are left unexpanded so users can "make install exec_prefix=/foo"
  851. # and all the variables that are supposed to be based on exec_prefix
  852. # by default will actually change.
  853. # Use braces instead of parens because sh, perl, etc. also accept them.
  854. # (The list follows the same order as the GNU Coding Standards.)
  855. bindir='${exec_prefix}/bin'
  856. sbindir='${exec_prefix}/sbin'
  857. libexecdir='${exec_prefix}/libexec'
  858. datarootdir='${prefix}/share'
  859. datadir='${datarootdir}'
  860. sysconfdir='${prefix}/etc'
  861. sharedstatedir='${prefix}/com'
  862. localstatedir='${prefix}/var'
  863. includedir='${prefix}/include'
  864. oldincludedir='/usr/include'
  865. docdir='${datarootdir}/doc/${PACKAGE}'
  866. infodir='${datarootdir}/info'
  867. htmldir='${docdir}'
  868. dvidir='${docdir}'
  869. pdfdir='${docdir}'
  870. psdir='${docdir}'
  871. libdir='${exec_prefix}/lib'
  872. localedir='${datarootdir}/locale'
  873. mandir='${datarootdir}/man'
  874. ac_prev=
  875. ac_dashdash=
  876. for ac_option
  877. do
  878. # If the previous option needs an argument, assign it.
  879. if test -n "$ac_prev"; then
  880. eval $ac_prev=\$ac_option
  881. ac_prev=
  882. continue
  883. fi
  884. case $ac_option in
  885. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  886. *=) ac_optarg= ;;
  887. *) ac_optarg=yes ;;
  888. esac
  889. # Accept the important Cygnus configure options, so we can diagnose typos.
  890. case $ac_dashdash$ac_option in
  891. --)
  892. ac_dashdash=yes ;;
  893. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  894. ac_prev=bindir ;;
  895. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  896. bindir=$ac_optarg ;;
  897. -build | --build | --buil | --bui | --bu)
  898. ac_prev=build_alias ;;
  899. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  900. build_alias=$ac_optarg ;;
  901. -cache-file | --cache-file | --cache-fil | --cache-fi \
  902. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  903. ac_prev=cache_file ;;
  904. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  905. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  906. cache_file=$ac_optarg ;;
  907. --config-cache | -C)
  908. cache_file=config.cache ;;
  909. -datadir | --datadir | --datadi | --datad)
  910. ac_prev=datadir ;;
  911. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  912. datadir=$ac_optarg ;;
  913. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  914. | --dataroo | --dataro | --datar)
  915. ac_prev=datarootdir ;;
  916. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  917. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  918. datarootdir=$ac_optarg ;;
  919. -disable-* | --disable-*)
  920. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  921. # Reject names that are not valid shell variable names.
  922. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  923. as_fn_error $? "invalid feature name: $ac_useropt"
  924. ac_useropt_orig=$ac_useropt
  925. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  926. case $ac_user_opts in
  927. *"
  928. "enable_$ac_useropt"
  929. "*) ;;
  930. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  931. ac_unrecognized_sep=', ';;
  932. esac
  933. eval enable_$ac_useropt=no ;;
  934. -docdir | --docdir | --docdi | --doc | --do)
  935. ac_prev=docdir ;;
  936. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  937. docdir=$ac_optarg ;;
  938. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  939. ac_prev=dvidir ;;
  940. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  941. dvidir=$ac_optarg ;;
  942. -enable-* | --enable-*)
  943. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  944. # Reject names that are not valid shell variable names.
  945. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  946. as_fn_error $? "invalid feature name: $ac_useropt"
  947. ac_useropt_orig=$ac_useropt
  948. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  949. case $ac_user_opts in
  950. *"
  951. "enable_$ac_useropt"
  952. "*) ;;
  953. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  954. ac_unrecognized_sep=', ';;
  955. esac
  956. eval enable_$ac_useropt=\$ac_optarg ;;
  957. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  958. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  959. | --exec | --exe | --ex)
  960. ac_prev=exec_prefix ;;
  961. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  962. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  963. | --exec=* | --exe=* | --ex=*)
  964. exec_prefix=$ac_optarg ;;
  965. -gas | --gas | --ga | --g)
  966. # Obsolete; use --with-gas.
  967. with_gas=yes ;;
  968. -help | --help | --hel | --he | -h)
  969. ac_init_help=long ;;
  970. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  971. ac_init_help=recursive ;;
  972. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  973. ac_init_help=short ;;
  974. -host | --host | --hos | --ho)
  975. ac_prev=host_alias ;;
  976. -host=* | --host=* | --hos=* | --ho=*)
  977. host_alias=$ac_optarg ;;
  978. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  979. ac_prev=htmldir ;;
  980. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  981. | --ht=*)
  982. htmldir=$ac_optarg ;;
  983. -includedir | --includedir | --includedi | --included | --include \
  984. | --includ | --inclu | --incl | --inc)
  985. ac_prev=includedir ;;
  986. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  987. | --includ=* | --inclu=* | --incl=* | --inc=*)
  988. includedir=$ac_optarg ;;
  989. -infodir | --infodir | --infodi | --infod | --info | --inf)
  990. ac_prev=infodir ;;
  991. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  992. infodir=$ac_optarg ;;
  993. -libdir | --libdir | --libdi | --libd)
  994. ac_prev=libdir ;;
  995. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  996. libdir=$ac_optarg ;;
  997. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  998. | --libexe | --libex | --libe)
  999. ac_prev=libexecdir ;;
  1000. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1001. | --libexe=* | --libex=* | --libe=*)
  1002. libexecdir=$ac_optarg ;;
  1003. -localedir | --localedir | --localedi | --localed | --locale)
  1004. ac_prev=localedir ;;
  1005. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1006. localedir=$ac_optarg ;;
  1007. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1008. | --localstate | --localstat | --localsta | --localst | --locals)
  1009. ac_prev=localstatedir ;;
  1010. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1011. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1012. localstatedir=$ac_optarg ;;
  1013. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1014. ac_prev=mandir ;;
  1015. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1016. mandir=$ac_optarg ;;
  1017. -nfp | --nfp | --nf)
  1018. # Obsolete; use --without-fp.
  1019. with_fp=no ;;
  1020. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1021. | --no-cr | --no-c | -n)
  1022. no_create=yes ;;
  1023. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1024. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1025. no_recursion=yes ;;
  1026. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1027. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1028. | --oldin | --oldi | --old | --ol | --o)
  1029. ac_prev=oldincludedir ;;
  1030. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1031. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1032. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1033. oldincludedir=$ac_optarg ;;
  1034. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1035. ac_prev=prefix ;;
  1036. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1037. prefix=$ac_optarg ;;
  1038. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1039. | --program-pre | --program-pr | --program-p)
  1040. ac_prev=program_prefix ;;
  1041. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1042. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1043. program_prefix=$ac_optarg ;;
  1044. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1045. | --program-suf | --program-su | --program-s)
  1046. ac_prev=program_suffix ;;
  1047. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1048. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1049. program_suffix=$ac_optarg ;;
  1050. -program-transform-name | --program-transform-name \
  1051. | --program-transform-nam | --program-transform-na \
  1052. | --program-transform-n | --program-transform- \
  1053. | --program-transform | --program-transfor \
  1054. | --program-transfo | --program-transf \
  1055. | --program-trans | --program-tran \
  1056. | --progr-tra | --program-tr | --program-t)
  1057. ac_prev=program_transform_name ;;
  1058. -program-transform-name=* | --program-transform-name=* \
  1059. | --program-transform-nam=* | --program-transform-na=* \
  1060. | --program-transform-n=* | --program-transform-=* \
  1061. | --program-transform=* | --program-transfor=* \
  1062. | --program-transfo=* | --program-transf=* \
  1063. | --program-trans=* | --program-tran=* \
  1064. | --progr-tra=* | --program-tr=* | --program-t=*)
  1065. program_transform_name=$ac_optarg ;;
  1066. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1067. ac_prev=pdfdir ;;
  1068. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1069. pdfdir=$ac_optarg ;;
  1070. -psdir | --psdir | --psdi | --psd | --ps)
  1071. ac_prev=psdir ;;
  1072. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1073. psdir=$ac_optarg ;;
  1074. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1075. | -silent | --silent | --silen | --sile | --sil)
  1076. silent=yes ;;
  1077. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1078. ac_prev=sbindir ;;
  1079. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1080. | --sbi=* | --sb=*)
  1081. sbindir=$ac_optarg ;;
  1082. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1083. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1084. | --sharedst | --shareds | --shared | --share | --shar \
  1085. | --sha | --sh)
  1086. ac_prev=sharedstatedir ;;
  1087. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1088. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1089. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1090. | --sha=* | --sh=*)
  1091. sharedstatedir=$ac_optarg ;;
  1092. -site | --site | --sit)
  1093. ac_prev=site ;;
  1094. -site=* | --site=* | --sit=*)
  1095. site=$ac_optarg ;;
  1096. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1097. ac_prev=srcdir ;;
  1098. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1099. srcdir=$ac_optarg ;;
  1100. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1101. | --syscon | --sysco | --sysc | --sys | --sy)
  1102. ac_prev=sysconfdir ;;
  1103. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1104. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1105. sysconfdir=$ac_optarg ;;
  1106. -target | --target | --targe | --targ | --tar | --ta | --t)
  1107. ac_prev=target_alias ;;
  1108. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1109. target_alias=$ac_optarg ;;
  1110. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1111. verbose=yes ;;
  1112. -version | --version | --versio | --versi | --vers | -V)
  1113. ac_init_version=: ;;
  1114. -with-* | --with-*)
  1115. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1116. # Reject names that are not valid shell variable names.
  1117. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1118. as_fn_error $? "invalid package name: $ac_useropt"
  1119. ac_useropt_orig=$ac_useropt
  1120. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1121. case $ac_user_opts in
  1122. *"
  1123. "with_$ac_useropt"
  1124. "*) ;;
  1125. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1126. ac_unrecognized_sep=', ';;
  1127. esac
  1128. eval with_$ac_useropt=\$ac_optarg ;;
  1129. -without-* | --without-*)
  1130. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1131. # Reject names that are not valid shell variable names.
  1132. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1133. as_fn_error $? "invalid package name: $ac_useropt"
  1134. ac_useropt_orig=$ac_useropt
  1135. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1136. case $ac_user_opts in
  1137. *"
  1138. "with_$ac_useropt"
  1139. "*) ;;
  1140. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1141. ac_unrecognized_sep=', ';;
  1142. esac
  1143. eval with_$ac_useropt=no ;;
  1144. --x)
  1145. # Obsolete; use --with-x.
  1146. with_x=yes ;;
  1147. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1148. | --x-incl | --x-inc | --x-in | --x-i)
  1149. ac_prev=x_includes ;;
  1150. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1151. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1152. x_includes=$ac_optarg ;;
  1153. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1154. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1155. ac_prev=x_libraries ;;
  1156. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1157. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1158. x_libraries=$ac_optarg ;;
  1159. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1160. Try \`$0 --help' for more information"
  1161. ;;
  1162. *=*)
  1163. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1164. # Reject names that are not valid shell variable names.
  1165. case $ac_envvar in #(
  1166. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1167. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1168. esac
  1169. eval $ac_envvar=\$ac_optarg
  1170. export $ac_envvar ;;
  1171. *)
  1172. # FIXME: should be removed in autoconf 3.0.
  1173. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1174. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1175. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1176. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1177. ;;
  1178. esac
  1179. done
  1180. if test -n "$ac_prev"; then
  1181. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1182. as_fn_error $? "missing argument to $ac_option"
  1183. fi
  1184. if test -n "$ac_unrecognized_opts"; then
  1185. case $enable_option_checking in
  1186. no) ;;
  1187. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1188. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1189. esac
  1190. fi
  1191. # Check all directory arguments for consistency.
  1192. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1193. datadir sysconfdir sharedstatedir localstatedir includedir \
  1194. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1195. libdir localedir mandir
  1196. do
  1197. eval ac_val=\$$ac_var
  1198. # Remove trailing slashes.
  1199. case $ac_val in
  1200. */ )
  1201. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1202. eval $ac_var=\$ac_val;;
  1203. esac
  1204. # Be sure to have absolute directory names.
  1205. case $ac_val in
  1206. [\\/$]* | ?:[\\/]* ) continue;;
  1207. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1208. esac
  1209. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1210. done
  1211. # There might be people who depend on the old broken behavior: `$host'
  1212. # used to hold the argument of --host etc.
  1213. # FIXME: To remove some day.
  1214. build=$build_alias
  1215. host=$host_alias
  1216. target=$target_alias
  1217. # FIXME: To remove some day.
  1218. if test "x$host_alias" != x; then
  1219. if test "x$build_alias" = x; then
  1220. cross_compiling=maybe
  1221. elif test "x$build_alias" != "x$host_alias"; then
  1222. cross_compiling=yes
  1223. fi
  1224. fi
  1225. ac_tool_prefix=
  1226. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1227. test "$silent" = yes && exec 6>/dev/null
  1228. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1229. ac_ls_di=`ls -di .` &&
  1230. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1231. as_fn_error $? "working directory cannot be determined"
  1232. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1233. as_fn_error $? "pwd does not report name of working directory"
  1234. # Find the source files, if location was not specified.
  1235. if test -z "$srcdir"; then
  1236. ac_srcdir_defaulted=yes
  1237. # Try the directory containing this script, then the parent directory.
  1238. ac_confdir=`$as_dirname -- "$as_myself" ||
  1239. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1240. X"$as_myself" : 'X\(//\)[^/]' \| \
  1241. X"$as_myself" : 'X\(//\)$' \| \
  1242. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1243. $as_echo X"$as_myself" |
  1244. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1245. s//\1/
  1246. q
  1247. }
  1248. /^X\(\/\/\)[^/].*/{
  1249. s//\1/
  1250. q
  1251. }
  1252. /^X\(\/\/\)$/{
  1253. s//\1/
  1254. q
  1255. }
  1256. /^X\(\/\).*/{
  1257. s//\1/
  1258. q
  1259. }
  1260. s/.*/./; q'`
  1261. srcdir=$ac_confdir
  1262. if test ! -r "$srcdir/$ac_unique_file"; then
  1263. srcdir=..
  1264. fi
  1265. else
  1266. ac_srcdir_defaulted=no
  1267. fi
  1268. if test ! -r "$srcdir/$ac_unique_file"; then
  1269. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1270. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1271. fi
  1272. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1273. ac_abs_confdir=`(
  1274. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1275. pwd)`
  1276. # When building in place, set srcdir=.
  1277. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1278. srcdir=.
  1279. fi
  1280. # Remove unnecessary trailing slashes from srcdir.
  1281. # Double slashes in file names in object file debugging info
  1282. # mess up M-x gdb in Emacs.
  1283. case $srcdir in
  1284. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1285. esac
  1286. for ac_var in $ac_precious_vars; do
  1287. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1288. eval ac_env_${ac_var}_value=\$${ac_var}
  1289. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1290. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1291. done
  1292. #
  1293. # Report the --help message.
  1294. #
  1295. if test "$ac_init_help" = "long"; then
  1296. # Omit some internal or obsolete options to make the list less imposing.
  1297. # This message is too long to be a string in the A/UX 3.1 sh.
  1298. cat <<_ACEOF
  1299. \`configure' configures this package to adapt to many kinds of systems.
  1300. Usage: $0 [OPTION]... [VAR=VALUE]...
  1301. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1302. VAR=VALUE. See below for descriptions of some of the useful variables.
  1303. Defaults for the options are specified in brackets.
  1304. Configuration:
  1305. -h, --help display this help and exit
  1306. --help=short display options specific to this package
  1307. --help=recursive display the short help of all the included packages
  1308. -V, --version display version information and exit
  1309. -q, --quiet, --silent do not print \`checking ...' messages
  1310. --cache-file=FILE cache test results in FILE [disabled]
  1311. -C, --config-cache alias for \`--cache-file=config.cache'
  1312. -n, --no-create do not create output files
  1313. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1314. Installation directories:
  1315. --prefix=PREFIX install architecture-independent files in PREFIX
  1316. [$ac_default_prefix]
  1317. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1318. [PREFIX]
  1319. By default, \`make install' will install all the files in
  1320. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1321. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1322. for instance \`--prefix=\$HOME'.
  1323. For better control, use the options below.
  1324. Fine tuning of the installation directories:
  1325. --bindir=DIR user executables [EPREFIX/bin]
  1326. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1327. --libexecdir=DIR program executables [EPREFIX/libexec]
  1328. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1329. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1330. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1331. --libdir=DIR object code libraries [EPREFIX/lib]
  1332. --includedir=DIR C header files [PREFIX/include]
  1333. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1334. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1335. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1336. --infodir=DIR info documentation [DATAROOTDIR/info]
  1337. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1338. --mandir=DIR man documentation [DATAROOTDIR/man]
  1339. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1340. --htmldir=DIR html documentation [DOCDIR]
  1341. --dvidir=DIR dvi documentation [DOCDIR]
  1342. --pdfdir=DIR pdf documentation [DOCDIR]
  1343. --psdir=DIR ps documentation [DOCDIR]
  1344. _ACEOF
  1345. cat <<\_ACEOF
  1346. X features:
  1347. --x-includes=DIR X include files are in DIR
  1348. --x-libraries=DIR X library files are in DIR
  1349. System types:
  1350. --build=BUILD configure for building on BUILD [guessed]
  1351. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1352. _ACEOF
  1353. fi
  1354. if test -n "$ac_init_help"; then
  1355. cat <<\_ACEOF
  1356. Optional Features:
  1357. --disable-option-checking ignore unrecognized --enable/--with options
  1358. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1359. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1360. --enable-shared[=PKGS] build shared libraries [default=yes]
  1361. --enable-static[=PKGS] build static libraries [default=yes]
  1362. --enable-fast-install[=PKGS]
  1363. optimize for fast installation [default=yes]
  1364. --disable-libtool-lock avoid locking (might break parallel builds)
  1365. --enable-assertions Enable internal sanity checks
  1366. (auto/disabled/release/enabled/paranoid)
  1367. [[default=auto]]
  1368. --enable-dependency-tracking
  1369. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1370. --enable-libc Use the system C library [[default=yes]]
  1371. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1372. --enable-atomic Enable the atomic operations subsystem
  1373. [[default=yes]]
  1374. --enable-audio Enable the audio subsystem [[default=yes]]
  1375. --enable-video Enable the video subsystem [[default=yes]]
  1376. --enable-render Enable the render subsystem [[default=yes]]
  1377. --enable-events Enable the events subsystem [[default=yes]]
  1378. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1379. --enable-haptic Enable the haptic (force feedback) subsystem
  1380. [[default=yes]]
  1381. --enable-power Enable the power subsystem [[default=yes]]
  1382. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1383. --enable-threads Enable the threading subsystem [[default=yes]]
  1384. --enable-timers Enable the timer subsystem [[default=yes]]
  1385. --enable-file Enable the file subsystem [[default=yes]]
  1386. --enable-loadso Enable the shared object loading subsystem
  1387. [[default=yes]]
  1388. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1389. --enable-assembly Enable assembly routines [[default=yes]]
  1390. --enable-ssemath Allow GCC to use SSE floating point math
  1391. [[default=no]]
  1392. --enable-mmx use MMX assembly routines [[default=yes]]
  1393. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1394. --enable-sse use SSE assembly routines [[default=yes]]
  1395. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1396. --enable-altivec use Altivec assembly routines [[default=yes]]
  1397. --enable-oss support the OSS audio API [[default=maybe]]
  1398. --enable-alsa support the ALSA audio API [[default=yes]]
  1399. --disable-alsatest Do not try to compile and run a test Alsa program
  1400. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1401. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1402. --disable-esdtest Do not try to compile and run a test ESD program
  1403. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1404. --enable-pulseaudio use PulseAudio [[default=yes]]
  1405. --enable-pulseaudio-shared
  1406. dynamically load PulseAudio support [[default=yes]]
  1407. --enable-arts support the Analog Real Time Synthesizer
  1408. [[default=yes]]
  1409. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1410. --enable-nas support the NAS audio API [[default=yes]]
  1411. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1412. --enable-sndio support the sndio audio API [[default=yes]]
  1413. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1414. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1415. --enable-fusionsound-shared
  1416. dynamically load fusionsound audio support
  1417. [[default=yes]]
  1418. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1419. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1420. --enable-libsamplerate use libsamplerate for audio rate conversion
  1421. [[default=yes]]
  1422. --enable-libsamplerate-shared
  1423. dynamically load libsamplerate [[default=yes]]
  1424. --enable-video-wayland use Wayland video driver [[default=yes]]
  1425. --enable-video-wayland-qt-touch
  1426. QtWayland server support for Wayland video driver
  1427. [[default=yes]]
  1428. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1429. --enable-video-mir use Mir video driver [[default=yes]]
  1430. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1431. --enable-video-x11 use X11 video driver [[default=yes]]
  1432. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1433. --enable-video-x11-xcursor
  1434. enable X11 Xcursor support [[default=yes]]
  1435. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1436. --enable-video-x11-xinerama
  1437. enable X11 Xinerama support [[default=yes]]
  1438. --enable-video-x11-xinput
  1439. enable X11 XInput extension for manymouse, tablets,
  1440. etc [[default=yes]]
  1441. --enable-video-x11-xrandr
  1442. enable X11 Xrandr extension for fullscreen
  1443. [[default=yes]]
  1444. --enable-video-x11-scrnsaver
  1445. enable X11 screensaver extension [[default=yes]]
  1446. --enable-video-x11-xshape
  1447. enable X11 XShape support [[default=yes]]
  1448. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1449. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1450. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1451. --enable-video-directfb use DirectFB video driver [[default=no]]
  1452. --enable-directfb-shared
  1453. dynamically load directfb support [[default=yes]]
  1454. --enable-video-dummy use dummy video driver [[default=yes]]
  1455. --enable-video-opengl include OpenGL support [[default=yes]]
  1456. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1457. --enable-video-opengles1
  1458. include OpenGL ES 1.1 support [[default=yes]]
  1459. --enable-video-opengles2
  1460. include OpenGL ES 2.0 support [[default=yes]]
  1461. --enable-libudev enable libudev support [[default=yes]]
  1462. --enable-dbus enable D-Bus support [[default=yes]]
  1463. --enable-ime enable IME support [[default=yes]]
  1464. --enable-ibus enable IBus support [[default=yes]]
  1465. --enable-fcitx enable fcitx support [[default=yes]]
  1466. --enable-input-tslib use the Touchscreen library for input
  1467. [[default=yes]]
  1468. --enable-pthreads use POSIX threads for multi-threading
  1469. [[default=yes]]
  1470. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1471. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1472. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1473. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1474. UNIX [[default=yes]]
  1475. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1476. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1477. Optional Packages:
  1478. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1479. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1480. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1481. both]
  1482. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1483. --with-sysroot=DIR Search for dependent libraries within DIR
  1484. (or the compiler's sysroot if not specified).
  1485. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1486. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1487. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1488. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1489. --with-x use the X Window System
  1490. Some influential environment variables:
  1491. CC C compiler command
  1492. CFLAGS C compiler flags
  1493. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1494. nonstandard directory <lib dir>
  1495. LIBS libraries to pass to the linker, e.g. -l<library>
  1496. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1497. you have headers in a nonstandard directory <include dir>
  1498. CPP C preprocessor
  1499. CXX C++ compiler command
  1500. CXXFLAGS C++ compiler flags
  1501. CXXCPP C++ preprocessor
  1502. XMKMF Path to xmkmf, Makefile generator for X Window System
  1503. Use these variables to override the choices made by `configure' or to help
  1504. it to find libraries and programs with nonstandard names/locations.
  1505. Report bugs to the package provider.
  1506. _ACEOF
  1507. ac_status=$?
  1508. fi
  1509. if test "$ac_init_help" = "recursive"; then
  1510. # If there are subdirs, report their specific --help.
  1511. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1512. test -d "$ac_dir" ||
  1513. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1514. continue
  1515. ac_builddir=.
  1516. case "$ac_dir" in
  1517. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1518. *)
  1519. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1520. # A ".." for each directory in $ac_dir_suffix.
  1521. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1522. case $ac_top_builddir_sub in
  1523. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1524. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1525. esac ;;
  1526. esac
  1527. ac_abs_top_builddir=$ac_pwd
  1528. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1529. # for backward compatibility:
  1530. ac_top_builddir=$ac_top_build_prefix
  1531. case $srcdir in
  1532. .) # We are building in place.
  1533. ac_srcdir=.
  1534. ac_top_srcdir=$ac_top_builddir_sub
  1535. ac_abs_top_srcdir=$ac_pwd ;;
  1536. [\\/]* | ?:[\\/]* ) # Absolute name.
  1537. ac_srcdir=$srcdir$ac_dir_suffix;
  1538. ac_top_srcdir=$srcdir
  1539. ac_abs_top_srcdir=$srcdir ;;
  1540. *) # Relative name.
  1541. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1542. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1543. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1544. esac
  1545. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1546. cd "$ac_dir" || { ac_status=$?; continue; }
  1547. # Check for guested configure.
  1548. if test -f "$ac_srcdir/configure.gnu"; then
  1549. echo &&
  1550. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1551. elif test -f "$ac_srcdir/configure"; then
  1552. echo &&
  1553. $SHELL "$ac_srcdir/configure" --help=recursive
  1554. else
  1555. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1556. fi || ac_status=$?
  1557. cd "$ac_pwd" || { ac_status=$?; break; }
  1558. done
  1559. fi
  1560. test -n "$ac_init_help" && exit $ac_status
  1561. if $ac_init_version; then
  1562. cat <<\_ACEOF
  1563. configure
  1564. generated by GNU Autoconf 2.69
  1565. Copyright (C) 2012 Free Software Foundation, Inc.
  1566. This configure script is free software; the Free Software Foundation
  1567. gives unlimited permission to copy, distribute and modify it.
  1568. _ACEOF
  1569. exit
  1570. fi
  1571. ## ------------------------ ##
  1572. ## Autoconf initialization. ##
  1573. ## ------------------------ ##
  1574. # ac_fn_c_try_compile LINENO
  1575. # --------------------------
  1576. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1577. ac_fn_c_try_compile ()
  1578. {
  1579. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1580. rm -f conftest.$ac_objext
  1581. if { { ac_try="$ac_compile"
  1582. case "(($ac_try" in
  1583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1584. *) ac_try_echo=$ac_try;;
  1585. esac
  1586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1587. $as_echo "$ac_try_echo"; } >&5
  1588. (eval "$ac_compile") 2>conftest.err
  1589. ac_status=$?
  1590. if test -s conftest.err; then
  1591. grep -v '^ *+' conftest.err >conftest.er1
  1592. cat conftest.er1 >&5
  1593. mv -f conftest.er1 conftest.err
  1594. fi
  1595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1596. test $ac_status = 0; } && {
  1597. test -z "$ac_c_werror_flag" ||
  1598. test ! -s conftest.err
  1599. } && test -s conftest.$ac_objext; then :
  1600. ac_retval=0
  1601. else
  1602. $as_echo "$as_me: failed program was:" >&5
  1603. sed 's/^/| /' conftest.$ac_ext >&5
  1604. ac_retval=1
  1605. fi
  1606. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1607. as_fn_set_status $ac_retval
  1608. } # ac_fn_c_try_compile
  1609. # ac_fn_c_try_link LINENO
  1610. # -----------------------
  1611. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1612. ac_fn_c_try_link ()
  1613. {
  1614. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1615. rm -f conftest.$ac_objext conftest$ac_exeext
  1616. if { { ac_try="$ac_link"
  1617. case "(($ac_try" in
  1618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1619. *) ac_try_echo=$ac_try;;
  1620. esac
  1621. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1622. $as_echo "$ac_try_echo"; } >&5
  1623. (eval "$ac_link") 2>conftest.err
  1624. ac_status=$?
  1625. if test -s conftest.err; then
  1626. grep -v '^ *+' conftest.err >conftest.er1
  1627. cat conftest.er1 >&5
  1628. mv -f conftest.er1 conftest.err
  1629. fi
  1630. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1631. test $ac_status = 0; } && {
  1632. test -z "$ac_c_werror_flag" ||
  1633. test ! -s conftest.err
  1634. } && test -s conftest$ac_exeext && {
  1635. test "$cross_compiling" = yes ||
  1636. test -x conftest$ac_exeext
  1637. }; then :
  1638. ac_retval=0
  1639. else
  1640. $as_echo "$as_me: failed program was:" >&5
  1641. sed 's/^/| /' conftest.$ac_ext >&5
  1642. ac_retval=1
  1643. fi
  1644. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1645. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1646. # interfere with the next link command; also delete a directory that is
  1647. # left behind by Apple's compiler. We do this before executing the actions.
  1648. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1649. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1650. as_fn_set_status $ac_retval
  1651. } # ac_fn_c_try_link
  1652. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1653. # -------------------------------------------------------
  1654. # Tests whether HEADER exists and can be compiled using the include files in
  1655. # INCLUDES, setting the cache variable VAR accordingly.
  1656. ac_fn_c_check_header_compile ()
  1657. {
  1658. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1660. $as_echo_n "checking for $2... " >&6; }
  1661. if eval \${$3+:} false; then :
  1662. $as_echo_n "(cached) " >&6
  1663. else
  1664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1665. /* end confdefs.h. */
  1666. $4
  1667. #include <$2>
  1668. _ACEOF
  1669. if ac_fn_c_try_compile "$LINENO"; then :
  1670. eval "$3=yes"
  1671. else
  1672. eval "$3=no"
  1673. fi
  1674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1675. fi
  1676. eval ac_res=\$$3
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1678. $as_echo "$ac_res" >&6; }
  1679. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1680. } # ac_fn_c_check_header_compile
  1681. # ac_fn_c_try_cpp LINENO
  1682. # ----------------------
  1683. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1684. ac_fn_c_try_cpp ()
  1685. {
  1686. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1687. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1688. case "(($ac_try" in
  1689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1690. *) ac_try_echo=$ac_try;;
  1691. esac
  1692. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1693. $as_echo "$ac_try_echo"; } >&5
  1694. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1695. ac_status=$?
  1696. if test -s conftest.err; then
  1697. grep -v '^ *+' conftest.err >conftest.er1
  1698. cat conftest.er1 >&5
  1699. mv -f conftest.er1 conftest.err
  1700. fi
  1701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1702. test $ac_status = 0; } > conftest.i && {
  1703. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1704. test ! -s conftest.err
  1705. }; then :
  1706. ac_retval=0
  1707. else
  1708. $as_echo "$as_me: failed program was:" >&5
  1709. sed 's/^/| /' conftest.$ac_ext >&5
  1710. ac_retval=1
  1711. fi
  1712. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1713. as_fn_set_status $ac_retval
  1714. } # ac_fn_c_try_cpp
  1715. # ac_fn_c_try_run LINENO
  1716. # ----------------------
  1717. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1718. # that executables *can* be run.
  1719. ac_fn_c_try_run ()
  1720. {
  1721. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1722. if { { ac_try="$ac_link"
  1723. case "(($ac_try" in
  1724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1725. *) ac_try_echo=$ac_try;;
  1726. esac
  1727. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1728. $as_echo "$ac_try_echo"; } >&5
  1729. (eval "$ac_link") 2>&5
  1730. ac_status=$?
  1731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1732. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1733. { { case "(($ac_try" in
  1734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1735. *) ac_try_echo=$ac_try;;
  1736. esac
  1737. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1738. $as_echo "$ac_try_echo"; } >&5
  1739. (eval "$ac_try") 2>&5
  1740. ac_status=$?
  1741. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1742. test $ac_status = 0; }; }; then :
  1743. ac_retval=0
  1744. else
  1745. $as_echo "$as_me: program exited with status $ac_status" >&5
  1746. $as_echo "$as_me: failed program was:" >&5
  1747. sed 's/^/| /' conftest.$ac_ext >&5
  1748. ac_retval=$ac_status
  1749. fi
  1750. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1751. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1752. as_fn_set_status $ac_retval
  1753. } # ac_fn_c_try_run
  1754. # ac_fn_c_check_func LINENO FUNC VAR
  1755. # ----------------------------------
  1756. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1757. ac_fn_c_check_func ()
  1758. {
  1759. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1761. $as_echo_n "checking for $2... " >&6; }
  1762. if eval \${$3+:} false; then :
  1763. $as_echo_n "(cached) " >&6
  1764. else
  1765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1766. /* end confdefs.h. */
  1767. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1768. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1769. #define $2 innocuous_$2
  1770. /* System header to define __stub macros and hopefully few prototypes,
  1771. which can conflict with char $2 (); below.
  1772. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1773. <limits.h> exists even on freestanding compilers. */
  1774. #ifdef __STDC__
  1775. # include <limits.h>
  1776. #else
  1777. # include <assert.h>
  1778. #endif
  1779. #undef $2
  1780. /* Override any GCC internal prototype to avoid an error.
  1781. Use char because int might match the return type of a GCC
  1782. builtin and then its argument prototype would still apply. */
  1783. #ifdef __cplusplus
  1784. extern "C"
  1785. #endif
  1786. char $2 ();
  1787. /* The GNU C library defines this for functions which it implements
  1788. to always fail with ENOSYS. Some functions are actually named
  1789. something starting with __ and the normal name is an alias. */
  1790. #if defined __stub_$2 || defined __stub___$2
  1791. choke me
  1792. #endif
  1793. int
  1794. main ()
  1795. {
  1796. return $2 ();
  1797. ;
  1798. return 0;
  1799. }
  1800. _ACEOF
  1801. if ac_fn_c_try_link "$LINENO"; then :
  1802. eval "$3=yes"
  1803. else
  1804. eval "$3=no"
  1805. fi
  1806. rm -f core conftest.err conftest.$ac_objext \
  1807. conftest$ac_exeext conftest.$ac_ext
  1808. fi
  1809. eval ac_res=\$$3
  1810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1811. $as_echo "$ac_res" >&6; }
  1812. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1813. } # ac_fn_c_check_func
  1814. # ac_fn_cxx_try_compile LINENO
  1815. # ----------------------------
  1816. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1817. ac_fn_cxx_try_compile ()
  1818. {
  1819. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1820. rm -f conftest.$ac_objext
  1821. if { { ac_try="$ac_compile"
  1822. case "(($ac_try" in
  1823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1824. *) ac_try_echo=$ac_try;;
  1825. esac
  1826. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1827. $as_echo "$ac_try_echo"; } >&5
  1828. (eval "$ac_compile") 2>conftest.err
  1829. ac_status=$?
  1830. if test -s conftest.err; then
  1831. grep -v '^ *+' conftest.err >conftest.er1
  1832. cat conftest.er1 >&5
  1833. mv -f conftest.er1 conftest.err
  1834. fi
  1835. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1836. test $ac_status = 0; } && {
  1837. test -z "$ac_cxx_werror_flag" ||
  1838. test ! -s conftest.err
  1839. } && test -s conftest.$ac_objext; then :
  1840. ac_retval=0
  1841. else
  1842. $as_echo "$as_me: failed program was:" >&5
  1843. sed 's/^/| /' conftest.$ac_ext >&5
  1844. ac_retval=1
  1845. fi
  1846. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1847. as_fn_set_status $ac_retval
  1848. } # ac_fn_cxx_try_compile
  1849. # ac_fn_cxx_try_cpp LINENO
  1850. # ------------------------
  1851. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1852. ac_fn_cxx_try_cpp ()
  1853. {
  1854. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1855. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1856. case "(($ac_try" in
  1857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1858. *) ac_try_echo=$ac_try;;
  1859. esac
  1860. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1861. $as_echo "$ac_try_echo"; } >&5
  1862. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1863. ac_status=$?
  1864. if test -s conftest.err; then
  1865. grep -v '^ *+' conftest.err >conftest.er1
  1866. cat conftest.er1 >&5
  1867. mv -f conftest.er1 conftest.err
  1868. fi
  1869. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1870. test $ac_status = 0; } > conftest.i && {
  1871. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1872. test ! -s conftest.err
  1873. }; then :
  1874. ac_retval=0
  1875. else
  1876. $as_echo "$as_me: failed program was:" >&5
  1877. sed 's/^/| /' conftest.$ac_ext >&5
  1878. ac_retval=1
  1879. fi
  1880. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1881. as_fn_set_status $ac_retval
  1882. } # ac_fn_cxx_try_cpp
  1883. # ac_fn_cxx_try_link LINENO
  1884. # -------------------------
  1885. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1886. ac_fn_cxx_try_link ()
  1887. {
  1888. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1889. rm -f conftest.$ac_objext conftest$ac_exeext
  1890. if { { ac_try="$ac_link"
  1891. case "(($ac_try" in
  1892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1893. *) ac_try_echo=$ac_try;;
  1894. esac
  1895. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1896. $as_echo "$ac_try_echo"; } >&5
  1897. (eval "$ac_link") 2>conftest.err
  1898. ac_status=$?
  1899. if test -s conftest.err; then
  1900. grep -v '^ *+' conftest.err >conftest.er1
  1901. cat conftest.er1 >&5
  1902. mv -f conftest.er1 conftest.err
  1903. fi
  1904. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1905. test $ac_status = 0; } && {
  1906. test -z "$ac_cxx_werror_flag" ||
  1907. test ! -s conftest.err
  1908. } && test -s conftest$ac_exeext && {
  1909. test "$cross_compiling" = yes ||
  1910. test -x conftest$ac_exeext
  1911. }; then :
  1912. ac_retval=0
  1913. else
  1914. $as_echo "$as_me: failed program was:" >&5
  1915. sed 's/^/| /' conftest.$ac_ext >&5
  1916. ac_retval=1
  1917. fi
  1918. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1919. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1920. # interfere with the next link command; also delete a directory that is
  1921. # left behind by Apple's compiler. We do this before executing the actions.
  1922. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1923. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1924. as_fn_set_status $ac_retval
  1925. } # ac_fn_cxx_try_link
  1926. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1927. # -------------------------------------------------------
  1928. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1929. # the include files in INCLUDES and setting the cache variable VAR
  1930. # accordingly.
  1931. ac_fn_c_check_header_mongrel ()
  1932. {
  1933. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1934. if eval \${$3+:} false; then :
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1936. $as_echo_n "checking for $2... " >&6; }
  1937. if eval \${$3+:} false; then :
  1938. $as_echo_n "(cached) " >&6
  1939. fi
  1940. eval ac_res=\$$3
  1941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1942. $as_echo "$ac_res" >&6; }
  1943. else
  1944. # Is the header compilable?
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1946. $as_echo_n "checking $2 usability... " >&6; }
  1947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1948. /* end confdefs.h. */
  1949. $4
  1950. #include <$2>
  1951. _ACEOF
  1952. if ac_fn_c_try_compile "$LINENO"; then :
  1953. ac_header_compiler=yes
  1954. else
  1955. ac_header_compiler=no
  1956. fi
  1957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1959. $as_echo "$ac_header_compiler" >&6; }
  1960. # Is the header present?
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1962. $as_echo_n "checking $2 presence... " >&6; }
  1963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1964. /* end confdefs.h. */
  1965. #include <$2>
  1966. _ACEOF
  1967. if ac_fn_c_try_cpp "$LINENO"; then :
  1968. ac_header_preproc=yes
  1969. else
  1970. ac_header_preproc=no
  1971. fi
  1972. rm -f conftest.err conftest.i conftest.$ac_ext
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1974. $as_echo "$ac_header_preproc" >&6; }
  1975. # So? What about this header?
  1976. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1977. yes:no: )
  1978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1979. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1981. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1982. ;;
  1983. no:yes:* )
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1985. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1987. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1989. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1991. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1993. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1994. ;;
  1995. esac
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1997. $as_echo_n "checking for $2... " >&6; }
  1998. if eval \${$3+:} false; then :
  1999. $as_echo_n "(cached) " >&6
  2000. else
  2001. eval "$3=\$ac_header_compiler"
  2002. fi
  2003. eval ac_res=\$$3
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2005. $as_echo "$ac_res" >&6; }
  2006. fi
  2007. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2008. } # ac_fn_c_check_header_mongrel
  2009. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2010. # -------------------------------------------
  2011. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2012. # variable VAR accordingly.
  2013. ac_fn_c_check_type ()
  2014. {
  2015. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2017. $as_echo_n "checking for $2... " >&6; }
  2018. if eval \${$3+:} false; then :
  2019. $as_echo_n "(cached) " >&6
  2020. else
  2021. eval "$3=no"
  2022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2023. /* end confdefs.h. */
  2024. $4
  2025. int
  2026. main ()
  2027. {
  2028. if (sizeof ($2))
  2029. return 0;
  2030. ;
  2031. return 0;
  2032. }
  2033. _ACEOF
  2034. if ac_fn_c_try_compile "$LINENO"; then :
  2035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2036. /* end confdefs.h. */
  2037. $4
  2038. int
  2039. main ()
  2040. {
  2041. if (sizeof (($2)))
  2042. return 0;
  2043. ;
  2044. return 0;
  2045. }
  2046. _ACEOF
  2047. if ac_fn_c_try_compile "$LINENO"; then :
  2048. else
  2049. eval "$3=yes"
  2050. fi
  2051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2052. fi
  2053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2054. fi
  2055. eval ac_res=\$$3
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2057. $as_echo "$ac_res" >&6; }
  2058. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2059. } # ac_fn_c_check_type
  2060. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2061. # ----------------------------------------------------
  2062. # Tries to find if the field MEMBER exists in type AGGR, after including
  2063. # INCLUDES, setting cache variable VAR accordingly.
  2064. ac_fn_c_check_member ()
  2065. {
  2066. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2068. $as_echo_n "checking for $2.$3... " >&6; }
  2069. if eval \${$4+:} false; then :
  2070. $as_echo_n "(cached) " >&6
  2071. else
  2072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2073. /* end confdefs.h. */
  2074. $5
  2075. int
  2076. main ()
  2077. {
  2078. static $2 ac_aggr;
  2079. if (ac_aggr.$3)
  2080. return 0;
  2081. ;
  2082. return 0;
  2083. }
  2084. _ACEOF
  2085. if ac_fn_c_try_compile "$LINENO"; then :
  2086. eval "$4=yes"
  2087. else
  2088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2089. /* end confdefs.h. */
  2090. $5
  2091. int
  2092. main ()
  2093. {
  2094. static $2 ac_aggr;
  2095. if (sizeof ac_aggr.$3)
  2096. return 0;
  2097. ;
  2098. return 0;
  2099. }
  2100. _ACEOF
  2101. if ac_fn_c_try_compile "$LINENO"; then :
  2102. eval "$4=yes"
  2103. else
  2104. eval "$4=no"
  2105. fi
  2106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2107. fi
  2108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2109. fi
  2110. eval ac_res=\$$4
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2112. $as_echo "$ac_res" >&6; }
  2113. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2114. } # ac_fn_c_check_member
  2115. cat >config.log <<_ACEOF
  2116. This file contains any messages produced by compilers while
  2117. running configure, to aid debugging if configure makes a mistake.
  2118. It was created by $as_me, which was
  2119. generated by GNU Autoconf 2.69. Invocation command line was
  2120. $ $0 $@
  2121. _ACEOF
  2122. exec 5>>config.log
  2123. {
  2124. cat <<_ASUNAME
  2125. ## --------- ##
  2126. ## Platform. ##
  2127. ## --------- ##
  2128. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2129. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2130. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2131. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2132. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2133. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2134. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2135. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2136. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2137. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2138. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2139. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2140. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2141. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2142. _ASUNAME
  2143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2144. for as_dir in $PATH
  2145. do
  2146. IFS=$as_save_IFS
  2147. test -z "$as_dir" && as_dir=.
  2148. $as_echo "PATH: $as_dir"
  2149. done
  2150. IFS=$as_save_IFS
  2151. } >&5
  2152. cat >&5 <<_ACEOF
  2153. ## ----------- ##
  2154. ## Core tests. ##
  2155. ## ----------- ##
  2156. _ACEOF
  2157. # Keep a trace of the command line.
  2158. # Strip out --no-create and --no-recursion so they do not pile up.
  2159. # Strip out --silent because we don't want to record it for future runs.
  2160. # Also quote any args containing shell meta-characters.
  2161. # Make two passes to allow for proper duplicate-argument suppression.
  2162. ac_configure_args=
  2163. ac_configure_args0=
  2164. ac_configure_args1=
  2165. ac_must_keep_next=false
  2166. for ac_pass in 1 2
  2167. do
  2168. for ac_arg
  2169. do
  2170. case $ac_arg in
  2171. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2172. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2173. | -silent | --silent | --silen | --sile | --sil)
  2174. continue ;;
  2175. *\'*)
  2176. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2177. esac
  2178. case $ac_pass in
  2179. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2180. 2)
  2181. as_fn_append ac_configure_args1 " '$ac_arg'"
  2182. if test $ac_must_keep_next = true; then
  2183. ac_must_keep_next=false # Got value, back to normal.
  2184. else
  2185. case $ac_arg in
  2186. *=* | --config-cache | -C | -disable-* | --disable-* \
  2187. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2188. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2189. | -with-* | --with-* | -without-* | --without-* | --x)
  2190. case "$ac_configure_args0 " in
  2191. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2192. esac
  2193. ;;
  2194. -* ) ac_must_keep_next=true ;;
  2195. esac
  2196. fi
  2197. as_fn_append ac_configure_args " '$ac_arg'"
  2198. ;;
  2199. esac
  2200. done
  2201. done
  2202. { ac_configure_args0=; unset ac_configure_args0;}
  2203. { ac_configure_args1=; unset ac_configure_args1;}
  2204. # When interrupted or exit'd, cleanup temporary files, and complete
  2205. # config.log. We remove comments because anyway the quotes in there
  2206. # would cause problems or look ugly.
  2207. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2208. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2209. trap 'exit_status=$?
  2210. # Save into config.log some information that might help in debugging.
  2211. {
  2212. echo
  2213. $as_echo "## ---------------- ##
  2214. ## Cache variables. ##
  2215. ## ---------------- ##"
  2216. echo
  2217. # The following way of writing the cache mishandles newlines in values,
  2218. (
  2219. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2220. eval ac_val=\$$ac_var
  2221. case $ac_val in #(
  2222. *${as_nl}*)
  2223. case $ac_var in #(
  2224. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2225. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2226. esac
  2227. case $ac_var in #(
  2228. _ | IFS | as_nl) ;; #(
  2229. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2230. *) { eval $ac_var=; unset $ac_var;} ;;
  2231. esac ;;
  2232. esac
  2233. done
  2234. (set) 2>&1 |
  2235. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2236. *${as_nl}ac_space=\ *)
  2237. sed -n \
  2238. "s/'\''/'\''\\\\'\'''\''/g;
  2239. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2240. ;; #(
  2241. *)
  2242. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2243. ;;
  2244. esac |
  2245. sort
  2246. )
  2247. echo
  2248. $as_echo "## ----------------- ##
  2249. ## Output variables. ##
  2250. ## ----------------- ##"
  2251. echo
  2252. for ac_var in $ac_subst_vars
  2253. do
  2254. eval ac_val=\$$ac_var
  2255. case $ac_val in
  2256. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2257. esac
  2258. $as_echo "$ac_var='\''$ac_val'\''"
  2259. done | sort
  2260. echo
  2261. if test -n "$ac_subst_files"; then
  2262. $as_echo "## ------------------- ##
  2263. ## File substitutions. ##
  2264. ## ------------------- ##"
  2265. echo
  2266. for ac_var in $ac_subst_files
  2267. do
  2268. eval ac_val=\$$ac_var
  2269. case $ac_val in
  2270. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2271. esac
  2272. $as_echo "$ac_var='\''$ac_val'\''"
  2273. done | sort
  2274. echo
  2275. fi
  2276. if test -s confdefs.h; then
  2277. $as_echo "## ----------- ##
  2278. ## confdefs.h. ##
  2279. ## ----------- ##"
  2280. echo
  2281. cat confdefs.h
  2282. echo
  2283. fi
  2284. test "$ac_signal" != 0 &&
  2285. $as_echo "$as_me: caught signal $ac_signal"
  2286. $as_echo "$as_me: exit $exit_status"
  2287. } >&5
  2288. rm -f core *.core core.conftest.* &&
  2289. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2290. exit $exit_status
  2291. ' 0
  2292. for ac_signal in 1 2 13 15; do
  2293. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2294. done
  2295. ac_signal=0
  2296. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2297. rm -f -r conftest* confdefs.h
  2298. $as_echo "/* confdefs.h */" > confdefs.h
  2299. # Predefined preprocessor variables.
  2300. cat >>confdefs.h <<_ACEOF
  2301. #define PACKAGE_NAME "$PACKAGE_NAME"
  2302. _ACEOF
  2303. cat >>confdefs.h <<_ACEOF
  2304. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2305. _ACEOF
  2306. cat >>confdefs.h <<_ACEOF
  2307. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2308. _ACEOF
  2309. cat >>confdefs.h <<_ACEOF
  2310. #define PACKAGE_STRING "$PACKAGE_STRING"
  2311. _ACEOF
  2312. cat >>confdefs.h <<_ACEOF
  2313. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2314. _ACEOF
  2315. cat >>confdefs.h <<_ACEOF
  2316. #define PACKAGE_URL "$PACKAGE_URL"
  2317. _ACEOF
  2318. # Let the site file select an alternate cache file if it wants to.
  2319. # Prefer an explicitly selected file to automatically selected ones.
  2320. ac_site_file1=NONE
  2321. ac_site_file2=NONE
  2322. if test -n "$CONFIG_SITE"; then
  2323. # We do not want a PATH search for config.site.
  2324. case $CONFIG_SITE in #((
  2325. -*) ac_site_file1=./$CONFIG_SITE;;
  2326. */*) ac_site_file1=$CONFIG_SITE;;
  2327. *) ac_site_file1=./$CONFIG_SITE;;
  2328. esac
  2329. elif test "x$prefix" != xNONE; then
  2330. ac_site_file1=$prefix/share/config.site
  2331. ac_site_file2=$prefix/etc/config.site
  2332. else
  2333. ac_site_file1=$ac_default_prefix/share/config.site
  2334. ac_site_file2=$ac_default_prefix/etc/config.site
  2335. fi
  2336. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2337. do
  2338. test "x$ac_site_file" = xNONE && continue
  2339. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2341. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2342. sed 's/^/| /' "$ac_site_file" >&5
  2343. . "$ac_site_file" \
  2344. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2345. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2346. as_fn_error $? "failed to load site script $ac_site_file
  2347. See \`config.log' for more details" "$LINENO" 5; }
  2348. fi
  2349. done
  2350. if test -r "$cache_file"; then
  2351. # Some versions of bash will fail to source /dev/null (special files
  2352. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2353. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2355. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2356. case $cache_file in
  2357. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2358. *) . "./$cache_file";;
  2359. esac
  2360. fi
  2361. else
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2363. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2364. >$cache_file
  2365. fi
  2366. # Check that the precious variables saved in the cache have kept the same
  2367. # value.
  2368. ac_cache_corrupted=false
  2369. for ac_var in $ac_precious_vars; do
  2370. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2371. eval ac_new_set=\$ac_env_${ac_var}_set
  2372. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2373. eval ac_new_val=\$ac_env_${ac_var}_value
  2374. case $ac_old_set,$ac_new_set in
  2375. set,)
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2377. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2378. ac_cache_corrupted=: ;;
  2379. ,set)
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2381. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2382. ac_cache_corrupted=: ;;
  2383. ,);;
  2384. *)
  2385. if test "x$ac_old_val" != "x$ac_new_val"; then
  2386. # differences in whitespace do not lead to failure.
  2387. ac_old_val_w=`echo x $ac_old_val`
  2388. ac_new_val_w=`echo x $ac_new_val`
  2389. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2391. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2392. ac_cache_corrupted=:
  2393. else
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2395. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2396. eval $ac_var=\$ac_old_val
  2397. fi
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2399. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2401. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2402. fi;;
  2403. esac
  2404. # Pass precious variables to config.status.
  2405. if test "$ac_new_set" = set; then
  2406. case $ac_new_val in
  2407. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2408. *) ac_arg=$ac_var=$ac_new_val ;;
  2409. esac
  2410. case " $ac_configure_args " in
  2411. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2412. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2413. esac
  2414. fi
  2415. done
  2416. if $ac_cache_corrupted; then
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2418. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2420. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2421. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2422. fi
  2423. ## -------------------- ##
  2424. ## Main body of script. ##
  2425. ## -------------------- ##
  2426. ac_ext=c
  2427. ac_cpp='$CPP $CPPFLAGS'
  2428. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2429. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2430. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2431. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2432. ac_aux_dir=
  2433. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2434. if test -f "$ac_dir/install-sh"; then
  2435. ac_aux_dir=$ac_dir
  2436. ac_install_sh="$ac_aux_dir/install-sh -c"
  2437. break
  2438. elif test -f "$ac_dir/install.sh"; then
  2439. ac_aux_dir=$ac_dir
  2440. ac_install_sh="$ac_aux_dir/install.sh -c"
  2441. break
  2442. elif test -f "$ac_dir/shtool"; then
  2443. ac_aux_dir=$ac_dir
  2444. ac_install_sh="$ac_aux_dir/shtool install -c"
  2445. break
  2446. fi
  2447. done
  2448. if test -z "$ac_aux_dir"; then
  2449. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2450. fi
  2451. # These three variables are undocumented and unsupported,
  2452. # and are intended to be withdrawn in a future Autoconf release.
  2453. # They can cause serious problems if a builder's source tree is in a directory
  2454. # whose full name contains unusual characters.
  2455. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2456. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2457. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2458. orig_CFLAGS="$CFLAGS"
  2459. #
  2460. # Making releases:
  2461. # Edit include/SDL_version.h and change the version, then:
  2462. # SDL_MICRO_VERSION += 1;
  2463. # SDL_INTERFACE_AGE += 1;
  2464. # SDL_BINARY_AGE += 1;
  2465. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2466. # if backwards compatibility has been broken,
  2467. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2468. #
  2469. SDL_MAJOR_VERSION=2
  2470. SDL_MINOR_VERSION=0
  2471. SDL_MICRO_VERSION=5
  2472. SDL_INTERFACE_AGE=0
  2473. SDL_BINARY_AGE=5
  2474. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2475. # libtool versioning
  2476. case `pwd` in
  2477. *\ * | *\ *)
  2478. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2479. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2480. esac
  2481. macro_version='2.4.2'
  2482. macro_revision='1.3337'
  2483. ltmain="$ac_aux_dir/ltmain.sh"
  2484. # Make sure we can run config.sub.
  2485. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2486. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2488. $as_echo_n "checking build system type... " >&6; }
  2489. if ${ac_cv_build+:} false; then :
  2490. $as_echo_n "(cached) " >&6
  2491. else
  2492. ac_build_alias=$build_alias
  2493. test "x$ac_build_alias" = x &&
  2494. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2495. test "x$ac_build_alias" = x &&
  2496. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2497. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2498. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2499. fi
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2501. $as_echo "$ac_cv_build" >&6; }
  2502. case $ac_cv_build in
  2503. *-*-*) ;;
  2504. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2505. esac
  2506. build=$ac_cv_build
  2507. ac_save_IFS=$IFS; IFS='-'
  2508. set x $ac_cv_build
  2509. shift
  2510. build_cpu=$1
  2511. build_vendor=$2
  2512. shift; shift
  2513. # Remember, the first character of IFS is used to create $*,
  2514. # except with old shells:
  2515. build_os=$*
  2516. IFS=$ac_save_IFS
  2517. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2519. $as_echo_n "checking host system type... " >&6; }
  2520. if ${ac_cv_host+:} false; then :
  2521. $as_echo_n "(cached) " >&6
  2522. else
  2523. if test "x$host_alias" = x; then
  2524. ac_cv_host=$ac_cv_build
  2525. else
  2526. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2527. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2528. fi
  2529. fi
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2531. $as_echo "$ac_cv_host" >&6; }
  2532. case $ac_cv_host in
  2533. *-*-*) ;;
  2534. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2535. esac
  2536. host=$ac_cv_host
  2537. ac_save_IFS=$IFS; IFS='-'
  2538. set x $ac_cv_host
  2539. shift
  2540. host_cpu=$1
  2541. host_vendor=$2
  2542. shift; shift
  2543. # Remember, the first character of IFS is used to create $*,
  2544. # except with old shells:
  2545. host_os=$*
  2546. IFS=$ac_save_IFS
  2547. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2548. # Backslashify metacharacters that are still active within
  2549. # double-quoted strings.
  2550. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2551. # Same as above, but do not quote variable references.
  2552. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2553. # Sed substitution to delay expansion of an escaped shell variable in a
  2554. # double_quote_subst'ed string.
  2555. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2556. # Sed substitution to delay expansion of an escaped single quote.
  2557. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2558. # Sed substitution to avoid accidental globbing in evaled expressions
  2559. no_glob_subst='s/\*/\\\*/g'
  2560. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2561. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2562. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2564. $as_echo_n "checking how to print strings... " >&6; }
  2565. # Test print first, because it will be a builtin if present.
  2566. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2567. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2568. ECHO='print -r --'
  2569. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2570. ECHO='printf %s\n'
  2571. else
  2572. # Use this function as a fallback that always works.
  2573. func_fallback_echo ()
  2574. {
  2575. eval 'cat <<_LTECHO_EOF
  2576. $1
  2577. _LTECHO_EOF'
  2578. }
  2579. ECHO='func_fallback_echo'
  2580. fi
  2581. # func_echo_all arg...
  2582. # Invoke $ECHO with all args, space-separated.
  2583. func_echo_all ()
  2584. {
  2585. $ECHO ""
  2586. }
  2587. case "$ECHO" in
  2588. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2589. $as_echo "printf" >&6; } ;;
  2590. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2591. $as_echo "print -r" >&6; } ;;
  2592. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2593. $as_echo "cat" >&6; } ;;
  2594. esac
  2595. ac_ext=c
  2596. ac_cpp='$CPP $CPPFLAGS'
  2597. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2598. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2599. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2600. if test -n "$ac_tool_prefix"; then
  2601. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2602. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2604. $as_echo_n "checking for $ac_word... " >&6; }
  2605. if ${ac_cv_prog_CC+:} false; then :
  2606. $as_echo_n "(cached) " >&6
  2607. else
  2608. if test -n "$CC"; then
  2609. ac_cv_prog_CC="$CC" # Let the user override the test.
  2610. else
  2611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2612. for as_dir in $PATH
  2613. do
  2614. IFS=$as_save_IFS
  2615. test -z "$as_dir" && as_dir=.
  2616. for ac_exec_ext in '' $ac_executable_extensions; do
  2617. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2618. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2620. break 2
  2621. fi
  2622. done
  2623. done
  2624. IFS=$as_save_IFS
  2625. fi
  2626. fi
  2627. CC=$ac_cv_prog_CC
  2628. if test -n "$CC"; then
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2630. $as_echo "$CC" >&6; }
  2631. else
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2633. $as_echo "no" >&6; }
  2634. fi
  2635. fi
  2636. if test -z "$ac_cv_prog_CC"; then
  2637. ac_ct_CC=$CC
  2638. # Extract the first word of "gcc", so it can be a program name with args.
  2639. set dummy gcc; ac_word=$2
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2641. $as_echo_n "checking for $ac_word... " >&6; }
  2642. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2643. $as_echo_n "(cached) " >&6
  2644. else
  2645. if test -n "$ac_ct_CC"; then
  2646. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2647. else
  2648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2649. for as_dir in $PATH
  2650. do
  2651. IFS=$as_save_IFS
  2652. test -z "$as_dir" && as_dir=.
  2653. for ac_exec_ext in '' $ac_executable_extensions; do
  2654. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2655. ac_cv_prog_ac_ct_CC="gcc"
  2656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2657. break 2
  2658. fi
  2659. done
  2660. done
  2661. IFS=$as_save_IFS
  2662. fi
  2663. fi
  2664. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2665. if test -n "$ac_ct_CC"; then
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2667. $as_echo "$ac_ct_CC" >&6; }
  2668. else
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2670. $as_echo "no" >&6; }
  2671. fi
  2672. if test "x$ac_ct_CC" = x; then
  2673. CC=""
  2674. else
  2675. case $cross_compiling:$ac_tool_warned in
  2676. yes:)
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2678. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2679. ac_tool_warned=yes ;;
  2680. esac
  2681. CC=$ac_ct_CC
  2682. fi
  2683. else
  2684. CC="$ac_cv_prog_CC"
  2685. fi
  2686. if test -z "$CC"; then
  2687. if test -n "$ac_tool_prefix"; then
  2688. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2689. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2691. $as_echo_n "checking for $ac_word... " >&6; }
  2692. if ${ac_cv_prog_CC+:} false; then :
  2693. $as_echo_n "(cached) " >&6
  2694. else
  2695. if test -n "$CC"; then
  2696. ac_cv_prog_CC="$CC" # Let the user override the test.
  2697. else
  2698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2699. for as_dir in $PATH
  2700. do
  2701. IFS=$as_save_IFS
  2702. test -z "$as_dir" && as_dir=.
  2703. for ac_exec_ext in '' $ac_executable_extensions; do
  2704. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2705. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2707. break 2
  2708. fi
  2709. done
  2710. done
  2711. IFS=$as_save_IFS
  2712. fi
  2713. fi
  2714. CC=$ac_cv_prog_CC
  2715. if test -n "$CC"; then
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2717. $as_echo "$CC" >&6; }
  2718. else
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2720. $as_echo "no" >&6; }
  2721. fi
  2722. fi
  2723. fi
  2724. if test -z "$CC"; then
  2725. # Extract the first word of "cc", so it can be a program name with args.
  2726. set dummy cc; ac_word=$2
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2728. $as_echo_n "checking for $ac_word... " >&6; }
  2729. if ${ac_cv_prog_CC+:} false; then :
  2730. $as_echo_n "(cached) " >&6
  2731. else
  2732. if test -n "$CC"; then
  2733. ac_cv_prog_CC="$CC" # Let the user override the test.
  2734. else
  2735. ac_prog_rejected=no
  2736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2737. for as_dir in $PATH
  2738. do
  2739. IFS=$as_save_IFS
  2740. test -z "$as_dir" && as_dir=.
  2741. for ac_exec_ext in '' $ac_executable_extensions; do
  2742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2743. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2744. ac_prog_rejected=yes
  2745. continue
  2746. fi
  2747. ac_cv_prog_CC="cc"
  2748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2749. break 2
  2750. fi
  2751. done
  2752. done
  2753. IFS=$as_save_IFS
  2754. if test $ac_prog_rejected = yes; then
  2755. # We found a bogon in the path, so make sure we never use it.
  2756. set dummy $ac_cv_prog_CC
  2757. shift
  2758. if test $# != 0; then
  2759. # We chose a different compiler from the bogus one.
  2760. # However, it has the same basename, so the bogon will be chosen
  2761. # first if we set CC to just the basename; use the full file name.
  2762. shift
  2763. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2764. fi
  2765. fi
  2766. fi
  2767. fi
  2768. CC=$ac_cv_prog_CC
  2769. if test -n "$CC"; then
  2770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2771. $as_echo "$CC" >&6; }
  2772. else
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2774. $as_echo "no" >&6; }
  2775. fi
  2776. fi
  2777. if test -z "$CC"; then
  2778. if test -n "$ac_tool_prefix"; then
  2779. for ac_prog in cl.exe
  2780. do
  2781. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2782. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2784. $as_echo_n "checking for $ac_word... " >&6; }
  2785. if ${ac_cv_prog_CC+:} false; then :
  2786. $as_echo_n "(cached) " >&6
  2787. else
  2788. if test -n "$CC"; then
  2789. ac_cv_prog_CC="$CC" # Let the user override the test.
  2790. else
  2791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2792. for as_dir in $PATH
  2793. do
  2794. IFS=$as_save_IFS
  2795. test -z "$as_dir" && as_dir=.
  2796. for ac_exec_ext in '' $ac_executable_extensions; do
  2797. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2798. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2800. break 2
  2801. fi
  2802. done
  2803. done
  2804. IFS=$as_save_IFS
  2805. fi
  2806. fi
  2807. CC=$ac_cv_prog_CC
  2808. if test -n "$CC"; then
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2810. $as_echo "$CC" >&6; }
  2811. else
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2813. $as_echo "no" >&6; }
  2814. fi
  2815. test -n "$CC" && break
  2816. done
  2817. fi
  2818. if test -z "$CC"; then
  2819. ac_ct_CC=$CC
  2820. for ac_prog in cl.exe
  2821. do
  2822. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2823. set dummy $ac_prog; ac_word=$2
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2825. $as_echo_n "checking for $ac_word... " >&6; }
  2826. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2827. $as_echo_n "(cached) " >&6
  2828. else
  2829. if test -n "$ac_ct_CC"; then
  2830. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2831. else
  2832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2833. for as_dir in $PATH
  2834. do
  2835. IFS=$as_save_IFS
  2836. test -z "$as_dir" && as_dir=.
  2837. for ac_exec_ext in '' $ac_executable_extensions; do
  2838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2839. ac_cv_prog_ac_ct_CC="$ac_prog"
  2840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2841. break 2
  2842. fi
  2843. done
  2844. done
  2845. IFS=$as_save_IFS
  2846. fi
  2847. fi
  2848. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2849. if test -n "$ac_ct_CC"; then
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2851. $as_echo "$ac_ct_CC" >&6; }
  2852. else
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2854. $as_echo "no" >&6; }
  2855. fi
  2856. test -n "$ac_ct_CC" && break
  2857. done
  2858. if test "x$ac_ct_CC" = x; then
  2859. CC=""
  2860. else
  2861. case $cross_compiling:$ac_tool_warned in
  2862. yes:)
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2864. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2865. ac_tool_warned=yes ;;
  2866. esac
  2867. CC=$ac_ct_CC
  2868. fi
  2869. fi
  2870. fi
  2871. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2872. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2873. as_fn_error $? "no acceptable C compiler found in \$PATH
  2874. See \`config.log' for more details" "$LINENO" 5; }
  2875. # Provide some information about the compiler.
  2876. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2877. set X $ac_compile
  2878. ac_compiler=$2
  2879. for ac_option in --version -v -V -qversion; do
  2880. { { ac_try="$ac_compiler $ac_option >&5"
  2881. case "(($ac_try" in
  2882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2883. *) ac_try_echo=$ac_try;;
  2884. esac
  2885. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2886. $as_echo "$ac_try_echo"; } >&5
  2887. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2888. ac_status=$?
  2889. if test -s conftest.err; then
  2890. sed '10a\
  2891. ... rest of stderr output deleted ...
  2892. 10q' conftest.err >conftest.er1
  2893. cat conftest.er1 >&5
  2894. fi
  2895. rm -f conftest.er1 conftest.err
  2896. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2897. test $ac_status = 0; }
  2898. done
  2899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2900. /* end confdefs.h. */
  2901. int
  2902. main ()
  2903. {
  2904. ;
  2905. return 0;
  2906. }
  2907. _ACEOF
  2908. ac_clean_files_save=$ac_clean_files
  2909. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2910. # Try to create an executable without -o first, disregard a.out.
  2911. # It will help us diagnose broken compilers, and finding out an intuition
  2912. # of exeext.
  2913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2914. $as_echo_n "checking whether the C compiler works... " >&6; }
  2915. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2916. # The possible output files:
  2917. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2918. ac_rmfiles=
  2919. for ac_file in $ac_files
  2920. do
  2921. case $ac_file in
  2922. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2923. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2924. esac
  2925. done
  2926. rm -f $ac_rmfiles
  2927. if { { ac_try="$ac_link_default"
  2928. case "(($ac_try" in
  2929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2930. *) ac_try_echo=$ac_try;;
  2931. esac
  2932. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2933. $as_echo "$ac_try_echo"; } >&5
  2934. (eval "$ac_link_default") 2>&5
  2935. ac_status=$?
  2936. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2937. test $ac_status = 0; }; then :
  2938. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2939. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2940. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2941. # so that the user can short-circuit this test for compilers unknown to
  2942. # Autoconf.
  2943. for ac_file in $ac_files ''
  2944. do
  2945. test -f "$ac_file" || continue
  2946. case $ac_file in
  2947. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2948. ;;
  2949. [ab].out )
  2950. # We found the default executable, but exeext='' is most
  2951. # certainly right.
  2952. break;;
  2953. *.* )
  2954. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2955. then :; else
  2956. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2957. fi
  2958. # We set ac_cv_exeext here because the later test for it is not
  2959. # safe: cross compilers may not add the suffix if given an `-o'
  2960. # argument, so we may need to know it at that point already.
  2961. # Even if this section looks crufty: it has the advantage of
  2962. # actually working.
  2963. break;;
  2964. * )
  2965. break;;
  2966. esac
  2967. done
  2968. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2969. else
  2970. ac_file=''
  2971. fi
  2972. if test -z "$ac_file"; then :
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2974. $as_echo "no" >&6; }
  2975. $as_echo "$as_me: failed program was:" >&5
  2976. sed 's/^/| /' conftest.$ac_ext >&5
  2977. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2978. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2979. as_fn_error 77 "C compiler cannot create executables
  2980. See \`config.log' for more details" "$LINENO" 5; }
  2981. else
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2983. $as_echo "yes" >&6; }
  2984. fi
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2986. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2988. $as_echo "$ac_file" >&6; }
  2989. ac_exeext=$ac_cv_exeext
  2990. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2991. ac_clean_files=$ac_clean_files_save
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2993. $as_echo_n "checking for suffix of executables... " >&6; }
  2994. if { { ac_try="$ac_link"
  2995. case "(($ac_try" in
  2996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2997. *) ac_try_echo=$ac_try;;
  2998. esac
  2999. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3000. $as_echo "$ac_try_echo"; } >&5
  3001. (eval "$ac_link") 2>&5
  3002. ac_status=$?
  3003. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3004. test $ac_status = 0; }; then :
  3005. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3006. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3007. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3008. # `rm'.
  3009. for ac_file in conftest.exe conftest conftest.*; do
  3010. test -f "$ac_file" || continue
  3011. case $ac_file in
  3012. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3013. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3014. break;;
  3015. * ) break;;
  3016. esac
  3017. done
  3018. else
  3019. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3020. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3021. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3022. See \`config.log' for more details" "$LINENO" 5; }
  3023. fi
  3024. rm -f conftest conftest$ac_cv_exeext
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3026. $as_echo "$ac_cv_exeext" >&6; }
  3027. rm -f conftest.$ac_ext
  3028. EXEEXT=$ac_cv_exeext
  3029. ac_exeext=$EXEEXT
  3030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3031. /* end confdefs.h. */
  3032. #include <stdio.h>
  3033. int
  3034. main ()
  3035. {
  3036. FILE *f = fopen ("conftest.out", "w");
  3037. return ferror (f) || fclose (f) != 0;
  3038. ;
  3039. return 0;
  3040. }
  3041. _ACEOF
  3042. ac_clean_files="$ac_clean_files conftest.out"
  3043. # Check that the compiler produces executables we can run. If not, either
  3044. # the compiler is broken, or we cross compile.
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3046. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3047. if test "$cross_compiling" != yes; then
  3048. { { ac_try="$ac_link"
  3049. case "(($ac_try" in
  3050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3051. *) ac_try_echo=$ac_try;;
  3052. esac
  3053. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3054. $as_echo "$ac_try_echo"; } >&5
  3055. (eval "$ac_link") 2>&5
  3056. ac_status=$?
  3057. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3058. test $ac_status = 0; }
  3059. if { ac_try='./conftest$ac_cv_exeext'
  3060. { { case "(($ac_try" in
  3061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3062. *) ac_try_echo=$ac_try;;
  3063. esac
  3064. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3065. $as_echo "$ac_try_echo"; } >&5
  3066. (eval "$ac_try") 2>&5
  3067. ac_status=$?
  3068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3069. test $ac_status = 0; }; }; then
  3070. cross_compiling=no
  3071. else
  3072. if test "$cross_compiling" = maybe; then
  3073. cross_compiling=yes
  3074. else
  3075. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3076. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3077. as_fn_error $? "cannot run C compiled programs.
  3078. If you meant to cross compile, use \`--host'.
  3079. See \`config.log' for more details" "$LINENO" 5; }
  3080. fi
  3081. fi
  3082. fi
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3084. $as_echo "$cross_compiling" >&6; }
  3085. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3086. ac_clean_files=$ac_clean_files_save
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3088. $as_echo_n "checking for suffix of object files... " >&6; }
  3089. if ${ac_cv_objext+:} false; then :
  3090. $as_echo_n "(cached) " >&6
  3091. else
  3092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3093. /* end confdefs.h. */
  3094. int
  3095. main ()
  3096. {
  3097. ;
  3098. return 0;
  3099. }
  3100. _ACEOF
  3101. rm -f conftest.o conftest.obj
  3102. if { { ac_try="$ac_compile"
  3103. case "(($ac_try" in
  3104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3105. *) ac_try_echo=$ac_try;;
  3106. esac
  3107. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3108. $as_echo "$ac_try_echo"; } >&5
  3109. (eval "$ac_compile") 2>&5
  3110. ac_status=$?
  3111. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3112. test $ac_status = 0; }; then :
  3113. for ac_file in conftest.o conftest.obj conftest.*; do
  3114. test -f "$ac_file" || continue;
  3115. case $ac_file in
  3116. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3117. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3118. break;;
  3119. esac
  3120. done
  3121. else
  3122. $as_echo "$as_me: failed program was:" >&5
  3123. sed 's/^/| /' conftest.$ac_ext >&5
  3124. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3125. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3126. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3127. See \`config.log' for more details" "$LINENO" 5; }
  3128. fi
  3129. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3130. fi
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3132. $as_echo "$ac_cv_objext" >&6; }
  3133. OBJEXT=$ac_cv_objext
  3134. ac_objext=$OBJEXT
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3136. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3137. if ${ac_cv_c_compiler_gnu+:} false; then :
  3138. $as_echo_n "(cached) " >&6
  3139. else
  3140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3141. /* end confdefs.h. */
  3142. int
  3143. main ()
  3144. {
  3145. #ifndef __GNUC__
  3146. choke me
  3147. #endif
  3148. ;
  3149. return 0;
  3150. }
  3151. _ACEOF
  3152. if ac_fn_c_try_compile "$LINENO"; then :
  3153. ac_compiler_gnu=yes
  3154. else
  3155. ac_compiler_gnu=no
  3156. fi
  3157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3158. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3159. fi
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3161. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3162. if test $ac_compiler_gnu = yes; then
  3163. GCC=yes
  3164. else
  3165. GCC=
  3166. fi
  3167. ac_test_CFLAGS=${CFLAGS+set}
  3168. ac_save_CFLAGS=$CFLAGS
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3170. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3171. if ${ac_cv_prog_cc_g+:} false; then :
  3172. $as_echo_n "(cached) " >&6
  3173. else
  3174. ac_save_c_werror_flag=$ac_c_werror_flag
  3175. ac_c_werror_flag=yes
  3176. ac_cv_prog_cc_g=no
  3177. CFLAGS="-g"
  3178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3179. /* end confdefs.h. */
  3180. int
  3181. main ()
  3182. {
  3183. ;
  3184. return 0;
  3185. }
  3186. _ACEOF
  3187. if ac_fn_c_try_compile "$LINENO"; then :
  3188. ac_cv_prog_cc_g=yes
  3189. else
  3190. CFLAGS=""
  3191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3192. /* end confdefs.h. */
  3193. int
  3194. main ()
  3195. {
  3196. ;
  3197. return 0;
  3198. }
  3199. _ACEOF
  3200. if ac_fn_c_try_compile "$LINENO"; then :
  3201. else
  3202. ac_c_werror_flag=$ac_save_c_werror_flag
  3203. CFLAGS="-g"
  3204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3205. /* end confdefs.h. */
  3206. int
  3207. main ()
  3208. {
  3209. ;
  3210. return 0;
  3211. }
  3212. _ACEOF
  3213. if ac_fn_c_try_compile "$LINENO"; then :
  3214. ac_cv_prog_cc_g=yes
  3215. fi
  3216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_c_werror_flag=$ac_save_c_werror_flag
  3222. fi
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3224. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3225. if test "$ac_test_CFLAGS" = set; then
  3226. CFLAGS=$ac_save_CFLAGS
  3227. elif test $ac_cv_prog_cc_g = yes; then
  3228. if test "$GCC" = yes; then
  3229. CFLAGS="-g -O2"
  3230. else
  3231. CFLAGS="-g"
  3232. fi
  3233. else
  3234. if test "$GCC" = yes; then
  3235. CFLAGS="-O2"
  3236. else
  3237. CFLAGS=
  3238. fi
  3239. fi
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3241. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3242. if ${ac_cv_prog_cc_c89+:} false; then :
  3243. $as_echo_n "(cached) " >&6
  3244. else
  3245. ac_cv_prog_cc_c89=no
  3246. ac_save_CC=$CC
  3247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3248. /* end confdefs.h. */
  3249. #include <stdarg.h>
  3250. #include <stdio.h>
  3251. struct stat;
  3252. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3253. struct buf { int x; };
  3254. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3255. static char *e (p, i)
  3256. char **p;
  3257. int i;
  3258. {
  3259. return p[i];
  3260. }
  3261. static char *f (char * (*g) (char **, int), char **p, ...)
  3262. {
  3263. char *s;
  3264. va_list v;
  3265. va_start (v,p);
  3266. s = g (p, va_arg (v,int));
  3267. va_end (v);
  3268. return s;
  3269. }
  3270. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3271. function prototypes and stuff, but not '\xHH' hex character constants.
  3272. These don't provoke an error unfortunately, instead are silently treated
  3273. as 'x'. The following induces an error, until -std is added to get
  3274. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3275. array size at least. It's necessary to write '\x00'==0 to get something
  3276. that's true only with -std. */
  3277. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3278. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3279. inside strings and character constants. */
  3280. #define FOO(x) 'x'
  3281. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3282. int test (int i, double x);
  3283. struct s1 {int (*f) (int a);};
  3284. struct s2 {int (*f) (double a);};
  3285. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3286. int argc;
  3287. char **argv;
  3288. int
  3289. main ()
  3290. {
  3291. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3292. ;
  3293. return 0;
  3294. }
  3295. _ACEOF
  3296. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3297. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3298. do
  3299. CC="$ac_save_CC $ac_arg"
  3300. if ac_fn_c_try_compile "$LINENO"; then :
  3301. ac_cv_prog_cc_c89=$ac_arg
  3302. fi
  3303. rm -f core conftest.err conftest.$ac_objext
  3304. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3305. done
  3306. rm -f conftest.$ac_ext
  3307. CC=$ac_save_CC
  3308. fi
  3309. # AC_CACHE_VAL
  3310. case "x$ac_cv_prog_cc_c89" in
  3311. x)
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3313. $as_echo "none needed" >&6; } ;;
  3314. xno)
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3316. $as_echo "unsupported" >&6; } ;;
  3317. *)
  3318. CC="$CC $ac_cv_prog_cc_c89"
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3320. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3321. esac
  3322. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3323. fi
  3324. ac_ext=c
  3325. ac_cpp='$CPP $CPPFLAGS'
  3326. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3327. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3328. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3330. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3331. if ${ac_cv_path_SED+:} false; then :
  3332. $as_echo_n "(cached) " >&6
  3333. else
  3334. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3335. for ac_i in 1 2 3 4 5 6 7; do
  3336. ac_script="$ac_script$as_nl$ac_script"
  3337. done
  3338. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3339. { ac_script=; unset ac_script;}
  3340. if test -z "$SED"; then
  3341. ac_path_SED_found=false
  3342. # Loop through the user's path and test for each of PROGNAME-LIST
  3343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3344. for as_dir in $PATH
  3345. do
  3346. IFS=$as_save_IFS
  3347. test -z "$as_dir" && as_dir=.
  3348. for ac_prog in sed gsed; do
  3349. for ac_exec_ext in '' $ac_executable_extensions; do
  3350. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3351. as_fn_executable_p "$ac_path_SED" || continue
  3352. # Check for GNU ac_path_SED and select it if it is found.
  3353. # Check for GNU $ac_path_SED
  3354. case `"$ac_path_SED" --version 2>&1` in
  3355. *GNU*)
  3356. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3357. *)
  3358. ac_count=0
  3359. $as_echo_n 0123456789 >"conftest.in"
  3360. while :
  3361. do
  3362. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3363. mv "conftest.tmp" "conftest.in"
  3364. cp "conftest.in" "conftest.nl"
  3365. $as_echo '' >> "conftest.nl"
  3366. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3367. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3368. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3369. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3370. # Best one so far, save it but keep looking for a better one
  3371. ac_cv_path_SED="$ac_path_SED"
  3372. ac_path_SED_max=$ac_count
  3373. fi
  3374. # 10*(2^10) chars as input seems more than enough
  3375. test $ac_count -gt 10 && break
  3376. done
  3377. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3378. esac
  3379. $ac_path_SED_found && break 3
  3380. done
  3381. done
  3382. done
  3383. IFS=$as_save_IFS
  3384. if test -z "$ac_cv_path_SED"; then
  3385. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3386. fi
  3387. else
  3388. ac_cv_path_SED=$SED
  3389. fi
  3390. fi
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3392. $as_echo "$ac_cv_path_SED" >&6; }
  3393. SED="$ac_cv_path_SED"
  3394. rm -f conftest.sed
  3395. test -z "$SED" && SED=sed
  3396. Xsed="$SED -e 1s/^X//"
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3398. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3399. if ${ac_cv_path_GREP+:} false; then :
  3400. $as_echo_n "(cached) " >&6
  3401. else
  3402. if test -z "$GREP"; then
  3403. ac_path_GREP_found=false
  3404. # Loop through the user's path and test for each of PROGNAME-LIST
  3405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3406. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3407. do
  3408. IFS=$as_save_IFS
  3409. test -z "$as_dir" && as_dir=.
  3410. for ac_prog in grep ggrep; do
  3411. for ac_exec_ext in '' $ac_executable_extensions; do
  3412. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3413. as_fn_executable_p "$ac_path_GREP" || continue
  3414. # Check for GNU ac_path_GREP and select it if it is found.
  3415. # Check for GNU $ac_path_GREP
  3416. case `"$ac_path_GREP" --version 2>&1` in
  3417. *GNU*)
  3418. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3419. *)
  3420. ac_count=0
  3421. $as_echo_n 0123456789 >"conftest.in"
  3422. while :
  3423. do
  3424. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3425. mv "conftest.tmp" "conftest.in"
  3426. cp "conftest.in" "conftest.nl"
  3427. $as_echo 'GREP' >> "conftest.nl"
  3428. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3429. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3430. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3431. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3432. # Best one so far, save it but keep looking for a better one
  3433. ac_cv_path_GREP="$ac_path_GREP"
  3434. ac_path_GREP_max=$ac_count
  3435. fi
  3436. # 10*(2^10) chars as input seems more than enough
  3437. test $ac_count -gt 10 && break
  3438. done
  3439. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3440. esac
  3441. $ac_path_GREP_found && break 3
  3442. done
  3443. done
  3444. done
  3445. IFS=$as_save_IFS
  3446. if test -z "$ac_cv_path_GREP"; then
  3447. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3448. fi
  3449. else
  3450. ac_cv_path_GREP=$GREP
  3451. fi
  3452. fi
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3454. $as_echo "$ac_cv_path_GREP" >&6; }
  3455. GREP="$ac_cv_path_GREP"
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3457. $as_echo_n "checking for egrep... " >&6; }
  3458. if ${ac_cv_path_EGREP+:} false; then :
  3459. $as_echo_n "(cached) " >&6
  3460. else
  3461. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3462. then ac_cv_path_EGREP="$GREP -E"
  3463. else
  3464. if test -z "$EGREP"; then
  3465. ac_path_EGREP_found=false
  3466. # Loop through the user's path and test for each of PROGNAME-LIST
  3467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3468. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3469. do
  3470. IFS=$as_save_IFS
  3471. test -z "$as_dir" && as_dir=.
  3472. for ac_prog in egrep; do
  3473. for ac_exec_ext in '' $ac_executable_extensions; do
  3474. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3475. as_fn_executable_p "$ac_path_EGREP" || continue
  3476. # Check for GNU ac_path_EGREP and select it if it is found.
  3477. # Check for GNU $ac_path_EGREP
  3478. case `"$ac_path_EGREP" --version 2>&1` in
  3479. *GNU*)
  3480. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3481. *)
  3482. ac_count=0
  3483. $as_echo_n 0123456789 >"conftest.in"
  3484. while :
  3485. do
  3486. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3487. mv "conftest.tmp" "conftest.in"
  3488. cp "conftest.in" "conftest.nl"
  3489. $as_echo 'EGREP' >> "conftest.nl"
  3490. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3491. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3492. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3493. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3494. # Best one so far, save it but keep looking for a better one
  3495. ac_cv_path_EGREP="$ac_path_EGREP"
  3496. ac_path_EGREP_max=$ac_count
  3497. fi
  3498. # 10*(2^10) chars as input seems more than enough
  3499. test $ac_count -gt 10 && break
  3500. done
  3501. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3502. esac
  3503. $ac_path_EGREP_found && break 3
  3504. done
  3505. done
  3506. done
  3507. IFS=$as_save_IFS
  3508. if test -z "$ac_cv_path_EGREP"; then
  3509. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3510. fi
  3511. else
  3512. ac_cv_path_EGREP=$EGREP
  3513. fi
  3514. fi
  3515. fi
  3516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3517. $as_echo "$ac_cv_path_EGREP" >&6; }
  3518. EGREP="$ac_cv_path_EGREP"
  3519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3520. $as_echo_n "checking for fgrep... " >&6; }
  3521. if ${ac_cv_path_FGREP+:} false; then :
  3522. $as_echo_n "(cached) " >&6
  3523. else
  3524. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3525. then ac_cv_path_FGREP="$GREP -F"
  3526. else
  3527. if test -z "$FGREP"; then
  3528. ac_path_FGREP_found=false
  3529. # Loop through the user's path and test for each of PROGNAME-LIST
  3530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3531. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3532. do
  3533. IFS=$as_save_IFS
  3534. test -z "$as_dir" && as_dir=.
  3535. for ac_prog in fgrep; do
  3536. for ac_exec_ext in '' $ac_executable_extensions; do
  3537. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3538. as_fn_executable_p "$ac_path_FGREP" || continue
  3539. # Check for GNU ac_path_FGREP and select it if it is found.
  3540. # Check for GNU $ac_path_FGREP
  3541. case `"$ac_path_FGREP" --version 2>&1` in
  3542. *GNU*)
  3543. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3544. *)
  3545. ac_count=0
  3546. $as_echo_n 0123456789 >"conftest.in"
  3547. while :
  3548. do
  3549. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3550. mv "conftest.tmp" "conftest.in"
  3551. cp "conftest.in" "conftest.nl"
  3552. $as_echo 'FGREP' >> "conftest.nl"
  3553. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3554. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3555. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3556. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3557. # Best one so far, save it but keep looking for a better one
  3558. ac_cv_path_FGREP="$ac_path_FGREP"
  3559. ac_path_FGREP_max=$ac_count
  3560. fi
  3561. # 10*(2^10) chars as input seems more than enough
  3562. test $ac_count -gt 10 && break
  3563. done
  3564. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3565. esac
  3566. $ac_path_FGREP_found && break 3
  3567. done
  3568. done
  3569. done
  3570. IFS=$as_save_IFS
  3571. if test -z "$ac_cv_path_FGREP"; then
  3572. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3573. fi
  3574. else
  3575. ac_cv_path_FGREP=$FGREP
  3576. fi
  3577. fi
  3578. fi
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3580. $as_echo "$ac_cv_path_FGREP" >&6; }
  3581. FGREP="$ac_cv_path_FGREP"
  3582. test -z "$GREP" && GREP=grep
  3583. # Check whether --with-gnu-ld was given.
  3584. if test "${with_gnu_ld+set}" = set; then :
  3585. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3586. else
  3587. with_gnu_ld=no
  3588. fi
  3589. ac_prog=ld
  3590. if test "$GCC" = yes; then
  3591. # Check if gcc -print-prog-name=ld gives a path.
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3593. $as_echo_n "checking for ld used by $CC... " >&6; }
  3594. case $host in
  3595. *-*-mingw*)
  3596. # gcc leaves a trailing carriage return which upsets mingw
  3597. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3598. *)
  3599. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3600. esac
  3601. case $ac_prog in
  3602. # Accept absolute paths.
  3603. [\\/]* | ?:[\\/]*)
  3604. re_direlt='/[^/][^/]*/\.\./'
  3605. # Canonicalize the pathname of ld
  3606. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3607. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3608. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3609. done
  3610. test -z "$LD" && LD="$ac_prog"
  3611. ;;
  3612. "")
  3613. # If it fails, then pretend we aren't using GCC.
  3614. ac_prog=ld
  3615. ;;
  3616. *)
  3617. # If it is relative, then search for the first ld in PATH.
  3618. with_gnu_ld=unknown
  3619. ;;
  3620. esac
  3621. elif test "$with_gnu_ld" = yes; then
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3623. $as_echo_n "checking for GNU ld... " >&6; }
  3624. else
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3626. $as_echo_n "checking for non-GNU ld... " >&6; }
  3627. fi
  3628. if ${lt_cv_path_LD+:} false; then :
  3629. $as_echo_n "(cached) " >&6
  3630. else
  3631. if test -z "$LD"; then
  3632. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3633. for ac_dir in $PATH; do
  3634. IFS="$lt_save_ifs"
  3635. test -z "$ac_dir" && ac_dir=.
  3636. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3637. lt_cv_path_LD="$ac_dir/$ac_prog"
  3638. # Check to see if the program is GNU ld. I'd rather use --version,
  3639. # but apparently some variants of GNU ld only accept -v.
  3640. # Break only if it was the GNU/non-GNU ld that we prefer.
  3641. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3642. *GNU* | *'with BFD'*)
  3643. test "$with_gnu_ld" != no && break
  3644. ;;
  3645. *)
  3646. test "$with_gnu_ld" != yes && break
  3647. ;;
  3648. esac
  3649. fi
  3650. done
  3651. IFS="$lt_save_ifs"
  3652. else
  3653. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3654. fi
  3655. fi
  3656. LD="$lt_cv_path_LD"
  3657. if test -n "$LD"; then
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3659. $as_echo "$LD" >&6; }
  3660. else
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3662. $as_echo "no" >&6; }
  3663. fi
  3664. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3666. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3667. if ${lt_cv_prog_gnu_ld+:} false; then :
  3668. $as_echo_n "(cached) " >&6
  3669. else
  3670. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3671. case `$LD -v 2>&1 </dev/null` in
  3672. *GNU* | *'with BFD'*)
  3673. lt_cv_prog_gnu_ld=yes
  3674. ;;
  3675. *)
  3676. lt_cv_prog_gnu_ld=no
  3677. ;;
  3678. esac
  3679. fi
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3681. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3682. with_gnu_ld=$lt_cv_prog_gnu_ld
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3684. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3685. if ${lt_cv_path_NM+:} false; then :
  3686. $as_echo_n "(cached) " >&6
  3687. else
  3688. if test -n "$NM"; then
  3689. # Let the user override the test.
  3690. lt_cv_path_NM="$NM"
  3691. else
  3692. lt_nm_to_check="${ac_tool_prefix}nm"
  3693. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3694. lt_nm_to_check="$lt_nm_to_check nm"
  3695. fi
  3696. for lt_tmp_nm in $lt_nm_to_check; do
  3697. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3698. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3699. IFS="$lt_save_ifs"
  3700. test -z "$ac_dir" && ac_dir=.
  3701. tmp_nm="$ac_dir/$lt_tmp_nm"
  3702. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3703. # Check to see if the nm accepts a BSD-compat flag.
  3704. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3705. # nm: unknown option "B" ignored
  3706. # Tru64's nm complains that /dev/null is an invalid object file
  3707. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3708. */dev/null* | *'Invalid file or object type'*)
  3709. lt_cv_path_NM="$tmp_nm -B"
  3710. break
  3711. ;;
  3712. *)
  3713. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3714. */dev/null*)
  3715. lt_cv_path_NM="$tmp_nm -p"
  3716. break
  3717. ;;
  3718. *)
  3719. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3720. continue # so that we can try to find one that supports BSD flags
  3721. ;;
  3722. esac
  3723. ;;
  3724. esac
  3725. fi
  3726. done
  3727. IFS="$lt_save_ifs"
  3728. done
  3729. : ${lt_cv_path_NM=no}
  3730. fi
  3731. fi
  3732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3733. $as_echo "$lt_cv_path_NM" >&6; }
  3734. if test "$lt_cv_path_NM" != "no"; then
  3735. NM="$lt_cv_path_NM"
  3736. else
  3737. # Didn't find any BSD compatible name lister, look for dumpbin.
  3738. if test -n "$DUMPBIN"; then :
  3739. # Let the user override the test.
  3740. else
  3741. if test -n "$ac_tool_prefix"; then
  3742. for ac_prog in dumpbin "link -dump"
  3743. do
  3744. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3745. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3747. $as_echo_n "checking for $ac_word... " >&6; }
  3748. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3749. $as_echo_n "(cached) " >&6
  3750. else
  3751. if test -n "$DUMPBIN"; then
  3752. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3753. else
  3754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3755. for as_dir in $PATH
  3756. do
  3757. IFS=$as_save_IFS
  3758. test -z "$as_dir" && as_dir=.
  3759. for ac_exec_ext in '' $ac_executable_extensions; do
  3760. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3761. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3763. break 2
  3764. fi
  3765. done
  3766. done
  3767. IFS=$as_save_IFS
  3768. fi
  3769. fi
  3770. DUMPBIN=$ac_cv_prog_DUMPBIN
  3771. if test -n "$DUMPBIN"; then
  3772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3773. $as_echo "$DUMPBIN" >&6; }
  3774. else
  3775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3776. $as_echo "no" >&6; }
  3777. fi
  3778. test -n "$DUMPBIN" && break
  3779. done
  3780. fi
  3781. if test -z "$DUMPBIN"; then
  3782. ac_ct_DUMPBIN=$DUMPBIN
  3783. for ac_prog in dumpbin "link -dump"
  3784. do
  3785. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3786. set dummy $ac_prog; ac_word=$2
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3788. $as_echo_n "checking for $ac_word... " >&6; }
  3789. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3790. $as_echo_n "(cached) " >&6
  3791. else
  3792. if test -n "$ac_ct_DUMPBIN"; then
  3793. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3794. else
  3795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3796. for as_dir in $PATH
  3797. do
  3798. IFS=$as_save_IFS
  3799. test -z "$as_dir" && as_dir=.
  3800. for ac_exec_ext in '' $ac_executable_extensions; do
  3801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3802. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3804. break 2
  3805. fi
  3806. done
  3807. done
  3808. IFS=$as_save_IFS
  3809. fi
  3810. fi
  3811. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3812. if test -n "$ac_ct_DUMPBIN"; then
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3814. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3815. else
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3817. $as_echo "no" >&6; }
  3818. fi
  3819. test -n "$ac_ct_DUMPBIN" && break
  3820. done
  3821. if test "x$ac_ct_DUMPBIN" = x; then
  3822. DUMPBIN=":"
  3823. else
  3824. case $cross_compiling:$ac_tool_warned in
  3825. yes:)
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3827. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3828. ac_tool_warned=yes ;;
  3829. esac
  3830. DUMPBIN=$ac_ct_DUMPBIN
  3831. fi
  3832. fi
  3833. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3834. *COFF*)
  3835. DUMPBIN="$DUMPBIN -symbols"
  3836. ;;
  3837. *)
  3838. DUMPBIN=:
  3839. ;;
  3840. esac
  3841. fi
  3842. if test "$DUMPBIN" != ":"; then
  3843. NM="$DUMPBIN"
  3844. fi
  3845. fi
  3846. test -z "$NM" && NM=nm
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3848. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3849. if ${lt_cv_nm_interface+:} false; then :
  3850. $as_echo_n "(cached) " >&6
  3851. else
  3852. lt_cv_nm_interface="BSD nm"
  3853. echo "int some_variable = 0;" > conftest.$ac_ext
  3854. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3855. (eval "$ac_compile" 2>conftest.err)
  3856. cat conftest.err >&5
  3857. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3858. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3859. cat conftest.err >&5
  3860. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3861. cat conftest.out >&5
  3862. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3863. lt_cv_nm_interface="MS dumpbin"
  3864. fi
  3865. rm -f conftest*
  3866. fi
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3868. $as_echo "$lt_cv_nm_interface" >&6; }
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3870. $as_echo_n "checking whether ln -s works... " >&6; }
  3871. LN_S=$as_ln_s
  3872. if test "$LN_S" = "ln -s"; then
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3874. $as_echo "yes" >&6; }
  3875. else
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3877. $as_echo "no, using $LN_S" >&6; }
  3878. fi
  3879. # find the maximum length of command line arguments
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3881. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3882. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3883. $as_echo_n "(cached) " >&6
  3884. else
  3885. i=0
  3886. teststring="ABCD"
  3887. case $build_os in
  3888. msdosdjgpp*)
  3889. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3890. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3891. # during glob expansion). Even if it were fixed, the result of this
  3892. # check would be larger than it should be.
  3893. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3894. ;;
  3895. gnu*)
  3896. # Under GNU Hurd, this test is not required because there is
  3897. # no limit to the length of command line arguments.
  3898. # Libtool will interpret -1 as no limit whatsoever
  3899. lt_cv_sys_max_cmd_len=-1;
  3900. ;;
  3901. cygwin* | mingw* | cegcc*)
  3902. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3903. # about 5 minutes as the teststring grows exponentially.
  3904. # Worse, since 9x/ME are not pre-emptively multitasking,
  3905. # you end up with a "frozen" computer, even though with patience
  3906. # the test eventually succeeds (with a max line length of 256k).
  3907. # Instead, let's just punt: use the minimum linelength reported by
  3908. # all of the supported platforms: 8192 (on NT/2K/XP).
  3909. lt_cv_sys_max_cmd_len=8192;
  3910. ;;
  3911. mint*)
  3912. # On MiNT this can take a long time and run out of memory.
  3913. lt_cv_sys_max_cmd_len=8192;
  3914. ;;
  3915. amigaos*)
  3916. # On AmigaOS with pdksh, this test takes hours, literally.
  3917. # So we just punt and use a minimum line length of 8192.
  3918. lt_cv_sys_max_cmd_len=8192;
  3919. ;;
  3920. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3921. # This has been around since 386BSD, at least. Likely further.
  3922. if test -x /sbin/sysctl; then
  3923. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3924. elif test -x /usr/sbin/sysctl; then
  3925. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3926. else
  3927. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3928. fi
  3929. # And add a safety zone
  3930. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3931. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3932. ;;
  3933. interix*)
  3934. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3935. lt_cv_sys_max_cmd_len=196608
  3936. ;;
  3937. os2*)
  3938. # The test takes a long time on OS/2.
  3939. lt_cv_sys_max_cmd_len=8192
  3940. ;;
  3941. osf*)
  3942. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3943. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3944. # nice to cause kernel panics so lets avoid the loop below.
  3945. # First set a reasonable default.
  3946. lt_cv_sys_max_cmd_len=16384
  3947. #
  3948. if test -x /sbin/sysconfig; then
  3949. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3950. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3951. esac
  3952. fi
  3953. ;;
  3954. sco3.2v5*)
  3955. lt_cv_sys_max_cmd_len=102400
  3956. ;;
  3957. sysv5* | sco5v6* | sysv4.2uw2*)
  3958. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3959. if test -n "$kargmax"; then
  3960. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3961. else
  3962. lt_cv_sys_max_cmd_len=32768
  3963. fi
  3964. ;;
  3965. *)
  3966. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3967. if test -n "$lt_cv_sys_max_cmd_len"; then
  3968. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3969. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3970. else
  3971. # Make teststring a little bigger before we do anything with it.
  3972. # a 1K string should be a reasonable start.
  3973. for i in 1 2 3 4 5 6 7 8 ; do
  3974. teststring=$teststring$teststring
  3975. done
  3976. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3977. # If test is not a shell built-in, we'll probably end up computing a
  3978. # maximum length that is only half of the actual maximum length, but
  3979. # we can't tell.
  3980. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3981. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3982. test $i != 17 # 1/2 MB should be enough
  3983. do
  3984. i=`expr $i + 1`
  3985. teststring=$teststring$teststring
  3986. done
  3987. # Only check the string length outside the loop.
  3988. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3989. teststring=
  3990. # Add a significant safety factor because C++ compilers can tack on
  3991. # massive amounts of additional arguments before passing them to the
  3992. # linker. It appears as though 1/2 is a usable value.
  3993. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3994. fi
  3995. ;;
  3996. esac
  3997. fi
  3998. if test -n $lt_cv_sys_max_cmd_len ; then
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4000. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4001. else
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4003. $as_echo "none" >&6; }
  4004. fi
  4005. max_cmd_len=$lt_cv_sys_max_cmd_len
  4006. : ${CP="cp -f"}
  4007. : ${MV="mv -f"}
  4008. : ${RM="rm -f"}
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4010. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4011. # Try some XSI features
  4012. xsi_shell=no
  4013. ( _lt_dummy="a/b/c"
  4014. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4015. = c,a/b,b/c, \
  4016. && eval 'test $(( 1 + 1 )) -eq 2 \
  4017. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4018. && xsi_shell=yes
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4020. $as_echo "$xsi_shell" >&6; }
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4022. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4023. lt_shell_append=no
  4024. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4025. >/dev/null 2>&1 \
  4026. && lt_shell_append=yes
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4028. $as_echo "$lt_shell_append" >&6; }
  4029. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4030. lt_unset=unset
  4031. else
  4032. lt_unset=false
  4033. fi
  4034. # test EBCDIC or ASCII
  4035. case `echo X|tr X '\101'` in
  4036. A) # ASCII based system
  4037. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4038. lt_SP2NL='tr \040 \012'
  4039. lt_NL2SP='tr \015\012 \040\040'
  4040. ;;
  4041. *) # EBCDIC based system
  4042. lt_SP2NL='tr \100 \n'
  4043. lt_NL2SP='tr \r\n \100\100'
  4044. ;;
  4045. esac
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4047. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4048. if ${lt_cv_to_host_file_cmd+:} false; then :
  4049. $as_echo_n "(cached) " >&6
  4050. else
  4051. case $host in
  4052. *-*-mingw* )
  4053. case $build in
  4054. *-*-mingw* ) # actually msys
  4055. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4056. ;;
  4057. *-*-cygwin* )
  4058. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4059. ;;
  4060. * ) # otherwise, assume *nix
  4061. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4062. ;;
  4063. esac
  4064. ;;
  4065. *-*-cygwin* )
  4066. case $build in
  4067. *-*-mingw* ) # actually msys
  4068. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4069. ;;
  4070. *-*-cygwin* )
  4071. lt_cv_to_host_file_cmd=func_convert_file_noop
  4072. ;;
  4073. * ) # otherwise, assume *nix
  4074. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4075. ;;
  4076. esac
  4077. ;;
  4078. * ) # unhandled hosts (and "normal" native builds)
  4079. lt_cv_to_host_file_cmd=func_convert_file_noop
  4080. ;;
  4081. esac
  4082. fi
  4083. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4085. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4087. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4088. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4089. $as_echo_n "(cached) " >&6
  4090. else
  4091. #assume ordinary cross tools, or native build.
  4092. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4093. case $host in
  4094. *-*-mingw* )
  4095. case $build in
  4096. *-*-mingw* ) # actually msys
  4097. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4098. ;;
  4099. esac
  4100. ;;
  4101. esac
  4102. fi
  4103. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4105. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4107. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4108. if ${lt_cv_ld_reload_flag+:} false; then :
  4109. $as_echo_n "(cached) " >&6
  4110. else
  4111. lt_cv_ld_reload_flag='-r'
  4112. fi
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4114. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4115. reload_flag=$lt_cv_ld_reload_flag
  4116. case $reload_flag in
  4117. "" | " "*) ;;
  4118. *) reload_flag=" $reload_flag" ;;
  4119. esac
  4120. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4121. case $host_os in
  4122. cygwin* | mingw* | pw32* | cegcc*)
  4123. if test "$GCC" != yes; then
  4124. reload_cmds=false
  4125. fi
  4126. ;;
  4127. darwin*)
  4128. if test "$GCC" = yes; then
  4129. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4130. else
  4131. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4132. fi
  4133. ;;
  4134. esac
  4135. if test -n "$ac_tool_prefix"; then
  4136. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4137. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4139. $as_echo_n "checking for $ac_word... " >&6; }
  4140. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4141. $as_echo_n "(cached) " >&6
  4142. else
  4143. if test -n "$OBJDUMP"; then
  4144. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4145. else
  4146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4147. for as_dir in $PATH
  4148. do
  4149. IFS=$as_save_IFS
  4150. test -z "$as_dir" && as_dir=.
  4151. for ac_exec_ext in '' $ac_executable_extensions; do
  4152. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4153. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4154. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4155. break 2
  4156. fi
  4157. done
  4158. done
  4159. IFS=$as_save_IFS
  4160. fi
  4161. fi
  4162. OBJDUMP=$ac_cv_prog_OBJDUMP
  4163. if test -n "$OBJDUMP"; then
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4165. $as_echo "$OBJDUMP" >&6; }
  4166. else
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4168. $as_echo "no" >&6; }
  4169. fi
  4170. fi
  4171. if test -z "$ac_cv_prog_OBJDUMP"; then
  4172. ac_ct_OBJDUMP=$OBJDUMP
  4173. # Extract the first word of "objdump", so it can be a program name with args.
  4174. set dummy objdump; ac_word=$2
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4176. $as_echo_n "checking for $ac_word... " >&6; }
  4177. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4178. $as_echo_n "(cached) " >&6
  4179. else
  4180. if test -n "$ac_ct_OBJDUMP"; then
  4181. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4182. else
  4183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4184. for as_dir in $PATH
  4185. do
  4186. IFS=$as_save_IFS
  4187. test -z "$as_dir" && as_dir=.
  4188. for ac_exec_ext in '' $ac_executable_extensions; do
  4189. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4190. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4191. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4192. break 2
  4193. fi
  4194. done
  4195. done
  4196. IFS=$as_save_IFS
  4197. fi
  4198. fi
  4199. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4200. if test -n "$ac_ct_OBJDUMP"; then
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4202. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4203. else
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4205. $as_echo "no" >&6; }
  4206. fi
  4207. if test "x$ac_ct_OBJDUMP" = x; then
  4208. OBJDUMP="false"
  4209. else
  4210. case $cross_compiling:$ac_tool_warned in
  4211. yes:)
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4213. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4214. ac_tool_warned=yes ;;
  4215. esac
  4216. OBJDUMP=$ac_ct_OBJDUMP
  4217. fi
  4218. else
  4219. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4220. fi
  4221. test -z "$OBJDUMP" && OBJDUMP=objdump
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4223. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4224. if ${lt_cv_deplibs_check_method+:} false; then :
  4225. $as_echo_n "(cached) " >&6
  4226. else
  4227. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4228. lt_cv_file_magic_test_file=
  4229. lt_cv_deplibs_check_method='unknown'
  4230. # Need to set the preceding variable on all platforms that support
  4231. # interlibrary dependencies.
  4232. # 'none' -- dependencies not supported.
  4233. # `unknown' -- same as none, but documents that we really don't know.
  4234. # 'pass_all' -- all dependencies passed with no checks.
  4235. # 'test_compile' -- check by making test program.
  4236. # 'file_magic [[regex]]' -- check by looking for files in library path
  4237. # which responds to the $file_magic_cmd with a given extended regex.
  4238. # If you have `file' or equivalent on your system and you're not sure
  4239. # whether `pass_all' will *always* work, you probably want this one.
  4240. case $host_os in
  4241. aix[4-9]*)
  4242. lt_cv_deplibs_check_method=pass_all
  4243. ;;
  4244. beos*)
  4245. lt_cv_deplibs_check_method=pass_all
  4246. ;;
  4247. bsdi[45]*)
  4248. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4249. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4250. lt_cv_file_magic_test_file=/shlib/libc.so
  4251. ;;
  4252. cygwin*)
  4253. # func_win32_libid is a shell function defined in ltmain.sh
  4254. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4255. lt_cv_file_magic_cmd='func_win32_libid'
  4256. lt_cv_deplibs_check_method=pass_all
  4257. ;;
  4258. mingw* | pw32*)
  4259. # Base MSYS/MinGW do not provide the 'file' command needed by
  4260. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4261. # unless we find 'file', for example because we are cross-compiling.
  4262. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4263. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4264. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4265. lt_cv_file_magic_cmd='func_win32_libid'
  4266. else
  4267. # Keep this pattern in sync with the one in func_win32_libid.
  4268. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4269. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4270. fi
  4271. lt_cv_deplibs_check_method=pass_all
  4272. ;;
  4273. cegcc*)
  4274. # use the weaker test based on 'objdump'. See mingw*.
  4275. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4276. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4277. ;;
  4278. darwin* | rhapsody*)
  4279. lt_cv_deplibs_check_method=pass_all
  4280. ;;
  4281. freebsd* | dragonfly*)
  4282. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4283. case $host_cpu in
  4284. i*86 )
  4285. # Not sure whether the presence of OpenBSD here was a mistake.
  4286. # Let's accept both of them until this is cleared up.
  4287. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4288. lt_cv_file_magic_cmd=/usr/bin/file
  4289. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4290. ;;
  4291. esac
  4292. else
  4293. lt_cv_deplibs_check_method=pass_all
  4294. fi
  4295. ;;
  4296. gnu*)
  4297. lt_cv_deplibs_check_method=pass_all
  4298. ;;
  4299. haiku*)
  4300. lt_cv_deplibs_check_method=pass_all
  4301. ;;
  4302. hpux10.20* | hpux11*)
  4303. lt_cv_file_magic_cmd=/usr/bin/file
  4304. case $host_cpu in
  4305. ia64*)
  4306. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4307. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4308. ;;
  4309. hppa*64*)
  4310. 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]'
  4311. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4312. ;;
  4313. *)
  4314. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4315. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4316. ;;
  4317. esac
  4318. ;;
  4319. interix[3-9]*)
  4320. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4321. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4322. ;;
  4323. irix5* | irix6* | nonstopux*)
  4324. case $LD in
  4325. *-32|*"-32 ") libmagic=32-bit;;
  4326. *-n32|*"-n32 ") libmagic=N32;;
  4327. *-64|*"-64 ") libmagic=64-bit;;
  4328. *) libmagic=never-match;;
  4329. esac
  4330. lt_cv_deplibs_check_method=pass_all
  4331. ;;
  4332. # This must be glibc/ELF.
  4333. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4334. lt_cv_deplibs_check_method=pass_all
  4335. ;;
  4336. netbsd*)
  4337. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4338. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4339. else
  4340. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4341. fi
  4342. ;;
  4343. newos6*)
  4344. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4345. lt_cv_file_magic_cmd=/usr/bin/file
  4346. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4347. ;;
  4348. *nto* | *qnx*)
  4349. lt_cv_deplibs_check_method=pass_all
  4350. ;;
  4351. openbsd*)
  4352. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4353. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4354. else
  4355. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4356. fi
  4357. ;;
  4358. osf3* | osf4* | osf5*)
  4359. lt_cv_deplibs_check_method=pass_all
  4360. ;;
  4361. rdos*)
  4362. lt_cv_deplibs_check_method=pass_all
  4363. ;;
  4364. solaris*)
  4365. lt_cv_deplibs_check_method=pass_all
  4366. ;;
  4367. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4368. lt_cv_deplibs_check_method=pass_all
  4369. ;;
  4370. sysv4 | sysv4.3*)
  4371. case $host_vendor in
  4372. motorola)
  4373. 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]'
  4374. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4375. ;;
  4376. ncr)
  4377. lt_cv_deplibs_check_method=pass_all
  4378. ;;
  4379. sequent)
  4380. lt_cv_file_magic_cmd='/bin/file'
  4381. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4382. ;;
  4383. sni)
  4384. lt_cv_file_magic_cmd='/bin/file'
  4385. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4386. lt_cv_file_magic_test_file=/lib/libc.so
  4387. ;;
  4388. siemens)
  4389. lt_cv_deplibs_check_method=pass_all
  4390. ;;
  4391. pc)
  4392. lt_cv_deplibs_check_method=pass_all
  4393. ;;
  4394. esac
  4395. ;;
  4396. tpf*)
  4397. lt_cv_deplibs_check_method=pass_all
  4398. ;;
  4399. esac
  4400. fi
  4401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4402. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4403. file_magic_glob=
  4404. want_nocaseglob=no
  4405. if test "$build" = "$host"; then
  4406. case $host_os in
  4407. mingw* | pw32*)
  4408. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4409. want_nocaseglob=yes
  4410. else
  4411. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4412. fi
  4413. ;;
  4414. esac
  4415. fi
  4416. file_magic_cmd=$lt_cv_file_magic_cmd
  4417. deplibs_check_method=$lt_cv_deplibs_check_method
  4418. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4419. if test -n "$ac_tool_prefix"; then
  4420. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4421. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4423. $as_echo_n "checking for $ac_word... " >&6; }
  4424. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4425. $as_echo_n "(cached) " >&6
  4426. else
  4427. if test -n "$DLLTOOL"; then
  4428. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4429. else
  4430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4431. for as_dir in $PATH
  4432. do
  4433. IFS=$as_save_IFS
  4434. test -z "$as_dir" && as_dir=.
  4435. for ac_exec_ext in '' $ac_executable_extensions; do
  4436. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4437. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4439. break 2
  4440. fi
  4441. done
  4442. done
  4443. IFS=$as_save_IFS
  4444. fi
  4445. fi
  4446. DLLTOOL=$ac_cv_prog_DLLTOOL
  4447. if test -n "$DLLTOOL"; then
  4448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4449. $as_echo "$DLLTOOL" >&6; }
  4450. else
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4452. $as_echo "no" >&6; }
  4453. fi
  4454. fi
  4455. if test -z "$ac_cv_prog_DLLTOOL"; then
  4456. ac_ct_DLLTOOL=$DLLTOOL
  4457. # Extract the first word of "dlltool", so it can be a program name with args.
  4458. set dummy dlltool; ac_word=$2
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4460. $as_echo_n "checking for $ac_word... " >&6; }
  4461. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4462. $as_echo_n "(cached) " >&6
  4463. else
  4464. if test -n "$ac_ct_DLLTOOL"; then
  4465. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4466. else
  4467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4468. for as_dir in $PATH
  4469. do
  4470. IFS=$as_save_IFS
  4471. test -z "$as_dir" && as_dir=.
  4472. for ac_exec_ext in '' $ac_executable_extensions; do
  4473. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4474. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4475. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4476. break 2
  4477. fi
  4478. done
  4479. done
  4480. IFS=$as_save_IFS
  4481. fi
  4482. fi
  4483. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4484. if test -n "$ac_ct_DLLTOOL"; then
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4486. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4487. else
  4488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4489. $as_echo "no" >&6; }
  4490. fi
  4491. if test "x$ac_ct_DLLTOOL" = x; then
  4492. DLLTOOL="false"
  4493. else
  4494. case $cross_compiling:$ac_tool_warned in
  4495. yes:)
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4497. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4498. ac_tool_warned=yes ;;
  4499. esac
  4500. DLLTOOL=$ac_ct_DLLTOOL
  4501. fi
  4502. else
  4503. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4504. fi
  4505. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4507. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4508. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4509. $as_echo_n "(cached) " >&6
  4510. else
  4511. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4512. case $host_os in
  4513. cygwin* | mingw* | pw32* | cegcc*)
  4514. # two different shell functions defined in ltmain.sh
  4515. # decide which to use based on capabilities of $DLLTOOL
  4516. case `$DLLTOOL --help 2>&1` in
  4517. *--identify-strict*)
  4518. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4519. ;;
  4520. *)
  4521. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4522. ;;
  4523. esac
  4524. ;;
  4525. *)
  4526. # fallback: assume linklib IS sharedlib
  4527. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4528. ;;
  4529. esac
  4530. fi
  4531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4532. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4533. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4534. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4535. if test -n "$ac_tool_prefix"; then
  4536. for ac_prog in ar
  4537. do
  4538. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4539. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4541. $as_echo_n "checking for $ac_word... " >&6; }
  4542. if ${ac_cv_prog_AR+:} false; then :
  4543. $as_echo_n "(cached) " >&6
  4544. else
  4545. if test -n "$AR"; then
  4546. ac_cv_prog_AR="$AR" # Let the user override the test.
  4547. else
  4548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4549. for as_dir in $PATH
  4550. do
  4551. IFS=$as_save_IFS
  4552. test -z "$as_dir" && as_dir=.
  4553. for ac_exec_ext in '' $ac_executable_extensions; do
  4554. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4555. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4557. break 2
  4558. fi
  4559. done
  4560. done
  4561. IFS=$as_save_IFS
  4562. fi
  4563. fi
  4564. AR=$ac_cv_prog_AR
  4565. if test -n "$AR"; then
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4567. $as_echo "$AR" >&6; }
  4568. else
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4570. $as_echo "no" >&6; }
  4571. fi
  4572. test -n "$AR" && break
  4573. done
  4574. fi
  4575. if test -z "$AR"; then
  4576. ac_ct_AR=$AR
  4577. for ac_prog in ar
  4578. do
  4579. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4580. set dummy $ac_prog; ac_word=$2
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4582. $as_echo_n "checking for $ac_word... " >&6; }
  4583. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4584. $as_echo_n "(cached) " >&6
  4585. else
  4586. if test -n "$ac_ct_AR"; then
  4587. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4588. else
  4589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4590. for as_dir in $PATH
  4591. do
  4592. IFS=$as_save_IFS
  4593. test -z "$as_dir" && as_dir=.
  4594. for ac_exec_ext in '' $ac_executable_extensions; do
  4595. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4596. ac_cv_prog_ac_ct_AR="$ac_prog"
  4597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4598. break 2
  4599. fi
  4600. done
  4601. done
  4602. IFS=$as_save_IFS
  4603. fi
  4604. fi
  4605. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4606. if test -n "$ac_ct_AR"; then
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4608. $as_echo "$ac_ct_AR" >&6; }
  4609. else
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4611. $as_echo "no" >&6; }
  4612. fi
  4613. test -n "$ac_ct_AR" && break
  4614. done
  4615. if test "x$ac_ct_AR" = x; then
  4616. AR="false"
  4617. else
  4618. case $cross_compiling:$ac_tool_warned in
  4619. yes:)
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4621. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4622. ac_tool_warned=yes ;;
  4623. esac
  4624. AR=$ac_ct_AR
  4625. fi
  4626. fi
  4627. : ${AR=ar}
  4628. : ${AR_FLAGS=cru}
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4630. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4631. if ${lt_cv_ar_at_file+:} false; then :
  4632. $as_echo_n "(cached) " >&6
  4633. else
  4634. lt_cv_ar_at_file=no
  4635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4636. /* end confdefs.h. */
  4637. int
  4638. main ()
  4639. {
  4640. ;
  4641. return 0;
  4642. }
  4643. _ACEOF
  4644. if ac_fn_c_try_compile "$LINENO"; then :
  4645. echo conftest.$ac_objext > conftest.lst
  4646. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4647. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4648. (eval $lt_ar_try) 2>&5
  4649. ac_status=$?
  4650. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4651. test $ac_status = 0; }
  4652. if test "$ac_status" -eq 0; then
  4653. # Ensure the archiver fails upon bogus file names.
  4654. rm -f conftest.$ac_objext libconftest.a
  4655. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4656. (eval $lt_ar_try) 2>&5
  4657. ac_status=$?
  4658. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4659. test $ac_status = 0; }
  4660. if test "$ac_status" -ne 0; then
  4661. lt_cv_ar_at_file=@
  4662. fi
  4663. fi
  4664. rm -f conftest.* libconftest.a
  4665. fi
  4666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4667. fi
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4669. $as_echo "$lt_cv_ar_at_file" >&6; }
  4670. if test "x$lt_cv_ar_at_file" = xno; then
  4671. archiver_list_spec=
  4672. else
  4673. archiver_list_spec=$lt_cv_ar_at_file
  4674. fi
  4675. if test -n "$ac_tool_prefix"; then
  4676. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4677. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4679. $as_echo_n "checking for $ac_word... " >&6; }
  4680. if ${ac_cv_prog_STRIP+:} false; then :
  4681. $as_echo_n "(cached) " >&6
  4682. else
  4683. if test -n "$STRIP"; then
  4684. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4685. else
  4686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4687. for as_dir in $PATH
  4688. do
  4689. IFS=$as_save_IFS
  4690. test -z "$as_dir" && as_dir=.
  4691. for ac_exec_ext in '' $ac_executable_extensions; do
  4692. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4693. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4695. break 2
  4696. fi
  4697. done
  4698. done
  4699. IFS=$as_save_IFS
  4700. fi
  4701. fi
  4702. STRIP=$ac_cv_prog_STRIP
  4703. if test -n "$STRIP"; then
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4705. $as_echo "$STRIP" >&6; }
  4706. else
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4708. $as_echo "no" >&6; }
  4709. fi
  4710. fi
  4711. if test -z "$ac_cv_prog_STRIP"; then
  4712. ac_ct_STRIP=$STRIP
  4713. # Extract the first word of "strip", so it can be a program name with args.
  4714. set dummy strip; ac_word=$2
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4716. $as_echo_n "checking for $ac_word... " >&6; }
  4717. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4718. $as_echo_n "(cached) " >&6
  4719. else
  4720. if test -n "$ac_ct_STRIP"; then
  4721. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4722. else
  4723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4724. for as_dir in $PATH
  4725. do
  4726. IFS=$as_save_IFS
  4727. test -z "$as_dir" && as_dir=.
  4728. for ac_exec_ext in '' $ac_executable_extensions; do
  4729. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4730. ac_cv_prog_ac_ct_STRIP="strip"
  4731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4732. break 2
  4733. fi
  4734. done
  4735. done
  4736. IFS=$as_save_IFS
  4737. fi
  4738. fi
  4739. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4740. if test -n "$ac_ct_STRIP"; then
  4741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4742. $as_echo "$ac_ct_STRIP" >&6; }
  4743. else
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4745. $as_echo "no" >&6; }
  4746. fi
  4747. if test "x$ac_ct_STRIP" = x; then
  4748. STRIP=":"
  4749. else
  4750. case $cross_compiling:$ac_tool_warned in
  4751. yes:)
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4753. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4754. ac_tool_warned=yes ;;
  4755. esac
  4756. STRIP=$ac_ct_STRIP
  4757. fi
  4758. else
  4759. STRIP="$ac_cv_prog_STRIP"
  4760. fi
  4761. test -z "$STRIP" && STRIP=:
  4762. if test -n "$ac_tool_prefix"; then
  4763. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4764. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4766. $as_echo_n "checking for $ac_word... " >&6; }
  4767. if ${ac_cv_prog_RANLIB+:} false; then :
  4768. $as_echo_n "(cached) " >&6
  4769. else
  4770. if test -n "$RANLIB"; then
  4771. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4772. else
  4773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4774. for as_dir in $PATH
  4775. do
  4776. IFS=$as_save_IFS
  4777. test -z "$as_dir" && as_dir=.
  4778. for ac_exec_ext in '' $ac_executable_extensions; do
  4779. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4780. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4782. break 2
  4783. fi
  4784. done
  4785. done
  4786. IFS=$as_save_IFS
  4787. fi
  4788. fi
  4789. RANLIB=$ac_cv_prog_RANLIB
  4790. if test -n "$RANLIB"; then
  4791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4792. $as_echo "$RANLIB" >&6; }
  4793. else
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4795. $as_echo "no" >&6; }
  4796. fi
  4797. fi
  4798. if test -z "$ac_cv_prog_RANLIB"; then
  4799. ac_ct_RANLIB=$RANLIB
  4800. # Extract the first word of "ranlib", so it can be a program name with args.
  4801. set dummy ranlib; ac_word=$2
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4803. $as_echo_n "checking for $ac_word... " >&6; }
  4804. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4805. $as_echo_n "(cached) " >&6
  4806. else
  4807. if test -n "$ac_ct_RANLIB"; then
  4808. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4809. else
  4810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4811. for as_dir in $PATH
  4812. do
  4813. IFS=$as_save_IFS
  4814. test -z "$as_dir" && as_dir=.
  4815. for ac_exec_ext in '' $ac_executable_extensions; do
  4816. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4817. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4819. break 2
  4820. fi
  4821. done
  4822. done
  4823. IFS=$as_save_IFS
  4824. fi
  4825. fi
  4826. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4827. if test -n "$ac_ct_RANLIB"; then
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4829. $as_echo "$ac_ct_RANLIB" >&6; }
  4830. else
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4832. $as_echo "no" >&6; }
  4833. fi
  4834. if test "x$ac_ct_RANLIB" = x; then
  4835. RANLIB=":"
  4836. else
  4837. case $cross_compiling:$ac_tool_warned in
  4838. yes:)
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4840. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4841. ac_tool_warned=yes ;;
  4842. esac
  4843. RANLIB=$ac_ct_RANLIB
  4844. fi
  4845. else
  4846. RANLIB="$ac_cv_prog_RANLIB"
  4847. fi
  4848. test -z "$RANLIB" && RANLIB=:
  4849. # Determine commands to create old-style static archives.
  4850. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4851. old_postinstall_cmds='chmod 644 $oldlib'
  4852. old_postuninstall_cmds=
  4853. if test -n "$RANLIB"; then
  4854. case $host_os in
  4855. openbsd*)
  4856. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4857. ;;
  4858. *)
  4859. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4860. ;;
  4861. esac
  4862. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4863. fi
  4864. case $host_os in
  4865. darwin*)
  4866. lock_old_archive_extraction=yes ;;
  4867. *)
  4868. lock_old_archive_extraction=no ;;
  4869. esac
  4870. for ac_prog in gawk mawk nawk awk
  4871. do
  4872. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4873. set dummy $ac_prog; ac_word=$2
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4875. $as_echo_n "checking for $ac_word... " >&6; }
  4876. if ${ac_cv_prog_AWK+:} false; then :
  4877. $as_echo_n "(cached) " >&6
  4878. else
  4879. if test -n "$AWK"; then
  4880. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4881. else
  4882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4883. for as_dir in $PATH
  4884. do
  4885. IFS=$as_save_IFS
  4886. test -z "$as_dir" && as_dir=.
  4887. for ac_exec_ext in '' $ac_executable_extensions; do
  4888. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4889. ac_cv_prog_AWK="$ac_prog"
  4890. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4891. break 2
  4892. fi
  4893. done
  4894. done
  4895. IFS=$as_save_IFS
  4896. fi
  4897. fi
  4898. AWK=$ac_cv_prog_AWK
  4899. if test -n "$AWK"; then
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4901. $as_echo "$AWK" >&6; }
  4902. else
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4904. $as_echo "no" >&6; }
  4905. fi
  4906. test -n "$AWK" && break
  4907. done
  4908. # If no C compiler was specified, use CC.
  4909. LTCC=${LTCC-"$CC"}
  4910. # If no C compiler flags were specified, use CFLAGS.
  4911. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4912. # Allow CC to be a program name with arguments.
  4913. compiler=$CC
  4914. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4916. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4917. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4918. $as_echo_n "(cached) " >&6
  4919. else
  4920. # These are sane defaults that work on at least a few old systems.
  4921. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4922. # Character class describing NM global symbol codes.
  4923. symcode='[BCDEGRST]'
  4924. # Regexp to match symbols that can be accessed directly from C.
  4925. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4926. # Define system-specific variables.
  4927. case $host_os in
  4928. aix*)
  4929. symcode='[BCDT]'
  4930. ;;
  4931. cygwin* | mingw* | pw32* | cegcc*)
  4932. symcode='[ABCDGISTW]'
  4933. ;;
  4934. hpux*)
  4935. if test "$host_cpu" = ia64; then
  4936. symcode='[ABCDEGRST]'
  4937. fi
  4938. ;;
  4939. irix* | nonstopux*)
  4940. symcode='[BCDEGRST]'
  4941. ;;
  4942. osf*)
  4943. symcode='[BCDEGQRST]'
  4944. ;;
  4945. solaris*)
  4946. symcode='[BDRT]'
  4947. ;;
  4948. sco3.2v5*)
  4949. symcode='[DT]'
  4950. ;;
  4951. sysv4.2uw2*)
  4952. symcode='[DT]'
  4953. ;;
  4954. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4955. symcode='[ABDT]'
  4956. ;;
  4957. sysv4)
  4958. symcode='[DFNSTU]'
  4959. ;;
  4960. esac
  4961. # If we're using GNU nm, then use its standard symbol codes.
  4962. case `$NM -V 2>&1` in
  4963. *GNU* | *'with BFD'*)
  4964. symcode='[ABCDGIRSTW]' ;;
  4965. esac
  4966. # Transform an extracted symbol line into a proper C declaration.
  4967. # Some systems (esp. on ia64) link data and code symbols differently,
  4968. # so use this general approach.
  4969. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4970. # Transform an extracted symbol line into symbol name and symbol address
  4971. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4972. 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'"
  4973. # Handle CRLF in mingw tool chain
  4974. opt_cr=
  4975. case $build_os in
  4976. mingw*)
  4977. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4978. ;;
  4979. esac
  4980. # Try without a prefix underscore, then with it.
  4981. for ac_symprfx in "" "_"; do
  4982. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4983. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4984. # Write the raw and C identifiers.
  4985. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4986. # Fake it for dumpbin and say T for any non-static function
  4987. # and D for any global variable.
  4988. # Also find C++ and __fastcall symbols from MSVC++,
  4989. # which start with @ or ?.
  4990. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4991. " {last_section=section; section=\$ 3};"\
  4992. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4993. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4994. " \$ 0!~/External *\|/{next};"\
  4995. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4996. " {if(hide[section]) next};"\
  4997. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4998. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4999. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5000. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5001. " ' prfx=^$ac_symprfx"
  5002. else
  5003. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5004. fi
  5005. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5006. # Check to see that the pipe works correctly.
  5007. pipe_works=no
  5008. rm -f conftest*
  5009. cat > conftest.$ac_ext <<_LT_EOF
  5010. #ifdef __cplusplus
  5011. extern "C" {
  5012. #endif
  5013. char nm_test_var;
  5014. void nm_test_func(void);
  5015. void nm_test_func(void){}
  5016. #ifdef __cplusplus
  5017. }
  5018. #endif
  5019. int main(){nm_test_var='a';nm_test_func();return(0);}
  5020. _LT_EOF
  5021. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5022. (eval $ac_compile) 2>&5
  5023. ac_status=$?
  5024. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5025. test $ac_status = 0; }; then
  5026. # Now try to grab the symbols.
  5027. nlist=conftest.nm
  5028. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5029. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5030. ac_status=$?
  5031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5032. test $ac_status = 0; } && test -s "$nlist"; then
  5033. # Try sorting and uniquifying the output.
  5034. if sort "$nlist" | uniq > "$nlist"T; then
  5035. mv -f "$nlist"T "$nlist"
  5036. else
  5037. rm -f "$nlist"T
  5038. fi
  5039. # Make sure that we snagged all the symbols we need.
  5040. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5041. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5042. cat <<_LT_EOF > conftest.$ac_ext
  5043. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5044. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5045. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5046. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5047. # define LT_DLSYM_CONST
  5048. #elif defined(__osf__)
  5049. /* This system does not cope well with relocations in const data. */
  5050. # define LT_DLSYM_CONST
  5051. #else
  5052. # define LT_DLSYM_CONST const
  5053. #endif
  5054. #ifdef __cplusplus
  5055. extern "C" {
  5056. #endif
  5057. _LT_EOF
  5058. # Now generate the symbol file.
  5059. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5060. cat <<_LT_EOF >> conftest.$ac_ext
  5061. /* The mapping between symbol names and symbols. */
  5062. LT_DLSYM_CONST struct {
  5063. const char *name;
  5064. void *address;
  5065. }
  5066. lt__PROGRAM__LTX_preloaded_symbols[] =
  5067. {
  5068. { "@PROGRAM@", (void *) 0 },
  5069. _LT_EOF
  5070. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5071. cat <<\_LT_EOF >> conftest.$ac_ext
  5072. {0, (void *) 0}
  5073. };
  5074. /* This works around a problem in FreeBSD linker */
  5075. #ifdef FREEBSD_WORKAROUND
  5076. static const void *lt_preloaded_setup() {
  5077. return lt__PROGRAM__LTX_preloaded_symbols;
  5078. }
  5079. #endif
  5080. #ifdef __cplusplus
  5081. }
  5082. #endif
  5083. _LT_EOF
  5084. # Now try linking the two files.
  5085. mv conftest.$ac_objext conftstm.$ac_objext
  5086. lt_globsym_save_LIBS=$LIBS
  5087. lt_globsym_save_CFLAGS=$CFLAGS
  5088. LIBS="conftstm.$ac_objext"
  5089. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5090. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5091. (eval $ac_link) 2>&5
  5092. ac_status=$?
  5093. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5094. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5095. pipe_works=yes
  5096. fi
  5097. LIBS=$lt_globsym_save_LIBS
  5098. CFLAGS=$lt_globsym_save_CFLAGS
  5099. else
  5100. echo "cannot find nm_test_func in $nlist" >&5
  5101. fi
  5102. else
  5103. echo "cannot find nm_test_var in $nlist" >&5
  5104. fi
  5105. else
  5106. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5107. fi
  5108. else
  5109. echo "$progname: failed program was:" >&5
  5110. cat conftest.$ac_ext >&5
  5111. fi
  5112. rm -rf conftest* conftst*
  5113. # Do not use the global_symbol_pipe unless it works.
  5114. if test "$pipe_works" = yes; then
  5115. break
  5116. else
  5117. lt_cv_sys_global_symbol_pipe=
  5118. fi
  5119. done
  5120. fi
  5121. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5122. lt_cv_sys_global_symbol_to_cdecl=
  5123. fi
  5124. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5126. $as_echo "failed" >&6; }
  5127. else
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5129. $as_echo "ok" >&6; }
  5130. fi
  5131. # Response file support.
  5132. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5133. nm_file_list_spec='@'
  5134. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5135. nm_file_list_spec='@'
  5136. fi
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5138. $as_echo_n "checking for sysroot... " >&6; }
  5139. # Check whether --with-sysroot was given.
  5140. if test "${with_sysroot+set}" = set; then :
  5141. withval=$with_sysroot;
  5142. else
  5143. with_sysroot=no
  5144. fi
  5145. lt_sysroot=
  5146. case ${with_sysroot} in #(
  5147. yes)
  5148. if test "$GCC" = yes; then
  5149. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5150. fi
  5151. ;; #(
  5152. /*)
  5153. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5154. ;; #(
  5155. no|'')
  5156. ;; #(
  5157. *)
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5159. $as_echo "${with_sysroot}" >&6; }
  5160. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5161. ;;
  5162. esac
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5164. $as_echo "${lt_sysroot:-no}" >&6; }
  5165. # Check whether --enable-libtool-lock was given.
  5166. if test "${enable_libtool_lock+set}" = set; then :
  5167. enableval=$enable_libtool_lock;
  5168. fi
  5169. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5170. # Some flags need to be propagated to the compiler or linker for good
  5171. # libtool support.
  5172. case $host in
  5173. ia64-*-hpux*)
  5174. # Find out which ABI we are using.
  5175. echo 'int i;' > conftest.$ac_ext
  5176. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5177. (eval $ac_compile) 2>&5
  5178. ac_status=$?
  5179. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5180. test $ac_status = 0; }; then
  5181. case `/usr/bin/file conftest.$ac_objext` in
  5182. *ELF-32*)
  5183. HPUX_IA64_MODE="32"
  5184. ;;
  5185. *ELF-64*)
  5186. HPUX_IA64_MODE="64"
  5187. ;;
  5188. esac
  5189. fi
  5190. rm -rf conftest*
  5191. ;;
  5192. *-*-irix6*)
  5193. # Find out which ABI we are using.
  5194. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5195. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5196. (eval $ac_compile) 2>&5
  5197. ac_status=$?
  5198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5199. test $ac_status = 0; }; then
  5200. if test "$lt_cv_prog_gnu_ld" = yes; then
  5201. case `/usr/bin/file conftest.$ac_objext` in
  5202. *32-bit*)
  5203. LD="${LD-ld} -melf32bsmip"
  5204. ;;
  5205. *N32*)
  5206. LD="${LD-ld} -melf32bmipn32"
  5207. ;;
  5208. *64-bit*)
  5209. LD="${LD-ld} -melf64bmip"
  5210. ;;
  5211. esac
  5212. else
  5213. case `/usr/bin/file conftest.$ac_objext` in
  5214. *32-bit*)
  5215. LD="${LD-ld} -32"
  5216. ;;
  5217. *N32*)
  5218. LD="${LD-ld} -n32"
  5219. ;;
  5220. *64-bit*)
  5221. LD="${LD-ld} -64"
  5222. ;;
  5223. esac
  5224. fi
  5225. fi
  5226. rm -rf conftest*
  5227. ;;
  5228. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5229. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5230. # Find out which ABI we are using.
  5231. echo 'int i;' > conftest.$ac_ext
  5232. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5233. (eval $ac_compile) 2>&5
  5234. ac_status=$?
  5235. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5236. test $ac_status = 0; }; then
  5237. case `/usr/bin/file conftest.o` in
  5238. *32-bit*)
  5239. case $host in
  5240. x86_64-*kfreebsd*-gnu)
  5241. LD="${LD-ld} -m elf_i386_fbsd"
  5242. ;;
  5243. x86_64-*linux*)
  5244. LD="${LD-ld} -m elf_i386"
  5245. ;;
  5246. ppc64-*linux*|powerpc64-*linux*)
  5247. LD="${LD-ld} -m elf32ppclinux"
  5248. ;;
  5249. s390x-*linux*)
  5250. LD="${LD-ld} -m elf_s390"
  5251. ;;
  5252. sparc64-*linux*)
  5253. LD="${LD-ld} -m elf32_sparc"
  5254. ;;
  5255. esac
  5256. ;;
  5257. *64-bit*)
  5258. case $host in
  5259. x86_64-*kfreebsd*-gnu)
  5260. LD="${LD-ld} -m elf_x86_64_fbsd"
  5261. ;;
  5262. x86_64-*linux*)
  5263. LD="${LD-ld} -m elf_x86_64"
  5264. ;;
  5265. powerpc64le-*linux*)
  5266. LD="${LD-ld} -m elf64lppc"
  5267. ;;
  5268. powerpc64-*linux*)
  5269. LD="${LD-ld} -m elf64ppc"
  5270. ;;
  5271. s390*-*linux*|s390*-*tpf*)
  5272. LD="${LD-ld} -m elf64_s390"
  5273. ;;
  5274. sparc*-*linux*)
  5275. LD="${LD-ld} -m elf64_sparc"
  5276. ;;
  5277. esac
  5278. ;;
  5279. esac
  5280. fi
  5281. rm -rf conftest*
  5282. ;;
  5283. *-*-sco3.2v5*)
  5284. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5285. SAVE_CFLAGS="$CFLAGS"
  5286. CFLAGS="$CFLAGS -belf"
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5288. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5289. if ${lt_cv_cc_needs_belf+:} false; then :
  5290. $as_echo_n "(cached) " >&6
  5291. else
  5292. ac_ext=c
  5293. ac_cpp='$CPP $CPPFLAGS'
  5294. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5295. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5296. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5298. /* end confdefs.h. */
  5299. int
  5300. main ()
  5301. {
  5302. ;
  5303. return 0;
  5304. }
  5305. _ACEOF
  5306. if ac_fn_c_try_link "$LINENO"; then :
  5307. lt_cv_cc_needs_belf=yes
  5308. else
  5309. lt_cv_cc_needs_belf=no
  5310. fi
  5311. rm -f core conftest.err conftest.$ac_objext \
  5312. conftest$ac_exeext conftest.$ac_ext
  5313. ac_ext=c
  5314. ac_cpp='$CPP $CPPFLAGS'
  5315. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5316. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5317. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5318. fi
  5319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5320. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5321. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5322. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5323. CFLAGS="$SAVE_CFLAGS"
  5324. fi
  5325. ;;
  5326. *-*solaris*)
  5327. # Find out which ABI we are using.
  5328. echo 'int i;' > conftest.$ac_ext
  5329. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5330. (eval $ac_compile) 2>&5
  5331. ac_status=$?
  5332. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5333. test $ac_status = 0; }; then
  5334. case `/usr/bin/file conftest.o` in
  5335. *64-bit*)
  5336. case $lt_cv_prog_gnu_ld in
  5337. yes*)
  5338. case $host in
  5339. i?86-*-solaris*)
  5340. LD="${LD-ld} -m elf_x86_64"
  5341. ;;
  5342. sparc*-*-solaris*)
  5343. LD="${LD-ld} -m elf64_sparc"
  5344. ;;
  5345. esac
  5346. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5347. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5348. LD="${LD-ld}_sol2"
  5349. fi
  5350. ;;
  5351. *)
  5352. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5353. LD="${LD-ld} -64"
  5354. fi
  5355. ;;
  5356. esac
  5357. ;;
  5358. esac
  5359. fi
  5360. rm -rf conftest*
  5361. ;;
  5362. esac
  5363. need_locks="$enable_libtool_lock"
  5364. if test -n "$ac_tool_prefix"; then
  5365. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5366. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5368. $as_echo_n "checking for $ac_word... " >&6; }
  5369. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5370. $as_echo_n "(cached) " >&6
  5371. else
  5372. if test -n "$MANIFEST_TOOL"; then
  5373. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5374. else
  5375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5376. for as_dir in $PATH
  5377. do
  5378. IFS=$as_save_IFS
  5379. test -z "$as_dir" && as_dir=.
  5380. for ac_exec_ext in '' $ac_executable_extensions; do
  5381. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5382. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5384. break 2
  5385. fi
  5386. done
  5387. done
  5388. IFS=$as_save_IFS
  5389. fi
  5390. fi
  5391. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5392. if test -n "$MANIFEST_TOOL"; then
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5394. $as_echo "$MANIFEST_TOOL" >&6; }
  5395. else
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5397. $as_echo "no" >&6; }
  5398. fi
  5399. fi
  5400. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5401. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5402. # Extract the first word of "mt", so it can be a program name with args.
  5403. set dummy mt; ac_word=$2
  5404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5405. $as_echo_n "checking for $ac_word... " >&6; }
  5406. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5407. $as_echo_n "(cached) " >&6
  5408. else
  5409. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5410. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5411. else
  5412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5413. for as_dir in $PATH
  5414. do
  5415. IFS=$as_save_IFS
  5416. test -z "$as_dir" && as_dir=.
  5417. for ac_exec_ext in '' $ac_executable_extensions; do
  5418. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5419. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5420. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5421. break 2
  5422. fi
  5423. done
  5424. done
  5425. IFS=$as_save_IFS
  5426. fi
  5427. fi
  5428. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5429. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5431. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5432. else
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5434. $as_echo "no" >&6; }
  5435. fi
  5436. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5437. MANIFEST_TOOL=":"
  5438. else
  5439. case $cross_compiling:$ac_tool_warned in
  5440. yes:)
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5442. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5443. ac_tool_warned=yes ;;
  5444. esac
  5445. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5446. fi
  5447. else
  5448. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5449. fi
  5450. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5452. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5453. if ${lt_cv_path_mainfest_tool+:} false; then :
  5454. $as_echo_n "(cached) " >&6
  5455. else
  5456. lt_cv_path_mainfest_tool=no
  5457. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5458. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5459. cat conftest.err >&5
  5460. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5461. lt_cv_path_mainfest_tool=yes
  5462. fi
  5463. rm -f conftest*
  5464. fi
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5466. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5467. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5468. MANIFEST_TOOL=:
  5469. fi
  5470. case $host_os in
  5471. rhapsody* | darwin*)
  5472. if test -n "$ac_tool_prefix"; then
  5473. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5474. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5476. $as_echo_n "checking for $ac_word... " >&6; }
  5477. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5478. $as_echo_n "(cached) " >&6
  5479. else
  5480. if test -n "$DSYMUTIL"; then
  5481. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5482. else
  5483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5484. for as_dir in $PATH
  5485. do
  5486. IFS=$as_save_IFS
  5487. test -z "$as_dir" && as_dir=.
  5488. for ac_exec_ext in '' $ac_executable_extensions; do
  5489. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5490. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5492. break 2
  5493. fi
  5494. done
  5495. done
  5496. IFS=$as_save_IFS
  5497. fi
  5498. fi
  5499. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5500. if test -n "$DSYMUTIL"; then
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5502. $as_echo "$DSYMUTIL" >&6; }
  5503. else
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5505. $as_echo "no" >&6; }
  5506. fi
  5507. fi
  5508. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5509. ac_ct_DSYMUTIL=$DSYMUTIL
  5510. # Extract the first word of "dsymutil", so it can be a program name with args.
  5511. set dummy dsymutil; ac_word=$2
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5513. $as_echo_n "checking for $ac_word... " >&6; }
  5514. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5515. $as_echo_n "(cached) " >&6
  5516. else
  5517. if test -n "$ac_ct_DSYMUTIL"; then
  5518. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5519. else
  5520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5521. for as_dir in $PATH
  5522. do
  5523. IFS=$as_save_IFS
  5524. test -z "$as_dir" && as_dir=.
  5525. for ac_exec_ext in '' $ac_executable_extensions; do
  5526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5527. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5529. break 2
  5530. fi
  5531. done
  5532. done
  5533. IFS=$as_save_IFS
  5534. fi
  5535. fi
  5536. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5537. if test -n "$ac_ct_DSYMUTIL"; then
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5539. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5540. else
  5541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5542. $as_echo "no" >&6; }
  5543. fi
  5544. if test "x$ac_ct_DSYMUTIL" = x; then
  5545. DSYMUTIL=":"
  5546. else
  5547. case $cross_compiling:$ac_tool_warned in
  5548. yes:)
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5550. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5551. ac_tool_warned=yes ;;
  5552. esac
  5553. DSYMUTIL=$ac_ct_DSYMUTIL
  5554. fi
  5555. else
  5556. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5557. fi
  5558. if test -n "$ac_tool_prefix"; then
  5559. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5560. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5562. $as_echo_n "checking for $ac_word... " >&6; }
  5563. if ${ac_cv_prog_NMEDIT+:} false; then :
  5564. $as_echo_n "(cached) " >&6
  5565. else
  5566. if test -n "$NMEDIT"; then
  5567. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5568. else
  5569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5570. for as_dir in $PATH
  5571. do
  5572. IFS=$as_save_IFS
  5573. test -z "$as_dir" && as_dir=.
  5574. for ac_exec_ext in '' $ac_executable_extensions; do
  5575. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5576. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5578. break 2
  5579. fi
  5580. done
  5581. done
  5582. IFS=$as_save_IFS
  5583. fi
  5584. fi
  5585. NMEDIT=$ac_cv_prog_NMEDIT
  5586. if test -n "$NMEDIT"; then
  5587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5588. $as_echo "$NMEDIT" >&6; }
  5589. else
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5591. $as_echo "no" >&6; }
  5592. fi
  5593. fi
  5594. if test -z "$ac_cv_prog_NMEDIT"; then
  5595. ac_ct_NMEDIT=$NMEDIT
  5596. # Extract the first word of "nmedit", so it can be a program name with args.
  5597. set dummy nmedit; ac_word=$2
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5599. $as_echo_n "checking for $ac_word... " >&6; }
  5600. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5601. $as_echo_n "(cached) " >&6
  5602. else
  5603. if test -n "$ac_ct_NMEDIT"; then
  5604. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5605. else
  5606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5607. for as_dir in $PATH
  5608. do
  5609. IFS=$as_save_IFS
  5610. test -z "$as_dir" && as_dir=.
  5611. for ac_exec_ext in '' $ac_executable_extensions; do
  5612. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5613. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5615. break 2
  5616. fi
  5617. done
  5618. done
  5619. IFS=$as_save_IFS
  5620. fi
  5621. fi
  5622. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5623. if test -n "$ac_ct_NMEDIT"; then
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5625. $as_echo "$ac_ct_NMEDIT" >&6; }
  5626. else
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5628. $as_echo "no" >&6; }
  5629. fi
  5630. if test "x$ac_ct_NMEDIT" = x; then
  5631. NMEDIT=":"
  5632. else
  5633. case $cross_compiling:$ac_tool_warned in
  5634. yes:)
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5636. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5637. ac_tool_warned=yes ;;
  5638. esac
  5639. NMEDIT=$ac_ct_NMEDIT
  5640. fi
  5641. else
  5642. NMEDIT="$ac_cv_prog_NMEDIT"
  5643. fi
  5644. if test -n "$ac_tool_prefix"; then
  5645. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5646. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5648. $as_echo_n "checking for $ac_word... " >&6; }
  5649. if ${ac_cv_prog_LIPO+:} false; then :
  5650. $as_echo_n "(cached) " >&6
  5651. else
  5652. if test -n "$LIPO"; then
  5653. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5654. else
  5655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5656. for as_dir in $PATH
  5657. do
  5658. IFS=$as_save_IFS
  5659. test -z "$as_dir" && as_dir=.
  5660. for ac_exec_ext in '' $ac_executable_extensions; do
  5661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5662. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5664. break 2
  5665. fi
  5666. done
  5667. done
  5668. IFS=$as_save_IFS
  5669. fi
  5670. fi
  5671. LIPO=$ac_cv_prog_LIPO
  5672. if test -n "$LIPO"; then
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5674. $as_echo "$LIPO" >&6; }
  5675. else
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5677. $as_echo "no" >&6; }
  5678. fi
  5679. fi
  5680. if test -z "$ac_cv_prog_LIPO"; then
  5681. ac_ct_LIPO=$LIPO
  5682. # Extract the first word of "lipo", so it can be a program name with args.
  5683. set dummy lipo; ac_word=$2
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5685. $as_echo_n "checking for $ac_word... " >&6; }
  5686. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5687. $as_echo_n "(cached) " >&6
  5688. else
  5689. if test -n "$ac_ct_LIPO"; then
  5690. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5691. else
  5692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5693. for as_dir in $PATH
  5694. do
  5695. IFS=$as_save_IFS
  5696. test -z "$as_dir" && as_dir=.
  5697. for ac_exec_ext in '' $ac_executable_extensions; do
  5698. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5699. ac_cv_prog_ac_ct_LIPO="lipo"
  5700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5701. break 2
  5702. fi
  5703. done
  5704. done
  5705. IFS=$as_save_IFS
  5706. fi
  5707. fi
  5708. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5709. if test -n "$ac_ct_LIPO"; then
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5711. $as_echo "$ac_ct_LIPO" >&6; }
  5712. else
  5713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5714. $as_echo "no" >&6; }
  5715. fi
  5716. if test "x$ac_ct_LIPO" = x; then
  5717. LIPO=":"
  5718. else
  5719. case $cross_compiling:$ac_tool_warned in
  5720. yes:)
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5722. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5723. ac_tool_warned=yes ;;
  5724. esac
  5725. LIPO=$ac_ct_LIPO
  5726. fi
  5727. else
  5728. LIPO="$ac_cv_prog_LIPO"
  5729. fi
  5730. if test -n "$ac_tool_prefix"; then
  5731. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5732. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5734. $as_echo_n "checking for $ac_word... " >&6; }
  5735. if ${ac_cv_prog_OTOOL+:} false; then :
  5736. $as_echo_n "(cached) " >&6
  5737. else
  5738. if test -n "$OTOOL"; then
  5739. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5740. else
  5741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5742. for as_dir in $PATH
  5743. do
  5744. IFS=$as_save_IFS
  5745. test -z "$as_dir" && as_dir=.
  5746. for ac_exec_ext in '' $ac_executable_extensions; do
  5747. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5748. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5750. break 2
  5751. fi
  5752. done
  5753. done
  5754. IFS=$as_save_IFS
  5755. fi
  5756. fi
  5757. OTOOL=$ac_cv_prog_OTOOL
  5758. if test -n "$OTOOL"; then
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5760. $as_echo "$OTOOL" >&6; }
  5761. else
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5763. $as_echo "no" >&6; }
  5764. fi
  5765. fi
  5766. if test -z "$ac_cv_prog_OTOOL"; then
  5767. ac_ct_OTOOL=$OTOOL
  5768. # Extract the first word of "otool", so it can be a program name with args.
  5769. set dummy otool; ac_word=$2
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5771. $as_echo_n "checking for $ac_word... " >&6; }
  5772. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5773. $as_echo_n "(cached) " >&6
  5774. else
  5775. if test -n "$ac_ct_OTOOL"; then
  5776. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5777. else
  5778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5779. for as_dir in $PATH
  5780. do
  5781. IFS=$as_save_IFS
  5782. test -z "$as_dir" && as_dir=.
  5783. for ac_exec_ext in '' $ac_executable_extensions; do
  5784. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5785. ac_cv_prog_ac_ct_OTOOL="otool"
  5786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5787. break 2
  5788. fi
  5789. done
  5790. done
  5791. IFS=$as_save_IFS
  5792. fi
  5793. fi
  5794. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5795. if test -n "$ac_ct_OTOOL"; then
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5797. $as_echo "$ac_ct_OTOOL" >&6; }
  5798. else
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5800. $as_echo "no" >&6; }
  5801. fi
  5802. if test "x$ac_ct_OTOOL" = x; then
  5803. OTOOL=":"
  5804. else
  5805. case $cross_compiling:$ac_tool_warned in
  5806. yes:)
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5808. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5809. ac_tool_warned=yes ;;
  5810. esac
  5811. OTOOL=$ac_ct_OTOOL
  5812. fi
  5813. else
  5814. OTOOL="$ac_cv_prog_OTOOL"
  5815. fi
  5816. if test -n "$ac_tool_prefix"; then
  5817. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5818. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5820. $as_echo_n "checking for $ac_word... " >&6; }
  5821. if ${ac_cv_prog_OTOOL64+:} false; then :
  5822. $as_echo_n "(cached) " >&6
  5823. else
  5824. if test -n "$OTOOL64"; then
  5825. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5826. else
  5827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5828. for as_dir in $PATH
  5829. do
  5830. IFS=$as_save_IFS
  5831. test -z "$as_dir" && as_dir=.
  5832. for ac_exec_ext in '' $ac_executable_extensions; do
  5833. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5834. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5836. break 2
  5837. fi
  5838. done
  5839. done
  5840. IFS=$as_save_IFS
  5841. fi
  5842. fi
  5843. OTOOL64=$ac_cv_prog_OTOOL64
  5844. if test -n "$OTOOL64"; then
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5846. $as_echo "$OTOOL64" >&6; }
  5847. else
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5849. $as_echo "no" >&6; }
  5850. fi
  5851. fi
  5852. if test -z "$ac_cv_prog_OTOOL64"; then
  5853. ac_ct_OTOOL64=$OTOOL64
  5854. # Extract the first word of "otool64", so it can be a program name with args.
  5855. set dummy otool64; ac_word=$2
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5857. $as_echo_n "checking for $ac_word... " >&6; }
  5858. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5859. $as_echo_n "(cached) " >&6
  5860. else
  5861. if test -n "$ac_ct_OTOOL64"; then
  5862. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5863. else
  5864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5865. for as_dir in $PATH
  5866. do
  5867. IFS=$as_save_IFS
  5868. test -z "$as_dir" && as_dir=.
  5869. for ac_exec_ext in '' $ac_executable_extensions; do
  5870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5871. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5873. break 2
  5874. fi
  5875. done
  5876. done
  5877. IFS=$as_save_IFS
  5878. fi
  5879. fi
  5880. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5881. if test -n "$ac_ct_OTOOL64"; then
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5883. $as_echo "$ac_ct_OTOOL64" >&6; }
  5884. else
  5885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5886. $as_echo "no" >&6; }
  5887. fi
  5888. if test "x$ac_ct_OTOOL64" = x; then
  5889. OTOOL64=":"
  5890. else
  5891. case $cross_compiling:$ac_tool_warned in
  5892. yes:)
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5894. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5895. ac_tool_warned=yes ;;
  5896. esac
  5897. OTOOL64=$ac_ct_OTOOL64
  5898. fi
  5899. else
  5900. OTOOL64="$ac_cv_prog_OTOOL64"
  5901. fi
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5903. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5904. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5905. $as_echo_n "(cached) " >&6
  5906. else
  5907. lt_cv_apple_cc_single_mod=no
  5908. if test -z "${LT_MULTI_MODULE}"; then
  5909. # By default we will add the -single_module flag. You can override
  5910. # by either setting the environment variable LT_MULTI_MODULE
  5911. # non-empty at configure time, or by adding -multi_module to the
  5912. # link flags.
  5913. rm -rf libconftest.dylib*
  5914. echo "int foo(void){return 1;}" > conftest.c
  5915. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5916. -dynamiclib -Wl,-single_module conftest.c" >&5
  5917. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5918. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5919. _lt_result=$?
  5920. # If there is a non-empty error log, and "single_module"
  5921. # appears in it, assume the flag caused a linker warning
  5922. if test -s conftest.err && $GREP single_module conftest.err; then
  5923. cat conftest.err >&5
  5924. # Otherwise, if the output was created with a 0 exit code from
  5925. # the compiler, it worked.
  5926. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5927. lt_cv_apple_cc_single_mod=yes
  5928. else
  5929. cat conftest.err >&5
  5930. fi
  5931. rm -rf libconftest.dylib*
  5932. rm -f conftest.*
  5933. fi
  5934. fi
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5936. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5938. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5939. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5940. $as_echo_n "(cached) " >&6
  5941. else
  5942. lt_cv_ld_exported_symbols_list=no
  5943. save_LDFLAGS=$LDFLAGS
  5944. echo "_main" > conftest.sym
  5945. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5947. /* end confdefs.h. */
  5948. int
  5949. main ()
  5950. {
  5951. ;
  5952. return 0;
  5953. }
  5954. _ACEOF
  5955. if ac_fn_c_try_link "$LINENO"; then :
  5956. lt_cv_ld_exported_symbols_list=yes
  5957. else
  5958. lt_cv_ld_exported_symbols_list=no
  5959. fi
  5960. rm -f core conftest.err conftest.$ac_objext \
  5961. conftest$ac_exeext conftest.$ac_ext
  5962. LDFLAGS="$save_LDFLAGS"
  5963. fi
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5965. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5967. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5968. if ${lt_cv_ld_force_load+:} false; then :
  5969. $as_echo_n "(cached) " >&6
  5970. else
  5971. lt_cv_ld_force_load=no
  5972. cat > conftest.c << _LT_EOF
  5973. int forced_loaded() { return 2;}
  5974. _LT_EOF
  5975. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5976. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5977. echo "$AR cru libconftest.a conftest.o" >&5
  5978. $AR cru libconftest.a conftest.o 2>&5
  5979. echo "$RANLIB libconftest.a" >&5
  5980. $RANLIB libconftest.a 2>&5
  5981. cat > conftest.c << _LT_EOF
  5982. int main() { return 0;}
  5983. _LT_EOF
  5984. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5985. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5986. _lt_result=$?
  5987. if test -s conftest.err && $GREP force_load conftest.err; then
  5988. cat conftest.err >&5
  5989. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5990. lt_cv_ld_force_load=yes
  5991. else
  5992. cat conftest.err >&5
  5993. fi
  5994. rm -f conftest.err libconftest.a conftest conftest.c
  5995. rm -rf conftest.dSYM
  5996. fi
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5998. $as_echo "$lt_cv_ld_force_load" >&6; }
  5999. case $host_os in
  6000. rhapsody* | darwin1.[012])
  6001. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6002. darwin1.*)
  6003. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6004. darwin*) # darwin 5.x on
  6005. # if running on 10.5 or later, the deployment target defaults
  6006. # to the OS version, if on x86, and 10.4, the deployment
  6007. # target defaults to 10.4. Don't you love it?
  6008. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6009. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6010. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6011. 10.[012]*)
  6012. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6013. 10.*)
  6014. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6015. esac
  6016. ;;
  6017. esac
  6018. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6019. _lt_dar_single_mod='$single_module'
  6020. fi
  6021. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6022. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6023. else
  6024. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6025. fi
  6026. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6027. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6028. else
  6029. _lt_dsymutil=
  6030. fi
  6031. ;;
  6032. esac
  6033. ac_ext=c
  6034. ac_cpp='$CPP $CPPFLAGS'
  6035. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6036. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6037. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6039. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6040. # On Suns, sometimes $CPP names a directory.
  6041. if test -n "$CPP" && test -d "$CPP"; then
  6042. CPP=
  6043. fi
  6044. if test -z "$CPP"; then
  6045. if ${ac_cv_prog_CPP+:} false; then :
  6046. $as_echo_n "(cached) " >&6
  6047. else
  6048. # Double quotes because CPP needs to be expanded
  6049. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6050. do
  6051. ac_preproc_ok=false
  6052. for ac_c_preproc_warn_flag in '' yes
  6053. do
  6054. # Use a header file that comes with gcc, so configuring glibc
  6055. # with a fresh cross-compiler works.
  6056. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6057. # <limits.h> exists even on freestanding compilers.
  6058. # On the NeXT, cc -E runs the code through the compiler's parser,
  6059. # not just through cpp. "Syntax error" is here to catch this case.
  6060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6061. /* end confdefs.h. */
  6062. #ifdef __STDC__
  6063. # include <limits.h>
  6064. #else
  6065. # include <assert.h>
  6066. #endif
  6067. Syntax error
  6068. _ACEOF
  6069. if ac_fn_c_try_cpp "$LINENO"; then :
  6070. else
  6071. # Broken: fails on valid input.
  6072. continue
  6073. fi
  6074. rm -f conftest.err conftest.i conftest.$ac_ext
  6075. # OK, works on sane cases. Now check whether nonexistent headers
  6076. # can be detected and how.
  6077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6078. /* end confdefs.h. */
  6079. #include <ac_nonexistent.h>
  6080. _ACEOF
  6081. if ac_fn_c_try_cpp "$LINENO"; then :
  6082. # Broken: success on invalid input.
  6083. continue
  6084. else
  6085. # Passes both tests.
  6086. ac_preproc_ok=:
  6087. break
  6088. fi
  6089. rm -f conftest.err conftest.i conftest.$ac_ext
  6090. done
  6091. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6092. rm -f conftest.i conftest.err conftest.$ac_ext
  6093. if $ac_preproc_ok; then :
  6094. break
  6095. fi
  6096. done
  6097. ac_cv_prog_CPP=$CPP
  6098. fi
  6099. CPP=$ac_cv_prog_CPP
  6100. else
  6101. ac_cv_prog_CPP=$CPP
  6102. fi
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6104. $as_echo "$CPP" >&6; }
  6105. ac_preproc_ok=false
  6106. for ac_c_preproc_warn_flag in '' yes
  6107. do
  6108. # Use a header file that comes with gcc, so configuring glibc
  6109. # with a fresh cross-compiler works.
  6110. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6111. # <limits.h> exists even on freestanding compilers.
  6112. # On the NeXT, cc -E runs the code through the compiler's parser,
  6113. # not just through cpp. "Syntax error" is here to catch this case.
  6114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6115. /* end confdefs.h. */
  6116. #ifdef __STDC__
  6117. # include <limits.h>
  6118. #else
  6119. # include <assert.h>
  6120. #endif
  6121. Syntax error
  6122. _ACEOF
  6123. if ac_fn_c_try_cpp "$LINENO"; then :
  6124. else
  6125. # Broken: fails on valid input.
  6126. continue
  6127. fi
  6128. rm -f conftest.err conftest.i conftest.$ac_ext
  6129. # OK, works on sane cases. Now check whether nonexistent headers
  6130. # can be detected and how.
  6131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6132. /* end confdefs.h. */
  6133. #include <ac_nonexistent.h>
  6134. _ACEOF
  6135. if ac_fn_c_try_cpp "$LINENO"; then :
  6136. # Broken: success on invalid input.
  6137. continue
  6138. else
  6139. # Passes both tests.
  6140. ac_preproc_ok=:
  6141. break
  6142. fi
  6143. rm -f conftest.err conftest.i conftest.$ac_ext
  6144. done
  6145. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6146. rm -f conftest.i conftest.err conftest.$ac_ext
  6147. if $ac_preproc_ok; then :
  6148. else
  6149. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6150. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6151. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6152. See \`config.log' for more details" "$LINENO" 5; }
  6153. fi
  6154. ac_ext=c
  6155. ac_cpp='$CPP $CPPFLAGS'
  6156. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6157. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6158. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6160. $as_echo_n "checking for ANSI C header files... " >&6; }
  6161. if ${ac_cv_header_stdc+:} false; then :
  6162. $as_echo_n "(cached) " >&6
  6163. else
  6164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6165. /* end confdefs.h. */
  6166. #include <stdlib.h>
  6167. #include <stdarg.h>
  6168. #include <string.h>
  6169. #include <float.h>
  6170. int
  6171. main ()
  6172. {
  6173. ;
  6174. return 0;
  6175. }
  6176. _ACEOF
  6177. if ac_fn_c_try_compile "$LINENO"; then :
  6178. ac_cv_header_stdc=yes
  6179. else
  6180. ac_cv_header_stdc=no
  6181. fi
  6182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6183. if test $ac_cv_header_stdc = yes; then
  6184. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6186. /* end confdefs.h. */
  6187. #include <string.h>
  6188. _ACEOF
  6189. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6190. $EGREP "memchr" >/dev/null 2>&1; then :
  6191. else
  6192. ac_cv_header_stdc=no
  6193. fi
  6194. rm -f conftest*
  6195. fi
  6196. if test $ac_cv_header_stdc = yes; then
  6197. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6199. /* end confdefs.h. */
  6200. #include <stdlib.h>
  6201. _ACEOF
  6202. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6203. $EGREP "free" >/dev/null 2>&1; then :
  6204. else
  6205. ac_cv_header_stdc=no
  6206. fi
  6207. rm -f conftest*
  6208. fi
  6209. if test $ac_cv_header_stdc = yes; then
  6210. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6211. if test "$cross_compiling" = yes; then :
  6212. :
  6213. else
  6214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6215. /* end confdefs.h. */
  6216. #include <ctype.h>
  6217. #include <stdlib.h>
  6218. #if ((' ' & 0x0FF) == 0x020)
  6219. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6220. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6221. #else
  6222. # define ISLOWER(c) \
  6223. (('a' <= (c) && (c) <= 'i') \
  6224. || ('j' <= (c) && (c) <= 'r') \
  6225. || ('s' <= (c) && (c) <= 'z'))
  6226. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6227. #endif
  6228. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6229. int
  6230. main ()
  6231. {
  6232. int i;
  6233. for (i = 0; i < 256; i++)
  6234. if (XOR (islower (i), ISLOWER (i))
  6235. || toupper (i) != TOUPPER (i))
  6236. return 2;
  6237. return 0;
  6238. }
  6239. _ACEOF
  6240. if ac_fn_c_try_run "$LINENO"; then :
  6241. else
  6242. ac_cv_header_stdc=no
  6243. fi
  6244. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6245. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6246. fi
  6247. fi
  6248. fi
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6250. $as_echo "$ac_cv_header_stdc" >&6; }
  6251. if test $ac_cv_header_stdc = yes; then
  6252. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6253. fi
  6254. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6255. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6256. inttypes.h stdint.h unistd.h
  6257. do :
  6258. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6259. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6260. "
  6261. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6262. cat >>confdefs.h <<_ACEOF
  6263. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6264. _ACEOF
  6265. fi
  6266. done
  6267. for ac_header in dlfcn.h
  6268. do :
  6269. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6270. "
  6271. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6272. cat >>confdefs.h <<_ACEOF
  6273. #define HAVE_DLFCN_H 1
  6274. _ACEOF
  6275. fi
  6276. done
  6277. # Set options
  6278. enable_win32_dll=yes
  6279. case $host in
  6280. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6281. if test -n "$ac_tool_prefix"; then
  6282. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6283. set dummy ${ac_tool_prefix}as; ac_word=$2
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6285. $as_echo_n "checking for $ac_word... " >&6; }
  6286. if ${ac_cv_prog_AS+:} false; then :
  6287. $as_echo_n "(cached) " >&6
  6288. else
  6289. if test -n "$AS"; then
  6290. ac_cv_prog_AS="$AS" # Let the user override the test.
  6291. else
  6292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6293. for as_dir in $PATH
  6294. do
  6295. IFS=$as_save_IFS
  6296. test -z "$as_dir" && as_dir=.
  6297. for ac_exec_ext in '' $ac_executable_extensions; do
  6298. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6299. ac_cv_prog_AS="${ac_tool_prefix}as"
  6300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6301. break 2
  6302. fi
  6303. done
  6304. done
  6305. IFS=$as_save_IFS
  6306. fi
  6307. fi
  6308. AS=$ac_cv_prog_AS
  6309. if test -n "$AS"; then
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6311. $as_echo "$AS" >&6; }
  6312. else
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6314. $as_echo "no" >&6; }
  6315. fi
  6316. fi
  6317. if test -z "$ac_cv_prog_AS"; then
  6318. ac_ct_AS=$AS
  6319. # Extract the first word of "as", so it can be a program name with args.
  6320. set dummy as; ac_word=$2
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6322. $as_echo_n "checking for $ac_word... " >&6; }
  6323. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6324. $as_echo_n "(cached) " >&6
  6325. else
  6326. if test -n "$ac_ct_AS"; then
  6327. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6328. else
  6329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6330. for as_dir in $PATH
  6331. do
  6332. IFS=$as_save_IFS
  6333. test -z "$as_dir" && as_dir=.
  6334. for ac_exec_ext in '' $ac_executable_extensions; do
  6335. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6336. ac_cv_prog_ac_ct_AS="as"
  6337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6338. break 2
  6339. fi
  6340. done
  6341. done
  6342. IFS=$as_save_IFS
  6343. fi
  6344. fi
  6345. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6346. if test -n "$ac_ct_AS"; then
  6347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6348. $as_echo "$ac_ct_AS" >&6; }
  6349. else
  6350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6351. $as_echo "no" >&6; }
  6352. fi
  6353. if test "x$ac_ct_AS" = x; then
  6354. AS="false"
  6355. else
  6356. case $cross_compiling:$ac_tool_warned in
  6357. yes:)
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6359. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6360. ac_tool_warned=yes ;;
  6361. esac
  6362. AS=$ac_ct_AS
  6363. fi
  6364. else
  6365. AS="$ac_cv_prog_AS"
  6366. fi
  6367. if test -n "$ac_tool_prefix"; then
  6368. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6369. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6371. $as_echo_n "checking for $ac_word... " >&6; }
  6372. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6373. $as_echo_n "(cached) " >&6
  6374. else
  6375. if test -n "$DLLTOOL"; then
  6376. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6377. else
  6378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6379. for as_dir in $PATH
  6380. do
  6381. IFS=$as_save_IFS
  6382. test -z "$as_dir" && as_dir=.
  6383. for ac_exec_ext in '' $ac_executable_extensions; do
  6384. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6385. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6387. break 2
  6388. fi
  6389. done
  6390. done
  6391. IFS=$as_save_IFS
  6392. fi
  6393. fi
  6394. DLLTOOL=$ac_cv_prog_DLLTOOL
  6395. if test -n "$DLLTOOL"; then
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6397. $as_echo "$DLLTOOL" >&6; }
  6398. else
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6400. $as_echo "no" >&6; }
  6401. fi
  6402. fi
  6403. if test -z "$ac_cv_prog_DLLTOOL"; then
  6404. ac_ct_DLLTOOL=$DLLTOOL
  6405. # Extract the first word of "dlltool", so it can be a program name with args.
  6406. set dummy dlltool; ac_word=$2
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6408. $as_echo_n "checking for $ac_word... " >&6; }
  6409. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6410. $as_echo_n "(cached) " >&6
  6411. else
  6412. if test -n "$ac_ct_DLLTOOL"; then
  6413. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6414. else
  6415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6416. for as_dir in $PATH
  6417. do
  6418. IFS=$as_save_IFS
  6419. test -z "$as_dir" && as_dir=.
  6420. for ac_exec_ext in '' $ac_executable_extensions; do
  6421. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6422. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6423. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6424. break 2
  6425. fi
  6426. done
  6427. done
  6428. IFS=$as_save_IFS
  6429. fi
  6430. fi
  6431. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6432. if test -n "$ac_ct_DLLTOOL"; then
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6434. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6435. else
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6437. $as_echo "no" >&6; }
  6438. fi
  6439. if test "x$ac_ct_DLLTOOL" = x; then
  6440. DLLTOOL="false"
  6441. else
  6442. case $cross_compiling:$ac_tool_warned in
  6443. yes:)
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6445. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6446. ac_tool_warned=yes ;;
  6447. esac
  6448. DLLTOOL=$ac_ct_DLLTOOL
  6449. fi
  6450. else
  6451. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6452. fi
  6453. if test -n "$ac_tool_prefix"; then
  6454. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6455. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6457. $as_echo_n "checking for $ac_word... " >&6; }
  6458. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6459. $as_echo_n "(cached) " >&6
  6460. else
  6461. if test -n "$OBJDUMP"; then
  6462. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6463. else
  6464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6465. for as_dir in $PATH
  6466. do
  6467. IFS=$as_save_IFS
  6468. test -z "$as_dir" && as_dir=.
  6469. for ac_exec_ext in '' $ac_executable_extensions; do
  6470. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6471. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6473. break 2
  6474. fi
  6475. done
  6476. done
  6477. IFS=$as_save_IFS
  6478. fi
  6479. fi
  6480. OBJDUMP=$ac_cv_prog_OBJDUMP
  6481. if test -n "$OBJDUMP"; then
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6483. $as_echo "$OBJDUMP" >&6; }
  6484. else
  6485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6486. $as_echo "no" >&6; }
  6487. fi
  6488. fi
  6489. if test -z "$ac_cv_prog_OBJDUMP"; then
  6490. ac_ct_OBJDUMP=$OBJDUMP
  6491. # Extract the first word of "objdump", so it can be a program name with args.
  6492. set dummy objdump; ac_word=$2
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6494. $as_echo_n "checking for $ac_word... " >&6; }
  6495. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6496. $as_echo_n "(cached) " >&6
  6497. else
  6498. if test -n "$ac_ct_OBJDUMP"; then
  6499. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6500. else
  6501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6502. for as_dir in $PATH
  6503. do
  6504. IFS=$as_save_IFS
  6505. test -z "$as_dir" && as_dir=.
  6506. for ac_exec_ext in '' $ac_executable_extensions; do
  6507. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6508. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6509. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6510. break 2
  6511. fi
  6512. done
  6513. done
  6514. IFS=$as_save_IFS
  6515. fi
  6516. fi
  6517. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6518. if test -n "$ac_ct_OBJDUMP"; then
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6520. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6521. else
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6523. $as_echo "no" >&6; }
  6524. fi
  6525. if test "x$ac_ct_OBJDUMP" = x; then
  6526. OBJDUMP="false"
  6527. else
  6528. case $cross_compiling:$ac_tool_warned in
  6529. yes:)
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6531. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6532. ac_tool_warned=yes ;;
  6533. esac
  6534. OBJDUMP=$ac_ct_OBJDUMP
  6535. fi
  6536. else
  6537. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6538. fi
  6539. ;;
  6540. esac
  6541. test -z "$AS" && AS=as
  6542. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6543. test -z "$OBJDUMP" && OBJDUMP=objdump
  6544. enable_dlopen=no
  6545. # Check whether --enable-shared was given.
  6546. if test "${enable_shared+set}" = set; then :
  6547. enableval=$enable_shared; p=${PACKAGE-default}
  6548. case $enableval in
  6549. yes) enable_shared=yes ;;
  6550. no) enable_shared=no ;;
  6551. *)
  6552. enable_shared=no
  6553. # Look at the argument we got. We use all the common list separators.
  6554. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6555. for pkg in $enableval; do
  6556. IFS="$lt_save_ifs"
  6557. if test "X$pkg" = "X$p"; then
  6558. enable_shared=yes
  6559. fi
  6560. done
  6561. IFS="$lt_save_ifs"
  6562. ;;
  6563. esac
  6564. else
  6565. enable_shared=yes
  6566. fi
  6567. # Check whether --enable-static was given.
  6568. if test "${enable_static+set}" = set; then :
  6569. enableval=$enable_static; p=${PACKAGE-default}
  6570. case $enableval in
  6571. yes) enable_static=yes ;;
  6572. no) enable_static=no ;;
  6573. *)
  6574. enable_static=no
  6575. # Look at the argument we got. We use all the common list separators.
  6576. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6577. for pkg in $enableval; do
  6578. IFS="$lt_save_ifs"
  6579. if test "X$pkg" = "X$p"; then
  6580. enable_static=yes
  6581. fi
  6582. done
  6583. IFS="$lt_save_ifs"
  6584. ;;
  6585. esac
  6586. else
  6587. enable_static=yes
  6588. fi
  6589. # Check whether --with-pic was given.
  6590. if test "${with_pic+set}" = set; then :
  6591. withval=$with_pic; lt_p=${PACKAGE-default}
  6592. case $withval in
  6593. yes|no) pic_mode=$withval ;;
  6594. *)
  6595. pic_mode=default
  6596. # Look at the argument we got. We use all the common list separators.
  6597. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6598. for lt_pkg in $withval; do
  6599. IFS="$lt_save_ifs"
  6600. if test "X$lt_pkg" = "X$lt_p"; then
  6601. pic_mode=yes
  6602. fi
  6603. done
  6604. IFS="$lt_save_ifs"
  6605. ;;
  6606. esac
  6607. else
  6608. pic_mode=default
  6609. fi
  6610. test -z "$pic_mode" && pic_mode=default
  6611. # Check whether --enable-fast-install was given.
  6612. if test "${enable_fast_install+set}" = set; then :
  6613. enableval=$enable_fast_install; p=${PACKAGE-default}
  6614. case $enableval in
  6615. yes) enable_fast_install=yes ;;
  6616. no) enable_fast_install=no ;;
  6617. *)
  6618. enable_fast_install=no
  6619. # Look at the argument we got. We use all the common list separators.
  6620. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6621. for pkg in $enableval; do
  6622. IFS="$lt_save_ifs"
  6623. if test "X$pkg" = "X$p"; then
  6624. enable_fast_install=yes
  6625. fi
  6626. done
  6627. IFS="$lt_save_ifs"
  6628. ;;
  6629. esac
  6630. else
  6631. enable_fast_install=yes
  6632. fi
  6633. # This can be used to rebuild libtool when needed
  6634. LIBTOOL_DEPS="$ltmain"
  6635. # Always use our own libtool.
  6636. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6637. test -z "$LN_S" && LN_S="ln -s"
  6638. if test -n "${ZSH_VERSION+set}" ; then
  6639. setopt NO_GLOB_SUBST
  6640. fi
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6642. $as_echo_n "checking for objdir... " >&6; }
  6643. if ${lt_cv_objdir+:} false; then :
  6644. $as_echo_n "(cached) " >&6
  6645. else
  6646. rm -f .libs 2>/dev/null
  6647. mkdir .libs 2>/dev/null
  6648. if test -d .libs; then
  6649. lt_cv_objdir=.libs
  6650. else
  6651. # MS-DOS does not allow filenames that begin with a dot.
  6652. lt_cv_objdir=_libs
  6653. fi
  6654. rmdir .libs 2>/dev/null
  6655. fi
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6657. $as_echo "$lt_cv_objdir" >&6; }
  6658. objdir=$lt_cv_objdir
  6659. cat >>confdefs.h <<_ACEOF
  6660. #define LT_OBJDIR "$lt_cv_objdir/"
  6661. _ACEOF
  6662. case $host_os in
  6663. aix3*)
  6664. # AIX sometimes has problems with the GCC collect2 program. For some
  6665. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6666. # vanish in a puff of smoke.
  6667. if test "X${COLLECT_NAMES+set}" != Xset; then
  6668. COLLECT_NAMES=
  6669. export COLLECT_NAMES
  6670. fi
  6671. ;;
  6672. esac
  6673. # Global variables:
  6674. ofile=libtool
  6675. can_build_shared=yes
  6676. # All known linkers require a `.a' archive for static linking (except MSVC,
  6677. # which needs '.lib').
  6678. libext=a
  6679. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6680. old_CC="$CC"
  6681. old_CFLAGS="$CFLAGS"
  6682. # Set sane defaults for various variables
  6683. test -z "$CC" && CC=cc
  6684. test -z "$LTCC" && LTCC=$CC
  6685. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6686. test -z "$LD" && LD=ld
  6687. test -z "$ac_objext" && ac_objext=o
  6688. for cc_temp in $compiler""; do
  6689. case $cc_temp in
  6690. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6691. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6692. \-*) ;;
  6693. *) break;;
  6694. esac
  6695. done
  6696. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6697. # Only perform the check for file, if the check method requires it
  6698. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6699. case $deplibs_check_method in
  6700. file_magic*)
  6701. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6703. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6704. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6705. $as_echo_n "(cached) " >&6
  6706. else
  6707. case $MAGIC_CMD in
  6708. [\\/*] | ?:[\\/]*)
  6709. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6710. ;;
  6711. *)
  6712. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6713. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6714. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6715. for ac_dir in $ac_dummy; do
  6716. IFS="$lt_save_ifs"
  6717. test -z "$ac_dir" && ac_dir=.
  6718. if test -f $ac_dir/${ac_tool_prefix}file; then
  6719. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6720. if test -n "$file_magic_test_file"; then
  6721. case $deplibs_check_method in
  6722. "file_magic "*)
  6723. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6724. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6725. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6726. $EGREP "$file_magic_regex" > /dev/null; then
  6727. :
  6728. else
  6729. cat <<_LT_EOF 1>&2
  6730. *** Warning: the command libtool uses to detect shared libraries,
  6731. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6732. *** The result is that libtool may fail to recognize shared libraries
  6733. *** as such. This will affect the creation of libtool libraries that
  6734. *** depend on shared libraries, but programs linked with such libtool
  6735. *** libraries will work regardless of this problem. Nevertheless, you
  6736. *** may want to report the problem to your system manager and/or to
  6737. *** bug-libtool@gnu.org
  6738. _LT_EOF
  6739. fi ;;
  6740. esac
  6741. fi
  6742. break
  6743. fi
  6744. done
  6745. IFS="$lt_save_ifs"
  6746. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6747. ;;
  6748. esac
  6749. fi
  6750. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6751. if test -n "$MAGIC_CMD"; then
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6753. $as_echo "$MAGIC_CMD" >&6; }
  6754. else
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6756. $as_echo "no" >&6; }
  6757. fi
  6758. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6759. if test -n "$ac_tool_prefix"; then
  6760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6761. $as_echo_n "checking for file... " >&6; }
  6762. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6763. $as_echo_n "(cached) " >&6
  6764. else
  6765. case $MAGIC_CMD in
  6766. [\\/*] | ?:[\\/]*)
  6767. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6768. ;;
  6769. *)
  6770. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6771. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6772. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6773. for ac_dir in $ac_dummy; do
  6774. IFS="$lt_save_ifs"
  6775. test -z "$ac_dir" && ac_dir=.
  6776. if test -f $ac_dir/file; then
  6777. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6778. if test -n "$file_magic_test_file"; then
  6779. case $deplibs_check_method in
  6780. "file_magic "*)
  6781. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6782. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6783. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6784. $EGREP "$file_magic_regex" > /dev/null; then
  6785. :
  6786. else
  6787. cat <<_LT_EOF 1>&2
  6788. *** Warning: the command libtool uses to detect shared libraries,
  6789. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6790. *** The result is that libtool may fail to recognize shared libraries
  6791. *** as such. This will affect the creation of libtool libraries that
  6792. *** depend on shared libraries, but programs linked with such libtool
  6793. *** libraries will work regardless of this problem. Nevertheless, you
  6794. *** may want to report the problem to your system manager and/or to
  6795. *** bug-libtool@gnu.org
  6796. _LT_EOF
  6797. fi ;;
  6798. esac
  6799. fi
  6800. break
  6801. fi
  6802. done
  6803. IFS="$lt_save_ifs"
  6804. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6805. ;;
  6806. esac
  6807. fi
  6808. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6809. if test -n "$MAGIC_CMD"; then
  6810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6811. $as_echo "$MAGIC_CMD" >&6; }
  6812. else
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6814. $as_echo "no" >&6; }
  6815. fi
  6816. else
  6817. MAGIC_CMD=:
  6818. fi
  6819. fi
  6820. fi
  6821. ;;
  6822. esac
  6823. # Use C for the default configuration in the libtool script
  6824. lt_save_CC="$CC"
  6825. ac_ext=c
  6826. ac_cpp='$CPP $CPPFLAGS'
  6827. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6828. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6829. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6830. # Source file extension for C test sources.
  6831. ac_ext=c
  6832. # Object file extension for compiled C test sources.
  6833. objext=o
  6834. objext=$objext
  6835. # Code to be used in simple compile tests
  6836. lt_simple_compile_test_code="int some_variable = 0;"
  6837. # Code to be used in simple link tests
  6838. lt_simple_link_test_code='int main(){return(0);}'
  6839. # If no C compiler was specified, use CC.
  6840. LTCC=${LTCC-"$CC"}
  6841. # If no C compiler flags were specified, use CFLAGS.
  6842. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6843. # Allow CC to be a program name with arguments.
  6844. compiler=$CC
  6845. # Save the default compiler, since it gets overwritten when the other
  6846. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6847. compiler_DEFAULT=$CC
  6848. # save warnings/boilerplate of simple test code
  6849. ac_outfile=conftest.$ac_objext
  6850. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6851. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6852. _lt_compiler_boilerplate=`cat conftest.err`
  6853. $RM conftest*
  6854. ac_outfile=conftest.$ac_objext
  6855. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6856. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6857. _lt_linker_boilerplate=`cat conftest.err`
  6858. $RM -r conftest*
  6859. ## CAVEAT EMPTOR:
  6860. ## There is no encapsulation within the following macros, do not change
  6861. ## the running order or otherwise move them around unless you know exactly
  6862. ## what you are doing...
  6863. if test -n "$compiler"; then
  6864. lt_prog_compiler_no_builtin_flag=
  6865. if test "$GCC" = yes; then
  6866. case $cc_basename in
  6867. nvcc*)
  6868. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6869. *)
  6870. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6871. esac
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6873. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6874. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6875. $as_echo_n "(cached) " >&6
  6876. else
  6877. lt_cv_prog_compiler_rtti_exceptions=no
  6878. ac_outfile=conftest.$ac_objext
  6879. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6880. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6881. # Insert the option either (1) after the last *FLAGS variable, or
  6882. # (2) before a word containing "conftest.", or (3) at the end.
  6883. # Note that $ac_compile itself does not contain backslashes and begins
  6884. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6885. # The option is referenced via a variable to avoid confusing sed.
  6886. lt_compile=`echo "$ac_compile" | $SED \
  6887. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6888. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6889. -e 's:$: $lt_compiler_flag:'`
  6890. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6891. (eval "$lt_compile" 2>conftest.err)
  6892. ac_status=$?
  6893. cat conftest.err >&5
  6894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6895. if (exit $ac_status) && test -s "$ac_outfile"; then
  6896. # The compiler can only warn and ignore the option if not recognized
  6897. # So say no if there are warnings other than the usual output.
  6898. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6899. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6900. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6901. lt_cv_prog_compiler_rtti_exceptions=yes
  6902. fi
  6903. fi
  6904. $RM conftest*
  6905. fi
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6907. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6908. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6909. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6910. else
  6911. :
  6912. fi
  6913. fi
  6914. lt_prog_compiler_wl=
  6915. lt_prog_compiler_pic=
  6916. lt_prog_compiler_static=
  6917. if test "$GCC" = yes; then
  6918. lt_prog_compiler_wl='-Wl,'
  6919. lt_prog_compiler_static='-static'
  6920. case $host_os in
  6921. aix*)
  6922. # All AIX code is PIC.
  6923. if test "$host_cpu" = ia64; then
  6924. # AIX 5 now supports IA64 processor
  6925. lt_prog_compiler_static='-Bstatic'
  6926. fi
  6927. ;;
  6928. amigaos*)
  6929. case $host_cpu in
  6930. powerpc)
  6931. # see comment about AmigaOS4 .so support
  6932. lt_prog_compiler_pic='-fPIC'
  6933. ;;
  6934. m68k)
  6935. # FIXME: we need at least 68020 code to build shared libraries, but
  6936. # adding the `-m68020' flag to GCC prevents building anything better,
  6937. # like `-m68040'.
  6938. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6939. ;;
  6940. esac
  6941. ;;
  6942. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6943. # PIC is the default for these OSes.
  6944. ;;
  6945. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6946. # This hack is so that the source file can tell whether it is being
  6947. # built for inclusion in a dll (and should export symbols for example).
  6948. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6949. # (--disable-auto-import) libraries
  6950. lt_prog_compiler_pic='-DDLL_EXPORT'
  6951. ;;
  6952. darwin* | rhapsody*)
  6953. # PIC is the default on this platform
  6954. # Common symbols not allowed in MH_DYLIB files
  6955. lt_prog_compiler_pic='-fno-common'
  6956. ;;
  6957. haiku*)
  6958. # PIC is the default for Haiku.
  6959. # The "-static" flag exists, but is broken.
  6960. lt_prog_compiler_static=
  6961. ;;
  6962. hpux*)
  6963. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6964. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6965. # sets the default TLS model and affects inlining.
  6966. case $host_cpu in
  6967. hppa*64*)
  6968. # +Z the default
  6969. ;;
  6970. *)
  6971. lt_prog_compiler_pic='-fPIC'
  6972. ;;
  6973. esac
  6974. ;;
  6975. interix[3-9]*)
  6976. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6977. # Instead, we relocate shared libraries at runtime.
  6978. ;;
  6979. msdosdjgpp*)
  6980. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6981. # on systems that don't support them.
  6982. lt_prog_compiler_can_build_shared=no
  6983. enable_shared=no
  6984. ;;
  6985. *nto* | *qnx*)
  6986. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6987. # it will coredump.
  6988. lt_prog_compiler_pic='-fPIC -shared'
  6989. ;;
  6990. sysv4*MP*)
  6991. if test -d /usr/nec; then
  6992. lt_prog_compiler_pic=-Kconform_pic
  6993. fi
  6994. ;;
  6995. *)
  6996. lt_prog_compiler_pic='-fPIC'
  6997. ;;
  6998. esac
  6999. case $cc_basename in
  7000. nvcc*) # Cuda Compiler Driver 2.2
  7001. lt_prog_compiler_wl='-Xlinker '
  7002. if test -n "$lt_prog_compiler_pic"; then
  7003. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7004. fi
  7005. ;;
  7006. esac
  7007. else
  7008. # PORTME Check for flag to pass linker flags through the system compiler.
  7009. case $host_os in
  7010. aix*)
  7011. lt_prog_compiler_wl='-Wl,'
  7012. if test "$host_cpu" = ia64; then
  7013. # AIX 5 now supports IA64 processor
  7014. lt_prog_compiler_static='-Bstatic'
  7015. else
  7016. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7017. fi
  7018. ;;
  7019. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7020. # This hack is so that the source file can tell whether it is being
  7021. # built for inclusion in a dll (and should export symbols for example).
  7022. lt_prog_compiler_pic='-DDLL_EXPORT'
  7023. ;;
  7024. hpux9* | hpux10* | hpux11*)
  7025. lt_prog_compiler_wl='-Wl,'
  7026. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7027. # not for PA HP-UX.
  7028. case $host_cpu in
  7029. hppa*64*|ia64*)
  7030. # +Z the default
  7031. ;;
  7032. *)
  7033. lt_prog_compiler_pic='+Z'
  7034. ;;
  7035. esac
  7036. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7037. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7038. ;;
  7039. irix5* | irix6* | nonstopux*)
  7040. lt_prog_compiler_wl='-Wl,'
  7041. # PIC (with -KPIC) is the default.
  7042. lt_prog_compiler_static='-non_shared'
  7043. ;;
  7044. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7045. case $cc_basename in
  7046. # old Intel for x86_64 which still supported -KPIC.
  7047. ecc*)
  7048. lt_prog_compiler_wl='-Wl,'
  7049. lt_prog_compiler_pic='-KPIC'
  7050. lt_prog_compiler_static='-static'
  7051. ;;
  7052. # icc used to be incompatible with GCC.
  7053. # ICC 10 doesn't accept -KPIC any more.
  7054. icc* | ifort*)
  7055. lt_prog_compiler_wl='-Wl,'
  7056. lt_prog_compiler_pic='-fPIC'
  7057. lt_prog_compiler_static='-static'
  7058. ;;
  7059. # Lahey Fortran 8.1.
  7060. lf95*)
  7061. lt_prog_compiler_wl='-Wl,'
  7062. lt_prog_compiler_pic='--shared'
  7063. lt_prog_compiler_static='--static'
  7064. ;;
  7065. nagfor*)
  7066. # NAG Fortran compiler
  7067. lt_prog_compiler_wl='-Wl,-Wl,,'
  7068. lt_prog_compiler_pic='-PIC'
  7069. lt_prog_compiler_static='-Bstatic'
  7070. ;;
  7071. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7072. # Portland Group compilers (*not* the Pentium gcc compiler,
  7073. # which looks to be a dead project)
  7074. lt_prog_compiler_wl='-Wl,'
  7075. lt_prog_compiler_pic='-fpic'
  7076. lt_prog_compiler_static='-Bstatic'
  7077. ;;
  7078. ccc*)
  7079. lt_prog_compiler_wl='-Wl,'
  7080. # All Alpha code is PIC.
  7081. lt_prog_compiler_static='-non_shared'
  7082. ;;
  7083. xl* | bgxl* | bgf* | mpixl*)
  7084. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7085. lt_prog_compiler_wl='-Wl,'
  7086. lt_prog_compiler_pic='-qpic'
  7087. lt_prog_compiler_static='-qstaticlink'
  7088. ;;
  7089. *)
  7090. case `$CC -V 2>&1 | sed 5q` in
  7091. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7092. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7093. lt_prog_compiler_pic='-KPIC'
  7094. lt_prog_compiler_static='-Bstatic'
  7095. lt_prog_compiler_wl=''
  7096. ;;
  7097. *Sun\ F* | *Sun*Fortran*)
  7098. lt_prog_compiler_pic='-KPIC'
  7099. lt_prog_compiler_static='-Bstatic'
  7100. lt_prog_compiler_wl='-Qoption ld '
  7101. ;;
  7102. *Sun\ C*)
  7103. # Sun C 5.9
  7104. lt_prog_compiler_pic='-KPIC'
  7105. lt_prog_compiler_static='-Bstatic'
  7106. lt_prog_compiler_wl='-Wl,'
  7107. ;;
  7108. *Intel*\ [CF]*Compiler*)
  7109. lt_prog_compiler_wl='-Wl,'
  7110. lt_prog_compiler_pic='-fPIC'
  7111. lt_prog_compiler_static='-static'
  7112. ;;
  7113. *Portland\ Group*)
  7114. lt_prog_compiler_wl='-Wl,'
  7115. lt_prog_compiler_pic='-fpic'
  7116. lt_prog_compiler_static='-Bstatic'
  7117. ;;
  7118. esac
  7119. ;;
  7120. esac
  7121. ;;
  7122. newsos6)
  7123. lt_prog_compiler_pic='-KPIC'
  7124. lt_prog_compiler_static='-Bstatic'
  7125. ;;
  7126. *nto* | *qnx*)
  7127. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7128. # it will coredump.
  7129. lt_prog_compiler_pic='-fPIC -shared'
  7130. ;;
  7131. osf3* | osf4* | osf5*)
  7132. lt_prog_compiler_wl='-Wl,'
  7133. # All OSF/1 code is PIC.
  7134. lt_prog_compiler_static='-non_shared'
  7135. ;;
  7136. rdos*)
  7137. lt_prog_compiler_static='-non_shared'
  7138. ;;
  7139. solaris*)
  7140. lt_prog_compiler_pic='-KPIC'
  7141. lt_prog_compiler_static='-Bstatic'
  7142. case $cc_basename in
  7143. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7144. lt_prog_compiler_wl='-Qoption ld ';;
  7145. *)
  7146. lt_prog_compiler_wl='-Wl,';;
  7147. esac
  7148. ;;
  7149. sunos4*)
  7150. lt_prog_compiler_wl='-Qoption ld '
  7151. lt_prog_compiler_pic='-PIC'
  7152. lt_prog_compiler_static='-Bstatic'
  7153. ;;
  7154. sysv4 | sysv4.2uw2* | sysv4.3*)
  7155. lt_prog_compiler_wl='-Wl,'
  7156. lt_prog_compiler_pic='-KPIC'
  7157. lt_prog_compiler_static='-Bstatic'
  7158. ;;
  7159. sysv4*MP*)
  7160. if test -d /usr/nec ;then
  7161. lt_prog_compiler_pic='-Kconform_pic'
  7162. lt_prog_compiler_static='-Bstatic'
  7163. fi
  7164. ;;
  7165. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7166. lt_prog_compiler_wl='-Wl,'
  7167. lt_prog_compiler_pic='-KPIC'
  7168. lt_prog_compiler_static='-Bstatic'
  7169. ;;
  7170. unicos*)
  7171. lt_prog_compiler_wl='-Wl,'
  7172. lt_prog_compiler_can_build_shared=no
  7173. ;;
  7174. uts4*)
  7175. lt_prog_compiler_pic='-pic'
  7176. lt_prog_compiler_static='-Bstatic'
  7177. ;;
  7178. *)
  7179. lt_prog_compiler_can_build_shared=no
  7180. ;;
  7181. esac
  7182. fi
  7183. case $host_os in
  7184. # For platforms which do not support PIC, -DPIC is meaningless:
  7185. *djgpp*)
  7186. lt_prog_compiler_pic=
  7187. ;;
  7188. *)
  7189. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7190. ;;
  7191. esac
  7192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7193. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7194. if ${lt_cv_prog_compiler_pic+:} false; then :
  7195. $as_echo_n "(cached) " >&6
  7196. else
  7197. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7198. fi
  7199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7200. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7201. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7202. #
  7203. # Check to make sure the PIC flag actually works.
  7204. #
  7205. if test -n "$lt_prog_compiler_pic"; then
  7206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7207. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7208. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7209. $as_echo_n "(cached) " >&6
  7210. else
  7211. lt_cv_prog_compiler_pic_works=no
  7212. ac_outfile=conftest.$ac_objext
  7213. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7214. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7215. # Insert the option either (1) after the last *FLAGS variable, or
  7216. # (2) before a word containing "conftest.", or (3) at the end.
  7217. # Note that $ac_compile itself does not contain backslashes and begins
  7218. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7219. # The option is referenced via a variable to avoid confusing sed.
  7220. lt_compile=`echo "$ac_compile" | $SED \
  7221. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7222. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7223. -e 's:$: $lt_compiler_flag:'`
  7224. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7225. (eval "$lt_compile" 2>conftest.err)
  7226. ac_status=$?
  7227. cat conftest.err >&5
  7228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7229. if (exit $ac_status) && test -s "$ac_outfile"; then
  7230. # The compiler can only warn and ignore the option if not recognized
  7231. # So say no if there are warnings other than the usual output.
  7232. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7233. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7234. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7235. lt_cv_prog_compiler_pic_works=yes
  7236. fi
  7237. fi
  7238. $RM conftest*
  7239. fi
  7240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7241. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7242. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7243. case $lt_prog_compiler_pic in
  7244. "" | " "*) ;;
  7245. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7246. esac
  7247. else
  7248. lt_prog_compiler_pic=
  7249. lt_prog_compiler_can_build_shared=no
  7250. fi
  7251. fi
  7252. #
  7253. # Check to make sure the static flag actually works.
  7254. #
  7255. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7257. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7258. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7259. $as_echo_n "(cached) " >&6
  7260. else
  7261. lt_cv_prog_compiler_static_works=no
  7262. save_LDFLAGS="$LDFLAGS"
  7263. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7264. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7265. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7266. # The linker can only warn and ignore the option if not recognized
  7267. # So say no if there are warnings
  7268. if test -s conftest.err; then
  7269. # Append any errors to the config.log.
  7270. cat conftest.err 1>&5
  7271. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7272. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7273. if diff conftest.exp conftest.er2 >/dev/null; then
  7274. lt_cv_prog_compiler_static_works=yes
  7275. fi
  7276. else
  7277. lt_cv_prog_compiler_static_works=yes
  7278. fi
  7279. fi
  7280. $RM -r conftest*
  7281. LDFLAGS="$save_LDFLAGS"
  7282. fi
  7283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7284. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7285. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7286. :
  7287. else
  7288. lt_prog_compiler_static=
  7289. fi
  7290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7291. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7292. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7293. $as_echo_n "(cached) " >&6
  7294. else
  7295. lt_cv_prog_compiler_c_o=no
  7296. $RM -r conftest 2>/dev/null
  7297. mkdir conftest
  7298. cd conftest
  7299. mkdir out
  7300. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7301. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7302. # Insert the option either (1) after the last *FLAGS variable, or
  7303. # (2) before a word containing "conftest.", or (3) at the end.
  7304. # Note that $ac_compile itself does not contain backslashes and begins
  7305. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7306. lt_compile=`echo "$ac_compile" | $SED \
  7307. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7308. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7309. -e 's:$: $lt_compiler_flag:'`
  7310. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7311. (eval "$lt_compile" 2>out/conftest.err)
  7312. ac_status=$?
  7313. cat out/conftest.err >&5
  7314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7315. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7316. then
  7317. # The compiler can only warn and ignore the option if not recognized
  7318. # So say no if there are warnings
  7319. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7320. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7321. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7322. lt_cv_prog_compiler_c_o=yes
  7323. fi
  7324. fi
  7325. chmod u+w . 2>&5
  7326. $RM conftest*
  7327. # SGI C++ compiler will create directory out/ii_files/ for
  7328. # template instantiation
  7329. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7330. $RM out/* && rmdir out
  7331. cd ..
  7332. $RM -r conftest
  7333. $RM conftest*
  7334. fi
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7336. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7338. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7339. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7340. $as_echo_n "(cached) " >&6
  7341. else
  7342. lt_cv_prog_compiler_c_o=no
  7343. $RM -r conftest 2>/dev/null
  7344. mkdir conftest
  7345. cd conftest
  7346. mkdir out
  7347. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7348. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7349. # Insert the option either (1) after the last *FLAGS variable, or
  7350. # (2) before a word containing "conftest.", or (3) at the end.
  7351. # Note that $ac_compile itself does not contain backslashes and begins
  7352. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7353. lt_compile=`echo "$ac_compile" | $SED \
  7354. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7355. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7356. -e 's:$: $lt_compiler_flag:'`
  7357. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7358. (eval "$lt_compile" 2>out/conftest.err)
  7359. ac_status=$?
  7360. cat out/conftest.err >&5
  7361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7362. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7363. then
  7364. # The compiler can only warn and ignore the option if not recognized
  7365. # So say no if there are warnings
  7366. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7367. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7368. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7369. lt_cv_prog_compiler_c_o=yes
  7370. fi
  7371. fi
  7372. chmod u+w . 2>&5
  7373. $RM conftest*
  7374. # SGI C++ compiler will create directory out/ii_files/ for
  7375. # template instantiation
  7376. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7377. $RM out/* && rmdir out
  7378. cd ..
  7379. $RM -r conftest
  7380. $RM conftest*
  7381. fi
  7382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7383. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7384. hard_links="nottested"
  7385. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7386. # do not overwrite the value of need_locks provided by the user
  7387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7388. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7389. hard_links=yes
  7390. $RM conftest*
  7391. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7392. touch conftest.a
  7393. ln conftest.a conftest.b 2>&5 || hard_links=no
  7394. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7396. $as_echo "$hard_links" >&6; }
  7397. if test "$hard_links" = no; then
  7398. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7399. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7400. need_locks=warn
  7401. fi
  7402. else
  7403. need_locks=no
  7404. fi
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7406. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7407. runpath_var=
  7408. allow_undefined_flag=
  7409. always_export_symbols=no
  7410. archive_cmds=
  7411. archive_expsym_cmds=
  7412. compiler_needs_object=no
  7413. enable_shared_with_static_runtimes=no
  7414. export_dynamic_flag_spec=
  7415. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7416. hardcode_automatic=no
  7417. hardcode_direct=no
  7418. hardcode_direct_absolute=no
  7419. hardcode_libdir_flag_spec=
  7420. hardcode_libdir_separator=
  7421. hardcode_minus_L=no
  7422. hardcode_shlibpath_var=unsupported
  7423. inherit_rpath=no
  7424. link_all_deplibs=unknown
  7425. module_cmds=
  7426. module_expsym_cmds=
  7427. old_archive_from_new_cmds=
  7428. old_archive_from_expsyms_cmds=
  7429. thread_safe_flag_spec=
  7430. whole_archive_flag_spec=
  7431. # include_expsyms should be a list of space-separated symbols to be *always*
  7432. # included in the symbol list
  7433. include_expsyms=
  7434. # exclude_expsyms can be an extended regexp of symbols to exclude
  7435. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7436. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7437. # as well as any symbol that contains `d'.
  7438. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7439. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7440. # platforms (ab)use it in PIC code, but their linkers get confused if
  7441. # the symbol is explicitly referenced. Since portable code cannot
  7442. # rely on this symbol name, it's probably fine to never include it in
  7443. # preloaded symbol tables.
  7444. # Exclude shared library initialization/finalization symbols.
  7445. extract_expsyms_cmds=
  7446. case $host_os in
  7447. cygwin* | mingw* | pw32* | cegcc*)
  7448. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7449. # When not using gcc, we currently assume that we are using
  7450. # Microsoft Visual C++.
  7451. if test "$GCC" != yes; then
  7452. with_gnu_ld=no
  7453. fi
  7454. ;;
  7455. interix*)
  7456. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7457. with_gnu_ld=yes
  7458. ;;
  7459. openbsd*)
  7460. with_gnu_ld=no
  7461. ;;
  7462. esac
  7463. ld_shlibs=yes
  7464. # On some targets, GNU ld is compatible enough with the native linker
  7465. # that we're better off using the native interface for both.
  7466. lt_use_gnu_ld_interface=no
  7467. if test "$with_gnu_ld" = yes; then
  7468. case $host_os in
  7469. aix*)
  7470. # The AIX port of GNU ld has always aspired to compatibility
  7471. # with the native linker. However, as the warning in the GNU ld
  7472. # block says, versions before 2.19.5* couldn't really create working
  7473. # shared libraries, regardless of the interface used.
  7474. case `$LD -v 2>&1` in
  7475. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7476. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7477. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7478. *)
  7479. lt_use_gnu_ld_interface=yes
  7480. ;;
  7481. esac
  7482. ;;
  7483. *)
  7484. lt_use_gnu_ld_interface=yes
  7485. ;;
  7486. esac
  7487. fi
  7488. if test "$lt_use_gnu_ld_interface" = yes; then
  7489. # If archive_cmds runs LD, not CC, wlarc should be empty
  7490. wlarc='${wl}'
  7491. # Set some defaults for GNU ld with shared library support. These
  7492. # are reset later if shared libraries are not supported. Putting them
  7493. # here allows them to be overridden if necessary.
  7494. runpath_var=LD_RUN_PATH
  7495. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7496. export_dynamic_flag_spec='${wl}--export-dynamic'
  7497. # ancient GNU ld didn't support --whole-archive et. al.
  7498. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7499. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7500. else
  7501. whole_archive_flag_spec=
  7502. fi
  7503. supports_anon_versioning=no
  7504. case `$LD -v 2>&1` in
  7505. *GNU\ gold*) supports_anon_versioning=yes ;;
  7506. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7507. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7508. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7509. *\ 2.11.*) ;; # other 2.11 versions
  7510. *) supports_anon_versioning=yes ;;
  7511. esac
  7512. # See if GNU ld supports shared libraries.
  7513. case $host_os in
  7514. aix[3-9]*)
  7515. # On AIX/PPC, the GNU linker is very broken
  7516. if test "$host_cpu" != ia64; then
  7517. ld_shlibs=no
  7518. cat <<_LT_EOF 1>&2
  7519. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7520. *** to be unable to reliably create shared libraries on AIX.
  7521. *** Therefore, libtool is disabling shared libraries support. If you
  7522. *** really care for shared libraries, you may want to install binutils
  7523. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7524. *** You will then need to restart the configuration process.
  7525. _LT_EOF
  7526. fi
  7527. ;;
  7528. amigaos*)
  7529. case $host_cpu in
  7530. powerpc)
  7531. # see comment about AmigaOS4 .so support
  7532. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7533. archive_expsym_cmds=''
  7534. ;;
  7535. m68k)
  7536. 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)'
  7537. hardcode_libdir_flag_spec='-L$libdir'
  7538. hardcode_minus_L=yes
  7539. ;;
  7540. esac
  7541. ;;
  7542. beos*)
  7543. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7544. allow_undefined_flag=unsupported
  7545. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7546. # support --undefined. This deserves some investigation. FIXME
  7547. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7548. else
  7549. ld_shlibs=no
  7550. fi
  7551. ;;
  7552. cygwin* | mingw* | pw32* | cegcc*)
  7553. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7554. # as there is no search path for DLLs.
  7555. hardcode_libdir_flag_spec='-L$libdir'
  7556. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7557. allow_undefined_flag=unsupported
  7558. always_export_symbols=no
  7559. enable_shared_with_static_runtimes=yes
  7560. 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'
  7561. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7562. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7563. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7564. # If the export-symbols file already is a .def file (1st line
  7565. # is EXPORTS), use it as is; otherwise, prepend...
  7566. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7567. cp $export_symbols $output_objdir/$soname.def;
  7568. else
  7569. echo EXPORTS > $output_objdir/$soname.def;
  7570. cat $export_symbols >> $output_objdir/$soname.def;
  7571. fi~
  7572. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7573. else
  7574. ld_shlibs=no
  7575. fi
  7576. ;;
  7577. haiku*)
  7578. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7579. link_all_deplibs=yes
  7580. ;;
  7581. interix[3-9]*)
  7582. hardcode_direct=no
  7583. hardcode_shlibpath_var=no
  7584. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7585. export_dynamic_flag_spec='${wl}-E'
  7586. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7587. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7588. # default) and relocated if they conflict, which is a slow very memory
  7589. # consuming and fragmenting process. To avoid this, we pick a random,
  7590. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7591. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7592. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7593. 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'
  7594. ;;
  7595. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7596. tmp_diet=no
  7597. if test "$host_os" = linux-dietlibc; then
  7598. case $cc_basename in
  7599. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7600. esac
  7601. fi
  7602. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7603. && test "$tmp_diet" = no
  7604. then
  7605. tmp_addflag=' $pic_flag'
  7606. tmp_sharedflag='-shared'
  7607. case $cc_basename,$host_cpu in
  7608. pgcc*) # Portland Group C compiler
  7609. 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'
  7610. tmp_addflag=' $pic_flag'
  7611. ;;
  7612. pgf77* | pgf90* | pgf95* | pgfortran*)
  7613. # Portland Group f77 and f90 compilers
  7614. 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'
  7615. tmp_addflag=' $pic_flag -Mnomain' ;;
  7616. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7617. tmp_addflag=' -i_dynamic' ;;
  7618. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7619. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7620. ifc* | ifort*) # Intel Fortran compiler
  7621. tmp_addflag=' -nofor_main' ;;
  7622. lf95*) # Lahey Fortran 8.1
  7623. whole_archive_flag_spec=
  7624. tmp_sharedflag='--shared' ;;
  7625. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7626. tmp_sharedflag='-qmkshrobj'
  7627. tmp_addflag= ;;
  7628. nvcc*) # Cuda Compiler Driver 2.2
  7629. 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'
  7630. compiler_needs_object=yes
  7631. ;;
  7632. esac
  7633. case `$CC -V 2>&1 | sed 5q` in
  7634. *Sun\ C*) # Sun C 5.9
  7635. 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'
  7636. compiler_needs_object=yes
  7637. tmp_sharedflag='-G' ;;
  7638. *Sun\ F*) # Sun Fortran 8.3
  7639. tmp_sharedflag='-G' ;;
  7640. esac
  7641. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7642. if test "x$supports_anon_versioning" = xyes; then
  7643. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7644. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7645. echo "local: *; };" >> $output_objdir/$libname.ver~
  7646. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7647. fi
  7648. case $cc_basename in
  7649. xlf* | bgf* | bgxlf* | mpixlf*)
  7650. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7651. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7652. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7653. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7654. if test "x$supports_anon_versioning" = xyes; then
  7655. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7656. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7657. echo "local: *; };" >> $output_objdir/$libname.ver~
  7658. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7659. fi
  7660. ;;
  7661. esac
  7662. else
  7663. ld_shlibs=no
  7664. fi
  7665. ;;
  7666. netbsd*)
  7667. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7668. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7669. wlarc=
  7670. else
  7671. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7672. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7673. fi
  7674. ;;
  7675. solaris*)
  7676. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7677. ld_shlibs=no
  7678. cat <<_LT_EOF 1>&2
  7679. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7680. *** create shared libraries on Solaris systems. Therefore, libtool
  7681. *** is disabling shared libraries support. We urge you to upgrade GNU
  7682. *** binutils to release 2.9.1 or newer. Another option is to modify
  7683. *** your PATH or compiler configuration so that the native linker is
  7684. *** used, and then restart.
  7685. _LT_EOF
  7686. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7687. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7688. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7689. else
  7690. ld_shlibs=no
  7691. fi
  7692. ;;
  7693. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7694. case `$LD -v 2>&1` in
  7695. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7696. ld_shlibs=no
  7697. cat <<_LT_EOF 1>&2
  7698. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7699. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7700. *** is disabling shared libraries support. We urge you to upgrade GNU
  7701. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7702. *** your PATH or compiler configuration so that the native linker is
  7703. *** used, and then restart.
  7704. _LT_EOF
  7705. ;;
  7706. *)
  7707. # For security reasons, it is highly recommended that you always
  7708. # use absolute paths for naming shared libraries, and exclude the
  7709. # DT_RUNPATH tag from executables and libraries. But doing so
  7710. # requires that you compile everything twice, which is a pain.
  7711. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7712. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7713. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7714. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7715. else
  7716. ld_shlibs=no
  7717. fi
  7718. ;;
  7719. esac
  7720. ;;
  7721. sunos4*)
  7722. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7723. wlarc=
  7724. hardcode_direct=yes
  7725. hardcode_shlibpath_var=no
  7726. ;;
  7727. *)
  7728. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7729. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7730. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7731. else
  7732. ld_shlibs=no
  7733. fi
  7734. ;;
  7735. esac
  7736. if test "$ld_shlibs" = no; then
  7737. runpath_var=
  7738. hardcode_libdir_flag_spec=
  7739. export_dynamic_flag_spec=
  7740. whole_archive_flag_spec=
  7741. fi
  7742. else
  7743. # PORTME fill in a description of your system's linker (not GNU ld)
  7744. case $host_os in
  7745. aix3*)
  7746. allow_undefined_flag=unsupported
  7747. always_export_symbols=yes
  7748. 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'
  7749. # Note: this linker hardcodes the directories in LIBPATH if there
  7750. # are no directories specified by -L.
  7751. hardcode_minus_L=yes
  7752. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7753. # Neither direct hardcoding nor static linking is supported with a
  7754. # broken collect2.
  7755. hardcode_direct=unsupported
  7756. fi
  7757. ;;
  7758. aix[4-9]*)
  7759. if test "$host_cpu" = ia64; then
  7760. # On IA64, the linker does run time linking by default, so we don't
  7761. # have to do anything special.
  7762. aix_use_runtimelinking=no
  7763. exp_sym_flag='-Bexport'
  7764. no_entry_flag=""
  7765. else
  7766. # If we're using GNU nm, then we don't want the "-C" option.
  7767. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7768. # Also, AIX nm treats weak defined symbols like other global
  7769. # defined symbols, whereas GNU nm marks them as "W".
  7770. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7771. 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'
  7772. else
  7773. 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'
  7774. fi
  7775. aix_use_runtimelinking=no
  7776. # Test if we are trying to use run time linking or normal
  7777. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7778. # need to do runtime linking.
  7779. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7780. for ld_flag in $LDFLAGS; do
  7781. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7782. aix_use_runtimelinking=yes
  7783. break
  7784. fi
  7785. done
  7786. ;;
  7787. esac
  7788. exp_sym_flag='-bexport'
  7789. no_entry_flag='-bnoentry'
  7790. fi
  7791. # When large executables or shared objects are built, AIX ld can
  7792. # have problems creating the table of contents. If linking a library
  7793. # or program results in "error TOC overflow" add -mminimal-toc to
  7794. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7795. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7796. archive_cmds=''
  7797. hardcode_direct=yes
  7798. hardcode_direct_absolute=yes
  7799. hardcode_libdir_separator=':'
  7800. link_all_deplibs=yes
  7801. file_list_spec='${wl}-f,'
  7802. if test "$GCC" = yes; then
  7803. case $host_os in aix4.[012]|aix4.[012].*)
  7804. # We only want to do this on AIX 4.2 and lower, the check
  7805. # below for broken collect2 doesn't work under 4.3+
  7806. collect2name=`${CC} -print-prog-name=collect2`
  7807. if test -f "$collect2name" &&
  7808. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7809. then
  7810. # We have reworked collect2
  7811. :
  7812. else
  7813. # We have old collect2
  7814. hardcode_direct=unsupported
  7815. # It fails to find uninstalled libraries when the uninstalled
  7816. # path is not listed in the libpath. Setting hardcode_minus_L
  7817. # to unsupported forces relinking
  7818. hardcode_minus_L=yes
  7819. hardcode_libdir_flag_spec='-L$libdir'
  7820. hardcode_libdir_separator=
  7821. fi
  7822. ;;
  7823. esac
  7824. shared_flag='-shared'
  7825. if test "$aix_use_runtimelinking" = yes; then
  7826. shared_flag="$shared_flag "'${wl}-G'
  7827. fi
  7828. else
  7829. # not using gcc
  7830. if test "$host_cpu" = ia64; then
  7831. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7832. # chokes on -Wl,-G. The following line is correct:
  7833. shared_flag='-G'
  7834. else
  7835. if test "$aix_use_runtimelinking" = yes; then
  7836. shared_flag='${wl}-G'
  7837. else
  7838. shared_flag='${wl}-bM:SRE'
  7839. fi
  7840. fi
  7841. fi
  7842. export_dynamic_flag_spec='${wl}-bexpall'
  7843. # It seems that -bexpall does not export symbols beginning with
  7844. # underscore (_), so it is better to generate a list of symbols to export.
  7845. always_export_symbols=yes
  7846. if test "$aix_use_runtimelinking" = yes; then
  7847. # Warning - without using the other runtime loading flags (-brtl),
  7848. # -berok will link without error, but may produce a broken library.
  7849. allow_undefined_flag='-berok'
  7850. # Determine the default libpath from the value encoded in an
  7851. # empty executable.
  7852. if test "${lt_cv_aix_libpath+set}" = set; then
  7853. aix_libpath=$lt_cv_aix_libpath
  7854. else
  7855. if ${lt_cv_aix_libpath_+:} false; then :
  7856. $as_echo_n "(cached) " >&6
  7857. else
  7858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7859. /* end confdefs.h. */
  7860. int
  7861. main ()
  7862. {
  7863. ;
  7864. return 0;
  7865. }
  7866. _ACEOF
  7867. if ac_fn_c_try_link "$LINENO"; then :
  7868. lt_aix_libpath_sed='
  7869. /Import File Strings/,/^$/ {
  7870. /^0/ {
  7871. s/^0 *\([^ ]*\) *$/\1/
  7872. p
  7873. }
  7874. }'
  7875. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7876. # Check for a 64-bit object if we didn't find anything.
  7877. if test -z "$lt_cv_aix_libpath_"; then
  7878. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7879. fi
  7880. fi
  7881. rm -f core conftest.err conftest.$ac_objext \
  7882. conftest$ac_exeext conftest.$ac_ext
  7883. if test -z "$lt_cv_aix_libpath_"; then
  7884. lt_cv_aix_libpath_="/usr/lib:/lib"
  7885. fi
  7886. fi
  7887. aix_libpath=$lt_cv_aix_libpath_
  7888. fi
  7889. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7890. 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"
  7891. else
  7892. if test "$host_cpu" = ia64; then
  7893. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7894. allow_undefined_flag="-z nodefs"
  7895. 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"
  7896. else
  7897. # Determine the default libpath from the value encoded in an
  7898. # empty executable.
  7899. if test "${lt_cv_aix_libpath+set}" = set; then
  7900. aix_libpath=$lt_cv_aix_libpath
  7901. else
  7902. if ${lt_cv_aix_libpath_+:} false; then :
  7903. $as_echo_n "(cached) " >&6
  7904. else
  7905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7906. /* end confdefs.h. */
  7907. int
  7908. main ()
  7909. {
  7910. ;
  7911. return 0;
  7912. }
  7913. _ACEOF
  7914. if ac_fn_c_try_link "$LINENO"; then :
  7915. lt_aix_libpath_sed='
  7916. /Import File Strings/,/^$/ {
  7917. /^0/ {
  7918. s/^0 *\([^ ]*\) *$/\1/
  7919. p
  7920. }
  7921. }'
  7922. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7923. # Check for a 64-bit object if we didn't find anything.
  7924. if test -z "$lt_cv_aix_libpath_"; then
  7925. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7926. fi
  7927. fi
  7928. rm -f core conftest.err conftest.$ac_objext \
  7929. conftest$ac_exeext conftest.$ac_ext
  7930. if test -z "$lt_cv_aix_libpath_"; then
  7931. lt_cv_aix_libpath_="/usr/lib:/lib"
  7932. fi
  7933. fi
  7934. aix_libpath=$lt_cv_aix_libpath_
  7935. fi
  7936. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7937. # Warning - without using the other run time loading flags,
  7938. # -berok will link without error, but may produce a broken library.
  7939. no_undefined_flag=' ${wl}-bernotok'
  7940. allow_undefined_flag=' ${wl}-berok'
  7941. if test "$with_gnu_ld" = yes; then
  7942. # We only use this code for GNU lds that support --whole-archive.
  7943. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7944. else
  7945. # Exported symbols can be pulled into shared objects from archives
  7946. whole_archive_flag_spec='$convenience'
  7947. fi
  7948. archive_cmds_need_lc=yes
  7949. # This is similar to how AIX traditionally builds its shared libraries.
  7950. 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'
  7951. fi
  7952. fi
  7953. ;;
  7954. amigaos*)
  7955. case $host_cpu in
  7956. powerpc)
  7957. # see comment about AmigaOS4 .so support
  7958. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7959. archive_expsym_cmds=''
  7960. ;;
  7961. m68k)
  7962. 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)'
  7963. hardcode_libdir_flag_spec='-L$libdir'
  7964. hardcode_minus_L=yes
  7965. ;;
  7966. esac
  7967. ;;
  7968. bsdi[45]*)
  7969. export_dynamic_flag_spec=-rdynamic
  7970. ;;
  7971. cygwin* | mingw* | pw32* | cegcc*)
  7972. # When not using gcc, we currently assume that we are using
  7973. # Microsoft Visual C++.
  7974. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7975. # no search path for DLLs.
  7976. case $cc_basename in
  7977. cl*)
  7978. # Native MSVC
  7979. hardcode_libdir_flag_spec=' '
  7980. allow_undefined_flag=unsupported
  7981. always_export_symbols=yes
  7982. file_list_spec='@'
  7983. # Tell ltmain to make .lib files, not .a files.
  7984. libext=lib
  7985. # Tell ltmain to make .dll files, not .so files.
  7986. shrext_cmds=".dll"
  7987. # FIXME: Setting linknames here is a bad hack.
  7988. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7989. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7990. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7991. else
  7992. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7993. fi~
  7994. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7995. linknames='
  7996. # The linker will not automatically build a static lib if we build a DLL.
  7997. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7998. enable_shared_with_static_runtimes=yes
  7999. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8000. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8001. # Don't use ranlib
  8002. old_postinstall_cmds='chmod 644 $oldlib'
  8003. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8004. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8005. case $lt_outputfile in
  8006. *.exe|*.EXE) ;;
  8007. *)
  8008. lt_outputfile="$lt_outputfile.exe"
  8009. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8010. ;;
  8011. esac~
  8012. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8013. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8014. $RM "$lt_outputfile.manifest";
  8015. fi'
  8016. ;;
  8017. *)
  8018. # Assume MSVC wrapper
  8019. hardcode_libdir_flag_spec=' '
  8020. allow_undefined_flag=unsupported
  8021. # Tell ltmain to make .lib files, not .a files.
  8022. libext=lib
  8023. # Tell ltmain to make .dll files, not .so files.
  8024. shrext_cmds=".dll"
  8025. # FIXME: Setting linknames here is a bad hack.
  8026. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8027. # The linker will automatically build a .lib file if we build a DLL.
  8028. old_archive_from_new_cmds='true'
  8029. # FIXME: Should let the user specify the lib program.
  8030. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8031. enable_shared_with_static_runtimes=yes
  8032. ;;
  8033. esac
  8034. ;;
  8035. darwin* | rhapsody*)
  8036. archive_cmds_need_lc=no
  8037. hardcode_direct=no
  8038. hardcode_automatic=yes
  8039. hardcode_shlibpath_var=unsupported
  8040. if test "$lt_cv_ld_force_load" = "yes"; then
  8041. 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\"`'
  8042. else
  8043. whole_archive_flag_spec=''
  8044. fi
  8045. link_all_deplibs=yes
  8046. allow_undefined_flag="$_lt_dar_allow_undefined"
  8047. case $cc_basename in
  8048. ifort*) _lt_dar_can_shared=yes ;;
  8049. *) _lt_dar_can_shared=$GCC ;;
  8050. esac
  8051. if test "$_lt_dar_can_shared" = "yes"; then
  8052. output_verbose_link_cmd=func_echo_all
  8053. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8054. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8055. 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}"
  8056. 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}"
  8057. else
  8058. ld_shlibs=no
  8059. fi
  8060. ;;
  8061. dgux*)
  8062. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8063. hardcode_libdir_flag_spec='-L$libdir'
  8064. hardcode_shlibpath_var=no
  8065. ;;
  8066. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8067. # support. Future versions do this automatically, but an explicit c++rt0.o
  8068. # does not break anything, and helps significantly (at the cost of a little
  8069. # extra space).
  8070. freebsd2.2*)
  8071. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8072. hardcode_libdir_flag_spec='-R$libdir'
  8073. hardcode_direct=yes
  8074. hardcode_shlibpath_var=no
  8075. ;;
  8076. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8077. freebsd2.*)
  8078. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8079. hardcode_direct=yes
  8080. hardcode_minus_L=yes
  8081. hardcode_shlibpath_var=no
  8082. ;;
  8083. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8084. freebsd* | dragonfly*)
  8085. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8086. hardcode_libdir_flag_spec='-R$libdir'
  8087. hardcode_direct=yes
  8088. hardcode_shlibpath_var=no
  8089. ;;
  8090. hpux9*)
  8091. if test "$GCC" = yes; then
  8092. 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'
  8093. else
  8094. 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'
  8095. fi
  8096. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8097. hardcode_libdir_separator=:
  8098. hardcode_direct=yes
  8099. # hardcode_minus_L: Not really in the search PATH,
  8100. # but as the default location of the library.
  8101. hardcode_minus_L=yes
  8102. export_dynamic_flag_spec='${wl}-E'
  8103. ;;
  8104. hpux10*)
  8105. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8106. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8107. else
  8108. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8109. fi
  8110. if test "$with_gnu_ld" = no; then
  8111. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8112. hardcode_libdir_separator=:
  8113. hardcode_direct=yes
  8114. hardcode_direct_absolute=yes
  8115. export_dynamic_flag_spec='${wl}-E'
  8116. # hardcode_minus_L: Not really in the search PATH,
  8117. # but as the default location of the library.
  8118. hardcode_minus_L=yes
  8119. fi
  8120. ;;
  8121. hpux11*)
  8122. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8123. case $host_cpu in
  8124. hppa*64*)
  8125. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8126. ;;
  8127. ia64*)
  8128. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8129. ;;
  8130. *)
  8131. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8132. ;;
  8133. esac
  8134. else
  8135. case $host_cpu in
  8136. hppa*64*)
  8137. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8138. ;;
  8139. ia64*)
  8140. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8141. ;;
  8142. *)
  8143. # Older versions of the 11.00 compiler do not understand -b yet
  8144. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8146. $as_echo_n "checking if $CC understands -b... " >&6; }
  8147. if ${lt_cv_prog_compiler__b+:} false; then :
  8148. $as_echo_n "(cached) " >&6
  8149. else
  8150. lt_cv_prog_compiler__b=no
  8151. save_LDFLAGS="$LDFLAGS"
  8152. LDFLAGS="$LDFLAGS -b"
  8153. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8154. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8155. # The linker can only warn and ignore the option if not recognized
  8156. # So say no if there are warnings
  8157. if test -s conftest.err; then
  8158. # Append any errors to the config.log.
  8159. cat conftest.err 1>&5
  8160. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8161. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8162. if diff conftest.exp conftest.er2 >/dev/null; then
  8163. lt_cv_prog_compiler__b=yes
  8164. fi
  8165. else
  8166. lt_cv_prog_compiler__b=yes
  8167. fi
  8168. fi
  8169. $RM -r conftest*
  8170. LDFLAGS="$save_LDFLAGS"
  8171. fi
  8172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8173. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8174. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8175. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8176. else
  8177. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8178. fi
  8179. ;;
  8180. esac
  8181. fi
  8182. if test "$with_gnu_ld" = no; then
  8183. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8184. hardcode_libdir_separator=:
  8185. case $host_cpu in
  8186. hppa*64*|ia64*)
  8187. hardcode_direct=no
  8188. hardcode_shlibpath_var=no
  8189. ;;
  8190. *)
  8191. hardcode_direct=yes
  8192. hardcode_direct_absolute=yes
  8193. export_dynamic_flag_spec='${wl}-E'
  8194. # hardcode_minus_L: Not really in the search PATH,
  8195. # but as the default location of the library.
  8196. hardcode_minus_L=yes
  8197. ;;
  8198. esac
  8199. fi
  8200. ;;
  8201. irix5* | irix6* | nonstopux*)
  8202. if test "$GCC" = yes; then
  8203. 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'
  8204. # Try to use the -exported_symbol ld option, if it does not
  8205. # work, assume that -exports_file does not work either and
  8206. # implicitly export all symbols.
  8207. # This should be the same for all languages, so no per-tag cache variable.
  8208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8209. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8210. if ${lt_cv_irix_exported_symbol+:} false; then :
  8211. $as_echo_n "(cached) " >&6
  8212. else
  8213. save_LDFLAGS="$LDFLAGS"
  8214. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8216. /* end confdefs.h. */
  8217. int foo (void) { return 0; }
  8218. _ACEOF
  8219. if ac_fn_c_try_link "$LINENO"; then :
  8220. lt_cv_irix_exported_symbol=yes
  8221. else
  8222. lt_cv_irix_exported_symbol=no
  8223. fi
  8224. rm -f core conftest.err conftest.$ac_objext \
  8225. conftest$ac_exeext conftest.$ac_ext
  8226. LDFLAGS="$save_LDFLAGS"
  8227. fi
  8228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8229. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8230. if test "$lt_cv_irix_exported_symbol" = yes; then
  8231. 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'
  8232. fi
  8233. else
  8234. 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'
  8235. 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'
  8236. fi
  8237. archive_cmds_need_lc='no'
  8238. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8239. hardcode_libdir_separator=:
  8240. inherit_rpath=yes
  8241. link_all_deplibs=yes
  8242. ;;
  8243. netbsd*)
  8244. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8245. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8246. else
  8247. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8248. fi
  8249. hardcode_libdir_flag_spec='-R$libdir'
  8250. hardcode_direct=yes
  8251. hardcode_shlibpath_var=no
  8252. ;;
  8253. newsos6)
  8254. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8255. hardcode_direct=yes
  8256. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8257. hardcode_libdir_separator=:
  8258. hardcode_shlibpath_var=no
  8259. ;;
  8260. *nto* | *qnx*)
  8261. ;;
  8262. openbsd*)
  8263. if test -f /usr/libexec/ld.so; then
  8264. hardcode_direct=yes
  8265. hardcode_shlibpath_var=no
  8266. hardcode_direct_absolute=yes
  8267. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8268. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8269. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8270. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8271. export_dynamic_flag_spec='${wl}-E'
  8272. else
  8273. case $host_os in
  8274. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8275. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8276. hardcode_libdir_flag_spec='-R$libdir'
  8277. ;;
  8278. *)
  8279. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8280. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8281. ;;
  8282. esac
  8283. fi
  8284. else
  8285. ld_shlibs=no
  8286. fi
  8287. ;;
  8288. os2*)
  8289. hardcode_libdir_flag_spec='-L$libdir'
  8290. hardcode_minus_L=yes
  8291. allow_undefined_flag=unsupported
  8292. 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'
  8293. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8294. ;;
  8295. osf3*)
  8296. if test "$GCC" = yes; then
  8297. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8298. 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'
  8299. else
  8300. allow_undefined_flag=' -expect_unresolved \*'
  8301. 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'
  8302. fi
  8303. archive_cmds_need_lc='no'
  8304. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8305. hardcode_libdir_separator=:
  8306. ;;
  8307. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8308. if test "$GCC" = yes; then
  8309. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8310. 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'
  8311. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8312. else
  8313. allow_undefined_flag=' -expect_unresolved \*'
  8314. 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'
  8315. 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~
  8316. $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'
  8317. # Both c and cxx compiler support -rpath directly
  8318. hardcode_libdir_flag_spec='-rpath $libdir'
  8319. fi
  8320. archive_cmds_need_lc='no'
  8321. hardcode_libdir_separator=:
  8322. ;;
  8323. solaris*)
  8324. no_undefined_flag=' -z defs'
  8325. if test "$GCC" = yes; then
  8326. wlarc='${wl}'
  8327. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8328. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8329. $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'
  8330. else
  8331. case `$CC -V 2>&1` in
  8332. *"Compilers 5.0"*)
  8333. wlarc=''
  8334. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8335. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8336. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8337. ;;
  8338. *)
  8339. wlarc='${wl}'
  8340. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8341. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8342. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8343. ;;
  8344. esac
  8345. fi
  8346. hardcode_libdir_flag_spec='-R$libdir'
  8347. hardcode_shlibpath_var=no
  8348. case $host_os in
  8349. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8350. *)
  8351. # The compiler driver will combine and reorder linker options,
  8352. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8353. # but is careful enough not to reorder.
  8354. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8355. if test "$GCC" = yes; then
  8356. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8357. else
  8358. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8359. fi
  8360. ;;
  8361. esac
  8362. link_all_deplibs=yes
  8363. ;;
  8364. sunos4*)
  8365. if test "x$host_vendor" = xsequent; then
  8366. # Use $CC to link under sequent, because it throws in some extra .o
  8367. # files that make .init and .fini sections work.
  8368. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8369. else
  8370. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8371. fi
  8372. hardcode_libdir_flag_spec='-L$libdir'
  8373. hardcode_direct=yes
  8374. hardcode_minus_L=yes
  8375. hardcode_shlibpath_var=no
  8376. ;;
  8377. sysv4)
  8378. case $host_vendor in
  8379. sni)
  8380. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8381. hardcode_direct=yes # is this really true???
  8382. ;;
  8383. siemens)
  8384. ## LD is ld it makes a PLAMLIB
  8385. ## CC just makes a GrossModule.
  8386. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8387. reload_cmds='$CC -r -o $output$reload_objs'
  8388. hardcode_direct=no
  8389. ;;
  8390. motorola)
  8391. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8392. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8393. ;;
  8394. esac
  8395. runpath_var='LD_RUN_PATH'
  8396. hardcode_shlibpath_var=no
  8397. ;;
  8398. sysv4.3*)
  8399. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8400. hardcode_shlibpath_var=no
  8401. export_dynamic_flag_spec='-Bexport'
  8402. ;;
  8403. sysv4*MP*)
  8404. if test -d /usr/nec; then
  8405. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8406. hardcode_shlibpath_var=no
  8407. runpath_var=LD_RUN_PATH
  8408. hardcode_runpath_var=yes
  8409. ld_shlibs=yes
  8410. fi
  8411. ;;
  8412. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8413. no_undefined_flag='${wl}-z,text'
  8414. archive_cmds_need_lc=no
  8415. hardcode_shlibpath_var=no
  8416. runpath_var='LD_RUN_PATH'
  8417. if test "$GCC" = yes; then
  8418. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8419. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8420. else
  8421. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8422. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8423. fi
  8424. ;;
  8425. sysv5* | sco3.2v5* | sco5v6*)
  8426. # Note: We can NOT use -z defs as we might desire, because we do not
  8427. # link with -lc, and that would cause any symbols used from libc to
  8428. # always be unresolved, which means just about no library would
  8429. # ever link correctly. If we're not using GNU ld we use -z text
  8430. # though, which does catch some bad symbols but isn't as heavy-handed
  8431. # as -z defs.
  8432. no_undefined_flag='${wl}-z,text'
  8433. allow_undefined_flag='${wl}-z,nodefs'
  8434. archive_cmds_need_lc=no
  8435. hardcode_shlibpath_var=no
  8436. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8437. hardcode_libdir_separator=':'
  8438. link_all_deplibs=yes
  8439. export_dynamic_flag_spec='${wl}-Bexport'
  8440. runpath_var='LD_RUN_PATH'
  8441. if test "$GCC" = yes; then
  8442. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8443. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8444. else
  8445. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8446. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8447. fi
  8448. ;;
  8449. uts4*)
  8450. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8451. hardcode_libdir_flag_spec='-L$libdir'
  8452. hardcode_shlibpath_var=no
  8453. ;;
  8454. *)
  8455. ld_shlibs=no
  8456. ;;
  8457. esac
  8458. if test x$host_vendor = xsni; then
  8459. case $host in
  8460. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8461. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8462. ;;
  8463. esac
  8464. fi
  8465. fi
  8466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8467. $as_echo "$ld_shlibs" >&6; }
  8468. test "$ld_shlibs" = no && can_build_shared=no
  8469. with_gnu_ld=$with_gnu_ld
  8470. #
  8471. # Do we need to explicitly link libc?
  8472. #
  8473. case "x$archive_cmds_need_lc" in
  8474. x|xyes)
  8475. # Assume -lc should be added
  8476. archive_cmds_need_lc=yes
  8477. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8478. case $archive_cmds in
  8479. *'~'*)
  8480. # FIXME: we may have to deal with multi-command sequences.
  8481. ;;
  8482. '$CC '*)
  8483. # Test whether the compiler implicitly links with -lc since on some
  8484. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8485. # to ld, don't add -lc before -lgcc.
  8486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8487. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8488. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8489. $as_echo_n "(cached) " >&6
  8490. else
  8491. $RM conftest*
  8492. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8493. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8494. (eval $ac_compile) 2>&5
  8495. ac_status=$?
  8496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8497. test $ac_status = 0; } 2>conftest.err; then
  8498. soname=conftest
  8499. lib=conftest
  8500. libobjs=conftest.$ac_objext
  8501. deplibs=
  8502. wl=$lt_prog_compiler_wl
  8503. pic_flag=$lt_prog_compiler_pic
  8504. compiler_flags=-v
  8505. linker_flags=-v
  8506. verstring=
  8507. output_objdir=.
  8508. libname=conftest
  8509. lt_save_allow_undefined_flag=$allow_undefined_flag
  8510. allow_undefined_flag=
  8511. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8512. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8513. ac_status=$?
  8514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8515. test $ac_status = 0; }
  8516. then
  8517. lt_cv_archive_cmds_need_lc=no
  8518. else
  8519. lt_cv_archive_cmds_need_lc=yes
  8520. fi
  8521. allow_undefined_flag=$lt_save_allow_undefined_flag
  8522. else
  8523. cat conftest.err 1>&5
  8524. fi
  8525. $RM conftest*
  8526. fi
  8527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8528. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8529. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8530. ;;
  8531. esac
  8532. fi
  8533. ;;
  8534. esac
  8535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8536. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8537. if test "$GCC" = yes; then
  8538. case $host_os in
  8539. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8540. *) lt_awk_arg="/^libraries:/" ;;
  8541. esac
  8542. case $host_os in
  8543. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8544. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8545. esac
  8546. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8547. case $lt_search_path_spec in
  8548. *\;*)
  8549. # if the path contains ";" then we assume it to be the separator
  8550. # otherwise default to the standard path separator (i.e. ":") - it is
  8551. # assumed that no part of a normal pathname contains ";" but that should
  8552. # okay in the real world where ";" in dirpaths is itself problematic.
  8553. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8554. ;;
  8555. *)
  8556. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8557. ;;
  8558. esac
  8559. # Ok, now we have the path, separated by spaces, we can step through it
  8560. # and add multilib dir if necessary...
  8561. lt_tmp_lt_search_path_spec=
  8562. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8563. # ...but if some path already ends with the multilib dir we assume
  8564. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8565. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8566. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8567. lt_multi_os_dir=
  8568. ;;
  8569. esac
  8570. for lt_sys_path in $lt_search_path_spec; do
  8571. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8572. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8573. elif test -n "$lt_multi_os_dir"; then
  8574. test -d "$lt_sys_path" && \
  8575. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8576. fi
  8577. done
  8578. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8579. BEGIN {RS=" "; FS="/|\n";} {
  8580. lt_foo="";
  8581. lt_count=0;
  8582. for (lt_i = NF; lt_i > 0; lt_i--) {
  8583. if ($lt_i != "" && $lt_i != ".") {
  8584. if ($lt_i == "..") {
  8585. lt_count++;
  8586. } else {
  8587. if (lt_count == 0) {
  8588. lt_foo="/" $lt_i lt_foo;
  8589. } else {
  8590. lt_count--;
  8591. }
  8592. }
  8593. }
  8594. }
  8595. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8596. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8597. }'`
  8598. # AWK program above erroneously prepends '/' to C:/dos/paths
  8599. # for these hosts.
  8600. case $host_os in
  8601. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8602. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8603. esac
  8604. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8605. else
  8606. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8607. fi
  8608. library_names_spec=
  8609. libname_spec='lib$name'
  8610. soname_spec=
  8611. shrext_cmds=".so"
  8612. postinstall_cmds=
  8613. postuninstall_cmds=
  8614. finish_cmds=
  8615. finish_eval=
  8616. shlibpath_var=
  8617. shlibpath_overrides_runpath=unknown
  8618. version_type=none
  8619. dynamic_linker="$host_os ld.so"
  8620. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8621. need_lib_prefix=unknown
  8622. hardcode_into_libs=no
  8623. # when you set need_version to no, make sure it does not cause -set_version
  8624. # flags to be left without arguments
  8625. need_version=unknown
  8626. case $host_os in
  8627. aix3*)
  8628. version_type=linux # correct to gnu/linux during the next big refactor
  8629. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8630. shlibpath_var=LIBPATH
  8631. # AIX 3 has no versioning support, so we append a major version to the name.
  8632. soname_spec='${libname}${release}${shared_ext}$major'
  8633. ;;
  8634. aix[4-9]*)
  8635. version_type=linux # correct to gnu/linux during the next big refactor
  8636. need_lib_prefix=no
  8637. need_version=no
  8638. hardcode_into_libs=yes
  8639. if test "$host_cpu" = ia64; then
  8640. # AIX 5 supports IA64
  8641. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8642. shlibpath_var=LD_LIBRARY_PATH
  8643. else
  8644. # With GCC up to 2.95.x, collect2 would create an import file
  8645. # for dependence libraries. The import file would start with
  8646. # the line `#! .'. This would cause the generated library to
  8647. # depend on `.', always an invalid library. This was fixed in
  8648. # development snapshots of GCC prior to 3.0.
  8649. case $host_os in
  8650. aix4 | aix4.[01] | aix4.[01].*)
  8651. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8652. echo ' yes '
  8653. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8654. :
  8655. else
  8656. can_build_shared=no
  8657. fi
  8658. ;;
  8659. esac
  8660. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8661. # soname into executable. Probably we can add versioning support to
  8662. # collect2, so additional links can be useful in future.
  8663. if test "$aix_use_runtimelinking" = yes; then
  8664. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8665. # instead of lib<name>.a to let people know that these are not
  8666. # typical AIX shared libraries.
  8667. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8668. else
  8669. # We preserve .a as extension for shared libraries through AIX4.2
  8670. # and later when we are not doing run time linking.
  8671. library_names_spec='${libname}${release}.a $libname.a'
  8672. soname_spec='${libname}${release}${shared_ext}$major'
  8673. fi
  8674. shlibpath_var=LIBPATH
  8675. fi
  8676. ;;
  8677. amigaos*)
  8678. case $host_cpu in
  8679. powerpc)
  8680. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8681. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8682. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8683. ;;
  8684. m68k)
  8685. library_names_spec='$libname.ixlibrary $libname.a'
  8686. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8687. 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'
  8688. ;;
  8689. esac
  8690. ;;
  8691. beos*)
  8692. library_names_spec='${libname}${shared_ext}'
  8693. dynamic_linker="$host_os ld.so"
  8694. shlibpath_var=LIBRARY_PATH
  8695. ;;
  8696. bsdi[45]*)
  8697. version_type=linux # correct to gnu/linux during the next big refactor
  8698. need_version=no
  8699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8700. soname_spec='${libname}${release}${shared_ext}$major'
  8701. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8702. shlibpath_var=LD_LIBRARY_PATH
  8703. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8704. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8705. # the default ld.so.conf also contains /usr/contrib/lib and
  8706. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8707. # libtool to hard-code these into programs
  8708. ;;
  8709. cygwin* | mingw* | pw32* | cegcc*)
  8710. version_type=windows
  8711. shrext_cmds=".dll"
  8712. need_version=no
  8713. need_lib_prefix=no
  8714. case $GCC,$cc_basename in
  8715. yes,*)
  8716. # gcc
  8717. library_names_spec='$libname.dll.a'
  8718. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8719. postinstall_cmds='base_file=`basename \${file}`~
  8720. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8721. dldir=$destdir/`dirname \$dlpath`~
  8722. test -d \$dldir || mkdir -p \$dldir~
  8723. $install_prog $dir/$dlname \$dldir/$dlname~
  8724. chmod a+x \$dldir/$dlname~
  8725. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8726. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8727. fi'
  8728. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8729. dlpath=$dir/\$dldll~
  8730. $RM \$dlpath'
  8731. shlibpath_overrides_runpath=yes
  8732. case $host_os in
  8733. cygwin*)
  8734. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8735. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8736. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8737. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8738. ;;
  8739. mingw* | cegcc*)
  8740. # MinGW DLLs use traditional 'lib' prefix
  8741. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8742. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8743. ;;
  8744. pw32*)
  8745. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8746. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8747. ;;
  8748. esac
  8749. dynamic_linker='Win32 ld.exe'
  8750. ;;
  8751. *,cl*)
  8752. # Native MSVC
  8753. libname_spec='$name'
  8754. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8755. library_names_spec='${libname}.dll.lib'
  8756. case $build_os in
  8757. mingw*)
  8758. sys_lib_search_path_spec=
  8759. lt_save_ifs=$IFS
  8760. IFS=';'
  8761. for lt_path in $LIB
  8762. do
  8763. IFS=$lt_save_ifs
  8764. # Let DOS variable expansion print the short 8.3 style file name.
  8765. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8766. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8767. done
  8768. IFS=$lt_save_ifs
  8769. # Convert to MSYS style.
  8770. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8771. ;;
  8772. cygwin*)
  8773. # Convert to unix form, then to dos form, then back to unix form
  8774. # but this time dos style (no spaces!) so that the unix form looks
  8775. # like /cygdrive/c/PROGRA~1:/cygdr...
  8776. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8777. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8778. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8779. ;;
  8780. *)
  8781. sys_lib_search_path_spec="$LIB"
  8782. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8783. # It is most probably a Windows format PATH.
  8784. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8785. else
  8786. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8787. fi
  8788. # FIXME: find the short name or the path components, as spaces are
  8789. # common. (e.g. "Program Files" -> "PROGRA~1")
  8790. ;;
  8791. esac
  8792. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8793. postinstall_cmds='base_file=`basename \${file}`~
  8794. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8795. dldir=$destdir/`dirname \$dlpath`~
  8796. test -d \$dldir || mkdir -p \$dldir~
  8797. $install_prog $dir/$dlname \$dldir/$dlname'
  8798. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8799. dlpath=$dir/\$dldll~
  8800. $RM \$dlpath'
  8801. shlibpath_overrides_runpath=yes
  8802. dynamic_linker='Win32 link.exe'
  8803. ;;
  8804. *)
  8805. # Assume MSVC wrapper
  8806. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8807. dynamic_linker='Win32 ld.exe'
  8808. ;;
  8809. esac
  8810. # FIXME: first we should search . and the directory the executable is in
  8811. shlibpath_var=PATH
  8812. ;;
  8813. darwin* | rhapsody*)
  8814. dynamic_linker="$host_os dyld"
  8815. version_type=darwin
  8816. need_lib_prefix=no
  8817. need_version=no
  8818. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8819. soname_spec='${libname}${release}${major}$shared_ext'
  8820. shlibpath_overrides_runpath=yes
  8821. shlibpath_var=DYLD_LIBRARY_PATH
  8822. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8823. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8824. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8825. ;;
  8826. dgux*)
  8827. version_type=linux # correct to gnu/linux during the next big refactor
  8828. need_lib_prefix=no
  8829. need_version=no
  8830. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8831. soname_spec='${libname}${release}${shared_ext}$major'
  8832. shlibpath_var=LD_LIBRARY_PATH
  8833. ;;
  8834. freebsd* | dragonfly*)
  8835. # DragonFly does not have aout. When/if they implement a new
  8836. # versioning mechanism, adjust this.
  8837. if test -x /usr/bin/objformat; then
  8838. objformat=`/usr/bin/objformat`
  8839. else
  8840. case $host_os in
  8841. freebsd[23].*) objformat=aout ;;
  8842. *) objformat=elf ;;
  8843. esac
  8844. fi
  8845. version_type=freebsd-$objformat
  8846. case $version_type in
  8847. freebsd-elf*)
  8848. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8849. need_version=no
  8850. need_lib_prefix=no
  8851. ;;
  8852. freebsd-*)
  8853. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8854. need_version=yes
  8855. ;;
  8856. esac
  8857. shlibpath_var=LD_LIBRARY_PATH
  8858. case $host_os in
  8859. freebsd2.*)
  8860. shlibpath_overrides_runpath=yes
  8861. ;;
  8862. freebsd3.[01]* | freebsdelf3.[01]*)
  8863. shlibpath_overrides_runpath=yes
  8864. hardcode_into_libs=yes
  8865. ;;
  8866. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8867. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8868. shlibpath_overrides_runpath=no
  8869. hardcode_into_libs=yes
  8870. ;;
  8871. *) # from 4.6 on, and DragonFly
  8872. shlibpath_overrides_runpath=yes
  8873. hardcode_into_libs=yes
  8874. ;;
  8875. esac
  8876. ;;
  8877. gnu*)
  8878. version_type=linux # correct to gnu/linux during the next big refactor
  8879. need_lib_prefix=no
  8880. need_version=no
  8881. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8882. soname_spec='${libname}${release}${shared_ext}$major'
  8883. shlibpath_var=LD_LIBRARY_PATH
  8884. shlibpath_overrides_runpath=no
  8885. hardcode_into_libs=yes
  8886. ;;
  8887. haiku*)
  8888. version_type=linux # correct to gnu/linux during the next big refactor
  8889. need_lib_prefix=no
  8890. need_version=no
  8891. dynamic_linker="$host_os runtime_loader"
  8892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8893. soname_spec='${libname}${release}${shared_ext}$major'
  8894. shlibpath_var=LIBRARY_PATH
  8895. shlibpath_overrides_runpath=yes
  8896. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8897. hardcode_into_libs=yes
  8898. ;;
  8899. hpux9* | hpux10* | hpux11*)
  8900. # Give a soname corresponding to the major version so that dld.sl refuses to
  8901. # link against other versions.
  8902. version_type=sunos
  8903. need_lib_prefix=no
  8904. need_version=no
  8905. case $host_cpu in
  8906. ia64*)
  8907. shrext_cmds='.so'
  8908. hardcode_into_libs=yes
  8909. dynamic_linker="$host_os dld.so"
  8910. shlibpath_var=LD_LIBRARY_PATH
  8911. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8913. soname_spec='${libname}${release}${shared_ext}$major'
  8914. if test "X$HPUX_IA64_MODE" = X32; then
  8915. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8916. else
  8917. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8918. fi
  8919. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8920. ;;
  8921. hppa*64*)
  8922. shrext_cmds='.sl'
  8923. hardcode_into_libs=yes
  8924. dynamic_linker="$host_os dld.sl"
  8925. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8926. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8928. soname_spec='${libname}${release}${shared_ext}$major'
  8929. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8930. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8931. ;;
  8932. *)
  8933. shrext_cmds='.sl'
  8934. dynamic_linker="$host_os dld.sl"
  8935. shlibpath_var=SHLIB_PATH
  8936. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8938. soname_spec='${libname}${release}${shared_ext}$major'
  8939. ;;
  8940. esac
  8941. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8942. postinstall_cmds='chmod 555 $lib'
  8943. # or fails outright, so override atomically:
  8944. install_override_mode=555
  8945. ;;
  8946. interix[3-9]*)
  8947. version_type=linux # correct to gnu/linux during the next big refactor
  8948. need_lib_prefix=no
  8949. need_version=no
  8950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8951. soname_spec='${libname}${release}${shared_ext}$major'
  8952. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8953. shlibpath_var=LD_LIBRARY_PATH
  8954. shlibpath_overrides_runpath=no
  8955. hardcode_into_libs=yes
  8956. ;;
  8957. irix5* | irix6* | nonstopux*)
  8958. case $host_os in
  8959. nonstopux*) version_type=nonstopux ;;
  8960. *)
  8961. if test "$lt_cv_prog_gnu_ld" = yes; then
  8962. version_type=linux # correct to gnu/linux during the next big refactor
  8963. else
  8964. version_type=irix
  8965. fi ;;
  8966. esac
  8967. need_lib_prefix=no
  8968. need_version=no
  8969. soname_spec='${libname}${release}${shared_ext}$major'
  8970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8971. case $host_os in
  8972. irix5* | nonstopux*)
  8973. libsuff= shlibsuff=
  8974. ;;
  8975. *)
  8976. case $LD in # libtool.m4 will add one of these switches to LD
  8977. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8978. libsuff= shlibsuff= libmagic=32-bit;;
  8979. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8980. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8981. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8982. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8983. *) libsuff= shlibsuff= libmagic=never-match;;
  8984. esac
  8985. ;;
  8986. esac
  8987. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8988. shlibpath_overrides_runpath=no
  8989. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8990. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8991. hardcode_into_libs=yes
  8992. ;;
  8993. # No shared lib support for Linux oldld, aout, or coff.
  8994. linux*oldld* | linux*aout* | linux*coff*)
  8995. dynamic_linker=no
  8996. ;;
  8997. # This must be glibc/ELF.
  8998. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8999. version_type=linux # correct to gnu/linux during the next big refactor
  9000. need_lib_prefix=no
  9001. need_version=no
  9002. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9003. soname_spec='${libname}${release}${shared_ext}$major'
  9004. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9005. shlibpath_var=LD_LIBRARY_PATH
  9006. shlibpath_overrides_runpath=no
  9007. # Some binutils ld are patched to set DT_RUNPATH
  9008. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9009. $as_echo_n "(cached) " >&6
  9010. else
  9011. lt_cv_shlibpath_overrides_runpath=no
  9012. save_LDFLAGS=$LDFLAGS
  9013. save_libdir=$libdir
  9014. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9015. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9017. /* end confdefs.h. */
  9018. int
  9019. main ()
  9020. {
  9021. ;
  9022. return 0;
  9023. }
  9024. _ACEOF
  9025. if ac_fn_c_try_link "$LINENO"; then :
  9026. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9027. lt_cv_shlibpath_overrides_runpath=yes
  9028. fi
  9029. fi
  9030. rm -f core conftest.err conftest.$ac_objext \
  9031. conftest$ac_exeext conftest.$ac_ext
  9032. LDFLAGS=$save_LDFLAGS
  9033. libdir=$save_libdir
  9034. fi
  9035. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9036. # This implies no fast_install, which is unacceptable.
  9037. # Some rework will be needed to allow for fast_install
  9038. # before this can be enabled.
  9039. hardcode_into_libs=yes
  9040. # Append ld.so.conf contents to the search path
  9041. if test -f /etc/ld.so.conf; then
  9042. 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' ' '`
  9043. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9044. fi
  9045. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9046. # powerpc, because MkLinux only supported shared libraries with the
  9047. # GNU dynamic linker. Since this was broken with cross compilers,
  9048. # most powerpc-linux boxes support dynamic linking these days and
  9049. # people can always --disable-shared, the test was removed, and we
  9050. # assume the GNU/Linux dynamic linker is in use.
  9051. dynamic_linker='GNU/Linux ld.so'
  9052. ;;
  9053. netbsd*)
  9054. version_type=sunos
  9055. need_lib_prefix=no
  9056. need_version=no
  9057. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9059. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9060. dynamic_linker='NetBSD (a.out) ld.so'
  9061. else
  9062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9063. soname_spec='${libname}${release}${shared_ext}$major'
  9064. dynamic_linker='NetBSD ld.elf_so'
  9065. fi
  9066. shlibpath_var=LD_LIBRARY_PATH
  9067. shlibpath_overrides_runpath=yes
  9068. hardcode_into_libs=yes
  9069. ;;
  9070. newsos6)
  9071. version_type=linux # correct to gnu/linux during the next big refactor
  9072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9073. shlibpath_var=LD_LIBRARY_PATH
  9074. shlibpath_overrides_runpath=yes
  9075. ;;
  9076. *nto* | *qnx*)
  9077. version_type=qnx
  9078. need_lib_prefix=no
  9079. need_version=no
  9080. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9081. soname_spec='${libname}${release}${shared_ext}$major'
  9082. shlibpath_var=LD_LIBRARY_PATH
  9083. shlibpath_overrides_runpath=no
  9084. hardcode_into_libs=yes
  9085. dynamic_linker='ldqnx.so'
  9086. ;;
  9087. openbsd*)
  9088. version_type=sunos
  9089. sys_lib_dlsearch_path_spec="/usr/lib"
  9090. need_lib_prefix=no
  9091. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9092. case $host_os in
  9093. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9094. *) need_version=no ;;
  9095. esac
  9096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9097. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9098. shlibpath_var=LD_LIBRARY_PATH
  9099. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9100. case $host_os in
  9101. openbsd2.[89] | openbsd2.[89].*)
  9102. shlibpath_overrides_runpath=no
  9103. ;;
  9104. *)
  9105. shlibpath_overrides_runpath=yes
  9106. ;;
  9107. esac
  9108. else
  9109. shlibpath_overrides_runpath=yes
  9110. fi
  9111. ;;
  9112. os2*)
  9113. libname_spec='$name'
  9114. shrext_cmds=".dll"
  9115. need_lib_prefix=no
  9116. library_names_spec='$libname${shared_ext} $libname.a'
  9117. dynamic_linker='OS/2 ld.exe'
  9118. shlibpath_var=LIBPATH
  9119. ;;
  9120. osf3* | osf4* | osf5*)
  9121. version_type=osf
  9122. need_lib_prefix=no
  9123. need_version=no
  9124. soname_spec='${libname}${release}${shared_ext}$major'
  9125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9126. shlibpath_var=LD_LIBRARY_PATH
  9127. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9128. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9129. ;;
  9130. rdos*)
  9131. dynamic_linker=no
  9132. ;;
  9133. solaris*)
  9134. version_type=linux # correct to gnu/linux during the next big refactor
  9135. need_lib_prefix=no
  9136. need_version=no
  9137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9138. soname_spec='${libname}${release}${shared_ext}$major'
  9139. shlibpath_var=LD_LIBRARY_PATH
  9140. shlibpath_overrides_runpath=yes
  9141. hardcode_into_libs=yes
  9142. # ldd complains unless libraries are executable
  9143. postinstall_cmds='chmod +x $lib'
  9144. ;;
  9145. sunos4*)
  9146. version_type=sunos
  9147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9148. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9149. shlibpath_var=LD_LIBRARY_PATH
  9150. shlibpath_overrides_runpath=yes
  9151. if test "$with_gnu_ld" = yes; then
  9152. need_lib_prefix=no
  9153. fi
  9154. need_version=yes
  9155. ;;
  9156. sysv4 | sysv4.3*)
  9157. version_type=linux # correct to gnu/linux during the next big refactor
  9158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9159. soname_spec='${libname}${release}${shared_ext}$major'
  9160. shlibpath_var=LD_LIBRARY_PATH
  9161. case $host_vendor in
  9162. sni)
  9163. shlibpath_overrides_runpath=no
  9164. need_lib_prefix=no
  9165. runpath_var=LD_RUN_PATH
  9166. ;;
  9167. siemens)
  9168. need_lib_prefix=no
  9169. ;;
  9170. motorola)
  9171. need_lib_prefix=no
  9172. need_version=no
  9173. shlibpath_overrides_runpath=no
  9174. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9175. ;;
  9176. esac
  9177. ;;
  9178. sysv4*MP*)
  9179. if test -d /usr/nec ;then
  9180. version_type=linux # correct to gnu/linux during the next big refactor
  9181. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9182. soname_spec='$libname${shared_ext}.$major'
  9183. shlibpath_var=LD_LIBRARY_PATH
  9184. fi
  9185. ;;
  9186. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9187. version_type=freebsd-elf
  9188. need_lib_prefix=no
  9189. need_version=no
  9190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9191. soname_spec='${libname}${release}${shared_ext}$major'
  9192. shlibpath_var=LD_LIBRARY_PATH
  9193. shlibpath_overrides_runpath=yes
  9194. hardcode_into_libs=yes
  9195. if test "$with_gnu_ld" = yes; then
  9196. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9197. else
  9198. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9199. case $host_os in
  9200. sco3.2v5*)
  9201. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9202. ;;
  9203. esac
  9204. fi
  9205. sys_lib_dlsearch_path_spec='/usr/lib'
  9206. ;;
  9207. tpf*)
  9208. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9209. version_type=linux # correct to gnu/linux during the next big refactor
  9210. need_lib_prefix=no
  9211. need_version=no
  9212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9213. shlibpath_var=LD_LIBRARY_PATH
  9214. shlibpath_overrides_runpath=no
  9215. hardcode_into_libs=yes
  9216. ;;
  9217. uts4*)
  9218. version_type=linux # correct to gnu/linux during the next big refactor
  9219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9220. soname_spec='${libname}${release}${shared_ext}$major'
  9221. shlibpath_var=LD_LIBRARY_PATH
  9222. ;;
  9223. *)
  9224. dynamic_linker=no
  9225. ;;
  9226. esac
  9227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9228. $as_echo "$dynamic_linker" >&6; }
  9229. test "$dynamic_linker" = no && can_build_shared=no
  9230. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9231. if test "$GCC" = yes; then
  9232. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9233. fi
  9234. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9235. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9236. fi
  9237. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9238. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9239. fi
  9240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9241. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9242. hardcode_action=
  9243. if test -n "$hardcode_libdir_flag_spec" ||
  9244. test -n "$runpath_var" ||
  9245. test "X$hardcode_automatic" = "Xyes" ; then
  9246. # We can hardcode non-existent directories.
  9247. if test "$hardcode_direct" != no &&
  9248. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9249. # have to relink, otherwise we might link with an installed library
  9250. # when we should be linking with a yet-to-be-installed one
  9251. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9252. test "$hardcode_minus_L" != no; then
  9253. # Linking always hardcodes the temporary library directory.
  9254. hardcode_action=relink
  9255. else
  9256. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9257. hardcode_action=immediate
  9258. fi
  9259. else
  9260. # We cannot hardcode anything, or else we can only hardcode existing
  9261. # directories.
  9262. hardcode_action=unsupported
  9263. fi
  9264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9265. $as_echo "$hardcode_action" >&6; }
  9266. if test "$hardcode_action" = relink ||
  9267. test "$inherit_rpath" = yes; then
  9268. # Fast installation is not supported
  9269. enable_fast_install=no
  9270. elif test "$shlibpath_overrides_runpath" = yes ||
  9271. test "$enable_shared" = no; then
  9272. # Fast installation is not necessary
  9273. enable_fast_install=needless
  9274. fi
  9275. if test "x$enable_dlopen" != xyes; then
  9276. enable_dlopen=unknown
  9277. enable_dlopen_self=unknown
  9278. enable_dlopen_self_static=unknown
  9279. else
  9280. lt_cv_dlopen=no
  9281. lt_cv_dlopen_libs=
  9282. case $host_os in
  9283. beos*)
  9284. lt_cv_dlopen="load_add_on"
  9285. lt_cv_dlopen_libs=
  9286. lt_cv_dlopen_self=yes
  9287. ;;
  9288. mingw* | pw32* | cegcc*)
  9289. lt_cv_dlopen="LoadLibrary"
  9290. lt_cv_dlopen_libs=
  9291. ;;
  9292. cygwin*)
  9293. lt_cv_dlopen="dlopen"
  9294. lt_cv_dlopen_libs=
  9295. ;;
  9296. darwin*)
  9297. # if libdl is installed we need to link against it
  9298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9299. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9300. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9301. $as_echo_n "(cached) " >&6
  9302. else
  9303. ac_check_lib_save_LIBS=$LIBS
  9304. LIBS="-ldl $LIBS"
  9305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9306. /* end confdefs.h. */
  9307. /* Override any GCC internal prototype to avoid an error.
  9308. Use char because int might match the return type of a GCC
  9309. builtin and then its argument prototype would still apply. */
  9310. #ifdef __cplusplus
  9311. extern "C"
  9312. #endif
  9313. char dlopen ();
  9314. int
  9315. main ()
  9316. {
  9317. return dlopen ();
  9318. ;
  9319. return 0;
  9320. }
  9321. _ACEOF
  9322. if ac_fn_c_try_link "$LINENO"; then :
  9323. ac_cv_lib_dl_dlopen=yes
  9324. else
  9325. ac_cv_lib_dl_dlopen=no
  9326. fi
  9327. rm -f core conftest.err conftest.$ac_objext \
  9328. conftest$ac_exeext conftest.$ac_ext
  9329. LIBS=$ac_check_lib_save_LIBS
  9330. fi
  9331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9332. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9333. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9334. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9335. else
  9336. lt_cv_dlopen="dyld"
  9337. lt_cv_dlopen_libs=
  9338. lt_cv_dlopen_self=yes
  9339. fi
  9340. ;;
  9341. *)
  9342. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9343. if test "x$ac_cv_func_shl_load" = xyes; then :
  9344. lt_cv_dlopen="shl_load"
  9345. else
  9346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9347. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9348. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9349. $as_echo_n "(cached) " >&6
  9350. else
  9351. ac_check_lib_save_LIBS=$LIBS
  9352. LIBS="-ldld $LIBS"
  9353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9354. /* end confdefs.h. */
  9355. /* Override any GCC internal prototype to avoid an error.
  9356. Use char because int might match the return type of a GCC
  9357. builtin and then its argument prototype would still apply. */
  9358. #ifdef __cplusplus
  9359. extern "C"
  9360. #endif
  9361. char shl_load ();
  9362. int
  9363. main ()
  9364. {
  9365. return shl_load ();
  9366. ;
  9367. return 0;
  9368. }
  9369. _ACEOF
  9370. if ac_fn_c_try_link "$LINENO"; then :
  9371. ac_cv_lib_dld_shl_load=yes
  9372. else
  9373. ac_cv_lib_dld_shl_load=no
  9374. fi
  9375. rm -f core conftest.err conftest.$ac_objext \
  9376. conftest$ac_exeext conftest.$ac_ext
  9377. LIBS=$ac_check_lib_save_LIBS
  9378. fi
  9379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9380. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9381. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9382. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9383. else
  9384. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9385. if test "x$ac_cv_func_dlopen" = xyes; then :
  9386. lt_cv_dlopen="dlopen"
  9387. else
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9389. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9390. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9391. $as_echo_n "(cached) " >&6
  9392. else
  9393. ac_check_lib_save_LIBS=$LIBS
  9394. LIBS="-ldl $LIBS"
  9395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9396. /* end confdefs.h. */
  9397. /* Override any GCC internal prototype to avoid an error.
  9398. Use char because int might match the return type of a GCC
  9399. builtin and then its argument prototype would still apply. */
  9400. #ifdef __cplusplus
  9401. extern "C"
  9402. #endif
  9403. char dlopen ();
  9404. int
  9405. main ()
  9406. {
  9407. return dlopen ();
  9408. ;
  9409. return 0;
  9410. }
  9411. _ACEOF
  9412. if ac_fn_c_try_link "$LINENO"; then :
  9413. ac_cv_lib_dl_dlopen=yes
  9414. else
  9415. ac_cv_lib_dl_dlopen=no
  9416. fi
  9417. rm -f core conftest.err conftest.$ac_objext \
  9418. conftest$ac_exeext conftest.$ac_ext
  9419. LIBS=$ac_check_lib_save_LIBS
  9420. fi
  9421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9422. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9423. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9424. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9425. else
  9426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9427. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9428. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9429. $as_echo_n "(cached) " >&6
  9430. else
  9431. ac_check_lib_save_LIBS=$LIBS
  9432. LIBS="-lsvld $LIBS"
  9433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9434. /* end confdefs.h. */
  9435. /* Override any GCC internal prototype to avoid an error.
  9436. Use char because int might match the return type of a GCC
  9437. builtin and then its argument prototype would still apply. */
  9438. #ifdef __cplusplus
  9439. extern "C"
  9440. #endif
  9441. char dlopen ();
  9442. int
  9443. main ()
  9444. {
  9445. return dlopen ();
  9446. ;
  9447. return 0;
  9448. }
  9449. _ACEOF
  9450. if ac_fn_c_try_link "$LINENO"; then :
  9451. ac_cv_lib_svld_dlopen=yes
  9452. else
  9453. ac_cv_lib_svld_dlopen=no
  9454. fi
  9455. rm -f core conftest.err conftest.$ac_objext \
  9456. conftest$ac_exeext conftest.$ac_ext
  9457. LIBS=$ac_check_lib_save_LIBS
  9458. fi
  9459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9460. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9461. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9462. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9463. else
  9464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9465. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9466. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9467. $as_echo_n "(cached) " >&6
  9468. else
  9469. ac_check_lib_save_LIBS=$LIBS
  9470. LIBS="-ldld $LIBS"
  9471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9472. /* end confdefs.h. */
  9473. /* Override any GCC internal prototype to avoid an error.
  9474. Use char because int might match the return type of a GCC
  9475. builtin and then its argument prototype would still apply. */
  9476. #ifdef __cplusplus
  9477. extern "C"
  9478. #endif
  9479. char dld_link ();
  9480. int
  9481. main ()
  9482. {
  9483. return dld_link ();
  9484. ;
  9485. return 0;
  9486. }
  9487. _ACEOF
  9488. if ac_fn_c_try_link "$LINENO"; then :
  9489. ac_cv_lib_dld_dld_link=yes
  9490. else
  9491. ac_cv_lib_dld_dld_link=no
  9492. fi
  9493. rm -f core conftest.err conftest.$ac_objext \
  9494. conftest$ac_exeext conftest.$ac_ext
  9495. LIBS=$ac_check_lib_save_LIBS
  9496. fi
  9497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9498. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9499. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9500. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9501. fi
  9502. fi
  9503. fi
  9504. fi
  9505. fi
  9506. fi
  9507. ;;
  9508. esac
  9509. if test "x$lt_cv_dlopen" != xno; then
  9510. enable_dlopen=yes
  9511. else
  9512. enable_dlopen=no
  9513. fi
  9514. case $lt_cv_dlopen in
  9515. dlopen)
  9516. save_CPPFLAGS="$CPPFLAGS"
  9517. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9518. save_LDFLAGS="$LDFLAGS"
  9519. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9520. save_LIBS="$LIBS"
  9521. LIBS="$lt_cv_dlopen_libs $LIBS"
  9522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9523. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9524. if ${lt_cv_dlopen_self+:} false; then :
  9525. $as_echo_n "(cached) " >&6
  9526. else
  9527. if test "$cross_compiling" = yes; then :
  9528. lt_cv_dlopen_self=cross
  9529. else
  9530. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9531. lt_status=$lt_dlunknown
  9532. cat > conftest.$ac_ext <<_LT_EOF
  9533. #line $LINENO "configure"
  9534. #include "confdefs.h"
  9535. #if HAVE_DLFCN_H
  9536. #include <dlfcn.h>
  9537. #endif
  9538. #include <stdio.h>
  9539. #ifdef RTLD_GLOBAL
  9540. # define LT_DLGLOBAL RTLD_GLOBAL
  9541. #else
  9542. # ifdef DL_GLOBAL
  9543. # define LT_DLGLOBAL DL_GLOBAL
  9544. # else
  9545. # define LT_DLGLOBAL 0
  9546. # endif
  9547. #endif
  9548. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9549. find out it does not work in some platform. */
  9550. #ifndef LT_DLLAZY_OR_NOW
  9551. # ifdef RTLD_LAZY
  9552. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9553. # else
  9554. # ifdef DL_LAZY
  9555. # define LT_DLLAZY_OR_NOW DL_LAZY
  9556. # else
  9557. # ifdef RTLD_NOW
  9558. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9559. # else
  9560. # ifdef DL_NOW
  9561. # define LT_DLLAZY_OR_NOW DL_NOW
  9562. # else
  9563. # define LT_DLLAZY_OR_NOW 0
  9564. # endif
  9565. # endif
  9566. # endif
  9567. # endif
  9568. #endif
  9569. /* When -fvisbility=hidden is used, assume the code has been annotated
  9570. correspondingly for the symbols needed. */
  9571. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9572. int fnord () __attribute__((visibility("default")));
  9573. #endif
  9574. int fnord () { return 42; }
  9575. int main ()
  9576. {
  9577. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9578. int status = $lt_dlunknown;
  9579. if (self)
  9580. {
  9581. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9582. else
  9583. {
  9584. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9585. else puts (dlerror ());
  9586. }
  9587. /* dlclose (self); */
  9588. }
  9589. else
  9590. puts (dlerror ());
  9591. return status;
  9592. }
  9593. _LT_EOF
  9594. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9595. (eval $ac_link) 2>&5
  9596. ac_status=$?
  9597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9598. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9599. (./conftest; exit; ) >&5 2>/dev/null
  9600. lt_status=$?
  9601. case x$lt_status in
  9602. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9603. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9604. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9605. esac
  9606. else :
  9607. # compilation failed
  9608. lt_cv_dlopen_self=no
  9609. fi
  9610. fi
  9611. rm -fr conftest*
  9612. fi
  9613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9614. $as_echo "$lt_cv_dlopen_self" >&6; }
  9615. if test "x$lt_cv_dlopen_self" = xyes; then
  9616. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9618. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9619. if ${lt_cv_dlopen_self_static+:} false; then :
  9620. $as_echo_n "(cached) " >&6
  9621. else
  9622. if test "$cross_compiling" = yes; then :
  9623. lt_cv_dlopen_self_static=cross
  9624. else
  9625. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9626. lt_status=$lt_dlunknown
  9627. cat > conftest.$ac_ext <<_LT_EOF
  9628. #line $LINENO "configure"
  9629. #include "confdefs.h"
  9630. #if HAVE_DLFCN_H
  9631. #include <dlfcn.h>
  9632. #endif
  9633. #include <stdio.h>
  9634. #ifdef RTLD_GLOBAL
  9635. # define LT_DLGLOBAL RTLD_GLOBAL
  9636. #else
  9637. # ifdef DL_GLOBAL
  9638. # define LT_DLGLOBAL DL_GLOBAL
  9639. # else
  9640. # define LT_DLGLOBAL 0
  9641. # endif
  9642. #endif
  9643. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9644. find out it does not work in some platform. */
  9645. #ifndef LT_DLLAZY_OR_NOW
  9646. # ifdef RTLD_LAZY
  9647. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9648. # else
  9649. # ifdef DL_LAZY
  9650. # define LT_DLLAZY_OR_NOW DL_LAZY
  9651. # else
  9652. # ifdef RTLD_NOW
  9653. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9654. # else
  9655. # ifdef DL_NOW
  9656. # define LT_DLLAZY_OR_NOW DL_NOW
  9657. # else
  9658. # define LT_DLLAZY_OR_NOW 0
  9659. # endif
  9660. # endif
  9661. # endif
  9662. # endif
  9663. #endif
  9664. /* When -fvisbility=hidden is used, assume the code has been annotated
  9665. correspondingly for the symbols needed. */
  9666. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9667. int fnord () __attribute__((visibility("default")));
  9668. #endif
  9669. int fnord () { return 42; }
  9670. int main ()
  9671. {
  9672. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9673. int status = $lt_dlunknown;
  9674. if (self)
  9675. {
  9676. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9677. else
  9678. {
  9679. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9680. else puts (dlerror ());
  9681. }
  9682. /* dlclose (self); */
  9683. }
  9684. else
  9685. puts (dlerror ());
  9686. return status;
  9687. }
  9688. _LT_EOF
  9689. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9690. (eval $ac_link) 2>&5
  9691. ac_status=$?
  9692. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9693. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9694. (./conftest; exit; ) >&5 2>/dev/null
  9695. lt_status=$?
  9696. case x$lt_status in
  9697. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9698. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9699. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9700. esac
  9701. else :
  9702. # compilation failed
  9703. lt_cv_dlopen_self_static=no
  9704. fi
  9705. fi
  9706. rm -fr conftest*
  9707. fi
  9708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9709. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9710. fi
  9711. CPPFLAGS="$save_CPPFLAGS"
  9712. LDFLAGS="$save_LDFLAGS"
  9713. LIBS="$save_LIBS"
  9714. ;;
  9715. esac
  9716. case $lt_cv_dlopen_self in
  9717. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9718. *) enable_dlopen_self=unknown ;;
  9719. esac
  9720. case $lt_cv_dlopen_self_static in
  9721. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9722. *) enable_dlopen_self_static=unknown ;;
  9723. esac
  9724. fi
  9725. striplib=
  9726. old_striplib=
  9727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9728. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9729. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9730. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9731. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9733. $as_echo "yes" >&6; }
  9734. else
  9735. # FIXME - insert some real tests, host_os isn't really good enough
  9736. case $host_os in
  9737. darwin*)
  9738. if test -n "$STRIP" ; then
  9739. striplib="$STRIP -x"
  9740. old_striplib="$STRIP -S"
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9742. $as_echo "yes" >&6; }
  9743. else
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9745. $as_echo "no" >&6; }
  9746. fi
  9747. ;;
  9748. *)
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9750. $as_echo "no" >&6; }
  9751. ;;
  9752. esac
  9753. fi
  9754. # Report which library types will actually be built
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9756. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9758. $as_echo "$can_build_shared" >&6; }
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9760. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9761. test "$can_build_shared" = "no" && enable_shared=no
  9762. # On AIX, shared libraries and static libraries use the same namespace, and
  9763. # are all built from PIC.
  9764. case $host_os in
  9765. aix3*)
  9766. test "$enable_shared" = yes && enable_static=no
  9767. if test -n "$RANLIB"; then
  9768. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9769. postinstall_cmds='$RANLIB $lib'
  9770. fi
  9771. ;;
  9772. aix[4-9]*)
  9773. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9774. test "$enable_shared" = yes && enable_static=no
  9775. fi
  9776. ;;
  9777. esac
  9778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9779. $as_echo "$enable_shared" >&6; }
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9781. $as_echo_n "checking whether to build static libraries... " >&6; }
  9782. # Make sure either enable_shared or enable_static is yes.
  9783. test "$enable_shared" = yes || enable_static=yes
  9784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9785. $as_echo "$enable_static" >&6; }
  9786. fi
  9787. ac_ext=c
  9788. ac_cpp='$CPP $CPPFLAGS'
  9789. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9790. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9791. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9792. CC="$lt_save_CC"
  9793. ac_config_commands="$ac_config_commands libtool"
  9794. # Only expand once:
  9795. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9796. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9797. LT_REVISION=$SDL_INTERFACE_AGE
  9798. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9799. ac_ext=c
  9800. ac_cpp='$CPP $CPPFLAGS'
  9801. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9802. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9803. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9804. if test -n "$ac_tool_prefix"; then
  9805. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9806. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9808. $as_echo_n "checking for $ac_word... " >&6; }
  9809. if ${ac_cv_prog_CC+:} false; then :
  9810. $as_echo_n "(cached) " >&6
  9811. else
  9812. if test -n "$CC"; then
  9813. ac_cv_prog_CC="$CC" # Let the user override the test.
  9814. else
  9815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9816. for as_dir in $PATH
  9817. do
  9818. IFS=$as_save_IFS
  9819. test -z "$as_dir" && as_dir=.
  9820. for ac_exec_ext in '' $ac_executable_extensions; do
  9821. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9822. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9824. break 2
  9825. fi
  9826. done
  9827. done
  9828. IFS=$as_save_IFS
  9829. fi
  9830. fi
  9831. CC=$ac_cv_prog_CC
  9832. if test -n "$CC"; then
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9834. $as_echo "$CC" >&6; }
  9835. else
  9836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9837. $as_echo "no" >&6; }
  9838. fi
  9839. fi
  9840. if test -z "$ac_cv_prog_CC"; then
  9841. ac_ct_CC=$CC
  9842. # Extract the first word of "gcc", so it can be a program name with args.
  9843. set dummy gcc; ac_word=$2
  9844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9845. $as_echo_n "checking for $ac_word... " >&6; }
  9846. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9847. $as_echo_n "(cached) " >&6
  9848. else
  9849. if test -n "$ac_ct_CC"; then
  9850. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9851. else
  9852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9853. for as_dir in $PATH
  9854. do
  9855. IFS=$as_save_IFS
  9856. test -z "$as_dir" && as_dir=.
  9857. for ac_exec_ext in '' $ac_executable_extensions; do
  9858. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9859. ac_cv_prog_ac_ct_CC="gcc"
  9860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9861. break 2
  9862. fi
  9863. done
  9864. done
  9865. IFS=$as_save_IFS
  9866. fi
  9867. fi
  9868. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9869. if test -n "$ac_ct_CC"; then
  9870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9871. $as_echo "$ac_ct_CC" >&6; }
  9872. else
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9874. $as_echo "no" >&6; }
  9875. fi
  9876. if test "x$ac_ct_CC" = x; then
  9877. CC=""
  9878. else
  9879. case $cross_compiling:$ac_tool_warned in
  9880. yes:)
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9882. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9883. ac_tool_warned=yes ;;
  9884. esac
  9885. CC=$ac_ct_CC
  9886. fi
  9887. else
  9888. CC="$ac_cv_prog_CC"
  9889. fi
  9890. if test -z "$CC"; then
  9891. if test -n "$ac_tool_prefix"; then
  9892. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9893. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9895. $as_echo_n "checking for $ac_word... " >&6; }
  9896. if ${ac_cv_prog_CC+:} false; then :
  9897. $as_echo_n "(cached) " >&6
  9898. else
  9899. if test -n "$CC"; then
  9900. ac_cv_prog_CC="$CC" # Let the user override the test.
  9901. else
  9902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9903. for as_dir in $PATH
  9904. do
  9905. IFS=$as_save_IFS
  9906. test -z "$as_dir" && as_dir=.
  9907. for ac_exec_ext in '' $ac_executable_extensions; do
  9908. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9909. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9911. break 2
  9912. fi
  9913. done
  9914. done
  9915. IFS=$as_save_IFS
  9916. fi
  9917. fi
  9918. CC=$ac_cv_prog_CC
  9919. if test -n "$CC"; then
  9920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9921. $as_echo "$CC" >&6; }
  9922. else
  9923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9924. $as_echo "no" >&6; }
  9925. fi
  9926. fi
  9927. fi
  9928. if test -z "$CC"; then
  9929. # Extract the first word of "cc", so it can be a program name with args.
  9930. set dummy cc; ac_word=$2
  9931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9932. $as_echo_n "checking for $ac_word... " >&6; }
  9933. if ${ac_cv_prog_CC+:} false; then :
  9934. $as_echo_n "(cached) " >&6
  9935. else
  9936. if test -n "$CC"; then
  9937. ac_cv_prog_CC="$CC" # Let the user override the test.
  9938. else
  9939. ac_prog_rejected=no
  9940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9941. for as_dir in $PATH
  9942. do
  9943. IFS=$as_save_IFS
  9944. test -z "$as_dir" && as_dir=.
  9945. for ac_exec_ext in '' $ac_executable_extensions; do
  9946. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9947. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9948. ac_prog_rejected=yes
  9949. continue
  9950. fi
  9951. ac_cv_prog_CC="cc"
  9952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9953. break 2
  9954. fi
  9955. done
  9956. done
  9957. IFS=$as_save_IFS
  9958. if test $ac_prog_rejected = yes; then
  9959. # We found a bogon in the path, so make sure we never use it.
  9960. set dummy $ac_cv_prog_CC
  9961. shift
  9962. if test $# != 0; then
  9963. # We chose a different compiler from the bogus one.
  9964. # However, it has the same basename, so the bogon will be chosen
  9965. # first if we set CC to just the basename; use the full file name.
  9966. shift
  9967. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9968. fi
  9969. fi
  9970. fi
  9971. fi
  9972. CC=$ac_cv_prog_CC
  9973. if test -n "$CC"; then
  9974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9975. $as_echo "$CC" >&6; }
  9976. else
  9977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9978. $as_echo "no" >&6; }
  9979. fi
  9980. fi
  9981. if test -z "$CC"; then
  9982. if test -n "$ac_tool_prefix"; then
  9983. for ac_prog in cl.exe
  9984. do
  9985. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9986. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9988. $as_echo_n "checking for $ac_word... " >&6; }
  9989. if ${ac_cv_prog_CC+:} false; then :
  9990. $as_echo_n "(cached) " >&6
  9991. else
  9992. if test -n "$CC"; then
  9993. ac_cv_prog_CC="$CC" # Let the user override the test.
  9994. else
  9995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9996. for as_dir in $PATH
  9997. do
  9998. IFS=$as_save_IFS
  9999. test -z "$as_dir" && as_dir=.
  10000. for ac_exec_ext in '' $ac_executable_extensions; do
  10001. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10002. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10003. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10004. break 2
  10005. fi
  10006. done
  10007. done
  10008. IFS=$as_save_IFS
  10009. fi
  10010. fi
  10011. CC=$ac_cv_prog_CC
  10012. if test -n "$CC"; then
  10013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10014. $as_echo "$CC" >&6; }
  10015. else
  10016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10017. $as_echo "no" >&6; }
  10018. fi
  10019. test -n "$CC" && break
  10020. done
  10021. fi
  10022. if test -z "$CC"; then
  10023. ac_ct_CC=$CC
  10024. for ac_prog in cl.exe
  10025. do
  10026. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10027. set dummy $ac_prog; ac_word=$2
  10028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10029. $as_echo_n "checking for $ac_word... " >&6; }
  10030. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10031. $as_echo_n "(cached) " >&6
  10032. else
  10033. if test -n "$ac_ct_CC"; then
  10034. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10035. else
  10036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10037. for as_dir in $PATH
  10038. do
  10039. IFS=$as_save_IFS
  10040. test -z "$as_dir" && as_dir=.
  10041. for ac_exec_ext in '' $ac_executable_extensions; do
  10042. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10043. ac_cv_prog_ac_ct_CC="$ac_prog"
  10044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10045. break 2
  10046. fi
  10047. done
  10048. done
  10049. IFS=$as_save_IFS
  10050. fi
  10051. fi
  10052. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10053. if test -n "$ac_ct_CC"; then
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10055. $as_echo "$ac_ct_CC" >&6; }
  10056. else
  10057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10058. $as_echo "no" >&6; }
  10059. fi
  10060. test -n "$ac_ct_CC" && break
  10061. done
  10062. if test "x$ac_ct_CC" = x; then
  10063. CC=""
  10064. else
  10065. case $cross_compiling:$ac_tool_warned in
  10066. yes:)
  10067. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10068. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10069. ac_tool_warned=yes ;;
  10070. esac
  10071. CC=$ac_ct_CC
  10072. fi
  10073. fi
  10074. fi
  10075. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10076. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10077. as_fn_error $? "no acceptable C compiler found in \$PATH
  10078. See \`config.log' for more details" "$LINENO" 5; }
  10079. # Provide some information about the compiler.
  10080. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10081. set X $ac_compile
  10082. ac_compiler=$2
  10083. for ac_option in --version -v -V -qversion; do
  10084. { { ac_try="$ac_compiler $ac_option >&5"
  10085. case "(($ac_try" in
  10086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10087. *) ac_try_echo=$ac_try;;
  10088. esac
  10089. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10090. $as_echo "$ac_try_echo"; } >&5
  10091. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10092. ac_status=$?
  10093. if test -s conftest.err; then
  10094. sed '10a\
  10095. ... rest of stderr output deleted ...
  10096. 10q' conftest.err >conftest.er1
  10097. cat conftest.er1 >&5
  10098. fi
  10099. rm -f conftest.er1 conftest.err
  10100. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10101. test $ac_status = 0; }
  10102. done
  10103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10104. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10105. if ${ac_cv_c_compiler_gnu+:} false; then :
  10106. $as_echo_n "(cached) " >&6
  10107. else
  10108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10109. /* end confdefs.h. */
  10110. int
  10111. main ()
  10112. {
  10113. #ifndef __GNUC__
  10114. choke me
  10115. #endif
  10116. ;
  10117. return 0;
  10118. }
  10119. _ACEOF
  10120. if ac_fn_c_try_compile "$LINENO"; then :
  10121. ac_compiler_gnu=yes
  10122. else
  10123. ac_compiler_gnu=no
  10124. fi
  10125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10126. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10127. fi
  10128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10129. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10130. if test $ac_compiler_gnu = yes; then
  10131. GCC=yes
  10132. else
  10133. GCC=
  10134. fi
  10135. ac_test_CFLAGS=${CFLAGS+set}
  10136. ac_save_CFLAGS=$CFLAGS
  10137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10138. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10139. if ${ac_cv_prog_cc_g+:} false; then :
  10140. $as_echo_n "(cached) " >&6
  10141. else
  10142. ac_save_c_werror_flag=$ac_c_werror_flag
  10143. ac_c_werror_flag=yes
  10144. ac_cv_prog_cc_g=no
  10145. CFLAGS="-g"
  10146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10147. /* end confdefs.h. */
  10148. int
  10149. main ()
  10150. {
  10151. ;
  10152. return 0;
  10153. }
  10154. _ACEOF
  10155. if ac_fn_c_try_compile "$LINENO"; then :
  10156. ac_cv_prog_cc_g=yes
  10157. else
  10158. CFLAGS=""
  10159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10160. /* end confdefs.h. */
  10161. int
  10162. main ()
  10163. {
  10164. ;
  10165. return 0;
  10166. }
  10167. _ACEOF
  10168. if ac_fn_c_try_compile "$LINENO"; then :
  10169. else
  10170. ac_c_werror_flag=$ac_save_c_werror_flag
  10171. CFLAGS="-g"
  10172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10173. /* end confdefs.h. */
  10174. int
  10175. main ()
  10176. {
  10177. ;
  10178. return 0;
  10179. }
  10180. _ACEOF
  10181. if ac_fn_c_try_compile "$LINENO"; then :
  10182. ac_cv_prog_cc_g=yes
  10183. fi
  10184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_c_werror_flag=$ac_save_c_werror_flag
  10190. fi
  10191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10192. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10193. if test "$ac_test_CFLAGS" = set; then
  10194. CFLAGS=$ac_save_CFLAGS
  10195. elif test $ac_cv_prog_cc_g = yes; then
  10196. if test "$GCC" = yes; then
  10197. CFLAGS="-g -O2"
  10198. else
  10199. CFLAGS="-g"
  10200. fi
  10201. else
  10202. if test "$GCC" = yes; then
  10203. CFLAGS="-O2"
  10204. else
  10205. CFLAGS=
  10206. fi
  10207. fi
  10208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10209. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10210. if ${ac_cv_prog_cc_c89+:} false; then :
  10211. $as_echo_n "(cached) " >&6
  10212. else
  10213. ac_cv_prog_cc_c89=no
  10214. ac_save_CC=$CC
  10215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10216. /* end confdefs.h. */
  10217. #include <stdarg.h>
  10218. #include <stdio.h>
  10219. struct stat;
  10220. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10221. struct buf { int x; };
  10222. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10223. static char *e (p, i)
  10224. char **p;
  10225. int i;
  10226. {
  10227. return p[i];
  10228. }
  10229. static char *f (char * (*g) (char **, int), char **p, ...)
  10230. {
  10231. char *s;
  10232. va_list v;
  10233. va_start (v,p);
  10234. s = g (p, va_arg (v,int));
  10235. va_end (v);
  10236. return s;
  10237. }
  10238. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10239. function prototypes and stuff, but not '\xHH' hex character constants.
  10240. These don't provoke an error unfortunately, instead are silently treated
  10241. as 'x'. The following induces an error, until -std is added to get
  10242. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10243. array size at least. It's necessary to write '\x00'==0 to get something
  10244. that's true only with -std. */
  10245. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10246. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10247. inside strings and character constants. */
  10248. #define FOO(x) 'x'
  10249. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10250. int test (int i, double x);
  10251. struct s1 {int (*f) (int a);};
  10252. struct s2 {int (*f) (double a);};
  10253. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10254. int argc;
  10255. char **argv;
  10256. int
  10257. main ()
  10258. {
  10259. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10260. ;
  10261. return 0;
  10262. }
  10263. _ACEOF
  10264. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10265. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10266. do
  10267. CC="$ac_save_CC $ac_arg"
  10268. if ac_fn_c_try_compile "$LINENO"; then :
  10269. ac_cv_prog_cc_c89=$ac_arg
  10270. fi
  10271. rm -f core conftest.err conftest.$ac_objext
  10272. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10273. done
  10274. rm -f conftest.$ac_ext
  10275. CC=$ac_save_CC
  10276. fi
  10277. # AC_CACHE_VAL
  10278. case "x$ac_cv_prog_cc_c89" in
  10279. x)
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10281. $as_echo "none needed" >&6; } ;;
  10282. xno)
  10283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10284. $as_echo "unsupported" >&6; } ;;
  10285. *)
  10286. CC="$CC $ac_cv_prog_cc_c89"
  10287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10288. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10289. esac
  10290. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10291. fi
  10292. ac_ext=c
  10293. ac_cpp='$CPP $CPPFLAGS'
  10294. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10295. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10296. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10297. ac_ext=cpp
  10298. ac_cpp='$CXXCPP $CPPFLAGS'
  10299. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10300. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10301. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10302. if test -z "$CXX"; then
  10303. if test -n "$CCC"; then
  10304. CXX=$CCC
  10305. else
  10306. if test -n "$ac_tool_prefix"; then
  10307. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10308. do
  10309. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10310. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10312. $as_echo_n "checking for $ac_word... " >&6; }
  10313. if ${ac_cv_prog_CXX+:} false; then :
  10314. $as_echo_n "(cached) " >&6
  10315. else
  10316. if test -n "$CXX"; then
  10317. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10318. else
  10319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10320. for as_dir in $PATH
  10321. do
  10322. IFS=$as_save_IFS
  10323. test -z "$as_dir" && as_dir=.
  10324. for ac_exec_ext in '' $ac_executable_extensions; do
  10325. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10326. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10328. break 2
  10329. fi
  10330. done
  10331. done
  10332. IFS=$as_save_IFS
  10333. fi
  10334. fi
  10335. CXX=$ac_cv_prog_CXX
  10336. if test -n "$CXX"; then
  10337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10338. $as_echo "$CXX" >&6; }
  10339. else
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10341. $as_echo "no" >&6; }
  10342. fi
  10343. test -n "$CXX" && break
  10344. done
  10345. fi
  10346. if test -z "$CXX"; then
  10347. ac_ct_CXX=$CXX
  10348. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10349. do
  10350. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10351. set dummy $ac_prog; ac_word=$2
  10352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10353. $as_echo_n "checking for $ac_word... " >&6; }
  10354. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10355. $as_echo_n "(cached) " >&6
  10356. else
  10357. if test -n "$ac_ct_CXX"; then
  10358. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10359. else
  10360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10361. for as_dir in $PATH
  10362. do
  10363. IFS=$as_save_IFS
  10364. test -z "$as_dir" && as_dir=.
  10365. for ac_exec_ext in '' $ac_executable_extensions; do
  10366. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10367. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10369. break 2
  10370. fi
  10371. done
  10372. done
  10373. IFS=$as_save_IFS
  10374. fi
  10375. fi
  10376. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10377. if test -n "$ac_ct_CXX"; then
  10378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10379. $as_echo "$ac_ct_CXX" >&6; }
  10380. else
  10381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10382. $as_echo "no" >&6; }
  10383. fi
  10384. test -n "$ac_ct_CXX" && break
  10385. done
  10386. if test "x$ac_ct_CXX" = x; then
  10387. CXX="g++"
  10388. else
  10389. case $cross_compiling:$ac_tool_warned in
  10390. yes:)
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10392. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10393. ac_tool_warned=yes ;;
  10394. esac
  10395. CXX=$ac_ct_CXX
  10396. fi
  10397. fi
  10398. fi
  10399. fi
  10400. # Provide some information about the compiler.
  10401. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10402. set X $ac_compile
  10403. ac_compiler=$2
  10404. for ac_option in --version -v -V -qversion; do
  10405. { { ac_try="$ac_compiler $ac_option >&5"
  10406. case "(($ac_try" in
  10407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10408. *) ac_try_echo=$ac_try;;
  10409. esac
  10410. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10411. $as_echo "$ac_try_echo"; } >&5
  10412. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10413. ac_status=$?
  10414. if test -s conftest.err; then
  10415. sed '10a\
  10416. ... rest of stderr output deleted ...
  10417. 10q' conftest.err >conftest.er1
  10418. cat conftest.er1 >&5
  10419. fi
  10420. rm -f conftest.er1 conftest.err
  10421. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10422. test $ac_status = 0; }
  10423. done
  10424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10425. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10426. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10427. $as_echo_n "(cached) " >&6
  10428. else
  10429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10430. /* end confdefs.h. */
  10431. int
  10432. main ()
  10433. {
  10434. #ifndef __GNUC__
  10435. choke me
  10436. #endif
  10437. ;
  10438. return 0;
  10439. }
  10440. _ACEOF
  10441. if ac_fn_cxx_try_compile "$LINENO"; then :
  10442. ac_compiler_gnu=yes
  10443. else
  10444. ac_compiler_gnu=no
  10445. fi
  10446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10447. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10448. fi
  10449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10450. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10451. if test $ac_compiler_gnu = yes; then
  10452. GXX=yes
  10453. else
  10454. GXX=
  10455. fi
  10456. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10457. ac_save_CXXFLAGS=$CXXFLAGS
  10458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10459. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10460. if ${ac_cv_prog_cxx_g+:} false; then :
  10461. $as_echo_n "(cached) " >&6
  10462. else
  10463. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10464. ac_cxx_werror_flag=yes
  10465. ac_cv_prog_cxx_g=no
  10466. CXXFLAGS="-g"
  10467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10468. /* end confdefs.h. */
  10469. int
  10470. main ()
  10471. {
  10472. ;
  10473. return 0;
  10474. }
  10475. _ACEOF
  10476. if ac_fn_cxx_try_compile "$LINENO"; then :
  10477. ac_cv_prog_cxx_g=yes
  10478. else
  10479. CXXFLAGS=""
  10480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10481. /* end confdefs.h. */
  10482. int
  10483. main ()
  10484. {
  10485. ;
  10486. return 0;
  10487. }
  10488. _ACEOF
  10489. if ac_fn_cxx_try_compile "$LINENO"; then :
  10490. else
  10491. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10492. CXXFLAGS="-g"
  10493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10494. /* end confdefs.h. */
  10495. int
  10496. main ()
  10497. {
  10498. ;
  10499. return 0;
  10500. }
  10501. _ACEOF
  10502. if ac_fn_cxx_try_compile "$LINENO"; then :
  10503. ac_cv_prog_cxx_g=yes
  10504. fi
  10505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10511. fi
  10512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10513. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10514. if test "$ac_test_CXXFLAGS" = set; then
  10515. CXXFLAGS=$ac_save_CXXFLAGS
  10516. elif test $ac_cv_prog_cxx_g = yes; then
  10517. if test "$GXX" = yes; then
  10518. CXXFLAGS="-g -O2"
  10519. else
  10520. CXXFLAGS="-g"
  10521. fi
  10522. else
  10523. if test "$GXX" = yes; then
  10524. CXXFLAGS="-O2"
  10525. else
  10526. CXXFLAGS=
  10527. fi
  10528. fi
  10529. ac_ext=c
  10530. ac_cpp='$CPP $CPPFLAGS'
  10531. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10532. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10533. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10534. func_stripname_cnf ()
  10535. {
  10536. case ${2} in
  10537. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10538. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10539. esac
  10540. } # func_stripname_cnf
  10541. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10542. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10543. (test "X$CXX" != "Xg++"))) ; then
  10544. ac_ext=cpp
  10545. ac_cpp='$CXXCPP $CPPFLAGS'
  10546. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10547. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10548. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10550. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10551. if test -z "$CXXCPP"; then
  10552. if ${ac_cv_prog_CXXCPP+:} false; then :
  10553. $as_echo_n "(cached) " >&6
  10554. else
  10555. # Double quotes because CXXCPP needs to be expanded
  10556. for CXXCPP in "$CXX -E" "/lib/cpp"
  10557. do
  10558. ac_preproc_ok=false
  10559. for ac_cxx_preproc_warn_flag in '' yes
  10560. do
  10561. # Use a header file that comes with gcc, so configuring glibc
  10562. # with a fresh cross-compiler works.
  10563. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10564. # <limits.h> exists even on freestanding compilers.
  10565. # On the NeXT, cc -E runs the code through the compiler's parser,
  10566. # not just through cpp. "Syntax error" is here to catch this case.
  10567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10568. /* end confdefs.h. */
  10569. #ifdef __STDC__
  10570. # include <limits.h>
  10571. #else
  10572. # include <assert.h>
  10573. #endif
  10574. Syntax error
  10575. _ACEOF
  10576. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10577. else
  10578. # Broken: fails on valid input.
  10579. continue
  10580. fi
  10581. rm -f conftest.err conftest.i conftest.$ac_ext
  10582. # OK, works on sane cases. Now check whether nonexistent headers
  10583. # can be detected and how.
  10584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10585. /* end confdefs.h. */
  10586. #include <ac_nonexistent.h>
  10587. _ACEOF
  10588. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10589. # Broken: success on invalid input.
  10590. continue
  10591. else
  10592. # Passes both tests.
  10593. ac_preproc_ok=:
  10594. break
  10595. fi
  10596. rm -f conftest.err conftest.i conftest.$ac_ext
  10597. done
  10598. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10599. rm -f conftest.i conftest.err conftest.$ac_ext
  10600. if $ac_preproc_ok; then :
  10601. break
  10602. fi
  10603. done
  10604. ac_cv_prog_CXXCPP=$CXXCPP
  10605. fi
  10606. CXXCPP=$ac_cv_prog_CXXCPP
  10607. else
  10608. ac_cv_prog_CXXCPP=$CXXCPP
  10609. fi
  10610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10611. $as_echo "$CXXCPP" >&6; }
  10612. ac_preproc_ok=false
  10613. for ac_cxx_preproc_warn_flag in '' yes
  10614. do
  10615. # Use a header file that comes with gcc, so configuring glibc
  10616. # with a fresh cross-compiler works.
  10617. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10618. # <limits.h> exists even on freestanding compilers.
  10619. # On the NeXT, cc -E runs the code through the compiler's parser,
  10620. # not just through cpp. "Syntax error" is here to catch this case.
  10621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10622. /* end confdefs.h. */
  10623. #ifdef __STDC__
  10624. # include <limits.h>
  10625. #else
  10626. # include <assert.h>
  10627. #endif
  10628. Syntax error
  10629. _ACEOF
  10630. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10631. else
  10632. # Broken: fails on valid input.
  10633. continue
  10634. fi
  10635. rm -f conftest.err conftest.i conftest.$ac_ext
  10636. # OK, works on sane cases. Now check whether nonexistent headers
  10637. # can be detected and how.
  10638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10639. /* end confdefs.h. */
  10640. #include <ac_nonexistent.h>
  10641. _ACEOF
  10642. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10643. # Broken: success on invalid input.
  10644. continue
  10645. else
  10646. # Passes both tests.
  10647. ac_preproc_ok=:
  10648. break
  10649. fi
  10650. rm -f conftest.err conftest.i conftest.$ac_ext
  10651. done
  10652. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10653. rm -f conftest.i conftest.err conftest.$ac_ext
  10654. if $ac_preproc_ok; then :
  10655. else
  10656. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10657. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10658. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10659. See \`config.log' for more details" "$LINENO" 5; }
  10660. fi
  10661. ac_ext=c
  10662. ac_cpp='$CPP $CPPFLAGS'
  10663. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10664. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10665. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10666. else
  10667. _lt_caught_CXX_error=yes
  10668. fi
  10669. ac_ext=cpp
  10670. ac_cpp='$CXXCPP $CPPFLAGS'
  10671. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10672. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10673. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10674. archive_cmds_need_lc_CXX=no
  10675. allow_undefined_flag_CXX=
  10676. always_export_symbols_CXX=no
  10677. archive_expsym_cmds_CXX=
  10678. compiler_needs_object_CXX=no
  10679. export_dynamic_flag_spec_CXX=
  10680. hardcode_direct_CXX=no
  10681. hardcode_direct_absolute_CXX=no
  10682. hardcode_libdir_flag_spec_CXX=
  10683. hardcode_libdir_separator_CXX=
  10684. hardcode_minus_L_CXX=no
  10685. hardcode_shlibpath_var_CXX=unsupported
  10686. hardcode_automatic_CXX=no
  10687. inherit_rpath_CXX=no
  10688. module_cmds_CXX=
  10689. module_expsym_cmds_CXX=
  10690. link_all_deplibs_CXX=unknown
  10691. old_archive_cmds_CXX=$old_archive_cmds
  10692. reload_flag_CXX=$reload_flag
  10693. reload_cmds_CXX=$reload_cmds
  10694. no_undefined_flag_CXX=
  10695. whole_archive_flag_spec_CXX=
  10696. enable_shared_with_static_runtimes_CXX=no
  10697. # Source file extension for C++ test sources.
  10698. ac_ext=cpp
  10699. # Object file extension for compiled C++ test sources.
  10700. objext=o
  10701. objext_CXX=$objext
  10702. # No sense in running all these tests if we already determined that
  10703. # the CXX compiler isn't working. Some variables (like enable_shared)
  10704. # are currently assumed to apply to all compilers on this platform,
  10705. # and will be corrupted by setting them based on a non-working compiler.
  10706. if test "$_lt_caught_CXX_error" != yes; then
  10707. # Code to be used in simple compile tests
  10708. lt_simple_compile_test_code="int some_variable = 0;"
  10709. # Code to be used in simple link tests
  10710. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10711. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10712. # If no C compiler was specified, use CC.
  10713. LTCC=${LTCC-"$CC"}
  10714. # If no C compiler flags were specified, use CFLAGS.
  10715. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10716. # Allow CC to be a program name with arguments.
  10717. compiler=$CC
  10718. # save warnings/boilerplate of simple test code
  10719. ac_outfile=conftest.$ac_objext
  10720. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10721. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10722. _lt_compiler_boilerplate=`cat conftest.err`
  10723. $RM conftest*
  10724. ac_outfile=conftest.$ac_objext
  10725. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10726. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10727. _lt_linker_boilerplate=`cat conftest.err`
  10728. $RM -r conftest*
  10729. # Allow CC to be a program name with arguments.
  10730. lt_save_CC=$CC
  10731. lt_save_CFLAGS=$CFLAGS
  10732. lt_save_LD=$LD
  10733. lt_save_GCC=$GCC
  10734. GCC=$GXX
  10735. lt_save_with_gnu_ld=$with_gnu_ld
  10736. lt_save_path_LD=$lt_cv_path_LD
  10737. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10738. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10739. else
  10740. $as_unset lt_cv_prog_gnu_ld
  10741. fi
  10742. if test -n "${lt_cv_path_LDCXX+set}"; then
  10743. lt_cv_path_LD=$lt_cv_path_LDCXX
  10744. else
  10745. $as_unset lt_cv_path_LD
  10746. fi
  10747. test -z "${LDCXX+set}" || LD=$LDCXX
  10748. CC=${CXX-"c++"}
  10749. CFLAGS=$CXXFLAGS
  10750. compiler=$CC
  10751. compiler_CXX=$CC
  10752. for cc_temp in $compiler""; do
  10753. case $cc_temp in
  10754. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10755. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10756. \-*) ;;
  10757. *) break;;
  10758. esac
  10759. done
  10760. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10761. if test -n "$compiler"; then
  10762. # We don't want -fno-exception when compiling C++ code, so set the
  10763. # no_builtin_flag separately
  10764. if test "$GXX" = yes; then
  10765. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10766. else
  10767. lt_prog_compiler_no_builtin_flag_CXX=
  10768. fi
  10769. if test "$GXX" = yes; then
  10770. # Set up default GNU C++ configuration
  10771. # Check whether --with-gnu-ld was given.
  10772. if test "${with_gnu_ld+set}" = set; then :
  10773. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10774. else
  10775. with_gnu_ld=no
  10776. fi
  10777. ac_prog=ld
  10778. if test "$GCC" = yes; then
  10779. # Check if gcc -print-prog-name=ld gives a path.
  10780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10781. $as_echo_n "checking for ld used by $CC... " >&6; }
  10782. case $host in
  10783. *-*-mingw*)
  10784. # gcc leaves a trailing carriage return which upsets mingw
  10785. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10786. *)
  10787. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10788. esac
  10789. case $ac_prog in
  10790. # Accept absolute paths.
  10791. [\\/]* | ?:[\\/]*)
  10792. re_direlt='/[^/][^/]*/\.\./'
  10793. # Canonicalize the pathname of ld
  10794. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10795. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10796. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10797. done
  10798. test -z "$LD" && LD="$ac_prog"
  10799. ;;
  10800. "")
  10801. # If it fails, then pretend we aren't using GCC.
  10802. ac_prog=ld
  10803. ;;
  10804. *)
  10805. # If it is relative, then search for the first ld in PATH.
  10806. with_gnu_ld=unknown
  10807. ;;
  10808. esac
  10809. elif test "$with_gnu_ld" = yes; then
  10810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10811. $as_echo_n "checking for GNU ld... " >&6; }
  10812. else
  10813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10814. $as_echo_n "checking for non-GNU ld... " >&6; }
  10815. fi
  10816. if ${lt_cv_path_LD+:} false; then :
  10817. $as_echo_n "(cached) " >&6
  10818. else
  10819. if test -z "$LD"; then
  10820. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10821. for ac_dir in $PATH; do
  10822. IFS="$lt_save_ifs"
  10823. test -z "$ac_dir" && ac_dir=.
  10824. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10825. lt_cv_path_LD="$ac_dir/$ac_prog"
  10826. # Check to see if the program is GNU ld. I'd rather use --version,
  10827. # but apparently some variants of GNU ld only accept -v.
  10828. # Break only if it was the GNU/non-GNU ld that we prefer.
  10829. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10830. *GNU* | *'with BFD'*)
  10831. test "$with_gnu_ld" != no && break
  10832. ;;
  10833. *)
  10834. test "$with_gnu_ld" != yes && break
  10835. ;;
  10836. esac
  10837. fi
  10838. done
  10839. IFS="$lt_save_ifs"
  10840. else
  10841. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10842. fi
  10843. fi
  10844. LD="$lt_cv_path_LD"
  10845. if test -n "$LD"; then
  10846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10847. $as_echo "$LD" >&6; }
  10848. else
  10849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10850. $as_echo "no" >&6; }
  10851. fi
  10852. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10854. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10855. if ${lt_cv_prog_gnu_ld+:} false; then :
  10856. $as_echo_n "(cached) " >&6
  10857. else
  10858. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10859. case `$LD -v 2>&1 </dev/null` in
  10860. *GNU* | *'with BFD'*)
  10861. lt_cv_prog_gnu_ld=yes
  10862. ;;
  10863. *)
  10864. lt_cv_prog_gnu_ld=no
  10865. ;;
  10866. esac
  10867. fi
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10869. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10870. with_gnu_ld=$lt_cv_prog_gnu_ld
  10871. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10872. # archiving commands below assume that GNU ld is being used.
  10873. if test "$with_gnu_ld" = yes; then
  10874. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10875. 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'
  10876. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10877. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10878. # If archive_cmds runs LD, not CC, wlarc should be empty
  10879. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10880. # investigate it a little bit more. (MM)
  10881. wlarc='${wl}'
  10882. # ancient GNU ld didn't support --whole-archive et. al.
  10883. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10884. $GREP 'no-whole-archive' > /dev/null; then
  10885. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10886. else
  10887. whole_archive_flag_spec_CXX=
  10888. fi
  10889. else
  10890. with_gnu_ld=no
  10891. wlarc=
  10892. # A generic and very simple default shared library creation
  10893. # command for GNU C++ for the case where it uses the native
  10894. # linker, instead of GNU ld. If possible, this setting should
  10895. # overridden to take advantage of the native linker features on
  10896. # the platform it is being used on.
  10897. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10898. fi
  10899. # Commands to make compiler produce verbose output that lists
  10900. # what "hidden" libraries, object files and flags are used when
  10901. # linking a shared library.
  10902. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10903. else
  10904. GXX=no
  10905. with_gnu_ld=no
  10906. wlarc=
  10907. fi
  10908. # PORTME: fill in a description of your system's C++ link characteristics
  10909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10910. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10911. ld_shlibs_CXX=yes
  10912. case $host_os in
  10913. aix3*)
  10914. # FIXME: insert proper C++ library support
  10915. ld_shlibs_CXX=no
  10916. ;;
  10917. aix[4-9]*)
  10918. if test "$host_cpu" = ia64; then
  10919. # On IA64, the linker does run time linking by default, so we don't
  10920. # have to do anything special.
  10921. aix_use_runtimelinking=no
  10922. exp_sym_flag='-Bexport'
  10923. no_entry_flag=""
  10924. else
  10925. aix_use_runtimelinking=no
  10926. # Test if we are trying to use run time linking or normal
  10927. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10928. # need to do runtime linking.
  10929. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10930. for ld_flag in $LDFLAGS; do
  10931. case $ld_flag in
  10932. *-brtl*)
  10933. aix_use_runtimelinking=yes
  10934. break
  10935. ;;
  10936. esac
  10937. done
  10938. ;;
  10939. esac
  10940. exp_sym_flag='-bexport'
  10941. no_entry_flag='-bnoentry'
  10942. fi
  10943. # When large executables or shared objects are built, AIX ld can
  10944. # have problems creating the table of contents. If linking a library
  10945. # or program results in "error TOC overflow" add -mminimal-toc to
  10946. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10947. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10948. archive_cmds_CXX=''
  10949. hardcode_direct_CXX=yes
  10950. hardcode_direct_absolute_CXX=yes
  10951. hardcode_libdir_separator_CXX=':'
  10952. link_all_deplibs_CXX=yes
  10953. file_list_spec_CXX='${wl}-f,'
  10954. if test "$GXX" = yes; then
  10955. case $host_os in aix4.[012]|aix4.[012].*)
  10956. # We only want to do this on AIX 4.2 and lower, the check
  10957. # below for broken collect2 doesn't work under 4.3+
  10958. collect2name=`${CC} -print-prog-name=collect2`
  10959. if test -f "$collect2name" &&
  10960. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10961. then
  10962. # We have reworked collect2
  10963. :
  10964. else
  10965. # We have old collect2
  10966. hardcode_direct_CXX=unsupported
  10967. # It fails to find uninstalled libraries when the uninstalled
  10968. # path is not listed in the libpath. Setting hardcode_minus_L
  10969. # to unsupported forces relinking
  10970. hardcode_minus_L_CXX=yes
  10971. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10972. hardcode_libdir_separator_CXX=
  10973. fi
  10974. esac
  10975. shared_flag='-shared'
  10976. if test "$aix_use_runtimelinking" = yes; then
  10977. shared_flag="$shared_flag "'${wl}-G'
  10978. fi
  10979. else
  10980. # not using gcc
  10981. if test "$host_cpu" = ia64; then
  10982. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10983. # chokes on -Wl,-G. The following line is correct:
  10984. shared_flag='-G'
  10985. else
  10986. if test "$aix_use_runtimelinking" = yes; then
  10987. shared_flag='${wl}-G'
  10988. else
  10989. shared_flag='${wl}-bM:SRE'
  10990. fi
  10991. fi
  10992. fi
  10993. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10994. # It seems that -bexpall does not export symbols beginning with
  10995. # underscore (_), so it is better to generate a list of symbols to
  10996. # export.
  10997. always_export_symbols_CXX=yes
  10998. if test "$aix_use_runtimelinking" = yes; then
  10999. # Warning - without using the other runtime loading flags (-brtl),
  11000. # -berok will link without error, but may produce a broken library.
  11001. allow_undefined_flag_CXX='-berok'
  11002. # Determine the default libpath from the value encoded in an empty
  11003. # executable.
  11004. if test "${lt_cv_aix_libpath+set}" = set; then
  11005. aix_libpath=$lt_cv_aix_libpath
  11006. else
  11007. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11008. $as_echo_n "(cached) " >&6
  11009. else
  11010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11011. /* end confdefs.h. */
  11012. int
  11013. main ()
  11014. {
  11015. ;
  11016. return 0;
  11017. }
  11018. _ACEOF
  11019. if ac_fn_cxx_try_link "$LINENO"; then :
  11020. lt_aix_libpath_sed='
  11021. /Import File Strings/,/^$/ {
  11022. /^0/ {
  11023. s/^0 *\([^ ]*\) *$/\1/
  11024. p
  11025. }
  11026. }'
  11027. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11028. # Check for a 64-bit object if we didn't find anything.
  11029. if test -z "$lt_cv_aix_libpath__CXX"; then
  11030. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11031. fi
  11032. fi
  11033. rm -f core conftest.err conftest.$ac_objext \
  11034. conftest$ac_exeext conftest.$ac_ext
  11035. if test -z "$lt_cv_aix_libpath__CXX"; then
  11036. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11037. fi
  11038. fi
  11039. aix_libpath=$lt_cv_aix_libpath__CXX
  11040. fi
  11041. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11042. 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"
  11043. else
  11044. if test "$host_cpu" = ia64; then
  11045. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11046. allow_undefined_flag_CXX="-z nodefs"
  11047. 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"
  11048. else
  11049. # Determine the default libpath from the value encoded in an
  11050. # empty executable.
  11051. if test "${lt_cv_aix_libpath+set}" = set; then
  11052. aix_libpath=$lt_cv_aix_libpath
  11053. else
  11054. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11055. $as_echo_n "(cached) " >&6
  11056. else
  11057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11058. /* end confdefs.h. */
  11059. int
  11060. main ()
  11061. {
  11062. ;
  11063. return 0;
  11064. }
  11065. _ACEOF
  11066. if ac_fn_cxx_try_link "$LINENO"; then :
  11067. lt_aix_libpath_sed='
  11068. /Import File Strings/,/^$/ {
  11069. /^0/ {
  11070. s/^0 *\([^ ]*\) *$/\1/
  11071. p
  11072. }
  11073. }'
  11074. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11075. # Check for a 64-bit object if we didn't find anything.
  11076. if test -z "$lt_cv_aix_libpath__CXX"; then
  11077. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11078. fi
  11079. fi
  11080. rm -f core conftest.err conftest.$ac_objext \
  11081. conftest$ac_exeext conftest.$ac_ext
  11082. if test -z "$lt_cv_aix_libpath__CXX"; then
  11083. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11084. fi
  11085. fi
  11086. aix_libpath=$lt_cv_aix_libpath__CXX
  11087. fi
  11088. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11089. # Warning - without using the other run time loading flags,
  11090. # -berok will link without error, but may produce a broken library.
  11091. no_undefined_flag_CXX=' ${wl}-bernotok'
  11092. allow_undefined_flag_CXX=' ${wl}-berok'
  11093. if test "$with_gnu_ld" = yes; then
  11094. # We only use this code for GNU lds that support --whole-archive.
  11095. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11096. else
  11097. # Exported symbols can be pulled into shared objects from archives
  11098. whole_archive_flag_spec_CXX='$convenience'
  11099. fi
  11100. archive_cmds_need_lc_CXX=yes
  11101. # This is similar to how AIX traditionally builds its shared
  11102. # libraries.
  11103. 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'
  11104. fi
  11105. fi
  11106. ;;
  11107. beos*)
  11108. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11109. allow_undefined_flag_CXX=unsupported
  11110. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11111. # support --undefined. This deserves some investigation. FIXME
  11112. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11113. else
  11114. ld_shlibs_CXX=no
  11115. fi
  11116. ;;
  11117. chorus*)
  11118. case $cc_basename in
  11119. *)
  11120. # FIXME: insert proper C++ library support
  11121. ld_shlibs_CXX=no
  11122. ;;
  11123. esac
  11124. ;;
  11125. cygwin* | mingw* | pw32* | cegcc*)
  11126. case $GXX,$cc_basename in
  11127. ,cl* | no,cl*)
  11128. # Native MSVC
  11129. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11130. # no search path for DLLs.
  11131. hardcode_libdir_flag_spec_CXX=' '
  11132. allow_undefined_flag_CXX=unsupported
  11133. always_export_symbols_CXX=yes
  11134. file_list_spec_CXX='@'
  11135. # Tell ltmain to make .lib files, not .a files.
  11136. libext=lib
  11137. # Tell ltmain to make .dll files, not .so files.
  11138. shrext_cmds=".dll"
  11139. # FIXME: Setting linknames here is a bad hack.
  11140. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11141. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11142. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11143. else
  11144. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11145. fi~
  11146. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11147. linknames='
  11148. # The linker will not automatically build a static lib if we build a DLL.
  11149. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11150. enable_shared_with_static_runtimes_CXX=yes
  11151. # Don't use ranlib
  11152. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11153. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11154. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11155. case $lt_outputfile in
  11156. *.exe|*.EXE) ;;
  11157. *)
  11158. lt_outputfile="$lt_outputfile.exe"
  11159. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11160. ;;
  11161. esac~
  11162. func_to_tool_file "$lt_outputfile"~
  11163. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11164. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11165. $RM "$lt_outputfile.manifest";
  11166. fi'
  11167. ;;
  11168. *)
  11169. # g++
  11170. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11171. # as there is no search path for DLLs.
  11172. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11173. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11174. allow_undefined_flag_CXX=unsupported
  11175. always_export_symbols_CXX=no
  11176. enable_shared_with_static_runtimes_CXX=yes
  11177. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11178. 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'
  11179. # If the export-symbols file already is a .def file (1st line
  11180. # is EXPORTS), use it as is; otherwise, prepend...
  11181. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11182. cp $export_symbols $output_objdir/$soname.def;
  11183. else
  11184. echo EXPORTS > $output_objdir/$soname.def;
  11185. cat $export_symbols >> $output_objdir/$soname.def;
  11186. fi~
  11187. $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'
  11188. else
  11189. ld_shlibs_CXX=no
  11190. fi
  11191. ;;
  11192. esac
  11193. ;;
  11194. darwin* | rhapsody*)
  11195. archive_cmds_need_lc_CXX=no
  11196. hardcode_direct_CXX=no
  11197. hardcode_automatic_CXX=yes
  11198. hardcode_shlibpath_var_CXX=unsupported
  11199. if test "$lt_cv_ld_force_load" = "yes"; then
  11200. 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\"`'
  11201. else
  11202. whole_archive_flag_spec_CXX=''
  11203. fi
  11204. link_all_deplibs_CXX=yes
  11205. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11206. case $cc_basename in
  11207. ifort*) _lt_dar_can_shared=yes ;;
  11208. *) _lt_dar_can_shared=$GCC ;;
  11209. esac
  11210. if test "$_lt_dar_can_shared" = "yes"; then
  11211. output_verbose_link_cmd=func_echo_all
  11212. 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}"
  11213. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11214. 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}"
  11215. 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}"
  11216. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11217. 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}"
  11218. 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}"
  11219. fi
  11220. else
  11221. ld_shlibs_CXX=no
  11222. fi
  11223. ;;
  11224. dgux*)
  11225. case $cc_basename in
  11226. ec++*)
  11227. # FIXME: insert proper C++ library support
  11228. ld_shlibs_CXX=no
  11229. ;;
  11230. ghcx*)
  11231. # Green Hills C++ Compiler
  11232. # FIXME: insert proper C++ library support
  11233. ld_shlibs_CXX=no
  11234. ;;
  11235. *)
  11236. # FIXME: insert proper C++ library support
  11237. ld_shlibs_CXX=no
  11238. ;;
  11239. esac
  11240. ;;
  11241. freebsd2.*)
  11242. # C++ shared libraries reported to be fairly broken before
  11243. # switch to ELF
  11244. ld_shlibs_CXX=no
  11245. ;;
  11246. freebsd-elf*)
  11247. archive_cmds_need_lc_CXX=no
  11248. ;;
  11249. freebsd* | dragonfly*)
  11250. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11251. # conventions
  11252. ld_shlibs_CXX=yes
  11253. ;;
  11254. gnu*)
  11255. ;;
  11256. haiku*)
  11257. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11258. link_all_deplibs_CXX=yes
  11259. ;;
  11260. hpux9*)
  11261. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11262. hardcode_libdir_separator_CXX=:
  11263. export_dynamic_flag_spec_CXX='${wl}-E'
  11264. hardcode_direct_CXX=yes
  11265. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11266. # but as the default
  11267. # location of the library.
  11268. case $cc_basename in
  11269. CC*)
  11270. # FIXME: insert proper C++ library support
  11271. ld_shlibs_CXX=no
  11272. ;;
  11273. aCC*)
  11274. 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'
  11275. # Commands to make compiler produce verbose output that lists
  11276. # what "hidden" libraries, object files and flags are used when
  11277. # linking a shared library.
  11278. #
  11279. # There doesn't appear to be a way to prevent this compiler from
  11280. # explicitly linking system object files so we need to strip them
  11281. # from the output so that they don't get included in the library
  11282. # dependencies.
  11283. 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"'
  11284. ;;
  11285. *)
  11286. if test "$GXX" = yes; then
  11287. 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'
  11288. else
  11289. # FIXME: insert proper C++ library support
  11290. ld_shlibs_CXX=no
  11291. fi
  11292. ;;
  11293. esac
  11294. ;;
  11295. hpux10*|hpux11*)
  11296. if test $with_gnu_ld = no; then
  11297. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11298. hardcode_libdir_separator_CXX=:
  11299. case $host_cpu in
  11300. hppa*64*|ia64*)
  11301. ;;
  11302. *)
  11303. export_dynamic_flag_spec_CXX='${wl}-E'
  11304. ;;
  11305. esac
  11306. fi
  11307. case $host_cpu in
  11308. hppa*64*|ia64*)
  11309. hardcode_direct_CXX=no
  11310. hardcode_shlibpath_var_CXX=no
  11311. ;;
  11312. *)
  11313. hardcode_direct_CXX=yes
  11314. hardcode_direct_absolute_CXX=yes
  11315. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11316. # but as the default
  11317. # location of the library.
  11318. ;;
  11319. esac
  11320. case $cc_basename in
  11321. CC*)
  11322. # FIXME: insert proper C++ library support
  11323. ld_shlibs_CXX=no
  11324. ;;
  11325. aCC*)
  11326. case $host_cpu in
  11327. hppa*64*)
  11328. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11329. ;;
  11330. ia64*)
  11331. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11332. ;;
  11333. *)
  11334. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11335. ;;
  11336. esac
  11337. # Commands to make compiler produce verbose output that lists
  11338. # what "hidden" libraries, object files and flags are used when
  11339. # linking a shared library.
  11340. #
  11341. # There doesn't appear to be a way to prevent this compiler from
  11342. # explicitly linking system object files so we need to strip them
  11343. # from the output so that they don't get included in the library
  11344. # dependencies.
  11345. 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"'
  11346. ;;
  11347. *)
  11348. if test "$GXX" = yes; then
  11349. if test $with_gnu_ld = no; then
  11350. case $host_cpu in
  11351. hppa*64*)
  11352. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11353. ;;
  11354. ia64*)
  11355. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11356. ;;
  11357. *)
  11358. 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'
  11359. ;;
  11360. esac
  11361. fi
  11362. else
  11363. # FIXME: insert proper C++ library support
  11364. ld_shlibs_CXX=no
  11365. fi
  11366. ;;
  11367. esac
  11368. ;;
  11369. interix[3-9]*)
  11370. hardcode_direct_CXX=no
  11371. hardcode_shlibpath_var_CXX=no
  11372. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11373. export_dynamic_flag_spec_CXX='${wl}-E'
  11374. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11375. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11376. # default) and relocated if they conflict, which is a slow very memory
  11377. # consuming and fragmenting process. To avoid this, we pick a random,
  11378. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11379. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11380. 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'
  11381. 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'
  11382. ;;
  11383. irix5* | irix6*)
  11384. case $cc_basename in
  11385. CC*)
  11386. # SGI C++
  11387. 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'
  11388. # Archives containing C++ object files must be created using
  11389. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11390. # necessary to make sure instantiated templates are included
  11391. # in the archive.
  11392. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11393. ;;
  11394. *)
  11395. if test "$GXX" = yes; then
  11396. if test "$with_gnu_ld" = no; then
  11397. 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'
  11398. else
  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"` -o $lib'
  11400. fi
  11401. fi
  11402. link_all_deplibs_CXX=yes
  11403. ;;
  11404. esac
  11405. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11406. hardcode_libdir_separator_CXX=:
  11407. inherit_rpath_CXX=yes
  11408. ;;
  11409. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11410. case $cc_basename in
  11411. KCC*)
  11412. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11413. # KCC will only create a shared library if the output file
  11414. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11415. # to its proper name (with version) after linking.
  11416. 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'
  11417. 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'
  11418. # Commands to make compiler produce verbose output that lists
  11419. # what "hidden" libraries, object files and flags are used when
  11420. # linking a shared library.
  11421. #
  11422. # There doesn't appear to be a way to prevent this compiler from
  11423. # explicitly linking system object files so we need to strip them
  11424. # from the output so that they don't get included in the library
  11425. # dependencies.
  11426. 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"'
  11427. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11428. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11429. # Archives containing C++ object files must be created using
  11430. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11431. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11432. ;;
  11433. icpc* | ecpc* )
  11434. # Intel C++
  11435. with_gnu_ld=yes
  11436. # version 8.0 and above of icpc choke on multiply defined symbols
  11437. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11438. # earlier do not add the objects themselves.
  11439. case `$CC -V 2>&1` in
  11440. *"Version 7."*)
  11441. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11442. 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'
  11443. ;;
  11444. *) # Version 8.0 or newer
  11445. tmp_idyn=
  11446. case $host_cpu in
  11447. ia64*) tmp_idyn=' -i_dynamic';;
  11448. esac
  11449. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11450. 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'
  11451. ;;
  11452. esac
  11453. archive_cmds_need_lc_CXX=no
  11454. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11455. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11456. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11457. ;;
  11458. pgCC* | pgcpp*)
  11459. # Portland Group C++ compiler
  11460. case `$CC -V` in
  11461. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11462. prelink_cmds_CXX='tpldir=Template.dir~
  11463. rm -rf $tpldir~
  11464. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11465. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11466. old_archive_cmds_CXX='tpldir=Template.dir~
  11467. rm -rf $tpldir~
  11468. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11469. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11470. $RANLIB $oldlib'
  11471. archive_cmds_CXX='tpldir=Template.dir~
  11472. rm -rf $tpldir~
  11473. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11474. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11475. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11476. rm -rf $tpldir~
  11477. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11478. $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'
  11479. ;;
  11480. *) # Version 6 and above use weak symbols
  11481. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11482. 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'
  11483. ;;
  11484. esac
  11485. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11486. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11487. 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'
  11488. ;;
  11489. cxx*)
  11490. # Compaq C++
  11491. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11492. 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'
  11493. runpath_var=LD_RUN_PATH
  11494. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11495. hardcode_libdir_separator_CXX=:
  11496. # Commands to make compiler produce verbose output that lists
  11497. # what "hidden" libraries, object files and flags are used when
  11498. # linking a shared library.
  11499. #
  11500. # There doesn't appear to be a way to prevent this compiler from
  11501. # explicitly linking system object files so we need to strip them
  11502. # from the output so that they don't get included in the library
  11503. # dependencies.
  11504. 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'
  11505. ;;
  11506. xl* | mpixl* | bgxl*)
  11507. # IBM XL 8.0 on PPC, with GNU ld
  11508. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11509. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11510. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11511. if test "x$supports_anon_versioning" = xyes; then
  11512. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11513. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11514. echo "local: *; };" >> $output_objdir/$libname.ver~
  11515. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11516. fi
  11517. ;;
  11518. *)
  11519. case `$CC -V 2>&1 | sed 5q` in
  11520. *Sun\ C*)
  11521. # Sun C++ 5.9
  11522. no_undefined_flag_CXX=' -zdefs'
  11523. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11524. 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'
  11525. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11526. 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'
  11527. compiler_needs_object_CXX=yes
  11528. # Not sure whether something based on
  11529. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11530. # would be better.
  11531. output_verbose_link_cmd='func_echo_all'
  11532. # Archives containing C++ object files must be created using
  11533. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11534. # necessary to make sure instantiated templates are included
  11535. # in the archive.
  11536. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11537. ;;
  11538. esac
  11539. ;;
  11540. esac
  11541. ;;
  11542. lynxos*)
  11543. # FIXME: insert proper C++ library support
  11544. ld_shlibs_CXX=no
  11545. ;;
  11546. m88k*)
  11547. # FIXME: insert proper C++ library support
  11548. ld_shlibs_CXX=no
  11549. ;;
  11550. mvs*)
  11551. case $cc_basename in
  11552. cxx*)
  11553. # FIXME: insert proper C++ library support
  11554. ld_shlibs_CXX=no
  11555. ;;
  11556. *)
  11557. # FIXME: insert proper C++ library support
  11558. ld_shlibs_CXX=no
  11559. ;;
  11560. esac
  11561. ;;
  11562. netbsd*)
  11563. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11564. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11565. wlarc=
  11566. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11567. hardcode_direct_CXX=yes
  11568. hardcode_shlibpath_var_CXX=no
  11569. fi
  11570. # Workaround some broken pre-1.5 toolchains
  11571. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11572. ;;
  11573. *nto* | *qnx*)
  11574. ld_shlibs_CXX=yes
  11575. ;;
  11576. openbsd2*)
  11577. # C++ shared libraries are fairly broken
  11578. ld_shlibs_CXX=no
  11579. ;;
  11580. openbsd*)
  11581. if test -f /usr/libexec/ld.so; then
  11582. hardcode_direct_CXX=yes
  11583. hardcode_shlibpath_var_CXX=no
  11584. hardcode_direct_absolute_CXX=yes
  11585. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11586. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11587. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11588. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11589. export_dynamic_flag_spec_CXX='${wl}-E'
  11590. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11591. fi
  11592. output_verbose_link_cmd=func_echo_all
  11593. else
  11594. ld_shlibs_CXX=no
  11595. fi
  11596. ;;
  11597. osf3* | osf4* | osf5*)
  11598. case $cc_basename in
  11599. KCC*)
  11600. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11601. # KCC will only create a shared library if the output file
  11602. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11603. # to its proper name (with version) after linking.
  11604. 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'
  11605. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11606. hardcode_libdir_separator_CXX=:
  11607. # Archives containing C++ object files must be created using
  11608. # the KAI C++ compiler.
  11609. case $host in
  11610. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11611. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11612. esac
  11613. ;;
  11614. RCC*)
  11615. # Rational C++ 2.4.1
  11616. # FIXME: insert proper C++ library support
  11617. ld_shlibs_CXX=no
  11618. ;;
  11619. cxx*)
  11620. case $host in
  11621. osf3*)
  11622. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11623. 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'
  11624. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11625. ;;
  11626. *)
  11627. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11628. 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'
  11629. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11630. echo "-hidden">> $lib.exp~
  11631. $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~
  11632. $RM $lib.exp'
  11633. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11634. ;;
  11635. esac
  11636. hardcode_libdir_separator_CXX=:
  11637. # Commands to make compiler produce verbose output that lists
  11638. # what "hidden" libraries, object files and flags are used when
  11639. # linking a shared library.
  11640. #
  11641. # There doesn't appear to be a way to prevent this compiler from
  11642. # explicitly linking system object files so we need to strip them
  11643. # from the output so that they don't get included in the library
  11644. # dependencies.
  11645. 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"'
  11646. ;;
  11647. *)
  11648. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11649. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11650. case $host in
  11651. osf3*)
  11652. 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'
  11653. ;;
  11654. *)
  11655. 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'
  11656. ;;
  11657. esac
  11658. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11659. hardcode_libdir_separator_CXX=:
  11660. # Commands to make compiler produce verbose output that lists
  11661. # what "hidden" libraries, object files and flags are used when
  11662. # linking a shared library.
  11663. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11664. else
  11665. # FIXME: insert proper C++ library support
  11666. ld_shlibs_CXX=no
  11667. fi
  11668. ;;
  11669. esac
  11670. ;;
  11671. psos*)
  11672. # FIXME: insert proper C++ library support
  11673. ld_shlibs_CXX=no
  11674. ;;
  11675. sunos4*)
  11676. case $cc_basename in
  11677. CC*)
  11678. # Sun C++ 4.x
  11679. # FIXME: insert proper C++ library support
  11680. ld_shlibs_CXX=no
  11681. ;;
  11682. lcc*)
  11683. # Lucid
  11684. # FIXME: insert proper C++ library support
  11685. ld_shlibs_CXX=no
  11686. ;;
  11687. *)
  11688. # FIXME: insert proper C++ library support
  11689. ld_shlibs_CXX=no
  11690. ;;
  11691. esac
  11692. ;;
  11693. solaris*)
  11694. case $cc_basename in
  11695. CC* | sunCC*)
  11696. # Sun C++ 4.2, 5.x and Centerline C++
  11697. archive_cmds_need_lc_CXX=yes
  11698. no_undefined_flag_CXX=' -zdefs'
  11699. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11700. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11701. $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'
  11702. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11703. hardcode_shlibpath_var_CXX=no
  11704. case $host_os in
  11705. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11706. *)
  11707. # The compiler driver will combine and reorder linker options,
  11708. # but understands `-z linker_flag'.
  11709. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11710. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11711. ;;
  11712. esac
  11713. link_all_deplibs_CXX=yes
  11714. output_verbose_link_cmd='func_echo_all'
  11715. # Archives containing C++ object files must be created using
  11716. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11717. # necessary to make sure instantiated templates are included
  11718. # in the archive.
  11719. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11720. ;;
  11721. gcx*)
  11722. # Green Hills C++ Compiler
  11723. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11724. # The C++ compiler must be used to create the archive.
  11725. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11726. ;;
  11727. *)
  11728. # GNU C++ compiler with Solaris linker
  11729. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11730. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11731. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11732. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11733. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11734. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11735. # Commands to make compiler produce verbose output that lists
  11736. # what "hidden" libraries, object files and flags are used when
  11737. # linking a shared library.
  11738. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11739. else
  11740. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11741. # platform.
  11742. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11743. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11744. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11745. # Commands to make compiler produce verbose output that lists
  11746. # what "hidden" libraries, object files and flags are used when
  11747. # linking a shared library.
  11748. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11749. fi
  11750. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11751. case $host_os in
  11752. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11753. *)
  11754. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11755. ;;
  11756. esac
  11757. fi
  11758. ;;
  11759. esac
  11760. ;;
  11761. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11762. no_undefined_flag_CXX='${wl}-z,text'
  11763. archive_cmds_need_lc_CXX=no
  11764. hardcode_shlibpath_var_CXX=no
  11765. runpath_var='LD_RUN_PATH'
  11766. case $cc_basename in
  11767. CC*)
  11768. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11769. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11770. ;;
  11771. *)
  11772. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11773. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11774. ;;
  11775. esac
  11776. ;;
  11777. sysv5* | sco3.2v5* | sco5v6*)
  11778. # Note: We can NOT use -z defs as we might desire, because we do not
  11779. # link with -lc, and that would cause any symbols used from libc to
  11780. # always be unresolved, which means just about no library would
  11781. # ever link correctly. If we're not using GNU ld we use -z text
  11782. # though, which does catch some bad symbols but isn't as heavy-handed
  11783. # as -z defs.
  11784. no_undefined_flag_CXX='${wl}-z,text'
  11785. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11786. archive_cmds_need_lc_CXX=no
  11787. hardcode_shlibpath_var_CXX=no
  11788. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11789. hardcode_libdir_separator_CXX=':'
  11790. link_all_deplibs_CXX=yes
  11791. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11792. runpath_var='LD_RUN_PATH'
  11793. case $cc_basename in
  11794. CC*)
  11795. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11796. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11797. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11798. '"$old_archive_cmds_CXX"
  11799. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11800. '"$reload_cmds_CXX"
  11801. ;;
  11802. *)
  11803. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11804. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11805. ;;
  11806. esac
  11807. ;;
  11808. tandem*)
  11809. case $cc_basename in
  11810. NCC*)
  11811. # NonStop-UX NCC 3.20
  11812. # FIXME: insert proper C++ library support
  11813. ld_shlibs_CXX=no
  11814. ;;
  11815. *)
  11816. # FIXME: insert proper C++ library support
  11817. ld_shlibs_CXX=no
  11818. ;;
  11819. esac
  11820. ;;
  11821. vxworks*)
  11822. # FIXME: insert proper C++ library support
  11823. ld_shlibs_CXX=no
  11824. ;;
  11825. *)
  11826. # FIXME: insert proper C++ library support
  11827. ld_shlibs_CXX=no
  11828. ;;
  11829. esac
  11830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11831. $as_echo "$ld_shlibs_CXX" >&6; }
  11832. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11833. GCC_CXX="$GXX"
  11834. LD_CXX="$LD"
  11835. ## CAVEAT EMPTOR:
  11836. ## There is no encapsulation within the following macros, do not change
  11837. ## the running order or otherwise move them around unless you know exactly
  11838. ## what you are doing...
  11839. # Dependencies to place before and after the object being linked:
  11840. predep_objects_CXX=
  11841. postdep_objects_CXX=
  11842. predeps_CXX=
  11843. postdeps_CXX=
  11844. compiler_lib_search_path_CXX=
  11845. cat > conftest.$ac_ext <<_LT_EOF
  11846. class Foo
  11847. {
  11848. public:
  11849. Foo (void) { a = 0; }
  11850. private:
  11851. int a;
  11852. };
  11853. _LT_EOF
  11854. _lt_libdeps_save_CFLAGS=$CFLAGS
  11855. case "$CC $CFLAGS " in #(
  11856. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11857. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11858. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11859. esac
  11860. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11861. (eval $ac_compile) 2>&5
  11862. ac_status=$?
  11863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11864. test $ac_status = 0; }; then
  11865. # Parse the compiler output and extract the necessary
  11866. # objects, libraries and library flags.
  11867. # Sentinel used to keep track of whether or not we are before
  11868. # the conftest object file.
  11869. pre_test_object_deps_done=no
  11870. for p in `eval "$output_verbose_link_cmd"`; do
  11871. case ${prev}${p} in
  11872. -L* | -R* | -l*)
  11873. # Some compilers place space between "-{L,R}" and the path.
  11874. # Remove the space.
  11875. if test $p = "-L" ||
  11876. test $p = "-R"; then
  11877. prev=$p
  11878. continue
  11879. fi
  11880. # Expand the sysroot to ease extracting the directories later.
  11881. if test -z "$prev"; then
  11882. case $p in
  11883. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11884. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11885. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11886. esac
  11887. fi
  11888. case $p in
  11889. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11890. esac
  11891. if test "$pre_test_object_deps_done" = no; then
  11892. case ${prev} in
  11893. -L | -R)
  11894. # Internal compiler library paths should come after those
  11895. # provided the user. The postdeps already come after the
  11896. # user supplied libs so there is no need to process them.
  11897. if test -z "$compiler_lib_search_path_CXX"; then
  11898. compiler_lib_search_path_CXX="${prev}${p}"
  11899. else
  11900. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11901. fi
  11902. ;;
  11903. # The "-l" case would never come before the object being
  11904. # linked, so don't bother handling this case.
  11905. esac
  11906. else
  11907. if test -z "$postdeps_CXX"; then
  11908. postdeps_CXX="${prev}${p}"
  11909. else
  11910. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11911. fi
  11912. fi
  11913. prev=
  11914. ;;
  11915. *.lto.$objext) ;; # Ignore GCC LTO objects
  11916. *.$objext)
  11917. # This assumes that the test object file only shows up
  11918. # once in the compiler output.
  11919. if test "$p" = "conftest.$objext"; then
  11920. pre_test_object_deps_done=yes
  11921. continue
  11922. fi
  11923. if test "$pre_test_object_deps_done" = no; then
  11924. if test -z "$predep_objects_CXX"; then
  11925. predep_objects_CXX="$p"
  11926. else
  11927. predep_objects_CXX="$predep_objects_CXX $p"
  11928. fi
  11929. else
  11930. if test -z "$postdep_objects_CXX"; then
  11931. postdep_objects_CXX="$p"
  11932. else
  11933. postdep_objects_CXX="$postdep_objects_CXX $p"
  11934. fi
  11935. fi
  11936. ;;
  11937. *) ;; # Ignore the rest.
  11938. esac
  11939. done
  11940. # Clean up.
  11941. rm -f a.out a.exe
  11942. else
  11943. echo "libtool.m4: error: problem compiling CXX test program"
  11944. fi
  11945. $RM -f confest.$objext
  11946. CFLAGS=$_lt_libdeps_save_CFLAGS
  11947. # PORTME: override above test on systems where it is broken
  11948. case $host_os in
  11949. interix[3-9]*)
  11950. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11951. # hack all around it, let's just trust "g++" to DTRT.
  11952. predep_objects_CXX=
  11953. postdep_objects_CXX=
  11954. postdeps_CXX=
  11955. ;;
  11956. linux*)
  11957. case `$CC -V 2>&1 | sed 5q` in
  11958. *Sun\ C*)
  11959. # Sun C++ 5.9
  11960. # The more standards-conforming stlport4 library is
  11961. # incompatible with the Cstd library. Avoid specifying
  11962. # it if it's in CXXFLAGS. Ignore libCrun as
  11963. # -library=stlport4 depends on it.
  11964. case " $CXX $CXXFLAGS " in
  11965. *" -library=stlport4 "*)
  11966. solaris_use_stlport4=yes
  11967. ;;
  11968. esac
  11969. if test "$solaris_use_stlport4" != yes; then
  11970. postdeps_CXX='-library=Cstd -library=Crun'
  11971. fi
  11972. ;;
  11973. esac
  11974. ;;
  11975. solaris*)
  11976. case $cc_basename in
  11977. CC* | sunCC*)
  11978. # The more standards-conforming stlport4 library is
  11979. # incompatible with the Cstd library. Avoid specifying
  11980. # it if it's in CXXFLAGS. Ignore libCrun as
  11981. # -library=stlport4 depends on it.
  11982. case " $CXX $CXXFLAGS " in
  11983. *" -library=stlport4 "*)
  11984. solaris_use_stlport4=yes
  11985. ;;
  11986. esac
  11987. # Adding this requires a known-good setup of shared libraries for
  11988. # Sun compiler versions before 5.6, else PIC objects from an old
  11989. # archive will be linked into the output, leading to subtle bugs.
  11990. if test "$solaris_use_stlport4" != yes; then
  11991. postdeps_CXX='-library=Cstd -library=Crun'
  11992. fi
  11993. ;;
  11994. esac
  11995. ;;
  11996. esac
  11997. case " $postdeps_CXX " in
  11998. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11999. esac
  12000. compiler_lib_search_dirs_CXX=
  12001. if test -n "${compiler_lib_search_path_CXX}"; then
  12002. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12003. fi
  12004. lt_prog_compiler_wl_CXX=
  12005. lt_prog_compiler_pic_CXX=
  12006. lt_prog_compiler_static_CXX=
  12007. # C++ specific cases for pic, static, wl, etc.
  12008. if test "$GXX" = yes; then
  12009. lt_prog_compiler_wl_CXX='-Wl,'
  12010. lt_prog_compiler_static_CXX='-static'
  12011. case $host_os in
  12012. aix*)
  12013. # All AIX code is PIC.
  12014. if test "$host_cpu" = ia64; then
  12015. # AIX 5 now supports IA64 processor
  12016. lt_prog_compiler_static_CXX='-Bstatic'
  12017. fi
  12018. ;;
  12019. amigaos*)
  12020. case $host_cpu in
  12021. powerpc)
  12022. # see comment about AmigaOS4 .so support
  12023. lt_prog_compiler_pic_CXX='-fPIC'
  12024. ;;
  12025. m68k)
  12026. # FIXME: we need at least 68020 code to build shared libraries, but
  12027. # adding the `-m68020' flag to GCC prevents building anything better,
  12028. # like `-m68040'.
  12029. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12030. ;;
  12031. esac
  12032. ;;
  12033. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12034. # PIC is the default for these OSes.
  12035. ;;
  12036. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12037. # This hack is so that the source file can tell whether it is being
  12038. # built for inclusion in a dll (and should export symbols for example).
  12039. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12040. # (--disable-auto-import) libraries
  12041. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12042. ;;
  12043. darwin* | rhapsody*)
  12044. # PIC is the default on this platform
  12045. # Common symbols not allowed in MH_DYLIB files
  12046. lt_prog_compiler_pic_CXX='-fno-common'
  12047. ;;
  12048. *djgpp*)
  12049. # DJGPP does not support shared libraries at all
  12050. lt_prog_compiler_pic_CXX=
  12051. ;;
  12052. haiku*)
  12053. # PIC is the default for Haiku.
  12054. # The "-static" flag exists, but is broken.
  12055. lt_prog_compiler_static_CXX=
  12056. ;;
  12057. interix[3-9]*)
  12058. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12059. # Instead, we relocate shared libraries at runtime.
  12060. ;;
  12061. sysv4*MP*)
  12062. if test -d /usr/nec; then
  12063. lt_prog_compiler_pic_CXX=-Kconform_pic
  12064. fi
  12065. ;;
  12066. hpux*)
  12067. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12068. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12069. # sets the default TLS model and affects inlining.
  12070. case $host_cpu in
  12071. hppa*64*)
  12072. ;;
  12073. *)
  12074. lt_prog_compiler_pic_CXX='-fPIC'
  12075. ;;
  12076. esac
  12077. ;;
  12078. *qnx* | *nto*)
  12079. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12080. # it will coredump.
  12081. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12082. ;;
  12083. *)
  12084. lt_prog_compiler_pic_CXX='-fPIC'
  12085. ;;
  12086. esac
  12087. else
  12088. case $host_os in
  12089. aix[4-9]*)
  12090. # All AIX code is PIC.
  12091. if test "$host_cpu" = ia64; then
  12092. # AIX 5 now supports IA64 processor
  12093. lt_prog_compiler_static_CXX='-Bstatic'
  12094. else
  12095. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12096. fi
  12097. ;;
  12098. chorus*)
  12099. case $cc_basename in
  12100. cxch68*)
  12101. # Green Hills C++ Compiler
  12102. # _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"
  12103. ;;
  12104. esac
  12105. ;;
  12106. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12107. # This hack is so that the source file can tell whether it is being
  12108. # built for inclusion in a dll (and should export symbols for example).
  12109. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12110. ;;
  12111. dgux*)
  12112. case $cc_basename in
  12113. ec++*)
  12114. lt_prog_compiler_pic_CXX='-KPIC'
  12115. ;;
  12116. ghcx*)
  12117. # Green Hills C++ Compiler
  12118. lt_prog_compiler_pic_CXX='-pic'
  12119. ;;
  12120. *)
  12121. ;;
  12122. esac
  12123. ;;
  12124. freebsd* | dragonfly*)
  12125. # FreeBSD uses GNU C++
  12126. ;;
  12127. hpux9* | hpux10* | hpux11*)
  12128. case $cc_basename in
  12129. CC*)
  12130. lt_prog_compiler_wl_CXX='-Wl,'
  12131. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12132. if test "$host_cpu" != ia64; then
  12133. lt_prog_compiler_pic_CXX='+Z'
  12134. fi
  12135. ;;
  12136. aCC*)
  12137. lt_prog_compiler_wl_CXX='-Wl,'
  12138. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12139. case $host_cpu in
  12140. hppa*64*|ia64*)
  12141. # +Z the default
  12142. ;;
  12143. *)
  12144. lt_prog_compiler_pic_CXX='+Z'
  12145. ;;
  12146. esac
  12147. ;;
  12148. *)
  12149. ;;
  12150. esac
  12151. ;;
  12152. interix*)
  12153. # This is c89, which is MS Visual C++ (no shared libs)
  12154. # Anyone wants to do a port?
  12155. ;;
  12156. irix5* | irix6* | nonstopux*)
  12157. case $cc_basename in
  12158. CC*)
  12159. lt_prog_compiler_wl_CXX='-Wl,'
  12160. lt_prog_compiler_static_CXX='-non_shared'
  12161. # CC pic flag -KPIC is the default.
  12162. ;;
  12163. *)
  12164. ;;
  12165. esac
  12166. ;;
  12167. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12168. case $cc_basename in
  12169. KCC*)
  12170. # KAI C++ Compiler
  12171. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12172. lt_prog_compiler_pic_CXX='-fPIC'
  12173. ;;
  12174. ecpc* )
  12175. # old Intel C++ for x86_64 which still supported -KPIC.
  12176. lt_prog_compiler_wl_CXX='-Wl,'
  12177. lt_prog_compiler_pic_CXX='-KPIC'
  12178. lt_prog_compiler_static_CXX='-static'
  12179. ;;
  12180. icpc* )
  12181. # Intel C++, used to be incompatible with GCC.
  12182. # ICC 10 doesn't accept -KPIC any more.
  12183. lt_prog_compiler_wl_CXX='-Wl,'
  12184. lt_prog_compiler_pic_CXX='-fPIC'
  12185. lt_prog_compiler_static_CXX='-static'
  12186. ;;
  12187. pgCC* | pgcpp*)
  12188. # Portland Group C++ compiler
  12189. lt_prog_compiler_wl_CXX='-Wl,'
  12190. lt_prog_compiler_pic_CXX='-fpic'
  12191. lt_prog_compiler_static_CXX='-Bstatic'
  12192. ;;
  12193. cxx*)
  12194. # Compaq C++
  12195. # Make sure the PIC flag is empty. It appears that all Alpha
  12196. # Linux and Compaq Tru64 Unix objects are PIC.
  12197. lt_prog_compiler_pic_CXX=
  12198. lt_prog_compiler_static_CXX='-non_shared'
  12199. ;;
  12200. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12201. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12202. lt_prog_compiler_wl_CXX='-Wl,'
  12203. lt_prog_compiler_pic_CXX='-qpic'
  12204. lt_prog_compiler_static_CXX='-qstaticlink'
  12205. ;;
  12206. *)
  12207. case `$CC -V 2>&1 | sed 5q` in
  12208. *Sun\ C*)
  12209. # Sun C++ 5.9
  12210. lt_prog_compiler_pic_CXX='-KPIC'
  12211. lt_prog_compiler_static_CXX='-Bstatic'
  12212. lt_prog_compiler_wl_CXX='-Qoption ld '
  12213. ;;
  12214. esac
  12215. ;;
  12216. esac
  12217. ;;
  12218. lynxos*)
  12219. ;;
  12220. m88k*)
  12221. ;;
  12222. mvs*)
  12223. case $cc_basename in
  12224. cxx*)
  12225. lt_prog_compiler_pic_CXX='-W c,exportall'
  12226. ;;
  12227. *)
  12228. ;;
  12229. esac
  12230. ;;
  12231. netbsd*)
  12232. ;;
  12233. *qnx* | *nto*)
  12234. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12235. # it will coredump.
  12236. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12237. ;;
  12238. osf3* | osf4* | osf5*)
  12239. case $cc_basename in
  12240. KCC*)
  12241. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12242. ;;
  12243. RCC*)
  12244. # Rational C++ 2.4.1
  12245. lt_prog_compiler_pic_CXX='-pic'
  12246. ;;
  12247. cxx*)
  12248. # Digital/Compaq C++
  12249. lt_prog_compiler_wl_CXX='-Wl,'
  12250. # Make sure the PIC flag is empty. It appears that all Alpha
  12251. # Linux and Compaq Tru64 Unix objects are PIC.
  12252. lt_prog_compiler_pic_CXX=
  12253. lt_prog_compiler_static_CXX='-non_shared'
  12254. ;;
  12255. *)
  12256. ;;
  12257. esac
  12258. ;;
  12259. psos*)
  12260. ;;
  12261. solaris*)
  12262. case $cc_basename in
  12263. CC* | sunCC*)
  12264. # Sun C++ 4.2, 5.x and Centerline C++
  12265. lt_prog_compiler_pic_CXX='-KPIC'
  12266. lt_prog_compiler_static_CXX='-Bstatic'
  12267. lt_prog_compiler_wl_CXX='-Qoption ld '
  12268. ;;
  12269. gcx*)
  12270. # Green Hills C++ Compiler
  12271. lt_prog_compiler_pic_CXX='-PIC'
  12272. ;;
  12273. *)
  12274. ;;
  12275. esac
  12276. ;;
  12277. sunos4*)
  12278. case $cc_basename in
  12279. CC*)
  12280. # Sun C++ 4.x
  12281. lt_prog_compiler_pic_CXX='-pic'
  12282. lt_prog_compiler_static_CXX='-Bstatic'
  12283. ;;
  12284. lcc*)
  12285. # Lucid
  12286. lt_prog_compiler_pic_CXX='-pic'
  12287. ;;
  12288. *)
  12289. ;;
  12290. esac
  12291. ;;
  12292. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12293. case $cc_basename in
  12294. CC*)
  12295. lt_prog_compiler_wl_CXX='-Wl,'
  12296. lt_prog_compiler_pic_CXX='-KPIC'
  12297. lt_prog_compiler_static_CXX='-Bstatic'
  12298. ;;
  12299. esac
  12300. ;;
  12301. tandem*)
  12302. case $cc_basename in
  12303. NCC*)
  12304. # NonStop-UX NCC 3.20
  12305. lt_prog_compiler_pic_CXX='-KPIC'
  12306. ;;
  12307. *)
  12308. ;;
  12309. esac
  12310. ;;
  12311. vxworks*)
  12312. ;;
  12313. *)
  12314. lt_prog_compiler_can_build_shared_CXX=no
  12315. ;;
  12316. esac
  12317. fi
  12318. case $host_os in
  12319. # For platforms which do not support PIC, -DPIC is meaningless:
  12320. *djgpp*)
  12321. lt_prog_compiler_pic_CXX=
  12322. ;;
  12323. *)
  12324. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12325. ;;
  12326. esac
  12327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12328. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12329. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12330. $as_echo_n "(cached) " >&6
  12331. else
  12332. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12333. fi
  12334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12335. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12336. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12337. #
  12338. # Check to make sure the PIC flag actually works.
  12339. #
  12340. if test -n "$lt_prog_compiler_pic_CXX"; then
  12341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12342. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12343. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12344. $as_echo_n "(cached) " >&6
  12345. else
  12346. lt_cv_prog_compiler_pic_works_CXX=no
  12347. ac_outfile=conftest.$ac_objext
  12348. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12349. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12350. # Insert the option either (1) after the last *FLAGS variable, or
  12351. # (2) before a word containing "conftest.", or (3) at the end.
  12352. # Note that $ac_compile itself does not contain backslashes and begins
  12353. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12354. # The option is referenced via a variable to avoid confusing sed.
  12355. lt_compile=`echo "$ac_compile" | $SED \
  12356. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12357. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12358. -e 's:$: $lt_compiler_flag:'`
  12359. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12360. (eval "$lt_compile" 2>conftest.err)
  12361. ac_status=$?
  12362. cat conftest.err >&5
  12363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12364. if (exit $ac_status) && test -s "$ac_outfile"; then
  12365. # The compiler can only warn and ignore the option if not recognized
  12366. # So say no if there are warnings other than the usual output.
  12367. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12368. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12369. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12370. lt_cv_prog_compiler_pic_works_CXX=yes
  12371. fi
  12372. fi
  12373. $RM conftest*
  12374. fi
  12375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12376. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12377. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12378. case $lt_prog_compiler_pic_CXX in
  12379. "" | " "*) ;;
  12380. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12381. esac
  12382. else
  12383. lt_prog_compiler_pic_CXX=
  12384. lt_prog_compiler_can_build_shared_CXX=no
  12385. fi
  12386. fi
  12387. #
  12388. # Check to make sure the static flag actually works.
  12389. #
  12390. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12392. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12393. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12394. $as_echo_n "(cached) " >&6
  12395. else
  12396. lt_cv_prog_compiler_static_works_CXX=no
  12397. save_LDFLAGS="$LDFLAGS"
  12398. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12399. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12400. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12401. # The linker can only warn and ignore the option if not recognized
  12402. # So say no if there are warnings
  12403. if test -s conftest.err; then
  12404. # Append any errors to the config.log.
  12405. cat conftest.err 1>&5
  12406. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12407. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12408. if diff conftest.exp conftest.er2 >/dev/null; then
  12409. lt_cv_prog_compiler_static_works_CXX=yes
  12410. fi
  12411. else
  12412. lt_cv_prog_compiler_static_works_CXX=yes
  12413. fi
  12414. fi
  12415. $RM -r conftest*
  12416. LDFLAGS="$save_LDFLAGS"
  12417. fi
  12418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12419. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12420. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12421. :
  12422. else
  12423. lt_prog_compiler_static_CXX=
  12424. fi
  12425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12426. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12427. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12428. $as_echo_n "(cached) " >&6
  12429. else
  12430. lt_cv_prog_compiler_c_o_CXX=no
  12431. $RM -r conftest 2>/dev/null
  12432. mkdir conftest
  12433. cd conftest
  12434. mkdir out
  12435. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12436. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12437. # Insert the option either (1) after the last *FLAGS variable, or
  12438. # (2) before a word containing "conftest.", or (3) at the end.
  12439. # Note that $ac_compile itself does not contain backslashes and begins
  12440. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12441. lt_compile=`echo "$ac_compile" | $SED \
  12442. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12443. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12444. -e 's:$: $lt_compiler_flag:'`
  12445. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12446. (eval "$lt_compile" 2>out/conftest.err)
  12447. ac_status=$?
  12448. cat out/conftest.err >&5
  12449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12450. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12451. then
  12452. # The compiler can only warn and ignore the option if not recognized
  12453. # So say no if there are warnings
  12454. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12455. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12456. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12457. lt_cv_prog_compiler_c_o_CXX=yes
  12458. fi
  12459. fi
  12460. chmod u+w . 2>&5
  12461. $RM conftest*
  12462. # SGI C++ compiler will create directory out/ii_files/ for
  12463. # template instantiation
  12464. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12465. $RM out/* && rmdir out
  12466. cd ..
  12467. $RM -r conftest
  12468. $RM conftest*
  12469. fi
  12470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12471. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12473. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12474. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12475. $as_echo_n "(cached) " >&6
  12476. else
  12477. lt_cv_prog_compiler_c_o_CXX=no
  12478. $RM -r conftest 2>/dev/null
  12479. mkdir conftest
  12480. cd conftest
  12481. mkdir out
  12482. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12483. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12484. # Insert the option either (1) after the last *FLAGS variable, or
  12485. # (2) before a word containing "conftest.", or (3) at the end.
  12486. # Note that $ac_compile itself does not contain backslashes and begins
  12487. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12488. lt_compile=`echo "$ac_compile" | $SED \
  12489. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12490. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12491. -e 's:$: $lt_compiler_flag:'`
  12492. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12493. (eval "$lt_compile" 2>out/conftest.err)
  12494. ac_status=$?
  12495. cat out/conftest.err >&5
  12496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12497. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12498. then
  12499. # The compiler can only warn and ignore the option if not recognized
  12500. # So say no if there are warnings
  12501. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12502. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12503. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12504. lt_cv_prog_compiler_c_o_CXX=yes
  12505. fi
  12506. fi
  12507. chmod u+w . 2>&5
  12508. $RM conftest*
  12509. # SGI C++ compiler will create directory out/ii_files/ for
  12510. # template instantiation
  12511. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12512. $RM out/* && rmdir out
  12513. cd ..
  12514. $RM -r conftest
  12515. $RM conftest*
  12516. fi
  12517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12518. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12519. hard_links="nottested"
  12520. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12521. # do not overwrite the value of need_locks provided by the user
  12522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12523. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12524. hard_links=yes
  12525. $RM conftest*
  12526. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12527. touch conftest.a
  12528. ln conftest.a conftest.b 2>&5 || hard_links=no
  12529. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12531. $as_echo "$hard_links" >&6; }
  12532. if test "$hard_links" = no; then
  12533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12534. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12535. need_locks=warn
  12536. fi
  12537. else
  12538. need_locks=no
  12539. fi
  12540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12541. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12542. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12543. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12544. case $host_os in
  12545. aix[4-9]*)
  12546. # If we're using GNU nm, then we don't want the "-C" option.
  12547. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12548. # Also, AIX nm treats weak defined symbols like other global defined
  12549. # symbols, whereas GNU nm marks them as "W".
  12550. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12551. 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'
  12552. else
  12553. 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'
  12554. fi
  12555. ;;
  12556. pw32*)
  12557. export_symbols_cmds_CXX="$ltdll_cmds"
  12558. ;;
  12559. cygwin* | mingw* | cegcc*)
  12560. case $cc_basename in
  12561. cl*)
  12562. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12563. ;;
  12564. *)
  12565. 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'
  12566. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12567. ;;
  12568. esac
  12569. ;;
  12570. *)
  12571. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12572. ;;
  12573. esac
  12574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12575. $as_echo "$ld_shlibs_CXX" >&6; }
  12576. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12577. with_gnu_ld_CXX=$with_gnu_ld
  12578. #
  12579. # Do we need to explicitly link libc?
  12580. #
  12581. case "x$archive_cmds_need_lc_CXX" in
  12582. x|xyes)
  12583. # Assume -lc should be added
  12584. archive_cmds_need_lc_CXX=yes
  12585. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12586. case $archive_cmds_CXX in
  12587. *'~'*)
  12588. # FIXME: we may have to deal with multi-command sequences.
  12589. ;;
  12590. '$CC '*)
  12591. # Test whether the compiler implicitly links with -lc since on some
  12592. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12593. # to ld, don't add -lc before -lgcc.
  12594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12595. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12596. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12597. $as_echo_n "(cached) " >&6
  12598. else
  12599. $RM conftest*
  12600. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12601. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12602. (eval $ac_compile) 2>&5
  12603. ac_status=$?
  12604. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12605. test $ac_status = 0; } 2>conftest.err; then
  12606. soname=conftest
  12607. lib=conftest
  12608. libobjs=conftest.$ac_objext
  12609. deplibs=
  12610. wl=$lt_prog_compiler_wl_CXX
  12611. pic_flag=$lt_prog_compiler_pic_CXX
  12612. compiler_flags=-v
  12613. linker_flags=-v
  12614. verstring=
  12615. output_objdir=.
  12616. libname=conftest
  12617. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12618. allow_undefined_flag_CXX=
  12619. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12620. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12621. ac_status=$?
  12622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12623. test $ac_status = 0; }
  12624. then
  12625. lt_cv_archive_cmds_need_lc_CXX=no
  12626. else
  12627. lt_cv_archive_cmds_need_lc_CXX=yes
  12628. fi
  12629. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12630. else
  12631. cat conftest.err 1>&5
  12632. fi
  12633. $RM conftest*
  12634. fi
  12635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12636. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12637. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12638. ;;
  12639. esac
  12640. fi
  12641. ;;
  12642. esac
  12643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12644. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12645. library_names_spec=
  12646. libname_spec='lib$name'
  12647. soname_spec=
  12648. shrext_cmds=".so"
  12649. postinstall_cmds=
  12650. postuninstall_cmds=
  12651. finish_cmds=
  12652. finish_eval=
  12653. shlibpath_var=
  12654. shlibpath_overrides_runpath=unknown
  12655. version_type=none
  12656. dynamic_linker="$host_os ld.so"
  12657. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12658. need_lib_prefix=unknown
  12659. hardcode_into_libs=no
  12660. # when you set need_version to no, make sure it does not cause -set_version
  12661. # flags to be left without arguments
  12662. need_version=unknown
  12663. case $host_os in
  12664. aix3*)
  12665. version_type=linux # correct to gnu/linux during the next big refactor
  12666. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12667. shlibpath_var=LIBPATH
  12668. # AIX 3 has no versioning support, so we append a major version to the name.
  12669. soname_spec='${libname}${release}${shared_ext}$major'
  12670. ;;
  12671. aix[4-9]*)
  12672. version_type=linux # correct to gnu/linux during the next big refactor
  12673. need_lib_prefix=no
  12674. need_version=no
  12675. hardcode_into_libs=yes
  12676. if test "$host_cpu" = ia64; then
  12677. # AIX 5 supports IA64
  12678. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12679. shlibpath_var=LD_LIBRARY_PATH
  12680. else
  12681. # With GCC up to 2.95.x, collect2 would create an import file
  12682. # for dependence libraries. The import file would start with
  12683. # the line `#! .'. This would cause the generated library to
  12684. # depend on `.', always an invalid library. This was fixed in
  12685. # development snapshots of GCC prior to 3.0.
  12686. case $host_os in
  12687. aix4 | aix4.[01] | aix4.[01].*)
  12688. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12689. echo ' yes '
  12690. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12691. :
  12692. else
  12693. can_build_shared=no
  12694. fi
  12695. ;;
  12696. esac
  12697. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12698. # soname into executable. Probably we can add versioning support to
  12699. # collect2, so additional links can be useful in future.
  12700. if test "$aix_use_runtimelinking" = yes; then
  12701. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12702. # instead of lib<name>.a to let people know that these are not
  12703. # typical AIX shared libraries.
  12704. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12705. else
  12706. # We preserve .a as extension for shared libraries through AIX4.2
  12707. # and later when we are not doing run time linking.
  12708. library_names_spec='${libname}${release}.a $libname.a'
  12709. soname_spec='${libname}${release}${shared_ext}$major'
  12710. fi
  12711. shlibpath_var=LIBPATH
  12712. fi
  12713. ;;
  12714. amigaos*)
  12715. case $host_cpu in
  12716. powerpc)
  12717. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12718. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12719. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12720. ;;
  12721. m68k)
  12722. library_names_spec='$libname.ixlibrary $libname.a'
  12723. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12724. 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'
  12725. ;;
  12726. esac
  12727. ;;
  12728. beos*)
  12729. library_names_spec='${libname}${shared_ext}'
  12730. dynamic_linker="$host_os ld.so"
  12731. shlibpath_var=LIBRARY_PATH
  12732. ;;
  12733. bsdi[45]*)
  12734. version_type=linux # correct to gnu/linux during the next big refactor
  12735. need_version=no
  12736. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12737. soname_spec='${libname}${release}${shared_ext}$major'
  12738. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12739. shlibpath_var=LD_LIBRARY_PATH
  12740. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12741. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12742. # the default ld.so.conf also contains /usr/contrib/lib and
  12743. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12744. # libtool to hard-code these into programs
  12745. ;;
  12746. cygwin* | mingw* | pw32* | cegcc*)
  12747. version_type=windows
  12748. shrext_cmds=".dll"
  12749. need_version=no
  12750. need_lib_prefix=no
  12751. case $GCC,$cc_basename in
  12752. yes,*)
  12753. # gcc
  12754. library_names_spec='$libname.dll.a'
  12755. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12756. postinstall_cmds='base_file=`basename \${file}`~
  12757. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12758. dldir=$destdir/`dirname \$dlpath`~
  12759. test -d \$dldir || mkdir -p \$dldir~
  12760. $install_prog $dir/$dlname \$dldir/$dlname~
  12761. chmod a+x \$dldir/$dlname~
  12762. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12763. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12764. fi'
  12765. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12766. dlpath=$dir/\$dldll~
  12767. $RM \$dlpath'
  12768. shlibpath_overrides_runpath=yes
  12769. case $host_os in
  12770. cygwin*)
  12771. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12772. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12773. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12774. ;;
  12775. mingw* | cegcc*)
  12776. # MinGW DLLs use traditional 'lib' prefix
  12777. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12778. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12779. ;;
  12780. pw32*)
  12781. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12782. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12783. ;;
  12784. esac
  12785. dynamic_linker='Win32 ld.exe'
  12786. ;;
  12787. *,cl*)
  12788. # Native MSVC
  12789. libname_spec='$name'
  12790. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12791. library_names_spec='${libname}.dll.lib'
  12792. case $build_os in
  12793. mingw*)
  12794. sys_lib_search_path_spec=
  12795. lt_save_ifs=$IFS
  12796. IFS=';'
  12797. for lt_path in $LIB
  12798. do
  12799. IFS=$lt_save_ifs
  12800. # Let DOS variable expansion print the short 8.3 style file name.
  12801. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12802. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12803. done
  12804. IFS=$lt_save_ifs
  12805. # Convert to MSYS style.
  12806. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12807. ;;
  12808. cygwin*)
  12809. # Convert to unix form, then to dos form, then back to unix form
  12810. # but this time dos style (no spaces!) so that the unix form looks
  12811. # like /cygdrive/c/PROGRA~1:/cygdr...
  12812. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12813. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12814. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12815. ;;
  12816. *)
  12817. sys_lib_search_path_spec="$LIB"
  12818. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12819. # It is most probably a Windows format PATH.
  12820. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12821. else
  12822. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12823. fi
  12824. # FIXME: find the short name or the path components, as spaces are
  12825. # common. (e.g. "Program Files" -> "PROGRA~1")
  12826. ;;
  12827. esac
  12828. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12829. postinstall_cmds='base_file=`basename \${file}`~
  12830. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12831. dldir=$destdir/`dirname \$dlpath`~
  12832. test -d \$dldir || mkdir -p \$dldir~
  12833. $install_prog $dir/$dlname \$dldir/$dlname'
  12834. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12835. dlpath=$dir/\$dldll~
  12836. $RM \$dlpath'
  12837. shlibpath_overrides_runpath=yes
  12838. dynamic_linker='Win32 link.exe'
  12839. ;;
  12840. *)
  12841. # Assume MSVC wrapper
  12842. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12843. dynamic_linker='Win32 ld.exe'
  12844. ;;
  12845. esac
  12846. # FIXME: first we should search . and the directory the executable is in
  12847. shlibpath_var=PATH
  12848. ;;
  12849. darwin* | rhapsody*)
  12850. dynamic_linker="$host_os dyld"
  12851. version_type=darwin
  12852. need_lib_prefix=no
  12853. need_version=no
  12854. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12855. soname_spec='${libname}${release}${major}$shared_ext'
  12856. shlibpath_overrides_runpath=yes
  12857. shlibpath_var=DYLD_LIBRARY_PATH
  12858. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12859. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12860. ;;
  12861. dgux*)
  12862. version_type=linux # correct to gnu/linux during the next big refactor
  12863. need_lib_prefix=no
  12864. need_version=no
  12865. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12866. soname_spec='${libname}${release}${shared_ext}$major'
  12867. shlibpath_var=LD_LIBRARY_PATH
  12868. ;;
  12869. freebsd* | dragonfly*)
  12870. # DragonFly does not have aout. When/if they implement a new
  12871. # versioning mechanism, adjust this.
  12872. if test -x /usr/bin/objformat; then
  12873. objformat=`/usr/bin/objformat`
  12874. else
  12875. case $host_os in
  12876. freebsd[23].*) objformat=aout ;;
  12877. *) objformat=elf ;;
  12878. esac
  12879. fi
  12880. version_type=freebsd-$objformat
  12881. case $version_type in
  12882. freebsd-elf*)
  12883. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12884. need_version=no
  12885. need_lib_prefix=no
  12886. ;;
  12887. freebsd-*)
  12888. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12889. need_version=yes
  12890. ;;
  12891. esac
  12892. shlibpath_var=LD_LIBRARY_PATH
  12893. case $host_os in
  12894. freebsd2.*)
  12895. shlibpath_overrides_runpath=yes
  12896. ;;
  12897. freebsd3.[01]* | freebsdelf3.[01]*)
  12898. shlibpath_overrides_runpath=yes
  12899. hardcode_into_libs=yes
  12900. ;;
  12901. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12902. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12903. shlibpath_overrides_runpath=no
  12904. hardcode_into_libs=yes
  12905. ;;
  12906. *) # from 4.6 on, and DragonFly
  12907. shlibpath_overrides_runpath=yes
  12908. hardcode_into_libs=yes
  12909. ;;
  12910. esac
  12911. ;;
  12912. gnu*)
  12913. version_type=linux # correct to gnu/linux during the next big refactor
  12914. need_lib_prefix=no
  12915. need_version=no
  12916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12917. soname_spec='${libname}${release}${shared_ext}$major'
  12918. shlibpath_var=LD_LIBRARY_PATH
  12919. shlibpath_overrides_runpath=no
  12920. hardcode_into_libs=yes
  12921. ;;
  12922. haiku*)
  12923. version_type=linux # correct to gnu/linux during the next big refactor
  12924. need_lib_prefix=no
  12925. need_version=no
  12926. dynamic_linker="$host_os runtime_loader"
  12927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12928. soname_spec='${libname}${release}${shared_ext}$major'
  12929. shlibpath_var=LIBRARY_PATH
  12930. shlibpath_overrides_runpath=yes
  12931. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12932. hardcode_into_libs=yes
  12933. ;;
  12934. hpux9* | hpux10* | hpux11*)
  12935. # Give a soname corresponding to the major version so that dld.sl refuses to
  12936. # link against other versions.
  12937. version_type=sunos
  12938. need_lib_prefix=no
  12939. need_version=no
  12940. case $host_cpu in
  12941. ia64*)
  12942. shrext_cmds='.so'
  12943. hardcode_into_libs=yes
  12944. dynamic_linker="$host_os dld.so"
  12945. shlibpath_var=LD_LIBRARY_PATH
  12946. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12948. soname_spec='${libname}${release}${shared_ext}$major'
  12949. if test "X$HPUX_IA64_MODE" = X32; then
  12950. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12951. else
  12952. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12953. fi
  12954. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12955. ;;
  12956. hppa*64*)
  12957. shrext_cmds='.sl'
  12958. hardcode_into_libs=yes
  12959. dynamic_linker="$host_os dld.sl"
  12960. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12961. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12963. soname_spec='${libname}${release}${shared_ext}$major'
  12964. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12965. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12966. ;;
  12967. *)
  12968. shrext_cmds='.sl'
  12969. dynamic_linker="$host_os dld.sl"
  12970. shlibpath_var=SHLIB_PATH
  12971. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12973. soname_spec='${libname}${release}${shared_ext}$major'
  12974. ;;
  12975. esac
  12976. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12977. postinstall_cmds='chmod 555 $lib'
  12978. # or fails outright, so override atomically:
  12979. install_override_mode=555
  12980. ;;
  12981. interix[3-9]*)
  12982. version_type=linux # correct to gnu/linux during the next big refactor
  12983. need_lib_prefix=no
  12984. need_version=no
  12985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12986. soname_spec='${libname}${release}${shared_ext}$major'
  12987. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12988. shlibpath_var=LD_LIBRARY_PATH
  12989. shlibpath_overrides_runpath=no
  12990. hardcode_into_libs=yes
  12991. ;;
  12992. irix5* | irix6* | nonstopux*)
  12993. case $host_os in
  12994. nonstopux*) version_type=nonstopux ;;
  12995. *)
  12996. if test "$lt_cv_prog_gnu_ld" = yes; then
  12997. version_type=linux # correct to gnu/linux during the next big refactor
  12998. else
  12999. version_type=irix
  13000. fi ;;
  13001. esac
  13002. need_lib_prefix=no
  13003. need_version=no
  13004. soname_spec='${libname}${release}${shared_ext}$major'
  13005. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13006. case $host_os in
  13007. irix5* | nonstopux*)
  13008. libsuff= shlibsuff=
  13009. ;;
  13010. *)
  13011. case $LD in # libtool.m4 will add one of these switches to LD
  13012. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13013. libsuff= shlibsuff= libmagic=32-bit;;
  13014. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13015. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13016. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13017. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13018. *) libsuff= shlibsuff= libmagic=never-match;;
  13019. esac
  13020. ;;
  13021. esac
  13022. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13023. shlibpath_overrides_runpath=no
  13024. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13025. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13026. hardcode_into_libs=yes
  13027. ;;
  13028. # No shared lib support for Linux oldld, aout, or coff.
  13029. linux*oldld* | linux*aout* | linux*coff*)
  13030. dynamic_linker=no
  13031. ;;
  13032. # This must be glibc/ELF.
  13033. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13034. version_type=linux # correct to gnu/linux during the next big refactor
  13035. need_lib_prefix=no
  13036. need_version=no
  13037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13038. soname_spec='${libname}${release}${shared_ext}$major'
  13039. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13040. shlibpath_var=LD_LIBRARY_PATH
  13041. shlibpath_overrides_runpath=no
  13042. # Some binutils ld are patched to set DT_RUNPATH
  13043. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13044. $as_echo_n "(cached) " >&6
  13045. else
  13046. lt_cv_shlibpath_overrides_runpath=no
  13047. save_LDFLAGS=$LDFLAGS
  13048. save_libdir=$libdir
  13049. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13050. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13052. /* end confdefs.h. */
  13053. int
  13054. main ()
  13055. {
  13056. ;
  13057. return 0;
  13058. }
  13059. _ACEOF
  13060. if ac_fn_cxx_try_link "$LINENO"; then :
  13061. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13062. lt_cv_shlibpath_overrides_runpath=yes
  13063. fi
  13064. fi
  13065. rm -f core conftest.err conftest.$ac_objext \
  13066. conftest$ac_exeext conftest.$ac_ext
  13067. LDFLAGS=$save_LDFLAGS
  13068. libdir=$save_libdir
  13069. fi
  13070. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13071. # This implies no fast_install, which is unacceptable.
  13072. # Some rework will be needed to allow for fast_install
  13073. # before this can be enabled.
  13074. hardcode_into_libs=yes
  13075. # Append ld.so.conf contents to the search path
  13076. if test -f /etc/ld.so.conf; then
  13077. 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' ' '`
  13078. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13079. fi
  13080. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13081. # powerpc, because MkLinux only supported shared libraries with the
  13082. # GNU dynamic linker. Since this was broken with cross compilers,
  13083. # most powerpc-linux boxes support dynamic linking these days and
  13084. # people can always --disable-shared, the test was removed, and we
  13085. # assume the GNU/Linux dynamic linker is in use.
  13086. dynamic_linker='GNU/Linux ld.so'
  13087. ;;
  13088. netbsd*)
  13089. version_type=sunos
  13090. need_lib_prefix=no
  13091. need_version=no
  13092. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13093. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13094. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13095. dynamic_linker='NetBSD (a.out) ld.so'
  13096. else
  13097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13098. soname_spec='${libname}${release}${shared_ext}$major'
  13099. dynamic_linker='NetBSD ld.elf_so'
  13100. fi
  13101. shlibpath_var=LD_LIBRARY_PATH
  13102. shlibpath_overrides_runpath=yes
  13103. hardcode_into_libs=yes
  13104. ;;
  13105. newsos6)
  13106. version_type=linux # correct to gnu/linux during the next big refactor
  13107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13108. shlibpath_var=LD_LIBRARY_PATH
  13109. shlibpath_overrides_runpath=yes
  13110. ;;
  13111. *nto* | *qnx*)
  13112. version_type=qnx
  13113. need_lib_prefix=no
  13114. need_version=no
  13115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13116. soname_spec='${libname}${release}${shared_ext}$major'
  13117. shlibpath_var=LD_LIBRARY_PATH
  13118. shlibpath_overrides_runpath=no
  13119. hardcode_into_libs=yes
  13120. dynamic_linker='ldqnx.so'
  13121. ;;
  13122. openbsd*)
  13123. version_type=sunos
  13124. sys_lib_dlsearch_path_spec="/usr/lib"
  13125. need_lib_prefix=no
  13126. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13127. case $host_os in
  13128. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13129. *) need_version=no ;;
  13130. esac
  13131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13132. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13133. shlibpath_var=LD_LIBRARY_PATH
  13134. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13135. case $host_os in
  13136. openbsd2.[89] | openbsd2.[89].*)
  13137. shlibpath_overrides_runpath=no
  13138. ;;
  13139. *)
  13140. shlibpath_overrides_runpath=yes
  13141. ;;
  13142. esac
  13143. else
  13144. shlibpath_overrides_runpath=yes
  13145. fi
  13146. ;;
  13147. os2*)
  13148. libname_spec='$name'
  13149. shrext_cmds=".dll"
  13150. need_lib_prefix=no
  13151. library_names_spec='$libname${shared_ext} $libname.a'
  13152. dynamic_linker='OS/2 ld.exe'
  13153. shlibpath_var=LIBPATH
  13154. ;;
  13155. osf3* | osf4* | osf5*)
  13156. version_type=osf
  13157. need_lib_prefix=no
  13158. need_version=no
  13159. soname_spec='${libname}${release}${shared_ext}$major'
  13160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13161. shlibpath_var=LD_LIBRARY_PATH
  13162. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13163. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13164. ;;
  13165. rdos*)
  13166. dynamic_linker=no
  13167. ;;
  13168. solaris*)
  13169. version_type=linux # correct to gnu/linux during the next big refactor
  13170. need_lib_prefix=no
  13171. need_version=no
  13172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13173. soname_spec='${libname}${release}${shared_ext}$major'
  13174. shlibpath_var=LD_LIBRARY_PATH
  13175. shlibpath_overrides_runpath=yes
  13176. hardcode_into_libs=yes
  13177. # ldd complains unless libraries are executable
  13178. postinstall_cmds='chmod +x $lib'
  13179. ;;
  13180. sunos4*)
  13181. version_type=sunos
  13182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13183. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13184. shlibpath_var=LD_LIBRARY_PATH
  13185. shlibpath_overrides_runpath=yes
  13186. if test "$with_gnu_ld" = yes; then
  13187. need_lib_prefix=no
  13188. fi
  13189. need_version=yes
  13190. ;;
  13191. sysv4 | sysv4.3*)
  13192. version_type=linux # correct to gnu/linux during the next big refactor
  13193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13194. soname_spec='${libname}${release}${shared_ext}$major'
  13195. shlibpath_var=LD_LIBRARY_PATH
  13196. case $host_vendor in
  13197. sni)
  13198. shlibpath_overrides_runpath=no
  13199. need_lib_prefix=no
  13200. runpath_var=LD_RUN_PATH
  13201. ;;
  13202. siemens)
  13203. need_lib_prefix=no
  13204. ;;
  13205. motorola)
  13206. need_lib_prefix=no
  13207. need_version=no
  13208. shlibpath_overrides_runpath=no
  13209. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13210. ;;
  13211. esac
  13212. ;;
  13213. sysv4*MP*)
  13214. if test -d /usr/nec ;then
  13215. version_type=linux # correct to gnu/linux during the next big refactor
  13216. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13217. soname_spec='$libname${shared_ext}.$major'
  13218. shlibpath_var=LD_LIBRARY_PATH
  13219. fi
  13220. ;;
  13221. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13222. version_type=freebsd-elf
  13223. need_lib_prefix=no
  13224. need_version=no
  13225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13226. soname_spec='${libname}${release}${shared_ext}$major'
  13227. shlibpath_var=LD_LIBRARY_PATH
  13228. shlibpath_overrides_runpath=yes
  13229. hardcode_into_libs=yes
  13230. if test "$with_gnu_ld" = yes; then
  13231. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13232. else
  13233. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13234. case $host_os in
  13235. sco3.2v5*)
  13236. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13237. ;;
  13238. esac
  13239. fi
  13240. sys_lib_dlsearch_path_spec='/usr/lib'
  13241. ;;
  13242. tpf*)
  13243. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13244. version_type=linux # correct to gnu/linux during the next big refactor
  13245. need_lib_prefix=no
  13246. need_version=no
  13247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13248. shlibpath_var=LD_LIBRARY_PATH
  13249. shlibpath_overrides_runpath=no
  13250. hardcode_into_libs=yes
  13251. ;;
  13252. uts4*)
  13253. version_type=linux # correct to gnu/linux during the next big refactor
  13254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13255. soname_spec='${libname}${release}${shared_ext}$major'
  13256. shlibpath_var=LD_LIBRARY_PATH
  13257. ;;
  13258. *)
  13259. dynamic_linker=no
  13260. ;;
  13261. esac
  13262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13263. $as_echo "$dynamic_linker" >&6; }
  13264. test "$dynamic_linker" = no && can_build_shared=no
  13265. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13266. if test "$GCC" = yes; then
  13267. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13268. fi
  13269. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13270. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13271. fi
  13272. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13273. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13274. fi
  13275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13276. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13277. hardcode_action_CXX=
  13278. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13279. test -n "$runpath_var_CXX" ||
  13280. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13281. # We can hardcode non-existent directories.
  13282. if test "$hardcode_direct_CXX" != no &&
  13283. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13284. # have to relink, otherwise we might link with an installed library
  13285. # when we should be linking with a yet-to-be-installed one
  13286. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13287. test "$hardcode_minus_L_CXX" != no; then
  13288. # Linking always hardcodes the temporary library directory.
  13289. hardcode_action_CXX=relink
  13290. else
  13291. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13292. hardcode_action_CXX=immediate
  13293. fi
  13294. else
  13295. # We cannot hardcode anything, or else we can only hardcode existing
  13296. # directories.
  13297. hardcode_action_CXX=unsupported
  13298. fi
  13299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13300. $as_echo "$hardcode_action_CXX" >&6; }
  13301. if test "$hardcode_action_CXX" = relink ||
  13302. test "$inherit_rpath_CXX" = yes; then
  13303. # Fast installation is not supported
  13304. enable_fast_install=no
  13305. elif test "$shlibpath_overrides_runpath" = yes ||
  13306. test "$enable_shared" = no; then
  13307. # Fast installation is not necessary
  13308. enable_fast_install=needless
  13309. fi
  13310. fi # test -n "$compiler"
  13311. CC=$lt_save_CC
  13312. CFLAGS=$lt_save_CFLAGS
  13313. LDCXX=$LD
  13314. LD=$lt_save_LD
  13315. GCC=$lt_save_GCC
  13316. with_gnu_ld=$lt_save_with_gnu_ld
  13317. lt_cv_path_LDCXX=$lt_cv_path_LD
  13318. lt_cv_path_LD=$lt_save_path_LD
  13319. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13320. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13321. fi # test "$_lt_caught_CXX_error" != yes
  13322. ac_ext=c
  13323. ac_cpp='$CPP $CPPFLAGS'
  13324. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13325. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13326. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13327. # Find a good install program. We prefer a C program (faster),
  13328. # so one script is as good as another. But avoid the broken or
  13329. # incompatible versions:
  13330. # SysV /etc/install, /usr/sbin/install
  13331. # SunOS /usr/etc/install
  13332. # IRIX /sbin/install
  13333. # AIX /bin/install
  13334. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13335. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13336. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13337. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13338. # OS/2's system install, which has a completely different semantic
  13339. # ./install, which can be erroneously created by make from ./install.sh.
  13340. # Reject install programs that cannot install multiple files.
  13341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13342. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13343. if test -z "$INSTALL"; then
  13344. if ${ac_cv_path_install+:} false; then :
  13345. $as_echo_n "(cached) " >&6
  13346. else
  13347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13348. for as_dir in $PATH
  13349. do
  13350. IFS=$as_save_IFS
  13351. test -z "$as_dir" && as_dir=.
  13352. # Account for people who put trailing slashes in PATH elements.
  13353. case $as_dir/ in #((
  13354. ./ | .// | /[cC]/* | \
  13355. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13356. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13357. /usr/ucb/* ) ;;
  13358. *)
  13359. # OSF1 and SCO ODT 3.0 have their own names for install.
  13360. # Don't use installbsd from OSF since it installs stuff as root
  13361. # by default.
  13362. for ac_prog in ginstall scoinst install; do
  13363. for ac_exec_ext in '' $ac_executable_extensions; do
  13364. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13365. if test $ac_prog = install &&
  13366. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13367. # AIX install. It has an incompatible calling convention.
  13368. :
  13369. elif test $ac_prog = install &&
  13370. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13371. # program-specific install script used by HP pwplus--don't use.
  13372. :
  13373. else
  13374. rm -rf conftest.one conftest.two conftest.dir
  13375. echo one > conftest.one
  13376. echo two > conftest.two
  13377. mkdir conftest.dir
  13378. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13379. test -s conftest.one && test -s conftest.two &&
  13380. test -s conftest.dir/conftest.one &&
  13381. test -s conftest.dir/conftest.two
  13382. then
  13383. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13384. break 3
  13385. fi
  13386. fi
  13387. fi
  13388. done
  13389. done
  13390. ;;
  13391. esac
  13392. done
  13393. IFS=$as_save_IFS
  13394. rm -rf conftest.one conftest.two conftest.dir
  13395. fi
  13396. if test "${ac_cv_path_install+set}" = set; then
  13397. INSTALL=$ac_cv_path_install
  13398. else
  13399. # As a last resort, use the slow shell script. Don't cache a
  13400. # value for INSTALL within a source directory, because that will
  13401. # break other packages using the cache if that directory is
  13402. # removed, or if the value is a relative name.
  13403. INSTALL=$ac_install_sh
  13404. fi
  13405. fi
  13406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13407. $as_echo "$INSTALL" >&6; }
  13408. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13409. # It thinks the first close brace ends the variable substitution.
  13410. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13411. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13412. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13414. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13415. set x ${MAKE-make}
  13416. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13417. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13418. $as_echo_n "(cached) " >&6
  13419. else
  13420. cat >conftest.make <<\_ACEOF
  13421. SHELL = /bin/sh
  13422. all:
  13423. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13424. _ACEOF
  13425. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13426. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13427. *@@@%%%=?*=@@@%%%*)
  13428. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13429. *)
  13430. eval ac_cv_prog_make_${ac_make}_set=no;;
  13431. esac
  13432. rm -f conftest.make
  13433. fi
  13434. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13436. $as_echo "yes" >&6; }
  13437. SET_MAKE=
  13438. else
  13439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13440. $as_echo "no" >&6; }
  13441. SET_MAKE="MAKE=${MAKE-make}"
  13442. fi
  13443. if test -n "$ac_tool_prefix"; then
  13444. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13445. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13447. $as_echo_n "checking for $ac_word... " >&6; }
  13448. if ${ac_cv_prog_WINDRES+:} false; then :
  13449. $as_echo_n "(cached) " >&6
  13450. else
  13451. if test -n "$WINDRES"; then
  13452. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13453. else
  13454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13455. for as_dir in $PATH
  13456. do
  13457. IFS=$as_save_IFS
  13458. test -z "$as_dir" && as_dir=.
  13459. for ac_exec_ext in '' $ac_executable_extensions; do
  13460. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13461. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13463. break 2
  13464. fi
  13465. done
  13466. done
  13467. IFS=$as_save_IFS
  13468. fi
  13469. fi
  13470. WINDRES=$ac_cv_prog_WINDRES
  13471. if test -n "$WINDRES"; then
  13472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13473. $as_echo "$WINDRES" >&6; }
  13474. else
  13475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13476. $as_echo "no" >&6; }
  13477. fi
  13478. fi
  13479. if test -z "$ac_cv_prog_WINDRES"; then
  13480. ac_ct_WINDRES=$WINDRES
  13481. # Extract the first word of "windres", so it can be a program name with args.
  13482. set dummy windres; ac_word=$2
  13483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13484. $as_echo_n "checking for $ac_word... " >&6; }
  13485. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13486. $as_echo_n "(cached) " >&6
  13487. else
  13488. if test -n "$ac_ct_WINDRES"; then
  13489. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13490. else
  13491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13492. for as_dir in $PATH
  13493. do
  13494. IFS=$as_save_IFS
  13495. test -z "$as_dir" && as_dir=.
  13496. for ac_exec_ext in '' $ac_executable_extensions; do
  13497. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13498. ac_cv_prog_ac_ct_WINDRES="windres"
  13499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13500. break 2
  13501. fi
  13502. done
  13503. done
  13504. IFS=$as_save_IFS
  13505. fi
  13506. fi
  13507. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13508. if test -n "$ac_ct_WINDRES"; then
  13509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13510. $as_echo "$ac_ct_WINDRES" >&6; }
  13511. else
  13512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13513. $as_echo "no" >&6; }
  13514. fi
  13515. if test "x$ac_ct_WINDRES" = x; then
  13516. WINDRES=":"
  13517. else
  13518. case $cross_compiling:$ac_tool_warned in
  13519. yes:)
  13520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13521. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13522. ac_tool_warned=yes ;;
  13523. esac
  13524. WINDRES=$ac_ct_WINDRES
  13525. fi
  13526. else
  13527. WINDRES="$ac_cv_prog_WINDRES"
  13528. fi
  13529. case "$host" in
  13530. *-*-mingw32*)
  13531. # Except on msys, where make can't handle full pathnames (bug 1972)
  13532. ;;
  13533. *)
  13534. srcdir=`cd $srcdir && pwd`
  13535. ;;
  13536. esac
  13537. INCLUDE="-I$srcdir/include"
  13538. if test x$srcdir != x.; then
  13539. INCLUDE="-Iinclude $INCLUDE"
  13540. elif test -d .hg; then
  13541. as_fn_error $? "
  13542. *** When building from Mercurial you should configure and build in a
  13543. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13544. " "$LINENO" 5
  13545. fi
  13546. BASE_CFLAGS=""
  13547. BASE_LDFLAGS=""
  13548. case "$host" in
  13549. *-*-cygwin*)
  13550. # We build SDL on cygwin without the UNIX emulation layer
  13551. save_CFLAGS="$CFLAGS"
  13552. have_no_cygwin=no
  13553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13554. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13555. CFLAGS="$save_CFLAGS -mno-cygwin"
  13556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13557. /* end confdefs.h. */
  13558. int
  13559. main ()
  13560. {
  13561. ;
  13562. return 0;
  13563. }
  13564. _ACEOF
  13565. if ac_fn_c_try_compile "$LINENO"; then :
  13566. have_no_cygwin=yes
  13567. fi
  13568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13570. $as_echo "$have_no_cygwin" >&6; }
  13571. CFLAGS="$save_CFLAGS"
  13572. if test x$have_no_cygwin = xyes; then
  13573. BASE_CFLAGS="-mno-cygwin"
  13574. BASE_LDFLAGS="-mno-cygwin"
  13575. fi
  13576. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13577. ;;
  13578. esac
  13579. # Uncomment the following line if you want to force SDL and applications
  13580. # built with it to be compiled for a particular architecture.
  13581. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13582. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13583. # The default optimization for SDL is -O3 (Bug #31)
  13584. if test "x$orig_CFLAGS" = x; then
  13585. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13586. fi
  13587. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13588. BUILD_LDFLAGS="$LDFLAGS"
  13589. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13590. ## These are common directories to find software packages
  13591. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13592. # if test -d $path/include; then
  13593. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13594. # fi
  13595. # if test -d $path/lib; then
  13596. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13597. # fi
  13598. #done
  13599. SDL_CFLAGS="$BASE_CFLAGS"
  13600. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13601. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13602. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13603. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13604. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13605. find_lib()
  13606. {
  13607. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13608. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13609. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13610. if test "$cross_compiling" = yes; then
  13611. host_lib_path=""
  13612. else
  13613. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13614. fi
  13615. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13616. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13617. if test x$lib != x; then
  13618. echo $lib
  13619. return
  13620. fi
  13621. done
  13622. }
  13623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13624. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13625. if ${ac_cv_c_const+:} false; then :
  13626. $as_echo_n "(cached) " >&6
  13627. else
  13628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13629. /* end confdefs.h. */
  13630. int
  13631. main ()
  13632. {
  13633. #ifndef __cplusplus
  13634. /* Ultrix mips cc rejects this sort of thing. */
  13635. typedef int charset[2];
  13636. const charset cs = { 0, 0 };
  13637. /* SunOS 4.1.1 cc rejects this. */
  13638. char const *const *pcpcc;
  13639. char **ppc;
  13640. /* NEC SVR4.0.2 mips cc rejects this. */
  13641. struct point {int x, y;};
  13642. static struct point const zero = {0,0};
  13643. /* AIX XL C 1.02.0.0 rejects this.
  13644. It does not let you subtract one const X* pointer from another in
  13645. an arm of an if-expression whose if-part is not a constant
  13646. expression */
  13647. const char *g = "string";
  13648. pcpcc = &g + (g ? g-g : 0);
  13649. /* HPUX 7.0 cc rejects these. */
  13650. ++pcpcc;
  13651. ppc = (char**) pcpcc;
  13652. pcpcc = (char const *const *) ppc;
  13653. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13654. char tx;
  13655. char *t = &tx;
  13656. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13657. *t++ = 0;
  13658. if (s) return 0;
  13659. }
  13660. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13661. int x[] = {25, 17};
  13662. const int *foo = &x[0];
  13663. ++foo;
  13664. }
  13665. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13666. typedef const int *iptr;
  13667. iptr p = 0;
  13668. ++p;
  13669. }
  13670. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13671. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13672. struct s { int j; const int *ap[3]; } bx;
  13673. struct s *b = &bx; b->j = 5;
  13674. }
  13675. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13676. const int foo = 10;
  13677. if (!foo) return 0;
  13678. }
  13679. return !cs[0] && !zero.x;
  13680. #endif
  13681. ;
  13682. return 0;
  13683. }
  13684. _ACEOF
  13685. if ac_fn_c_try_compile "$LINENO"; then :
  13686. ac_cv_c_const=yes
  13687. else
  13688. ac_cv_c_const=no
  13689. fi
  13690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13691. fi
  13692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13693. $as_echo "$ac_cv_c_const" >&6; }
  13694. if test $ac_cv_c_const = no; then
  13695. $as_echo "#define const /**/" >>confdefs.h
  13696. fi
  13697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13698. $as_echo_n "checking for inline... " >&6; }
  13699. if ${ac_cv_c_inline+:} false; then :
  13700. $as_echo_n "(cached) " >&6
  13701. else
  13702. ac_cv_c_inline=no
  13703. for ac_kw in inline __inline__ __inline; do
  13704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13705. /* end confdefs.h. */
  13706. #ifndef __cplusplus
  13707. typedef int foo_t;
  13708. static $ac_kw foo_t static_foo () {return 0; }
  13709. $ac_kw foo_t foo () {return 0; }
  13710. #endif
  13711. _ACEOF
  13712. if ac_fn_c_try_compile "$LINENO"; then :
  13713. ac_cv_c_inline=$ac_kw
  13714. fi
  13715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13716. test "$ac_cv_c_inline" != no && break
  13717. done
  13718. fi
  13719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13720. $as_echo "$ac_cv_c_inline" >&6; }
  13721. case $ac_cv_c_inline in
  13722. inline | yes) ;;
  13723. *)
  13724. case $ac_cv_c_inline in
  13725. no) ac_val=;;
  13726. *) ac_val=$ac_cv_c_inline;;
  13727. esac
  13728. cat >>confdefs.h <<_ACEOF
  13729. #ifndef __cplusplus
  13730. #define inline $ac_val
  13731. #endif
  13732. _ACEOF
  13733. ;;
  13734. esac
  13735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13736. $as_echo_n "checking for working volatile... " >&6; }
  13737. if ${ac_cv_c_volatile+:} false; then :
  13738. $as_echo_n "(cached) " >&6
  13739. else
  13740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13741. /* end confdefs.h. */
  13742. int
  13743. main ()
  13744. {
  13745. volatile int x;
  13746. int * volatile y = (int *) 0;
  13747. return !x && !y;
  13748. ;
  13749. return 0;
  13750. }
  13751. _ACEOF
  13752. if ac_fn_c_try_compile "$LINENO"; then :
  13753. ac_cv_c_volatile=yes
  13754. else
  13755. ac_cv_c_volatile=no
  13756. fi
  13757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13758. fi
  13759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13760. $as_echo "$ac_cv_c_volatile" >&6; }
  13761. if test $ac_cv_c_volatile = no; then
  13762. $as_echo "#define volatile /**/" >>confdefs.h
  13763. fi
  13764. # Check whether --enable-assertions was given.
  13765. if test "${enable_assertions+set}" = set; then :
  13766. enableval=$enable_assertions;
  13767. else
  13768. enable_assertions=auto
  13769. fi
  13770. case "$enable_assertions" in
  13771. auto) # Use optimization settings to determine assertion level
  13772. ;;
  13773. disabled)
  13774. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13775. ;;
  13776. release)
  13777. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13778. ;;
  13779. enabled)
  13780. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13781. ;;
  13782. paranoid)
  13783. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13784. ;;
  13785. *)
  13786. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13787. ;;
  13788. esac
  13789. # Check whether --enable-dependency-tracking was given.
  13790. if test "${enable_dependency_tracking+set}" = set; then :
  13791. enableval=$enable_dependency_tracking;
  13792. else
  13793. enable_dependency_tracking=yes
  13794. fi
  13795. if test x$enable_dependency_tracking = xyes; then
  13796. have_gcc_mmd_mt=no
  13797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13798. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13800. /* end confdefs.h. */
  13801. #if !defined(__GNUC__) || __GNUC__ < 3
  13802. #error Dependency tracking requires GCC 3.0 or newer
  13803. #endif
  13804. int
  13805. main ()
  13806. {
  13807. ;
  13808. return 0;
  13809. }
  13810. _ACEOF
  13811. if ac_fn_c_try_compile "$LINENO"; then :
  13812. have_gcc_mmd_mt=yes
  13813. fi
  13814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13816. $as_echo "$have_gcc_mmd_mt" >&6; }
  13817. if test x$have_gcc_mmd_mt = xyes; then
  13818. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13819. fi
  13820. fi
  13821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13822. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13823. have_no_undefined=no
  13824. case "$host" in
  13825. *-*-openbsd*)
  13826. ;;
  13827. *)
  13828. save_LDFLAGS="$LDFLAGS"
  13829. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13831. /* end confdefs.h. */
  13832. int
  13833. main ()
  13834. {
  13835. ;
  13836. return 0;
  13837. }
  13838. _ACEOF
  13839. if ac_fn_c_try_link "$LINENO"; then :
  13840. have_no_undefined=yes
  13841. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13842. fi
  13843. rm -f core conftest.err conftest.$ac_objext \
  13844. conftest$ac_exeext conftest.$ac_ext
  13845. LDFLAGS="$save_LDFLAGS"
  13846. ;;
  13847. esac
  13848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13849. $as_echo "$have_no_undefined" >&6; }
  13850. # Check whether --enable-libc was given.
  13851. if test "${enable_libc+set}" = set; then :
  13852. enableval=$enable_libc;
  13853. else
  13854. enable_libc=yes
  13855. fi
  13856. if test x$enable_libc = xyes; then
  13857. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13859. $as_echo_n "checking for ANSI C header files... " >&6; }
  13860. if ${ac_cv_header_stdc+:} false; then :
  13861. $as_echo_n "(cached) " >&6
  13862. else
  13863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13864. /* end confdefs.h. */
  13865. #include <stdlib.h>
  13866. #include <stdarg.h>
  13867. #include <string.h>
  13868. #include <float.h>
  13869. int
  13870. main ()
  13871. {
  13872. ;
  13873. return 0;
  13874. }
  13875. _ACEOF
  13876. if ac_fn_c_try_compile "$LINENO"; then :
  13877. ac_cv_header_stdc=yes
  13878. else
  13879. ac_cv_header_stdc=no
  13880. fi
  13881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13882. if test $ac_cv_header_stdc = yes; then
  13883. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13885. /* end confdefs.h. */
  13886. #include <string.h>
  13887. _ACEOF
  13888. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13889. $EGREP "memchr" >/dev/null 2>&1; then :
  13890. else
  13891. ac_cv_header_stdc=no
  13892. fi
  13893. rm -f conftest*
  13894. fi
  13895. if test $ac_cv_header_stdc = yes; then
  13896. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13898. /* end confdefs.h. */
  13899. #include <stdlib.h>
  13900. _ACEOF
  13901. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13902. $EGREP "free" >/dev/null 2>&1; then :
  13903. else
  13904. ac_cv_header_stdc=no
  13905. fi
  13906. rm -f conftest*
  13907. fi
  13908. if test $ac_cv_header_stdc = yes; then
  13909. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13910. if test "$cross_compiling" = yes; then :
  13911. :
  13912. else
  13913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13914. /* end confdefs.h. */
  13915. #include <ctype.h>
  13916. #include <stdlib.h>
  13917. #if ((' ' & 0x0FF) == 0x020)
  13918. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13919. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13920. #else
  13921. # define ISLOWER(c) \
  13922. (('a' <= (c) && (c) <= 'i') \
  13923. || ('j' <= (c) && (c) <= 'r') \
  13924. || ('s' <= (c) && (c) <= 'z'))
  13925. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13926. #endif
  13927. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13928. int
  13929. main ()
  13930. {
  13931. int i;
  13932. for (i = 0; i < 256; i++)
  13933. if (XOR (islower (i), ISLOWER (i))
  13934. || toupper (i) != TOUPPER (i))
  13935. return 2;
  13936. return 0;
  13937. }
  13938. _ACEOF
  13939. if ac_fn_c_try_run "$LINENO"; then :
  13940. else
  13941. ac_cv_header_stdc=no
  13942. fi
  13943. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13944. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13945. fi
  13946. fi
  13947. fi
  13948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13949. $as_echo "$ac_cv_header_stdc" >&6; }
  13950. if test $ac_cv_header_stdc = yes; then
  13951. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13952. fi
  13953. 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
  13954. do :
  13955. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13956. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13957. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13958. cat >>confdefs.h <<_ACEOF
  13959. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13960. _ACEOF
  13961. fi
  13962. done
  13963. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13964. if test "x$ac_cv_type_size_t" = xyes; then :
  13965. else
  13966. cat >>confdefs.h <<_ACEOF
  13967. #define size_t unsigned int
  13968. _ACEOF
  13969. fi
  13970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13971. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13972. if ${ac_cv_define_M_PI+:} false; then :
  13973. $as_echo_n "(cached) " >&6
  13974. else
  13975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13976. /* end confdefs.h. */
  13977. #include <math.h>
  13978. #ifdef M_PI
  13979. YES_IS_DEFINED
  13980. #endif
  13981. _ACEOF
  13982. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13983. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13984. ac_cv_define_M_PI=yes
  13985. else
  13986. ac_cv_define_M_PI=no
  13987. fi
  13988. rm -f conftest*
  13989. fi
  13990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13991. $as_echo "$ac_cv_define_M_PI" >&6; }
  13992. if test "$ac_cv_define_M_PI" = "yes" ; then
  13993. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13994. fi
  13995. case "$host" in
  13996. *-*-cygwin* | *-*-mingw32*)
  13997. ;;
  13998. *)
  13999. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14000. # for constant arguments. Useless!
  14001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14002. $as_echo_n "checking for working alloca.h... " >&6; }
  14003. if ${ac_cv_working_alloca_h+:} false; then :
  14004. $as_echo_n "(cached) " >&6
  14005. else
  14006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14007. /* end confdefs.h. */
  14008. #include <alloca.h>
  14009. int
  14010. main ()
  14011. {
  14012. char *p = (char *) alloca (2 * sizeof (int));
  14013. if (p) return 0;
  14014. ;
  14015. return 0;
  14016. }
  14017. _ACEOF
  14018. if ac_fn_c_try_link "$LINENO"; then :
  14019. ac_cv_working_alloca_h=yes
  14020. else
  14021. ac_cv_working_alloca_h=no
  14022. fi
  14023. rm -f core conftest.err conftest.$ac_objext \
  14024. conftest$ac_exeext conftest.$ac_ext
  14025. fi
  14026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14027. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14028. if test $ac_cv_working_alloca_h = yes; then
  14029. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14030. fi
  14031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14032. $as_echo_n "checking for alloca... " >&6; }
  14033. if ${ac_cv_func_alloca_works+:} false; then :
  14034. $as_echo_n "(cached) " >&6
  14035. else
  14036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14037. /* end confdefs.h. */
  14038. #ifdef __GNUC__
  14039. # define alloca __builtin_alloca
  14040. #else
  14041. # ifdef _MSC_VER
  14042. # include <malloc.h>
  14043. # define alloca _alloca
  14044. # else
  14045. # ifdef HAVE_ALLOCA_H
  14046. # include <alloca.h>
  14047. # else
  14048. # ifdef _AIX
  14049. #pragma alloca
  14050. # else
  14051. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14052. void *alloca (size_t);
  14053. # endif
  14054. # endif
  14055. # endif
  14056. # endif
  14057. #endif
  14058. int
  14059. main ()
  14060. {
  14061. char *p = (char *) alloca (1);
  14062. if (p) return 0;
  14063. ;
  14064. return 0;
  14065. }
  14066. _ACEOF
  14067. if ac_fn_c_try_link "$LINENO"; then :
  14068. ac_cv_func_alloca_works=yes
  14069. else
  14070. ac_cv_func_alloca_works=no
  14071. fi
  14072. rm -f core conftest.err conftest.$ac_objext \
  14073. conftest$ac_exeext conftest.$ac_ext
  14074. fi
  14075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14076. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14077. if test $ac_cv_func_alloca_works = yes; then
  14078. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14079. else
  14080. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14081. # that cause trouble. Some versions do not even contain alloca or
  14082. # contain a buggy version. If you still want to use their alloca,
  14083. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14084. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14085. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14087. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14088. if ${ac_cv_os_cray+:} false; then :
  14089. $as_echo_n "(cached) " >&6
  14090. else
  14091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14092. /* end confdefs.h. */
  14093. #if defined CRAY && ! defined CRAY2
  14094. webecray
  14095. #else
  14096. wenotbecray
  14097. #endif
  14098. _ACEOF
  14099. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14100. $EGREP "webecray" >/dev/null 2>&1; then :
  14101. ac_cv_os_cray=yes
  14102. else
  14103. ac_cv_os_cray=no
  14104. fi
  14105. rm -f conftest*
  14106. fi
  14107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14108. $as_echo "$ac_cv_os_cray" >&6; }
  14109. if test $ac_cv_os_cray = yes; then
  14110. for ac_func in _getb67 GETB67 getb67; do
  14111. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14112. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14113. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14114. cat >>confdefs.h <<_ACEOF
  14115. #define CRAY_STACKSEG_END $ac_func
  14116. _ACEOF
  14117. break
  14118. fi
  14119. done
  14120. fi
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14122. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14123. if ${ac_cv_c_stack_direction+:} false; then :
  14124. $as_echo_n "(cached) " >&6
  14125. else
  14126. if test "$cross_compiling" = yes; then :
  14127. ac_cv_c_stack_direction=0
  14128. else
  14129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14130. /* end confdefs.h. */
  14131. $ac_includes_default
  14132. int
  14133. find_stack_direction (int *addr, int depth)
  14134. {
  14135. int dir, dummy = 0;
  14136. if (! addr)
  14137. addr = &dummy;
  14138. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14139. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14140. return dir + dummy;
  14141. }
  14142. int
  14143. main (int argc, char **argv)
  14144. {
  14145. return find_stack_direction (0, argc + !argv + 20) < 0;
  14146. }
  14147. _ACEOF
  14148. if ac_fn_c_try_run "$LINENO"; then :
  14149. ac_cv_c_stack_direction=1
  14150. else
  14151. ac_cv_c_stack_direction=-1
  14152. fi
  14153. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14154. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14155. fi
  14156. fi
  14157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14158. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14159. cat >>confdefs.h <<_ACEOF
  14160. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14161. _ACEOF
  14162. fi
  14163. ;;
  14164. esac
  14165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14166. $as_echo_n "checking for working memcmp... " >&6; }
  14167. if ${ac_cv_func_memcmp_working+:} false; then :
  14168. $as_echo_n "(cached) " >&6
  14169. else
  14170. if test "$cross_compiling" = yes; then :
  14171. ac_cv_func_memcmp_working=no
  14172. else
  14173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14174. /* end confdefs.h. */
  14175. $ac_includes_default
  14176. int
  14177. main ()
  14178. {
  14179. /* Some versions of memcmp are not 8-bit clean. */
  14180. char c0 = '\100', c1 = '\200', c2 = '\201';
  14181. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14182. return 1;
  14183. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14184. or more and with at least one buffer not starting on a 4-byte boundary.
  14185. William Lewis provided this test program. */
  14186. {
  14187. char foo[21];
  14188. char bar[21];
  14189. int i;
  14190. for (i = 0; i < 4; i++)
  14191. {
  14192. char *a = foo + i;
  14193. char *b = bar + i;
  14194. strcpy (a, "--------01111111");
  14195. strcpy (b, "--------10000000");
  14196. if (memcmp (a, b, 16) >= 0)
  14197. return 1;
  14198. }
  14199. return 0;
  14200. }
  14201. ;
  14202. return 0;
  14203. }
  14204. _ACEOF
  14205. if ac_fn_c_try_run "$LINENO"; then :
  14206. ac_cv_func_memcmp_working=yes
  14207. else
  14208. ac_cv_func_memcmp_working=no
  14209. fi
  14210. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14211. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14212. fi
  14213. fi
  14214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14215. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14216. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14217. *" memcmp.$ac_objext "* ) ;;
  14218. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14219. ;;
  14220. esac
  14221. if test x$ac_cv_func_memcmp_working = xyes; then
  14222. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14223. fi
  14224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14225. $as_echo_n "checking for working strtod... " >&6; }
  14226. if ${ac_cv_func_strtod+:} false; then :
  14227. $as_echo_n "(cached) " >&6
  14228. else
  14229. if test "$cross_compiling" = yes; then :
  14230. ac_cv_func_strtod=no
  14231. else
  14232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14233. /* end confdefs.h. */
  14234. $ac_includes_default
  14235. #ifndef strtod
  14236. double strtod ();
  14237. #endif
  14238. int
  14239. main()
  14240. {
  14241. {
  14242. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14243. char *string = " +69";
  14244. char *term;
  14245. double value;
  14246. value = strtod (string, &term);
  14247. if (value != 69 || term != (string + 4))
  14248. return 1;
  14249. }
  14250. {
  14251. /* Under Solaris 2.4, strtod returns the wrong value for the
  14252. terminating character under some conditions. */
  14253. char *string = "NaN";
  14254. char *term;
  14255. strtod (string, &term);
  14256. if (term != string && *(term - 1) == 0)
  14257. return 1;
  14258. }
  14259. return 0;
  14260. }
  14261. _ACEOF
  14262. if ac_fn_c_try_run "$LINENO"; then :
  14263. ac_cv_func_strtod=yes
  14264. else
  14265. ac_cv_func_strtod=no
  14266. fi
  14267. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14268. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14269. fi
  14270. fi
  14271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14272. $as_echo "$ac_cv_func_strtod" >&6; }
  14273. if test $ac_cv_func_strtod = no; then
  14274. case " $LIBOBJS " in
  14275. *" strtod.$ac_objext "* ) ;;
  14276. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14277. ;;
  14278. esac
  14279. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14280. if test "x$ac_cv_func_pow" = xyes; then :
  14281. fi
  14282. if test $ac_cv_func_pow = no; then
  14283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14284. $as_echo_n "checking for pow in -lm... " >&6; }
  14285. if ${ac_cv_lib_m_pow+:} false; then :
  14286. $as_echo_n "(cached) " >&6
  14287. else
  14288. ac_check_lib_save_LIBS=$LIBS
  14289. LIBS="-lm $LIBS"
  14290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14291. /* end confdefs.h. */
  14292. /* Override any GCC internal prototype to avoid an error.
  14293. Use char because int might match the return type of a GCC
  14294. builtin and then its argument prototype would still apply. */
  14295. #ifdef __cplusplus
  14296. extern "C"
  14297. #endif
  14298. char pow ();
  14299. int
  14300. main ()
  14301. {
  14302. return pow ();
  14303. ;
  14304. return 0;
  14305. }
  14306. _ACEOF
  14307. if ac_fn_c_try_link "$LINENO"; then :
  14308. ac_cv_lib_m_pow=yes
  14309. else
  14310. ac_cv_lib_m_pow=no
  14311. fi
  14312. rm -f core conftest.err conftest.$ac_objext \
  14313. conftest$ac_exeext conftest.$ac_ext
  14314. LIBS=$ac_check_lib_save_LIBS
  14315. fi
  14316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14317. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14318. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14319. POW_LIB=-lm
  14320. else
  14321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14322. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14323. fi
  14324. fi
  14325. fi
  14326. if test x$ac_cv_func_strtod = xyes; then
  14327. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14328. fi
  14329. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14330. if test "x$ac_cv_func_mprotect" = xyes; then :
  14331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14332. /* end confdefs.h. */
  14333. #include <sys/types.h>
  14334. #include <sys/mman.h>
  14335. int
  14336. main ()
  14337. {
  14338. ;
  14339. return 0;
  14340. }
  14341. _ACEOF
  14342. if ac_fn_c_try_compile "$LINENO"; then :
  14343. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14344. fi
  14345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14346. fi
  14347. 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
  14348. do :
  14349. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14350. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14351. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14352. cat >>confdefs.h <<_ACEOF
  14353. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14354. _ACEOF
  14355. fi
  14356. done
  14357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14358. $as_echo_n "checking for pow in -lm... " >&6; }
  14359. if ${ac_cv_lib_m_pow+:} false; then :
  14360. $as_echo_n "(cached) " >&6
  14361. else
  14362. ac_check_lib_save_LIBS=$LIBS
  14363. LIBS="-lm $LIBS"
  14364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14365. /* end confdefs.h. */
  14366. /* Override any GCC internal prototype to avoid an error.
  14367. Use char because int might match the return type of a GCC
  14368. builtin and then its argument prototype would still apply. */
  14369. #ifdef __cplusplus
  14370. extern "C"
  14371. #endif
  14372. char pow ();
  14373. int
  14374. main ()
  14375. {
  14376. return pow ();
  14377. ;
  14378. return 0;
  14379. }
  14380. _ACEOF
  14381. if ac_fn_c_try_link "$LINENO"; then :
  14382. ac_cv_lib_m_pow=yes
  14383. else
  14384. ac_cv_lib_m_pow=no
  14385. fi
  14386. rm -f core conftest.err conftest.$ac_objext \
  14387. conftest$ac_exeext conftest.$ac_ext
  14388. LIBS=$ac_check_lib_save_LIBS
  14389. fi
  14390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14391. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14392. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14393. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14394. fi
  14395. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14396. do :
  14397. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14398. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14399. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14400. cat >>confdefs.h <<_ACEOF
  14401. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14402. _ACEOF
  14403. fi
  14404. done
  14405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14406. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14407. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14408. $as_echo_n "(cached) " >&6
  14409. else
  14410. ac_check_lib_save_LIBS=$LIBS
  14411. LIBS="-liconv $LIBS"
  14412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14413. /* end confdefs.h. */
  14414. /* Override any GCC internal prototype to avoid an error.
  14415. Use char because int might match the return type of a GCC
  14416. builtin and then its argument prototype would still apply. */
  14417. #ifdef __cplusplus
  14418. extern "C"
  14419. #endif
  14420. char iconv_open ();
  14421. int
  14422. main ()
  14423. {
  14424. return iconv_open ();
  14425. ;
  14426. return 0;
  14427. }
  14428. _ACEOF
  14429. if ac_fn_c_try_link "$LINENO"; then :
  14430. ac_cv_lib_iconv_iconv_open=yes
  14431. else
  14432. ac_cv_lib_iconv_iconv_open=no
  14433. fi
  14434. rm -f core conftest.err conftest.$ac_objext \
  14435. conftest$ac_exeext conftest.$ac_ext
  14436. LIBS=$ac_check_lib_save_LIBS
  14437. fi
  14438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14439. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14440. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14441. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14442. fi
  14443. for ac_func in iconv
  14444. do :
  14445. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14446. if test "x$ac_cv_func_iconv" = xyes; then :
  14447. cat >>confdefs.h <<_ACEOF
  14448. #define HAVE_ICONV 1
  14449. _ACEOF
  14450. fi
  14451. done
  14452. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14453. "
  14454. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14455. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14456. fi
  14457. fi
  14458. # Check whether --enable-gcc-atomics was given.
  14459. if test "${enable_gcc_atomics+set}" = set; then :
  14460. enableval=$enable_gcc_atomics;
  14461. else
  14462. enable_gcc_atomics=yes
  14463. fi
  14464. if test x$enable_gcc_atomics = xyes; then
  14465. have_gcc_atomics=no
  14466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14467. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14469. /* end confdefs.h. */
  14470. int
  14471. main ()
  14472. {
  14473. int a;
  14474. void *x, *y, *z;
  14475. __sync_lock_test_and_set(&a, 4);
  14476. __sync_lock_test_and_set(&x, y);
  14477. __sync_fetch_and_add(&a, 1);
  14478. __sync_bool_compare_and_swap(&a, 5, 10);
  14479. __sync_bool_compare_and_swap(&x, y, z);
  14480. ;
  14481. return 0;
  14482. }
  14483. _ACEOF
  14484. if ac_fn_c_try_link "$LINENO"; then :
  14485. have_gcc_atomics=yes
  14486. fi
  14487. rm -f core conftest.err conftest.$ac_objext \
  14488. conftest$ac_exeext conftest.$ac_ext
  14489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14490. $as_echo "$have_gcc_atomics" >&6; }
  14491. if test x$have_gcc_atomics = xyes; then
  14492. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14493. else
  14494. # See if we have the minimum operation needed for GCC atomics
  14495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14496. /* end confdefs.h. */
  14497. int
  14498. main ()
  14499. {
  14500. int a;
  14501. __sync_lock_test_and_set(&a, 1);
  14502. __sync_lock_release(&a);
  14503. ;
  14504. return 0;
  14505. }
  14506. _ACEOF
  14507. if ac_fn_c_try_link "$LINENO"; then :
  14508. have_gcc_sync_lock_test_and_set=yes
  14509. fi
  14510. rm -f core conftest.err conftest.$ac_objext \
  14511. conftest$ac_exeext conftest.$ac_ext
  14512. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14513. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14514. fi
  14515. fi
  14516. fi
  14517. # Standard C sources
  14518. SOURCES="$SOURCES $srcdir/src/*.c"
  14519. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14520. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14521. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14522. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14523. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14524. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14525. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14526. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14527. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14528. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14529. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14530. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14531. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14532. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14533. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14534. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14535. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14536. # Check whether --enable-atomic was given.
  14537. if test "${enable_atomic+set}" = set; then :
  14538. enableval=$enable_atomic;
  14539. else
  14540. enable_atomic=yes
  14541. fi
  14542. if test x$enable_atomic != xyes; then
  14543. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14544. else
  14545. SUMMARY_modules="${SUMMARY_modules} atomic"
  14546. fi
  14547. # Check whether --enable-audio was given.
  14548. if test "${enable_audio+set}" = set; then :
  14549. enableval=$enable_audio;
  14550. else
  14551. enable_audio=yes
  14552. fi
  14553. if test x$enable_audio != xyes; then
  14554. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14555. else
  14556. SUMMARY_modules="${SUMMARY_modules} audio"
  14557. fi
  14558. # Check whether --enable-video was given.
  14559. if test "${enable_video+set}" = set; then :
  14560. enableval=$enable_video;
  14561. else
  14562. enable_video=yes
  14563. fi
  14564. if test x$enable_video != xyes; then
  14565. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14566. else
  14567. SUMMARY_modules="${SUMMARY_modules} video"
  14568. fi
  14569. # Check whether --enable-render was given.
  14570. if test "${enable_render+set}" = set; then :
  14571. enableval=$enable_render;
  14572. else
  14573. enable_render=yes
  14574. fi
  14575. if test x$enable_render != xyes; then
  14576. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14577. else
  14578. SUMMARY_modules="${SUMMARY_modules} render"
  14579. fi
  14580. # Check whether --enable-events was given.
  14581. if test "${enable_events+set}" = set; then :
  14582. enableval=$enable_events;
  14583. else
  14584. enable_events=yes
  14585. fi
  14586. if test x$enable_events != xyes; then
  14587. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14588. else
  14589. SUMMARY_modules="${SUMMARY_modules} events"
  14590. fi
  14591. # Check whether --enable-joystick was given.
  14592. if test "${enable_joystick+set}" = set; then :
  14593. enableval=$enable_joystick;
  14594. else
  14595. enable_joystick=yes
  14596. fi
  14597. if test x$enable_joystick != xyes; then
  14598. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14599. else
  14600. SUMMARY_modules="${SUMMARY_modules} joystick"
  14601. fi
  14602. # Check whether --enable-haptic was given.
  14603. if test "${enable_haptic+set}" = set; then :
  14604. enableval=$enable_haptic;
  14605. else
  14606. enable_haptic=yes
  14607. fi
  14608. if test x$enable_haptic != xyes; then
  14609. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14610. else
  14611. SUMMARY_modules="${SUMMARY_modules} haptic"
  14612. fi
  14613. # Check whether --enable-power was given.
  14614. if test "${enable_power+set}" = set; then :
  14615. enableval=$enable_power;
  14616. else
  14617. enable_power=yes
  14618. fi
  14619. if test x$enable_power != xyes; then
  14620. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14621. else
  14622. SUMMARY_modules="${SUMMARY_modules} power"
  14623. fi
  14624. # Check whether --enable-filesystem was given.
  14625. if test "${enable_filesystem+set}" = set; then :
  14626. enableval=$enable_filesystem;
  14627. else
  14628. enable_filesystem=yes
  14629. fi
  14630. if test x$enable_filesystem != xyes; then
  14631. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14632. else
  14633. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14634. fi
  14635. # Check whether --enable-threads was given.
  14636. if test "${enable_threads+set}" = set; then :
  14637. enableval=$enable_threads;
  14638. else
  14639. enable_threads=yes
  14640. fi
  14641. if test x$enable_threads != xyes; then
  14642. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14643. else
  14644. SUMMARY_modules="${SUMMARY_modules} threads"
  14645. fi
  14646. # Check whether --enable-timers was given.
  14647. if test "${enable_timers+set}" = set; then :
  14648. enableval=$enable_timers;
  14649. else
  14650. enable_timers=yes
  14651. fi
  14652. if test x$enable_timers != xyes; then
  14653. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14654. else
  14655. SUMMARY_modules="${SUMMARY_modules} timers"
  14656. fi
  14657. # Check whether --enable-file was given.
  14658. if test "${enable_file+set}" = set; then :
  14659. enableval=$enable_file;
  14660. else
  14661. enable_file=yes
  14662. fi
  14663. if test x$enable_file != xyes; then
  14664. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14665. else
  14666. SUMMARY_modules="${SUMMARY_modules} file"
  14667. fi
  14668. # Check whether --enable-loadso was given.
  14669. if test "${enable_loadso+set}" = set; then :
  14670. enableval=$enable_loadso;
  14671. else
  14672. enable_loadso=yes
  14673. fi
  14674. if test x$enable_loadso != xyes; then
  14675. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14676. else
  14677. SUMMARY_modules="${SUMMARY_modules} loadso"
  14678. fi
  14679. # Check whether --enable-cpuinfo was given.
  14680. if test "${enable_cpuinfo+set}" = set; then :
  14681. enableval=$enable_cpuinfo;
  14682. else
  14683. enable_cpuinfo=yes
  14684. fi
  14685. if test x$enable_cpuinfo != xyes; then
  14686. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14687. else
  14688. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14689. fi
  14690. # Check whether --enable-assembly was given.
  14691. if test "${enable_assembly+set}" = set; then :
  14692. enableval=$enable_assembly;
  14693. else
  14694. enable_assembly=yes
  14695. fi
  14696. if test x$enable_assembly = xyes; then
  14697. SUMMARY_modules="${SUMMARY_modules} assembly"
  14698. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14699. # Make sure that we don't generate floating point code that would
  14700. # cause illegal instruction exceptions on older processors
  14701. case "$host" in
  14702. *-*-darwin*)
  14703. # Don't need to worry about Apple hardware, it's all SSE capable
  14704. default_ssemath=yes
  14705. ;;
  14706. *64-*-*)
  14707. # x86 64-bit architectures all have SSE instructions
  14708. default_ssemath=yes
  14709. ;;
  14710. *)
  14711. default_ssemath=no
  14712. ;;
  14713. esac
  14714. # Check whether --enable-ssemath was given.
  14715. if test "${enable_ssemath+set}" = set; then :
  14716. enableval=$enable_ssemath;
  14717. else
  14718. enable_ssemath=$default_ssemath
  14719. fi
  14720. if test x$enable_ssemath = xno; then
  14721. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14722. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14723. fi
  14724. fi
  14725. # Check whether --enable-mmx was given.
  14726. if test "${enable_mmx+set}" = set; then :
  14727. enableval=$enable_mmx;
  14728. else
  14729. enable_mmx=yes
  14730. fi
  14731. if test x$enable_mmx = xyes; then
  14732. save_CFLAGS="$CFLAGS"
  14733. have_gcc_mmx=no
  14734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14735. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14736. mmx_CFLAGS="-mmmx"
  14737. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14739. /* end confdefs.h. */
  14740. #ifdef __MINGW32__
  14741. #include <_mingw.h>
  14742. #ifdef __MINGW64_VERSION_MAJOR
  14743. #include <intrin.h>
  14744. #else
  14745. #include <mmintrin.h>
  14746. #endif
  14747. #else
  14748. #include <mmintrin.h>
  14749. #endif
  14750. #ifndef __MMX__
  14751. #error Assembler CPP flag not enabled
  14752. #endif
  14753. int
  14754. main ()
  14755. {
  14756. ;
  14757. return 0;
  14758. }
  14759. _ACEOF
  14760. if ac_fn_c_try_compile "$LINENO"; then :
  14761. have_gcc_mmx=yes
  14762. fi
  14763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14765. $as_echo "$have_gcc_mmx" >&6; }
  14766. CFLAGS="$save_CFLAGS"
  14767. if test x$have_gcc_mmx = xyes; then
  14768. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14769. SUMMARY_math="${SUMMARY_math} mmx"
  14770. fi
  14771. fi
  14772. # Check whether --enable-3dnow was given.
  14773. if test "${enable_3dnow+set}" = set; then :
  14774. enableval=$enable_3dnow;
  14775. else
  14776. enable_3dnow=yes
  14777. fi
  14778. if test x$enable_3dnow = xyes; then
  14779. save_CFLAGS="$CFLAGS"
  14780. have_gcc_3dnow=no
  14781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14782. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14783. amd3dnow_CFLAGS="-m3dnow"
  14784. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14786. /* end confdefs.h. */
  14787. #include <mm3dnow.h>
  14788. #ifndef __3dNOW__
  14789. #error Assembler CPP flag not enabled
  14790. #endif
  14791. int
  14792. main ()
  14793. {
  14794. void *p = 0;
  14795. _m_prefetch(p);
  14796. ;
  14797. return 0;
  14798. }
  14799. _ACEOF
  14800. if ac_fn_c_try_link "$LINENO"; then :
  14801. have_gcc_3dnow=yes
  14802. fi
  14803. rm -f core conftest.err conftest.$ac_objext \
  14804. conftest$ac_exeext conftest.$ac_ext
  14805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14806. $as_echo "$have_gcc_3dnow" >&6; }
  14807. CFLAGS="$save_CFLAGS"
  14808. if test x$have_gcc_3dnow = xyes; then
  14809. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14810. SUMMARY_math="${SUMMARY_math} 3dnow"
  14811. fi
  14812. fi
  14813. # Check whether --enable-sse was given.
  14814. if test "${enable_sse+set}" = set; then :
  14815. enableval=$enable_sse;
  14816. else
  14817. enable_sse=yes
  14818. fi
  14819. if test x$enable_sse = xyes; then
  14820. save_CFLAGS="$CFLAGS"
  14821. have_gcc_sse=no
  14822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14823. $as_echo_n "checking for GCC -msse option... " >&6; }
  14824. sse_CFLAGS="-msse"
  14825. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14827. /* end confdefs.h. */
  14828. #ifdef __MINGW32__
  14829. #include <_mingw.h>
  14830. #ifdef __MINGW64_VERSION_MAJOR
  14831. #include <intrin.h>
  14832. #else
  14833. #include <xmmintrin.h>
  14834. #endif
  14835. #else
  14836. #include <xmmintrin.h>
  14837. #endif
  14838. #ifndef __SSE__
  14839. #error Assembler CPP flag not enabled
  14840. #endif
  14841. int
  14842. main ()
  14843. {
  14844. ;
  14845. return 0;
  14846. }
  14847. _ACEOF
  14848. if ac_fn_c_try_compile "$LINENO"; then :
  14849. have_gcc_sse=yes
  14850. fi
  14851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14853. $as_echo "$have_gcc_sse" >&6; }
  14854. CFLAGS="$save_CFLAGS"
  14855. if test x$have_gcc_sse = xyes; then
  14856. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14857. SUMMARY_math="${SUMMARY_math} sse"
  14858. fi
  14859. fi
  14860. # Check whether --enable-sse2 was given.
  14861. if test "${enable_sse2+set}" = set; then :
  14862. enableval=$enable_sse2;
  14863. else
  14864. enable_sse2=$default_ssemath
  14865. fi
  14866. if test x$enable_sse2 = xyes; then
  14867. save_CFLAGS="$CFLAGS"
  14868. have_gcc_sse2=no
  14869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14870. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14871. sse2_CFLAGS="-msse2"
  14872. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14874. /* end confdefs.h. */
  14875. #ifdef __MINGW32__
  14876. #include <_mingw.h>
  14877. #ifdef __MINGW64_VERSION_MAJOR
  14878. #include <intrin.h>
  14879. #else
  14880. #include <emmintrin.h>
  14881. #endif
  14882. #else
  14883. #include <emmintrin.h>
  14884. #endif
  14885. #ifndef __SSE2__
  14886. #error Assembler CPP flag not enabled
  14887. #endif
  14888. int
  14889. main ()
  14890. {
  14891. ;
  14892. return 0;
  14893. }
  14894. _ACEOF
  14895. if ac_fn_c_try_compile "$LINENO"; then :
  14896. have_gcc_sse2=yes
  14897. fi
  14898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14900. $as_echo "$have_gcc_sse2" >&6; }
  14901. CFLAGS="$save_CFLAGS"
  14902. if test x$have_gcc_sse2 = xyes; then
  14903. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14904. SUMMARY_math="${SUMMARY_math} sse2"
  14905. fi
  14906. fi
  14907. # Check whether --enable-altivec was given.
  14908. if test "${enable_altivec+set}" = set; then :
  14909. enableval=$enable_altivec;
  14910. else
  14911. enable_altivec=yes
  14912. fi
  14913. if test x$enable_altivec = xyes; then
  14914. save_CFLAGS="$CFLAGS"
  14915. have_gcc_altivec=no
  14916. have_altivec_h_hdr=no
  14917. altivec_CFLAGS="-maltivec"
  14918. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14920. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14922. /* end confdefs.h. */
  14923. #include <altivec.h>
  14924. vector unsigned int vzero() {
  14925. return vec_splat_u32(0);
  14926. }
  14927. int
  14928. main ()
  14929. {
  14930. ;
  14931. return 0;
  14932. }
  14933. _ACEOF
  14934. if ac_fn_c_try_compile "$LINENO"; then :
  14935. have_gcc_altivec=yes
  14936. have_altivec_h_hdr=yes
  14937. fi
  14938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14940. $as_echo "$have_gcc_altivec" >&6; }
  14941. if test x$have_gcc_altivec = xno; then
  14942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14943. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14945. /* end confdefs.h. */
  14946. vector unsigned int vzero() {
  14947. return vec_splat_u32(0);
  14948. }
  14949. int
  14950. main ()
  14951. {
  14952. ;
  14953. return 0;
  14954. }
  14955. _ACEOF
  14956. if ac_fn_c_try_compile "$LINENO"; then :
  14957. have_gcc_altivec=yes
  14958. fi
  14959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14961. $as_echo "$have_gcc_altivec" >&6; }
  14962. fi
  14963. if test x$have_gcc_altivec = xno; then
  14964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14965. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14966. altivec_CFLAGS="-faltivec"
  14967. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14969. /* end confdefs.h. */
  14970. #include <altivec.h>
  14971. vector unsigned int vzero() {
  14972. return vec_splat_u32(0);
  14973. }
  14974. int
  14975. main ()
  14976. {
  14977. ;
  14978. return 0;
  14979. }
  14980. _ACEOF
  14981. if ac_fn_c_try_compile "$LINENO"; then :
  14982. have_gcc_altivec=yes
  14983. have_altivec_h_hdr=yes
  14984. fi
  14985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14987. $as_echo "$have_gcc_altivec" >&6; }
  14988. fi
  14989. if test x$have_gcc_altivec = xno; then
  14990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14991. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14993. /* end confdefs.h. */
  14994. vector unsigned int vzero() {
  14995. return vec_splat_u32(0);
  14996. }
  14997. int
  14998. main ()
  14999. {
  15000. ;
  15001. return 0;
  15002. }
  15003. _ACEOF
  15004. if ac_fn_c_try_compile "$LINENO"; then :
  15005. have_gcc_altivec=yes
  15006. fi
  15007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15009. $as_echo "$have_gcc_altivec" >&6; }
  15010. fi
  15011. CFLAGS="$save_CFLAGS"
  15012. if test x$have_gcc_altivec = xyes; then
  15013. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15014. if test x$have_altivec_h_hdr = xyes; then
  15015. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15016. fi
  15017. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15018. SUMMARY_math="${SUMMARY_math} altivec"
  15019. fi
  15020. fi
  15021. fi
  15022. CheckOSS()
  15023. {
  15024. # Check whether --enable-oss was given.
  15025. if test "${enable_oss+set}" = set; then :
  15026. enableval=$enable_oss;
  15027. else
  15028. enable_oss=maybe
  15029. fi
  15030. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15031. # use sndio instead. So on there, we default to disabled. You can force
  15032. # it on if you really want, though.
  15033. if test x$enable_oss = xmaybe; then
  15034. enable_oss=yes
  15035. case "$host" in
  15036. *-*-openbsd*)
  15037. enable_oss=no;;
  15038. esac
  15039. fi
  15040. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15042. $as_echo_n "checking for OSS audio support... " >&6; }
  15043. have_oss=no
  15044. if test x$have_oss != xyes; then
  15045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15046. /* end confdefs.h. */
  15047. #include <sys/soundcard.h>
  15048. int
  15049. main ()
  15050. {
  15051. int arg = SNDCTL_DSP_SETFRAGMENT;
  15052. ;
  15053. return 0;
  15054. }
  15055. _ACEOF
  15056. if ac_fn_c_try_compile "$LINENO"; then :
  15057. have_oss=yes
  15058. fi
  15059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15060. fi
  15061. if test x$have_oss != xyes; then
  15062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15063. /* end confdefs.h. */
  15064. #include <soundcard.h>
  15065. int
  15066. main ()
  15067. {
  15068. int arg = SNDCTL_DSP_SETFRAGMENT;
  15069. ;
  15070. return 0;
  15071. }
  15072. _ACEOF
  15073. if ac_fn_c_try_compile "$LINENO"; then :
  15074. have_oss=yes
  15075. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15076. fi
  15077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15078. fi
  15079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15080. $as_echo "$have_oss" >&6; }
  15081. if test x$have_oss = xyes; then
  15082. SUMMARY_audio="${SUMMARY_audio} oss"
  15083. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15084. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15085. have_audio=yes
  15086. # We may need to link with ossaudio emulation library
  15087. case "$host" in
  15088. *-*-openbsd*|*-*-netbsd*)
  15089. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15090. esac
  15091. fi
  15092. fi
  15093. }
  15094. CheckALSA()
  15095. {
  15096. # Check whether --enable-alsa was given.
  15097. if test "${enable_alsa+set}" = set; then :
  15098. enableval=$enable_alsa;
  15099. else
  15100. enable_alsa=yes
  15101. fi
  15102. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15103. alsa_save_CFLAGS="$CFLAGS"
  15104. alsa_save_LDFLAGS="$LDFLAGS"
  15105. alsa_save_LIBS="$LIBS"
  15106. alsa_found=yes
  15107. # Check whether --with-alsa-prefix was given.
  15108. if test "${with_alsa_prefix+set}" = set; then :
  15109. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15110. else
  15111. alsa_prefix=""
  15112. fi
  15113. # Check whether --with-alsa-inc-prefix was given.
  15114. if test "${with_alsa_inc_prefix+set}" = set; then :
  15115. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15116. else
  15117. alsa_inc_prefix=""
  15118. fi
  15119. # Check whether --enable-alsatest was given.
  15120. if test "${enable_alsatest+set}" = set; then :
  15121. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15122. else
  15123. enable_alsatest=yes
  15124. fi
  15125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15126. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15127. if test "$alsa_inc_prefix" != "" ; then
  15128. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15129. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15130. fi
  15131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15132. $as_echo "$ALSA_CFLAGS" >&6; }
  15133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15134. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15135. if test "$alsa_prefix" != "" ; then
  15136. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15137. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15138. fi
  15139. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15140. LIBS=`echo $LIBS | sed 's/-lm//'`
  15141. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15142. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15143. LIBS=`echo $LIBS | sed 's/ //'`
  15144. LIBS="$ALSA_LIBS $LIBS"
  15145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15146. $as_echo "$ALSA_LIBS" >&6; }
  15147. min_alsa_version=1.0.11
  15148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15149. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15150. no_alsa=""
  15151. alsa_min_major_version=`echo $min_alsa_version | \
  15152. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15153. alsa_min_minor_version=`echo $min_alsa_version | \
  15154. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15155. alsa_min_micro_version=`echo $min_alsa_version | \
  15156. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15157. ac_ext=c
  15158. ac_cpp='$CPP $CPPFLAGS'
  15159. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15160. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15161. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15163. /* end confdefs.h. */
  15164. #include <alsa/asoundlib.h>
  15165. int
  15166. main ()
  15167. {
  15168. /* ensure backward compatibility */
  15169. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15170. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15171. #endif
  15172. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15173. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15174. #endif
  15175. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15176. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15177. #endif
  15178. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15179. exit(0);
  15180. # else
  15181. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15182. # error not present
  15183. # endif
  15184. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15185. exit(0);
  15186. # else
  15187. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15188. # error not present
  15189. # endif
  15190. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15191. # error not present
  15192. # endif
  15193. # endif
  15194. # endif
  15195. exit(0);
  15196. ;
  15197. return 0;
  15198. }
  15199. _ACEOF
  15200. if ac_fn_c_try_compile "$LINENO"; then :
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15202. $as_echo "found." >&6; }
  15203. else
  15204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15205. $as_echo "not present." >&6; }
  15206. alsa_found=no
  15207. fi
  15208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15209. ac_ext=c
  15210. ac_cpp='$CPP $CPPFLAGS'
  15211. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15212. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15213. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15214. if test "x$enable_alsatest" = "xyes"; then
  15215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15216. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15217. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15218. $as_echo_n "(cached) " >&6
  15219. else
  15220. ac_check_lib_save_LIBS=$LIBS
  15221. LIBS="-lasound $LIBS"
  15222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15223. /* end confdefs.h. */
  15224. /* Override any GCC internal prototype to avoid an error.
  15225. Use char because int might match the return type of a GCC
  15226. builtin and then its argument prototype would still apply. */
  15227. #ifdef __cplusplus
  15228. extern "C"
  15229. #endif
  15230. char snd_ctl_open ();
  15231. int
  15232. main ()
  15233. {
  15234. return snd_ctl_open ();
  15235. ;
  15236. return 0;
  15237. }
  15238. _ACEOF
  15239. if ac_fn_c_try_link "$LINENO"; then :
  15240. ac_cv_lib_asound_snd_ctl_open=yes
  15241. else
  15242. ac_cv_lib_asound_snd_ctl_open=no
  15243. fi
  15244. rm -f core conftest.err conftest.$ac_objext \
  15245. conftest$ac_exeext conftest.$ac_ext
  15246. LIBS=$ac_check_lib_save_LIBS
  15247. fi
  15248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15249. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15250. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15251. cat >>confdefs.h <<_ACEOF
  15252. #define HAVE_LIBASOUND 1
  15253. _ACEOF
  15254. LIBS="-lasound $LIBS"
  15255. else
  15256. alsa_found=no
  15257. fi
  15258. fi
  15259. if test "x$alsa_found" = "xyes" ; then
  15260. have_alsa=yes
  15261. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15262. LIBS=`echo $LIBS | sed 's/ //'`
  15263. LIBS="-lasound $LIBS"
  15264. fi
  15265. if test "x$alsa_found" = "xno" ; then
  15266. have_alsa=no
  15267. CFLAGS="$alsa_save_CFLAGS"
  15268. LDFLAGS="$alsa_save_LDFLAGS"
  15269. LIBS="$alsa_save_LIBS"
  15270. ALSA_CFLAGS=""
  15271. ALSA_LIBS=""
  15272. fi
  15273. # Restore all flags from before the ALSA detection runs
  15274. CFLAGS="$alsa_save_CFLAGS"
  15275. LDFLAGS="$alsa_save_LDFLAGS"
  15276. LIBS="$alsa_save_LIBS"
  15277. if test x$have_alsa = xyes; then
  15278. # Check whether --enable-alsa-shared was given.
  15279. if test "${enable_alsa_shared+set}" = set; then :
  15280. enableval=$enable_alsa_shared;
  15281. else
  15282. enable_alsa_shared=yes
  15283. fi
  15284. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15285. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15286. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15287. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15288. if test x$have_loadso != xyes && \
  15289. test x$enable_alsa_shared = xyes; then
  15290. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15291. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15292. fi
  15293. if test x$have_loadso = xyes && \
  15294. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15295. echo "-- dynamic libasound -> $alsa_lib"
  15296. cat >>confdefs.h <<_ACEOF
  15297. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15298. _ACEOF
  15299. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15300. else
  15301. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15302. SUMMARY_audio="${SUMMARY_audio} alsa"
  15303. fi
  15304. have_audio=yes
  15305. fi
  15306. fi
  15307. }
  15308. CheckESD()
  15309. {
  15310. # Check whether --enable-esd was given.
  15311. if test "${enable_esd+set}" = set; then :
  15312. enableval=$enable_esd;
  15313. else
  15314. enable_esd=yes
  15315. fi
  15316. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15317. # Check whether --with-esd-prefix was given.
  15318. if test "${with_esd_prefix+set}" = set; then :
  15319. withval=$with_esd_prefix; esd_prefix="$withval"
  15320. else
  15321. esd_prefix=""
  15322. fi
  15323. # Check whether --with-esd-exec-prefix was given.
  15324. if test "${with_esd_exec_prefix+set}" = set; then :
  15325. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15326. else
  15327. esd_exec_prefix=""
  15328. fi
  15329. # Check whether --enable-esdtest was given.
  15330. if test "${enable_esdtest+set}" = set; then :
  15331. enableval=$enable_esdtest;
  15332. else
  15333. enable_esdtest=yes
  15334. fi
  15335. if test x$esd_exec_prefix != x ; then
  15336. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15337. if test x${ESD_CONFIG+set} != xset ; then
  15338. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15339. fi
  15340. fi
  15341. if test x$esd_prefix != x ; then
  15342. esd_args="$esd_args --prefix=$esd_prefix"
  15343. if test x${ESD_CONFIG+set} != xset ; then
  15344. ESD_CONFIG=$esd_prefix/bin/esd-config
  15345. fi
  15346. fi
  15347. # Extract the first word of "esd-config", so it can be a program name with args.
  15348. set dummy esd-config; ac_word=$2
  15349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15350. $as_echo_n "checking for $ac_word... " >&6; }
  15351. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15352. $as_echo_n "(cached) " >&6
  15353. else
  15354. case $ESD_CONFIG in
  15355. [\\/]* | ?:[\\/]*)
  15356. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15357. ;;
  15358. *)
  15359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15360. for as_dir in $PATH
  15361. do
  15362. IFS=$as_save_IFS
  15363. test -z "$as_dir" && as_dir=.
  15364. for ac_exec_ext in '' $ac_executable_extensions; do
  15365. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15366. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15368. break 2
  15369. fi
  15370. done
  15371. done
  15372. IFS=$as_save_IFS
  15373. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15374. ;;
  15375. esac
  15376. fi
  15377. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15378. if test -n "$ESD_CONFIG"; then
  15379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15380. $as_echo "$ESD_CONFIG" >&6; }
  15381. else
  15382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15383. $as_echo "no" >&6; }
  15384. fi
  15385. min_esd_version=0.2.8
  15386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15387. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15388. no_esd=""
  15389. if test "$ESD_CONFIG" = "no" ; then
  15390. no_esd=yes
  15391. else
  15392. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15393. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15394. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15395. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15396. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15397. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15398. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15399. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15400. if test "x$enable_esdtest" = "xyes" ; then
  15401. ac_save_CFLAGS="$CFLAGS"
  15402. ac_save_LIBS="$LIBS"
  15403. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15404. LIBS="$LIBS $ESD_LIBS"
  15405. rm -f conf.esdtest
  15406. if test "$cross_compiling" = yes; then :
  15407. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15408. else
  15409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15410. /* end confdefs.h. */
  15411. #include <stdio.h>
  15412. #include <stdlib.h>
  15413. #include <string.h>
  15414. #include <esd.h>
  15415. char*
  15416. my_strdup (char *str)
  15417. {
  15418. char *new_str;
  15419. if (str)
  15420. {
  15421. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15422. strcpy (new_str, str);
  15423. }
  15424. else
  15425. new_str = NULL;
  15426. return new_str;
  15427. }
  15428. int main ()
  15429. {
  15430. int major, minor, micro;
  15431. char *tmp_version;
  15432. system ("touch conf.esdtest");
  15433. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15434. tmp_version = my_strdup("$min_esd_version");
  15435. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15436. printf("%s, bad version string\n", "$min_esd_version");
  15437. exit(1);
  15438. }
  15439. if (($esd_major_version > major) ||
  15440. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15441. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15442. {
  15443. return 0;
  15444. }
  15445. else
  15446. {
  15447. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15448. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15449. printf("*** best to upgrade to the required version.\n");
  15450. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15451. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15452. printf("*** config.cache before re-running configure\n");
  15453. return 1;
  15454. }
  15455. }
  15456. _ACEOF
  15457. if ac_fn_c_try_run "$LINENO"; then :
  15458. else
  15459. no_esd=yes
  15460. fi
  15461. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15462. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15463. fi
  15464. CFLAGS="$ac_save_CFLAGS"
  15465. LIBS="$ac_save_LIBS"
  15466. fi
  15467. fi
  15468. if test "x$no_esd" = x ; then
  15469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15470. $as_echo "yes" >&6; }
  15471. have_esd=yes
  15472. else
  15473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15474. $as_echo "no" >&6; }
  15475. if test "$ESD_CONFIG" = "no" ; then
  15476. echo "*** The esd-config script installed by ESD could not be found"
  15477. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15478. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15479. echo "*** full path to esd-config."
  15480. else
  15481. if test -f conf.esdtest ; then
  15482. :
  15483. else
  15484. echo "*** Could not run ESD test program, checking why..."
  15485. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15486. LIBS="$LIBS $ESD_LIBS"
  15487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15488. /* end confdefs.h. */
  15489. #include <stdio.h>
  15490. #include <esd.h>
  15491. int
  15492. main ()
  15493. {
  15494. return 0;
  15495. ;
  15496. return 0;
  15497. }
  15498. _ACEOF
  15499. if ac_fn_c_try_link "$LINENO"; then :
  15500. echo "*** The test program compiled, but did not run. This usually means"
  15501. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15502. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15503. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15504. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15505. echo "*** is required on your system"
  15506. echo "***"
  15507. echo "*** If you have an old version installed, it is best to remove it, although"
  15508. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15509. else
  15510. echo "*** The test program failed to compile or link. See the file config.log for the"
  15511. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15512. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15513. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15514. fi
  15515. rm -f core conftest.err conftest.$ac_objext \
  15516. conftest$ac_exeext conftest.$ac_ext
  15517. CFLAGS="$ac_save_CFLAGS"
  15518. LIBS="$ac_save_LIBS"
  15519. fi
  15520. fi
  15521. ESD_CFLAGS=""
  15522. ESD_LIBS=""
  15523. have_esd=no
  15524. fi
  15525. rm -f conf.esdtest
  15526. if test x$have_esd = xyes; then
  15527. # Check whether --enable-esd-shared was given.
  15528. if test "${enable_esd_shared+set}" = set; then :
  15529. enableval=$enable_esd_shared;
  15530. else
  15531. enable_esd_shared=yes
  15532. fi
  15533. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15534. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15535. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15536. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15537. if test x$have_loadso != xyes && \
  15538. test x$enable_esd_shared = xyes; then
  15539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15540. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15541. fi
  15542. if test x$have_loadso = xyes && \
  15543. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15544. echo "-- dynamic libesd -> $esd_lib"
  15545. cat >>confdefs.h <<_ACEOF
  15546. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15547. _ACEOF
  15548. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15549. else
  15550. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15551. SUMMARY_audio="${SUMMARY_audio} esd"
  15552. fi
  15553. have_audio=yes
  15554. fi
  15555. fi
  15556. }
  15557. CheckPulseAudio()
  15558. {
  15559. # Check whether --enable-pulseaudio was given.
  15560. if test "${enable_pulseaudio+set}" = set; then :
  15561. enableval=$enable_pulseaudio;
  15562. else
  15563. enable_pulseaudio=yes
  15564. fi
  15565. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15566. audio_pulseaudio=no
  15567. PULSEAUDIO_REQUIRED_VERSION=0.9
  15568. # Extract the first word of "pkg-config", so it can be a program name with args.
  15569. set dummy pkg-config; ac_word=$2
  15570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15571. $as_echo_n "checking for $ac_word... " >&6; }
  15572. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15573. $as_echo_n "(cached) " >&6
  15574. else
  15575. case $PKG_CONFIG in
  15576. [\\/]* | ?:[\\/]*)
  15577. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15578. ;;
  15579. *)
  15580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15581. for as_dir in $PATH
  15582. do
  15583. IFS=$as_save_IFS
  15584. test -z "$as_dir" && as_dir=.
  15585. for ac_exec_ext in '' $ac_executable_extensions; do
  15586. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15587. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15588. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15589. break 2
  15590. fi
  15591. done
  15592. done
  15593. IFS=$as_save_IFS
  15594. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15595. ;;
  15596. esac
  15597. fi
  15598. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15599. if test -n "$PKG_CONFIG"; then
  15600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15601. $as_echo "$PKG_CONFIG" >&6; }
  15602. else
  15603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15604. $as_echo "no" >&6; }
  15605. fi
  15606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15607. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15608. if test x$PKG_CONFIG != xno; then
  15609. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15610. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15611. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15612. audio_pulseaudio=yes
  15613. fi
  15614. fi
  15615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15616. $as_echo "$audio_pulseaudio" >&6; }
  15617. if test x$audio_pulseaudio = xyes; then
  15618. # Check whether --enable-pulseaudio-shared was given.
  15619. if test "${enable_pulseaudio_shared+set}" = set; then :
  15620. enableval=$enable_pulseaudio_shared;
  15621. else
  15622. enable_pulseaudio_shared=yes
  15623. fi
  15624. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15625. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15626. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15627. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15628. if test x$have_loadso != xyes && \
  15629. test x$enable_pulseaudio_shared = xyes; then
  15630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15631. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15632. fi
  15633. if test x$have_loadso = xyes && \
  15634. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15635. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15636. cat >>confdefs.h <<_ACEOF
  15637. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15638. _ACEOF
  15639. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15640. case "$host" in
  15641. # On Solaris, pulseaudio must be linked deferred explicitly
  15642. # to prevent undefined symbol failures.
  15643. *-*-solaris*)
  15644. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15645. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15646. esac
  15647. else
  15648. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15649. SUMMARY_audio="${SUMMARY_audio} pulse"
  15650. fi
  15651. have_audio=yes
  15652. fi
  15653. fi
  15654. }
  15655. CheckARTSC()
  15656. {
  15657. # Check whether --enable-arts was given.
  15658. if test "${enable_arts+set}" = set; then :
  15659. enableval=$enable_arts;
  15660. else
  15661. enable_arts=yes
  15662. fi
  15663. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15664. # Extract the first word of "artsc-config", so it can be a program name with args.
  15665. set dummy artsc-config; ac_word=$2
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15667. $as_echo_n "checking for $ac_word... " >&6; }
  15668. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15669. $as_echo_n "(cached) " >&6
  15670. else
  15671. case $ARTSCONFIG in
  15672. [\\/]* | ?:[\\/]*)
  15673. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15674. ;;
  15675. *)
  15676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15677. for as_dir in $PATH
  15678. do
  15679. IFS=$as_save_IFS
  15680. test -z "$as_dir" && as_dir=.
  15681. for ac_exec_ext in '' $ac_executable_extensions; do
  15682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15683. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15685. break 2
  15686. fi
  15687. done
  15688. done
  15689. IFS=$as_save_IFS
  15690. ;;
  15691. esac
  15692. fi
  15693. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15694. if test -n "$ARTSCONFIG"; then
  15695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15696. $as_echo "$ARTSCONFIG" >&6; }
  15697. else
  15698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15699. $as_echo "no" >&6; }
  15700. fi
  15701. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15702. : # arts isn't installed
  15703. else
  15704. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15705. ARTS_LIBS=`$ARTSCONFIG --libs`
  15706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15707. $as_echo_n "checking for aRts development environment... " >&6; }
  15708. audio_arts=no
  15709. save_CFLAGS="$CFLAGS"
  15710. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15712. /* end confdefs.h. */
  15713. #include <artsc.h>
  15714. int
  15715. main ()
  15716. {
  15717. arts_stream_t stream;
  15718. ;
  15719. return 0;
  15720. }
  15721. _ACEOF
  15722. if ac_fn_c_try_compile "$LINENO"; then :
  15723. audio_arts=yes
  15724. fi
  15725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15726. CFLAGS="$save_CFLAGS"
  15727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15728. $as_echo "$audio_arts" >&6; }
  15729. if test x$audio_arts = xyes; then
  15730. # Check whether --enable-arts-shared was given.
  15731. if test "${enable_arts_shared+set}" = set; then :
  15732. enableval=$enable_arts_shared;
  15733. else
  15734. enable_arts_shared=yes
  15735. fi
  15736. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15737. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15738. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15739. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15740. if test x$have_loadso != xyes && \
  15741. test x$enable_arts_shared = xyes; then
  15742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15743. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15744. fi
  15745. if test x$have_loadso = xyes && \
  15746. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15747. echo "-- dynamic libartsc -> $arts_lib"
  15748. cat >>confdefs.h <<_ACEOF
  15749. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15750. _ACEOF
  15751. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15752. else
  15753. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15754. SUMMARY_audio="${SUMMARY_audio} arts"
  15755. fi
  15756. have_audio=yes
  15757. fi
  15758. fi
  15759. fi
  15760. }
  15761. CheckNAS()
  15762. {
  15763. # Check whether --enable-nas was given.
  15764. if test "${enable_nas+set}" = set; then :
  15765. enableval=$enable_nas;
  15766. else
  15767. enable_nas=yes
  15768. fi
  15769. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15770. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15771. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15772. have_nas_hdr=yes
  15773. fi
  15774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15775. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15776. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15777. $as_echo_n "(cached) " >&6
  15778. else
  15779. ac_check_lib_save_LIBS=$LIBS
  15780. LIBS="-laudio $LIBS"
  15781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15782. /* end confdefs.h. */
  15783. /* Override any GCC internal prototype to avoid an error.
  15784. Use char because int might match the return type of a GCC
  15785. builtin and then its argument prototype would still apply. */
  15786. #ifdef __cplusplus
  15787. extern "C"
  15788. #endif
  15789. char AuOpenServer ();
  15790. int
  15791. main ()
  15792. {
  15793. return AuOpenServer ();
  15794. ;
  15795. return 0;
  15796. }
  15797. _ACEOF
  15798. if ac_fn_c_try_link "$LINENO"; then :
  15799. ac_cv_lib_audio_AuOpenServer=yes
  15800. else
  15801. ac_cv_lib_audio_AuOpenServer=no
  15802. fi
  15803. rm -f core conftest.err conftest.$ac_objext \
  15804. conftest$ac_exeext conftest.$ac_ext
  15805. LIBS=$ac_check_lib_save_LIBS
  15806. fi
  15807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15808. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15809. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15810. have_nas_lib=yes
  15811. fi
  15812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15813. $as_echo_n "checking for NAS audio support... " >&6; }
  15814. have_nas=no
  15815. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15816. have_nas=yes
  15817. NAS_LIBS="-laudio"
  15818. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15819. have_nas=yes
  15820. NAS_CFLAGS="-I/usr/X11R6/include/"
  15821. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15822. fi
  15823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15824. $as_echo "$have_nas" >&6; }
  15825. if test x$have_nas = xyes; then
  15826. # Check whether --enable-nas-shared was given.
  15827. if test "${enable_nas_shared+set}" = set; then :
  15828. enableval=$enable_nas_shared;
  15829. else
  15830. enable_nas_shared=yes
  15831. fi
  15832. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15833. if test x$have_loadso != xyes && \
  15834. test x$enable_nas_shared = xyes; then
  15835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15836. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15837. fi
  15838. if test x$have_loadso = xyes && \
  15839. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15840. echo "-- dynamic libaudio -> $nas_lib"
  15841. cat >>confdefs.h <<_ACEOF
  15842. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15843. _ACEOF
  15844. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15845. else
  15846. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15847. SUMMARY_audio="${SUMMARY_audio} nas"
  15848. fi
  15849. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15850. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15851. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15852. have_audio=yes
  15853. fi
  15854. fi
  15855. }
  15856. CheckSNDIO()
  15857. {
  15858. # Check whether --enable-sndio was given.
  15859. if test "${enable_sndio+set}" = set; then :
  15860. enableval=$enable_sndio;
  15861. else
  15862. enable_sndio=yes
  15863. fi
  15864. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15865. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15866. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15867. have_sndio_hdr=yes
  15868. fi
  15869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15870. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15871. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15872. $as_echo_n "(cached) " >&6
  15873. else
  15874. ac_check_lib_save_LIBS=$LIBS
  15875. LIBS="-lsndio $LIBS"
  15876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15877. /* end confdefs.h. */
  15878. /* Override any GCC internal prototype to avoid an error.
  15879. Use char because int might match the return type of a GCC
  15880. builtin and then its argument prototype would still apply. */
  15881. #ifdef __cplusplus
  15882. extern "C"
  15883. #endif
  15884. char sio_open ();
  15885. int
  15886. main ()
  15887. {
  15888. return sio_open ();
  15889. ;
  15890. return 0;
  15891. }
  15892. _ACEOF
  15893. if ac_fn_c_try_link "$LINENO"; then :
  15894. ac_cv_lib_sndio_sio_open=yes
  15895. else
  15896. ac_cv_lib_sndio_sio_open=no
  15897. fi
  15898. rm -f core conftest.err conftest.$ac_objext \
  15899. conftest$ac_exeext conftest.$ac_ext
  15900. LIBS=$ac_check_lib_save_LIBS
  15901. fi
  15902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15903. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15904. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15905. have_sndio_lib=yes
  15906. fi
  15907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15908. $as_echo_n "checking for sndio audio support... " >&6; }
  15909. have_sndio=no
  15910. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15911. have_sndio=yes
  15912. SNDIO_LIBS="-lsndio"
  15913. fi
  15914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15915. $as_echo "$have_sndio" >&6; }
  15916. if test x$have_sndio = xyes; then
  15917. # Check whether --enable-sndio-shared was given.
  15918. if test "${enable_sndio_shared+set}" = set; then :
  15919. enableval=$enable_sndio_shared;
  15920. else
  15921. enable_sndio_shared=yes
  15922. fi
  15923. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15924. if test x$have_loadso != xyes && \
  15925. test x$enable_sndio_shared = xyes; then
  15926. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15927. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15928. fi
  15929. if test x$have_loadso = xyes && \
  15930. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15931. echo "-- dynamic libsndio -> $sndio_lib"
  15932. cat >>confdefs.h <<_ACEOF
  15933. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15934. _ACEOF
  15935. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  15936. else
  15937. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15938. SUMMARY_audio="${SUMMARY_audio} sndio"
  15939. fi
  15940. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15941. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15942. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15943. have_audio=yes
  15944. fi
  15945. fi
  15946. }
  15947. CheckFusionSound()
  15948. {
  15949. # Check whether --enable-fusionsound was given.
  15950. if test "${enable_fusionsound+set}" = set; then :
  15951. enableval=$enable_fusionsound;
  15952. else
  15953. enable_fusionsound=no
  15954. fi
  15955. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  15956. fusionsound=no
  15957. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  15958. # Extract the first word of "pkg-config", so it can be a program name with args.
  15959. set dummy pkg-config; ac_word=$2
  15960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15961. $as_echo_n "checking for $ac_word... " >&6; }
  15962. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15963. $as_echo_n "(cached) " >&6
  15964. else
  15965. case $PKG_CONFIG in
  15966. [\\/]* | ?:[\\/]*)
  15967. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15968. ;;
  15969. *)
  15970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15971. for as_dir in $PATH
  15972. do
  15973. IFS=$as_save_IFS
  15974. test -z "$as_dir" && as_dir=.
  15975. for ac_exec_ext in '' $ac_executable_extensions; do
  15976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15977. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15979. break 2
  15980. fi
  15981. done
  15982. done
  15983. IFS=$as_save_IFS
  15984. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15985. ;;
  15986. esac
  15987. fi
  15988. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15989. if test -n "$PKG_CONFIG"; then
  15990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15991. $as_echo "$PKG_CONFIG" >&6; }
  15992. else
  15993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15994. $as_echo "no" >&6; }
  15995. fi
  15996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  15997. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  15998. if test x$PKG_CONFIG != xno; then
  15999. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16000. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16001. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16002. fusionsound=yes
  16003. fi
  16004. fi
  16005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16006. $as_echo "$fusionsound" >&6; }
  16007. if test x$fusionsound = xyes; then
  16008. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16009. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16010. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16011. # Check whether --enable-fusionsound-shared was given.
  16012. if test "${enable_fusionsound_shared+set}" = set; then :
  16013. enableval=$enable_fusionsound_shared;
  16014. else
  16015. enable_fusionsound_shared=yes
  16016. fi
  16017. fusionsound_shared=no
  16018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16019. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16020. if test x$have_loadso != xyes && \
  16021. test x$enable_fusionsound_shared = xyes; then
  16022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16023. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16024. fi
  16025. if test x$have_loadso = xyes && \
  16026. test x$enable_fusionsound_shared = xyes; then
  16027. cat >>confdefs.h <<_ACEOF
  16028. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16029. _ACEOF
  16030. fusionsound_shared=yes
  16031. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16032. else
  16033. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16034. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16035. fi
  16036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16037. $as_echo "$fusionsound_shared" >&6; }
  16038. have_audio=yes
  16039. fi
  16040. fi
  16041. }
  16042. CheckDiskAudio()
  16043. {
  16044. # Check whether --enable-diskaudio was given.
  16045. if test "${enable_diskaudio+set}" = set; then :
  16046. enableval=$enable_diskaudio;
  16047. else
  16048. enable_diskaudio=yes
  16049. fi
  16050. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16051. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16052. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16053. SUMMARY_audio="${SUMMARY_audio} disk"
  16054. fi
  16055. }
  16056. CheckDummyAudio()
  16057. {
  16058. # Check whether --enable-dummyaudio was given.
  16059. if test "${enable_dummyaudio+set}" = set; then :
  16060. enableval=$enable_dummyaudio;
  16061. else
  16062. enable_dummyaudio=yes
  16063. fi
  16064. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16065. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16066. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16067. SUMMARY_audio="${SUMMARY_audio} dummy"
  16068. fi
  16069. }
  16070. CheckLibSampleRate()
  16071. {
  16072. # Check whether --enable-libsamplerate was given.
  16073. if test "${enable_libsamplerate+set}" = set; then :
  16074. enableval=$enable_libsamplerate;
  16075. else
  16076. enable_libsamplerate=yes
  16077. fi
  16078. if test x$enable_libsamplerate = xyes; then
  16079. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16080. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16081. have_samplerate_h_hdr=yes
  16082. else
  16083. have_samplerate_h_hdr=no
  16084. fi
  16085. if test x$have_samplerate_h_hdr = xyes; then
  16086. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16087. # Check whether --enable-libsamplerate-shared was given.
  16088. if test "${enable_libsamplerate_shared+set}" = set; then :
  16089. enableval=$enable_libsamplerate_shared;
  16090. else
  16091. enable_libsamplerate_shared=yes
  16092. fi
  16093. if test x$enable_libsamplerate_shared = xyes; then
  16094. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16095. if test x$samplerate_lib != x; then
  16096. echo "-- dynamic samplerate -> $samplerate_lib"
  16097. cat >>confdefs.h <<_ACEOF
  16098. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16099. _ACEOF
  16100. fi
  16101. fi
  16102. fi
  16103. fi
  16104. }
  16105. CheckVisibilityHidden()
  16106. {
  16107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16108. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16109. have_gcc_fvisibility=no
  16110. visibility_CFLAGS="-fvisibility=hidden"
  16111. save_CFLAGS="$CFLAGS"
  16112. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16114. /* end confdefs.h. */
  16115. #if !defined(__GNUC__) || __GNUC__ < 4
  16116. #error SDL only uses visibility attributes in GCC 4 or newer
  16117. #endif
  16118. int
  16119. main ()
  16120. {
  16121. ;
  16122. return 0;
  16123. }
  16124. _ACEOF
  16125. if ac_fn_c_try_compile "$LINENO"; then :
  16126. have_gcc_fvisibility=yes
  16127. fi
  16128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16130. $as_echo "$have_gcc_fvisibility" >&6; }
  16131. CFLAGS="$save_CFLAGS"
  16132. if test x$have_gcc_fvisibility = xyes; then
  16133. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16134. fi
  16135. }
  16136. CheckStackBoundary()
  16137. {
  16138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16139. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16140. have_gcc_preferred_stack_boundary=no
  16141. save_CFLAGS="$CFLAGS"
  16142. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16144. /* end confdefs.h. */
  16145. int x = 0;
  16146. int
  16147. main ()
  16148. {
  16149. ;
  16150. return 0;
  16151. }
  16152. _ACEOF
  16153. if ac_fn_c_try_compile "$LINENO"; then :
  16154. have_gcc_preferred_stack_boundary=yes
  16155. fi
  16156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16158. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16159. CFLAGS="$save_CFLAGS"
  16160. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16161. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16162. fi
  16163. }
  16164. CheckDeclarationAfterStatement()
  16165. {
  16166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16167. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16168. have_gcc_declaration_after_statement=no
  16169. save_CFLAGS="$CFLAGS"
  16170. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16172. /* end confdefs.h. */
  16173. int x = 0;
  16174. int
  16175. main ()
  16176. {
  16177. ;
  16178. return 0;
  16179. }
  16180. _ACEOF
  16181. if ac_fn_c_try_compile "$LINENO"; then :
  16182. have_gcc_declaration_after_statement=yes
  16183. fi
  16184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16186. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16187. CFLAGS="$save_CFLAGS"
  16188. if test x$have_gcc_declaration_after_statement = xyes; then
  16189. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16190. fi
  16191. }
  16192. CheckWarnAll()
  16193. {
  16194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16195. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16196. have_gcc_Wall=no
  16197. save_CFLAGS="$CFLAGS"
  16198. CFLAGS="$save_CFLAGS -Wall"
  16199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16200. /* end confdefs.h. */
  16201. int x = 0;
  16202. int
  16203. main ()
  16204. {
  16205. ;
  16206. return 0;
  16207. }
  16208. _ACEOF
  16209. if ac_fn_c_try_compile "$LINENO"; then :
  16210. have_gcc_Wall=yes
  16211. fi
  16212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16214. $as_echo "$have_gcc_Wall" >&6; }
  16215. CFLAGS="$save_CFLAGS"
  16216. if test x$have_gcc_Wall = xyes; then
  16217. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16219. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16220. need_gcc_Wno_multichar=no
  16221. case "$host" in
  16222. *-*-haiku*)
  16223. need_gcc_Wno_multichar=yes
  16224. ;;
  16225. esac
  16226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16227. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16228. if test x$need_gcc_Wno_multichar = xyes; then
  16229. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16230. fi
  16231. fi
  16232. }
  16233. CheckWayland()
  16234. {
  16235. # Check whether --enable-video-wayland was given.
  16236. if test "${enable_video_wayland+set}" = set; then :
  16237. enableval=$enable_video_wayland;
  16238. else
  16239. enable_video_wayland=yes
  16240. fi
  16241. # Check whether --enable-video-wayland-qt-touch was given.
  16242. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16243. enableval=$enable_video_wayland_qt_touch;
  16244. else
  16245. enable_video_wayland_qt_touch=yes
  16246. fi
  16247. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16248. # Extract the first word of "pkg-config", so it can be a program name with args.
  16249. set dummy pkg-config; ac_word=$2
  16250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16251. $as_echo_n "checking for $ac_word... " >&6; }
  16252. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16253. $as_echo_n "(cached) " >&6
  16254. else
  16255. case $PKG_CONFIG in
  16256. [\\/]* | ?:[\\/]*)
  16257. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16258. ;;
  16259. *)
  16260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16261. for as_dir in $PATH
  16262. do
  16263. IFS=$as_save_IFS
  16264. test -z "$as_dir" && as_dir=.
  16265. for ac_exec_ext in '' $ac_executable_extensions; do
  16266. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16267. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16268. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16269. break 2
  16270. fi
  16271. done
  16272. done
  16273. IFS=$as_save_IFS
  16274. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16275. ;;
  16276. esac
  16277. fi
  16278. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16279. if test -n "$PKG_CONFIG"; then
  16280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16281. $as_echo "$PKG_CONFIG" >&6; }
  16282. else
  16283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16284. $as_echo "no" >&6; }
  16285. fi
  16286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16287. $as_echo_n "checking for Wayland support... " >&6; }
  16288. video_wayland=no
  16289. if test x$PKG_CONFIG != xno && \
  16290. test x$video_opengl_egl = xyes && \
  16291. test x$video_opengles_v2 = xyes; then
  16292. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16293. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16294. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16295. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16296. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16297. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16298. video_wayland=yes
  16299. fi
  16300. fi
  16301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16302. $as_echo "$video_wayland" >&6; }
  16303. if test x$video_wayland = xyes; then
  16304. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16305. if test x$enable_video_wayland_qt_touch = xyes; then
  16306. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16307. fi
  16308. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
  16309. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16310. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16311. # Check whether --enable-wayland-shared was given.
  16312. if test "${enable_wayland_shared+set}" = set; then :
  16313. enableval=$enable_wayland_shared;
  16314. else
  16315. enable_wayland_shared=maybe
  16316. fi
  16317. case "$host" in
  16318. *)
  16319. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16320. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16321. if test x$wayland_egl_lib = x; then
  16322. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16323. fi
  16324. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16325. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16326. ;;
  16327. esac
  16328. if test x$enable_wayland_shared = xmaybe; then
  16329. enable_wayland_shared=yes
  16330. fi
  16331. if test x$have_loadso != xyes && \
  16332. test x$enable_wayland_shared = xyes; then
  16333. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16334. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16335. enable_wayland_shared=no
  16336. fi
  16337. if test x$have_loadso = xyes && \
  16338. test x$enable_wayland_shared = xyes && \
  16339. test x$wayland_client_lib != x && \
  16340. test x$wayland_egl_lib != x && \
  16341. test x$wayland_cursor_lib != x && \
  16342. test x$xkbcommon_lib != x; then
  16343. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16344. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16345. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16346. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16347. cat >>confdefs.h <<_ACEOF
  16348. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16349. _ACEOF
  16350. cat >>confdefs.h <<_ACEOF
  16351. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16352. _ACEOF
  16353. cat >>confdefs.h <<_ACEOF
  16354. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16355. _ACEOF
  16356. cat >>confdefs.h <<_ACEOF
  16357. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16358. _ACEOF
  16359. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16360. else
  16361. enable_wayland_shared=no
  16362. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16363. SUMMARY_video="${SUMMARY_video} wayland"
  16364. fi
  16365. have_video=yes
  16366. fi
  16367. fi
  16368. }
  16369. CheckMir()
  16370. {
  16371. # Check whether --enable-video-mir was given.
  16372. if test "${enable_video_mir+set}" = set; then :
  16373. enableval=$enable_video_mir;
  16374. else
  16375. enable_video_mir=yes
  16376. fi
  16377. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16378. # Extract the first word of "pkg-config", so it can be a program name with args.
  16379. set dummy pkg-config; ac_word=$2
  16380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16381. $as_echo_n "checking for $ac_word... " >&6; }
  16382. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16383. $as_echo_n "(cached) " >&6
  16384. else
  16385. case $PKG_CONFIG in
  16386. [\\/]* | ?:[\\/]*)
  16387. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16388. ;;
  16389. *)
  16390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16391. for as_dir in $PATH
  16392. do
  16393. IFS=$as_save_IFS
  16394. test -z "$as_dir" && as_dir=.
  16395. for ac_exec_ext in '' $ac_executable_extensions; do
  16396. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16397. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16399. break 2
  16400. fi
  16401. done
  16402. done
  16403. IFS=$as_save_IFS
  16404. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16405. ;;
  16406. esac
  16407. fi
  16408. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16409. if test -n "$PKG_CONFIG"; then
  16410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16411. $as_echo "$PKG_CONFIG" >&6; }
  16412. else
  16413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16414. $as_echo "no" >&6; }
  16415. fi
  16416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16417. $as_echo_n "checking for Mir support... " >&6; }
  16418. video_mir=no
  16419. if test x$PKG_CONFIG != xno; then
  16420. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16421. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16422. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16423. save_CFLAGS="$CFLAGS"
  16424. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16426. /* end confdefs.h. */
  16427. #include <mir_toolkit/mir_client_library.h>
  16428. int
  16429. main ()
  16430. {
  16431. MirTouchAction actions = mir_touch_actions
  16432. ;
  16433. return 0;
  16434. }
  16435. _ACEOF
  16436. if ac_fn_c_try_compile "$LINENO"; then :
  16437. video_mir=yes
  16438. fi
  16439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16440. CFLAGS="$save_CFLAGS"
  16441. fi
  16442. fi
  16443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16444. $as_echo "$video_mir" >&6; }
  16445. if test x$video_mir = xyes; then
  16446. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16447. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16448. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16449. # Check whether --enable-mir-shared was given.
  16450. if test "${enable_mir_shared+set}" = set; then :
  16451. enableval=$enable_mir_shared;
  16452. else
  16453. enable_mir_shared=maybe
  16454. fi
  16455. case "$host" in
  16456. *)
  16457. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16458. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16459. ;;
  16460. esac
  16461. if test x$enable_mir_shared = xmaybe; then
  16462. enable_mir_shared=yes
  16463. fi
  16464. if test x$have_loadso != xyes && \
  16465. test x$enable_mir_shared = xyes; then
  16466. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16467. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16468. enable_mir_shared=no
  16469. fi
  16470. if test x$have_loadso = xyes && \
  16471. test x$enable_mir_shared = xyes && \
  16472. test x$mirclient_lib != x && \
  16473. test x$xkbcommon_lib != x; then
  16474. echo "-- dynamic libmirclient -> $mirclient_lib"
  16475. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16476. cat >>confdefs.h <<_ACEOF
  16477. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16478. _ACEOF
  16479. cat >>confdefs.h <<_ACEOF
  16480. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16481. _ACEOF
  16482. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16483. else
  16484. enable_mir_shared=no
  16485. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16486. SUMMARY_video="${SUMMARY_video} mir"
  16487. fi
  16488. have_video=yes
  16489. fi
  16490. fi
  16491. }
  16492. CheckNativeClient()
  16493. {
  16494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16495. /* end confdefs.h. */
  16496. #if !defined(__native_client__)
  16497. #error "NO NACL"
  16498. #endif
  16499. int
  16500. main ()
  16501. {
  16502. ;
  16503. return 0;
  16504. }
  16505. _ACEOF
  16506. if ac_fn_c_try_compile "$LINENO"; then :
  16507. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16508. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16509. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16510. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16511. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16512. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16513. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16514. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16515. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16516. SUMMARY_audio="${SUMMARY_audio} nacl"
  16517. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16518. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16519. fi
  16520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16521. }
  16522. CheckX11()
  16523. {
  16524. # Check whether --enable-video-x11 was given.
  16525. if test "${enable_video_x11+set}" = set; then :
  16526. enableval=$enable_video_x11;
  16527. else
  16528. enable_video_x11=yes
  16529. fi
  16530. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16531. case "$host" in
  16532. *-*-darwin*)
  16533. # This isn't necessary for X11, but fixes GLX detection
  16534. if test "x$x_includes" = xNONE && \
  16535. test "x$x_libraries" = xNONE && \
  16536. test -d /usr/X11R6/include && \
  16537. test -d /usr/X11R6/lib; then
  16538. x_includes="/usr/X11R6/include"
  16539. x_libraries="/usr/X11R6/lib"
  16540. fi
  16541. ;;
  16542. esac
  16543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16544. $as_echo_n "checking for X... " >&6; }
  16545. # Check whether --with-x was given.
  16546. if test "${with_x+set}" = set; then :
  16547. withval=$with_x;
  16548. fi
  16549. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16550. if test "x$with_x" = xno; then
  16551. # The user explicitly disabled X.
  16552. have_x=disabled
  16553. else
  16554. case $x_includes,$x_libraries in #(
  16555. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16556. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16557. $as_echo_n "(cached) " >&6
  16558. else
  16559. # One or both of the vars are not set, and there is no cached value.
  16560. ac_x_includes=no ac_x_libraries=no
  16561. rm -f -r conftest.dir
  16562. if mkdir conftest.dir; then
  16563. cd conftest.dir
  16564. cat >Imakefile <<'_ACEOF'
  16565. incroot:
  16566. @echo incroot='${INCROOT}'
  16567. usrlibdir:
  16568. @echo usrlibdir='${USRLIBDIR}'
  16569. libdir:
  16570. @echo libdir='${LIBDIR}'
  16571. _ACEOF
  16572. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16573. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16574. for ac_var in incroot usrlibdir libdir; do
  16575. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16576. done
  16577. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16578. for ac_extension in a so sl dylib la dll; do
  16579. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16580. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16581. ac_im_usrlibdir=$ac_im_libdir; break
  16582. fi
  16583. done
  16584. # Screen out bogus values from the imake configuration. They are
  16585. # bogus both because they are the default anyway, and because
  16586. # using them would break gcc on systems where it needs fixed includes.
  16587. case $ac_im_incroot in
  16588. /usr/include) ac_x_includes= ;;
  16589. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16590. esac
  16591. case $ac_im_usrlibdir in
  16592. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16593. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16594. esac
  16595. fi
  16596. cd ..
  16597. rm -f -r conftest.dir
  16598. fi
  16599. # Standard set of common directories for X headers.
  16600. # Check X11 before X11Rn because it is often a symlink to the current release.
  16601. ac_x_header_dirs='
  16602. /usr/X11/include
  16603. /usr/X11R7/include
  16604. /usr/X11R6/include
  16605. /usr/X11R5/include
  16606. /usr/X11R4/include
  16607. /usr/include/X11
  16608. /usr/include/X11R7
  16609. /usr/include/X11R6
  16610. /usr/include/X11R5
  16611. /usr/include/X11R4
  16612. /usr/local/X11/include
  16613. /usr/local/X11R7/include
  16614. /usr/local/X11R6/include
  16615. /usr/local/X11R5/include
  16616. /usr/local/X11R4/include
  16617. /usr/local/include/X11
  16618. /usr/local/include/X11R7
  16619. /usr/local/include/X11R6
  16620. /usr/local/include/X11R5
  16621. /usr/local/include/X11R4
  16622. /usr/X386/include
  16623. /usr/x386/include
  16624. /usr/XFree86/include/X11
  16625. /usr/include
  16626. /usr/local/include
  16627. /usr/unsupported/include
  16628. /usr/athena/include
  16629. /usr/local/x11r5/include
  16630. /usr/lpp/Xamples/include
  16631. /usr/openwin/include
  16632. /usr/openwin/share/include'
  16633. if test "$ac_x_includes" = no; then
  16634. # Guess where to find include files, by looking for Xlib.h.
  16635. # First, try using that file with no special directory specified.
  16636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16637. /* end confdefs.h. */
  16638. #include <X11/Xlib.h>
  16639. _ACEOF
  16640. if ac_fn_c_try_cpp "$LINENO"; then :
  16641. # We can compile using X headers with no special include directory.
  16642. ac_x_includes=
  16643. else
  16644. for ac_dir in $ac_x_header_dirs; do
  16645. if test -r "$ac_dir/X11/Xlib.h"; then
  16646. ac_x_includes=$ac_dir
  16647. break
  16648. fi
  16649. done
  16650. fi
  16651. rm -f conftest.err conftest.i conftest.$ac_ext
  16652. fi # $ac_x_includes = no
  16653. if test "$ac_x_libraries" = no; then
  16654. # Check for the libraries.
  16655. # See if we find them without any special options.
  16656. # Don't add to $LIBS permanently.
  16657. ac_save_LIBS=$LIBS
  16658. LIBS="-lX11 $LIBS"
  16659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16660. /* end confdefs.h. */
  16661. #include <X11/Xlib.h>
  16662. int
  16663. main ()
  16664. {
  16665. XrmInitialize ()
  16666. ;
  16667. return 0;
  16668. }
  16669. _ACEOF
  16670. if ac_fn_c_try_link "$LINENO"; then :
  16671. LIBS=$ac_save_LIBS
  16672. # We can link X programs with no special library path.
  16673. ac_x_libraries=
  16674. else
  16675. LIBS=$ac_save_LIBS
  16676. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16677. do
  16678. # Don't even attempt the hair of trying to link an X program!
  16679. for ac_extension in a so sl dylib la dll; do
  16680. if test -r "$ac_dir/libX11.$ac_extension"; then
  16681. ac_x_libraries=$ac_dir
  16682. break 2
  16683. fi
  16684. done
  16685. done
  16686. fi
  16687. rm -f core conftest.err conftest.$ac_objext \
  16688. conftest$ac_exeext conftest.$ac_ext
  16689. fi # $ac_x_libraries = no
  16690. case $ac_x_includes,$ac_x_libraries in #(
  16691. no,* | *,no | *\'*)
  16692. # Didn't find X, or a directory has "'" in its name.
  16693. ac_cv_have_x="have_x=no";; #(
  16694. *)
  16695. # Record where we found X for the cache.
  16696. ac_cv_have_x="have_x=yes\
  16697. ac_x_includes='$ac_x_includes'\
  16698. ac_x_libraries='$ac_x_libraries'"
  16699. esac
  16700. fi
  16701. ;; #(
  16702. *) have_x=yes;;
  16703. esac
  16704. eval "$ac_cv_have_x"
  16705. fi # $with_x != no
  16706. if test "$have_x" != yes; then
  16707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16708. $as_echo "$have_x" >&6; }
  16709. no_x=yes
  16710. else
  16711. # If each of the values was on the command line, it overrides each guess.
  16712. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16713. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16714. # Update the cache value to reflect the command line values.
  16715. ac_cv_have_x="have_x=yes\
  16716. ac_x_includes='$x_includes'\
  16717. ac_x_libraries='$x_libraries'"
  16718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16719. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16720. fi
  16721. if test "$no_x" = yes; then
  16722. # Not all programs may use this symbol, but it does not hurt to define it.
  16723. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16724. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16725. else
  16726. if test -n "$x_includes"; then
  16727. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16728. fi
  16729. # It would also be nice to do this for all -L options, not just this one.
  16730. if test -n "$x_libraries"; then
  16731. X_LIBS="$X_LIBS -L$x_libraries"
  16732. # For Solaris; some versions of Sun CC require a space after -R and
  16733. # others require no space. Words are not sufficient . . . .
  16734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16735. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16736. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16737. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16738. ac_c_werror_flag=yes
  16739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16740. /* end confdefs.h. */
  16741. int
  16742. main ()
  16743. {
  16744. ;
  16745. return 0;
  16746. }
  16747. _ACEOF
  16748. if ac_fn_c_try_link "$LINENO"; then :
  16749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16750. $as_echo "no" >&6; }
  16751. X_LIBS="$X_LIBS -R$x_libraries"
  16752. else
  16753. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16755. /* end confdefs.h. */
  16756. int
  16757. main ()
  16758. {
  16759. ;
  16760. return 0;
  16761. }
  16762. _ACEOF
  16763. if ac_fn_c_try_link "$LINENO"; then :
  16764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16765. $as_echo "yes" >&6; }
  16766. X_LIBS="$X_LIBS -R $x_libraries"
  16767. else
  16768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16769. $as_echo "neither works" >&6; }
  16770. fi
  16771. rm -f core conftest.err conftest.$ac_objext \
  16772. conftest$ac_exeext conftest.$ac_ext
  16773. fi
  16774. rm -f core conftest.err conftest.$ac_objext \
  16775. conftest$ac_exeext conftest.$ac_ext
  16776. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16777. LIBS=$ac_xsave_LIBS
  16778. fi
  16779. # Check for system-dependent libraries X programs must link with.
  16780. # Do this before checking for the system-independent R6 libraries
  16781. # (-lICE), since we may need -lsocket or whatever for X linking.
  16782. if test "$ISC" = yes; then
  16783. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16784. else
  16785. # Martyn Johnson says this is needed for Ultrix, if the X
  16786. # libraries were built with DECnet support. And Karl Berry says
  16787. # the Alpha needs dnet_stub (dnet does not exist).
  16788. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16790. /* end confdefs.h. */
  16791. /* Override any GCC internal prototype to avoid an error.
  16792. Use char because int might match the return type of a GCC
  16793. builtin and then its argument prototype would still apply. */
  16794. #ifdef __cplusplus
  16795. extern "C"
  16796. #endif
  16797. char XOpenDisplay ();
  16798. int
  16799. main ()
  16800. {
  16801. return XOpenDisplay ();
  16802. ;
  16803. return 0;
  16804. }
  16805. _ACEOF
  16806. if ac_fn_c_try_link "$LINENO"; then :
  16807. else
  16808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16809. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16810. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16811. $as_echo_n "(cached) " >&6
  16812. else
  16813. ac_check_lib_save_LIBS=$LIBS
  16814. LIBS="-ldnet $LIBS"
  16815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16816. /* end confdefs.h. */
  16817. /* Override any GCC internal prototype to avoid an error.
  16818. Use char because int might match the return type of a GCC
  16819. builtin and then its argument prototype would still apply. */
  16820. #ifdef __cplusplus
  16821. extern "C"
  16822. #endif
  16823. char dnet_ntoa ();
  16824. int
  16825. main ()
  16826. {
  16827. return dnet_ntoa ();
  16828. ;
  16829. return 0;
  16830. }
  16831. _ACEOF
  16832. if ac_fn_c_try_link "$LINENO"; then :
  16833. ac_cv_lib_dnet_dnet_ntoa=yes
  16834. else
  16835. ac_cv_lib_dnet_dnet_ntoa=no
  16836. fi
  16837. rm -f core conftest.err conftest.$ac_objext \
  16838. conftest$ac_exeext conftest.$ac_ext
  16839. LIBS=$ac_check_lib_save_LIBS
  16840. fi
  16841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16842. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16843. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16844. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16845. fi
  16846. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16848. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16849. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16850. $as_echo_n "(cached) " >&6
  16851. else
  16852. ac_check_lib_save_LIBS=$LIBS
  16853. LIBS="-ldnet_stub $LIBS"
  16854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16855. /* end confdefs.h. */
  16856. /* Override any GCC internal prototype to avoid an error.
  16857. Use char because int might match the return type of a GCC
  16858. builtin and then its argument prototype would still apply. */
  16859. #ifdef __cplusplus
  16860. extern "C"
  16861. #endif
  16862. char dnet_ntoa ();
  16863. int
  16864. main ()
  16865. {
  16866. return dnet_ntoa ();
  16867. ;
  16868. return 0;
  16869. }
  16870. _ACEOF
  16871. if ac_fn_c_try_link "$LINENO"; then :
  16872. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16873. else
  16874. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16875. fi
  16876. rm -f core conftest.err conftest.$ac_objext \
  16877. conftest$ac_exeext conftest.$ac_ext
  16878. LIBS=$ac_check_lib_save_LIBS
  16879. fi
  16880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16881. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16882. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16883. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16884. fi
  16885. fi
  16886. fi
  16887. rm -f core conftest.err conftest.$ac_objext \
  16888. conftest$ac_exeext conftest.$ac_ext
  16889. LIBS="$ac_xsave_LIBS"
  16890. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16891. # to get the SysV transport functions.
  16892. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16893. # needs -lnsl.
  16894. # The nsl library prevents programs from opening the X display
  16895. # on Irix 5.2, according to T.E. Dickey.
  16896. # The functions gethostbyname, getservbyname, and inet_addr are
  16897. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16898. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16899. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16900. fi
  16901. if test $ac_cv_func_gethostbyname = no; then
  16902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16903. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16904. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16905. $as_echo_n "(cached) " >&6
  16906. else
  16907. ac_check_lib_save_LIBS=$LIBS
  16908. LIBS="-lnsl $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 gethostbyname ();
  16918. int
  16919. main ()
  16920. {
  16921. return gethostbyname ();
  16922. ;
  16923. return 0;
  16924. }
  16925. _ACEOF
  16926. if ac_fn_c_try_link "$LINENO"; then :
  16927. ac_cv_lib_nsl_gethostbyname=yes
  16928. else
  16929. ac_cv_lib_nsl_gethostbyname=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_nsl_gethostbyname" >&5
  16936. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16937. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16938. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16939. fi
  16940. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16942. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16943. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16944. $as_echo_n "(cached) " >&6
  16945. else
  16946. ac_check_lib_save_LIBS=$LIBS
  16947. LIBS="-lbsd $LIBS"
  16948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16949. /* end confdefs.h. */
  16950. /* Override any GCC internal prototype to avoid an error.
  16951. Use char because int might match the return type of a GCC
  16952. builtin and then its argument prototype would still apply. */
  16953. #ifdef __cplusplus
  16954. extern "C"
  16955. #endif
  16956. char gethostbyname ();
  16957. int
  16958. main ()
  16959. {
  16960. return gethostbyname ();
  16961. ;
  16962. return 0;
  16963. }
  16964. _ACEOF
  16965. if ac_fn_c_try_link "$LINENO"; then :
  16966. ac_cv_lib_bsd_gethostbyname=yes
  16967. else
  16968. ac_cv_lib_bsd_gethostbyname=no
  16969. fi
  16970. rm -f core conftest.err conftest.$ac_objext \
  16971. conftest$ac_exeext conftest.$ac_ext
  16972. LIBS=$ac_check_lib_save_LIBS
  16973. fi
  16974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16975. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16976. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16977. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16978. fi
  16979. fi
  16980. fi
  16981. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16982. # socket/setsockopt and other routines are undefined under SCO ODT
  16983. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16984. # on later versions), says Simon Leinen: it contains gethostby*
  16985. # variants that don't use the name server (or something). -lsocket
  16986. # must be given before -lnsl if both are needed. We assume that
  16987. # if connect needs -lnsl, so does gethostbyname.
  16988. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16989. if test "x$ac_cv_func_connect" = xyes; then :
  16990. fi
  16991. if test $ac_cv_func_connect = no; then
  16992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16993. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16994. if ${ac_cv_lib_socket_connect+:} false; then :
  16995. $as_echo_n "(cached) " >&6
  16996. else
  16997. ac_check_lib_save_LIBS=$LIBS
  16998. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17000. /* end confdefs.h. */
  17001. /* Override any GCC internal prototype to avoid an error.
  17002. Use char because int might match the return type of a GCC
  17003. builtin and then its argument prototype would still apply. */
  17004. #ifdef __cplusplus
  17005. extern "C"
  17006. #endif
  17007. char connect ();
  17008. int
  17009. main ()
  17010. {
  17011. return connect ();
  17012. ;
  17013. return 0;
  17014. }
  17015. _ACEOF
  17016. if ac_fn_c_try_link "$LINENO"; then :
  17017. ac_cv_lib_socket_connect=yes
  17018. else
  17019. ac_cv_lib_socket_connect=no
  17020. fi
  17021. rm -f core conftest.err conftest.$ac_objext \
  17022. conftest$ac_exeext conftest.$ac_ext
  17023. LIBS=$ac_check_lib_save_LIBS
  17024. fi
  17025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17026. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17027. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17028. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17029. fi
  17030. fi
  17031. # Guillermo Gomez says -lposix is necessary on A/UX.
  17032. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17033. if test "x$ac_cv_func_remove" = xyes; then :
  17034. fi
  17035. if test $ac_cv_func_remove = no; then
  17036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17037. $as_echo_n "checking for remove in -lposix... " >&6; }
  17038. if ${ac_cv_lib_posix_remove+:} false; then :
  17039. $as_echo_n "(cached) " >&6
  17040. else
  17041. ac_check_lib_save_LIBS=$LIBS
  17042. LIBS="-lposix $LIBS"
  17043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17044. /* end confdefs.h. */
  17045. /* Override any GCC internal prototype to avoid an error.
  17046. Use char because int might match the return type of a GCC
  17047. builtin and then its argument prototype would still apply. */
  17048. #ifdef __cplusplus
  17049. extern "C"
  17050. #endif
  17051. char remove ();
  17052. int
  17053. main ()
  17054. {
  17055. return remove ();
  17056. ;
  17057. return 0;
  17058. }
  17059. _ACEOF
  17060. if ac_fn_c_try_link "$LINENO"; then :
  17061. ac_cv_lib_posix_remove=yes
  17062. else
  17063. ac_cv_lib_posix_remove=no
  17064. fi
  17065. rm -f core conftest.err conftest.$ac_objext \
  17066. conftest$ac_exeext conftest.$ac_ext
  17067. LIBS=$ac_check_lib_save_LIBS
  17068. fi
  17069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17070. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17071. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17072. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17073. fi
  17074. fi
  17075. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17076. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17077. if test "x$ac_cv_func_shmat" = xyes; then :
  17078. fi
  17079. if test $ac_cv_func_shmat = no; then
  17080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17081. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17082. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17083. $as_echo_n "(cached) " >&6
  17084. else
  17085. ac_check_lib_save_LIBS=$LIBS
  17086. LIBS="-lipc $LIBS"
  17087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17088. /* end confdefs.h. */
  17089. /* Override any GCC internal prototype to avoid an error.
  17090. Use char because int might match the return type of a GCC
  17091. builtin and then its argument prototype would still apply. */
  17092. #ifdef __cplusplus
  17093. extern "C"
  17094. #endif
  17095. char shmat ();
  17096. int
  17097. main ()
  17098. {
  17099. return shmat ();
  17100. ;
  17101. return 0;
  17102. }
  17103. _ACEOF
  17104. if ac_fn_c_try_link "$LINENO"; then :
  17105. ac_cv_lib_ipc_shmat=yes
  17106. else
  17107. ac_cv_lib_ipc_shmat=no
  17108. fi
  17109. rm -f core conftest.err conftest.$ac_objext \
  17110. conftest$ac_exeext conftest.$ac_ext
  17111. LIBS=$ac_check_lib_save_LIBS
  17112. fi
  17113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17114. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17115. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17116. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17117. fi
  17118. fi
  17119. fi
  17120. # Check for libraries that X11R6 Xt/Xaw programs need.
  17121. ac_save_LDFLAGS=$LDFLAGS
  17122. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17123. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17124. # check for ICE first), but we must link in the order -lSM -lICE or
  17125. # we get undefined symbols. So assume we have SM if we have ICE.
  17126. # These have to be linked with before -lX11, unlike the other
  17127. # libraries we check for below, so use a different variable.
  17128. # John Interrante, Karl Berry
  17129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17130. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17131. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17132. $as_echo_n "(cached) " >&6
  17133. else
  17134. ac_check_lib_save_LIBS=$LIBS
  17135. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17137. /* end confdefs.h. */
  17138. /* Override any GCC internal prototype to avoid an error.
  17139. Use char because int might match the return type of a GCC
  17140. builtin and then its argument prototype would still apply. */
  17141. #ifdef __cplusplus
  17142. extern "C"
  17143. #endif
  17144. char IceConnectionNumber ();
  17145. int
  17146. main ()
  17147. {
  17148. return IceConnectionNumber ();
  17149. ;
  17150. return 0;
  17151. }
  17152. _ACEOF
  17153. if ac_fn_c_try_link "$LINENO"; then :
  17154. ac_cv_lib_ICE_IceConnectionNumber=yes
  17155. else
  17156. ac_cv_lib_ICE_IceConnectionNumber=no
  17157. fi
  17158. rm -f core conftest.err conftest.$ac_objext \
  17159. conftest$ac_exeext conftest.$ac_ext
  17160. LIBS=$ac_check_lib_save_LIBS
  17161. fi
  17162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17163. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17164. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17165. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17166. fi
  17167. LDFLAGS=$ac_save_LDFLAGS
  17168. fi
  17169. if test x$have_x = xyes; then
  17170. # Check whether --enable-x11-shared was given.
  17171. if test "${enable_x11_shared+set}" = set; then :
  17172. enableval=$enable_x11_shared;
  17173. else
  17174. enable_x11_shared=maybe
  17175. fi
  17176. case "$host" in
  17177. *-*-darwin*)
  17178. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17179. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17180. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17181. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17182. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17183. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17184. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17185. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17186. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17187. ;;
  17188. *-*-openbsd*)
  17189. x11_lib='libX11.so'
  17190. x11ext_lib='libXext.so'
  17191. xcursor_lib='libXcursor.so'
  17192. xinerama_lib='libXinerama.so'
  17193. xinput_lib='libXi.so'
  17194. xrandr_lib='libXrandr.so'
  17195. xrender_lib='libXrender.so'
  17196. xss_lib='libXss.so'
  17197. xvidmode_lib='libXxf86vm.so'
  17198. ;;
  17199. *)
  17200. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17201. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17202. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17203. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17204. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17205. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17206. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17207. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17208. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17209. ;;
  17210. esac
  17211. if test x$ac_cv_func_shmat != xyes; then
  17212. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17213. fi
  17214. CFLAGS="$CFLAGS $X_CFLAGS"
  17215. LDFLAGS="$LDFLAGS $X_LIBS"
  17216. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17217. #include <X11/Xproto.h>
  17218. "
  17219. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17220. have_xext_h_hdr=yes
  17221. else
  17222. have_xext_h_hdr=no
  17223. fi
  17224. if test x$have_xext_h_hdr != xyes; then
  17225. as_fn_error $? "
  17226. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17227. " "$LINENO" 5
  17228. fi
  17229. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17230. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17231. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17232. # Needed so SDL applications can include SDL_syswm.h
  17233. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17234. if test x$enable_x11_shared = xmaybe; then
  17235. enable_x11_shared=yes
  17236. fi
  17237. if test x$have_loadso != xyes && \
  17238. test x$enable_x11_shared = xyes; then
  17239. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17240. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17241. enable_x11_shared=no
  17242. fi
  17243. if test x$have_loadso = xyes && \
  17244. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17245. echo "-- dynamic libX11 -> $x11_lib"
  17246. echo "-- dynamic libX11ext -> $x11ext_lib"
  17247. cat >>confdefs.h <<_ACEOF
  17248. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17249. _ACEOF
  17250. cat >>confdefs.h <<_ACEOF
  17251. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17252. _ACEOF
  17253. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17254. else
  17255. enable_x11_shared=no
  17256. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17257. SUMMARY_video="${SUMMARY_video} x11"
  17258. fi
  17259. have_video=yes
  17260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17261. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17262. have_const_param_XextAddDisplay=no
  17263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17264. /* end confdefs.h. */
  17265. #include <X11/Xlib.h>
  17266. #include <X11/Xproto.h>
  17267. #include <X11/extensions/Xext.h>
  17268. #include <X11/extensions/extutil.h>
  17269. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17270. int
  17271. main ()
  17272. {
  17273. ;
  17274. return 0;
  17275. }
  17276. _ACEOF
  17277. if ac_fn_c_try_compile "$LINENO"; then :
  17278. have_const_param_XextAddDisplay=yes
  17279. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17280. fi
  17281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17283. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17285. $as_echo_n "checking for XGenericEvent... " >&6; }
  17286. have_XGenericEvent=no
  17287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17288. /* end confdefs.h. */
  17289. #include <X11/Xlib.h>
  17290. int
  17291. main ()
  17292. {
  17293. Display *display;
  17294. XEvent event;
  17295. XGenericEventCookie *cookie = &event.xcookie;
  17296. XNextEvent(display, &event);
  17297. XGetEventData(display, cookie);
  17298. XFreeEventData(display, cookie);
  17299. ;
  17300. return 0;
  17301. }
  17302. _ACEOF
  17303. if ac_fn_c_try_compile "$LINENO"; then :
  17304. have_XGenericEvent=yes
  17305. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17306. fi
  17307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17309. $as_echo "$have_XGenericEvent" >&6; }
  17310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17311. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17312. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17313. $as_echo_n "(cached) " >&6
  17314. else
  17315. ac_check_lib_save_LIBS=$LIBS
  17316. LIBS="-lX11 $LIBS"
  17317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17318. /* end confdefs.h. */
  17319. /* Override any GCC internal prototype to avoid an error.
  17320. Use char because int might match the return type of a GCC
  17321. builtin and then its argument prototype would still apply. */
  17322. #ifdef __cplusplus
  17323. extern "C"
  17324. #endif
  17325. char XkbKeycodeToKeysym ();
  17326. int
  17327. main ()
  17328. {
  17329. return XkbKeycodeToKeysym ();
  17330. ;
  17331. return 0;
  17332. }
  17333. _ACEOF
  17334. if ac_fn_c_try_link "$LINENO"; then :
  17335. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17336. else
  17337. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17338. fi
  17339. rm -f core conftest.err conftest.$ac_objext \
  17340. conftest$ac_exeext conftest.$ac_ext
  17341. LIBS=$ac_check_lib_save_LIBS
  17342. fi
  17343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17344. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17345. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17346. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17347. fi
  17348. # Check whether --enable-video-x11-xcursor was given.
  17349. if test "${enable_video_x11_xcursor+set}" = set; then :
  17350. enableval=$enable_video_x11_xcursor;
  17351. else
  17352. enable_video_x11_xcursor=yes
  17353. fi
  17354. if test x$enable_video_x11_xcursor = xyes; then
  17355. definitely_enable_video_x11_xcursor=no
  17356. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17357. "
  17358. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17359. have_xcursor_h_hdr=yes
  17360. else
  17361. have_xcursor_h_hdr=no
  17362. fi
  17363. if test x$have_xcursor_h_hdr = xyes; then
  17364. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17365. echo "-- dynamic libXcursor -> $xcursor_lib"
  17366. cat >>confdefs.h <<_ACEOF
  17367. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17368. _ACEOF
  17369. definitely_enable_video_x11_xcursor=yes
  17370. else
  17371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17372. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17373. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17374. $as_echo_n "(cached) " >&6
  17375. else
  17376. ac_check_lib_save_LIBS=$LIBS
  17377. LIBS="-lXcursor $LIBS"
  17378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17379. /* end confdefs.h. */
  17380. /* Override any GCC internal prototype to avoid an error.
  17381. Use char because int might match the return type of a GCC
  17382. builtin and then its argument prototype would still apply. */
  17383. #ifdef __cplusplus
  17384. extern "C"
  17385. #endif
  17386. char XcursorImageCreate ();
  17387. int
  17388. main ()
  17389. {
  17390. return XcursorImageCreate ();
  17391. ;
  17392. return 0;
  17393. }
  17394. _ACEOF
  17395. if ac_fn_c_try_link "$LINENO"; then :
  17396. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17397. else
  17398. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17399. fi
  17400. rm -f core conftest.err conftest.$ac_objext \
  17401. conftest$ac_exeext conftest.$ac_ext
  17402. LIBS=$ac_check_lib_save_LIBS
  17403. fi
  17404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17405. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17406. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17407. have_xcursor_lib=yes
  17408. fi
  17409. if test x$have_xcursor_lib = xyes ; then
  17410. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17411. definitely_enable_video_x11_xcursor=yes
  17412. fi
  17413. fi
  17414. fi
  17415. fi
  17416. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17417. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17418. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17419. fi
  17420. # Check whether --enable-video-x11-xdbe was given.
  17421. if test "${enable_video_x11_xdbe+set}" = set; then :
  17422. enableval=$enable_video_x11_xdbe;
  17423. else
  17424. enable_video_x11_xdbe=yes
  17425. fi
  17426. if test x$enable_video_x11_xdbe = xyes; then
  17427. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17428. "
  17429. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17430. have_dbe_h_hdr=yes
  17431. else
  17432. have_dbe_h_hdr=no
  17433. fi
  17434. if test x$have_dbe_h_hdr = xyes; then
  17435. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17436. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17437. fi
  17438. fi
  17439. # Check whether --enable-video-x11-xinerama was given.
  17440. if test "${enable_video_x11_xinerama+set}" = set; then :
  17441. enableval=$enable_video_x11_xinerama;
  17442. else
  17443. enable_video_x11_xinerama=yes
  17444. fi
  17445. if test x$enable_video_x11_xinerama = xyes; then
  17446. definitely_enable_video_x11_xinerama=no
  17447. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17448. "
  17449. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17450. have_xinerama_h_hdr=yes
  17451. else
  17452. have_xinerama_h_hdr=no
  17453. fi
  17454. if test x$have_xinerama_h_hdr = xyes; then
  17455. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17456. echo "-- dynamic libXinerama -> $xinerama_lib"
  17457. cat >>confdefs.h <<_ACEOF
  17458. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17459. _ACEOF
  17460. definitely_enable_video_x11_xinerama=yes
  17461. else
  17462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17463. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17464. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17465. $as_echo_n "(cached) " >&6
  17466. else
  17467. ac_check_lib_save_LIBS=$LIBS
  17468. LIBS="-lXinerama $LIBS"
  17469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17470. /* end confdefs.h. */
  17471. /* Override any GCC internal prototype to avoid an error.
  17472. Use char because int might match the return type of a GCC
  17473. builtin and then its argument prototype would still apply. */
  17474. #ifdef __cplusplus
  17475. extern "C"
  17476. #endif
  17477. char XineramaQueryExtension ();
  17478. int
  17479. main ()
  17480. {
  17481. return XineramaQueryExtension ();
  17482. ;
  17483. return 0;
  17484. }
  17485. _ACEOF
  17486. if ac_fn_c_try_link "$LINENO"; then :
  17487. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17488. else
  17489. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17490. fi
  17491. rm -f core conftest.err conftest.$ac_objext \
  17492. conftest$ac_exeext conftest.$ac_ext
  17493. LIBS=$ac_check_lib_save_LIBS
  17494. fi
  17495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17496. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17497. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17498. have_xinerama_lib=yes
  17499. fi
  17500. if test x$have_xinerama_lib = xyes ; then
  17501. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17502. definitely_enable_video_x11_xinerama=yes
  17503. fi
  17504. fi
  17505. fi
  17506. fi
  17507. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17508. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17509. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17510. fi
  17511. # Check whether --enable-video-x11-xinput was given.
  17512. if test "${enable_video_x11_xinput+set}" = set; then :
  17513. enableval=$enable_video_x11_xinput;
  17514. else
  17515. enable_video_x11_xinput=yes
  17516. fi
  17517. if test x$enable_video_x11_xinput = xyes; then
  17518. definitely_enable_video_x11_xinput=no
  17519. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17520. "
  17521. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17522. have_xinput_h_hdr=yes
  17523. else
  17524. have_xinput_h_hdr=no
  17525. fi
  17526. if test x$have_xinput_h_hdr = xyes; then
  17527. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17528. echo "-- dynamic libXi -> $xinput_lib"
  17529. cat >>confdefs.h <<_ACEOF
  17530. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17531. _ACEOF
  17532. definitely_enable_video_x11_xinput=yes
  17533. else
  17534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17535. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17536. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17537. $as_echo_n "(cached) " >&6
  17538. else
  17539. ac_check_lib_save_LIBS=$LIBS
  17540. LIBS="-lXi $LIBS"
  17541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17542. /* end confdefs.h. */
  17543. /* Override any GCC internal prototype to avoid an error.
  17544. Use char because int might match the return type of a GCC
  17545. builtin and then its argument prototype would still apply. */
  17546. #ifdef __cplusplus
  17547. extern "C"
  17548. #endif
  17549. char XOpenDevice ();
  17550. int
  17551. main ()
  17552. {
  17553. return XOpenDevice ();
  17554. ;
  17555. return 0;
  17556. }
  17557. _ACEOF
  17558. if ac_fn_c_try_link "$LINENO"; then :
  17559. ac_cv_lib_Xi_XOpenDevice=yes
  17560. else
  17561. ac_cv_lib_Xi_XOpenDevice=no
  17562. fi
  17563. rm -f core conftest.err conftest.$ac_objext \
  17564. conftest$ac_exeext conftest.$ac_ext
  17565. LIBS=$ac_check_lib_save_LIBS
  17566. fi
  17567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17568. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17569. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17570. have_xinput_lib=yes
  17571. fi
  17572. if test x$have_xinput_lib = xyes ; then
  17573. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17574. definitely_enable_video_x11_xinput=yes
  17575. fi
  17576. fi
  17577. fi
  17578. fi
  17579. if test x$definitely_enable_video_x11_xinput = xyes; then
  17580. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17581. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17583. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17584. have_xinput2_multitouch=no
  17585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17586. /* end confdefs.h. */
  17587. #include <X11/Xlib.h>
  17588. #include <X11/Xproto.h>
  17589. #include <X11/extensions/XInput2.h>
  17590. int
  17591. main ()
  17592. {
  17593. int event_type = XI_TouchBegin;
  17594. XITouchClassInfo *t;
  17595. ;
  17596. return 0;
  17597. }
  17598. _ACEOF
  17599. if ac_fn_c_try_compile "$LINENO"; then :
  17600. have_xinput2_multitouch=yes
  17601. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17602. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17603. fi
  17604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17606. $as_echo "$have_xinput2_multitouch" >&6; }
  17607. fi
  17608. # Check whether --enable-video-x11-xrandr was given.
  17609. if test "${enable_video_x11_xrandr+set}" = set; then :
  17610. enableval=$enable_video_x11_xrandr;
  17611. else
  17612. enable_video_x11_xrandr=yes
  17613. fi
  17614. if test x$enable_video_x11_xrandr = xyes; then
  17615. definitely_enable_video_x11_xrandr=no
  17616. have_xrandr_h_hdr=no
  17617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17618. /* end confdefs.h. */
  17619. #include <X11/Xlib.h>
  17620. #include <X11/extensions/Xrandr.h>
  17621. int
  17622. main ()
  17623. {
  17624. XRRScreenResources *res = NULL;
  17625. ;
  17626. return 0;
  17627. }
  17628. _ACEOF
  17629. if ac_fn_c_try_compile "$LINENO"; then :
  17630. have_xrandr_h_hdr=yes
  17631. fi
  17632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17633. if test x$have_xrandr_h_hdr = xyes; then
  17634. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17635. echo "-- dynamic libXrandr -> $xrandr_lib"
  17636. cat >>confdefs.h <<_ACEOF
  17637. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17638. _ACEOF
  17639. definitely_enable_video_x11_xrandr=yes
  17640. else
  17641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17642. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17643. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17644. $as_echo_n "(cached) " >&6
  17645. else
  17646. ac_check_lib_save_LIBS=$LIBS
  17647. LIBS="-lXrandr $LIBS"
  17648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17649. /* end confdefs.h. */
  17650. /* Override any GCC internal prototype to avoid an error.
  17651. Use char because int might match the return type of a GCC
  17652. builtin and then its argument prototype would still apply. */
  17653. #ifdef __cplusplus
  17654. extern "C"
  17655. #endif
  17656. char XRRQueryExtension ();
  17657. int
  17658. main ()
  17659. {
  17660. return XRRQueryExtension ();
  17661. ;
  17662. return 0;
  17663. }
  17664. _ACEOF
  17665. if ac_fn_c_try_link "$LINENO"; then :
  17666. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17667. else
  17668. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17669. fi
  17670. rm -f core conftest.err conftest.$ac_objext \
  17671. conftest$ac_exeext conftest.$ac_ext
  17672. LIBS=$ac_check_lib_save_LIBS
  17673. fi
  17674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17675. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17676. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17677. have_xrandr_lib=yes
  17678. fi
  17679. if test x$have_xrandr_lib = xyes ; then
  17680. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17681. definitely_enable_video_x11_xrandr=yes
  17682. fi
  17683. fi
  17684. fi
  17685. fi
  17686. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17687. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17688. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17689. fi
  17690. # Check whether --enable-video-x11-scrnsaver was given.
  17691. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17692. enableval=$enable_video_x11_scrnsaver;
  17693. else
  17694. enable_video_x11_scrnsaver=yes
  17695. fi
  17696. if test x$enable_video_x11_scrnsaver = xyes; then
  17697. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17698. "
  17699. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17700. have_scrnsaver_h_hdr=yes
  17701. else
  17702. have_scrnsaver_h_hdr=no
  17703. fi
  17704. if test x$have_scrnsaver_h_hdr = xyes; then
  17705. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17706. echo "-- dynamic libXss -> $xss_lib"
  17707. cat >>confdefs.h <<_ACEOF
  17708. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17709. _ACEOF
  17710. definitely_enable_video_x11_scrnsaver=yes
  17711. else
  17712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17713. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17714. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17715. $as_echo_n "(cached) " >&6
  17716. else
  17717. ac_check_lib_save_LIBS=$LIBS
  17718. LIBS="-lXss $LIBS"
  17719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17720. /* end confdefs.h. */
  17721. /* Override any GCC internal prototype to avoid an error.
  17722. Use char because int might match the return type of a GCC
  17723. builtin and then its argument prototype would still apply. */
  17724. #ifdef __cplusplus
  17725. extern "C"
  17726. #endif
  17727. char XScreenSaverSuspend ();
  17728. int
  17729. main ()
  17730. {
  17731. return XScreenSaverSuspend ();
  17732. ;
  17733. return 0;
  17734. }
  17735. _ACEOF
  17736. if ac_fn_c_try_link "$LINENO"; then :
  17737. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17738. else
  17739. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17740. fi
  17741. rm -f core conftest.err conftest.$ac_objext \
  17742. conftest$ac_exeext conftest.$ac_ext
  17743. LIBS=$ac_check_lib_save_LIBS
  17744. fi
  17745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17746. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17747. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17748. have_xss_lib=yes
  17749. fi
  17750. if test x$have_xss_lib = xyes ; then
  17751. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17752. definitely_enable_video_x11_scrnsaver=yes
  17753. fi
  17754. fi
  17755. fi
  17756. fi
  17757. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17758. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17759. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17760. fi
  17761. # Check whether --enable-video-x11-xshape was given.
  17762. if test "${enable_video_x11_xshape+set}" = set; then :
  17763. enableval=$enable_video_x11_xshape;
  17764. else
  17765. enable_video_x11_xshape=yes
  17766. fi
  17767. if test x$enable_video_x11_xshape = xyes; then
  17768. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17769. "
  17770. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17771. have_shape_h_hdr=yes
  17772. else
  17773. have_shape_h_hdr=no
  17774. fi
  17775. if test x$have_shape_h_hdr = xyes; then
  17776. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17777. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17778. fi
  17779. fi
  17780. # Check whether --enable-video-x11-vm was given.
  17781. if test "${enable_video_x11_vm+set}" = set; then :
  17782. enableval=$enable_video_x11_vm;
  17783. else
  17784. enable_video_x11_vm=yes
  17785. fi
  17786. if test x$enable_video_x11_vm = xyes; then
  17787. definitely_enable_video_x11_vm=no
  17788. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17789. "
  17790. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17791. have_vm_h_hdr=yes
  17792. else
  17793. have_vm_h_hdr=no
  17794. fi
  17795. if test x$have_vm_h_hdr = xyes; then
  17796. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17797. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17798. cat >>confdefs.h <<_ACEOF
  17799. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17800. _ACEOF
  17801. definitely_enable_video_x11_vm=yes
  17802. else
  17803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17804. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17805. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17806. $as_echo_n "(cached) " >&6
  17807. else
  17808. ac_check_lib_save_LIBS=$LIBS
  17809. LIBS="-lXxf86vm $LIBS"
  17810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17811. /* end confdefs.h. */
  17812. /* Override any GCC internal prototype to avoid an error.
  17813. Use char because int might match the return type of a GCC
  17814. builtin and then its argument prototype would still apply. */
  17815. #ifdef __cplusplus
  17816. extern "C"
  17817. #endif
  17818. char XF86VidModeQueryVersion ();
  17819. int
  17820. main ()
  17821. {
  17822. return XF86VidModeQueryVersion ();
  17823. ;
  17824. return 0;
  17825. }
  17826. _ACEOF
  17827. if ac_fn_c_try_link "$LINENO"; then :
  17828. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17829. else
  17830. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17831. fi
  17832. rm -f core conftest.err conftest.$ac_objext \
  17833. conftest$ac_exeext conftest.$ac_ext
  17834. LIBS=$ac_check_lib_save_LIBS
  17835. fi
  17836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17837. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17838. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17839. have_vm_lib=yes
  17840. fi
  17841. if test x$have_vm_lib = xyes ; then
  17842. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17843. definitely_enable_video_x11_vm=yes
  17844. fi
  17845. fi
  17846. fi
  17847. fi
  17848. if test x$definitely_enable_video_x11_vm = xyes; then
  17849. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17850. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  17851. fi
  17852. fi
  17853. fi
  17854. }
  17855. CheckVivanteVideo()
  17856. {
  17857. # Check whether --enable-video-vivante was given.
  17858. if test "${enable_video_vivante+set}" = set; then :
  17859. enableval=$enable_video_vivante;
  17860. else
  17861. enable_video_vivante=yes
  17862. fi
  17863. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  17864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  17865. $as_echo_n "checking for Vivante VDK API... " >&6; }
  17866. have_vivante_vdk=no
  17867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17868. /* end confdefs.h. */
  17869. #define LINUX
  17870. #define EGL_API_FB
  17871. #include <gc_vdk.h>
  17872. int
  17873. main ()
  17874. {
  17875. ;
  17876. return 0;
  17877. }
  17878. _ACEOF
  17879. if ac_fn_c_try_compile "$LINENO"; then :
  17880. have_vivante_vdk=yes
  17881. fi
  17882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  17884. $as_echo "$have_vivante_vdk" >&6; }
  17885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  17886. $as_echo_n "checking for Vivante FB API... " >&6; }
  17887. have_vivante_egl=no
  17888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17889. /* end confdefs.h. */
  17890. #define LINUX
  17891. #define EGL_API_FB
  17892. #include <EGL/eglvivante.h>
  17893. int
  17894. main ()
  17895. {
  17896. ;
  17897. return 0;
  17898. }
  17899. _ACEOF
  17900. if ac_fn_c_try_compile "$LINENO"; then :
  17901. have_vivante_egl=yes
  17902. fi
  17903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  17905. $as_echo "$have_vivante_egl" >&6; }
  17906. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  17907. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  17908. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  17909. if test x$have_vivante_vdk = xyes; then
  17910. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  17911. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  17912. fi
  17913. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  17914. SUMMARY_video="${SUMMARY_video} vivante"
  17915. have_video=yes
  17916. fi
  17917. fi
  17918. }
  17919. CheckHaikuVideo()
  17920. {
  17921. if test x$enable_video = xyes; then
  17922. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17923. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17924. have_video=yes
  17925. SUMMARY_video="${SUMMARY_video} haiku"
  17926. fi
  17927. }
  17928. CheckCOCOA()
  17929. {
  17930. # Check whether --enable-video-cocoa was given.
  17931. if test "${enable_video_cocoa+set}" = set; then :
  17932. enableval=$enable_video_cocoa;
  17933. else
  17934. enable_video_cocoa=yes
  17935. fi
  17936. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17937. save_CFLAGS="$CFLAGS"
  17938. CFLAGS="$CFLAGS -x objective-c"
  17939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17940. $as_echo_n "checking for Cocoa framework... " >&6; }
  17941. have_cocoa=no
  17942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17943. /* end confdefs.h. */
  17944. #import <Cocoa/Cocoa.h>
  17945. int
  17946. main ()
  17947. {
  17948. ;
  17949. return 0;
  17950. }
  17951. _ACEOF
  17952. if ac_fn_c_try_compile "$LINENO"; then :
  17953. have_cocoa=yes
  17954. fi
  17955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17957. $as_echo "$have_cocoa" >&6; }
  17958. CFLAGS="$save_CFLAGS"
  17959. if test x$have_cocoa = xyes; then
  17960. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17961. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17962. SUMMARY_video="${SUMMARY_video} cocoa"
  17963. have_video=yes
  17964. fi
  17965. fi
  17966. }
  17967. CheckDirectFB()
  17968. {
  17969. # Check whether --enable-video-directfb was given.
  17970. if test "${enable_video_directfb+set}" = set; then :
  17971. enableval=$enable_video_directfb;
  17972. else
  17973. enable_video_directfb=no
  17974. fi
  17975. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17976. video_directfb=no
  17977. DIRECTFB_REQUIRED_VERSION=1.0.0
  17978. for ac_prog in directfb-config
  17979. do
  17980. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17981. set dummy $ac_prog; ac_word=$2
  17982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17983. $as_echo_n "checking for $ac_word... " >&6; }
  17984. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17985. $as_echo_n "(cached) " >&6
  17986. else
  17987. case $DIRECTFBCONFIG in
  17988. [\\/]* | ?:[\\/]*)
  17989. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17990. ;;
  17991. *)
  17992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17993. as_dummy="$prefix/bin:$PATH"
  17994. for as_dir in $as_dummy
  17995. do
  17996. IFS=$as_save_IFS
  17997. test -z "$as_dir" && as_dir=.
  17998. for ac_exec_ext in '' $ac_executable_extensions; do
  17999. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18000. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18002. break 2
  18003. fi
  18004. done
  18005. done
  18006. IFS=$as_save_IFS
  18007. ;;
  18008. esac
  18009. fi
  18010. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18011. if test -n "$DIRECTFBCONFIG"; then
  18012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18013. $as_echo "$DIRECTFBCONFIG" >&6; }
  18014. else
  18015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18016. $as_echo "no" >&6; }
  18017. fi
  18018. test -n "$DIRECTFBCONFIG" && break
  18019. done
  18020. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18021. if test x$DIRECTFBCONFIG = xno; then
  18022. # Extract the first word of "pkg-config", so it can be a program name with args.
  18023. set dummy pkg-config; ac_word=$2
  18024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18025. $as_echo_n "checking for $ac_word... " >&6; }
  18026. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18027. $as_echo_n "(cached) " >&6
  18028. else
  18029. case $PKG_CONFIG in
  18030. [\\/]* | ?:[\\/]*)
  18031. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18032. ;;
  18033. *)
  18034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18035. for as_dir in $PATH
  18036. do
  18037. IFS=$as_save_IFS
  18038. test -z "$as_dir" && as_dir=.
  18039. for ac_exec_ext in '' $ac_executable_extensions; do
  18040. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18041. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18042. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18043. break 2
  18044. fi
  18045. done
  18046. done
  18047. IFS=$as_save_IFS
  18048. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18049. ;;
  18050. esac
  18051. fi
  18052. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18053. if test -n "$PKG_CONFIG"; then
  18054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18055. $as_echo "$PKG_CONFIG" >&6; }
  18056. else
  18057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18058. $as_echo "no" >&6; }
  18059. fi
  18060. if test x$PKG_CONFIG != xno; then
  18061. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18062. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18063. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18064. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18065. video_directfb=yes
  18066. fi
  18067. fi
  18068. else
  18069. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18070. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18071. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18072. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18073. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18074. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18075. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18076. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18077. video_directfb=yes
  18078. fi
  18079. fi
  18080. if test x$video_directfb = xyes; then
  18081. # SuSE 11.1 installs directfb-config without directfb-devel
  18082. save_CPPFLAGS="$CPPFLAGS"
  18083. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18084. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18085. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18086. have_directfb_hdr=yes
  18087. else
  18088. have_directfb_hdr=no
  18089. fi
  18090. CPPFLAGS="$save_CPPFLAGS"
  18091. video_directfb=$have_directfb_hdr
  18092. fi
  18093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18094. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18096. $as_echo "$video_directfb" >&6; }
  18097. if test x$video_directfb = xyes; then
  18098. # Check whether --enable-directfb-shared was given.
  18099. if test "${enable_directfb_shared+set}" = set; then :
  18100. enableval=$enable_directfb_shared;
  18101. else
  18102. enable_directfb_shared=yes
  18103. fi
  18104. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18105. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18106. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18107. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18109. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18110. directfb_shared=no
  18111. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  18112. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18114. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18115. if test x$have_loadso != xyes && \
  18116. test x$enable_directfb_shared = xyes; then
  18117. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18118. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18119. fi
  18120. if test x$have_loadso = xyes && \
  18121. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18122. directfb_shared=yes
  18123. echo "-- $directfb_lib_spec -> $directfb_lib"
  18124. cat >>confdefs.h <<_ACEOF
  18125. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18126. _ACEOF
  18127. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18128. else
  18129. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18130. SUMMARY_video="${SUMMARY_video} directfb"
  18131. fi
  18132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18133. $as_echo "$directfb_shared" >&6; }
  18134. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18135. have_video=yes
  18136. fi
  18137. fi
  18138. }
  18139. CheckDummyVideo()
  18140. {
  18141. # Check whether --enable-video-dummy was given.
  18142. if test "${enable_video_dummy+set}" = set; then :
  18143. enableval=$enable_video_dummy;
  18144. else
  18145. enable_video_dummy=yes
  18146. fi
  18147. if test x$enable_video_dummy = xyes; then
  18148. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18149. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18150. have_video=yes
  18151. SUMMARY_video="${SUMMARY_video} dummy"
  18152. fi
  18153. }
  18154. # Check whether --enable-video-opengl was given.
  18155. if test "${enable_video_opengl+set}" = set; then :
  18156. enableval=$enable_video_opengl;
  18157. else
  18158. enable_video_opengl=yes
  18159. fi
  18160. CheckOpenGLX11()
  18161. {
  18162. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18164. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18165. video_opengl=no
  18166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18167. /* end confdefs.h. */
  18168. #include <GL/gl.h>
  18169. #include <GL/glx.h>
  18170. int
  18171. main ()
  18172. {
  18173. ;
  18174. return 0;
  18175. }
  18176. _ACEOF
  18177. if ac_fn_c_try_compile "$LINENO"; then :
  18178. video_opengl=yes
  18179. fi
  18180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18182. $as_echo "$video_opengl" >&6; }
  18183. if test x$video_opengl = xyes; then
  18184. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18185. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18186. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18187. SUMMARY_video="${SUMMARY_video} opengl"
  18188. fi
  18189. fi
  18190. }
  18191. # Check whether --enable-video-opengles was given.
  18192. if test "${enable_video_opengles+set}" = set; then :
  18193. enableval=$enable_video_opengles;
  18194. else
  18195. enable_video_opengles=yes
  18196. fi
  18197. # Check whether --enable-video-opengles1 was given.
  18198. if test "${enable_video_opengles1+set}" = set; then :
  18199. enableval=$enable_video_opengles1;
  18200. else
  18201. enable_video_opengles1=yes
  18202. fi
  18203. # Check whether --enable-video-opengles2 was given.
  18204. if test "${enable_video_opengles2+set}" = set; then :
  18205. enableval=$enable_video_opengles2;
  18206. else
  18207. enable_video_opengles2=yes
  18208. fi
  18209. CheckOpenGLESX11()
  18210. {
  18211. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18213. $as_echo_n "checking for EGL support... " >&6; }
  18214. video_opengl_egl=no
  18215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18216. /* end confdefs.h. */
  18217. #define LINUX
  18218. #define EGL_API_FB
  18219. #include <EGL/egl.h>
  18220. #include <EGL/eglext.h>
  18221. int
  18222. main ()
  18223. {
  18224. ;
  18225. return 0;
  18226. }
  18227. _ACEOF
  18228. if ac_fn_c_try_compile "$LINENO"; then :
  18229. video_opengl_egl=yes
  18230. fi
  18231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18233. $as_echo "$video_opengl_egl" >&6; }
  18234. if test x$video_opengl_egl = xyes; then
  18235. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18236. fi
  18237. if test x$enable_video_opengles1 = xyes; then
  18238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18239. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18240. video_opengles_v1=no
  18241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18242. /* end confdefs.h. */
  18243. #include <GLES/gl.h>
  18244. #include <GLES/glext.h>
  18245. int
  18246. main ()
  18247. {
  18248. ;
  18249. return 0;
  18250. }
  18251. _ACEOF
  18252. if ac_fn_c_try_compile "$LINENO"; then :
  18253. video_opengles_v1=yes
  18254. fi
  18255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18257. $as_echo "$video_opengles_v1" >&6; }
  18258. if test x$video_opengles_v1 = xyes; then
  18259. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18260. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18261. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18262. fi
  18263. fi
  18264. if test x$enable_video_opengles2 = xyes; then
  18265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18266. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18267. video_opengles_v2=no
  18268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18269. /* end confdefs.h. */
  18270. #include <GLES2/gl2.h>
  18271. #include <GLES2/gl2ext.h>
  18272. int
  18273. main ()
  18274. {
  18275. ;
  18276. return 0;
  18277. }
  18278. _ACEOF
  18279. if ac_fn_c_try_compile "$LINENO"; then :
  18280. video_opengles_v2=yes
  18281. fi
  18282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18284. $as_echo "$video_opengles_v2" >&6; }
  18285. if test x$video_opengles_v2 = xyes; then
  18286. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18287. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18288. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18289. fi
  18290. fi
  18291. fi
  18292. }
  18293. CheckWINDOWSGL()
  18294. {
  18295. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18296. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18297. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18298. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18299. SUMMARY_video="${SUMMARY_video} opengl"
  18300. fi
  18301. }
  18302. CheckWINDOWSGLES()
  18303. {
  18304. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18306. $as_echo_n "checking for EGL support... " >&6; }
  18307. video_opengl_egl=no
  18308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18309. /* end confdefs.h. */
  18310. #include <EGL/egl.h>
  18311. int
  18312. main ()
  18313. {
  18314. ;
  18315. return 0;
  18316. }
  18317. _ACEOF
  18318. if ac_fn_c_try_compile "$LINENO"; then :
  18319. video_opengl_egl=yes
  18320. fi
  18321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18323. $as_echo "$video_opengl_egl" >&6; }
  18324. if test x$video_opengl_egl = xyes; then
  18325. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18326. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18327. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18328. fi
  18329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18330. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18331. video_opengles_v2=no
  18332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18333. /* end confdefs.h. */
  18334. #include <GLES2/gl2.h>
  18335. #include <GLES2/gl2ext.h>
  18336. int
  18337. main ()
  18338. {
  18339. ;
  18340. return 0;
  18341. }
  18342. _ACEOF
  18343. if ac_fn_c_try_compile "$LINENO"; then :
  18344. video_opengles_v2=yes
  18345. fi
  18346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18348. $as_echo "$video_opengles_v2" >&6; }
  18349. if test x$video_opengles_v2 = xyes; then
  18350. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18351. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18352. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18353. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18354. fi
  18355. fi
  18356. }
  18357. CheckHaikuGL()
  18358. {
  18359. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18360. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18361. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18362. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18363. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18364. SUMMARY_video="${SUMMARY_video} opengl"
  18365. fi
  18366. }
  18367. CheckMacGL()
  18368. {
  18369. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18370. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18371. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18372. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18373. SUMMARY_video="${SUMMARY_video} opengl"
  18374. fi
  18375. }
  18376. CheckEmscriptenGLES()
  18377. {
  18378. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18380. $as_echo_n "checking for EGL support... " >&6; }
  18381. video_opengl_egl=no
  18382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18383. /* end confdefs.h. */
  18384. #include <EGL/egl.h>
  18385. int
  18386. main ()
  18387. {
  18388. ;
  18389. return 0;
  18390. }
  18391. _ACEOF
  18392. if ac_fn_c_try_compile "$LINENO"; then :
  18393. video_opengl_egl=yes
  18394. fi
  18395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18397. $as_echo "$video_opengl_egl" >&6; }
  18398. if test x$video_opengl_egl = xyes; then
  18399. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18400. fi
  18401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18402. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18403. video_opengles_v2=no
  18404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18405. /* end confdefs.h. */
  18406. #include <GLES2/gl2.h>
  18407. #include <GLES2/gl2ext.h>
  18408. int
  18409. main ()
  18410. {
  18411. ;
  18412. return 0;
  18413. }
  18414. _ACEOF
  18415. if ac_fn_c_try_compile "$LINENO"; then :
  18416. video_opengles_v2=yes
  18417. fi
  18418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18420. $as_echo "$video_opengles_v2" >&6; }
  18421. if test x$video_opengles_v2 = xyes; then
  18422. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18423. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18424. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18425. fi
  18426. fi
  18427. }
  18428. CheckInputEvents()
  18429. {
  18430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18431. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18432. use_input_events=no
  18433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18434. /* end confdefs.h. */
  18435. #include <linux/input.h>
  18436. int
  18437. main ()
  18438. {
  18439. #ifndef EVIOCGNAME
  18440. #error EVIOCGNAME() ioctl not available
  18441. #endif
  18442. ;
  18443. return 0;
  18444. }
  18445. _ACEOF
  18446. if ac_fn_c_try_compile "$LINENO"; then :
  18447. use_input_events=yes
  18448. fi
  18449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18451. $as_echo "$use_input_events" >&6; }
  18452. if test x$use_input_events = xyes; then
  18453. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18454. SUMMARY_input="${SUMMARY_input} linuxev"
  18455. fi
  18456. }
  18457. CheckInputKD()
  18458. {
  18459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18460. $as_echo_n "checking for Linux kd.h... " >&6; }
  18461. use_input_kd=no
  18462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18463. /* end confdefs.h. */
  18464. #include <linux/kd.h>
  18465. #include <linux/keyboard.h>
  18466. int
  18467. main ()
  18468. {
  18469. struct kbentry kbe;
  18470. kbe.kb_table = KG_CTRL;
  18471. ioctl(0, KDGKBENT, &kbe);
  18472. ;
  18473. return 0;
  18474. }
  18475. _ACEOF
  18476. if ac_fn_c_try_compile "$LINENO"; then :
  18477. use_input_kd=yes
  18478. fi
  18479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18481. $as_echo "$use_input_kd" >&6; }
  18482. if test x$use_input_kd = xyes; then
  18483. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18484. SUMMARY_input="${SUMMARY_input} linuxkd"
  18485. fi
  18486. }
  18487. CheckLibUDev()
  18488. {
  18489. # Check whether --enable-libudev was given.
  18490. if test "${enable_libudev+set}" = set; then :
  18491. enableval=$enable_libudev;
  18492. else
  18493. enable_libudev=yes
  18494. fi
  18495. if test x$enable_libudev = xyes; then
  18496. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18497. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18498. have_libudev_h_hdr=yes
  18499. else
  18500. have_libudev_h_hdr=no
  18501. fi
  18502. if test x$have_libudev_h_hdr = xyes; then
  18503. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18504. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18505. if test x$udev_lib != x; then
  18506. echo "-- dynamic udev -> $udev_lib"
  18507. cat >>confdefs.h <<_ACEOF
  18508. #define SDL_UDEV_DYNAMIC "$udev_lib"
  18509. _ACEOF
  18510. fi
  18511. fi
  18512. fi
  18513. }
  18514. CheckDBus()
  18515. {
  18516. # Check whether --enable-dbus was given.
  18517. if test "${enable_dbus+set}" = set; then :
  18518. enableval=$enable_dbus;
  18519. else
  18520. enable_dbus=yes
  18521. fi
  18522. if test x$enable_dbus = xyes; then
  18523. # Extract the first word of "pkg-config", so it can be a program name with args.
  18524. set dummy pkg-config; ac_word=$2
  18525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18526. $as_echo_n "checking for $ac_word... " >&6; }
  18527. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18528. $as_echo_n "(cached) " >&6
  18529. else
  18530. case $PKG_CONFIG in
  18531. [\\/]* | ?:[\\/]*)
  18532. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18533. ;;
  18534. *)
  18535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18536. for as_dir in $PATH
  18537. do
  18538. IFS=$as_save_IFS
  18539. test -z "$as_dir" && as_dir=.
  18540. for ac_exec_ext in '' $ac_executable_extensions; do
  18541. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18542. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18543. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18544. break 2
  18545. fi
  18546. done
  18547. done
  18548. IFS=$as_save_IFS
  18549. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18550. ;;
  18551. esac
  18552. fi
  18553. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18554. if test -n "$PKG_CONFIG"; then
  18555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18556. $as_echo "$PKG_CONFIG" >&6; }
  18557. else
  18558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18559. $as_echo "no" >&6; }
  18560. fi
  18561. if test x$PKG_CONFIG != xno; then
  18562. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18563. save_CFLAGS="$CFLAGS"
  18564. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18565. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18566. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18567. have_dbus_dbus_h_hdr=yes
  18568. else
  18569. have_dbus_dbus_h_hdr=no
  18570. fi
  18571. CFLAGS="$save_CFLAGS"
  18572. if test x$have_dbus_dbus_h_hdr = xyes; then
  18573. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18574. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18575. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18576. fi
  18577. fi
  18578. fi
  18579. }
  18580. CheckIME()
  18581. {
  18582. # Check whether --enable-ime was given.
  18583. if test "${enable_ime+set}" = set; then :
  18584. enableval=$enable_ime;
  18585. else
  18586. enable_ime=yes
  18587. fi
  18588. if test x$enable_ime = xyes; then
  18589. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  18590. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  18591. fi
  18592. }
  18593. CheckIBus()
  18594. {
  18595. # Check whether --enable-ibus was given.
  18596. if test "${enable_ibus+set}" = set; then :
  18597. enableval=$enable_ibus;
  18598. else
  18599. enable_ibus=yes
  18600. fi
  18601. if test x$enable_ibus = xyes; then
  18602. # Extract the first word of "pkg-config", so it can be a program name with args.
  18603. set dummy pkg-config; ac_word=$2
  18604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18605. $as_echo_n "checking for $ac_word... " >&6; }
  18606. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18607. $as_echo_n "(cached) " >&6
  18608. else
  18609. case $PKG_CONFIG in
  18610. [\\/]* | ?:[\\/]*)
  18611. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18612. ;;
  18613. *)
  18614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18615. for as_dir in $PATH
  18616. do
  18617. IFS=$as_save_IFS
  18618. test -z "$as_dir" && as_dir=.
  18619. for ac_exec_ext in '' $ac_executable_extensions; do
  18620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18621. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18623. break 2
  18624. fi
  18625. done
  18626. done
  18627. IFS=$as_save_IFS
  18628. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18629. ;;
  18630. esac
  18631. fi
  18632. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18633. if test -n "$PKG_CONFIG"; then
  18634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18635. $as_echo "$PKG_CONFIG" >&6; }
  18636. else
  18637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18638. $as_echo "no" >&6; }
  18639. fi
  18640. if test x$PKG_CONFIG != xno; then
  18641. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  18642. save_CFLAGS="$CFLAGS"
  18643. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  18644. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  18645. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  18646. have_ibus_ibus_h_hdr=yes
  18647. else
  18648. have_ibus_ibus_h_hdr=no
  18649. fi
  18650. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  18651. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  18652. have_inotify_inotify_h_hdr=yes
  18653. else
  18654. have_inotify_inotify_h_hdr=no
  18655. fi
  18656. CFLAGS="$save_CFLAGS"
  18657. if test x$have_ibus_ibus_h_hdr = xyes; then
  18658. if test x$enable_ime != xyes; then
  18659. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  18660. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  18661. have_ibus_ibus_h_hdr=no
  18662. elif test x$enable_dbus != xyes; then
  18663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  18664. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  18665. have_ibus_ibus_h_hdr=no
  18666. elif test x$have_inotify_inotify_h_hdr != xyes; then
  18667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  18668. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  18669. have_ibus_ibus_h_hdr=no
  18670. else
  18671. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  18672. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  18673. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  18674. fi
  18675. fi
  18676. fi
  18677. fi
  18678. }
  18679. CheckFcitx()
  18680. {
  18681. # Check whether --enable-fcitx was given.
  18682. if test "${enable_fcitx+set}" = set; then :
  18683. enableval=$enable_fcitx;
  18684. else
  18685. enable_fcitx=yes
  18686. fi
  18687. if test x$enable_fcitx = xyes; then
  18688. # Extract the first word of "pkg-config", so it can be a program name with args.
  18689. set dummy pkg-config; ac_word=$2
  18690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18691. $as_echo_n "checking for $ac_word... " >&6; }
  18692. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18693. $as_echo_n "(cached) " >&6
  18694. else
  18695. case $PKG_CONFIG in
  18696. [\\/]* | ?:[\\/]*)
  18697. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18698. ;;
  18699. *)
  18700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18701. for as_dir in $PATH
  18702. do
  18703. IFS=$as_save_IFS
  18704. test -z "$as_dir" && as_dir=.
  18705. for ac_exec_ext in '' $ac_executable_extensions; do
  18706. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18707. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18709. break 2
  18710. fi
  18711. done
  18712. done
  18713. IFS=$as_save_IFS
  18714. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18715. ;;
  18716. esac
  18717. fi
  18718. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18719. if test -n "$PKG_CONFIG"; then
  18720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18721. $as_echo "$PKG_CONFIG" >&6; }
  18722. else
  18723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18724. $as_echo "no" >&6; }
  18725. fi
  18726. if test x$PKG_CONFIG != xno; then
  18727. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  18728. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  18729. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  18730. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  18731. have_fcitx_frontend_h_hdr=yes
  18732. else
  18733. have_fcitx_frontend_h_hdr=no
  18734. fi
  18735. CFLAGS="$save_CFLAGS"
  18736. if test x$have_fcitx_frontend_h_hdr = xyes; then
  18737. if test x$enable_ime != xyes; then
  18738. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  18739. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  18740. have_fcitx_frontend_h_hdr=no
  18741. elif test x$enable_dbus != xyes; then
  18742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  18743. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  18744. have_fcitx_frontend_h_hdr=no
  18745. else
  18746. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  18747. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  18748. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  18749. fi
  18750. fi
  18751. fi
  18752. fi
  18753. }
  18754. CheckTslib()
  18755. {
  18756. # Check whether --enable-input-tslib was given.
  18757. if test "${enable_input_tslib+set}" = set; then :
  18758. enableval=$enable_input_tslib;
  18759. else
  18760. enable_input_tslib=yes
  18761. fi
  18762. if test x$enable_input_tslib = xyes; then
  18763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18764. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18765. enable_input_tslib=no
  18766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18767. /* end confdefs.h. */
  18768. #include "tslib.h"
  18769. int
  18770. main ()
  18771. {
  18772. ;
  18773. return 0;
  18774. }
  18775. _ACEOF
  18776. if ac_fn_c_try_compile "$LINENO"; then :
  18777. enable_input_tslib=yes
  18778. fi
  18779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18781. $as_echo "$enable_input_tslib" >&6; }
  18782. if test x$enable_input_tslib = xyes; then
  18783. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18784. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18785. SUMMARY_input="${SUMMARY_input} ts"
  18786. fi
  18787. fi
  18788. }
  18789. CheckPTHREAD()
  18790. {
  18791. # Check whether --enable-pthreads was given.
  18792. if test "${enable_pthreads+set}" = set; then :
  18793. enableval=$enable_pthreads;
  18794. else
  18795. enable_pthreads=yes
  18796. fi
  18797. # Check whether --enable-pthread-sem was given.
  18798. if test "${enable_pthread_sem+set}" = set; then :
  18799. enableval=$enable_pthread_sem;
  18800. else
  18801. enable_pthread_sem=yes
  18802. fi
  18803. case "$host" in
  18804. *-*-androideabi*)
  18805. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18806. pthread_lib=""
  18807. ;;
  18808. *-*-linux*|*-*-uclinux*)
  18809. pthread_cflags="-D_REENTRANT"
  18810. pthread_lib="-lpthread"
  18811. ;;
  18812. *-*-bsdi*)
  18813. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18814. pthread_lib=""
  18815. ;;
  18816. *-*-darwin*)
  18817. pthread_cflags="-D_THREAD_SAFE"
  18818. # causes Carbon.p complaints?
  18819. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18820. ;;
  18821. *-*-freebsd*|*-*-dragonfly*)
  18822. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18823. pthread_lib="-pthread"
  18824. ;;
  18825. *-*-netbsd*)
  18826. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18827. pthread_lib="-lpthread"
  18828. ;;
  18829. *-*-openbsd*)
  18830. pthread_cflags="-D_REENTRANT"
  18831. pthread_lib="-pthread"
  18832. ;;
  18833. *-*-solaris2.9)
  18834. # From Solaris 9+, posix4's preferred name is rt.
  18835. pthread_cflags="-D_REENTRANT"
  18836. pthread_lib="-lpthread -lrt"
  18837. ;;
  18838. *-*-solaris2.10)
  18839. # Solaris 10+ merged pthread into libc.
  18840. pthread_cflags="-D_REENTRANT"
  18841. pthread_lib="-lrt"
  18842. ;;
  18843. *-*-solaris*)
  18844. # Solaris 11+ merged rt into libc.
  18845. pthread_cflags="-D_REENTRANT"
  18846. pthread_lib=""
  18847. ;;
  18848. *-*-sysv5*)
  18849. pthread_cflags="-D_REENTRANT -Kthread"
  18850. pthread_lib=""
  18851. ;;
  18852. *-*-aix*)
  18853. pthread_cflags="-D_REENTRANT -mthreads"
  18854. pthread_lib="-lpthread"
  18855. ;;
  18856. *-*-hpux11*)
  18857. pthread_cflags="-D_REENTRANT"
  18858. pthread_lib="-L/usr/lib -lpthread"
  18859. ;;
  18860. *-*-haiku*)
  18861. pthread_cflags="-D_REENTRANT"
  18862. pthread_lib=""
  18863. ;;
  18864. *)
  18865. pthread_cflags="-D_REENTRANT"
  18866. pthread_lib="-lpthread"
  18867. ;;
  18868. esac
  18869. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18870. # Save the original compiler flags and libraries
  18871. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18872. # Add the pthread compiler flags and libraries
  18873. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18874. # Check to see if we have pthread support on this system
  18875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18876. $as_echo_n "checking for pthreads... " >&6; }
  18877. use_pthreads=no
  18878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18879. /* end confdefs.h. */
  18880. #include <pthread.h>
  18881. int
  18882. main ()
  18883. {
  18884. pthread_attr_t type;
  18885. pthread_attr_init(&type);
  18886. ;
  18887. return 0;
  18888. }
  18889. _ACEOF
  18890. if ac_fn_c_try_link "$LINENO"; then :
  18891. use_pthreads=yes
  18892. fi
  18893. rm -f core conftest.err conftest.$ac_objext \
  18894. conftest$ac_exeext conftest.$ac_ext
  18895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18896. $as_echo "$use_pthreads" >&6; }
  18897. # Restore the compiler flags and libraries
  18898. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18899. # Do futher testing if we have pthread support...
  18900. if test x$use_pthreads = xyes; then
  18901. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18902. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18903. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18904. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18905. # Save the original compiler flags and libraries
  18906. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18907. # Add the pthread compiler flags and libraries
  18908. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18909. # Check to see if recursive mutexes are available
  18910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18911. $as_echo_n "checking for recursive mutexes... " >&6; }
  18912. has_recursive_mutexes=no
  18913. if test x$has_recursive_mutexes = xno; then
  18914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18915. /* end confdefs.h. */
  18916. #define _GNU_SOURCE 1
  18917. #include <pthread.h>
  18918. int
  18919. main ()
  18920. {
  18921. pthread_mutexattr_t attr;
  18922. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18923. ;
  18924. return 0;
  18925. }
  18926. _ACEOF
  18927. if ac_fn_c_try_link "$LINENO"; then :
  18928. has_recursive_mutexes=yes
  18929. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18930. fi
  18931. rm -f core conftest.err conftest.$ac_objext \
  18932. conftest$ac_exeext conftest.$ac_ext
  18933. fi
  18934. if test x$has_recursive_mutexes = xno; then
  18935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18936. /* end confdefs.h. */
  18937. #define _GNU_SOURCE 1
  18938. #include <pthread.h>
  18939. int
  18940. main ()
  18941. {
  18942. pthread_mutexattr_t attr;
  18943. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18944. ;
  18945. return 0;
  18946. }
  18947. _ACEOF
  18948. if ac_fn_c_try_link "$LINENO"; then :
  18949. has_recursive_mutexes=yes
  18950. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18951. fi
  18952. rm -f core conftest.err conftest.$ac_objext \
  18953. conftest$ac_exeext conftest.$ac_ext
  18954. fi
  18955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18956. $as_echo "$has_recursive_mutexes" >&6; }
  18957. # Check to see if pthread semaphore support is missing
  18958. if test x$enable_pthread_sem = xyes; then
  18959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18960. $as_echo_n "checking for pthread semaphores... " >&6; }
  18961. have_pthread_sem=no
  18962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18963. /* end confdefs.h. */
  18964. #include <pthread.h>
  18965. #include <semaphore.h>
  18966. int
  18967. main ()
  18968. {
  18969. ;
  18970. return 0;
  18971. }
  18972. _ACEOF
  18973. if ac_fn_c_try_compile "$LINENO"; then :
  18974. have_pthread_sem=yes
  18975. fi
  18976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18978. $as_echo "$have_pthread_sem" >&6; }
  18979. fi
  18980. if test x$have_pthread_sem = xyes; then
  18981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18982. $as_echo_n "checking for sem_timedwait... " >&6; }
  18983. have_sem_timedwait=no
  18984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18985. /* end confdefs.h. */
  18986. #include <pthread.h>
  18987. #include <semaphore.h>
  18988. int
  18989. main ()
  18990. {
  18991. sem_timedwait(NULL, NULL);
  18992. ;
  18993. return 0;
  18994. }
  18995. _ACEOF
  18996. if ac_fn_c_try_link "$LINENO"; then :
  18997. have_sem_timedwait=yes
  18998. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18999. fi
  19000. rm -f core conftest.err conftest.$ac_objext \
  19001. conftest$ac_exeext conftest.$ac_ext
  19002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19003. $as_echo "$have_sem_timedwait" >&6; }
  19004. fi
  19005. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19006. "
  19007. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19008. have_pthread_np_h=yes
  19009. else
  19010. have_pthread_np_h=no
  19011. fi
  19012. if test x$have_pthread_np_h = xyes; then
  19013. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19014. fi
  19015. # Check to see if pthread naming is available
  19016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19017. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19019. /* end confdefs.h. */
  19020. /* Override any GCC internal prototype to avoid an error.
  19021. Use char because int might match the return type of a GCC
  19022. builtin and then its argument prototype would still apply. */
  19023. #ifdef __cplusplus
  19024. extern "C"
  19025. #endif
  19026. char pthread_setname_np ();
  19027. int
  19028. main ()
  19029. {
  19030. return pthread_setname_np ();
  19031. ;
  19032. return 0;
  19033. }
  19034. _ACEOF
  19035. if ac_fn_c_try_link "$LINENO"; then :
  19036. has_pthread_setname_np=yes
  19037. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19038. else
  19039. has_pthread_setname_np=no
  19040. fi
  19041. rm -f core conftest.err conftest.$ac_objext \
  19042. conftest$ac_exeext conftest.$ac_ext
  19043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19044. $as_echo "$has_pthread_setname_np" >&6; }
  19045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19046. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19048. /* end confdefs.h. */
  19049. /* Override any GCC internal prototype to avoid an error.
  19050. Use char because int might match the return type of a GCC
  19051. builtin and then its argument prototype would still apply. */
  19052. #ifdef __cplusplus
  19053. extern "C"
  19054. #endif
  19055. char pthread_set_name_np ();
  19056. int
  19057. main ()
  19058. {
  19059. return pthread_set_name_np ();
  19060. ;
  19061. return 0;
  19062. }
  19063. _ACEOF
  19064. if ac_fn_c_try_link "$LINENO"; then :
  19065. has_pthread_set_name_np=yes
  19066. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19067. else
  19068. has_pthread_set_name_np=no
  19069. fi
  19070. rm -f core conftest.err conftest.$ac_objext \
  19071. conftest$ac_exeext conftest.$ac_ext
  19072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19073. $as_echo "$has_pthread_set_name_np" >&6; }
  19074. # Restore the compiler flags and libraries
  19075. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19076. # Basic thread creation functions
  19077. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19078. # Semaphores
  19079. # We can fake these with mutexes and condition variables if necessary
  19080. if test x$have_pthread_sem = xyes; then
  19081. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19082. else
  19083. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19084. fi
  19085. # Mutexes
  19086. # We can fake these with semaphores if necessary
  19087. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19088. # Condition variables
  19089. # We can fake these with semaphores and mutexes if necessary
  19090. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19091. # Thread local storage
  19092. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19093. have_threads=yes
  19094. fi
  19095. fi
  19096. }
  19097. CheckWINDOWS()
  19098. {
  19099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19100. $as_echo_n "checking Windows compiler... " >&6; }
  19101. have_win32_gcc=no
  19102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19103. /* end confdefs.h. */
  19104. #include <windows.h>
  19105. int
  19106. main ()
  19107. {
  19108. ;
  19109. return 0;
  19110. }
  19111. _ACEOF
  19112. if ac_fn_c_try_compile "$LINENO"; then :
  19113. have_win32_gcc=yes
  19114. fi
  19115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19117. $as_echo "$have_win32_gcc" >&6; }
  19118. if test x$have_win32_gcc != xyes; then
  19119. as_fn_error $? "
  19120. *** Your compiler ($CC) does not produce Windows executables!
  19121. " "$LINENO" 5
  19122. fi
  19123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19124. $as_echo_n "checking Windows CE... " >&6; }
  19125. have_wince=no
  19126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19127. /* end confdefs.h. */
  19128. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19129. #error This is not Windows CE
  19130. #endif
  19131. int
  19132. main ()
  19133. {
  19134. ;
  19135. return 0;
  19136. }
  19137. _ACEOF
  19138. if ac_fn_c_try_compile "$LINENO"; then :
  19139. have_wince=yes
  19140. as_fn_error $? "
  19141. *** Sorry, Windows CE is no longer supported.
  19142. " "$LINENO" 5
  19143. fi
  19144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19146. $as_echo "$have_wince" >&6; }
  19147. # This fixes Windows stack alignment with newer GCC
  19148. CheckStackBoundary
  19149. }
  19150. CheckDIRECTX()
  19151. {
  19152. # Check whether --enable-directx was given.
  19153. if test "${enable_directx+set}" = set; then :
  19154. enableval=$enable_directx;
  19155. else
  19156. enable_directx=yes
  19157. fi
  19158. if test x$enable_directx = xyes; then
  19159. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19160. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19161. have_d3d=yes
  19162. fi
  19163. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19164. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19165. have_d3d11=yes
  19166. fi
  19167. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19168. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19169. have_ddraw=yes
  19170. fi
  19171. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19172. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19173. have_dsound=yes
  19174. fi
  19175. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19176. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19177. have_dinput=yes
  19178. fi
  19179. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19180. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19181. have_dxgi=yes
  19182. fi
  19183. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19184. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19185. have_xaudio2=yes
  19186. fi
  19187. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19188. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19189. have_xinput=yes
  19190. fi
  19191. if test x$have_ddraw = xyes; then
  19192. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19193. fi
  19194. if test x$have_dinput = xyes; then
  19195. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19196. fi
  19197. if test x$have_dsound = xyes; then
  19198. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19199. fi
  19200. if test x$have_dxgi = xyes; then
  19201. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19202. fi
  19203. if test x$have_xinput = xyes; then
  19204. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19205. fi
  19206. SUMMARY_video="${SUMMARY_video} directx"
  19207. SUMMARY_audio="${SUMMARY_audio} directx"
  19208. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19209. # FIXME: ...so force it off for now.
  19210. case "$host" in
  19211. *-*-cygwin*)
  19212. have_dinput=false
  19213. ;;
  19214. esac
  19215. fi
  19216. }
  19217. CheckDLOPEN()
  19218. {
  19219. # Check whether --enable-sdl-dlopen was given.
  19220. if test "${enable_sdl_dlopen+set}" = set; then :
  19221. enableval=$enable_sdl_dlopen;
  19222. else
  19223. enable_sdl_dlopen=yes
  19224. fi
  19225. if test x$enable_sdl_dlopen = xyes; then
  19226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19227. $as_echo_n "checking for dlopen... " >&6; }
  19228. have_dlopen=no
  19229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19230. /* end confdefs.h. */
  19231. #include <dlfcn.h>
  19232. int
  19233. main ()
  19234. {
  19235. void *handle = dlopen("", RTLD_NOW);
  19236. const char *loaderror = (char *) dlerror();
  19237. ;
  19238. return 0;
  19239. }
  19240. _ACEOF
  19241. if ac_fn_c_try_compile "$LINENO"; then :
  19242. have_dlopen=yes
  19243. fi
  19244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19246. $as_echo "$have_dlopen" >&6; }
  19247. if test x$have_dlopen = xyes; then
  19248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19249. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19250. if ${ac_cv_lib_c_dlopen+:} false; then :
  19251. $as_echo_n "(cached) " >&6
  19252. else
  19253. ac_check_lib_save_LIBS=$LIBS
  19254. LIBS="-lc $LIBS"
  19255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19256. /* end confdefs.h. */
  19257. /* Override any GCC internal prototype to avoid an error.
  19258. Use char because int might match the return type of a GCC
  19259. builtin and then its argument prototype would still apply. */
  19260. #ifdef __cplusplus
  19261. extern "C"
  19262. #endif
  19263. char dlopen ();
  19264. int
  19265. main ()
  19266. {
  19267. return dlopen ();
  19268. ;
  19269. return 0;
  19270. }
  19271. _ACEOF
  19272. if ac_fn_c_try_link "$LINENO"; then :
  19273. ac_cv_lib_c_dlopen=yes
  19274. else
  19275. ac_cv_lib_c_dlopen=no
  19276. fi
  19277. rm -f core conftest.err conftest.$ac_objext \
  19278. conftest$ac_exeext conftest.$ac_ext
  19279. LIBS=$ac_check_lib_save_LIBS
  19280. fi
  19281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19282. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19283. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19284. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19285. else
  19286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19287. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19288. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19289. $as_echo_n "(cached) " >&6
  19290. else
  19291. ac_check_lib_save_LIBS=$LIBS
  19292. LIBS="-ldl $LIBS"
  19293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19294. /* end confdefs.h. */
  19295. /* Override any GCC internal prototype to avoid an error.
  19296. Use char because int might match the return type of a GCC
  19297. builtin and then its argument prototype would still apply. */
  19298. #ifdef __cplusplus
  19299. extern "C"
  19300. #endif
  19301. char dlopen ();
  19302. int
  19303. main ()
  19304. {
  19305. return dlopen ();
  19306. ;
  19307. return 0;
  19308. }
  19309. _ACEOF
  19310. if ac_fn_c_try_link "$LINENO"; then :
  19311. ac_cv_lib_dl_dlopen=yes
  19312. else
  19313. ac_cv_lib_dl_dlopen=no
  19314. fi
  19315. rm -f core conftest.err conftest.$ac_objext \
  19316. conftest$ac_exeext conftest.$ac_ext
  19317. LIBS=$ac_check_lib_save_LIBS
  19318. fi
  19319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19320. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19321. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19322. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19323. else
  19324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19325. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19326. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19327. $as_echo_n "(cached) " >&6
  19328. else
  19329. ac_check_lib_save_LIBS=$LIBS
  19330. LIBS="-lltdl $LIBS"
  19331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19332. /* end confdefs.h. */
  19333. /* Override any GCC internal prototype to avoid an error.
  19334. Use char because int might match the return type of a GCC
  19335. builtin and then its argument prototype would still apply. */
  19336. #ifdef __cplusplus
  19337. extern "C"
  19338. #endif
  19339. char dlopen ();
  19340. int
  19341. main ()
  19342. {
  19343. return dlopen ();
  19344. ;
  19345. return 0;
  19346. }
  19347. _ACEOF
  19348. if ac_fn_c_try_link "$LINENO"; then :
  19349. ac_cv_lib_ltdl_dlopen=yes
  19350. else
  19351. ac_cv_lib_ltdl_dlopen=no
  19352. fi
  19353. rm -f core conftest.err conftest.$ac_objext \
  19354. conftest$ac_exeext conftest.$ac_ext
  19355. LIBS=$ac_check_lib_save_LIBS
  19356. fi
  19357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19358. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19359. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19360. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19361. fi
  19362. fi
  19363. fi
  19364. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19365. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19366. have_loadso=yes
  19367. fi
  19368. fi
  19369. }
  19370. CheckUSBHID()
  19371. {
  19372. case "$host" in
  19373. *-*-*bsd*)
  19374. if test x$enable_joystick = xyes; then
  19375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19376. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19377. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19378. $as_echo_n "(cached) " >&6
  19379. else
  19380. ac_check_lib_save_LIBS=$LIBS
  19381. LIBS="-lusbhid $LIBS"
  19382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19383. /* end confdefs.h. */
  19384. /* Override any GCC internal prototype to avoid an error.
  19385. Use char because int might match the return type of a GCC
  19386. builtin and then its argument prototype would still apply. */
  19387. #ifdef __cplusplus
  19388. extern "C"
  19389. #endif
  19390. char hid_init ();
  19391. int
  19392. main ()
  19393. {
  19394. return hid_init ();
  19395. ;
  19396. return 0;
  19397. }
  19398. _ACEOF
  19399. if ac_fn_c_try_link "$LINENO"; then :
  19400. ac_cv_lib_usbhid_hid_init=yes
  19401. else
  19402. ac_cv_lib_usbhid_hid_init=no
  19403. fi
  19404. rm -f core conftest.err conftest.$ac_objext \
  19405. conftest$ac_exeext conftest.$ac_ext
  19406. LIBS=$ac_check_lib_save_LIBS
  19407. fi
  19408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19409. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19410. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19411. have_libusbhid=yes
  19412. fi
  19413. if test x$have_libusbhid = xyes; then
  19414. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19415. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19416. USB_CFLAGS="-DHAVE_USBHID_H"
  19417. fi
  19418. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19419. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19420. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19421. fi
  19422. USB_LIBS="$USB_LIBS -lusbhid"
  19423. else
  19424. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19425. if test "x$ac_cv_header_usb_h" = xyes; then :
  19426. USB_CFLAGS="-DHAVE_USB_H"
  19427. fi
  19428. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19429. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19430. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19431. fi
  19432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19433. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19434. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19435. $as_echo_n "(cached) " >&6
  19436. else
  19437. ac_check_lib_save_LIBS=$LIBS
  19438. LIBS="-lusb $LIBS"
  19439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19440. /* end confdefs.h. */
  19441. /* Override any GCC internal prototype to avoid an error.
  19442. Use char because int might match the return type of a GCC
  19443. builtin and then its argument prototype would still apply. */
  19444. #ifdef __cplusplus
  19445. extern "C"
  19446. #endif
  19447. char hid_init ();
  19448. int
  19449. main ()
  19450. {
  19451. return hid_init ();
  19452. ;
  19453. return 0;
  19454. }
  19455. _ACEOF
  19456. if ac_fn_c_try_link "$LINENO"; then :
  19457. ac_cv_lib_usb_hid_init=yes
  19458. else
  19459. ac_cv_lib_usb_hid_init=no
  19460. fi
  19461. rm -f core conftest.err conftest.$ac_objext \
  19462. conftest$ac_exeext conftest.$ac_ext
  19463. LIBS=$ac_check_lib_save_LIBS
  19464. fi
  19465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19466. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19467. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19468. USB_LIBS="$USB_LIBS -lusb"
  19469. fi
  19470. fi
  19471. save_CFLAGS="$CFLAGS"
  19472. CFLAGS="$CFLAGS $USB_CFLAGS"
  19473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19474. $as_echo_n "checking for usbhid... " >&6; }
  19475. have_usbhid=no
  19476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19477. /* end confdefs.h. */
  19478. #include <sys/types.h>
  19479. #if defined(HAVE_USB_H)
  19480. #include <usb.h>
  19481. #endif
  19482. #ifdef __DragonFly__
  19483. # include <bus/usb/usb.h>
  19484. # include <bus/usb/usbhid.h>
  19485. #else
  19486. # include <dev/usb/usb.h>
  19487. # include <dev/usb/usbhid.h>
  19488. #endif
  19489. #if defined(HAVE_USBHID_H)
  19490. #include <usbhid.h>
  19491. #elif defined(HAVE_LIBUSB_H)
  19492. #include <libusb.h>
  19493. #elif defined(HAVE_LIBUSBHID_H)
  19494. #include <libusbhid.h>
  19495. #endif
  19496. int
  19497. main ()
  19498. {
  19499. struct report_desc *repdesc;
  19500. struct usb_ctl_report *repbuf;
  19501. hid_kind_t hidkind;
  19502. ;
  19503. return 0;
  19504. }
  19505. _ACEOF
  19506. if ac_fn_c_try_compile "$LINENO"; then :
  19507. have_usbhid=yes
  19508. fi
  19509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19511. $as_echo "$have_usbhid" >&6; }
  19512. if test x$have_usbhid = xyes; then
  19513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19514. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19515. have_usbhid_ucr_data=no
  19516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19517. /* end confdefs.h. */
  19518. #include <sys/types.h>
  19519. #if defined(HAVE_USB_H)
  19520. #include <usb.h>
  19521. #endif
  19522. #ifdef __DragonFly__
  19523. # include <bus/usb/usb.h>
  19524. # include <bus/usb/usbhid.h>
  19525. #else
  19526. # include <dev/usb/usb.h>
  19527. # include <dev/usb/usbhid.h>
  19528. #endif
  19529. #if defined(HAVE_USBHID_H)
  19530. #include <usbhid.h>
  19531. #elif defined(HAVE_LIBUSB_H)
  19532. #include <libusb.h>
  19533. #elif defined(HAVE_LIBUSBHID_H)
  19534. #include <libusbhid.h>
  19535. #endif
  19536. int
  19537. main ()
  19538. {
  19539. struct usb_ctl_report buf;
  19540. if (buf.ucr_data) { }
  19541. ;
  19542. return 0;
  19543. }
  19544. _ACEOF
  19545. if ac_fn_c_try_compile "$LINENO"; then :
  19546. have_usbhid_ucr_data=yes
  19547. fi
  19548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19549. if test x$have_usbhid_ucr_data = xyes; then
  19550. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19551. fi
  19552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19553. $as_echo "$have_usbhid_ucr_data" >&6; }
  19554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19555. $as_echo_n "checking for new usbhid API... " >&6; }
  19556. have_usbhid_new=no
  19557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19558. /* end confdefs.h. */
  19559. #include <sys/types.h>
  19560. #if defined(HAVE_USB_H)
  19561. #include <usb.h>
  19562. #endif
  19563. #ifdef __DragonFly__
  19564. #include <bus/usb/usb.h>
  19565. #include <bus/usb/usbhid.h>
  19566. #else
  19567. #include <dev/usb/usb.h>
  19568. #include <dev/usb/usbhid.h>
  19569. #endif
  19570. #if defined(HAVE_USBHID_H)
  19571. #include <usbhid.h>
  19572. #elif defined(HAVE_LIBUSB_H)
  19573. #include <libusb.h>
  19574. #elif defined(HAVE_LIBUSBHID_H)
  19575. #include <libusbhid.h>
  19576. #endif
  19577. int
  19578. main ()
  19579. {
  19580. report_desc_t d;
  19581. hid_start_parse(d, 1, 1);
  19582. ;
  19583. return 0;
  19584. }
  19585. _ACEOF
  19586. if ac_fn_c_try_compile "$LINENO"; then :
  19587. have_usbhid_new=yes
  19588. fi
  19589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19590. if test x$have_usbhid_new = xyes; then
  19591. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19592. fi
  19593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19594. $as_echo "$have_usbhid_new" >&6; }
  19595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19596. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19597. have_machine_joystick=no
  19598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19599. /* end confdefs.h. */
  19600. #include <machine/joystick.h>
  19601. int
  19602. main ()
  19603. {
  19604. struct joystick t;
  19605. ;
  19606. return 0;
  19607. }
  19608. _ACEOF
  19609. if ac_fn_c_try_compile "$LINENO"; then :
  19610. have_machine_joystick=yes
  19611. fi
  19612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19613. if test x$have_machine_joystick = xyes; then
  19614. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19615. fi
  19616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19617. $as_echo "$have_machine_joystick" >&6; }
  19618. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19619. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19620. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19621. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19622. have_joystick=yes
  19623. fi
  19624. CFLAGS="$save_CFLAGS"
  19625. fi
  19626. ;;
  19627. esac
  19628. }
  19629. CheckClockGettime()
  19630. {
  19631. # Check whether --enable-clock_gettime was given.
  19632. if test "${enable_clock_gettime+set}" = set; then :
  19633. enableval=$enable_clock_gettime;
  19634. else
  19635. enable_clock_gettime=yes
  19636. fi
  19637. if test x$enable_clock_gettime = xyes; then
  19638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19639. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19640. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19641. $as_echo_n "(cached) " >&6
  19642. else
  19643. ac_check_lib_save_LIBS=$LIBS
  19644. LIBS="-lrt $LIBS"
  19645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19646. /* end confdefs.h. */
  19647. /* Override any GCC internal prototype to avoid an error.
  19648. Use char because int might match the return type of a GCC
  19649. builtin and then its argument prototype would still apply. */
  19650. #ifdef __cplusplus
  19651. extern "C"
  19652. #endif
  19653. char clock_gettime ();
  19654. int
  19655. main ()
  19656. {
  19657. return clock_gettime ();
  19658. ;
  19659. return 0;
  19660. }
  19661. _ACEOF
  19662. if ac_fn_c_try_link "$LINENO"; then :
  19663. ac_cv_lib_rt_clock_gettime=yes
  19664. else
  19665. ac_cv_lib_rt_clock_gettime=no
  19666. fi
  19667. rm -f core conftest.err conftest.$ac_objext \
  19668. conftest$ac_exeext conftest.$ac_ext
  19669. LIBS=$ac_check_lib_save_LIBS
  19670. fi
  19671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19672. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19673. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19674. have_clock_gettime=yes
  19675. fi
  19676. if test x$have_clock_gettime = xyes; then
  19677. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19678. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19679. else
  19680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19681. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19682. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19683. $as_echo_n "(cached) " >&6
  19684. else
  19685. ac_check_lib_save_LIBS=$LIBS
  19686. LIBS="-lc $LIBS"
  19687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19688. /* end confdefs.h. */
  19689. /* Override any GCC internal prototype to avoid an error.
  19690. Use char because int might match the return type of a GCC
  19691. builtin and then its argument prototype would still apply. */
  19692. #ifdef __cplusplus
  19693. extern "C"
  19694. #endif
  19695. char clock_gettime ();
  19696. int
  19697. main ()
  19698. {
  19699. return clock_gettime ();
  19700. ;
  19701. return 0;
  19702. }
  19703. _ACEOF
  19704. if ac_fn_c_try_link "$LINENO"; then :
  19705. ac_cv_lib_c_clock_gettime=yes
  19706. else
  19707. ac_cv_lib_c_clock_gettime=no
  19708. fi
  19709. rm -f core conftest.err conftest.$ac_objext \
  19710. conftest$ac_exeext conftest.$ac_ext
  19711. LIBS=$ac_check_lib_save_LIBS
  19712. fi
  19713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19714. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19715. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19716. have_clock_gettime=yes
  19717. fi
  19718. if test x$have_clock_gettime = xyes; then
  19719. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19720. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19721. fi
  19722. fi
  19723. fi
  19724. }
  19725. CheckLinuxVersion()
  19726. {
  19727. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19728. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19729. have_linux_version_h=yes
  19730. fi
  19731. if test x$have_linux_version_h = xyes; then
  19732. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19733. fi
  19734. }
  19735. CheckRPATH()
  19736. {
  19737. # Check whether --enable-rpath was given.
  19738. if test "${enable_rpath+set}" = set; then :
  19739. enableval=$enable_rpath;
  19740. else
  19741. enable_rpath=yes
  19742. fi
  19743. }
  19744. CheckWarnAll
  19745. case "$host" in
  19746. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19747. case "$host" in
  19748. *-raspberry-linux*)
  19749. # Raspberry Pi
  19750. ARCH=linux
  19751. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19752. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19753. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19754. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19755. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19756. if test x$enable_video = xyes; then
  19757. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19758. # FIXME: confdefs? Not AC_DEFINE?
  19759. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19760. SUMMARY_video="${SUMMARY_video} rpi"
  19761. fi
  19762. ;;
  19763. *-*-androideabi*)
  19764. # Android
  19765. ARCH=android
  19766. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  19767. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  19768. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  19769. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  19770. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  19771. if test x$enable_video = xyes; then
  19772. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  19773. # FIXME: confdefs? Not AC_DEFINE?
  19774. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  19775. SUMMARY_video="${SUMMARY_video} android"
  19776. fi
  19777. ;;
  19778. *-*-linux*) ARCH=linux ;;
  19779. *-*-uclinux*) ARCH=linux ;;
  19780. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19781. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19782. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19783. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19784. *-*-bsdi*) ARCH=bsdi ;;
  19785. *-*-freebsd*) ARCH=freebsd ;;
  19786. *-*-dragonfly*) ARCH=freebsd ;;
  19787. *-raspberry-netbsd*)
  19788. # Raspberry Pi
  19789. ARCH=netbsd
  19790. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19791. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19792. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19793. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19794. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
  19795. if test x$enable_video = xyes; then
  19796. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19797. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19798. SUMMARY_video="${SUMMARY_video} raspberry"
  19799. fi
  19800. ;;
  19801. *-*-netbsd*) ARCH=netbsd ;;
  19802. *-*-openbsd*) ARCH=openbsd ;;
  19803. *-*-sysv5*) ARCH=sysv5 ;;
  19804. *-*-solaris*) ARCH=solaris ;;
  19805. *-*-hpux*) ARCH=hpux ;;
  19806. *-*-aix*) ARCH=aix ;;
  19807. *-*-minix*) ARCH=minix ;;
  19808. esac
  19809. CheckVisibilityHidden
  19810. CheckDeclarationAfterStatement
  19811. CheckDummyVideo
  19812. CheckDiskAudio
  19813. CheckDummyAudio
  19814. CheckDLOPEN
  19815. CheckOSS
  19816. CheckALSA
  19817. CheckPulseAudio
  19818. CheckARTSC
  19819. CheckESD
  19820. CheckNAS
  19821. CheckSNDIO
  19822. CheckFusionSound
  19823. CheckLibSampleRate
  19824. CheckX11
  19825. CheckDirectFB
  19826. CheckOpenGLX11
  19827. CheckOpenGLESX11
  19828. CheckMir
  19829. CheckWayland
  19830. CheckLibUDev
  19831. CheckDBus
  19832. CheckIME
  19833. CheckIBus
  19834. CheckFcitx
  19835. case $ARCH in
  19836. linux)
  19837. CheckInputEvents
  19838. CheckInputKD
  19839. ;;
  19840. esac
  19841. CheckTslib
  19842. CheckUSBHID
  19843. CheckPTHREAD
  19844. CheckClockGettime
  19845. CheckLinuxVersion
  19846. CheckRPATH
  19847. CheckVivanteVideo
  19848. # Set up files for the audio library
  19849. if test x$enable_audio = xyes; then
  19850. case $ARCH in
  19851. sysv5|solaris|hpux)
  19852. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19853. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19854. have_audio=yes
  19855. ;;
  19856. netbsd) # Don't use this on OpenBSD, it's busted.
  19857. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19858. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19859. have_audio=yes
  19860. ;;
  19861. aix)
  19862. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19863. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19864. have_audio=yes
  19865. ;;
  19866. android)
  19867. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  19868. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  19869. SUMMARY_audio="${SUMMARY_audio} android"
  19870. have_audio=yes
  19871. ;;
  19872. esac
  19873. fi
  19874. # Set up files for the joystick library
  19875. if test x$enable_joystick = xyes; then
  19876. case $ARCH in
  19877. linux)
  19878. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19879. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19880. have_joystick=yes
  19881. ;;
  19882. android)
  19883. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  19884. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  19885. have_joystick=yes
  19886. ;;
  19887. esac
  19888. fi
  19889. # Set up files for the haptic library
  19890. if test x$enable_haptic = xyes; then
  19891. if test x$use_input_events = xyes; then
  19892. case $ARCH in
  19893. linux)
  19894. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19895. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19896. have_haptic=yes
  19897. ;;
  19898. esac
  19899. fi
  19900. fi
  19901. # Set up files for the power library
  19902. if test x$enable_power = xyes; then
  19903. case $ARCH in
  19904. linux)
  19905. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19906. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19907. have_power=yes
  19908. ;;
  19909. android)
  19910. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  19911. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  19912. have_power=yes
  19913. ;;
  19914. esac
  19915. fi
  19916. # Set up files for the filesystem library
  19917. if test x$enable_filesystem = xyes; then
  19918. case $ARCH in
  19919. android)
  19920. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  19921. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  19922. have_filesystem=yes
  19923. ;;
  19924. *)
  19925. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19926. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19927. have_filesystem=yes
  19928. ;;
  19929. esac
  19930. fi
  19931. # Set up files for the timer library
  19932. if test x$enable_timers = xyes; then
  19933. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19934. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19935. have_timers=yes
  19936. fi
  19937. # Set up files for udev hotplugging support
  19938. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19939. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19940. fi
  19941. # Set up files for evdev input
  19942. if test x$use_input_events = xyes; then
  19943. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19944. fi
  19945. ;;
  19946. *-*-cygwin* | *-*-mingw32*)
  19947. ARCH=win32
  19948. if test "$build" != "$host"; then # cross-compiling
  19949. # Default cross-compile location
  19950. ac_default_prefix=/usr/local/cross-tools/$host
  19951. else
  19952. # Look for the location of the tools and install there
  19953. if test "$BUILD_PREFIX" != ""; then
  19954. ac_default_prefix=$BUILD_PREFIX
  19955. fi
  19956. fi
  19957. CheckDummyVideo
  19958. CheckDiskAudio
  19959. CheckDummyAudio
  19960. CheckWINDOWS
  19961. CheckWINDOWSGL
  19962. CheckWINDOWSGLES
  19963. CheckDIRECTX
  19964. # Set up the core platform files
  19965. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19966. # Set up files for the video library
  19967. if test x$enable_video = xyes; then
  19968. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19969. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19970. have_video=yes
  19971. # Check whether --enable-render-d3d was given.
  19972. if test "${enable_render_d3d+set}" = set; then :
  19973. enableval=$enable_render_d3d;
  19974. else
  19975. enable_render_d3d=yes
  19976. fi
  19977. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19978. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19979. fi
  19980. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  19981. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  19982. fi
  19983. fi
  19984. # Set up files for the audio library
  19985. if test x$enable_audio = xyes; then
  19986. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19987. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19988. if test x$have_dsound = xyes; then
  19989. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19990. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19991. fi
  19992. if test x$have_xaudio2 = xyes; then
  19993. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19994. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19995. fi
  19996. have_audio=yes
  19997. fi
  19998. # Set up files for the joystick library
  19999. if test x$enable_joystick = xyes; then
  20000. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20001. if test x$have_xinput = xyes; then
  20002. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20003. fi
  20004. if test x$have_dinput = xyes; then
  20005. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20006. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20007. fi
  20008. else
  20009. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20010. fi
  20011. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20012. have_joystick=yes
  20013. fi
  20014. if test x$enable_haptic = xyes; then
  20015. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20016. if test x$have_xinput = xyes; then
  20017. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20018. fi
  20019. if test x$have_dinput = xyes; then
  20020. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20021. fi
  20022. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20023. have_haptic=yes
  20024. fi
  20025. fi
  20026. if test x$enable_power = xyes; then
  20027. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20028. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20029. have_power=yes
  20030. fi
  20031. if test x$enable_filesystem = xyes; then
  20032. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20033. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20034. have_filesystem=yes
  20035. fi
  20036. # Set up files for the thread library
  20037. if test x$enable_threads = xyes; then
  20038. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20039. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20040. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20041. have_threads=yes
  20042. fi
  20043. # Set up files for the timer library
  20044. if test x$enable_timers = xyes; then
  20045. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20046. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20047. have_timers=yes
  20048. fi
  20049. # Set up files for the shared object loading library
  20050. if test x$enable_loadso = xyes; then
  20051. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20052. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20053. have_loadso=yes
  20054. fi
  20055. # Set up the system libraries we need
  20056. if test -f /lib/w32api/libuuid.a; then
  20057. LIBUUID=/lib/w32api/libuuid.a
  20058. else
  20059. LIBUUID=-luuid
  20060. fi
  20061. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20062. # The Windows platform requires special setup
  20063. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20064. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20065. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20066. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20067. # Check to see if this is a mingw or cygwin build
  20068. have_mingw32=
  20069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20070. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20071. if ${ac_cv_lib_mingw32_main+:} false; then :
  20072. $as_echo_n "(cached) " >&6
  20073. else
  20074. ac_check_lib_save_LIBS=$LIBS
  20075. LIBS="-lmingw32 $LIBS"
  20076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20077. /* end confdefs.h. */
  20078. int
  20079. main ()
  20080. {
  20081. return main ();
  20082. ;
  20083. return 0;
  20084. }
  20085. _ACEOF
  20086. if ac_fn_c_try_link "$LINENO"; then :
  20087. ac_cv_lib_mingw32_main=yes
  20088. else
  20089. ac_cv_lib_mingw32_main=no
  20090. fi
  20091. rm -f core conftest.err conftest.$ac_objext \
  20092. conftest$ac_exeext conftest.$ac_ext
  20093. LIBS=$ac_check_lib_save_LIBS
  20094. fi
  20095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20096. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20097. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20098. have_mingw32=yes
  20099. fi
  20100. if test x$have_mingw32 = xyes; then
  20101. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20102. else
  20103. SDL_LIBS="-lcygwin $SDL_LIBS"
  20104. fi
  20105. ;;
  20106. *-*-beos*)
  20107. as_fn_error $? "
  20108. *** BeOS support has been removed as of SDL 2.0.2.
  20109. " "$LINENO" 5
  20110. ;;
  20111. *-*-haiku*)
  20112. ARCH=haiku
  20113. ac_default_prefix=/boot/system
  20114. CheckDummyVideo
  20115. CheckDiskAudio
  20116. CheckDummyAudio
  20117. CheckDLOPEN
  20118. CheckHaikuVideo
  20119. CheckHaikuGL
  20120. CheckPTHREAD
  20121. # Set up files for the audio library
  20122. if test x$enable_audio = xyes; then
  20123. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20124. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20125. have_audio=yes
  20126. fi
  20127. # Set up files for the joystick library
  20128. if test x$enable_joystick = xyes; then
  20129. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20130. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20131. have_joystick=yes
  20132. fi
  20133. # Set up files for the timer library
  20134. if test x$enable_timers = xyes; then
  20135. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20136. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20137. have_timers=yes
  20138. fi
  20139. # Set up files for the system power library
  20140. if test x$enable_power = xyes; then
  20141. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20142. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20143. have_power=yes
  20144. fi
  20145. # Set up files for the system filesystem library
  20146. if test x$enable_filesystem = xyes; then
  20147. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20148. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20149. have_filesystem=yes
  20150. fi
  20151. # The Haiku platform requires special setup.
  20152. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20153. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20154. ;;
  20155. arm*-apple-darwin*)
  20156. # iOS - We are not writing anything to confdefs.h because you have to replace
  20157. # SDL_config.h for SDL_config_iphoneos.h anyway
  20158. ARCH=ios
  20159. CheckVisibilityHidden
  20160. CheckDeclarationAfterStatement
  20161. CheckDummyVideo
  20162. CheckDiskAudio
  20163. CheckDummyAudio
  20164. CheckDLOPEN
  20165. CheckCOCOA
  20166. CheckPTHREAD
  20167. # Set up files for the audio library
  20168. if test x$enable_audio = xyes; then
  20169. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20170. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20171. have_audio=yes
  20172. fi
  20173. # Set up files for the joystick library
  20174. if test x$enable_joystick = xyes; then
  20175. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20176. have_joystick=yes
  20177. fi
  20178. # Set up files for the haptic library
  20179. #if test x$enable_haptic = xyes; then
  20180. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20181. # have_haptic=yes
  20182. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20183. #fi
  20184. # Set up files for the power library
  20185. if test x$enable_power = xyes; then
  20186. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20187. have_power=yes
  20188. fi
  20189. # Set up files for the filesystem library
  20190. if test x$enable_filesystem = xyes; then
  20191. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20192. have_filesystem=yes
  20193. fi
  20194. # Set up files for the timer library
  20195. if test x$enable_timers = xyes; then
  20196. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20197. have_timers=yes
  20198. fi
  20199. # Set up additional files for the file library
  20200. if test x$enable_file = xyes; then
  20201. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20202. fi
  20203. # The iOS platform requires special setup.
  20204. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20205. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20206. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20207. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20208. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20209. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20210. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20211. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20212. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20213. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20214. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20215. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20216. ;;
  20217. *-*-darwin* )
  20218. # This could be either full "Mac OS X", or plain "Darwin" which is
  20219. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20220. # Next line is broken, and a few files below require Mac OS X (full)
  20221. ARCH=macosx
  20222. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20223. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20224. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20225. CheckVisibilityHidden
  20226. CheckDeclarationAfterStatement
  20227. CheckDummyVideo
  20228. CheckDiskAudio
  20229. CheckDummyAudio
  20230. CheckDLOPEN
  20231. CheckCOCOA
  20232. CheckX11
  20233. CheckMacGL
  20234. CheckOpenGLX11
  20235. CheckPTHREAD
  20236. # Set up files for the audio library
  20237. if test x$enable_audio = xyes; then
  20238. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20239. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20240. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20241. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20242. have_audio=yes
  20243. fi
  20244. # Set up files for the joystick library
  20245. if test x$enable_joystick = xyes; then
  20246. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20247. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20248. have_joystick=yes
  20249. fi
  20250. # Set up files for the haptic library
  20251. if test x$enable_haptic = xyes; then
  20252. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20253. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20254. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20255. have_haptic=yes
  20256. fi
  20257. # Set up files for the power library
  20258. if test x$enable_power = xyes; then
  20259. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20260. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20261. have_power=yes
  20262. fi
  20263. # Set up files for the filesystem library
  20264. if test x$enable_filesystem = xyes; then
  20265. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20266. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20267. have_filesystem=yes
  20268. fi
  20269. # Set up files for the timer library
  20270. if test x$enable_timers = xyes; then
  20271. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20272. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20273. have_timers=yes
  20274. fi
  20275. # Set up additional files for the file library
  20276. if test x$enable_file = xyes; then
  20277. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20278. fi
  20279. # The Mac OS X platform requires special setup.
  20280. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20281. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20282. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20283. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20284. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20285. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20286. ;;
  20287. *-nacl|*-pnacl)
  20288. ARCH=nacl
  20289. CheckNativeClient
  20290. CheckDummyAudio
  20291. CheckDummyVideo
  20292. CheckInputEvents
  20293. CheckPTHREAD
  20294. # Set up files for the timer library
  20295. if test x$enable_timers = xyes; then
  20296. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20297. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20298. have_timers=yes
  20299. fi
  20300. if test x$enable_filesystem = xyes; then
  20301. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20302. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20303. have_filesystem=yes
  20304. fi
  20305. ;;
  20306. *-*-emscripten* )
  20307. if test x$enable_video = xyes; then
  20308. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20309. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20310. have_video=yes
  20311. SUMMARY_video="${SUMMARY_video} emscripten"
  20312. fi
  20313. if test x$enable_audio = xyes; then
  20314. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20315. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20316. have_audio=yes
  20317. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20318. fi
  20319. CheckVisibilityHidden
  20320. CheckDeclarationAfterStatement
  20321. CheckDummyVideo
  20322. CheckDiskAudio
  20323. CheckDummyAudio
  20324. CheckDLOPEN
  20325. CheckClockGettime
  20326. CheckEmscriptenGLES
  20327. # Set up files for the power library
  20328. if test x$enable_power = xyes; then
  20329. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20330. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20331. have_power=yes
  20332. fi
  20333. # Set up files for the power library
  20334. if test x$enable_joystick = xyes; then
  20335. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20336. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20337. have_joystick=yes
  20338. fi
  20339. # Set up files for the filesystem library
  20340. if test x$enable_filesystem = xyes; then
  20341. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20342. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20343. have_filesystem=yes
  20344. fi
  20345. # Set up files for the timer library
  20346. if test x$enable_timers = xyes; then
  20347. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20348. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20349. have_timers=yes
  20350. fi
  20351. ;;
  20352. *)
  20353. as_fn_error $? "
  20354. *** Unsupported host: Please add to configure.in
  20355. " "$LINENO" 5
  20356. ;;
  20357. esac
  20358. # Verify that we have all the platform specific files we need
  20359. if test x$have_joystick != xyes; then
  20360. if test x$enable_joystick = xyes; then
  20361. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20362. fi
  20363. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20364. fi
  20365. if test x$have_haptic != xyes; then
  20366. if test x$enable_haptic = xyes; then
  20367. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20368. fi
  20369. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20370. fi
  20371. if test x$have_threads != xyes; then
  20372. if test x$enable_threads = xyes; then
  20373. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20374. fi
  20375. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20376. fi
  20377. if test x$have_timers != xyes; then
  20378. if test x$enable_timers = xyes; then
  20379. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20380. fi
  20381. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20382. fi
  20383. if test x$have_filesystem != xyes; then
  20384. if test x$enable_filesystem = xyes; then
  20385. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20386. fi
  20387. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20388. fi
  20389. if test x$have_loadso != xyes; then
  20390. if test x$enable_loadso = xyes; then
  20391. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20392. fi
  20393. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20394. fi
  20395. if test x$SDLMAIN_SOURCES = x; then
  20396. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20397. fi
  20398. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20399. if test x$video_wayland = xyes; then
  20400. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  20401. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  20402. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20403. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  20404. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20405. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  20406. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  20407. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  20408. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  20409. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20410. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20411. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  20412. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  20413. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20414. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20415. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  20416. WAYLAND_CORE_PROTOCOL_OBJECT="
  20417. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  20418. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  20419. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20420. do echo ; echo \$p | sed\
  20421. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20422. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20423. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  20424. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20425. do echo ; echo \$p | sed\
  20426. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20427. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20428. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  20429. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20430. do echo ; echo \$p | sed\
  20431. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  20432. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  20433. WAYLAND_PROTOCOLS_DEPENDS="
  20434. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  20435. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  20436. $WAYLAND_CORE_PROTOCOL_OBJECT
  20437. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  20438. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  20439. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  20440. "
  20441. fi
  20442. OBJECTS=`echo $SOURCES`
  20443. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20444. for EXT in asm cc m c S; do
  20445. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20446. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20447. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20448. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20449. done
  20450. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20451. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20452. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20453. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20454. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20455. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20456. \\$(WINDRES) \\$< \\$@,g"`
  20457. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20458. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20459. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20460. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20461. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20462. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20463. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20464. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20465. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20466. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20467. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20468. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20469. # Set runtime shared library paths as needed
  20470. if test "x$enable_rpath" = "xyes"; then
  20471. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20472. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  20474. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  20475. have_enable_new_dtags=no
  20476. save_LDFLAGS="$LDFLAGS"
  20477. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  20478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20479. /* end confdefs.h. */
  20480. int
  20481. main ()
  20482. {
  20483. ;
  20484. return 0;
  20485. }
  20486. _ACEOF
  20487. if ac_fn_c_try_link "$LINENO"; then :
  20488. have_enable_new_dtags=yes
  20489. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  20490. fi
  20491. rm -f core conftest.err conftest.$ac_objext \
  20492. conftest$ac_exeext conftest.$ac_ext
  20493. LDFLAGS="$save_LDFLAGS"
  20494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  20495. $as_echo "$have_enable_new_dtags" >&6; }
  20496. fi
  20497. if test $ARCH = solaris; then
  20498. SDL_RLD_FLAGS="-R\${libdir}"
  20499. fi
  20500. else
  20501. SDL_RLD_FLAGS=""
  20502. fi
  20503. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20504. if test x$enable_shared = xyes; then
  20505. ENABLE_SHARED_TRUE=
  20506. ENABLE_SHARED_FALSE="#"
  20507. else
  20508. ENABLE_SHARED_TRUE="#"
  20509. ENABLE_SHARED_FALSE=
  20510. fi
  20511. if test x$enable_static = xyes; then
  20512. ENABLE_STATIC_TRUE=
  20513. ENABLE_STATIC_FALSE="#"
  20514. else
  20515. ENABLE_STATIC_TRUE="#"
  20516. ENABLE_STATIC_FALSE=
  20517. fi
  20518. cat >Makefile.rules <<__EOF__
  20519. # Build rules for objects
  20520. -include \$(OBJECTS:.lo=.d)
  20521. # Special dependency for SDL.c, since it depends on SDL_revision.h
  20522. $srcdir/src/SDL.c: update-revision
  20523. $DEPENDS
  20524. $VERSION_DEPENDS
  20525. $SDLMAIN_DEPENDS
  20526. $SDLTEST_DEPENDS
  20527. $WAYLAND_PROTOCOLS_DEPENDS
  20528. __EOF__
  20529. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  20530. ac_config_commands="$ac_config_commands sdl2_config"
  20531. SUMMARY="SDL2 Configure Summary:\n"
  20532. if test x$enable_shared = xyes; then
  20533. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  20534. fi
  20535. if test x$enable_static = xyes; then
  20536. SUMMARY="${SUMMARY}Building Static Libraries\n"
  20537. fi
  20538. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  20539. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  20540. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  20541. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  20542. if test x$have_x = xyes; then
  20543. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  20544. fi
  20545. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  20546. if test x$have_libudev_h_hdr = xyes; then
  20547. SUMMARY="${SUMMARY}Using libudev : YES\n"
  20548. else
  20549. SUMMARY="${SUMMARY}Using libudev : NO\n"
  20550. fi
  20551. if test x$have_dbus_dbus_h_hdr = xyes; then
  20552. SUMMARY="${SUMMARY}Using dbus : YES\n"
  20553. else
  20554. SUMMARY="${SUMMARY}Using dbus : NO\n"
  20555. fi
  20556. if test x$enable_ime = xyes; then
  20557. SUMMARY="${SUMMARY}Using ime : YES\n"
  20558. else
  20559. SUMMARY="${SUMMARY}Using ime : NO\n"
  20560. fi
  20561. if test x$have_ibus_ibus_h_hdr = xyes; then
  20562. SUMMARY="${SUMMARY}Using ibus : YES\n"
  20563. else
  20564. SUMMARY="${SUMMARY}Using ibus : NO\n"
  20565. fi
  20566. if test x$have_fcitx_frontend_h_hdr = xyes; then
  20567. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  20568. else
  20569. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  20570. fi
  20571. ac_config_commands="$ac_config_commands summary"
  20572. cat >confcache <<\_ACEOF
  20573. # This file is a shell script that caches the results of configure
  20574. # tests run on this system so they can be shared between configure
  20575. # scripts and configure runs, see configure's option --config-cache.
  20576. # It is not useful on other systems. If it contains results you don't
  20577. # want to keep, you may remove or edit it.
  20578. #
  20579. # config.status only pays attention to the cache file if you give it
  20580. # the --recheck option to rerun configure.
  20581. #
  20582. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20583. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20584. # following values.
  20585. _ACEOF
  20586. # The following way of writing the cache mishandles newlines in values,
  20587. # but we know of no workaround that is simple, portable, and efficient.
  20588. # So, we kill variables containing newlines.
  20589. # Ultrix sh set writes to stderr and can't be redirected directly,
  20590. # and sets the high bit in the cache file unless we assign to the vars.
  20591. (
  20592. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20593. eval ac_val=\$$ac_var
  20594. case $ac_val in #(
  20595. *${as_nl}*)
  20596. case $ac_var in #(
  20597. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20598. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20599. esac
  20600. case $ac_var in #(
  20601. _ | IFS | as_nl) ;; #(
  20602. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20603. *) { eval $ac_var=; unset $ac_var;} ;;
  20604. esac ;;
  20605. esac
  20606. done
  20607. (set) 2>&1 |
  20608. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20609. *${as_nl}ac_space=\ *)
  20610. # `set' does not quote correctly, so add quotes: double-quote
  20611. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20612. sed -n \
  20613. "s/'/'\\\\''/g;
  20614. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20615. ;; #(
  20616. *)
  20617. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20618. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20619. ;;
  20620. esac |
  20621. sort
  20622. ) |
  20623. sed '
  20624. /^ac_cv_env_/b end
  20625. t clear
  20626. :clear
  20627. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20628. t end
  20629. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20630. :end' >>confcache
  20631. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20632. if test -w "$cache_file"; then
  20633. if test "x$cache_file" != "x/dev/null"; then
  20634. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20635. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20636. if test ! -f "$cache_file" || test -h "$cache_file"; then
  20637. cat confcache >"$cache_file"
  20638. else
  20639. case $cache_file in #(
  20640. */* | ?:*)
  20641. mv -f confcache "$cache_file"$$ &&
  20642. mv -f "$cache_file"$$ "$cache_file" ;; #(
  20643. *)
  20644. mv -f confcache "$cache_file" ;;
  20645. esac
  20646. fi
  20647. fi
  20648. else
  20649. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20650. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20651. fi
  20652. fi
  20653. rm -f confcache
  20654. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20655. # Let make expand exec_prefix.
  20656. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20657. DEFS=-DHAVE_CONFIG_H
  20658. ac_libobjs=
  20659. ac_ltlibobjs=
  20660. U=
  20661. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20662. # 1. Remove the extension, and $U if already installed.
  20663. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20664. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20665. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20666. # will be set to the directory where LIBOBJS objects are built.
  20667. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20668. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20669. done
  20670. LIBOBJS=$ac_libobjs
  20671. LTLIBOBJS=$ac_ltlibobjs
  20672. : "${CONFIG_STATUS=./config.status}"
  20673. ac_write_fail=0
  20674. ac_clean_files_save=$ac_clean_files
  20675. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20676. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20677. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20678. as_write_fail=0
  20679. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20680. #! $SHELL
  20681. # Generated by $as_me.
  20682. # Run this file to recreate the current configuration.
  20683. # Compiler output produced by configure, useful for debugging
  20684. # configure, is in config.log if it exists.
  20685. debug=false
  20686. ac_cs_recheck=false
  20687. ac_cs_silent=false
  20688. SHELL=\${CONFIG_SHELL-$SHELL}
  20689. export SHELL
  20690. _ASEOF
  20691. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20692. ## -------------------- ##
  20693. ## M4sh Initialization. ##
  20694. ## -------------------- ##
  20695. # Be more Bourne compatible
  20696. DUALCASE=1; export DUALCASE # for MKS sh
  20697. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20698. emulate sh
  20699. NULLCMD=:
  20700. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20701. # is contrary to our usage. Disable this feature.
  20702. alias -g '${1+"$@"}'='"$@"'
  20703. setopt NO_GLOB_SUBST
  20704. else
  20705. case `(set -o) 2>/dev/null` in #(
  20706. *posix*) :
  20707. set -o posix ;; #(
  20708. *) :
  20709. ;;
  20710. esac
  20711. fi
  20712. as_nl='
  20713. '
  20714. export as_nl
  20715. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20716. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20717. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20718. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20719. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20720. # but without wasting forks for bash or zsh.
  20721. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20722. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20723. as_echo='print -r --'
  20724. as_echo_n='print -rn --'
  20725. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20726. as_echo='printf %s\n'
  20727. as_echo_n='printf %s'
  20728. else
  20729. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20730. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20731. as_echo_n='/usr/ucb/echo -n'
  20732. else
  20733. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20734. as_echo_n_body='eval
  20735. arg=$1;
  20736. case $arg in #(
  20737. *"$as_nl"*)
  20738. expr "X$arg" : "X\\(.*\\)$as_nl";
  20739. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20740. esac;
  20741. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20742. '
  20743. export as_echo_n_body
  20744. as_echo_n='sh -c $as_echo_n_body as_echo'
  20745. fi
  20746. export as_echo_body
  20747. as_echo='sh -c $as_echo_body as_echo'
  20748. fi
  20749. # The user is always right.
  20750. if test "${PATH_SEPARATOR+set}" != set; then
  20751. PATH_SEPARATOR=:
  20752. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20753. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20754. PATH_SEPARATOR=';'
  20755. }
  20756. fi
  20757. # IFS
  20758. # We need space, tab and new line, in precisely that order. Quoting is
  20759. # there to prevent editors from complaining about space-tab.
  20760. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20761. # splitting by setting IFS to empty value.)
  20762. IFS=" "" $as_nl"
  20763. # Find who we are. Look in the path if we contain no directory separator.
  20764. as_myself=
  20765. case $0 in #((
  20766. *[\\/]* ) as_myself=$0 ;;
  20767. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20768. for as_dir in $PATH
  20769. do
  20770. IFS=$as_save_IFS
  20771. test -z "$as_dir" && as_dir=.
  20772. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20773. done
  20774. IFS=$as_save_IFS
  20775. ;;
  20776. esac
  20777. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20778. # in which case we are not to be found in the path.
  20779. if test "x$as_myself" = x; then
  20780. as_myself=$0
  20781. fi
  20782. if test ! -f "$as_myself"; then
  20783. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20784. exit 1
  20785. fi
  20786. # Unset variables that we do not need and which cause bugs (e.g. in
  20787. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20788. # suppresses any "Segmentation fault" message there. '((' could
  20789. # trigger a bug in pdksh 5.2.14.
  20790. for as_var in BASH_ENV ENV MAIL MAILPATH
  20791. do eval test x\${$as_var+set} = xset \
  20792. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20793. done
  20794. PS1='$ '
  20795. PS2='> '
  20796. PS4='+ '
  20797. # NLS nuisances.
  20798. LC_ALL=C
  20799. export LC_ALL
  20800. LANGUAGE=C
  20801. export LANGUAGE
  20802. # CDPATH.
  20803. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20804. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20805. # ----------------------------------------
  20806. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20807. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20808. # script with STATUS, using 1 if that was 0.
  20809. as_fn_error ()
  20810. {
  20811. as_status=$1; test $as_status -eq 0 && as_status=1
  20812. if test "$4"; then
  20813. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20814. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20815. fi
  20816. $as_echo "$as_me: error: $2" >&2
  20817. as_fn_exit $as_status
  20818. } # as_fn_error
  20819. # as_fn_set_status STATUS
  20820. # -----------------------
  20821. # Set $? to STATUS, without forking.
  20822. as_fn_set_status ()
  20823. {
  20824. return $1
  20825. } # as_fn_set_status
  20826. # as_fn_exit STATUS
  20827. # -----------------
  20828. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20829. as_fn_exit ()
  20830. {
  20831. set +e
  20832. as_fn_set_status $1
  20833. exit $1
  20834. } # as_fn_exit
  20835. # as_fn_unset VAR
  20836. # ---------------
  20837. # Portably unset VAR.
  20838. as_fn_unset ()
  20839. {
  20840. { eval $1=; unset $1;}
  20841. }
  20842. as_unset=as_fn_unset
  20843. # as_fn_append VAR VALUE
  20844. # ----------------------
  20845. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20846. # advantage of any shell optimizations that allow amortized linear growth over
  20847. # repeated appends, instead of the typical quadratic growth present in naive
  20848. # implementations.
  20849. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20850. eval 'as_fn_append ()
  20851. {
  20852. eval $1+=\$2
  20853. }'
  20854. else
  20855. as_fn_append ()
  20856. {
  20857. eval $1=\$$1\$2
  20858. }
  20859. fi # as_fn_append
  20860. # as_fn_arith ARG...
  20861. # ------------------
  20862. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20863. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20864. # must be portable across $(()) and expr.
  20865. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20866. eval 'as_fn_arith ()
  20867. {
  20868. as_val=$(( $* ))
  20869. }'
  20870. else
  20871. as_fn_arith ()
  20872. {
  20873. as_val=`expr "$@" || test $? -eq 1`
  20874. }
  20875. fi # as_fn_arith
  20876. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20877. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20878. as_expr=expr
  20879. else
  20880. as_expr=false
  20881. fi
  20882. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20883. as_basename=basename
  20884. else
  20885. as_basename=false
  20886. fi
  20887. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20888. as_dirname=dirname
  20889. else
  20890. as_dirname=false
  20891. fi
  20892. as_me=`$as_basename -- "$0" ||
  20893. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20894. X"$0" : 'X\(//\)$' \| \
  20895. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20896. $as_echo X/"$0" |
  20897. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20898. s//\1/
  20899. q
  20900. }
  20901. /^X\/\(\/\/\)$/{
  20902. s//\1/
  20903. q
  20904. }
  20905. /^X\/\(\/\).*/{
  20906. s//\1/
  20907. q
  20908. }
  20909. s/.*/./; q'`
  20910. # Avoid depending upon Character Ranges.
  20911. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20912. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20913. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20914. as_cr_digits='0123456789'
  20915. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20916. ECHO_C= ECHO_N= ECHO_T=
  20917. case `echo -n x` in #(((((
  20918. -n*)
  20919. case `echo 'xy\c'` in
  20920. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20921. xy) ECHO_C='\c';;
  20922. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20923. ECHO_T=' ';;
  20924. esac;;
  20925. *)
  20926. ECHO_N='-n';;
  20927. esac
  20928. rm -f conf$$ conf$$.exe conf$$.file
  20929. if test -d conf$$.dir; then
  20930. rm -f conf$$.dir/conf$$.file
  20931. else
  20932. rm -f conf$$.dir
  20933. mkdir conf$$.dir 2>/dev/null
  20934. fi
  20935. if (echo >conf$$.file) 2>/dev/null; then
  20936. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20937. as_ln_s='ln -s'
  20938. # ... but there are two gotchas:
  20939. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20940. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20941. # In both cases, we have to default to `cp -pR'.
  20942. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20943. as_ln_s='cp -pR'
  20944. elif ln conf$$.file conf$$ 2>/dev/null; then
  20945. as_ln_s=ln
  20946. else
  20947. as_ln_s='cp -pR'
  20948. fi
  20949. else
  20950. as_ln_s='cp -pR'
  20951. fi
  20952. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20953. rmdir conf$$.dir 2>/dev/null
  20954. # as_fn_mkdir_p
  20955. # -------------
  20956. # Create "$as_dir" as a directory, including parents if necessary.
  20957. as_fn_mkdir_p ()
  20958. {
  20959. case $as_dir in #(
  20960. -*) as_dir=./$as_dir;;
  20961. esac
  20962. test -d "$as_dir" || eval $as_mkdir_p || {
  20963. as_dirs=
  20964. while :; do
  20965. case $as_dir in #(
  20966. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20967. *) as_qdir=$as_dir;;
  20968. esac
  20969. as_dirs="'$as_qdir' $as_dirs"
  20970. as_dir=`$as_dirname -- "$as_dir" ||
  20971. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20972. X"$as_dir" : 'X\(//\)[^/]' \| \
  20973. X"$as_dir" : 'X\(//\)$' \| \
  20974. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20975. $as_echo X"$as_dir" |
  20976. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20977. s//\1/
  20978. q
  20979. }
  20980. /^X\(\/\/\)[^/].*/{
  20981. s//\1/
  20982. q
  20983. }
  20984. /^X\(\/\/\)$/{
  20985. s//\1/
  20986. q
  20987. }
  20988. /^X\(\/\).*/{
  20989. s//\1/
  20990. q
  20991. }
  20992. s/.*/./; q'`
  20993. test -d "$as_dir" && break
  20994. done
  20995. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20996. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20997. } # as_fn_mkdir_p
  20998. if mkdir -p . 2>/dev/null; then
  20999. as_mkdir_p='mkdir -p "$as_dir"'
  21000. else
  21001. test -d ./-p && rmdir ./-p
  21002. as_mkdir_p=false
  21003. fi
  21004. # as_fn_executable_p FILE
  21005. # -----------------------
  21006. # Test if FILE is an executable regular file.
  21007. as_fn_executable_p ()
  21008. {
  21009. test -f "$1" && test -x "$1"
  21010. } # as_fn_executable_p
  21011. as_test_x='test -x'
  21012. as_executable_p=as_fn_executable_p
  21013. # Sed expression to map a string onto a valid CPP name.
  21014. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21015. # Sed expression to map a string onto a valid variable name.
  21016. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21017. exec 6>&1
  21018. ## ----------------------------------- ##
  21019. ## Main body of $CONFIG_STATUS script. ##
  21020. ## ----------------------------------- ##
  21021. _ASEOF
  21022. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21023. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21024. # Save the log message, to keep $0 and so on meaningful, and to
  21025. # report actual input values of CONFIG_FILES etc. instead of their
  21026. # values after options handling.
  21027. ac_log="
  21028. This file was extended by $as_me, which was
  21029. generated by GNU Autoconf 2.69. Invocation command line was
  21030. CONFIG_FILES = $CONFIG_FILES
  21031. CONFIG_HEADERS = $CONFIG_HEADERS
  21032. CONFIG_LINKS = $CONFIG_LINKS
  21033. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21034. $ $0 $@
  21035. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21036. "
  21037. _ACEOF
  21038. case $ac_config_files in *"
  21039. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21040. esac
  21041. case $ac_config_headers in *"
  21042. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21043. esac
  21044. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21045. # Files that config.status was made for.
  21046. config_files="$ac_config_files"
  21047. config_headers="$ac_config_headers"
  21048. config_commands="$ac_config_commands"
  21049. _ACEOF
  21050. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21051. ac_cs_usage="\
  21052. \`$as_me' instantiates files and other configuration actions
  21053. from templates according to the current configuration. Unless the files
  21054. and actions are specified as TAGs, all are instantiated by default.
  21055. Usage: $0 [OPTION]... [TAG]...
  21056. -h, --help print this help, then exit
  21057. -V, --version print version number and configuration settings, then exit
  21058. --config print configuration, then exit
  21059. -q, --quiet, --silent
  21060. do not print progress messages
  21061. -d, --debug don't remove temporary files
  21062. --recheck update $as_me by reconfiguring in the same conditions
  21063. --file=FILE[:TEMPLATE]
  21064. instantiate the configuration file FILE
  21065. --header=FILE[:TEMPLATE]
  21066. instantiate the configuration header FILE
  21067. Configuration files:
  21068. $config_files
  21069. Configuration headers:
  21070. $config_headers
  21071. Configuration commands:
  21072. $config_commands
  21073. Report bugs to the package provider."
  21074. _ACEOF
  21075. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21076. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21077. ac_cs_version="\\
  21078. config.status
  21079. configured by $0, generated by GNU Autoconf 2.69,
  21080. with options \\"\$ac_cs_config\\"
  21081. Copyright (C) 2012 Free Software Foundation, Inc.
  21082. This config.status script is free software; the Free Software Foundation
  21083. gives unlimited permission to copy, distribute and modify it."
  21084. ac_pwd='$ac_pwd'
  21085. srcdir='$srcdir'
  21086. INSTALL='$INSTALL'
  21087. AWK='$AWK'
  21088. test -n "\$AWK" || AWK=awk
  21089. _ACEOF
  21090. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21091. # The default lists apply if the user does not specify any file.
  21092. ac_need_defaults=:
  21093. while test $# != 0
  21094. do
  21095. case $1 in
  21096. --*=?*)
  21097. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21098. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21099. ac_shift=:
  21100. ;;
  21101. --*=)
  21102. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21103. ac_optarg=
  21104. ac_shift=:
  21105. ;;
  21106. *)
  21107. ac_option=$1
  21108. ac_optarg=$2
  21109. ac_shift=shift
  21110. ;;
  21111. esac
  21112. case $ac_option in
  21113. # Handling of the options.
  21114. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21115. ac_cs_recheck=: ;;
  21116. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21117. $as_echo "$ac_cs_version"; exit ;;
  21118. --config | --confi | --conf | --con | --co | --c )
  21119. $as_echo "$ac_cs_config"; exit ;;
  21120. --debug | --debu | --deb | --de | --d | -d )
  21121. debug=: ;;
  21122. --file | --fil | --fi | --f )
  21123. $ac_shift
  21124. case $ac_optarg in
  21125. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21126. '') as_fn_error $? "missing file argument" ;;
  21127. esac
  21128. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21129. ac_need_defaults=false;;
  21130. --header | --heade | --head | --hea )
  21131. $ac_shift
  21132. case $ac_optarg in
  21133. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21134. esac
  21135. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21136. ac_need_defaults=false;;
  21137. --he | --h)
  21138. # Conflict between --help and --header
  21139. as_fn_error $? "ambiguous option: \`$1'
  21140. Try \`$0 --help' for more information.";;
  21141. --help | --hel | -h )
  21142. $as_echo "$ac_cs_usage"; exit ;;
  21143. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21144. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21145. ac_cs_silent=: ;;
  21146. # This is an error.
  21147. -*) as_fn_error $? "unrecognized option: \`$1'
  21148. Try \`$0 --help' for more information." ;;
  21149. *) as_fn_append ac_config_targets " $1"
  21150. ac_need_defaults=false ;;
  21151. esac
  21152. shift
  21153. done
  21154. ac_configure_extra_args=
  21155. if $ac_cs_silent; then
  21156. exec 6>/dev/null
  21157. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21158. fi
  21159. _ACEOF
  21160. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21161. if \$ac_cs_recheck; then
  21162. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21163. shift
  21164. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21165. CONFIG_SHELL='$SHELL'
  21166. export CONFIG_SHELL
  21167. exec "\$@"
  21168. fi
  21169. _ACEOF
  21170. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21171. exec 5>>config.log
  21172. {
  21173. echo
  21174. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21175. ## Running $as_me. ##
  21176. _ASBOX
  21177. $as_echo "$ac_log"
  21178. } >&5
  21179. _ACEOF
  21180. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21181. #
  21182. # INIT-COMMANDS
  21183. #
  21184. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21185. # if CDPATH is set.
  21186. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21187. sed_quote_subst='$sed_quote_subst'
  21188. double_quote_subst='$double_quote_subst'
  21189. delay_variable_subst='$delay_variable_subst'
  21190. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21191. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21192. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21193. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21194. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21195. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21196. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21197. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21198. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21199. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21200. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21201. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21202. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21203. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21204. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21205. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21206. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21207. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21208. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21209. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21210. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21211. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21212. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21213. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21214. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21215. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21216. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21217. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21218. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21219. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21220. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21221. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21222. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21223. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21224. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21225. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21226. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21227. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21228. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21229. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21230. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21231. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21232. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21233. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21234. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21235. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21236. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21237. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21238. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21239. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21240. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21241. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21242. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21243. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21244. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21245. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21246. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21247. 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"`'
  21248. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21249. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21250. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21251. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21252. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21253. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21254. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21255. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21256. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21257. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21258. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21259. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21260. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21261. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21262. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21263. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21264. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21265. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21266. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21267. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21268. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21269. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21270. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21271. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21272. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21273. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21274. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21275. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21276. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21277. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21278. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21279. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21280. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21281. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21282. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21283. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21284. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21285. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21286. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21287. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21288. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21289. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21290. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21291. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21292. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21293. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21294. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21295. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21296. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21297. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21298. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21299. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21300. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21301. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21302. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21303. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21304. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21305. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21306. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21307. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21308. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21309. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21310. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21311. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21312. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21313. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21314. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21315. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21316. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21317. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21318. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21319. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21320. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21321. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21322. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21323. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21324. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21325. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21326. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21327. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21328. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21329. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21330. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21331. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21332. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21333. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21334. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21335. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21336. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21337. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21338. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21339. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21340. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21341. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21342. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21343. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21344. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21345. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21346. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21347. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21348. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21349. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21350. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21351. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21352. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21353. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21354. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21355. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21356. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21357. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21358. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21359. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21360. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21361. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21362. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21363. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21364. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21365. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21366. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21367. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21368. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21369. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21370. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21371. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21372. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21373. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21374. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21375. LTCC='$LTCC'
  21376. LTCFLAGS='$LTCFLAGS'
  21377. compiler='$compiler_DEFAULT'
  21378. # A function that is used when there is no print builtin or printf.
  21379. func_fallback_echo ()
  21380. {
  21381. eval 'cat <<_LTECHO_EOF
  21382. \$1
  21383. _LTECHO_EOF'
  21384. }
  21385. # Quote evaled strings.
  21386. for var in AS \
  21387. DLLTOOL \
  21388. OBJDUMP \
  21389. SHELL \
  21390. ECHO \
  21391. PATH_SEPARATOR \
  21392. SED \
  21393. GREP \
  21394. EGREP \
  21395. FGREP \
  21396. LD \
  21397. NM \
  21398. LN_S \
  21399. lt_SP2NL \
  21400. lt_NL2SP \
  21401. reload_flag \
  21402. deplibs_check_method \
  21403. file_magic_cmd \
  21404. file_magic_glob \
  21405. want_nocaseglob \
  21406. sharedlib_from_linklib_cmd \
  21407. AR \
  21408. AR_FLAGS \
  21409. archiver_list_spec \
  21410. STRIP \
  21411. RANLIB \
  21412. CC \
  21413. CFLAGS \
  21414. compiler \
  21415. lt_cv_sys_global_symbol_pipe \
  21416. lt_cv_sys_global_symbol_to_cdecl \
  21417. lt_cv_sys_global_symbol_to_c_name_address \
  21418. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21419. nm_file_list_spec \
  21420. lt_prog_compiler_no_builtin_flag \
  21421. lt_prog_compiler_pic \
  21422. lt_prog_compiler_wl \
  21423. lt_prog_compiler_static \
  21424. lt_cv_prog_compiler_c_o \
  21425. need_locks \
  21426. MANIFEST_TOOL \
  21427. DSYMUTIL \
  21428. NMEDIT \
  21429. LIPO \
  21430. OTOOL \
  21431. OTOOL64 \
  21432. shrext_cmds \
  21433. export_dynamic_flag_spec \
  21434. whole_archive_flag_spec \
  21435. compiler_needs_object \
  21436. with_gnu_ld \
  21437. allow_undefined_flag \
  21438. no_undefined_flag \
  21439. hardcode_libdir_flag_spec \
  21440. hardcode_libdir_separator \
  21441. exclude_expsyms \
  21442. include_expsyms \
  21443. file_list_spec \
  21444. variables_saved_for_relink \
  21445. libname_spec \
  21446. library_names_spec \
  21447. soname_spec \
  21448. install_override_mode \
  21449. finish_eval \
  21450. old_striplib \
  21451. striplib \
  21452. compiler_lib_search_dirs \
  21453. predep_objects \
  21454. postdep_objects \
  21455. predeps \
  21456. postdeps \
  21457. compiler_lib_search_path \
  21458. LD_CXX \
  21459. reload_flag_CXX \
  21460. compiler_CXX \
  21461. lt_prog_compiler_no_builtin_flag_CXX \
  21462. lt_prog_compiler_pic_CXX \
  21463. lt_prog_compiler_wl_CXX \
  21464. lt_prog_compiler_static_CXX \
  21465. lt_cv_prog_compiler_c_o_CXX \
  21466. export_dynamic_flag_spec_CXX \
  21467. whole_archive_flag_spec_CXX \
  21468. compiler_needs_object_CXX \
  21469. with_gnu_ld_CXX \
  21470. allow_undefined_flag_CXX \
  21471. no_undefined_flag_CXX \
  21472. hardcode_libdir_flag_spec_CXX \
  21473. hardcode_libdir_separator_CXX \
  21474. exclude_expsyms_CXX \
  21475. include_expsyms_CXX \
  21476. file_list_spec_CXX \
  21477. compiler_lib_search_dirs_CXX \
  21478. predep_objects_CXX \
  21479. postdep_objects_CXX \
  21480. predeps_CXX \
  21481. postdeps_CXX \
  21482. compiler_lib_search_path_CXX; do
  21483. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21484. *[\\\\\\\`\\"\\\$]*)
  21485. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21486. ;;
  21487. *)
  21488. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21489. ;;
  21490. esac
  21491. done
  21492. # Double-quote double-evaled strings.
  21493. for var in reload_cmds \
  21494. old_postinstall_cmds \
  21495. old_postuninstall_cmds \
  21496. old_archive_cmds \
  21497. extract_expsyms_cmds \
  21498. old_archive_from_new_cmds \
  21499. old_archive_from_expsyms_cmds \
  21500. archive_cmds \
  21501. archive_expsym_cmds \
  21502. module_cmds \
  21503. module_expsym_cmds \
  21504. export_symbols_cmds \
  21505. prelink_cmds \
  21506. postlink_cmds \
  21507. postinstall_cmds \
  21508. postuninstall_cmds \
  21509. finish_cmds \
  21510. sys_lib_search_path_spec \
  21511. sys_lib_dlsearch_path_spec \
  21512. reload_cmds_CXX \
  21513. old_archive_cmds_CXX \
  21514. old_archive_from_new_cmds_CXX \
  21515. old_archive_from_expsyms_cmds_CXX \
  21516. archive_cmds_CXX \
  21517. archive_expsym_cmds_CXX \
  21518. module_cmds_CXX \
  21519. module_expsym_cmds_CXX \
  21520. export_symbols_cmds_CXX \
  21521. prelink_cmds_CXX \
  21522. postlink_cmds_CXX; do
  21523. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21524. *[\\\\\\\`\\"\\\$]*)
  21525. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21526. ;;
  21527. *)
  21528. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21529. ;;
  21530. esac
  21531. done
  21532. ac_aux_dir='$ac_aux_dir'
  21533. xsi_shell='$xsi_shell'
  21534. lt_shell_append='$lt_shell_append'
  21535. # See if we are running on zsh, and set the options which allow our
  21536. # commands through without removal of \ escapes INIT.
  21537. if test -n "\${ZSH_VERSION+set}" ; then
  21538. setopt NO_GLOB_SUBST
  21539. fi
  21540. PACKAGE='$PACKAGE'
  21541. VERSION='$VERSION'
  21542. TIMESTAMP='$TIMESTAMP'
  21543. RM='$RM'
  21544. ofile='$ofile'
  21545. SUMMARY="$SUMMARY"
  21546. _ACEOF
  21547. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21548. # Handling of arguments.
  21549. for ac_config_target in $ac_config_targets
  21550. do
  21551. case $ac_config_target in
  21552. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  21553. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21554. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  21555. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  21556. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  21557. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  21558. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  21559. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  21560. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  21561. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21562. esac
  21563. done
  21564. # If the user did not use the arguments to specify the items to instantiate,
  21565. # then the envvar interface is used. Set only those that are not.
  21566. # We use the long form for the default assignment because of an extremely
  21567. # bizarre bug on SunOS 4.1.3.
  21568. if $ac_need_defaults; then
  21569. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21570. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21571. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21572. fi
  21573. # Have a temporary directory for convenience. Make it in the build tree
  21574. # simply because there is no reason against having it here, and in addition,
  21575. # creating and moving files from /tmp can sometimes cause problems.
  21576. # Hook for its removal unless debugging.
  21577. # Note that there is a small window in which the directory will not be cleaned:
  21578. # after its creation but before its name has been assigned to `$tmp'.
  21579. $debug ||
  21580. {
  21581. tmp= ac_tmp=
  21582. trap 'exit_status=$?
  21583. : "${ac_tmp:=$tmp}"
  21584. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21585. ' 0
  21586. trap 'as_fn_exit 1' 1 2 13 15
  21587. }
  21588. # Create a (secure) tmp directory for tmp files.
  21589. {
  21590. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21591. test -d "$tmp"
  21592. } ||
  21593. {
  21594. tmp=./conf$$-$RANDOM
  21595. (umask 077 && mkdir "$tmp")
  21596. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  21597. ac_tmp=$tmp
  21598. # Set up the scripts for CONFIG_FILES section.
  21599. # No need to generate them if there are no CONFIG_FILES.
  21600. # This happens for instance with `./config.status config.h'.
  21601. if test -n "$CONFIG_FILES"; then
  21602. ac_cr=`echo X | tr X '\015'`
  21603. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  21604. # But we know of no other shell where ac_cr would be empty at this
  21605. # point, so we can use a bashism as a fallback.
  21606. if test "x$ac_cr" = x; then
  21607. eval ac_cr=\$\'\\r\'
  21608. fi
  21609. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21610. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21611. ac_cs_awk_cr='\\r'
  21612. else
  21613. ac_cs_awk_cr=$ac_cr
  21614. fi
  21615. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  21616. _ACEOF
  21617. {
  21618. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21619. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21620. echo "_ACEOF"
  21621. } >conf$$subs.sh ||
  21622. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21623. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  21624. ac_delim='%!_!# '
  21625. for ac_last_try in false false false false false :; do
  21626. . ./conf$$subs.sh ||
  21627. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21628. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21629. if test $ac_delim_n = $ac_delim_num; then
  21630. break
  21631. elif $ac_last_try; then
  21632. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21633. else
  21634. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21635. fi
  21636. done
  21637. rm -f conf$$subs.sh
  21638. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21639. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  21640. _ACEOF
  21641. sed -n '
  21642. h
  21643. s/^/S["/; s/!.*/"]=/
  21644. p
  21645. g
  21646. s/^[^!]*!//
  21647. :repl
  21648. t repl
  21649. s/'"$ac_delim"'$//
  21650. t delim
  21651. :nl
  21652. h
  21653. s/\(.\{148\}\)..*/\1/
  21654. t more1
  21655. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21656. p
  21657. n
  21658. b repl
  21659. :more1
  21660. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21661. p
  21662. g
  21663. s/.\{148\}//
  21664. t nl
  21665. :delim
  21666. h
  21667. s/\(.\{148\}\)..*/\1/
  21668. t more2
  21669. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21670. p
  21671. b
  21672. :more2
  21673. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21674. p
  21675. g
  21676. s/.\{148\}//
  21677. t delim
  21678. ' <conf$$subs.awk | sed '
  21679. /^[^""]/{
  21680. N
  21681. s/\n//
  21682. }
  21683. ' >>$CONFIG_STATUS || ac_write_fail=1
  21684. rm -f conf$$subs.awk
  21685. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21686. _ACAWK
  21687. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21688. for (key in S) S_is_set[key] = 1
  21689. FS = ""
  21690. }
  21691. {
  21692. line = $ 0
  21693. nfields = split(line, field, "@")
  21694. substed = 0
  21695. len = length(field[1])
  21696. for (i = 2; i < nfields; i++) {
  21697. key = field[i]
  21698. keylen = length(key)
  21699. if (S_is_set[key]) {
  21700. value = S[key]
  21701. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21702. len += length(value) + length(field[++i])
  21703. substed = 1
  21704. } else
  21705. len += 1 + keylen
  21706. }
  21707. print line
  21708. }
  21709. _ACAWK
  21710. _ACEOF
  21711. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21712. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21713. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21714. else
  21715. cat
  21716. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21717. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21718. _ACEOF
  21719. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21720. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21721. # trailing colons and then remove the whole line if VPATH becomes empty
  21722. # (actually we leave an empty line to preserve line numbers).
  21723. if test "x$srcdir" = x.; then
  21724. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21725. h
  21726. s///
  21727. s/^/:/
  21728. s/[ ]*$/:/
  21729. s/:\$(srcdir):/:/g
  21730. s/:\${srcdir}:/:/g
  21731. s/:@srcdir@:/:/g
  21732. s/^:*//
  21733. s/:*$//
  21734. x
  21735. s/\(=[ ]*\).*/\1/
  21736. G
  21737. s/\n//
  21738. s/^[^=]*=[ ]*$//
  21739. }'
  21740. fi
  21741. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21742. fi # test -n "$CONFIG_FILES"
  21743. # Set up the scripts for CONFIG_HEADERS section.
  21744. # No need to generate them if there are no CONFIG_HEADERS.
  21745. # This happens for instance with `./config.status Makefile'.
  21746. if test -n "$CONFIG_HEADERS"; then
  21747. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21748. BEGIN {
  21749. _ACEOF
  21750. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21751. # here-document in config.status, that substitutes the proper values into
  21752. # config.h.in to produce config.h.
  21753. # Create a delimiter string that does not exist in confdefs.h, to ease
  21754. # handling of long lines.
  21755. ac_delim='%!_!# '
  21756. for ac_last_try in false false :; do
  21757. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21758. if test -z "$ac_tt"; then
  21759. break
  21760. elif $ac_last_try; then
  21761. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21762. else
  21763. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21764. fi
  21765. done
  21766. # For the awk script, D is an array of macro values keyed by name,
  21767. # likewise P contains macro parameters if any. Preserve backslash
  21768. # newline sequences.
  21769. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21770. sed -n '
  21771. s/.\{148\}/&'"$ac_delim"'/g
  21772. t rset
  21773. :rset
  21774. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21775. t def
  21776. d
  21777. :def
  21778. s/\\$//
  21779. t bsnl
  21780. s/["\\]/\\&/g
  21781. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21782. D["\1"]=" \3"/p
  21783. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21784. d
  21785. :bsnl
  21786. s/["\\]/\\&/g
  21787. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21788. D["\1"]=" \3\\\\\\n"\\/p
  21789. t cont
  21790. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21791. t cont
  21792. d
  21793. :cont
  21794. n
  21795. s/.\{148\}/&'"$ac_delim"'/g
  21796. t clear
  21797. :clear
  21798. s/\\$//
  21799. t bsnlc
  21800. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21801. d
  21802. :bsnlc
  21803. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21804. b cont
  21805. ' <confdefs.h | sed '
  21806. s/'"$ac_delim"'/"\\\
  21807. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21808. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21809. for (key in D) D_is_set[key] = 1
  21810. FS = ""
  21811. }
  21812. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21813. line = \$ 0
  21814. split(line, arg, " ")
  21815. if (arg[1] == "#") {
  21816. defundef = arg[2]
  21817. mac1 = arg[3]
  21818. } else {
  21819. defundef = substr(arg[1], 2)
  21820. mac1 = arg[2]
  21821. }
  21822. split(mac1, mac2, "(") #)
  21823. macro = mac2[1]
  21824. prefix = substr(line, 1, index(line, defundef) - 1)
  21825. if (D_is_set[macro]) {
  21826. # Preserve the white space surrounding the "#".
  21827. print prefix "define", macro P[macro] D[macro]
  21828. next
  21829. } else {
  21830. # Replace #undef with comments. This is necessary, for example,
  21831. # in the case of _POSIX_SOURCE, which is predefined and required
  21832. # on some systems where configure will not decide to define it.
  21833. if (defundef == "undef") {
  21834. print "/*", prefix defundef, macro, "*/"
  21835. next
  21836. }
  21837. }
  21838. }
  21839. { print }
  21840. _ACAWK
  21841. _ACEOF
  21842. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21843. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21844. fi # test -n "$CONFIG_HEADERS"
  21845. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21846. shift
  21847. for ac_tag
  21848. do
  21849. case $ac_tag in
  21850. :[FHLC]) ac_mode=$ac_tag; continue;;
  21851. esac
  21852. case $ac_mode$ac_tag in
  21853. :[FHL]*:*);;
  21854. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21855. :[FH]-) ac_tag=-:-;;
  21856. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21857. esac
  21858. ac_save_IFS=$IFS
  21859. IFS=:
  21860. set x $ac_tag
  21861. IFS=$ac_save_IFS
  21862. shift
  21863. ac_file=$1
  21864. shift
  21865. case $ac_mode in
  21866. :L) ac_source=$1;;
  21867. :[FH])
  21868. ac_file_inputs=
  21869. for ac_f
  21870. do
  21871. case $ac_f in
  21872. -) ac_f="$ac_tmp/stdin";;
  21873. *) # Look for the file first in the build tree, then in the source tree
  21874. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21875. # because $ac_f cannot contain `:'.
  21876. test -f "$ac_f" ||
  21877. case $ac_f in
  21878. [\\/$]*) false;;
  21879. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21880. esac ||
  21881. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21882. esac
  21883. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21884. as_fn_append ac_file_inputs " '$ac_f'"
  21885. done
  21886. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21887. # use $as_me), people would be surprised to read:
  21888. # /* config.h. Generated by config.status. */
  21889. configure_input='Generated from '`
  21890. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21891. `' by configure.'
  21892. if test x"$ac_file" != x-; then
  21893. configure_input="$ac_file. $configure_input"
  21894. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21895. $as_echo "$as_me: creating $ac_file" >&6;}
  21896. fi
  21897. # Neutralize special characters interpreted by sed in replacement strings.
  21898. case $configure_input in #(
  21899. *\&* | *\|* | *\\* )
  21900. ac_sed_conf_input=`$as_echo "$configure_input" |
  21901. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21902. *) ac_sed_conf_input=$configure_input;;
  21903. esac
  21904. case $ac_tag in
  21905. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21906. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21907. esac
  21908. ;;
  21909. esac
  21910. ac_dir=`$as_dirname -- "$ac_file" ||
  21911. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21912. X"$ac_file" : 'X\(//\)[^/]' \| \
  21913. X"$ac_file" : 'X\(//\)$' \| \
  21914. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21915. $as_echo X"$ac_file" |
  21916. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21917. s//\1/
  21918. q
  21919. }
  21920. /^X\(\/\/\)[^/].*/{
  21921. s//\1/
  21922. q
  21923. }
  21924. /^X\(\/\/\)$/{
  21925. s//\1/
  21926. q
  21927. }
  21928. /^X\(\/\).*/{
  21929. s//\1/
  21930. q
  21931. }
  21932. s/.*/./; q'`
  21933. as_dir="$ac_dir"; as_fn_mkdir_p
  21934. ac_builddir=.
  21935. case "$ac_dir" in
  21936. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21937. *)
  21938. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21939. # A ".." for each directory in $ac_dir_suffix.
  21940. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21941. case $ac_top_builddir_sub in
  21942. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21943. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21944. esac ;;
  21945. esac
  21946. ac_abs_top_builddir=$ac_pwd
  21947. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21948. # for backward compatibility:
  21949. ac_top_builddir=$ac_top_build_prefix
  21950. case $srcdir in
  21951. .) # We are building in place.
  21952. ac_srcdir=.
  21953. ac_top_srcdir=$ac_top_builddir_sub
  21954. ac_abs_top_srcdir=$ac_pwd ;;
  21955. [\\/]* | ?:[\\/]* ) # Absolute name.
  21956. ac_srcdir=$srcdir$ac_dir_suffix;
  21957. ac_top_srcdir=$srcdir
  21958. ac_abs_top_srcdir=$srcdir ;;
  21959. *) # Relative name.
  21960. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21961. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21962. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21963. esac
  21964. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21965. case $ac_mode in
  21966. :F)
  21967. #
  21968. # CONFIG_FILE
  21969. #
  21970. case $INSTALL in
  21971. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21972. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21973. esac
  21974. _ACEOF
  21975. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21976. # If the template does not know about datarootdir, expand it.
  21977. # FIXME: This hack should be removed a few years after 2.60.
  21978. ac_datarootdir_hack=; ac_datarootdir_seen=
  21979. ac_sed_dataroot='
  21980. /datarootdir/ {
  21981. p
  21982. q
  21983. }
  21984. /@datadir@/p
  21985. /@docdir@/p
  21986. /@infodir@/p
  21987. /@localedir@/p
  21988. /@mandir@/p'
  21989. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21990. *datarootdir*) ac_datarootdir_seen=yes;;
  21991. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21993. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21994. _ACEOF
  21995. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21996. ac_datarootdir_hack='
  21997. s&@datadir@&$datadir&g
  21998. s&@docdir@&$docdir&g
  21999. s&@infodir@&$infodir&g
  22000. s&@localedir@&$localedir&g
  22001. s&@mandir@&$mandir&g
  22002. s&\\\${datarootdir}&$datarootdir&g' ;;
  22003. esac
  22004. _ACEOF
  22005. # Neutralize VPATH when `$srcdir' = `.'.
  22006. # Shell code in configure.ac might set extrasub.
  22007. # FIXME: do we really want to maintain this feature?
  22008. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22009. ac_sed_extra="$ac_vpsub
  22010. $extrasub
  22011. _ACEOF
  22012. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22013. :t
  22014. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22015. s|@configure_input@|$ac_sed_conf_input|;t t
  22016. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22017. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22018. s&@srcdir@&$ac_srcdir&;t t
  22019. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22020. s&@top_srcdir@&$ac_top_srcdir&;t t
  22021. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22022. s&@builddir@&$ac_builddir&;t t
  22023. s&@abs_builddir@&$ac_abs_builddir&;t t
  22024. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22025. s&@INSTALL@&$ac_INSTALL&;t t
  22026. $ac_datarootdir_hack
  22027. "
  22028. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22029. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22030. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22031. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22032. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22033. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22034. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22035. which seems to be undefined. Please make sure it is defined" >&5
  22036. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22037. which seems to be undefined. Please make sure it is defined" >&2;}
  22038. rm -f "$ac_tmp/stdin"
  22039. case $ac_file in
  22040. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22041. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22042. esac \
  22043. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22044. ;;
  22045. :H)
  22046. #
  22047. # CONFIG_HEADER
  22048. #
  22049. if test x"$ac_file" != x-; then
  22050. {
  22051. $as_echo "/* $configure_input */" \
  22052. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22053. } >"$ac_tmp/config.h" \
  22054. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22055. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22056. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22057. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22058. else
  22059. rm -f "$ac_file"
  22060. mv "$ac_tmp/config.h" "$ac_file" \
  22061. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22062. fi
  22063. else
  22064. $as_echo "/* $configure_input */" \
  22065. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22066. || as_fn_error $? "could not create -" "$LINENO" 5
  22067. fi
  22068. ;;
  22069. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22070. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22071. ;;
  22072. esac
  22073. case $ac_file$ac_mode in
  22074. "libtool":C)
  22075. # See if we are running on zsh, and set the options which allow our
  22076. # commands through without removal of \ escapes.
  22077. if test -n "${ZSH_VERSION+set}" ; then
  22078. setopt NO_GLOB_SUBST
  22079. fi
  22080. cfgfile="${ofile}T"
  22081. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22082. $RM "$cfgfile"
  22083. cat <<_LT_EOF >> "$cfgfile"
  22084. #! $SHELL
  22085. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22086. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22087. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22088. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22089. #
  22090. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22091. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22092. # Foundation, Inc.
  22093. # Written by Gordon Matzigkeit, 1996
  22094. #
  22095. # This file is part of GNU Libtool.
  22096. #
  22097. # GNU Libtool is free software; you can redistribute it and/or
  22098. # modify it under the terms of the GNU General Public License as
  22099. # published by the Free Software Foundation; either version 2 of
  22100. # the License, or (at your option) any later version.
  22101. #
  22102. # As a special exception to the GNU General Public License,
  22103. # if you distribute this file as part of a program or library that
  22104. # is built using GNU Libtool, you may include this file under the
  22105. # same distribution terms that you use for the rest of that program.
  22106. #
  22107. # GNU Libtool is distributed in the hope that it will be useful,
  22108. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22109. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22110. # GNU General Public License for more details.
  22111. #
  22112. # You should have received a copy of the GNU General Public License
  22113. # along with GNU Libtool; see the file COPYING. If not, a copy
  22114. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22115. # obtained by writing to the Free Software Foundation, Inc.,
  22116. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22117. # The names of the tagged configurations supported by this script.
  22118. available_tags="CXX "
  22119. # ### BEGIN LIBTOOL CONFIG
  22120. # Which release of libtool.m4 was used?
  22121. macro_version=$macro_version
  22122. macro_revision=$macro_revision
  22123. # Assembler program.
  22124. AS=$lt_AS
  22125. # DLL creation program.
  22126. DLLTOOL=$lt_DLLTOOL
  22127. # Object dumper program.
  22128. OBJDUMP=$lt_OBJDUMP
  22129. # Whether or not to build shared libraries.
  22130. build_libtool_libs=$enable_shared
  22131. # Whether or not to build static libraries.
  22132. build_old_libs=$enable_static
  22133. # What type of objects to build.
  22134. pic_mode=$pic_mode
  22135. # Whether or not to optimize for fast installation.
  22136. fast_install=$enable_fast_install
  22137. # Shell to use when invoking shell scripts.
  22138. SHELL=$lt_SHELL
  22139. # An echo program that protects backslashes.
  22140. ECHO=$lt_ECHO
  22141. # The PATH separator for the build system.
  22142. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22143. # The host system.
  22144. host_alias=$host_alias
  22145. host=$host
  22146. host_os=$host_os
  22147. # The build system.
  22148. build_alias=$build_alias
  22149. build=$build
  22150. build_os=$build_os
  22151. # A sed program that does not truncate output.
  22152. SED=$lt_SED
  22153. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22154. Xsed="\$SED -e 1s/^X//"
  22155. # A grep program that handles long lines.
  22156. GREP=$lt_GREP
  22157. # An ERE matcher.
  22158. EGREP=$lt_EGREP
  22159. # A literal string matcher.
  22160. FGREP=$lt_FGREP
  22161. # A BSD- or MS-compatible name lister.
  22162. NM=$lt_NM
  22163. # Whether we need soft or hard links.
  22164. LN_S=$lt_LN_S
  22165. # What is the maximum length of a command?
  22166. max_cmd_len=$max_cmd_len
  22167. # Object file suffix (normally "o").
  22168. objext=$ac_objext
  22169. # Executable file suffix (normally "").
  22170. exeext=$exeext
  22171. # whether the shell understands "unset".
  22172. lt_unset=$lt_unset
  22173. # turn spaces into newlines.
  22174. SP2NL=$lt_lt_SP2NL
  22175. # turn newlines into spaces.
  22176. NL2SP=$lt_lt_NL2SP
  22177. # convert \$build file names to \$host format.
  22178. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22179. # convert \$build files to toolchain format.
  22180. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22181. # Method to check whether dependent libraries are shared objects.
  22182. deplibs_check_method=$lt_deplibs_check_method
  22183. # Command to use when deplibs_check_method = "file_magic".
  22184. file_magic_cmd=$lt_file_magic_cmd
  22185. # How to find potential files when deplibs_check_method = "file_magic".
  22186. file_magic_glob=$lt_file_magic_glob
  22187. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22188. want_nocaseglob=$lt_want_nocaseglob
  22189. # Command to associate shared and link libraries.
  22190. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22191. # The archiver.
  22192. AR=$lt_AR
  22193. # Flags to create an archive.
  22194. AR_FLAGS=$lt_AR_FLAGS
  22195. # How to feed a file listing to the archiver.
  22196. archiver_list_spec=$lt_archiver_list_spec
  22197. # A symbol stripping program.
  22198. STRIP=$lt_STRIP
  22199. # Commands used to install an old-style archive.
  22200. RANLIB=$lt_RANLIB
  22201. old_postinstall_cmds=$lt_old_postinstall_cmds
  22202. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22203. # Whether to use a lock for old archive extraction.
  22204. lock_old_archive_extraction=$lock_old_archive_extraction
  22205. # A C compiler.
  22206. LTCC=$lt_CC
  22207. # LTCC compiler flags.
  22208. LTCFLAGS=$lt_CFLAGS
  22209. # Take the output of nm and produce a listing of raw symbols and C names.
  22210. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22211. # Transform the output of nm in a proper C declaration.
  22212. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22213. # Transform the output of nm in a C name address pair.
  22214. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22215. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22216. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22217. # Specify filename containing input files for \$NM.
  22218. nm_file_list_spec=$lt_nm_file_list_spec
  22219. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22220. lt_sysroot=$lt_sysroot
  22221. # The name of the directory that contains temporary libtool files.
  22222. objdir=$objdir
  22223. # Used to examine libraries when file_magic_cmd begins with "file".
  22224. MAGIC_CMD=$MAGIC_CMD
  22225. # Must we lock files when doing compilation?
  22226. need_locks=$lt_need_locks
  22227. # Manifest tool.
  22228. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22229. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22230. DSYMUTIL=$lt_DSYMUTIL
  22231. # Tool to change global to local symbols on Mac OS X.
  22232. NMEDIT=$lt_NMEDIT
  22233. # Tool to manipulate fat objects and archives on Mac OS X.
  22234. LIPO=$lt_LIPO
  22235. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22236. OTOOL=$lt_OTOOL
  22237. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22238. OTOOL64=$lt_OTOOL64
  22239. # Old archive suffix (normally "a").
  22240. libext=$libext
  22241. # Shared library suffix (normally ".so").
  22242. shrext_cmds=$lt_shrext_cmds
  22243. # The commands to extract the exported symbol list from a shared archive.
  22244. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22245. # Variables whose values should be saved in libtool wrapper scripts and
  22246. # restored at link time.
  22247. variables_saved_for_relink=$lt_variables_saved_for_relink
  22248. # Do we need the "lib" prefix for modules?
  22249. need_lib_prefix=$need_lib_prefix
  22250. # Do we need a version for libraries?
  22251. need_version=$need_version
  22252. # Library versioning type.
  22253. version_type=$version_type
  22254. # Shared library runtime path variable.
  22255. runpath_var=$runpath_var
  22256. # Shared library path variable.
  22257. shlibpath_var=$shlibpath_var
  22258. # Is shlibpath searched before the hard-coded library search path?
  22259. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22260. # Format of library name prefix.
  22261. libname_spec=$lt_libname_spec
  22262. # List of archive names. First name is the real one, the rest are links.
  22263. # The last name is the one that the linker finds with -lNAME
  22264. library_names_spec=$lt_library_names_spec
  22265. # The coded name of the library, if different from the real name.
  22266. soname_spec=$lt_soname_spec
  22267. # Permission mode override for installation of shared libraries.
  22268. install_override_mode=$lt_install_override_mode
  22269. # Command to use after installation of a shared archive.
  22270. postinstall_cmds=$lt_postinstall_cmds
  22271. # Command to use after uninstallation of a shared archive.
  22272. postuninstall_cmds=$lt_postuninstall_cmds
  22273. # Commands used to finish a libtool library installation in a directory.
  22274. finish_cmds=$lt_finish_cmds
  22275. # As "finish_cmds", except a single script fragment to be evaled but
  22276. # not shown.
  22277. finish_eval=$lt_finish_eval
  22278. # Whether we should hardcode library paths into libraries.
  22279. hardcode_into_libs=$hardcode_into_libs
  22280. # Compile-time system search path for libraries.
  22281. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22282. # Run-time system search path for libraries.
  22283. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22284. # Whether dlopen is supported.
  22285. dlopen_support=$enable_dlopen
  22286. # Whether dlopen of programs is supported.
  22287. dlopen_self=$enable_dlopen_self
  22288. # Whether dlopen of statically linked programs is supported.
  22289. dlopen_self_static=$enable_dlopen_self_static
  22290. # Commands to strip libraries.
  22291. old_striplib=$lt_old_striplib
  22292. striplib=$lt_striplib
  22293. # The linker used to build libraries.
  22294. LD=$lt_LD
  22295. # How to create reloadable object files.
  22296. reload_flag=$lt_reload_flag
  22297. reload_cmds=$lt_reload_cmds
  22298. # Commands used to build an old-style archive.
  22299. old_archive_cmds=$lt_old_archive_cmds
  22300. # A language specific compiler.
  22301. CC=$lt_compiler
  22302. # Is the compiler the GNU compiler?
  22303. with_gcc=$GCC
  22304. # Compiler flag to turn off builtin functions.
  22305. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22306. # Additional compiler flags for building library objects.
  22307. pic_flag=$lt_lt_prog_compiler_pic
  22308. # How to pass a linker flag through the compiler.
  22309. wl=$lt_lt_prog_compiler_wl
  22310. # Compiler flag to prevent dynamic linking.
  22311. link_static_flag=$lt_lt_prog_compiler_static
  22312. # Does compiler simultaneously support -c and -o options?
  22313. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22314. # Whether or not to add -lc for building shared libraries.
  22315. build_libtool_need_lc=$archive_cmds_need_lc
  22316. # Whether or not to disallow shared libs when runtime libs are static.
  22317. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22318. # Compiler flag to allow reflexive dlopens.
  22319. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22320. # Compiler flag to generate shared objects directly from archives.
  22321. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22322. # Whether the compiler copes with passing no objects directly.
  22323. compiler_needs_object=$lt_compiler_needs_object
  22324. # Create an old-style archive from a shared archive.
  22325. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22326. # Create a temporary old-style archive to link instead of a shared archive.
  22327. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22328. # Commands used to build a shared archive.
  22329. archive_cmds=$lt_archive_cmds
  22330. archive_expsym_cmds=$lt_archive_expsym_cmds
  22331. # Commands used to build a loadable module if different from building
  22332. # a shared archive.
  22333. module_cmds=$lt_module_cmds
  22334. module_expsym_cmds=$lt_module_expsym_cmds
  22335. # Whether we are building with GNU ld or not.
  22336. with_gnu_ld=$lt_with_gnu_ld
  22337. # Flag that allows shared libraries with undefined symbols to be built.
  22338. allow_undefined_flag=$lt_allow_undefined_flag
  22339. # Flag that enforces no undefined symbols.
  22340. no_undefined_flag=$lt_no_undefined_flag
  22341. # Flag to hardcode \$libdir into a binary during linking.
  22342. # This must work even if \$libdir does not exist
  22343. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22344. # Whether we need a single "-rpath" flag with a separated argument.
  22345. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22346. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22347. # DIR into the resulting binary.
  22348. hardcode_direct=$hardcode_direct
  22349. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22350. # DIR into the resulting binary and the resulting library dependency is
  22351. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22352. # library is relocated.
  22353. hardcode_direct_absolute=$hardcode_direct_absolute
  22354. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22355. # into the resulting binary.
  22356. hardcode_minus_L=$hardcode_minus_L
  22357. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22358. # into the resulting binary.
  22359. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22360. # Set to "yes" if building a shared library automatically hardcodes DIR
  22361. # into the library and all subsequent libraries and executables linked
  22362. # against it.
  22363. hardcode_automatic=$hardcode_automatic
  22364. # Set to yes if linker adds runtime paths of dependent libraries
  22365. # to runtime path list.
  22366. inherit_rpath=$inherit_rpath
  22367. # Whether libtool must link a program against all its dependency libraries.
  22368. link_all_deplibs=$link_all_deplibs
  22369. # Set to "yes" if exported symbols are required.
  22370. always_export_symbols=$always_export_symbols
  22371. # The commands to list exported symbols.
  22372. export_symbols_cmds=$lt_export_symbols_cmds
  22373. # Symbols that should not be listed in the preloaded symbols.
  22374. exclude_expsyms=$lt_exclude_expsyms
  22375. # Symbols that must always be exported.
  22376. include_expsyms=$lt_include_expsyms
  22377. # Commands necessary for linking programs (against libraries) with templates.
  22378. prelink_cmds=$lt_prelink_cmds
  22379. # Commands necessary for finishing linking programs.
  22380. postlink_cmds=$lt_postlink_cmds
  22381. # Specify filename containing input files.
  22382. file_list_spec=$lt_file_list_spec
  22383. # How to hardcode a shared library path into an executable.
  22384. hardcode_action=$hardcode_action
  22385. # The directories searched by this compiler when creating a shared library.
  22386. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22387. # Dependencies to place before and after the objects being linked to
  22388. # create a shared library.
  22389. predep_objects=$lt_predep_objects
  22390. postdep_objects=$lt_postdep_objects
  22391. predeps=$lt_predeps
  22392. postdeps=$lt_postdeps
  22393. # The library search path used internally by the compiler when linking
  22394. # a shared library.
  22395. compiler_lib_search_path=$lt_compiler_lib_search_path
  22396. # ### END LIBTOOL CONFIG
  22397. _LT_EOF
  22398. case $host_os in
  22399. aix3*)
  22400. cat <<\_LT_EOF >> "$cfgfile"
  22401. # AIX sometimes has problems with the GCC collect2 program. For some
  22402. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22403. # vanish in a puff of smoke.
  22404. if test "X${COLLECT_NAMES+set}" != Xset; then
  22405. COLLECT_NAMES=
  22406. export COLLECT_NAMES
  22407. fi
  22408. _LT_EOF
  22409. ;;
  22410. esac
  22411. ltmain="$ac_aux_dir/ltmain.sh"
  22412. # We use sed instead of cat because bash on DJGPP gets confused if
  22413. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22414. # text mode, it properly converts lines to CR/LF. This bash problem
  22415. # is reportedly fixed, but why not run on old versions too?
  22416. sed '$q' "$ltmain" >> "$cfgfile" \
  22417. || (rm -f "$cfgfile"; exit 1)
  22418. if test x"$xsi_shell" = xyes; then
  22419. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22420. func_dirname ()\
  22421. {\
  22422. \ case ${1} in\
  22423. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22424. \ * ) func_dirname_result="${3}" ;;\
  22425. \ esac\
  22426. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22427. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22428. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22429. test 0 -eq $? || _lt_function_replace_fail=:
  22430. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22431. func_basename ()\
  22432. {\
  22433. \ func_basename_result="${1##*/}"\
  22434. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22435. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22436. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22437. test 0 -eq $? || _lt_function_replace_fail=:
  22438. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22439. func_dirname_and_basename ()\
  22440. {\
  22441. \ case ${1} in\
  22442. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22443. \ * ) func_dirname_result="${3}" ;;\
  22444. \ esac\
  22445. \ func_basename_result="${1##*/}"\
  22446. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22447. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22448. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22449. test 0 -eq $? || _lt_function_replace_fail=:
  22450. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22451. func_stripname ()\
  22452. {\
  22453. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22454. \ # positional parameters, so assign one to ordinary parameter first.\
  22455. \ func_stripname_result=${3}\
  22456. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22457. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22458. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22459. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22460. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22461. test 0 -eq $? || _lt_function_replace_fail=:
  22462. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22463. func_split_long_opt ()\
  22464. {\
  22465. \ func_split_long_opt_name=${1%%=*}\
  22466. \ func_split_long_opt_arg=${1#*=}\
  22467. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22468. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22469. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22470. test 0 -eq $? || _lt_function_replace_fail=:
  22471. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22472. func_split_short_opt ()\
  22473. {\
  22474. \ func_split_short_opt_arg=${1#??}\
  22475. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22476. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22477. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22478. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22479. test 0 -eq $? || _lt_function_replace_fail=:
  22480. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22481. func_lo2o ()\
  22482. {\
  22483. \ case ${1} in\
  22484. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22485. \ *) func_lo2o_result=${1} ;;\
  22486. \ esac\
  22487. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22488. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22489. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22490. test 0 -eq $? || _lt_function_replace_fail=:
  22491. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22492. func_xform ()\
  22493. {\
  22494. func_xform_result=${1%.*}.lo\
  22495. } # Extended-shell func_xform 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_arith ()$/,/^} # func_arith /c\
  22500. func_arith ()\
  22501. {\
  22502. func_arith_result=$(( $* ))\
  22503. } # Extended-shell func_arith 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_len ()$/,/^} # func_len /c\
  22508. func_len ()\
  22509. {\
  22510. func_len_result=${#1}\
  22511. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22512. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22513. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22514. test 0 -eq $? || _lt_function_replace_fail=:
  22515. fi
  22516. if test x"$lt_shell_append" = xyes; then
  22517. sed -e '/^func_append ()$/,/^} # func_append /c\
  22518. func_append ()\
  22519. {\
  22520. eval "${1}+=\\${2}"\
  22521. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  22522. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22523. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22524. test 0 -eq $? || _lt_function_replace_fail=:
  22525. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  22526. func_append_quoted ()\
  22527. {\
  22528. \ func_quote_for_eval "${2}"\
  22529. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  22530. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  22531. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22532. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22533. test 0 -eq $? || _lt_function_replace_fail=:
  22534. # Save a `func_append' function call where possible by direct use of '+='
  22535. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  22536. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22537. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22538. test 0 -eq $? || _lt_function_replace_fail=:
  22539. else
  22540. # Save a `func_append' function call even when '+=' is not available
  22541. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  22542. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22543. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22544. test 0 -eq $? || _lt_function_replace_fail=:
  22545. fi
  22546. if test x"$_lt_function_replace_fail" = x":"; then
  22547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  22548. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  22549. fi
  22550. mv -f "$cfgfile" "$ofile" ||
  22551. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22552. chmod +x "$ofile"
  22553. cat <<_LT_EOF >> "$ofile"
  22554. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  22555. # The linker used to build libraries.
  22556. LD=$lt_LD_CXX
  22557. # How to create reloadable object files.
  22558. reload_flag=$lt_reload_flag_CXX
  22559. reload_cmds=$lt_reload_cmds_CXX
  22560. # Commands used to build an old-style archive.
  22561. old_archive_cmds=$lt_old_archive_cmds_CXX
  22562. # A language specific compiler.
  22563. CC=$lt_compiler_CXX
  22564. # Is the compiler the GNU compiler?
  22565. with_gcc=$GCC_CXX
  22566. # Compiler flag to turn off builtin functions.
  22567. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22568. # Additional compiler flags for building library objects.
  22569. pic_flag=$lt_lt_prog_compiler_pic_CXX
  22570. # How to pass a linker flag through the compiler.
  22571. wl=$lt_lt_prog_compiler_wl_CXX
  22572. # Compiler flag to prevent dynamic linking.
  22573. link_static_flag=$lt_lt_prog_compiler_static_CXX
  22574. # Does compiler simultaneously support -c and -o options?
  22575. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22576. # Whether or not to add -lc for building shared libraries.
  22577. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22578. # Whether or not to disallow shared libs when runtime libs are static.
  22579. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22580. # Compiler flag to allow reflexive dlopens.
  22581. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22582. # Compiler flag to generate shared objects directly from archives.
  22583. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22584. # Whether the compiler copes with passing no objects directly.
  22585. compiler_needs_object=$lt_compiler_needs_object_CXX
  22586. # Create an old-style archive from a shared archive.
  22587. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22588. # Create a temporary old-style archive to link instead of a shared archive.
  22589. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22590. # Commands used to build a shared archive.
  22591. archive_cmds=$lt_archive_cmds_CXX
  22592. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22593. # Commands used to build a loadable module if different from building
  22594. # a shared archive.
  22595. module_cmds=$lt_module_cmds_CXX
  22596. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  22597. # Whether we are building with GNU ld or not.
  22598. with_gnu_ld=$lt_with_gnu_ld_CXX
  22599. # Flag that allows shared libraries with undefined symbols to be built.
  22600. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  22601. # Flag that enforces no undefined symbols.
  22602. no_undefined_flag=$lt_no_undefined_flag_CXX
  22603. # Flag to hardcode \$libdir into a binary during linking.
  22604. # This must work even if \$libdir does not exist
  22605. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  22606. # Whether we need a single "-rpath" flag with a separated argument.
  22607. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  22608. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22609. # DIR into the resulting binary.
  22610. hardcode_direct=$hardcode_direct_CXX
  22611. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22612. # DIR into the resulting binary and the resulting library dependency is
  22613. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22614. # library is relocated.
  22615. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  22616. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22617. # into the resulting binary.
  22618. hardcode_minus_L=$hardcode_minus_L_CXX
  22619. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22620. # into the resulting binary.
  22621. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  22622. # Set to "yes" if building a shared library automatically hardcodes DIR
  22623. # into the library and all subsequent libraries and executables linked
  22624. # against it.
  22625. hardcode_automatic=$hardcode_automatic_CXX
  22626. # Set to yes if linker adds runtime paths of dependent libraries
  22627. # to runtime path list.
  22628. inherit_rpath=$inherit_rpath_CXX
  22629. # Whether libtool must link a program against all its dependency libraries.
  22630. link_all_deplibs=$link_all_deplibs_CXX
  22631. # Set to "yes" if exported symbols are required.
  22632. always_export_symbols=$always_export_symbols_CXX
  22633. # The commands to list exported symbols.
  22634. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  22635. # Symbols that should not be listed in the preloaded symbols.
  22636. exclude_expsyms=$lt_exclude_expsyms_CXX
  22637. # Symbols that must always be exported.
  22638. include_expsyms=$lt_include_expsyms_CXX
  22639. # Commands necessary for linking programs (against libraries) with templates.
  22640. prelink_cmds=$lt_prelink_cmds_CXX
  22641. # Commands necessary for finishing linking programs.
  22642. postlink_cmds=$lt_postlink_cmds_CXX
  22643. # Specify filename containing input files.
  22644. file_list_spec=$lt_file_list_spec_CXX
  22645. # How to hardcode a shared library path into an executable.
  22646. hardcode_action=$hardcode_action_CXX
  22647. # The directories searched by this compiler when creating a shared library.
  22648. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  22649. # Dependencies to place before and after the objects being linked to
  22650. # create a shared library.
  22651. predep_objects=$lt_predep_objects_CXX
  22652. postdep_objects=$lt_postdep_objects_CXX
  22653. predeps=$lt_predeps_CXX
  22654. postdeps=$lt_postdeps_CXX
  22655. # The library search path used internally by the compiler when linking
  22656. # a shared library.
  22657. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  22658. # ### END LIBTOOL TAG CONFIG: CXX
  22659. _LT_EOF
  22660. ;;
  22661. "sdl2_config":C) chmod a+x sdl2-config ;;
  22662. "summary":C) echo -en "$SUMMARY" ;;
  22663. esac
  22664. done # for ac_tag
  22665. as_fn_exit 0
  22666. _ACEOF
  22667. ac_clean_files=$ac_clean_files_save
  22668. test $ac_write_fail = 0 ||
  22669. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  22670. # configure is writing to config.log, and then calls config.status.
  22671. # config.status does its own redirection, appending to config.log.
  22672. # Unfortunately, on DOS this fails, as config.log is still kept open
  22673. # by configure, so config.status won't be able to write to it; its
  22674. # output is simply discarded. So we exec the FD to /dev/null,
  22675. # effectively closing config.log, so it can be properly (re)opened and
  22676. # appended to by config.status. When coming back to configure, we
  22677. # need to make the FD available again.
  22678. if test "$no_create" != yes; then
  22679. ac_cs_success=:
  22680. ac_config_status_args=
  22681. test "$silent" = yes &&
  22682. ac_config_status_args="$ac_config_status_args --quiet"
  22683. exec 5>/dev/null
  22684. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22685. exec 5>>config.log
  22686. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22687. # would make configure fail if this is the last instruction.
  22688. $ac_cs_success || as_fn_exit 1
  22689. fi
  22690. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22692. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22693. fi