configure 798 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. DIRECTFBCONFIG
  603. X_EXTRA_LIBS
  604. X_LIBS
  605. X_PRE_LIBS
  606. X_CFLAGS
  607. XMKMF
  608. ARTSCONFIG
  609. ESD_LIBS
  610. ESD_CFLAGS
  611. ESD_CONFIG
  612. PKG_CONFIG
  613. ALSA_LIBS
  614. ALSA_CFLAGS
  615. POW_LIB
  616. LIBOBJS
  617. ALLOCA
  618. WINDRES
  619. SET_MAKE
  620. INSTALL_DATA
  621. INSTALL_SCRIPT
  622. INSTALL_PROGRAM
  623. CXXCPP
  624. ac_ct_CXX
  625. CXXFLAGS
  626. CXX
  627. LT_AGE
  628. LT_REVISION
  629. LT_CURRENT
  630. LT_RELEASE
  631. CPP
  632. OTOOL64
  633. OTOOL
  634. LIPO
  635. NMEDIT
  636. DSYMUTIL
  637. MANIFEST_TOOL
  638. AWK
  639. RANLIB
  640. STRIP
  641. ac_ct_AR
  642. AR
  643. LN_S
  644. NM
  645. ac_ct_DUMPBIN
  646. DUMPBIN
  647. LD
  648. FGREP
  649. EGREP
  650. GREP
  651. SED
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. host_os
  660. host_vendor
  661. host_cpu
  662. host
  663. build_os
  664. build_vendor
  665. build_cpu
  666. build
  667. LIBTOOL
  668. OBJDUMP
  669. DLLTOOL
  670. AS
  671. SDL_VERSION
  672. SDL_BINARY_AGE
  673. SDL_INTERFACE_AGE
  674. SDL_MICRO_VERSION
  675. SDL_MINOR_VERSION
  676. SDL_MAJOR_VERSION
  677. target_alias
  678. host_alias
  679. build_alias
  680. LIBS
  681. ECHO_T
  682. ECHO_N
  683. ECHO_C
  684. DEFS
  685. mandir
  686. localedir
  687. libdir
  688. psdir
  689. pdfdir
  690. dvidir
  691. htmldir
  692. infodir
  693. docdir
  694. oldincludedir
  695. includedir
  696. runstatedir
  697. localstatedir
  698. sharedstatedir
  699. sysconfdir
  700. datadir
  701. datarootdir
  702. libexecdir
  703. sbindir
  704. bindir
  705. program_transform_name
  706. prefix
  707. exec_prefix
  708. PACKAGE_URL
  709. PACKAGE_BUGREPORT
  710. PACKAGE_STRING
  711. PACKAGE_VERSION
  712. PACKAGE_TARNAME
  713. PACKAGE_NAME
  714. PATH_SEPARATOR
  715. SHELL'
  716. ac_subst_files=''
  717. ac_user_opts='
  718. enable_option_checking
  719. enable_shared
  720. enable_static
  721. with_pic
  722. enable_fast_install
  723. with_gnu_ld
  724. with_sysroot
  725. enable_libtool_lock
  726. enable_assertions
  727. enable_dependency_tracking
  728. enable_libc
  729. enable_gcc_atomics
  730. enable_atomic
  731. enable_audio
  732. enable_video
  733. enable_render
  734. enable_events
  735. enable_joystick
  736. enable_haptic
  737. enable_power
  738. enable_filesystem
  739. enable_threads
  740. enable_timers
  741. enable_file
  742. enable_loadso
  743. enable_cpuinfo
  744. enable_assembly
  745. enable_ssemath
  746. enable_mmx
  747. enable_3dnow
  748. enable_sse
  749. enable_sse2
  750. enable_sse3
  751. enable_altivec
  752. enable_oss
  753. enable_alsa
  754. with_alsa_prefix
  755. with_alsa_inc_prefix
  756. enable_alsatest
  757. enable_alsa_shared
  758. enable_jack
  759. enable_jack_shared
  760. enable_esd
  761. with_esd_prefix
  762. with_esd_exec_prefix
  763. enable_esdtest
  764. enable_esd_shared
  765. enable_pulseaudio
  766. enable_pulseaudio_shared
  767. enable_arts
  768. enable_arts_shared
  769. enable_nas
  770. enable_nas_shared
  771. enable_sndio
  772. enable_sndio_shared
  773. enable_fusionsound
  774. enable_fusionsound_shared
  775. enable_diskaudio
  776. enable_dummyaudio
  777. enable_libsamplerate
  778. enable_libsamplerate_shared
  779. enable_video_wayland
  780. enable_video_wayland_qt_touch
  781. enable_wayland_shared
  782. enable_video_mir
  783. enable_mir_shared
  784. enable_video_x11
  785. with_x
  786. enable_x11_shared
  787. enable_video_x11_xcursor
  788. enable_video_x11_xdbe
  789. enable_video_x11_xinerama
  790. enable_video_x11_xinput
  791. enable_video_x11_xrandr
  792. enable_video_x11_scrnsaver
  793. enable_video_x11_xshape
  794. enable_video_x11_vm
  795. enable_video_vivante
  796. enable_video_cocoa
  797. enable_video_directfb
  798. enable_directfb_shared
  799. enable_video_kmsdrm
  800. enable_kmsdrm_shared
  801. enable_video_dummy
  802. enable_video_opengl
  803. enable_video_opengles
  804. enable_video_opengles1
  805. enable_video_opengles2
  806. enable_video_vulkan
  807. enable_libudev
  808. enable_dbus
  809. enable_ime
  810. enable_ibus
  811. enable_fcitx
  812. enable_input_tslib
  813. enable_pthreads
  814. enable_pthread_sem
  815. enable_directx
  816. enable_sdl_dlopen
  817. enable_clock_gettime
  818. enable_rpath
  819. enable_render_d3d
  820. '
  821. ac_precious_vars='build_alias
  822. host_alias
  823. target_alias
  824. CC
  825. CFLAGS
  826. LDFLAGS
  827. LIBS
  828. CPPFLAGS
  829. CPP
  830. CXX
  831. CXXFLAGS
  832. CCC
  833. CXXCPP
  834. XMKMF'
  835. # Initialize some variables set by options.
  836. ac_init_help=
  837. ac_init_version=false
  838. ac_unrecognized_opts=
  839. ac_unrecognized_sep=
  840. # The variables have the same names as the options, with
  841. # dashes changed to underlines.
  842. cache_file=/dev/null
  843. exec_prefix=NONE
  844. no_create=
  845. no_recursion=
  846. prefix=NONE
  847. program_prefix=NONE
  848. program_suffix=NONE
  849. program_transform_name=s,x,x,
  850. silent=
  851. site=
  852. srcdir=
  853. verbose=
  854. x_includes=NONE
  855. x_libraries=NONE
  856. # Installation directory options.
  857. # These are left unexpanded so users can "make install exec_prefix=/foo"
  858. # and all the variables that are supposed to be based on exec_prefix
  859. # by default will actually change.
  860. # Use braces instead of parens because sh, perl, etc. also accept them.
  861. # (The list follows the same order as the GNU Coding Standards.)
  862. bindir='${exec_prefix}/bin'
  863. sbindir='${exec_prefix}/sbin'
  864. libexecdir='${exec_prefix}/libexec'
  865. datarootdir='${prefix}/share'
  866. datadir='${datarootdir}'
  867. sysconfdir='${prefix}/etc'
  868. sharedstatedir='${prefix}/com'
  869. localstatedir='${prefix}/var'
  870. runstatedir='${localstatedir}/run'
  871. includedir='${prefix}/include'
  872. oldincludedir='/usr/include'
  873. docdir='${datarootdir}/doc/${PACKAGE}'
  874. infodir='${datarootdir}/info'
  875. htmldir='${docdir}'
  876. dvidir='${docdir}'
  877. pdfdir='${docdir}'
  878. psdir='${docdir}'
  879. libdir='${exec_prefix}/lib'
  880. localedir='${datarootdir}/locale'
  881. mandir='${datarootdir}/man'
  882. ac_prev=
  883. ac_dashdash=
  884. for ac_option
  885. do
  886. # If the previous option needs an argument, assign it.
  887. if test -n "$ac_prev"; then
  888. eval $ac_prev=\$ac_option
  889. ac_prev=
  890. continue
  891. fi
  892. case $ac_option in
  893. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  894. *=) ac_optarg= ;;
  895. *) ac_optarg=yes ;;
  896. esac
  897. # Accept the important Cygnus configure options, so we can diagnose typos.
  898. case $ac_dashdash$ac_option in
  899. --)
  900. ac_dashdash=yes ;;
  901. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  902. ac_prev=bindir ;;
  903. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  904. bindir=$ac_optarg ;;
  905. -build | --build | --buil | --bui | --bu)
  906. ac_prev=build_alias ;;
  907. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  908. build_alias=$ac_optarg ;;
  909. -cache-file | --cache-file | --cache-fil | --cache-fi \
  910. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  911. ac_prev=cache_file ;;
  912. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  913. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  914. cache_file=$ac_optarg ;;
  915. --config-cache | -C)
  916. cache_file=config.cache ;;
  917. -datadir | --datadir | --datadi | --datad)
  918. ac_prev=datadir ;;
  919. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  920. datadir=$ac_optarg ;;
  921. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  922. | --dataroo | --dataro | --datar)
  923. ac_prev=datarootdir ;;
  924. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  925. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  926. datarootdir=$ac_optarg ;;
  927. -disable-* | --disable-*)
  928. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  929. # Reject names that are not valid shell variable names.
  930. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  931. as_fn_error $? "invalid feature name: $ac_useropt"
  932. ac_useropt_orig=$ac_useropt
  933. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  934. case $ac_user_opts in
  935. *"
  936. "enable_$ac_useropt"
  937. "*) ;;
  938. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  939. ac_unrecognized_sep=', ';;
  940. esac
  941. eval enable_$ac_useropt=no ;;
  942. -docdir | --docdir | --docdi | --doc | --do)
  943. ac_prev=docdir ;;
  944. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  945. docdir=$ac_optarg ;;
  946. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  947. ac_prev=dvidir ;;
  948. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  949. dvidir=$ac_optarg ;;
  950. -enable-* | --enable-*)
  951. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  952. # Reject names that are not valid shell variable names.
  953. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  954. as_fn_error $? "invalid feature name: $ac_useropt"
  955. ac_useropt_orig=$ac_useropt
  956. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  957. case $ac_user_opts in
  958. *"
  959. "enable_$ac_useropt"
  960. "*) ;;
  961. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  962. ac_unrecognized_sep=', ';;
  963. esac
  964. eval enable_$ac_useropt=\$ac_optarg ;;
  965. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  966. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  967. | --exec | --exe | --ex)
  968. ac_prev=exec_prefix ;;
  969. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  970. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  971. | --exec=* | --exe=* | --ex=*)
  972. exec_prefix=$ac_optarg ;;
  973. -gas | --gas | --ga | --g)
  974. # Obsolete; use --with-gas.
  975. with_gas=yes ;;
  976. -help | --help | --hel | --he | -h)
  977. ac_init_help=long ;;
  978. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  979. ac_init_help=recursive ;;
  980. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  981. ac_init_help=short ;;
  982. -host | --host | --hos | --ho)
  983. ac_prev=host_alias ;;
  984. -host=* | --host=* | --hos=* | --ho=*)
  985. host_alias=$ac_optarg ;;
  986. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  987. ac_prev=htmldir ;;
  988. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  989. | --ht=*)
  990. htmldir=$ac_optarg ;;
  991. -includedir | --includedir | --includedi | --included | --include \
  992. | --includ | --inclu | --incl | --inc)
  993. ac_prev=includedir ;;
  994. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  995. | --includ=* | --inclu=* | --incl=* | --inc=*)
  996. includedir=$ac_optarg ;;
  997. -infodir | --infodir | --infodi | --infod | --info | --inf)
  998. ac_prev=infodir ;;
  999. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1000. infodir=$ac_optarg ;;
  1001. -libdir | --libdir | --libdi | --libd)
  1002. ac_prev=libdir ;;
  1003. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1004. libdir=$ac_optarg ;;
  1005. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1006. | --libexe | --libex | --libe)
  1007. ac_prev=libexecdir ;;
  1008. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1009. | --libexe=* | --libex=* | --libe=*)
  1010. libexecdir=$ac_optarg ;;
  1011. -localedir | --localedir | --localedi | --localed | --locale)
  1012. ac_prev=localedir ;;
  1013. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1014. localedir=$ac_optarg ;;
  1015. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1016. | --localstate | --localstat | --localsta | --localst | --locals)
  1017. ac_prev=localstatedir ;;
  1018. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1019. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1020. localstatedir=$ac_optarg ;;
  1021. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1022. ac_prev=mandir ;;
  1023. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1024. mandir=$ac_optarg ;;
  1025. -nfp | --nfp | --nf)
  1026. # Obsolete; use --without-fp.
  1027. with_fp=no ;;
  1028. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1029. | --no-cr | --no-c | -n)
  1030. no_create=yes ;;
  1031. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1032. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1033. no_recursion=yes ;;
  1034. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1035. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1036. | --oldin | --oldi | --old | --ol | --o)
  1037. ac_prev=oldincludedir ;;
  1038. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1039. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1040. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1041. oldincludedir=$ac_optarg ;;
  1042. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1043. ac_prev=prefix ;;
  1044. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1045. prefix=$ac_optarg ;;
  1046. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1047. | --program-pre | --program-pr | --program-p)
  1048. ac_prev=program_prefix ;;
  1049. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1050. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1051. program_prefix=$ac_optarg ;;
  1052. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1053. | --program-suf | --program-su | --program-s)
  1054. ac_prev=program_suffix ;;
  1055. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1056. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1057. program_suffix=$ac_optarg ;;
  1058. -program-transform-name | --program-transform-name \
  1059. | --program-transform-nam | --program-transform-na \
  1060. | --program-transform-n | --program-transform- \
  1061. | --program-transform | --program-transfor \
  1062. | --program-transfo | --program-transf \
  1063. | --program-trans | --program-tran \
  1064. | --progr-tra | --program-tr | --program-t)
  1065. ac_prev=program_transform_name ;;
  1066. -program-transform-name=* | --program-transform-name=* \
  1067. | --program-transform-nam=* | --program-transform-na=* \
  1068. | --program-transform-n=* | --program-transform-=* \
  1069. | --program-transform=* | --program-transfor=* \
  1070. | --program-transfo=* | --program-transf=* \
  1071. | --program-trans=* | --program-tran=* \
  1072. | --progr-tra=* | --program-tr=* | --program-t=*)
  1073. program_transform_name=$ac_optarg ;;
  1074. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1075. ac_prev=pdfdir ;;
  1076. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1077. pdfdir=$ac_optarg ;;
  1078. -psdir | --psdir | --psdi | --psd | --ps)
  1079. ac_prev=psdir ;;
  1080. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1081. psdir=$ac_optarg ;;
  1082. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1083. | -silent | --silent | --silen | --sile | --sil)
  1084. silent=yes ;;
  1085. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1086. | --runstate | --runstat | --runsta | --runst | --runs \
  1087. | --run | --ru | --r)
  1088. ac_prev=runstatedir ;;
  1089. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1090. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1091. | --run=* | --ru=* | --r=*)
  1092. runstatedir=$ac_optarg ;;
  1093. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1094. ac_prev=sbindir ;;
  1095. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1096. | --sbi=* | --sb=*)
  1097. sbindir=$ac_optarg ;;
  1098. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1099. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1100. | --sharedst | --shareds | --shared | --share | --shar \
  1101. | --sha | --sh)
  1102. ac_prev=sharedstatedir ;;
  1103. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1104. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1105. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1106. | --sha=* | --sh=*)
  1107. sharedstatedir=$ac_optarg ;;
  1108. -site | --site | --sit)
  1109. ac_prev=site ;;
  1110. -site=* | --site=* | --sit=*)
  1111. site=$ac_optarg ;;
  1112. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1113. ac_prev=srcdir ;;
  1114. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1115. srcdir=$ac_optarg ;;
  1116. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1117. | --syscon | --sysco | --sysc | --sys | --sy)
  1118. ac_prev=sysconfdir ;;
  1119. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1120. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1121. sysconfdir=$ac_optarg ;;
  1122. -target | --target | --targe | --targ | --tar | --ta | --t)
  1123. ac_prev=target_alias ;;
  1124. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1125. target_alias=$ac_optarg ;;
  1126. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1127. verbose=yes ;;
  1128. -version | --version | --versio | --versi | --vers | -V)
  1129. ac_init_version=: ;;
  1130. -with-* | --with-*)
  1131. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1132. # Reject names that are not valid shell variable names.
  1133. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1134. as_fn_error $? "invalid package name: $ac_useropt"
  1135. ac_useropt_orig=$ac_useropt
  1136. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1137. case $ac_user_opts in
  1138. *"
  1139. "with_$ac_useropt"
  1140. "*) ;;
  1141. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1142. ac_unrecognized_sep=', ';;
  1143. esac
  1144. eval with_$ac_useropt=\$ac_optarg ;;
  1145. -without-* | --without-*)
  1146. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1147. # Reject names that are not valid shell variable names.
  1148. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1149. as_fn_error $? "invalid package name: $ac_useropt"
  1150. ac_useropt_orig=$ac_useropt
  1151. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1152. case $ac_user_opts in
  1153. *"
  1154. "with_$ac_useropt"
  1155. "*) ;;
  1156. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1157. ac_unrecognized_sep=', ';;
  1158. esac
  1159. eval with_$ac_useropt=no ;;
  1160. --x)
  1161. # Obsolete; use --with-x.
  1162. with_x=yes ;;
  1163. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1164. | --x-incl | --x-inc | --x-in | --x-i)
  1165. ac_prev=x_includes ;;
  1166. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1167. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1168. x_includes=$ac_optarg ;;
  1169. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1170. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1171. ac_prev=x_libraries ;;
  1172. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1173. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1174. x_libraries=$ac_optarg ;;
  1175. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1176. Try \`$0 --help' for more information"
  1177. ;;
  1178. *=*)
  1179. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1180. # Reject names that are not valid shell variable names.
  1181. case $ac_envvar in #(
  1182. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1183. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1184. esac
  1185. eval $ac_envvar=\$ac_optarg
  1186. export $ac_envvar ;;
  1187. *)
  1188. # FIXME: should be removed in autoconf 3.0.
  1189. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1190. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1191. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1192. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1193. ;;
  1194. esac
  1195. done
  1196. if test -n "$ac_prev"; then
  1197. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1198. as_fn_error $? "missing argument to $ac_option"
  1199. fi
  1200. if test -n "$ac_unrecognized_opts"; then
  1201. case $enable_option_checking in
  1202. no) ;;
  1203. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1204. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1205. esac
  1206. fi
  1207. # Check all directory arguments for consistency.
  1208. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1209. datadir sysconfdir sharedstatedir localstatedir includedir \
  1210. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1211. libdir localedir mandir runstatedir
  1212. do
  1213. eval ac_val=\$$ac_var
  1214. # Remove trailing slashes.
  1215. case $ac_val in
  1216. */ )
  1217. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1218. eval $ac_var=\$ac_val;;
  1219. esac
  1220. # Be sure to have absolute directory names.
  1221. case $ac_val in
  1222. [\\/$]* | ?:[\\/]* ) continue;;
  1223. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1224. esac
  1225. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1226. done
  1227. # There might be people who depend on the old broken behavior: `$host'
  1228. # used to hold the argument of --host etc.
  1229. # FIXME: To remove some day.
  1230. build=$build_alias
  1231. host=$host_alias
  1232. target=$target_alias
  1233. # FIXME: To remove some day.
  1234. if test "x$host_alias" != x; then
  1235. if test "x$build_alias" = x; then
  1236. cross_compiling=maybe
  1237. elif test "x$build_alias" != "x$host_alias"; then
  1238. cross_compiling=yes
  1239. fi
  1240. fi
  1241. ac_tool_prefix=
  1242. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1243. test "$silent" = yes && exec 6>/dev/null
  1244. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1245. ac_ls_di=`ls -di .` &&
  1246. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1247. as_fn_error $? "working directory cannot be determined"
  1248. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1249. as_fn_error $? "pwd does not report name of working directory"
  1250. # Find the source files, if location was not specified.
  1251. if test -z "$srcdir"; then
  1252. ac_srcdir_defaulted=yes
  1253. # Try the directory containing this script, then the parent directory.
  1254. ac_confdir=`$as_dirname -- "$as_myself" ||
  1255. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1256. X"$as_myself" : 'X\(//\)[^/]' \| \
  1257. X"$as_myself" : 'X\(//\)$' \| \
  1258. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1259. $as_echo X"$as_myself" |
  1260. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1261. s//\1/
  1262. q
  1263. }
  1264. /^X\(\/\/\)[^/].*/{
  1265. s//\1/
  1266. q
  1267. }
  1268. /^X\(\/\/\)$/{
  1269. s//\1/
  1270. q
  1271. }
  1272. /^X\(\/\).*/{
  1273. s//\1/
  1274. q
  1275. }
  1276. s/.*/./; q'`
  1277. srcdir=$ac_confdir
  1278. if test ! -r "$srcdir/$ac_unique_file"; then
  1279. srcdir=..
  1280. fi
  1281. else
  1282. ac_srcdir_defaulted=no
  1283. fi
  1284. if test ! -r "$srcdir/$ac_unique_file"; then
  1285. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1286. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1287. fi
  1288. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1289. ac_abs_confdir=`(
  1290. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1291. pwd)`
  1292. # When building in place, set srcdir=.
  1293. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1294. srcdir=.
  1295. fi
  1296. # Remove unnecessary trailing slashes from srcdir.
  1297. # Double slashes in file names in object file debugging info
  1298. # mess up M-x gdb in Emacs.
  1299. case $srcdir in
  1300. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1301. esac
  1302. for ac_var in $ac_precious_vars; do
  1303. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1304. eval ac_env_${ac_var}_value=\$${ac_var}
  1305. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1306. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1307. done
  1308. #
  1309. # Report the --help message.
  1310. #
  1311. if test "$ac_init_help" = "long"; then
  1312. # Omit some internal or obsolete options to make the list less imposing.
  1313. # This message is too long to be a string in the A/UX 3.1 sh.
  1314. cat <<_ACEOF
  1315. \`configure' configures this package to adapt to many kinds of systems.
  1316. Usage: $0 [OPTION]... [VAR=VALUE]...
  1317. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1318. VAR=VALUE. See below for descriptions of some of the useful variables.
  1319. Defaults for the options are specified in brackets.
  1320. Configuration:
  1321. -h, --help display this help and exit
  1322. --help=short display options specific to this package
  1323. --help=recursive display the short help of all the included packages
  1324. -V, --version display version information and exit
  1325. -q, --quiet, --silent do not print \`checking ...' messages
  1326. --cache-file=FILE cache test results in FILE [disabled]
  1327. -C, --config-cache alias for \`--cache-file=config.cache'
  1328. -n, --no-create do not create output files
  1329. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1330. Installation directories:
  1331. --prefix=PREFIX install architecture-independent files in PREFIX
  1332. [$ac_default_prefix]
  1333. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1334. [PREFIX]
  1335. By default, \`make install' will install all the files in
  1336. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1337. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1338. for instance \`--prefix=\$HOME'.
  1339. For better control, use the options below.
  1340. Fine tuning of the installation directories:
  1341. --bindir=DIR user executables [EPREFIX/bin]
  1342. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1343. --libexecdir=DIR program executables [EPREFIX/libexec]
  1344. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1345. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1346. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1347. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1348. --libdir=DIR object code libraries [EPREFIX/lib]
  1349. --includedir=DIR C header files [PREFIX/include]
  1350. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1351. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1352. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1353. --infodir=DIR info documentation [DATAROOTDIR/info]
  1354. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1355. --mandir=DIR man documentation [DATAROOTDIR/man]
  1356. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1357. --htmldir=DIR html documentation [DOCDIR]
  1358. --dvidir=DIR dvi documentation [DOCDIR]
  1359. --pdfdir=DIR pdf documentation [DOCDIR]
  1360. --psdir=DIR ps documentation [DOCDIR]
  1361. _ACEOF
  1362. cat <<\_ACEOF
  1363. X features:
  1364. --x-includes=DIR X include files are in DIR
  1365. --x-libraries=DIR X library files are in DIR
  1366. System types:
  1367. --build=BUILD configure for building on BUILD [guessed]
  1368. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1369. _ACEOF
  1370. fi
  1371. if test -n "$ac_init_help"; then
  1372. cat <<\_ACEOF
  1373. Optional Features:
  1374. --disable-option-checking ignore unrecognized --enable/--with options
  1375. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1376. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1377. --enable-shared[=PKGS] build shared libraries [default=yes]
  1378. --enable-static[=PKGS] build static libraries [default=yes]
  1379. --enable-fast-install[=PKGS]
  1380. optimize for fast installation [default=yes]
  1381. --disable-libtool-lock avoid locking (might break parallel builds)
  1382. --enable-assertions Enable internal sanity checks
  1383. (auto/disabled/release/enabled/paranoid)
  1384. [[default=auto]]
  1385. --enable-dependency-tracking
  1386. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1387. --enable-libc Use the system C library [[default=yes]]
  1388. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1389. --enable-atomic Enable the atomic operations subsystem
  1390. [[default=yes]]
  1391. --enable-audio Enable the audio subsystem [[default=yes]]
  1392. --enable-video Enable the video subsystem [[default=yes]]
  1393. --enable-render Enable the render subsystem [[default=yes]]
  1394. --enable-events Enable the events subsystem [[default=yes]]
  1395. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1396. --enable-haptic Enable the haptic (force feedback) subsystem
  1397. [[default=yes]]
  1398. --enable-power Enable the power subsystem [[default=yes]]
  1399. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1400. --enable-threads Enable the threading subsystem [[default=yes]]
  1401. --enable-timers Enable the timer subsystem [[default=yes]]
  1402. --enable-file Enable the file subsystem [[default=yes]]
  1403. --enable-loadso Enable the shared object loading subsystem
  1404. [[default=yes]]
  1405. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1406. --enable-assembly Enable assembly routines [[default=yes]]
  1407. --enable-ssemath Allow GCC to use SSE floating point math
  1408. [[default=maybe]]
  1409. --enable-mmx use MMX assembly routines [[default=yes]]
  1410. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1411. --enable-sse use SSE assembly routines [[default=yes]]
  1412. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1413. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1414. --enable-altivec use Altivec assembly routines [[default=yes]]
  1415. --enable-oss support the OSS audio API [[default=maybe]]
  1416. --enable-alsa support the ALSA audio API [[default=yes]]
  1417. --disable-alsatest Do not try to compile and run a test Alsa program
  1418. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1419. --enable-jack use JACK audio [[default=yes]]
  1420. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1421. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1422. --disable-esdtest Do not try to compile and run a test ESD program
  1423. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1424. --enable-pulseaudio use PulseAudio [[default=yes]]
  1425. --enable-pulseaudio-shared
  1426. dynamically load PulseAudio support [[default=yes]]
  1427. --enable-arts support the Analog Real Time Synthesizer
  1428. [[default=yes]]
  1429. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1430. --enable-nas support the NAS audio API [[default=yes]]
  1431. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1432. --enable-sndio support the sndio audio API [[default=yes]]
  1433. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1434. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1435. --enable-fusionsound-shared
  1436. dynamically load fusionsound audio support
  1437. [[default=yes]]
  1438. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1439. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1440. --enable-libsamplerate use libsamplerate for audio rate conversion
  1441. [[default=yes]]
  1442. --enable-libsamplerate-shared
  1443. dynamically load libsamplerate [[default=yes]]
  1444. --enable-video-wayland use Wayland video driver [[default=yes]]
  1445. --enable-video-wayland-qt-touch
  1446. QtWayland server support for Wayland video driver
  1447. [[default=yes]]
  1448. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1449. --enable-video-mir use Mir video driver [[default=yes]]
  1450. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1451. --enable-video-x11 use X11 video driver [[default=yes]]
  1452. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1453. --enable-video-x11-xcursor
  1454. enable X11 Xcursor support [[default=yes]]
  1455. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1456. --enable-video-x11-xinerama
  1457. enable X11 Xinerama support [[default=yes]]
  1458. --enable-video-x11-xinput
  1459. enable X11 XInput extension for manymouse, tablets,
  1460. etc [[default=yes]]
  1461. --enable-video-x11-xrandr
  1462. enable X11 Xrandr extension for fullscreen
  1463. [[default=yes]]
  1464. --enable-video-x11-scrnsaver
  1465. enable X11 screensaver extension [[default=yes]]
  1466. --enable-video-x11-xshape
  1467. enable X11 XShape support [[default=yes]]
  1468. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1469. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1470. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1471. --enable-video-directfb use DirectFB video driver [[default=no]]
  1472. --enable-directfb-shared
  1473. dynamically load directfb support [[default=yes]]
  1474. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1475. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1476. --enable-video-dummy use dummy video driver [[default=yes]]
  1477. --enable-video-opengl include OpenGL support [[default=yes]]
  1478. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1479. --enable-video-opengles1
  1480. include OpenGL ES 1.1 support [[default=yes]]
  1481. --enable-video-opengles2
  1482. include OpenGL ES 2.0 support [[default=yes]]
  1483. --enable-video-vulkan include Vulkan surface support [[default=yes]]
  1484. --enable-libudev enable libudev support [[default=yes]]
  1485. --enable-dbus enable D-Bus support [[default=yes]]
  1486. --enable-ime enable IME support [[default=yes]]
  1487. --enable-ibus enable IBus support [[default=yes]]
  1488. --enable-fcitx enable fcitx support [[default=yes]]
  1489. --enable-input-tslib use the Touchscreen library for input
  1490. [[default=yes]]
  1491. --enable-pthreads use POSIX threads for multi-threading
  1492. [[default=yes]]
  1493. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1494. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1495. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1496. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1497. UNIX [[default=yes]]
  1498. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1499. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1500. Optional Packages:
  1501. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1502. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1503. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1504. both]
  1505. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1506. --with-sysroot=DIR Search for dependent libraries within DIR
  1507. (or the compiler's sysroot if not specified).
  1508. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1509. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1510. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1511. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1512. --with-x use the X Window System
  1513. Some influential environment variables:
  1514. CC C compiler command
  1515. CFLAGS C compiler flags
  1516. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1517. nonstandard directory <lib dir>
  1518. LIBS libraries to pass to the linker, e.g. -l<library>
  1519. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1520. you have headers in a nonstandard directory <include dir>
  1521. CPP C preprocessor
  1522. CXX C++ compiler command
  1523. CXXFLAGS C++ compiler flags
  1524. CXXCPP C++ preprocessor
  1525. XMKMF Path to xmkmf, Makefile generator for X Window System
  1526. Use these variables to override the choices made by `configure' or to help
  1527. it to find libraries and programs with nonstandard names/locations.
  1528. Report bugs to the package provider.
  1529. _ACEOF
  1530. ac_status=$?
  1531. fi
  1532. if test "$ac_init_help" = "recursive"; then
  1533. # If there are subdirs, report their specific --help.
  1534. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1535. test -d "$ac_dir" ||
  1536. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1537. continue
  1538. ac_builddir=.
  1539. case "$ac_dir" in
  1540. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1541. *)
  1542. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1543. # A ".." for each directory in $ac_dir_suffix.
  1544. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1545. case $ac_top_builddir_sub in
  1546. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1547. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1548. esac ;;
  1549. esac
  1550. ac_abs_top_builddir=$ac_pwd
  1551. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1552. # for backward compatibility:
  1553. ac_top_builddir=$ac_top_build_prefix
  1554. case $srcdir in
  1555. .) # We are building in place.
  1556. ac_srcdir=.
  1557. ac_top_srcdir=$ac_top_builddir_sub
  1558. ac_abs_top_srcdir=$ac_pwd ;;
  1559. [\\/]* | ?:[\\/]* ) # Absolute name.
  1560. ac_srcdir=$srcdir$ac_dir_suffix;
  1561. ac_top_srcdir=$srcdir
  1562. ac_abs_top_srcdir=$srcdir ;;
  1563. *) # Relative name.
  1564. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1565. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1566. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1567. esac
  1568. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1569. cd "$ac_dir" || { ac_status=$?; continue; }
  1570. # Check for guested configure.
  1571. if test -f "$ac_srcdir/configure.gnu"; then
  1572. echo &&
  1573. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1574. elif test -f "$ac_srcdir/configure"; then
  1575. echo &&
  1576. $SHELL "$ac_srcdir/configure" --help=recursive
  1577. else
  1578. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1579. fi || ac_status=$?
  1580. cd "$ac_pwd" || { ac_status=$?; break; }
  1581. done
  1582. fi
  1583. test -n "$ac_init_help" && exit $ac_status
  1584. if $ac_init_version; then
  1585. cat <<\_ACEOF
  1586. configure
  1587. generated by GNU Autoconf 2.69
  1588. Copyright (C) 2012 Free Software Foundation, Inc.
  1589. This configure script is free software; the Free Software Foundation
  1590. gives unlimited permission to copy, distribute and modify it.
  1591. _ACEOF
  1592. exit
  1593. fi
  1594. ## ------------------------ ##
  1595. ## Autoconf initialization. ##
  1596. ## ------------------------ ##
  1597. # ac_fn_c_try_compile LINENO
  1598. # --------------------------
  1599. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1600. ac_fn_c_try_compile ()
  1601. {
  1602. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1603. rm -f conftest.$ac_objext
  1604. if { { ac_try="$ac_compile"
  1605. case "(($ac_try" in
  1606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1607. *) ac_try_echo=$ac_try;;
  1608. esac
  1609. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1610. $as_echo "$ac_try_echo"; } >&5
  1611. (eval "$ac_compile") 2>conftest.err
  1612. ac_status=$?
  1613. if test -s conftest.err; then
  1614. grep -v '^ *+' conftest.err >conftest.er1
  1615. cat conftest.er1 >&5
  1616. mv -f conftest.er1 conftest.err
  1617. fi
  1618. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1619. test $ac_status = 0; } && {
  1620. test -z "$ac_c_werror_flag" ||
  1621. test ! -s conftest.err
  1622. } && test -s conftest.$ac_objext; then :
  1623. ac_retval=0
  1624. else
  1625. $as_echo "$as_me: failed program was:" >&5
  1626. sed 's/^/| /' conftest.$ac_ext >&5
  1627. ac_retval=1
  1628. fi
  1629. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1630. as_fn_set_status $ac_retval
  1631. } # ac_fn_c_try_compile
  1632. # ac_fn_c_try_link LINENO
  1633. # -----------------------
  1634. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1635. ac_fn_c_try_link ()
  1636. {
  1637. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1638. rm -f conftest.$ac_objext conftest$ac_exeext
  1639. if { { ac_try="$ac_link"
  1640. case "(($ac_try" in
  1641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1642. *) ac_try_echo=$ac_try;;
  1643. esac
  1644. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1645. $as_echo "$ac_try_echo"; } >&5
  1646. (eval "$ac_link") 2>conftest.err
  1647. ac_status=$?
  1648. if test -s conftest.err; then
  1649. grep -v '^ *+' conftest.err >conftest.er1
  1650. cat conftest.er1 >&5
  1651. mv -f conftest.er1 conftest.err
  1652. fi
  1653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1654. test $ac_status = 0; } && {
  1655. test -z "$ac_c_werror_flag" ||
  1656. test ! -s conftest.err
  1657. } && test -s conftest$ac_exeext && {
  1658. test "$cross_compiling" = yes ||
  1659. test -x conftest$ac_exeext
  1660. }; then :
  1661. ac_retval=0
  1662. else
  1663. $as_echo "$as_me: failed program was:" >&5
  1664. sed 's/^/| /' conftest.$ac_ext >&5
  1665. ac_retval=1
  1666. fi
  1667. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1668. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1669. # interfere with the next link command; also delete a directory that is
  1670. # left behind by Apple's compiler. We do this before executing the actions.
  1671. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1672. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1673. as_fn_set_status $ac_retval
  1674. } # ac_fn_c_try_link
  1675. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1676. # -------------------------------------------------------
  1677. # Tests whether HEADER exists and can be compiled using the include files in
  1678. # INCLUDES, setting the cache variable VAR accordingly.
  1679. ac_fn_c_check_header_compile ()
  1680. {
  1681. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1683. $as_echo_n "checking for $2... " >&6; }
  1684. if eval \${$3+:} false; then :
  1685. $as_echo_n "(cached) " >&6
  1686. else
  1687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1688. /* end confdefs.h. */
  1689. $4
  1690. #include <$2>
  1691. _ACEOF
  1692. if ac_fn_c_try_compile "$LINENO"; then :
  1693. eval "$3=yes"
  1694. else
  1695. eval "$3=no"
  1696. fi
  1697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1698. fi
  1699. eval ac_res=\$$3
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1701. $as_echo "$ac_res" >&6; }
  1702. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1703. } # ac_fn_c_check_header_compile
  1704. # ac_fn_c_try_cpp LINENO
  1705. # ----------------------
  1706. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1707. ac_fn_c_try_cpp ()
  1708. {
  1709. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1710. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1711. case "(($ac_try" in
  1712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1713. *) ac_try_echo=$ac_try;;
  1714. esac
  1715. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1716. $as_echo "$ac_try_echo"; } >&5
  1717. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1718. ac_status=$?
  1719. if test -s conftest.err; then
  1720. grep -v '^ *+' conftest.err >conftest.er1
  1721. cat conftest.er1 >&5
  1722. mv -f conftest.er1 conftest.err
  1723. fi
  1724. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1725. test $ac_status = 0; } > conftest.i && {
  1726. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1727. test ! -s conftest.err
  1728. }; then :
  1729. ac_retval=0
  1730. else
  1731. $as_echo "$as_me: failed program was:" >&5
  1732. sed 's/^/| /' conftest.$ac_ext >&5
  1733. ac_retval=1
  1734. fi
  1735. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1736. as_fn_set_status $ac_retval
  1737. } # ac_fn_c_try_cpp
  1738. # ac_fn_c_try_run LINENO
  1739. # ----------------------
  1740. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1741. # that executables *can* be run.
  1742. ac_fn_c_try_run ()
  1743. {
  1744. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1745. if { { ac_try="$ac_link"
  1746. case "(($ac_try" in
  1747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1748. *) ac_try_echo=$ac_try;;
  1749. esac
  1750. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1751. $as_echo "$ac_try_echo"; } >&5
  1752. (eval "$ac_link") 2>&5
  1753. ac_status=$?
  1754. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1755. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1756. { { case "(($ac_try" in
  1757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1758. *) ac_try_echo=$ac_try;;
  1759. esac
  1760. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1761. $as_echo "$ac_try_echo"; } >&5
  1762. (eval "$ac_try") 2>&5
  1763. ac_status=$?
  1764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1765. test $ac_status = 0; }; }; then :
  1766. ac_retval=0
  1767. else
  1768. $as_echo "$as_me: program exited with status $ac_status" >&5
  1769. $as_echo "$as_me: failed program was:" >&5
  1770. sed 's/^/| /' conftest.$ac_ext >&5
  1771. ac_retval=$ac_status
  1772. fi
  1773. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1774. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1775. as_fn_set_status $ac_retval
  1776. } # ac_fn_c_try_run
  1777. # ac_fn_c_check_func LINENO FUNC VAR
  1778. # ----------------------------------
  1779. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1780. ac_fn_c_check_func ()
  1781. {
  1782. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1784. $as_echo_n "checking for $2... " >&6; }
  1785. if eval \${$3+:} false; then :
  1786. $as_echo_n "(cached) " >&6
  1787. else
  1788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1789. /* end confdefs.h. */
  1790. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1791. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1792. #define $2 innocuous_$2
  1793. /* System header to define __stub macros and hopefully few prototypes,
  1794. which can conflict with char $2 (); below.
  1795. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1796. <limits.h> exists even on freestanding compilers. */
  1797. #ifdef __STDC__
  1798. # include <limits.h>
  1799. #else
  1800. # include <assert.h>
  1801. #endif
  1802. #undef $2
  1803. /* Override any GCC internal prototype to avoid an error.
  1804. Use char because int might match the return type of a GCC
  1805. builtin and then its argument prototype would still apply. */
  1806. #ifdef __cplusplus
  1807. extern "C"
  1808. #endif
  1809. char $2 ();
  1810. /* The GNU C library defines this for functions which it implements
  1811. to always fail with ENOSYS. Some functions are actually named
  1812. something starting with __ and the normal name is an alias. */
  1813. #if defined __stub_$2 || defined __stub___$2
  1814. choke me
  1815. #endif
  1816. int
  1817. main ()
  1818. {
  1819. return $2 ();
  1820. ;
  1821. return 0;
  1822. }
  1823. _ACEOF
  1824. if ac_fn_c_try_link "$LINENO"; then :
  1825. eval "$3=yes"
  1826. else
  1827. eval "$3=no"
  1828. fi
  1829. rm -f core conftest.err conftest.$ac_objext \
  1830. conftest$ac_exeext conftest.$ac_ext
  1831. fi
  1832. eval ac_res=\$$3
  1833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1834. $as_echo "$ac_res" >&6; }
  1835. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1836. } # ac_fn_c_check_func
  1837. # ac_fn_cxx_try_compile LINENO
  1838. # ----------------------------
  1839. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1840. ac_fn_cxx_try_compile ()
  1841. {
  1842. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1843. rm -f conftest.$ac_objext
  1844. if { { ac_try="$ac_compile"
  1845. case "(($ac_try" in
  1846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1847. *) ac_try_echo=$ac_try;;
  1848. esac
  1849. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1850. $as_echo "$ac_try_echo"; } >&5
  1851. (eval "$ac_compile") 2>conftest.err
  1852. ac_status=$?
  1853. if test -s conftest.err; then
  1854. grep -v '^ *+' conftest.err >conftest.er1
  1855. cat conftest.er1 >&5
  1856. mv -f conftest.er1 conftest.err
  1857. fi
  1858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1859. test $ac_status = 0; } && {
  1860. test -z "$ac_cxx_werror_flag" ||
  1861. test ! -s conftest.err
  1862. } && test -s conftest.$ac_objext; then :
  1863. ac_retval=0
  1864. else
  1865. $as_echo "$as_me: failed program was:" >&5
  1866. sed 's/^/| /' conftest.$ac_ext >&5
  1867. ac_retval=1
  1868. fi
  1869. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1870. as_fn_set_status $ac_retval
  1871. } # ac_fn_cxx_try_compile
  1872. # ac_fn_cxx_try_cpp LINENO
  1873. # ------------------------
  1874. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1875. ac_fn_cxx_try_cpp ()
  1876. {
  1877. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1878. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1879. case "(($ac_try" in
  1880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1881. *) ac_try_echo=$ac_try;;
  1882. esac
  1883. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1884. $as_echo "$ac_try_echo"; } >&5
  1885. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1886. ac_status=$?
  1887. if test -s conftest.err; then
  1888. grep -v '^ *+' conftest.err >conftest.er1
  1889. cat conftest.er1 >&5
  1890. mv -f conftest.er1 conftest.err
  1891. fi
  1892. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1893. test $ac_status = 0; } > conftest.i && {
  1894. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1895. test ! -s conftest.err
  1896. }; then :
  1897. ac_retval=0
  1898. else
  1899. $as_echo "$as_me: failed program was:" >&5
  1900. sed 's/^/| /' conftest.$ac_ext >&5
  1901. ac_retval=1
  1902. fi
  1903. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1904. as_fn_set_status $ac_retval
  1905. } # ac_fn_cxx_try_cpp
  1906. # ac_fn_cxx_try_link LINENO
  1907. # -------------------------
  1908. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1909. ac_fn_cxx_try_link ()
  1910. {
  1911. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1912. rm -f conftest.$ac_objext conftest$ac_exeext
  1913. if { { ac_try="$ac_link"
  1914. case "(($ac_try" in
  1915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1916. *) ac_try_echo=$ac_try;;
  1917. esac
  1918. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1919. $as_echo "$ac_try_echo"; } >&5
  1920. (eval "$ac_link") 2>conftest.err
  1921. ac_status=$?
  1922. if test -s conftest.err; then
  1923. grep -v '^ *+' conftest.err >conftest.er1
  1924. cat conftest.er1 >&5
  1925. mv -f conftest.er1 conftest.err
  1926. fi
  1927. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1928. test $ac_status = 0; } && {
  1929. test -z "$ac_cxx_werror_flag" ||
  1930. test ! -s conftest.err
  1931. } && test -s conftest$ac_exeext && {
  1932. test "$cross_compiling" = yes ||
  1933. test -x conftest$ac_exeext
  1934. }; then :
  1935. ac_retval=0
  1936. else
  1937. $as_echo "$as_me: failed program was:" >&5
  1938. sed 's/^/| /' conftest.$ac_ext >&5
  1939. ac_retval=1
  1940. fi
  1941. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1942. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1943. # interfere with the next link command; also delete a directory that is
  1944. # left behind by Apple's compiler. We do this before executing the actions.
  1945. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1946. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1947. as_fn_set_status $ac_retval
  1948. } # ac_fn_cxx_try_link
  1949. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1950. # -------------------------------------------------------
  1951. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1952. # the include files in INCLUDES and setting the cache variable VAR
  1953. # accordingly.
  1954. ac_fn_c_check_header_mongrel ()
  1955. {
  1956. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1957. if eval \${$3+:} false; then :
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1959. $as_echo_n "checking for $2... " >&6; }
  1960. if eval \${$3+:} false; then :
  1961. $as_echo_n "(cached) " >&6
  1962. fi
  1963. eval ac_res=\$$3
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1965. $as_echo "$ac_res" >&6; }
  1966. else
  1967. # Is the header compilable?
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1969. $as_echo_n "checking $2 usability... " >&6; }
  1970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1971. /* end confdefs.h. */
  1972. $4
  1973. #include <$2>
  1974. _ACEOF
  1975. if ac_fn_c_try_compile "$LINENO"; then :
  1976. ac_header_compiler=yes
  1977. else
  1978. ac_header_compiler=no
  1979. fi
  1980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1982. $as_echo "$ac_header_compiler" >&6; }
  1983. # Is the header present?
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1985. $as_echo_n "checking $2 presence... " >&6; }
  1986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1987. /* end confdefs.h. */
  1988. #include <$2>
  1989. _ACEOF
  1990. if ac_fn_c_try_cpp "$LINENO"; then :
  1991. ac_header_preproc=yes
  1992. else
  1993. ac_header_preproc=no
  1994. fi
  1995. rm -f conftest.err conftest.i conftest.$ac_ext
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1997. $as_echo "$ac_header_preproc" >&6; }
  1998. # So? What about this header?
  1999. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2000. yes:no: )
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2002. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2004. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2005. ;;
  2006. no:yes:* )
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2008. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2010. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2012. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2014. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2016. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2017. ;;
  2018. esac
  2019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2020. $as_echo_n "checking for $2... " >&6; }
  2021. if eval \${$3+:} false; then :
  2022. $as_echo_n "(cached) " >&6
  2023. else
  2024. eval "$3=\$ac_header_compiler"
  2025. fi
  2026. eval ac_res=\$$3
  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2028. $as_echo "$ac_res" >&6; }
  2029. fi
  2030. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2031. } # ac_fn_c_check_header_mongrel
  2032. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2033. # -------------------------------------------
  2034. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2035. # variable VAR accordingly.
  2036. ac_fn_c_check_type ()
  2037. {
  2038. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2040. $as_echo_n "checking for $2... " >&6; }
  2041. if eval \${$3+:} false; then :
  2042. $as_echo_n "(cached) " >&6
  2043. else
  2044. eval "$3=no"
  2045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2046. /* end confdefs.h. */
  2047. $4
  2048. int
  2049. main ()
  2050. {
  2051. if (sizeof ($2))
  2052. return 0;
  2053. ;
  2054. return 0;
  2055. }
  2056. _ACEOF
  2057. if ac_fn_c_try_compile "$LINENO"; then :
  2058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2059. /* end confdefs.h. */
  2060. $4
  2061. int
  2062. main ()
  2063. {
  2064. if (sizeof (($2)))
  2065. return 0;
  2066. ;
  2067. return 0;
  2068. }
  2069. _ACEOF
  2070. if ac_fn_c_try_compile "$LINENO"; then :
  2071. else
  2072. eval "$3=yes"
  2073. fi
  2074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2075. fi
  2076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2077. fi
  2078. eval ac_res=\$$3
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2080. $as_echo "$ac_res" >&6; }
  2081. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2082. } # ac_fn_c_check_type
  2083. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2084. # ----------------------------------------------------
  2085. # Tries to find if the field MEMBER exists in type AGGR, after including
  2086. # INCLUDES, setting cache variable VAR accordingly.
  2087. ac_fn_c_check_member ()
  2088. {
  2089. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2091. $as_echo_n "checking for $2.$3... " >&6; }
  2092. if eval \${$4+:} false; then :
  2093. $as_echo_n "(cached) " >&6
  2094. else
  2095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2096. /* end confdefs.h. */
  2097. $5
  2098. int
  2099. main ()
  2100. {
  2101. static $2 ac_aggr;
  2102. if (ac_aggr.$3)
  2103. return 0;
  2104. ;
  2105. return 0;
  2106. }
  2107. _ACEOF
  2108. if ac_fn_c_try_compile "$LINENO"; then :
  2109. eval "$4=yes"
  2110. else
  2111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2112. /* end confdefs.h. */
  2113. $5
  2114. int
  2115. main ()
  2116. {
  2117. static $2 ac_aggr;
  2118. if (sizeof ac_aggr.$3)
  2119. return 0;
  2120. ;
  2121. return 0;
  2122. }
  2123. _ACEOF
  2124. if ac_fn_c_try_compile "$LINENO"; then :
  2125. eval "$4=yes"
  2126. else
  2127. eval "$4=no"
  2128. fi
  2129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2130. fi
  2131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2132. fi
  2133. eval ac_res=\$$4
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2135. $as_echo "$ac_res" >&6; }
  2136. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2137. } # ac_fn_c_check_member
  2138. cat >config.log <<_ACEOF
  2139. This file contains any messages produced by compilers while
  2140. running configure, to aid debugging if configure makes a mistake.
  2141. It was created by $as_me, which was
  2142. generated by GNU Autoconf 2.69. Invocation command line was
  2143. $ $0 $@
  2144. _ACEOF
  2145. exec 5>>config.log
  2146. {
  2147. cat <<_ASUNAME
  2148. ## --------- ##
  2149. ## Platform. ##
  2150. ## --------- ##
  2151. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2152. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2153. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2154. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2155. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2156. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2157. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2158. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2159. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2160. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2161. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2162. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2163. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2164. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2165. _ASUNAME
  2166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2167. for as_dir in $PATH
  2168. do
  2169. IFS=$as_save_IFS
  2170. test -z "$as_dir" && as_dir=.
  2171. $as_echo "PATH: $as_dir"
  2172. done
  2173. IFS=$as_save_IFS
  2174. } >&5
  2175. cat >&5 <<_ACEOF
  2176. ## ----------- ##
  2177. ## Core tests. ##
  2178. ## ----------- ##
  2179. _ACEOF
  2180. # Keep a trace of the command line.
  2181. # Strip out --no-create and --no-recursion so they do not pile up.
  2182. # Strip out --silent because we don't want to record it for future runs.
  2183. # Also quote any args containing shell meta-characters.
  2184. # Make two passes to allow for proper duplicate-argument suppression.
  2185. ac_configure_args=
  2186. ac_configure_args0=
  2187. ac_configure_args1=
  2188. ac_must_keep_next=false
  2189. for ac_pass in 1 2
  2190. do
  2191. for ac_arg
  2192. do
  2193. case $ac_arg in
  2194. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2195. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2196. | -silent | --silent | --silen | --sile | --sil)
  2197. continue ;;
  2198. *\'*)
  2199. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2200. esac
  2201. case $ac_pass in
  2202. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2203. 2)
  2204. as_fn_append ac_configure_args1 " '$ac_arg'"
  2205. if test $ac_must_keep_next = true; then
  2206. ac_must_keep_next=false # Got value, back to normal.
  2207. else
  2208. case $ac_arg in
  2209. *=* | --config-cache | -C | -disable-* | --disable-* \
  2210. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2211. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2212. | -with-* | --with-* | -without-* | --without-* | --x)
  2213. case "$ac_configure_args0 " in
  2214. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2215. esac
  2216. ;;
  2217. -* ) ac_must_keep_next=true ;;
  2218. esac
  2219. fi
  2220. as_fn_append ac_configure_args " '$ac_arg'"
  2221. ;;
  2222. esac
  2223. done
  2224. done
  2225. { ac_configure_args0=; unset ac_configure_args0;}
  2226. { ac_configure_args1=; unset ac_configure_args1;}
  2227. # When interrupted or exit'd, cleanup temporary files, and complete
  2228. # config.log. We remove comments because anyway the quotes in there
  2229. # would cause problems or look ugly.
  2230. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2231. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2232. trap 'exit_status=$?
  2233. # Save into config.log some information that might help in debugging.
  2234. {
  2235. echo
  2236. $as_echo "## ---------------- ##
  2237. ## Cache variables. ##
  2238. ## ---------------- ##"
  2239. echo
  2240. # The following way of writing the cache mishandles newlines in values,
  2241. (
  2242. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2243. eval ac_val=\$$ac_var
  2244. case $ac_val in #(
  2245. *${as_nl}*)
  2246. case $ac_var in #(
  2247. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2248. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2249. esac
  2250. case $ac_var in #(
  2251. _ | IFS | as_nl) ;; #(
  2252. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2253. *) { eval $ac_var=; unset $ac_var;} ;;
  2254. esac ;;
  2255. esac
  2256. done
  2257. (set) 2>&1 |
  2258. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2259. *${as_nl}ac_space=\ *)
  2260. sed -n \
  2261. "s/'\''/'\''\\\\'\'''\''/g;
  2262. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2263. ;; #(
  2264. *)
  2265. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2266. ;;
  2267. esac |
  2268. sort
  2269. )
  2270. echo
  2271. $as_echo "## ----------------- ##
  2272. ## Output variables. ##
  2273. ## ----------------- ##"
  2274. echo
  2275. for ac_var in $ac_subst_vars
  2276. do
  2277. eval ac_val=\$$ac_var
  2278. case $ac_val in
  2279. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2280. esac
  2281. $as_echo "$ac_var='\''$ac_val'\''"
  2282. done | sort
  2283. echo
  2284. if test -n "$ac_subst_files"; then
  2285. $as_echo "## ------------------- ##
  2286. ## File substitutions. ##
  2287. ## ------------------- ##"
  2288. echo
  2289. for ac_var in $ac_subst_files
  2290. do
  2291. eval ac_val=\$$ac_var
  2292. case $ac_val in
  2293. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2294. esac
  2295. $as_echo "$ac_var='\''$ac_val'\''"
  2296. done | sort
  2297. echo
  2298. fi
  2299. if test -s confdefs.h; then
  2300. $as_echo "## ----------- ##
  2301. ## confdefs.h. ##
  2302. ## ----------- ##"
  2303. echo
  2304. cat confdefs.h
  2305. echo
  2306. fi
  2307. test "$ac_signal" != 0 &&
  2308. $as_echo "$as_me: caught signal $ac_signal"
  2309. $as_echo "$as_me: exit $exit_status"
  2310. } >&5
  2311. rm -f core *.core core.conftest.* &&
  2312. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2313. exit $exit_status
  2314. ' 0
  2315. for ac_signal in 1 2 13 15; do
  2316. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2317. done
  2318. ac_signal=0
  2319. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2320. rm -f -r conftest* confdefs.h
  2321. $as_echo "/* confdefs.h */" > confdefs.h
  2322. # Predefined preprocessor variables.
  2323. cat >>confdefs.h <<_ACEOF
  2324. #define PACKAGE_NAME "$PACKAGE_NAME"
  2325. _ACEOF
  2326. cat >>confdefs.h <<_ACEOF
  2327. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2328. _ACEOF
  2329. cat >>confdefs.h <<_ACEOF
  2330. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2331. _ACEOF
  2332. cat >>confdefs.h <<_ACEOF
  2333. #define PACKAGE_STRING "$PACKAGE_STRING"
  2334. _ACEOF
  2335. cat >>confdefs.h <<_ACEOF
  2336. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2337. _ACEOF
  2338. cat >>confdefs.h <<_ACEOF
  2339. #define PACKAGE_URL "$PACKAGE_URL"
  2340. _ACEOF
  2341. # Let the site file select an alternate cache file if it wants to.
  2342. # Prefer an explicitly selected file to automatically selected ones.
  2343. ac_site_file1=NONE
  2344. ac_site_file2=NONE
  2345. if test -n "$CONFIG_SITE"; then
  2346. # We do not want a PATH search for config.site.
  2347. case $CONFIG_SITE in #((
  2348. -*) ac_site_file1=./$CONFIG_SITE;;
  2349. */*) ac_site_file1=$CONFIG_SITE;;
  2350. *) ac_site_file1=./$CONFIG_SITE;;
  2351. esac
  2352. elif test "x$prefix" != xNONE; then
  2353. ac_site_file1=$prefix/share/config.site
  2354. ac_site_file2=$prefix/etc/config.site
  2355. else
  2356. ac_site_file1=$ac_default_prefix/share/config.site
  2357. ac_site_file2=$ac_default_prefix/etc/config.site
  2358. fi
  2359. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2360. do
  2361. test "x$ac_site_file" = xNONE && continue
  2362. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2364. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2365. sed 's/^/| /' "$ac_site_file" >&5
  2366. . "$ac_site_file" \
  2367. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2368. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2369. as_fn_error $? "failed to load site script $ac_site_file
  2370. See \`config.log' for more details" "$LINENO" 5; }
  2371. fi
  2372. done
  2373. if test -r "$cache_file"; then
  2374. # Some versions of bash will fail to source /dev/null (special files
  2375. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2376. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2377. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2378. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2379. case $cache_file in
  2380. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2381. *) . "./$cache_file";;
  2382. esac
  2383. fi
  2384. else
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2386. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2387. >$cache_file
  2388. fi
  2389. # Check that the precious variables saved in the cache have kept the same
  2390. # value.
  2391. ac_cache_corrupted=false
  2392. for ac_var in $ac_precious_vars; do
  2393. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2394. eval ac_new_set=\$ac_env_${ac_var}_set
  2395. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2396. eval ac_new_val=\$ac_env_${ac_var}_value
  2397. case $ac_old_set,$ac_new_set in
  2398. set,)
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2400. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2401. ac_cache_corrupted=: ;;
  2402. ,set)
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2404. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2405. ac_cache_corrupted=: ;;
  2406. ,);;
  2407. *)
  2408. if test "x$ac_old_val" != "x$ac_new_val"; then
  2409. # differences in whitespace do not lead to failure.
  2410. ac_old_val_w=`echo x $ac_old_val`
  2411. ac_new_val_w=`echo x $ac_new_val`
  2412. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2414. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2415. ac_cache_corrupted=:
  2416. else
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2418. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2419. eval $ac_var=\$ac_old_val
  2420. fi
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2422. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2424. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2425. fi;;
  2426. esac
  2427. # Pass precious variables to config.status.
  2428. if test "$ac_new_set" = set; then
  2429. case $ac_new_val in
  2430. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2431. *) ac_arg=$ac_var=$ac_new_val ;;
  2432. esac
  2433. case " $ac_configure_args " in
  2434. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2435. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2436. esac
  2437. fi
  2438. done
  2439. if $ac_cache_corrupted; then
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2441. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2443. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2444. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2445. fi
  2446. ## -------------------- ##
  2447. ## Main body of script. ##
  2448. ## -------------------- ##
  2449. ac_ext=c
  2450. ac_cpp='$CPP $CPPFLAGS'
  2451. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2452. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2453. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2454. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2455. ac_aux_dir=
  2456. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2457. if test -f "$ac_dir/install-sh"; then
  2458. ac_aux_dir=$ac_dir
  2459. ac_install_sh="$ac_aux_dir/install-sh -c"
  2460. break
  2461. elif test -f "$ac_dir/install.sh"; then
  2462. ac_aux_dir=$ac_dir
  2463. ac_install_sh="$ac_aux_dir/install.sh -c"
  2464. break
  2465. elif test -f "$ac_dir/shtool"; then
  2466. ac_aux_dir=$ac_dir
  2467. ac_install_sh="$ac_aux_dir/shtool install -c"
  2468. break
  2469. fi
  2470. done
  2471. if test -z "$ac_aux_dir"; then
  2472. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2473. fi
  2474. # These three variables are undocumented and unsupported,
  2475. # and are intended to be withdrawn in a future Autoconf release.
  2476. # They can cause serious problems if a builder's source tree is in a directory
  2477. # whose full name contains unusual characters.
  2478. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2479. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2480. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2481. orig_CFLAGS="$CFLAGS"
  2482. #
  2483. # Making releases:
  2484. # Edit include/SDL_version.h and change the version, then:
  2485. # SDL_MICRO_VERSION += 1;
  2486. # SDL_INTERFACE_AGE += 1;
  2487. # SDL_BINARY_AGE += 1;
  2488. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2489. # if backwards compatibility has been broken,
  2490. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2491. #
  2492. SDL_MAJOR_VERSION=2
  2493. SDL_MINOR_VERSION=0
  2494. SDL_MICRO_VERSION=6
  2495. SDL_INTERFACE_AGE=0
  2496. SDL_BINARY_AGE=6
  2497. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2498. # libtool versioning
  2499. case `pwd` in
  2500. *\ * | *\ *)
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2502. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2503. esac
  2504. macro_version='2.4.2'
  2505. macro_revision='1.3337'
  2506. ltmain="$ac_aux_dir/ltmain.sh"
  2507. # Make sure we can run config.sub.
  2508. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2509. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2511. $as_echo_n "checking build system type... " >&6; }
  2512. if ${ac_cv_build+:} false; then :
  2513. $as_echo_n "(cached) " >&6
  2514. else
  2515. ac_build_alias=$build_alias
  2516. test "x$ac_build_alias" = x &&
  2517. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2518. test "x$ac_build_alias" = x &&
  2519. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2520. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2521. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2522. fi
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2524. $as_echo "$ac_cv_build" >&6; }
  2525. case $ac_cv_build in
  2526. *-*-*) ;;
  2527. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2528. esac
  2529. build=$ac_cv_build
  2530. ac_save_IFS=$IFS; IFS='-'
  2531. set x $ac_cv_build
  2532. shift
  2533. build_cpu=$1
  2534. build_vendor=$2
  2535. shift; shift
  2536. # Remember, the first character of IFS is used to create $*,
  2537. # except with old shells:
  2538. build_os=$*
  2539. IFS=$ac_save_IFS
  2540. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2542. $as_echo_n "checking host system type... " >&6; }
  2543. if ${ac_cv_host+:} false; then :
  2544. $as_echo_n "(cached) " >&6
  2545. else
  2546. if test "x$host_alias" = x; then
  2547. ac_cv_host=$ac_cv_build
  2548. else
  2549. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2550. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2551. fi
  2552. fi
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2554. $as_echo "$ac_cv_host" >&6; }
  2555. case $ac_cv_host in
  2556. *-*-*) ;;
  2557. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2558. esac
  2559. host=$ac_cv_host
  2560. ac_save_IFS=$IFS; IFS='-'
  2561. set x $ac_cv_host
  2562. shift
  2563. host_cpu=$1
  2564. host_vendor=$2
  2565. shift; shift
  2566. # Remember, the first character of IFS is used to create $*,
  2567. # except with old shells:
  2568. host_os=$*
  2569. IFS=$ac_save_IFS
  2570. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2571. # Backslashify metacharacters that are still active within
  2572. # double-quoted strings.
  2573. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2574. # Same as above, but do not quote variable references.
  2575. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2576. # Sed substitution to delay expansion of an escaped shell variable in a
  2577. # double_quote_subst'ed string.
  2578. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2579. # Sed substitution to delay expansion of an escaped single quote.
  2580. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2581. # Sed substitution to avoid accidental globbing in evaled expressions
  2582. no_glob_subst='s/\*/\\\*/g'
  2583. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2584. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2585. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2587. $as_echo_n "checking how to print strings... " >&6; }
  2588. # Test print first, because it will be a builtin if present.
  2589. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2590. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2591. ECHO='print -r --'
  2592. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2593. ECHO='printf %s\n'
  2594. else
  2595. # Use this function as a fallback that always works.
  2596. func_fallback_echo ()
  2597. {
  2598. eval 'cat <<_LTECHO_EOF
  2599. $1
  2600. _LTECHO_EOF'
  2601. }
  2602. ECHO='func_fallback_echo'
  2603. fi
  2604. # func_echo_all arg...
  2605. # Invoke $ECHO with all args, space-separated.
  2606. func_echo_all ()
  2607. {
  2608. $ECHO ""
  2609. }
  2610. case "$ECHO" in
  2611. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2612. $as_echo "printf" >&6; } ;;
  2613. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2614. $as_echo "print -r" >&6; } ;;
  2615. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2616. $as_echo "cat" >&6; } ;;
  2617. esac
  2618. ac_ext=c
  2619. ac_cpp='$CPP $CPPFLAGS'
  2620. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2621. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2622. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2623. if test -n "$ac_tool_prefix"; then
  2624. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2625. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2627. $as_echo_n "checking for $ac_word... " >&6; }
  2628. if ${ac_cv_prog_CC+:} false; then :
  2629. $as_echo_n "(cached) " >&6
  2630. else
  2631. if test -n "$CC"; then
  2632. ac_cv_prog_CC="$CC" # Let the user override the test.
  2633. else
  2634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2635. for as_dir in $PATH
  2636. do
  2637. IFS=$as_save_IFS
  2638. test -z "$as_dir" && as_dir=.
  2639. for ac_exec_ext in '' $ac_executable_extensions; do
  2640. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2641. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2642. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2643. break 2
  2644. fi
  2645. done
  2646. done
  2647. IFS=$as_save_IFS
  2648. fi
  2649. fi
  2650. CC=$ac_cv_prog_CC
  2651. if test -n "$CC"; then
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2653. $as_echo "$CC" >&6; }
  2654. else
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2656. $as_echo "no" >&6; }
  2657. fi
  2658. fi
  2659. if test -z "$ac_cv_prog_CC"; then
  2660. ac_ct_CC=$CC
  2661. # Extract the first word of "gcc", so it can be a program name with args.
  2662. set dummy gcc; ac_word=$2
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2664. $as_echo_n "checking for $ac_word... " >&6; }
  2665. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2666. $as_echo_n "(cached) " >&6
  2667. else
  2668. if test -n "$ac_ct_CC"; then
  2669. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2670. else
  2671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2672. for as_dir in $PATH
  2673. do
  2674. IFS=$as_save_IFS
  2675. test -z "$as_dir" && as_dir=.
  2676. for ac_exec_ext in '' $ac_executable_extensions; do
  2677. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2678. ac_cv_prog_ac_ct_CC="gcc"
  2679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2680. break 2
  2681. fi
  2682. done
  2683. done
  2684. IFS=$as_save_IFS
  2685. fi
  2686. fi
  2687. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2688. if test -n "$ac_ct_CC"; then
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2690. $as_echo "$ac_ct_CC" >&6; }
  2691. else
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2693. $as_echo "no" >&6; }
  2694. fi
  2695. if test "x$ac_ct_CC" = x; then
  2696. CC=""
  2697. else
  2698. case $cross_compiling:$ac_tool_warned in
  2699. yes:)
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2701. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2702. ac_tool_warned=yes ;;
  2703. esac
  2704. CC=$ac_ct_CC
  2705. fi
  2706. else
  2707. CC="$ac_cv_prog_CC"
  2708. fi
  2709. if test -z "$CC"; then
  2710. if test -n "$ac_tool_prefix"; then
  2711. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2712. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2714. $as_echo_n "checking for $ac_word... " >&6; }
  2715. if ${ac_cv_prog_CC+:} false; then :
  2716. $as_echo_n "(cached) " >&6
  2717. else
  2718. if test -n "$CC"; then
  2719. ac_cv_prog_CC="$CC" # Let the user override the test.
  2720. else
  2721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2722. for as_dir in $PATH
  2723. do
  2724. IFS=$as_save_IFS
  2725. test -z "$as_dir" && as_dir=.
  2726. for ac_exec_ext in '' $ac_executable_extensions; do
  2727. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2728. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2730. break 2
  2731. fi
  2732. done
  2733. done
  2734. IFS=$as_save_IFS
  2735. fi
  2736. fi
  2737. CC=$ac_cv_prog_CC
  2738. if test -n "$CC"; then
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2740. $as_echo "$CC" >&6; }
  2741. else
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2743. $as_echo "no" >&6; }
  2744. fi
  2745. fi
  2746. fi
  2747. if test -z "$CC"; then
  2748. # Extract the first word of "cc", so it can be a program name with args.
  2749. set dummy cc; ac_word=$2
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2751. $as_echo_n "checking for $ac_word... " >&6; }
  2752. if ${ac_cv_prog_CC+:} false; then :
  2753. $as_echo_n "(cached) " >&6
  2754. else
  2755. if test -n "$CC"; then
  2756. ac_cv_prog_CC="$CC" # Let the user override the test.
  2757. else
  2758. ac_prog_rejected=no
  2759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2760. for as_dir in $PATH
  2761. do
  2762. IFS=$as_save_IFS
  2763. test -z "$as_dir" && as_dir=.
  2764. for ac_exec_ext in '' $ac_executable_extensions; do
  2765. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2766. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2767. ac_prog_rejected=yes
  2768. continue
  2769. fi
  2770. ac_cv_prog_CC="cc"
  2771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2772. break 2
  2773. fi
  2774. done
  2775. done
  2776. IFS=$as_save_IFS
  2777. if test $ac_prog_rejected = yes; then
  2778. # We found a bogon in the path, so make sure we never use it.
  2779. set dummy $ac_cv_prog_CC
  2780. shift
  2781. if test $# != 0; then
  2782. # We chose a different compiler from the bogus one.
  2783. # However, it has the same basename, so the bogon will be chosen
  2784. # first if we set CC to just the basename; use the full file name.
  2785. shift
  2786. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2787. fi
  2788. fi
  2789. fi
  2790. fi
  2791. CC=$ac_cv_prog_CC
  2792. if test -n "$CC"; then
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2794. $as_echo "$CC" >&6; }
  2795. else
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2797. $as_echo "no" >&6; }
  2798. fi
  2799. fi
  2800. if test -z "$CC"; then
  2801. if test -n "$ac_tool_prefix"; then
  2802. for ac_prog in cl.exe
  2803. do
  2804. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2805. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2807. $as_echo_n "checking for $ac_word... " >&6; }
  2808. if ${ac_cv_prog_CC+:} false; then :
  2809. $as_echo_n "(cached) " >&6
  2810. else
  2811. if test -n "$CC"; then
  2812. ac_cv_prog_CC="$CC" # Let the user override the test.
  2813. else
  2814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2815. for as_dir in $PATH
  2816. do
  2817. IFS=$as_save_IFS
  2818. test -z "$as_dir" && as_dir=.
  2819. for ac_exec_ext in '' $ac_executable_extensions; do
  2820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2821. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2823. break 2
  2824. fi
  2825. done
  2826. done
  2827. IFS=$as_save_IFS
  2828. fi
  2829. fi
  2830. CC=$ac_cv_prog_CC
  2831. if test -n "$CC"; then
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2833. $as_echo "$CC" >&6; }
  2834. else
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2836. $as_echo "no" >&6; }
  2837. fi
  2838. test -n "$CC" && break
  2839. done
  2840. fi
  2841. if test -z "$CC"; then
  2842. ac_ct_CC=$CC
  2843. for ac_prog in cl.exe
  2844. do
  2845. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2846. set dummy $ac_prog; ac_word=$2
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2848. $as_echo_n "checking for $ac_word... " >&6; }
  2849. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2850. $as_echo_n "(cached) " >&6
  2851. else
  2852. if test -n "$ac_ct_CC"; then
  2853. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2854. else
  2855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2856. for as_dir in $PATH
  2857. do
  2858. IFS=$as_save_IFS
  2859. test -z "$as_dir" && as_dir=.
  2860. for ac_exec_ext in '' $ac_executable_extensions; do
  2861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2862. ac_cv_prog_ac_ct_CC="$ac_prog"
  2863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2864. break 2
  2865. fi
  2866. done
  2867. done
  2868. IFS=$as_save_IFS
  2869. fi
  2870. fi
  2871. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2872. if test -n "$ac_ct_CC"; then
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2874. $as_echo "$ac_ct_CC" >&6; }
  2875. else
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2877. $as_echo "no" >&6; }
  2878. fi
  2879. test -n "$ac_ct_CC" && break
  2880. done
  2881. if test "x$ac_ct_CC" = x; then
  2882. CC=""
  2883. else
  2884. case $cross_compiling:$ac_tool_warned in
  2885. yes:)
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2887. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2888. ac_tool_warned=yes ;;
  2889. esac
  2890. CC=$ac_ct_CC
  2891. fi
  2892. fi
  2893. fi
  2894. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2895. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2896. as_fn_error $? "no acceptable C compiler found in \$PATH
  2897. See \`config.log' for more details" "$LINENO" 5; }
  2898. # Provide some information about the compiler.
  2899. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2900. set X $ac_compile
  2901. ac_compiler=$2
  2902. for ac_option in --version -v -V -qversion; do
  2903. { { ac_try="$ac_compiler $ac_option >&5"
  2904. case "(($ac_try" in
  2905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2906. *) ac_try_echo=$ac_try;;
  2907. esac
  2908. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2909. $as_echo "$ac_try_echo"; } >&5
  2910. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2911. ac_status=$?
  2912. if test -s conftest.err; then
  2913. sed '10a\
  2914. ... rest of stderr output deleted ...
  2915. 10q' conftest.err >conftest.er1
  2916. cat conftest.er1 >&5
  2917. fi
  2918. rm -f conftest.er1 conftest.err
  2919. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2920. test $ac_status = 0; }
  2921. done
  2922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2923. /* end confdefs.h. */
  2924. int
  2925. main ()
  2926. {
  2927. ;
  2928. return 0;
  2929. }
  2930. _ACEOF
  2931. ac_clean_files_save=$ac_clean_files
  2932. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2933. # Try to create an executable without -o first, disregard a.out.
  2934. # It will help us diagnose broken compilers, and finding out an intuition
  2935. # of exeext.
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2937. $as_echo_n "checking whether the C compiler works... " >&6; }
  2938. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2939. # The possible output files:
  2940. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2941. ac_rmfiles=
  2942. for ac_file in $ac_files
  2943. do
  2944. case $ac_file in
  2945. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2946. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2947. esac
  2948. done
  2949. rm -f $ac_rmfiles
  2950. if { { ac_try="$ac_link_default"
  2951. case "(($ac_try" in
  2952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2953. *) ac_try_echo=$ac_try;;
  2954. esac
  2955. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2956. $as_echo "$ac_try_echo"; } >&5
  2957. (eval "$ac_link_default") 2>&5
  2958. ac_status=$?
  2959. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2960. test $ac_status = 0; }; then :
  2961. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2962. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2963. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2964. # so that the user can short-circuit this test for compilers unknown to
  2965. # Autoconf.
  2966. for ac_file in $ac_files ''
  2967. do
  2968. test -f "$ac_file" || continue
  2969. case $ac_file in
  2970. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2971. ;;
  2972. [ab].out )
  2973. # We found the default executable, but exeext='' is most
  2974. # certainly right.
  2975. break;;
  2976. *.* )
  2977. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2978. then :; else
  2979. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2980. fi
  2981. # We set ac_cv_exeext here because the later test for it is not
  2982. # safe: cross compilers may not add the suffix if given an `-o'
  2983. # argument, so we may need to know it at that point already.
  2984. # Even if this section looks crufty: it has the advantage of
  2985. # actually working.
  2986. break;;
  2987. * )
  2988. break;;
  2989. esac
  2990. done
  2991. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2992. else
  2993. ac_file=''
  2994. fi
  2995. if test -z "$ac_file"; then :
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2997. $as_echo "no" >&6; }
  2998. $as_echo "$as_me: failed program was:" >&5
  2999. sed 's/^/| /' conftest.$ac_ext >&5
  3000. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3001. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3002. as_fn_error 77 "C compiler cannot create executables
  3003. See \`config.log' for more details" "$LINENO" 5; }
  3004. else
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3006. $as_echo "yes" >&6; }
  3007. fi
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3009. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3011. $as_echo "$ac_file" >&6; }
  3012. ac_exeext=$ac_cv_exeext
  3013. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3014. ac_clean_files=$ac_clean_files_save
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3016. $as_echo_n "checking for suffix of executables... " >&6; }
  3017. if { { ac_try="$ac_link"
  3018. case "(($ac_try" in
  3019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3020. *) ac_try_echo=$ac_try;;
  3021. esac
  3022. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3023. $as_echo "$ac_try_echo"; } >&5
  3024. (eval "$ac_link") 2>&5
  3025. ac_status=$?
  3026. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3027. test $ac_status = 0; }; then :
  3028. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3029. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3030. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3031. # `rm'.
  3032. for ac_file in conftest.exe conftest conftest.*; do
  3033. test -f "$ac_file" || continue
  3034. case $ac_file in
  3035. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3036. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3037. break;;
  3038. * ) break;;
  3039. esac
  3040. done
  3041. else
  3042. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3043. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3044. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3045. See \`config.log' for more details" "$LINENO" 5; }
  3046. fi
  3047. rm -f conftest conftest$ac_cv_exeext
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3049. $as_echo "$ac_cv_exeext" >&6; }
  3050. rm -f conftest.$ac_ext
  3051. EXEEXT=$ac_cv_exeext
  3052. ac_exeext=$EXEEXT
  3053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3054. /* end confdefs.h. */
  3055. #include <stdio.h>
  3056. int
  3057. main ()
  3058. {
  3059. FILE *f = fopen ("conftest.out", "w");
  3060. return ferror (f) || fclose (f) != 0;
  3061. ;
  3062. return 0;
  3063. }
  3064. _ACEOF
  3065. ac_clean_files="$ac_clean_files conftest.out"
  3066. # Check that the compiler produces executables we can run. If not, either
  3067. # the compiler is broken, or we cross compile.
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3069. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3070. if test "$cross_compiling" != yes; then
  3071. { { ac_try="$ac_link"
  3072. case "(($ac_try" in
  3073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3074. *) ac_try_echo=$ac_try;;
  3075. esac
  3076. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3077. $as_echo "$ac_try_echo"; } >&5
  3078. (eval "$ac_link") 2>&5
  3079. ac_status=$?
  3080. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3081. test $ac_status = 0; }
  3082. if { ac_try='./conftest$ac_cv_exeext'
  3083. { { case "(($ac_try" in
  3084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3085. *) ac_try_echo=$ac_try;;
  3086. esac
  3087. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3088. $as_echo "$ac_try_echo"; } >&5
  3089. (eval "$ac_try") 2>&5
  3090. ac_status=$?
  3091. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3092. test $ac_status = 0; }; }; then
  3093. cross_compiling=no
  3094. else
  3095. if test "$cross_compiling" = maybe; then
  3096. cross_compiling=yes
  3097. else
  3098. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3099. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3100. as_fn_error $? "cannot run C compiled programs.
  3101. If you meant to cross compile, use \`--host'.
  3102. See \`config.log' for more details" "$LINENO" 5; }
  3103. fi
  3104. fi
  3105. fi
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3107. $as_echo "$cross_compiling" >&6; }
  3108. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3109. ac_clean_files=$ac_clean_files_save
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3111. $as_echo_n "checking for suffix of object files... " >&6; }
  3112. if ${ac_cv_objext+:} false; then :
  3113. $as_echo_n "(cached) " >&6
  3114. else
  3115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3116. /* end confdefs.h. */
  3117. int
  3118. main ()
  3119. {
  3120. ;
  3121. return 0;
  3122. }
  3123. _ACEOF
  3124. rm -f conftest.o conftest.obj
  3125. if { { ac_try="$ac_compile"
  3126. case "(($ac_try" in
  3127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3128. *) ac_try_echo=$ac_try;;
  3129. esac
  3130. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3131. $as_echo "$ac_try_echo"; } >&5
  3132. (eval "$ac_compile") 2>&5
  3133. ac_status=$?
  3134. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3135. test $ac_status = 0; }; then :
  3136. for ac_file in conftest.o conftest.obj conftest.*; do
  3137. test -f "$ac_file" || continue;
  3138. case $ac_file in
  3139. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3140. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3141. break;;
  3142. esac
  3143. done
  3144. else
  3145. $as_echo "$as_me: failed program was:" >&5
  3146. sed 's/^/| /' conftest.$ac_ext >&5
  3147. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3148. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3149. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3150. See \`config.log' for more details" "$LINENO" 5; }
  3151. fi
  3152. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3153. fi
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3155. $as_echo "$ac_cv_objext" >&6; }
  3156. OBJEXT=$ac_cv_objext
  3157. ac_objext=$OBJEXT
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3159. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3160. if ${ac_cv_c_compiler_gnu+:} false; then :
  3161. $as_echo_n "(cached) " >&6
  3162. else
  3163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3164. /* end confdefs.h. */
  3165. int
  3166. main ()
  3167. {
  3168. #ifndef __GNUC__
  3169. choke me
  3170. #endif
  3171. ;
  3172. return 0;
  3173. }
  3174. _ACEOF
  3175. if ac_fn_c_try_compile "$LINENO"; then :
  3176. ac_compiler_gnu=yes
  3177. else
  3178. ac_compiler_gnu=no
  3179. fi
  3180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3181. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3182. fi
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3184. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3185. if test $ac_compiler_gnu = yes; then
  3186. GCC=yes
  3187. else
  3188. GCC=
  3189. fi
  3190. ac_test_CFLAGS=${CFLAGS+set}
  3191. ac_save_CFLAGS=$CFLAGS
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3193. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3194. if ${ac_cv_prog_cc_g+:} false; then :
  3195. $as_echo_n "(cached) " >&6
  3196. else
  3197. ac_save_c_werror_flag=$ac_c_werror_flag
  3198. ac_c_werror_flag=yes
  3199. ac_cv_prog_cc_g=no
  3200. CFLAGS="-g"
  3201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3202. /* end confdefs.h. */
  3203. int
  3204. main ()
  3205. {
  3206. ;
  3207. return 0;
  3208. }
  3209. _ACEOF
  3210. if ac_fn_c_try_compile "$LINENO"; then :
  3211. ac_cv_prog_cc_g=yes
  3212. else
  3213. CFLAGS=""
  3214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3215. /* end confdefs.h. */
  3216. int
  3217. main ()
  3218. {
  3219. ;
  3220. return 0;
  3221. }
  3222. _ACEOF
  3223. if ac_fn_c_try_compile "$LINENO"; then :
  3224. else
  3225. ac_c_werror_flag=$ac_save_c_werror_flag
  3226. CFLAGS="-g"
  3227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3228. /* end confdefs.h. */
  3229. int
  3230. main ()
  3231. {
  3232. ;
  3233. return 0;
  3234. }
  3235. _ACEOF
  3236. if ac_fn_c_try_compile "$LINENO"; then :
  3237. ac_cv_prog_cc_g=yes
  3238. fi
  3239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3240. fi
  3241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3242. fi
  3243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3244. ac_c_werror_flag=$ac_save_c_werror_flag
  3245. fi
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3247. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3248. if test "$ac_test_CFLAGS" = set; then
  3249. CFLAGS=$ac_save_CFLAGS
  3250. elif test $ac_cv_prog_cc_g = yes; then
  3251. if test "$GCC" = yes; then
  3252. CFLAGS="-g -O2"
  3253. else
  3254. CFLAGS="-g"
  3255. fi
  3256. else
  3257. if test "$GCC" = yes; then
  3258. CFLAGS="-O2"
  3259. else
  3260. CFLAGS=
  3261. fi
  3262. fi
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3264. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3265. if ${ac_cv_prog_cc_c89+:} false; then :
  3266. $as_echo_n "(cached) " >&6
  3267. else
  3268. ac_cv_prog_cc_c89=no
  3269. ac_save_CC=$CC
  3270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3271. /* end confdefs.h. */
  3272. #include <stdarg.h>
  3273. #include <stdio.h>
  3274. struct stat;
  3275. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3276. struct buf { int x; };
  3277. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3278. static char *e (p, i)
  3279. char **p;
  3280. int i;
  3281. {
  3282. return p[i];
  3283. }
  3284. static char *f (char * (*g) (char **, int), char **p, ...)
  3285. {
  3286. char *s;
  3287. va_list v;
  3288. va_start (v,p);
  3289. s = g (p, va_arg (v,int));
  3290. va_end (v);
  3291. return s;
  3292. }
  3293. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3294. function prototypes and stuff, but not '\xHH' hex character constants.
  3295. These don't provoke an error unfortunately, instead are silently treated
  3296. as 'x'. The following induces an error, until -std is added to get
  3297. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3298. array size at least. It's necessary to write '\x00'==0 to get something
  3299. that's true only with -std. */
  3300. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3301. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3302. inside strings and character constants. */
  3303. #define FOO(x) 'x'
  3304. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3305. int test (int i, double x);
  3306. struct s1 {int (*f) (int a);};
  3307. struct s2 {int (*f) (double a);};
  3308. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3309. int argc;
  3310. char **argv;
  3311. int
  3312. main ()
  3313. {
  3314. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3315. ;
  3316. return 0;
  3317. }
  3318. _ACEOF
  3319. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3320. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3321. do
  3322. CC="$ac_save_CC $ac_arg"
  3323. if ac_fn_c_try_compile "$LINENO"; then :
  3324. ac_cv_prog_cc_c89=$ac_arg
  3325. fi
  3326. rm -f core conftest.err conftest.$ac_objext
  3327. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3328. done
  3329. rm -f conftest.$ac_ext
  3330. CC=$ac_save_CC
  3331. fi
  3332. # AC_CACHE_VAL
  3333. case "x$ac_cv_prog_cc_c89" in
  3334. x)
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3336. $as_echo "none needed" >&6; } ;;
  3337. xno)
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3339. $as_echo "unsupported" >&6; } ;;
  3340. *)
  3341. CC="$CC $ac_cv_prog_cc_c89"
  3342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3343. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3344. esac
  3345. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3346. fi
  3347. ac_ext=c
  3348. ac_cpp='$CPP $CPPFLAGS'
  3349. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3350. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3351. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3353. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3354. if ${ac_cv_path_SED+:} false; then :
  3355. $as_echo_n "(cached) " >&6
  3356. else
  3357. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3358. for ac_i in 1 2 3 4 5 6 7; do
  3359. ac_script="$ac_script$as_nl$ac_script"
  3360. done
  3361. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3362. { ac_script=; unset ac_script;}
  3363. if test -z "$SED"; then
  3364. ac_path_SED_found=false
  3365. # Loop through the user's path and test for each of PROGNAME-LIST
  3366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3367. for as_dir in $PATH
  3368. do
  3369. IFS=$as_save_IFS
  3370. test -z "$as_dir" && as_dir=.
  3371. for ac_prog in sed gsed; do
  3372. for ac_exec_ext in '' $ac_executable_extensions; do
  3373. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3374. as_fn_executable_p "$ac_path_SED" || continue
  3375. # Check for GNU ac_path_SED and select it if it is found.
  3376. # Check for GNU $ac_path_SED
  3377. case `"$ac_path_SED" --version 2>&1` in
  3378. *GNU*)
  3379. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3380. *)
  3381. ac_count=0
  3382. $as_echo_n 0123456789 >"conftest.in"
  3383. while :
  3384. do
  3385. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3386. mv "conftest.tmp" "conftest.in"
  3387. cp "conftest.in" "conftest.nl"
  3388. $as_echo '' >> "conftest.nl"
  3389. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3390. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3391. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3392. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3393. # Best one so far, save it but keep looking for a better one
  3394. ac_cv_path_SED="$ac_path_SED"
  3395. ac_path_SED_max=$ac_count
  3396. fi
  3397. # 10*(2^10) chars as input seems more than enough
  3398. test $ac_count -gt 10 && break
  3399. done
  3400. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3401. esac
  3402. $ac_path_SED_found && break 3
  3403. done
  3404. done
  3405. done
  3406. IFS=$as_save_IFS
  3407. if test -z "$ac_cv_path_SED"; then
  3408. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3409. fi
  3410. else
  3411. ac_cv_path_SED=$SED
  3412. fi
  3413. fi
  3414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3415. $as_echo "$ac_cv_path_SED" >&6; }
  3416. SED="$ac_cv_path_SED"
  3417. rm -f conftest.sed
  3418. test -z "$SED" && SED=sed
  3419. Xsed="$SED -e 1s/^X//"
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3421. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3422. if ${ac_cv_path_GREP+:} false; then :
  3423. $as_echo_n "(cached) " >&6
  3424. else
  3425. if test -z "$GREP"; then
  3426. ac_path_GREP_found=false
  3427. # Loop through the user's path and test for each of PROGNAME-LIST
  3428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3429. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3430. do
  3431. IFS=$as_save_IFS
  3432. test -z "$as_dir" && as_dir=.
  3433. for ac_prog in grep ggrep; do
  3434. for ac_exec_ext in '' $ac_executable_extensions; do
  3435. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3436. as_fn_executable_p "$ac_path_GREP" || continue
  3437. # Check for GNU ac_path_GREP and select it if it is found.
  3438. # Check for GNU $ac_path_GREP
  3439. case `"$ac_path_GREP" --version 2>&1` in
  3440. *GNU*)
  3441. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3442. *)
  3443. ac_count=0
  3444. $as_echo_n 0123456789 >"conftest.in"
  3445. while :
  3446. do
  3447. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3448. mv "conftest.tmp" "conftest.in"
  3449. cp "conftest.in" "conftest.nl"
  3450. $as_echo 'GREP' >> "conftest.nl"
  3451. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3452. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3453. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3454. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3455. # Best one so far, save it but keep looking for a better one
  3456. ac_cv_path_GREP="$ac_path_GREP"
  3457. ac_path_GREP_max=$ac_count
  3458. fi
  3459. # 10*(2^10) chars as input seems more than enough
  3460. test $ac_count -gt 10 && break
  3461. done
  3462. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3463. esac
  3464. $ac_path_GREP_found && break 3
  3465. done
  3466. done
  3467. done
  3468. IFS=$as_save_IFS
  3469. if test -z "$ac_cv_path_GREP"; then
  3470. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3471. fi
  3472. else
  3473. ac_cv_path_GREP=$GREP
  3474. fi
  3475. fi
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3477. $as_echo "$ac_cv_path_GREP" >&6; }
  3478. GREP="$ac_cv_path_GREP"
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3480. $as_echo_n "checking for egrep... " >&6; }
  3481. if ${ac_cv_path_EGREP+:} false; then :
  3482. $as_echo_n "(cached) " >&6
  3483. else
  3484. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3485. then ac_cv_path_EGREP="$GREP -E"
  3486. else
  3487. if test -z "$EGREP"; then
  3488. ac_path_EGREP_found=false
  3489. # Loop through the user's path and test for each of PROGNAME-LIST
  3490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3491. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3492. do
  3493. IFS=$as_save_IFS
  3494. test -z "$as_dir" && as_dir=.
  3495. for ac_prog in egrep; do
  3496. for ac_exec_ext in '' $ac_executable_extensions; do
  3497. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3498. as_fn_executable_p "$ac_path_EGREP" || continue
  3499. # Check for GNU ac_path_EGREP and select it if it is found.
  3500. # Check for GNU $ac_path_EGREP
  3501. case `"$ac_path_EGREP" --version 2>&1` in
  3502. *GNU*)
  3503. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3504. *)
  3505. ac_count=0
  3506. $as_echo_n 0123456789 >"conftest.in"
  3507. while :
  3508. do
  3509. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3510. mv "conftest.tmp" "conftest.in"
  3511. cp "conftest.in" "conftest.nl"
  3512. $as_echo 'EGREP' >> "conftest.nl"
  3513. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3514. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3515. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3516. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3517. # Best one so far, save it but keep looking for a better one
  3518. ac_cv_path_EGREP="$ac_path_EGREP"
  3519. ac_path_EGREP_max=$ac_count
  3520. fi
  3521. # 10*(2^10) chars as input seems more than enough
  3522. test $ac_count -gt 10 && break
  3523. done
  3524. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3525. esac
  3526. $ac_path_EGREP_found && break 3
  3527. done
  3528. done
  3529. done
  3530. IFS=$as_save_IFS
  3531. if test -z "$ac_cv_path_EGREP"; then
  3532. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3533. fi
  3534. else
  3535. ac_cv_path_EGREP=$EGREP
  3536. fi
  3537. fi
  3538. fi
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3540. $as_echo "$ac_cv_path_EGREP" >&6; }
  3541. EGREP="$ac_cv_path_EGREP"
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3543. $as_echo_n "checking for fgrep... " >&6; }
  3544. if ${ac_cv_path_FGREP+:} false; then :
  3545. $as_echo_n "(cached) " >&6
  3546. else
  3547. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3548. then ac_cv_path_FGREP="$GREP -F"
  3549. else
  3550. if test -z "$FGREP"; then
  3551. ac_path_FGREP_found=false
  3552. # Loop through the user's path and test for each of PROGNAME-LIST
  3553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3554. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3555. do
  3556. IFS=$as_save_IFS
  3557. test -z "$as_dir" && as_dir=.
  3558. for ac_prog in fgrep; do
  3559. for ac_exec_ext in '' $ac_executable_extensions; do
  3560. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3561. as_fn_executable_p "$ac_path_FGREP" || continue
  3562. # Check for GNU ac_path_FGREP and select it if it is found.
  3563. # Check for GNU $ac_path_FGREP
  3564. case `"$ac_path_FGREP" --version 2>&1` in
  3565. *GNU*)
  3566. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3567. *)
  3568. ac_count=0
  3569. $as_echo_n 0123456789 >"conftest.in"
  3570. while :
  3571. do
  3572. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3573. mv "conftest.tmp" "conftest.in"
  3574. cp "conftest.in" "conftest.nl"
  3575. $as_echo 'FGREP' >> "conftest.nl"
  3576. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3577. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3578. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3579. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3580. # Best one so far, save it but keep looking for a better one
  3581. ac_cv_path_FGREP="$ac_path_FGREP"
  3582. ac_path_FGREP_max=$ac_count
  3583. fi
  3584. # 10*(2^10) chars as input seems more than enough
  3585. test $ac_count -gt 10 && break
  3586. done
  3587. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3588. esac
  3589. $ac_path_FGREP_found && break 3
  3590. done
  3591. done
  3592. done
  3593. IFS=$as_save_IFS
  3594. if test -z "$ac_cv_path_FGREP"; then
  3595. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3596. fi
  3597. else
  3598. ac_cv_path_FGREP=$FGREP
  3599. fi
  3600. fi
  3601. fi
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3603. $as_echo "$ac_cv_path_FGREP" >&6; }
  3604. FGREP="$ac_cv_path_FGREP"
  3605. test -z "$GREP" && GREP=grep
  3606. # Check whether --with-gnu-ld was given.
  3607. if test "${with_gnu_ld+set}" = set; then :
  3608. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3609. else
  3610. with_gnu_ld=no
  3611. fi
  3612. ac_prog=ld
  3613. if test "$GCC" = yes; then
  3614. # Check if gcc -print-prog-name=ld gives a path.
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3616. $as_echo_n "checking for ld used by $CC... " >&6; }
  3617. case $host in
  3618. *-*-mingw*)
  3619. # gcc leaves a trailing carriage return which upsets mingw
  3620. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3621. *)
  3622. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3623. esac
  3624. case $ac_prog in
  3625. # Accept absolute paths.
  3626. [\\/]* | ?:[\\/]*)
  3627. re_direlt='/[^/][^/]*/\.\./'
  3628. # Canonicalize the pathname of ld
  3629. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3630. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3631. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3632. done
  3633. test -z "$LD" && LD="$ac_prog"
  3634. ;;
  3635. "")
  3636. # If it fails, then pretend we aren't using GCC.
  3637. ac_prog=ld
  3638. ;;
  3639. *)
  3640. # If it is relative, then search for the first ld in PATH.
  3641. with_gnu_ld=unknown
  3642. ;;
  3643. esac
  3644. elif test "$with_gnu_ld" = yes; then
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3646. $as_echo_n "checking for GNU ld... " >&6; }
  3647. else
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3649. $as_echo_n "checking for non-GNU ld... " >&6; }
  3650. fi
  3651. if ${lt_cv_path_LD+:} false; then :
  3652. $as_echo_n "(cached) " >&6
  3653. else
  3654. if test -z "$LD"; then
  3655. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3656. for ac_dir in $PATH; do
  3657. IFS="$lt_save_ifs"
  3658. test -z "$ac_dir" && ac_dir=.
  3659. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3660. lt_cv_path_LD="$ac_dir/$ac_prog"
  3661. # Check to see if the program is GNU ld. I'd rather use --version,
  3662. # but apparently some variants of GNU ld only accept -v.
  3663. # Break only if it was the GNU/non-GNU ld that we prefer.
  3664. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3665. *GNU* | *'with BFD'*)
  3666. test "$with_gnu_ld" != no && break
  3667. ;;
  3668. *)
  3669. test "$with_gnu_ld" != yes && break
  3670. ;;
  3671. esac
  3672. fi
  3673. done
  3674. IFS="$lt_save_ifs"
  3675. else
  3676. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3677. fi
  3678. fi
  3679. LD="$lt_cv_path_LD"
  3680. if test -n "$LD"; then
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3682. $as_echo "$LD" >&6; }
  3683. else
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3685. $as_echo "no" >&6; }
  3686. fi
  3687. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3689. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3690. if ${lt_cv_prog_gnu_ld+:} false; then :
  3691. $as_echo_n "(cached) " >&6
  3692. else
  3693. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3694. case `$LD -v 2>&1 </dev/null` in
  3695. *GNU* | *'with BFD'*)
  3696. lt_cv_prog_gnu_ld=yes
  3697. ;;
  3698. *)
  3699. lt_cv_prog_gnu_ld=no
  3700. ;;
  3701. esac
  3702. fi
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3704. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3705. with_gnu_ld=$lt_cv_prog_gnu_ld
  3706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3707. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3708. if ${lt_cv_path_NM+:} false; then :
  3709. $as_echo_n "(cached) " >&6
  3710. else
  3711. if test -n "$NM"; then
  3712. # Let the user override the test.
  3713. lt_cv_path_NM="$NM"
  3714. else
  3715. lt_nm_to_check="${ac_tool_prefix}nm"
  3716. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3717. lt_nm_to_check="$lt_nm_to_check nm"
  3718. fi
  3719. for lt_tmp_nm in $lt_nm_to_check; do
  3720. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3721. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3722. IFS="$lt_save_ifs"
  3723. test -z "$ac_dir" && ac_dir=.
  3724. tmp_nm="$ac_dir/$lt_tmp_nm"
  3725. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3726. # Check to see if the nm accepts a BSD-compat flag.
  3727. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3728. # nm: unknown option "B" ignored
  3729. # Tru64's nm complains that /dev/null is an invalid object file
  3730. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3731. */dev/null* | *'Invalid file or object type'*)
  3732. lt_cv_path_NM="$tmp_nm -B"
  3733. break
  3734. ;;
  3735. *)
  3736. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3737. */dev/null*)
  3738. lt_cv_path_NM="$tmp_nm -p"
  3739. break
  3740. ;;
  3741. *)
  3742. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3743. continue # so that we can try to find one that supports BSD flags
  3744. ;;
  3745. esac
  3746. ;;
  3747. esac
  3748. fi
  3749. done
  3750. IFS="$lt_save_ifs"
  3751. done
  3752. : ${lt_cv_path_NM=no}
  3753. fi
  3754. fi
  3755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3756. $as_echo "$lt_cv_path_NM" >&6; }
  3757. if test "$lt_cv_path_NM" != "no"; then
  3758. NM="$lt_cv_path_NM"
  3759. else
  3760. # Didn't find any BSD compatible name lister, look for dumpbin.
  3761. if test -n "$DUMPBIN"; then :
  3762. # Let the user override the test.
  3763. else
  3764. if test -n "$ac_tool_prefix"; then
  3765. for ac_prog in dumpbin "link -dump"
  3766. do
  3767. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3768. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3770. $as_echo_n "checking for $ac_word... " >&6; }
  3771. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3772. $as_echo_n "(cached) " >&6
  3773. else
  3774. if test -n "$DUMPBIN"; then
  3775. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3776. else
  3777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3778. for as_dir in $PATH
  3779. do
  3780. IFS=$as_save_IFS
  3781. test -z "$as_dir" && as_dir=.
  3782. for ac_exec_ext in '' $ac_executable_extensions; do
  3783. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3784. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3786. break 2
  3787. fi
  3788. done
  3789. done
  3790. IFS=$as_save_IFS
  3791. fi
  3792. fi
  3793. DUMPBIN=$ac_cv_prog_DUMPBIN
  3794. if test -n "$DUMPBIN"; then
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3796. $as_echo "$DUMPBIN" >&6; }
  3797. else
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3799. $as_echo "no" >&6; }
  3800. fi
  3801. test -n "$DUMPBIN" && break
  3802. done
  3803. fi
  3804. if test -z "$DUMPBIN"; then
  3805. ac_ct_DUMPBIN=$DUMPBIN
  3806. for ac_prog in dumpbin "link -dump"
  3807. do
  3808. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3809. set dummy $ac_prog; ac_word=$2
  3810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3811. $as_echo_n "checking for $ac_word... " >&6; }
  3812. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3813. $as_echo_n "(cached) " >&6
  3814. else
  3815. if test -n "$ac_ct_DUMPBIN"; then
  3816. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3817. else
  3818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3819. for as_dir in $PATH
  3820. do
  3821. IFS=$as_save_IFS
  3822. test -z "$as_dir" && as_dir=.
  3823. for ac_exec_ext in '' $ac_executable_extensions; do
  3824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3825. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3827. break 2
  3828. fi
  3829. done
  3830. done
  3831. IFS=$as_save_IFS
  3832. fi
  3833. fi
  3834. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3835. if test -n "$ac_ct_DUMPBIN"; then
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3837. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3838. else
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3840. $as_echo "no" >&6; }
  3841. fi
  3842. test -n "$ac_ct_DUMPBIN" && break
  3843. done
  3844. if test "x$ac_ct_DUMPBIN" = x; then
  3845. DUMPBIN=":"
  3846. else
  3847. case $cross_compiling:$ac_tool_warned in
  3848. yes:)
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3850. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3851. ac_tool_warned=yes ;;
  3852. esac
  3853. DUMPBIN=$ac_ct_DUMPBIN
  3854. fi
  3855. fi
  3856. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3857. *COFF*)
  3858. DUMPBIN="$DUMPBIN -symbols"
  3859. ;;
  3860. *)
  3861. DUMPBIN=:
  3862. ;;
  3863. esac
  3864. fi
  3865. if test "$DUMPBIN" != ":"; then
  3866. NM="$DUMPBIN"
  3867. fi
  3868. fi
  3869. test -z "$NM" && NM=nm
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3871. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3872. if ${lt_cv_nm_interface+:} false; then :
  3873. $as_echo_n "(cached) " >&6
  3874. else
  3875. lt_cv_nm_interface="BSD nm"
  3876. echo "int some_variable = 0;" > conftest.$ac_ext
  3877. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3878. (eval "$ac_compile" 2>conftest.err)
  3879. cat conftest.err >&5
  3880. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3881. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3882. cat conftest.err >&5
  3883. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3884. cat conftest.out >&5
  3885. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3886. lt_cv_nm_interface="MS dumpbin"
  3887. fi
  3888. rm -f conftest*
  3889. fi
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3891. $as_echo "$lt_cv_nm_interface" >&6; }
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3893. $as_echo_n "checking whether ln -s works... " >&6; }
  3894. LN_S=$as_ln_s
  3895. if test "$LN_S" = "ln -s"; then
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3897. $as_echo "yes" >&6; }
  3898. else
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3900. $as_echo "no, using $LN_S" >&6; }
  3901. fi
  3902. # find the maximum length of command line arguments
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3904. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3905. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3906. $as_echo_n "(cached) " >&6
  3907. else
  3908. i=0
  3909. teststring="ABCD"
  3910. case $build_os in
  3911. msdosdjgpp*)
  3912. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3913. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3914. # during glob expansion). Even if it were fixed, the result of this
  3915. # check would be larger than it should be.
  3916. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3917. ;;
  3918. gnu*)
  3919. # Under GNU Hurd, this test is not required because there is
  3920. # no limit to the length of command line arguments.
  3921. # Libtool will interpret -1 as no limit whatsoever
  3922. lt_cv_sys_max_cmd_len=-1;
  3923. ;;
  3924. cygwin* | mingw* | cegcc*)
  3925. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3926. # about 5 minutes as the teststring grows exponentially.
  3927. # Worse, since 9x/ME are not pre-emptively multitasking,
  3928. # you end up with a "frozen" computer, even though with patience
  3929. # the test eventually succeeds (with a max line length of 256k).
  3930. # Instead, let's just punt: use the minimum linelength reported by
  3931. # all of the supported platforms: 8192 (on NT/2K/XP).
  3932. lt_cv_sys_max_cmd_len=8192;
  3933. ;;
  3934. mint*)
  3935. # On MiNT this can take a long time and run out of memory.
  3936. lt_cv_sys_max_cmd_len=8192;
  3937. ;;
  3938. amigaos*)
  3939. # On AmigaOS with pdksh, this test takes hours, literally.
  3940. # So we just punt and use a minimum line length of 8192.
  3941. lt_cv_sys_max_cmd_len=8192;
  3942. ;;
  3943. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3944. # This has been around since 386BSD, at least. Likely further.
  3945. if test -x /sbin/sysctl; then
  3946. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3947. elif test -x /usr/sbin/sysctl; then
  3948. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3949. else
  3950. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3951. fi
  3952. # And add a safety zone
  3953. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3954. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3955. ;;
  3956. interix*)
  3957. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3958. lt_cv_sys_max_cmd_len=196608
  3959. ;;
  3960. os2*)
  3961. # The test takes a long time on OS/2.
  3962. lt_cv_sys_max_cmd_len=8192
  3963. ;;
  3964. osf*)
  3965. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3966. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3967. # nice to cause kernel panics so lets avoid the loop below.
  3968. # First set a reasonable default.
  3969. lt_cv_sys_max_cmd_len=16384
  3970. #
  3971. if test -x /sbin/sysconfig; then
  3972. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3973. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3974. esac
  3975. fi
  3976. ;;
  3977. sco3.2v5*)
  3978. lt_cv_sys_max_cmd_len=102400
  3979. ;;
  3980. sysv5* | sco5v6* | sysv4.2uw2*)
  3981. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3982. if test -n "$kargmax"; then
  3983. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3984. else
  3985. lt_cv_sys_max_cmd_len=32768
  3986. fi
  3987. ;;
  3988. *)
  3989. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3990. if test -n "$lt_cv_sys_max_cmd_len"; then
  3991. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3992. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3993. else
  3994. # Make teststring a little bigger before we do anything with it.
  3995. # a 1K string should be a reasonable start.
  3996. for i in 1 2 3 4 5 6 7 8 ; do
  3997. teststring=$teststring$teststring
  3998. done
  3999. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4000. # If test is not a shell built-in, we'll probably end up computing a
  4001. # maximum length that is only half of the actual maximum length, but
  4002. # we can't tell.
  4003. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4004. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4005. test $i != 17 # 1/2 MB should be enough
  4006. do
  4007. i=`expr $i + 1`
  4008. teststring=$teststring$teststring
  4009. done
  4010. # Only check the string length outside the loop.
  4011. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4012. teststring=
  4013. # Add a significant safety factor because C++ compilers can tack on
  4014. # massive amounts of additional arguments before passing them to the
  4015. # linker. It appears as though 1/2 is a usable value.
  4016. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4017. fi
  4018. ;;
  4019. esac
  4020. fi
  4021. if test -n $lt_cv_sys_max_cmd_len ; then
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4023. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4024. else
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4026. $as_echo "none" >&6; }
  4027. fi
  4028. max_cmd_len=$lt_cv_sys_max_cmd_len
  4029. : ${CP="cp -f"}
  4030. : ${MV="mv -f"}
  4031. : ${RM="rm -f"}
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4033. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4034. # Try some XSI features
  4035. xsi_shell=no
  4036. ( _lt_dummy="a/b/c"
  4037. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4038. = c,a/b,b/c, \
  4039. && eval 'test $(( 1 + 1 )) -eq 2 \
  4040. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4041. && xsi_shell=yes
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4043. $as_echo "$xsi_shell" >&6; }
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4045. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4046. lt_shell_append=no
  4047. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4048. >/dev/null 2>&1 \
  4049. && lt_shell_append=yes
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4051. $as_echo "$lt_shell_append" >&6; }
  4052. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4053. lt_unset=unset
  4054. else
  4055. lt_unset=false
  4056. fi
  4057. # test EBCDIC or ASCII
  4058. case `echo X|tr X '\101'` in
  4059. A) # ASCII based system
  4060. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4061. lt_SP2NL='tr \040 \012'
  4062. lt_NL2SP='tr \015\012 \040\040'
  4063. ;;
  4064. *) # EBCDIC based system
  4065. lt_SP2NL='tr \100 \n'
  4066. lt_NL2SP='tr \r\n \100\100'
  4067. ;;
  4068. esac
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4070. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4071. if ${lt_cv_to_host_file_cmd+:} false; then :
  4072. $as_echo_n "(cached) " >&6
  4073. else
  4074. case $host in
  4075. *-*-mingw* )
  4076. case $build in
  4077. *-*-mingw* ) # actually msys
  4078. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4079. ;;
  4080. *-*-cygwin* )
  4081. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4082. ;;
  4083. * ) # otherwise, assume *nix
  4084. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4085. ;;
  4086. esac
  4087. ;;
  4088. *-*-cygwin* )
  4089. case $build in
  4090. *-*-mingw* ) # actually msys
  4091. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4092. ;;
  4093. *-*-cygwin* )
  4094. lt_cv_to_host_file_cmd=func_convert_file_noop
  4095. ;;
  4096. * ) # otherwise, assume *nix
  4097. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4098. ;;
  4099. esac
  4100. ;;
  4101. * ) # unhandled hosts (and "normal" native builds)
  4102. lt_cv_to_host_file_cmd=func_convert_file_noop
  4103. ;;
  4104. esac
  4105. fi
  4106. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4108. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4110. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4111. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4112. $as_echo_n "(cached) " >&6
  4113. else
  4114. #assume ordinary cross tools, or native build.
  4115. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4116. case $host in
  4117. *-*-mingw* )
  4118. case $build in
  4119. *-*-mingw* ) # actually msys
  4120. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4121. ;;
  4122. esac
  4123. ;;
  4124. esac
  4125. fi
  4126. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4128. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4130. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4131. if ${lt_cv_ld_reload_flag+:} false; then :
  4132. $as_echo_n "(cached) " >&6
  4133. else
  4134. lt_cv_ld_reload_flag='-r'
  4135. fi
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4137. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4138. reload_flag=$lt_cv_ld_reload_flag
  4139. case $reload_flag in
  4140. "" | " "*) ;;
  4141. *) reload_flag=" $reload_flag" ;;
  4142. esac
  4143. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4144. case $host_os in
  4145. cygwin* | mingw* | pw32* | cegcc*)
  4146. if test "$GCC" != yes; then
  4147. reload_cmds=false
  4148. fi
  4149. ;;
  4150. darwin*)
  4151. if test "$GCC" = yes; then
  4152. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4153. else
  4154. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4155. fi
  4156. ;;
  4157. esac
  4158. if test -n "$ac_tool_prefix"; then
  4159. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4160. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4162. $as_echo_n "checking for $ac_word... " >&6; }
  4163. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4164. $as_echo_n "(cached) " >&6
  4165. else
  4166. if test -n "$OBJDUMP"; then
  4167. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4168. else
  4169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4170. for as_dir in $PATH
  4171. do
  4172. IFS=$as_save_IFS
  4173. test -z "$as_dir" && as_dir=.
  4174. for ac_exec_ext in '' $ac_executable_extensions; do
  4175. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4176. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4178. break 2
  4179. fi
  4180. done
  4181. done
  4182. IFS=$as_save_IFS
  4183. fi
  4184. fi
  4185. OBJDUMP=$ac_cv_prog_OBJDUMP
  4186. if test -n "$OBJDUMP"; then
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4188. $as_echo "$OBJDUMP" >&6; }
  4189. else
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4191. $as_echo "no" >&6; }
  4192. fi
  4193. fi
  4194. if test -z "$ac_cv_prog_OBJDUMP"; then
  4195. ac_ct_OBJDUMP=$OBJDUMP
  4196. # Extract the first word of "objdump", so it can be a program name with args.
  4197. set dummy objdump; ac_word=$2
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4199. $as_echo_n "checking for $ac_word... " >&6; }
  4200. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4201. $as_echo_n "(cached) " >&6
  4202. else
  4203. if test -n "$ac_ct_OBJDUMP"; then
  4204. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4205. else
  4206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4207. for as_dir in $PATH
  4208. do
  4209. IFS=$as_save_IFS
  4210. test -z "$as_dir" && as_dir=.
  4211. for ac_exec_ext in '' $ac_executable_extensions; do
  4212. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4213. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4215. break 2
  4216. fi
  4217. done
  4218. done
  4219. IFS=$as_save_IFS
  4220. fi
  4221. fi
  4222. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4223. if test -n "$ac_ct_OBJDUMP"; then
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4225. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4226. else
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4228. $as_echo "no" >&6; }
  4229. fi
  4230. if test "x$ac_ct_OBJDUMP" = x; then
  4231. OBJDUMP="false"
  4232. else
  4233. case $cross_compiling:$ac_tool_warned in
  4234. yes:)
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4236. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4237. ac_tool_warned=yes ;;
  4238. esac
  4239. OBJDUMP=$ac_ct_OBJDUMP
  4240. fi
  4241. else
  4242. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4243. fi
  4244. test -z "$OBJDUMP" && OBJDUMP=objdump
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4246. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4247. if ${lt_cv_deplibs_check_method+:} false; then :
  4248. $as_echo_n "(cached) " >&6
  4249. else
  4250. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4251. lt_cv_file_magic_test_file=
  4252. lt_cv_deplibs_check_method='unknown'
  4253. # Need to set the preceding variable on all platforms that support
  4254. # interlibrary dependencies.
  4255. # 'none' -- dependencies not supported.
  4256. # `unknown' -- same as none, but documents that we really don't know.
  4257. # 'pass_all' -- all dependencies passed with no checks.
  4258. # 'test_compile' -- check by making test program.
  4259. # 'file_magic [[regex]]' -- check by looking for files in library path
  4260. # which responds to the $file_magic_cmd with a given extended regex.
  4261. # If you have `file' or equivalent on your system and you're not sure
  4262. # whether `pass_all' will *always* work, you probably want this one.
  4263. case $host_os in
  4264. aix[4-9]*)
  4265. lt_cv_deplibs_check_method=pass_all
  4266. ;;
  4267. beos*)
  4268. lt_cv_deplibs_check_method=pass_all
  4269. ;;
  4270. bsdi[45]*)
  4271. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4272. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4273. lt_cv_file_magic_test_file=/shlib/libc.so
  4274. ;;
  4275. cygwin*)
  4276. # func_win32_libid is a shell function defined in ltmain.sh
  4277. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4278. lt_cv_file_magic_cmd='func_win32_libid'
  4279. lt_cv_deplibs_check_method=pass_all
  4280. ;;
  4281. mingw* | pw32*)
  4282. # Base MSYS/MinGW do not provide the 'file' command needed by
  4283. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4284. # unless we find 'file', for example because we are cross-compiling.
  4285. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4286. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4287. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4288. lt_cv_file_magic_cmd='func_win32_libid'
  4289. else
  4290. # Keep this pattern in sync with the one in func_win32_libid.
  4291. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4292. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4293. fi
  4294. lt_cv_deplibs_check_method=pass_all
  4295. ;;
  4296. cegcc*)
  4297. # use the weaker test based on 'objdump'. See mingw*.
  4298. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4299. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4300. ;;
  4301. darwin* | rhapsody*)
  4302. lt_cv_deplibs_check_method=pass_all
  4303. ;;
  4304. freebsd* | dragonfly*)
  4305. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4306. case $host_cpu in
  4307. i*86 )
  4308. # Not sure whether the presence of OpenBSD here was a mistake.
  4309. # Let's accept both of them until this is cleared up.
  4310. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4311. lt_cv_file_magic_cmd=/usr/bin/file
  4312. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4313. ;;
  4314. esac
  4315. else
  4316. lt_cv_deplibs_check_method=pass_all
  4317. fi
  4318. ;;
  4319. gnu*)
  4320. lt_cv_deplibs_check_method=pass_all
  4321. ;;
  4322. haiku*)
  4323. lt_cv_deplibs_check_method=pass_all
  4324. ;;
  4325. hpux10.20* | hpux11*)
  4326. lt_cv_file_magic_cmd=/usr/bin/file
  4327. case $host_cpu in
  4328. ia64*)
  4329. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4330. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4331. ;;
  4332. hppa*64*)
  4333. 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]'
  4334. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4335. ;;
  4336. *)
  4337. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4338. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4339. ;;
  4340. esac
  4341. ;;
  4342. interix[3-9]*)
  4343. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4344. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4345. ;;
  4346. irix5* | irix6* | nonstopux*)
  4347. case $LD in
  4348. *-32|*"-32 ") libmagic=32-bit;;
  4349. *-n32|*"-n32 ") libmagic=N32;;
  4350. *-64|*"-64 ") libmagic=64-bit;;
  4351. *) libmagic=never-match;;
  4352. esac
  4353. lt_cv_deplibs_check_method=pass_all
  4354. ;;
  4355. # This must be glibc/ELF.
  4356. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4357. lt_cv_deplibs_check_method=pass_all
  4358. ;;
  4359. netbsd*)
  4360. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4361. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4362. else
  4363. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4364. fi
  4365. ;;
  4366. newos6*)
  4367. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4368. lt_cv_file_magic_cmd=/usr/bin/file
  4369. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4370. ;;
  4371. *nto* | *qnx*)
  4372. lt_cv_deplibs_check_method=pass_all
  4373. ;;
  4374. openbsd*)
  4375. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4376. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4377. else
  4378. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4379. fi
  4380. ;;
  4381. osf3* | osf4* | osf5*)
  4382. lt_cv_deplibs_check_method=pass_all
  4383. ;;
  4384. rdos*)
  4385. lt_cv_deplibs_check_method=pass_all
  4386. ;;
  4387. solaris*)
  4388. lt_cv_deplibs_check_method=pass_all
  4389. ;;
  4390. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4391. lt_cv_deplibs_check_method=pass_all
  4392. ;;
  4393. sysv4 | sysv4.3*)
  4394. case $host_vendor in
  4395. motorola)
  4396. 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]'
  4397. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4398. ;;
  4399. ncr)
  4400. lt_cv_deplibs_check_method=pass_all
  4401. ;;
  4402. sequent)
  4403. lt_cv_file_magic_cmd='/bin/file'
  4404. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4405. ;;
  4406. sni)
  4407. lt_cv_file_magic_cmd='/bin/file'
  4408. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4409. lt_cv_file_magic_test_file=/lib/libc.so
  4410. ;;
  4411. siemens)
  4412. lt_cv_deplibs_check_method=pass_all
  4413. ;;
  4414. pc)
  4415. lt_cv_deplibs_check_method=pass_all
  4416. ;;
  4417. esac
  4418. ;;
  4419. tpf*)
  4420. lt_cv_deplibs_check_method=pass_all
  4421. ;;
  4422. esac
  4423. fi
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4425. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4426. file_magic_glob=
  4427. want_nocaseglob=no
  4428. if test "$build" = "$host"; then
  4429. case $host_os in
  4430. mingw* | pw32*)
  4431. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4432. want_nocaseglob=yes
  4433. else
  4434. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4435. fi
  4436. ;;
  4437. esac
  4438. fi
  4439. file_magic_cmd=$lt_cv_file_magic_cmd
  4440. deplibs_check_method=$lt_cv_deplibs_check_method
  4441. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4442. if test -n "$ac_tool_prefix"; then
  4443. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4444. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4446. $as_echo_n "checking for $ac_word... " >&6; }
  4447. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4448. $as_echo_n "(cached) " >&6
  4449. else
  4450. if test -n "$DLLTOOL"; then
  4451. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4452. else
  4453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4454. for as_dir in $PATH
  4455. do
  4456. IFS=$as_save_IFS
  4457. test -z "$as_dir" && as_dir=.
  4458. for ac_exec_ext in '' $ac_executable_extensions; do
  4459. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4460. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4461. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4462. break 2
  4463. fi
  4464. done
  4465. done
  4466. IFS=$as_save_IFS
  4467. fi
  4468. fi
  4469. DLLTOOL=$ac_cv_prog_DLLTOOL
  4470. if test -n "$DLLTOOL"; then
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4472. $as_echo "$DLLTOOL" >&6; }
  4473. else
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4475. $as_echo "no" >&6; }
  4476. fi
  4477. fi
  4478. if test -z "$ac_cv_prog_DLLTOOL"; then
  4479. ac_ct_DLLTOOL=$DLLTOOL
  4480. # Extract the first word of "dlltool", so it can be a program name with args.
  4481. set dummy dlltool; ac_word=$2
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4483. $as_echo_n "checking for $ac_word... " >&6; }
  4484. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4485. $as_echo_n "(cached) " >&6
  4486. else
  4487. if test -n "$ac_ct_DLLTOOL"; then
  4488. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4489. else
  4490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4491. for as_dir in $PATH
  4492. do
  4493. IFS=$as_save_IFS
  4494. test -z "$as_dir" && as_dir=.
  4495. for ac_exec_ext in '' $ac_executable_extensions; do
  4496. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4497. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4498. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4499. break 2
  4500. fi
  4501. done
  4502. done
  4503. IFS=$as_save_IFS
  4504. fi
  4505. fi
  4506. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4507. if test -n "$ac_ct_DLLTOOL"; then
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4509. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4510. else
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4512. $as_echo "no" >&6; }
  4513. fi
  4514. if test "x$ac_ct_DLLTOOL" = x; then
  4515. DLLTOOL="false"
  4516. else
  4517. case $cross_compiling:$ac_tool_warned in
  4518. yes:)
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4520. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4521. ac_tool_warned=yes ;;
  4522. esac
  4523. DLLTOOL=$ac_ct_DLLTOOL
  4524. fi
  4525. else
  4526. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4527. fi
  4528. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4530. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4531. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4532. $as_echo_n "(cached) " >&6
  4533. else
  4534. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4535. case $host_os in
  4536. cygwin* | mingw* | pw32* | cegcc*)
  4537. # two different shell functions defined in ltmain.sh
  4538. # decide which to use based on capabilities of $DLLTOOL
  4539. case `$DLLTOOL --help 2>&1` in
  4540. *--identify-strict*)
  4541. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4542. ;;
  4543. *)
  4544. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4545. ;;
  4546. esac
  4547. ;;
  4548. *)
  4549. # fallback: assume linklib IS sharedlib
  4550. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4551. ;;
  4552. esac
  4553. fi
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4555. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4556. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4557. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4558. if test -n "$ac_tool_prefix"; then
  4559. for ac_prog in ar
  4560. do
  4561. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4562. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4564. $as_echo_n "checking for $ac_word... " >&6; }
  4565. if ${ac_cv_prog_AR+:} false; then :
  4566. $as_echo_n "(cached) " >&6
  4567. else
  4568. if test -n "$AR"; then
  4569. ac_cv_prog_AR="$AR" # Let the user override the test.
  4570. else
  4571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4572. for as_dir in $PATH
  4573. do
  4574. IFS=$as_save_IFS
  4575. test -z "$as_dir" && as_dir=.
  4576. for ac_exec_ext in '' $ac_executable_extensions; do
  4577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4578. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4580. break 2
  4581. fi
  4582. done
  4583. done
  4584. IFS=$as_save_IFS
  4585. fi
  4586. fi
  4587. AR=$ac_cv_prog_AR
  4588. if test -n "$AR"; then
  4589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4590. $as_echo "$AR" >&6; }
  4591. else
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4593. $as_echo "no" >&6; }
  4594. fi
  4595. test -n "$AR" && break
  4596. done
  4597. fi
  4598. if test -z "$AR"; then
  4599. ac_ct_AR=$AR
  4600. for ac_prog in ar
  4601. do
  4602. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4603. set dummy $ac_prog; ac_word=$2
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4605. $as_echo_n "checking for $ac_word... " >&6; }
  4606. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4607. $as_echo_n "(cached) " >&6
  4608. else
  4609. if test -n "$ac_ct_AR"; then
  4610. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4611. else
  4612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4613. for as_dir in $PATH
  4614. do
  4615. IFS=$as_save_IFS
  4616. test -z "$as_dir" && as_dir=.
  4617. for ac_exec_ext in '' $ac_executable_extensions; do
  4618. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4619. ac_cv_prog_ac_ct_AR="$ac_prog"
  4620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4621. break 2
  4622. fi
  4623. done
  4624. done
  4625. IFS=$as_save_IFS
  4626. fi
  4627. fi
  4628. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4629. if test -n "$ac_ct_AR"; then
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4631. $as_echo "$ac_ct_AR" >&6; }
  4632. else
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4634. $as_echo "no" >&6; }
  4635. fi
  4636. test -n "$ac_ct_AR" && break
  4637. done
  4638. if test "x$ac_ct_AR" = x; then
  4639. AR="false"
  4640. else
  4641. case $cross_compiling:$ac_tool_warned in
  4642. yes:)
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4645. ac_tool_warned=yes ;;
  4646. esac
  4647. AR=$ac_ct_AR
  4648. fi
  4649. fi
  4650. : ${AR=ar}
  4651. : ${AR_FLAGS=cru}
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4653. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4654. if ${lt_cv_ar_at_file+:} false; then :
  4655. $as_echo_n "(cached) " >&6
  4656. else
  4657. lt_cv_ar_at_file=no
  4658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4659. /* end confdefs.h. */
  4660. int
  4661. main ()
  4662. {
  4663. ;
  4664. return 0;
  4665. }
  4666. _ACEOF
  4667. if ac_fn_c_try_compile "$LINENO"; then :
  4668. echo conftest.$ac_objext > conftest.lst
  4669. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4670. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4671. (eval $lt_ar_try) 2>&5
  4672. ac_status=$?
  4673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4674. test $ac_status = 0; }
  4675. if test "$ac_status" -eq 0; then
  4676. # Ensure the archiver fails upon bogus file names.
  4677. rm -f conftest.$ac_objext libconftest.a
  4678. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4679. (eval $lt_ar_try) 2>&5
  4680. ac_status=$?
  4681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4682. test $ac_status = 0; }
  4683. if test "$ac_status" -ne 0; then
  4684. lt_cv_ar_at_file=@
  4685. fi
  4686. fi
  4687. rm -f conftest.* libconftest.a
  4688. fi
  4689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4690. fi
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4692. $as_echo "$lt_cv_ar_at_file" >&6; }
  4693. if test "x$lt_cv_ar_at_file" = xno; then
  4694. archiver_list_spec=
  4695. else
  4696. archiver_list_spec=$lt_cv_ar_at_file
  4697. fi
  4698. if test -n "$ac_tool_prefix"; then
  4699. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4700. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4702. $as_echo_n "checking for $ac_word... " >&6; }
  4703. if ${ac_cv_prog_STRIP+:} false; then :
  4704. $as_echo_n "(cached) " >&6
  4705. else
  4706. if test -n "$STRIP"; then
  4707. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4708. else
  4709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4710. for as_dir in $PATH
  4711. do
  4712. IFS=$as_save_IFS
  4713. test -z "$as_dir" && as_dir=.
  4714. for ac_exec_ext in '' $ac_executable_extensions; do
  4715. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4716. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4717. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4718. break 2
  4719. fi
  4720. done
  4721. done
  4722. IFS=$as_save_IFS
  4723. fi
  4724. fi
  4725. STRIP=$ac_cv_prog_STRIP
  4726. if test -n "$STRIP"; then
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4728. $as_echo "$STRIP" >&6; }
  4729. else
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4731. $as_echo "no" >&6; }
  4732. fi
  4733. fi
  4734. if test -z "$ac_cv_prog_STRIP"; then
  4735. ac_ct_STRIP=$STRIP
  4736. # Extract the first word of "strip", so it can be a program name with args.
  4737. set dummy strip; ac_word=$2
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4739. $as_echo_n "checking for $ac_word... " >&6; }
  4740. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4741. $as_echo_n "(cached) " >&6
  4742. else
  4743. if test -n "$ac_ct_STRIP"; then
  4744. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4745. else
  4746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4747. for as_dir in $PATH
  4748. do
  4749. IFS=$as_save_IFS
  4750. test -z "$as_dir" && as_dir=.
  4751. for ac_exec_ext in '' $ac_executable_extensions; do
  4752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4753. ac_cv_prog_ac_ct_STRIP="strip"
  4754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4755. break 2
  4756. fi
  4757. done
  4758. done
  4759. IFS=$as_save_IFS
  4760. fi
  4761. fi
  4762. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4763. if test -n "$ac_ct_STRIP"; then
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4765. $as_echo "$ac_ct_STRIP" >&6; }
  4766. else
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4768. $as_echo "no" >&6; }
  4769. fi
  4770. if test "x$ac_ct_STRIP" = x; then
  4771. STRIP=":"
  4772. else
  4773. case $cross_compiling:$ac_tool_warned in
  4774. yes:)
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4776. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4777. ac_tool_warned=yes ;;
  4778. esac
  4779. STRIP=$ac_ct_STRIP
  4780. fi
  4781. else
  4782. STRIP="$ac_cv_prog_STRIP"
  4783. fi
  4784. test -z "$STRIP" && STRIP=:
  4785. if test -n "$ac_tool_prefix"; then
  4786. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4787. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4789. $as_echo_n "checking for $ac_word... " >&6; }
  4790. if ${ac_cv_prog_RANLIB+:} false; then :
  4791. $as_echo_n "(cached) " >&6
  4792. else
  4793. if test -n "$RANLIB"; then
  4794. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4795. else
  4796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4797. for as_dir in $PATH
  4798. do
  4799. IFS=$as_save_IFS
  4800. test -z "$as_dir" && as_dir=.
  4801. for ac_exec_ext in '' $ac_executable_extensions; do
  4802. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4803. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4804. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4805. break 2
  4806. fi
  4807. done
  4808. done
  4809. IFS=$as_save_IFS
  4810. fi
  4811. fi
  4812. RANLIB=$ac_cv_prog_RANLIB
  4813. if test -n "$RANLIB"; then
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4815. $as_echo "$RANLIB" >&6; }
  4816. else
  4817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4818. $as_echo "no" >&6; }
  4819. fi
  4820. fi
  4821. if test -z "$ac_cv_prog_RANLIB"; then
  4822. ac_ct_RANLIB=$RANLIB
  4823. # Extract the first word of "ranlib", so it can be a program name with args.
  4824. set dummy ranlib; ac_word=$2
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4826. $as_echo_n "checking for $ac_word... " >&6; }
  4827. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4828. $as_echo_n "(cached) " >&6
  4829. else
  4830. if test -n "$ac_ct_RANLIB"; then
  4831. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4832. else
  4833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4834. for as_dir in $PATH
  4835. do
  4836. IFS=$as_save_IFS
  4837. test -z "$as_dir" && as_dir=.
  4838. for ac_exec_ext in '' $ac_executable_extensions; do
  4839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4840. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4842. break 2
  4843. fi
  4844. done
  4845. done
  4846. IFS=$as_save_IFS
  4847. fi
  4848. fi
  4849. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4850. if test -n "$ac_ct_RANLIB"; then
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4852. $as_echo "$ac_ct_RANLIB" >&6; }
  4853. else
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4855. $as_echo "no" >&6; }
  4856. fi
  4857. if test "x$ac_ct_RANLIB" = x; then
  4858. RANLIB=":"
  4859. else
  4860. case $cross_compiling:$ac_tool_warned in
  4861. yes:)
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4863. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4864. ac_tool_warned=yes ;;
  4865. esac
  4866. RANLIB=$ac_ct_RANLIB
  4867. fi
  4868. else
  4869. RANLIB="$ac_cv_prog_RANLIB"
  4870. fi
  4871. test -z "$RANLIB" && RANLIB=:
  4872. # Determine commands to create old-style static archives.
  4873. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4874. old_postinstall_cmds='chmod 644 $oldlib'
  4875. old_postuninstall_cmds=
  4876. if test -n "$RANLIB"; then
  4877. case $host_os in
  4878. openbsd*)
  4879. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4880. ;;
  4881. *)
  4882. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4883. ;;
  4884. esac
  4885. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4886. fi
  4887. case $host_os in
  4888. darwin*)
  4889. lock_old_archive_extraction=yes ;;
  4890. *)
  4891. lock_old_archive_extraction=no ;;
  4892. esac
  4893. for ac_prog in gawk mawk nawk awk
  4894. do
  4895. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4896. set dummy $ac_prog; ac_word=$2
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4898. $as_echo_n "checking for $ac_word... " >&6; }
  4899. if ${ac_cv_prog_AWK+:} false; then :
  4900. $as_echo_n "(cached) " >&6
  4901. else
  4902. if test -n "$AWK"; then
  4903. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4904. else
  4905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4906. for as_dir in $PATH
  4907. do
  4908. IFS=$as_save_IFS
  4909. test -z "$as_dir" && as_dir=.
  4910. for ac_exec_ext in '' $ac_executable_extensions; do
  4911. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4912. ac_cv_prog_AWK="$ac_prog"
  4913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4914. break 2
  4915. fi
  4916. done
  4917. done
  4918. IFS=$as_save_IFS
  4919. fi
  4920. fi
  4921. AWK=$ac_cv_prog_AWK
  4922. if test -n "$AWK"; then
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4924. $as_echo "$AWK" >&6; }
  4925. else
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4927. $as_echo "no" >&6; }
  4928. fi
  4929. test -n "$AWK" && break
  4930. done
  4931. # If no C compiler was specified, use CC.
  4932. LTCC=${LTCC-"$CC"}
  4933. # If no C compiler flags were specified, use CFLAGS.
  4934. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4935. # Allow CC to be a program name with arguments.
  4936. compiler=$CC
  4937. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4939. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4940. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4941. $as_echo_n "(cached) " >&6
  4942. else
  4943. # These are sane defaults that work on at least a few old systems.
  4944. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4945. # Character class describing NM global symbol codes.
  4946. symcode='[BCDEGRST]'
  4947. # Regexp to match symbols that can be accessed directly from C.
  4948. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4949. # Define system-specific variables.
  4950. case $host_os in
  4951. aix*)
  4952. symcode='[BCDT]'
  4953. ;;
  4954. cygwin* | mingw* | pw32* | cegcc*)
  4955. symcode='[ABCDGISTW]'
  4956. ;;
  4957. hpux*)
  4958. if test "$host_cpu" = ia64; then
  4959. symcode='[ABCDEGRST]'
  4960. fi
  4961. ;;
  4962. irix* | nonstopux*)
  4963. symcode='[BCDEGRST]'
  4964. ;;
  4965. osf*)
  4966. symcode='[BCDEGQRST]'
  4967. ;;
  4968. solaris*)
  4969. symcode='[BDRT]'
  4970. ;;
  4971. sco3.2v5*)
  4972. symcode='[DT]'
  4973. ;;
  4974. sysv4.2uw2*)
  4975. symcode='[DT]'
  4976. ;;
  4977. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4978. symcode='[ABDT]'
  4979. ;;
  4980. sysv4)
  4981. symcode='[DFNSTU]'
  4982. ;;
  4983. esac
  4984. # If we're using GNU nm, then use its standard symbol codes.
  4985. case `$NM -V 2>&1` in
  4986. *GNU* | *'with BFD'*)
  4987. symcode='[ABCDGIRSTW]' ;;
  4988. esac
  4989. # Transform an extracted symbol line into a proper C declaration.
  4990. # Some systems (esp. on ia64) link data and code symbols differently,
  4991. # so use this general approach.
  4992. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4993. # Transform an extracted symbol line into symbol name and symbol address
  4994. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4995. 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'"
  4996. # Handle CRLF in mingw tool chain
  4997. opt_cr=
  4998. case $build_os in
  4999. mingw*)
  5000. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5001. ;;
  5002. esac
  5003. # Try without a prefix underscore, then with it.
  5004. for ac_symprfx in "" "_"; do
  5005. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5006. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5007. # Write the raw and C identifiers.
  5008. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5009. # Fake it for dumpbin and say T for any non-static function
  5010. # and D for any global variable.
  5011. # Also find C++ and __fastcall symbols from MSVC++,
  5012. # which start with @ or ?.
  5013. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5014. " {last_section=section; section=\$ 3};"\
  5015. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5016. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5017. " \$ 0!~/External *\|/{next};"\
  5018. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5019. " {if(hide[section]) next};"\
  5020. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5021. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5022. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5023. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5024. " ' prfx=^$ac_symprfx"
  5025. else
  5026. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5027. fi
  5028. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5029. # Check to see that the pipe works correctly.
  5030. pipe_works=no
  5031. rm -f conftest*
  5032. cat > conftest.$ac_ext <<_LT_EOF
  5033. #ifdef __cplusplus
  5034. extern "C" {
  5035. #endif
  5036. char nm_test_var;
  5037. void nm_test_func(void);
  5038. void nm_test_func(void){}
  5039. #ifdef __cplusplus
  5040. }
  5041. #endif
  5042. int main(){nm_test_var='a';nm_test_func();return(0);}
  5043. _LT_EOF
  5044. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5045. (eval $ac_compile) 2>&5
  5046. ac_status=$?
  5047. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5048. test $ac_status = 0; }; then
  5049. # Now try to grab the symbols.
  5050. nlist=conftest.nm
  5051. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5052. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5053. ac_status=$?
  5054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5055. test $ac_status = 0; } && test -s "$nlist"; then
  5056. # Try sorting and uniquifying the output.
  5057. if sort "$nlist" | uniq > "$nlist"T; then
  5058. mv -f "$nlist"T "$nlist"
  5059. else
  5060. rm -f "$nlist"T
  5061. fi
  5062. # Make sure that we snagged all the symbols we need.
  5063. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5064. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5065. cat <<_LT_EOF > conftest.$ac_ext
  5066. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5067. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5068. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5069. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5070. # define LT_DLSYM_CONST
  5071. #elif defined(__osf__)
  5072. /* This system does not cope well with relocations in const data. */
  5073. # define LT_DLSYM_CONST
  5074. #else
  5075. # define LT_DLSYM_CONST const
  5076. #endif
  5077. #ifdef __cplusplus
  5078. extern "C" {
  5079. #endif
  5080. _LT_EOF
  5081. # Now generate the symbol file.
  5082. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5083. cat <<_LT_EOF >> conftest.$ac_ext
  5084. /* The mapping between symbol names and symbols. */
  5085. LT_DLSYM_CONST struct {
  5086. const char *name;
  5087. void *address;
  5088. }
  5089. lt__PROGRAM__LTX_preloaded_symbols[] =
  5090. {
  5091. { "@PROGRAM@", (void *) 0 },
  5092. _LT_EOF
  5093. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5094. cat <<\_LT_EOF >> conftest.$ac_ext
  5095. {0, (void *) 0}
  5096. };
  5097. /* This works around a problem in FreeBSD linker */
  5098. #ifdef FREEBSD_WORKAROUND
  5099. static const void *lt_preloaded_setup() {
  5100. return lt__PROGRAM__LTX_preloaded_symbols;
  5101. }
  5102. #endif
  5103. #ifdef __cplusplus
  5104. }
  5105. #endif
  5106. _LT_EOF
  5107. # Now try linking the two files.
  5108. mv conftest.$ac_objext conftstm.$ac_objext
  5109. lt_globsym_save_LIBS=$LIBS
  5110. lt_globsym_save_CFLAGS=$CFLAGS
  5111. LIBS="conftstm.$ac_objext"
  5112. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5113. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5114. (eval $ac_link) 2>&5
  5115. ac_status=$?
  5116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5117. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5118. pipe_works=yes
  5119. fi
  5120. LIBS=$lt_globsym_save_LIBS
  5121. CFLAGS=$lt_globsym_save_CFLAGS
  5122. else
  5123. echo "cannot find nm_test_func in $nlist" >&5
  5124. fi
  5125. else
  5126. echo "cannot find nm_test_var in $nlist" >&5
  5127. fi
  5128. else
  5129. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5130. fi
  5131. else
  5132. echo "$progname: failed program was:" >&5
  5133. cat conftest.$ac_ext >&5
  5134. fi
  5135. rm -rf conftest* conftst*
  5136. # Do not use the global_symbol_pipe unless it works.
  5137. if test "$pipe_works" = yes; then
  5138. break
  5139. else
  5140. lt_cv_sys_global_symbol_pipe=
  5141. fi
  5142. done
  5143. fi
  5144. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5145. lt_cv_sys_global_symbol_to_cdecl=
  5146. fi
  5147. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5149. $as_echo "failed" >&6; }
  5150. else
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5152. $as_echo "ok" >&6; }
  5153. fi
  5154. # Response file support.
  5155. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5156. nm_file_list_spec='@'
  5157. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5158. nm_file_list_spec='@'
  5159. fi
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5161. $as_echo_n "checking for sysroot... " >&6; }
  5162. # Check whether --with-sysroot was given.
  5163. if test "${with_sysroot+set}" = set; then :
  5164. withval=$with_sysroot;
  5165. else
  5166. with_sysroot=no
  5167. fi
  5168. lt_sysroot=
  5169. case ${with_sysroot} in #(
  5170. yes)
  5171. if test "$GCC" = yes; then
  5172. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5173. fi
  5174. ;; #(
  5175. /*)
  5176. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5177. ;; #(
  5178. no|'')
  5179. ;; #(
  5180. *)
  5181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5182. $as_echo "${with_sysroot}" >&6; }
  5183. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5184. ;;
  5185. esac
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5187. $as_echo "${lt_sysroot:-no}" >&6; }
  5188. # Check whether --enable-libtool-lock was given.
  5189. if test "${enable_libtool_lock+set}" = set; then :
  5190. enableval=$enable_libtool_lock;
  5191. fi
  5192. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5193. # Some flags need to be propagated to the compiler or linker for good
  5194. # libtool support.
  5195. case $host in
  5196. ia64-*-hpux*)
  5197. # Find out which ABI we are using.
  5198. echo 'int i;' > conftest.$ac_ext
  5199. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5200. (eval $ac_compile) 2>&5
  5201. ac_status=$?
  5202. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5203. test $ac_status = 0; }; then
  5204. case `/usr/bin/file conftest.$ac_objext` in
  5205. *ELF-32*)
  5206. HPUX_IA64_MODE="32"
  5207. ;;
  5208. *ELF-64*)
  5209. HPUX_IA64_MODE="64"
  5210. ;;
  5211. esac
  5212. fi
  5213. rm -rf conftest*
  5214. ;;
  5215. *-*-irix6*)
  5216. # Find out which ABI we are using.
  5217. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5218. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5219. (eval $ac_compile) 2>&5
  5220. ac_status=$?
  5221. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5222. test $ac_status = 0; }; then
  5223. if test "$lt_cv_prog_gnu_ld" = yes; then
  5224. case `/usr/bin/file conftest.$ac_objext` in
  5225. *32-bit*)
  5226. LD="${LD-ld} -melf32bsmip"
  5227. ;;
  5228. *N32*)
  5229. LD="${LD-ld} -melf32bmipn32"
  5230. ;;
  5231. *64-bit*)
  5232. LD="${LD-ld} -melf64bmip"
  5233. ;;
  5234. esac
  5235. else
  5236. case `/usr/bin/file conftest.$ac_objext` in
  5237. *32-bit*)
  5238. LD="${LD-ld} -32"
  5239. ;;
  5240. *N32*)
  5241. LD="${LD-ld} -n32"
  5242. ;;
  5243. *64-bit*)
  5244. LD="${LD-ld} -64"
  5245. ;;
  5246. esac
  5247. fi
  5248. fi
  5249. rm -rf conftest*
  5250. ;;
  5251. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5252. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5253. # Find out which ABI we are using.
  5254. echo 'int i;' > conftest.$ac_ext
  5255. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5256. (eval $ac_compile) 2>&5
  5257. ac_status=$?
  5258. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5259. test $ac_status = 0; }; then
  5260. case `/usr/bin/file conftest.o` in
  5261. *32-bit*)
  5262. case $host in
  5263. x86_64-*kfreebsd*-gnu)
  5264. LD="${LD-ld} -m elf_i386_fbsd"
  5265. ;;
  5266. x86_64-*linux*)
  5267. LD="${LD-ld} -m elf_i386"
  5268. ;;
  5269. ppc64-*linux*|powerpc64-*linux*)
  5270. LD="${LD-ld} -m elf32ppclinux"
  5271. ;;
  5272. s390x-*linux*)
  5273. LD="${LD-ld} -m elf_s390"
  5274. ;;
  5275. sparc64-*linux*)
  5276. LD="${LD-ld} -m elf32_sparc"
  5277. ;;
  5278. esac
  5279. ;;
  5280. *64-bit*)
  5281. case $host in
  5282. x86_64-*kfreebsd*-gnu)
  5283. LD="${LD-ld} -m elf_x86_64_fbsd"
  5284. ;;
  5285. x86_64-*linux*)
  5286. LD="${LD-ld} -m elf_x86_64"
  5287. ;;
  5288. powerpc64le-*linux*)
  5289. LD="${LD-ld} -m elf64lppc"
  5290. ;;
  5291. powerpc64-*linux*)
  5292. LD="${LD-ld} -m elf64ppc"
  5293. ;;
  5294. s390*-*linux*|s390*-*tpf*)
  5295. LD="${LD-ld} -m elf64_s390"
  5296. ;;
  5297. sparc*-*linux*)
  5298. LD="${LD-ld} -m elf64_sparc"
  5299. ;;
  5300. esac
  5301. ;;
  5302. esac
  5303. fi
  5304. rm -rf conftest*
  5305. ;;
  5306. *-*-sco3.2v5*)
  5307. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5308. SAVE_CFLAGS="$CFLAGS"
  5309. CFLAGS="$CFLAGS -belf"
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5311. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5312. if ${lt_cv_cc_needs_belf+:} false; then :
  5313. $as_echo_n "(cached) " >&6
  5314. else
  5315. ac_ext=c
  5316. ac_cpp='$CPP $CPPFLAGS'
  5317. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5318. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5319. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5321. /* end confdefs.h. */
  5322. int
  5323. main ()
  5324. {
  5325. ;
  5326. return 0;
  5327. }
  5328. _ACEOF
  5329. if ac_fn_c_try_link "$LINENO"; then :
  5330. lt_cv_cc_needs_belf=yes
  5331. else
  5332. lt_cv_cc_needs_belf=no
  5333. fi
  5334. rm -f core conftest.err conftest.$ac_objext \
  5335. conftest$ac_exeext conftest.$ac_ext
  5336. ac_ext=c
  5337. ac_cpp='$CPP $CPPFLAGS'
  5338. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5339. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5340. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5341. fi
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5343. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5344. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5345. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5346. CFLAGS="$SAVE_CFLAGS"
  5347. fi
  5348. ;;
  5349. *-*solaris*)
  5350. # Find out which ABI we are using.
  5351. echo 'int i;' > conftest.$ac_ext
  5352. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5353. (eval $ac_compile) 2>&5
  5354. ac_status=$?
  5355. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5356. test $ac_status = 0; }; then
  5357. case `/usr/bin/file conftest.o` in
  5358. *64-bit*)
  5359. case $lt_cv_prog_gnu_ld in
  5360. yes*)
  5361. case $host in
  5362. i?86-*-solaris*)
  5363. LD="${LD-ld} -m elf_x86_64"
  5364. ;;
  5365. sparc*-*-solaris*)
  5366. LD="${LD-ld} -m elf64_sparc"
  5367. ;;
  5368. esac
  5369. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5370. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5371. LD="${LD-ld}_sol2"
  5372. fi
  5373. ;;
  5374. *)
  5375. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5376. LD="${LD-ld} -64"
  5377. fi
  5378. ;;
  5379. esac
  5380. ;;
  5381. esac
  5382. fi
  5383. rm -rf conftest*
  5384. ;;
  5385. esac
  5386. need_locks="$enable_libtool_lock"
  5387. if test -n "$ac_tool_prefix"; then
  5388. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5389. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5391. $as_echo_n "checking for $ac_word... " >&6; }
  5392. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5393. $as_echo_n "(cached) " >&6
  5394. else
  5395. if test -n "$MANIFEST_TOOL"; then
  5396. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5397. else
  5398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5399. for as_dir in $PATH
  5400. do
  5401. IFS=$as_save_IFS
  5402. test -z "$as_dir" && as_dir=.
  5403. for ac_exec_ext in '' $ac_executable_extensions; do
  5404. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5405. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5407. break 2
  5408. fi
  5409. done
  5410. done
  5411. IFS=$as_save_IFS
  5412. fi
  5413. fi
  5414. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5415. if test -n "$MANIFEST_TOOL"; then
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5417. $as_echo "$MANIFEST_TOOL" >&6; }
  5418. else
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5420. $as_echo "no" >&6; }
  5421. fi
  5422. fi
  5423. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5424. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5425. # Extract the first word of "mt", so it can be a program name with args.
  5426. set dummy mt; ac_word=$2
  5427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5428. $as_echo_n "checking for $ac_word... " >&6; }
  5429. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5430. $as_echo_n "(cached) " >&6
  5431. else
  5432. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5433. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5434. else
  5435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5436. for as_dir in $PATH
  5437. do
  5438. IFS=$as_save_IFS
  5439. test -z "$as_dir" && as_dir=.
  5440. for ac_exec_ext in '' $ac_executable_extensions; do
  5441. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5442. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5443. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5444. break 2
  5445. fi
  5446. done
  5447. done
  5448. IFS=$as_save_IFS
  5449. fi
  5450. fi
  5451. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5452. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5454. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5455. else
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5457. $as_echo "no" >&6; }
  5458. fi
  5459. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5460. MANIFEST_TOOL=":"
  5461. else
  5462. case $cross_compiling:$ac_tool_warned in
  5463. yes:)
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5465. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5466. ac_tool_warned=yes ;;
  5467. esac
  5468. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5469. fi
  5470. else
  5471. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5472. fi
  5473. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5475. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5476. if ${lt_cv_path_mainfest_tool+:} false; then :
  5477. $as_echo_n "(cached) " >&6
  5478. else
  5479. lt_cv_path_mainfest_tool=no
  5480. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5481. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5482. cat conftest.err >&5
  5483. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5484. lt_cv_path_mainfest_tool=yes
  5485. fi
  5486. rm -f conftest*
  5487. fi
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5489. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5490. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5491. MANIFEST_TOOL=:
  5492. fi
  5493. case $host_os in
  5494. rhapsody* | darwin*)
  5495. if test -n "$ac_tool_prefix"; then
  5496. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5497. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5499. $as_echo_n "checking for $ac_word... " >&6; }
  5500. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5501. $as_echo_n "(cached) " >&6
  5502. else
  5503. if test -n "$DSYMUTIL"; then
  5504. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5505. else
  5506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5507. for as_dir in $PATH
  5508. do
  5509. IFS=$as_save_IFS
  5510. test -z "$as_dir" && as_dir=.
  5511. for ac_exec_ext in '' $ac_executable_extensions; do
  5512. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5513. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5514. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5515. break 2
  5516. fi
  5517. done
  5518. done
  5519. IFS=$as_save_IFS
  5520. fi
  5521. fi
  5522. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5523. if test -n "$DSYMUTIL"; then
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5525. $as_echo "$DSYMUTIL" >&6; }
  5526. else
  5527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5528. $as_echo "no" >&6; }
  5529. fi
  5530. fi
  5531. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5532. ac_ct_DSYMUTIL=$DSYMUTIL
  5533. # Extract the first word of "dsymutil", so it can be a program name with args.
  5534. set dummy dsymutil; ac_word=$2
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5536. $as_echo_n "checking for $ac_word... " >&6; }
  5537. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5538. $as_echo_n "(cached) " >&6
  5539. else
  5540. if test -n "$ac_ct_DSYMUTIL"; then
  5541. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5542. else
  5543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5544. for as_dir in $PATH
  5545. do
  5546. IFS=$as_save_IFS
  5547. test -z "$as_dir" && as_dir=.
  5548. for ac_exec_ext in '' $ac_executable_extensions; do
  5549. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5550. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5552. break 2
  5553. fi
  5554. done
  5555. done
  5556. IFS=$as_save_IFS
  5557. fi
  5558. fi
  5559. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5560. if test -n "$ac_ct_DSYMUTIL"; then
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5562. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5563. else
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5565. $as_echo "no" >&6; }
  5566. fi
  5567. if test "x$ac_ct_DSYMUTIL" = x; then
  5568. DSYMUTIL=":"
  5569. else
  5570. case $cross_compiling:$ac_tool_warned in
  5571. yes:)
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5573. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5574. ac_tool_warned=yes ;;
  5575. esac
  5576. DSYMUTIL=$ac_ct_DSYMUTIL
  5577. fi
  5578. else
  5579. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5580. fi
  5581. if test -n "$ac_tool_prefix"; then
  5582. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5583. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5585. $as_echo_n "checking for $ac_word... " >&6; }
  5586. if ${ac_cv_prog_NMEDIT+:} false; then :
  5587. $as_echo_n "(cached) " >&6
  5588. else
  5589. if test -n "$NMEDIT"; then
  5590. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5591. else
  5592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5593. for as_dir in $PATH
  5594. do
  5595. IFS=$as_save_IFS
  5596. test -z "$as_dir" && as_dir=.
  5597. for ac_exec_ext in '' $ac_executable_extensions; do
  5598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5599. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5601. break 2
  5602. fi
  5603. done
  5604. done
  5605. IFS=$as_save_IFS
  5606. fi
  5607. fi
  5608. NMEDIT=$ac_cv_prog_NMEDIT
  5609. if test -n "$NMEDIT"; then
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5611. $as_echo "$NMEDIT" >&6; }
  5612. else
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5614. $as_echo "no" >&6; }
  5615. fi
  5616. fi
  5617. if test -z "$ac_cv_prog_NMEDIT"; then
  5618. ac_ct_NMEDIT=$NMEDIT
  5619. # Extract the first word of "nmedit", so it can be a program name with args.
  5620. set dummy nmedit; ac_word=$2
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5622. $as_echo_n "checking for $ac_word... " >&6; }
  5623. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. if test -n "$ac_ct_NMEDIT"; then
  5627. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5628. else
  5629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5630. for as_dir in $PATH
  5631. do
  5632. IFS=$as_save_IFS
  5633. test -z "$as_dir" && as_dir=.
  5634. for ac_exec_ext in '' $ac_executable_extensions; do
  5635. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5636. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5638. break 2
  5639. fi
  5640. done
  5641. done
  5642. IFS=$as_save_IFS
  5643. fi
  5644. fi
  5645. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5646. if test -n "$ac_ct_NMEDIT"; then
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5648. $as_echo "$ac_ct_NMEDIT" >&6; }
  5649. else
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5651. $as_echo "no" >&6; }
  5652. fi
  5653. if test "x$ac_ct_NMEDIT" = x; then
  5654. NMEDIT=":"
  5655. else
  5656. case $cross_compiling:$ac_tool_warned in
  5657. yes:)
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5659. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5660. ac_tool_warned=yes ;;
  5661. esac
  5662. NMEDIT=$ac_ct_NMEDIT
  5663. fi
  5664. else
  5665. NMEDIT="$ac_cv_prog_NMEDIT"
  5666. fi
  5667. if test -n "$ac_tool_prefix"; then
  5668. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5669. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5671. $as_echo_n "checking for $ac_word... " >&6; }
  5672. if ${ac_cv_prog_LIPO+:} false; then :
  5673. $as_echo_n "(cached) " >&6
  5674. else
  5675. if test -n "$LIPO"; then
  5676. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5677. else
  5678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5679. for as_dir in $PATH
  5680. do
  5681. IFS=$as_save_IFS
  5682. test -z "$as_dir" && as_dir=.
  5683. for ac_exec_ext in '' $ac_executable_extensions; do
  5684. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5685. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5686. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5687. break 2
  5688. fi
  5689. done
  5690. done
  5691. IFS=$as_save_IFS
  5692. fi
  5693. fi
  5694. LIPO=$ac_cv_prog_LIPO
  5695. if test -n "$LIPO"; then
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5697. $as_echo "$LIPO" >&6; }
  5698. else
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5700. $as_echo "no" >&6; }
  5701. fi
  5702. fi
  5703. if test -z "$ac_cv_prog_LIPO"; then
  5704. ac_ct_LIPO=$LIPO
  5705. # Extract the first word of "lipo", so it can be a program name with args.
  5706. set dummy lipo; ac_word=$2
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5708. $as_echo_n "checking for $ac_word... " >&6; }
  5709. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5710. $as_echo_n "(cached) " >&6
  5711. else
  5712. if test -n "$ac_ct_LIPO"; then
  5713. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5714. else
  5715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5716. for as_dir in $PATH
  5717. do
  5718. IFS=$as_save_IFS
  5719. test -z "$as_dir" && as_dir=.
  5720. for ac_exec_ext in '' $ac_executable_extensions; do
  5721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5722. ac_cv_prog_ac_ct_LIPO="lipo"
  5723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5724. break 2
  5725. fi
  5726. done
  5727. done
  5728. IFS=$as_save_IFS
  5729. fi
  5730. fi
  5731. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5732. if test -n "$ac_ct_LIPO"; then
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5734. $as_echo "$ac_ct_LIPO" >&6; }
  5735. else
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5737. $as_echo "no" >&6; }
  5738. fi
  5739. if test "x$ac_ct_LIPO" = x; then
  5740. LIPO=":"
  5741. else
  5742. case $cross_compiling:$ac_tool_warned in
  5743. yes:)
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5745. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5746. ac_tool_warned=yes ;;
  5747. esac
  5748. LIPO=$ac_ct_LIPO
  5749. fi
  5750. else
  5751. LIPO="$ac_cv_prog_LIPO"
  5752. fi
  5753. if test -n "$ac_tool_prefix"; then
  5754. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5755. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5757. $as_echo_n "checking for $ac_word... " >&6; }
  5758. if ${ac_cv_prog_OTOOL+:} false; then :
  5759. $as_echo_n "(cached) " >&6
  5760. else
  5761. if test -n "$OTOOL"; then
  5762. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5763. else
  5764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5765. for as_dir in $PATH
  5766. do
  5767. IFS=$as_save_IFS
  5768. test -z "$as_dir" && as_dir=.
  5769. for ac_exec_ext in '' $ac_executable_extensions; do
  5770. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5771. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5773. break 2
  5774. fi
  5775. done
  5776. done
  5777. IFS=$as_save_IFS
  5778. fi
  5779. fi
  5780. OTOOL=$ac_cv_prog_OTOOL
  5781. if test -n "$OTOOL"; then
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5783. $as_echo "$OTOOL" >&6; }
  5784. else
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5786. $as_echo "no" >&6; }
  5787. fi
  5788. fi
  5789. if test -z "$ac_cv_prog_OTOOL"; then
  5790. ac_ct_OTOOL=$OTOOL
  5791. # Extract the first word of "otool", so it can be a program name with args.
  5792. set dummy otool; ac_word=$2
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5794. $as_echo_n "checking for $ac_word... " >&6; }
  5795. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5796. $as_echo_n "(cached) " >&6
  5797. else
  5798. if test -n "$ac_ct_OTOOL"; then
  5799. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5800. else
  5801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5802. for as_dir in $PATH
  5803. do
  5804. IFS=$as_save_IFS
  5805. test -z "$as_dir" && as_dir=.
  5806. for ac_exec_ext in '' $ac_executable_extensions; do
  5807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5808. ac_cv_prog_ac_ct_OTOOL="otool"
  5809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5810. break 2
  5811. fi
  5812. done
  5813. done
  5814. IFS=$as_save_IFS
  5815. fi
  5816. fi
  5817. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5818. if test -n "$ac_ct_OTOOL"; then
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5820. $as_echo "$ac_ct_OTOOL" >&6; }
  5821. else
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5823. $as_echo "no" >&6; }
  5824. fi
  5825. if test "x$ac_ct_OTOOL" = x; then
  5826. OTOOL=":"
  5827. else
  5828. case $cross_compiling:$ac_tool_warned in
  5829. yes:)
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5831. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5832. ac_tool_warned=yes ;;
  5833. esac
  5834. OTOOL=$ac_ct_OTOOL
  5835. fi
  5836. else
  5837. OTOOL="$ac_cv_prog_OTOOL"
  5838. fi
  5839. if test -n "$ac_tool_prefix"; then
  5840. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5841. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5843. $as_echo_n "checking for $ac_word... " >&6; }
  5844. if ${ac_cv_prog_OTOOL64+:} false; then :
  5845. $as_echo_n "(cached) " >&6
  5846. else
  5847. if test -n "$OTOOL64"; then
  5848. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5849. else
  5850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5851. for as_dir in $PATH
  5852. do
  5853. IFS=$as_save_IFS
  5854. test -z "$as_dir" && as_dir=.
  5855. for ac_exec_ext in '' $ac_executable_extensions; do
  5856. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5857. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5859. break 2
  5860. fi
  5861. done
  5862. done
  5863. IFS=$as_save_IFS
  5864. fi
  5865. fi
  5866. OTOOL64=$ac_cv_prog_OTOOL64
  5867. if test -n "$OTOOL64"; then
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5869. $as_echo "$OTOOL64" >&6; }
  5870. else
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5872. $as_echo "no" >&6; }
  5873. fi
  5874. fi
  5875. if test -z "$ac_cv_prog_OTOOL64"; then
  5876. ac_ct_OTOOL64=$OTOOL64
  5877. # Extract the first word of "otool64", so it can be a program name with args.
  5878. set dummy otool64; ac_word=$2
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5880. $as_echo_n "checking for $ac_word... " >&6; }
  5881. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5882. $as_echo_n "(cached) " >&6
  5883. else
  5884. if test -n "$ac_ct_OTOOL64"; then
  5885. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5886. else
  5887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5888. for as_dir in $PATH
  5889. do
  5890. IFS=$as_save_IFS
  5891. test -z "$as_dir" && as_dir=.
  5892. for ac_exec_ext in '' $ac_executable_extensions; do
  5893. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5894. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5896. break 2
  5897. fi
  5898. done
  5899. done
  5900. IFS=$as_save_IFS
  5901. fi
  5902. fi
  5903. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5904. if test -n "$ac_ct_OTOOL64"; then
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5906. $as_echo "$ac_ct_OTOOL64" >&6; }
  5907. else
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5909. $as_echo "no" >&6; }
  5910. fi
  5911. if test "x$ac_ct_OTOOL64" = x; then
  5912. OTOOL64=":"
  5913. else
  5914. case $cross_compiling:$ac_tool_warned in
  5915. yes:)
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5917. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5918. ac_tool_warned=yes ;;
  5919. esac
  5920. OTOOL64=$ac_ct_OTOOL64
  5921. fi
  5922. else
  5923. OTOOL64="$ac_cv_prog_OTOOL64"
  5924. fi
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5926. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5927. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5928. $as_echo_n "(cached) " >&6
  5929. else
  5930. lt_cv_apple_cc_single_mod=no
  5931. if test -z "${LT_MULTI_MODULE}"; then
  5932. # By default we will add the -single_module flag. You can override
  5933. # by either setting the environment variable LT_MULTI_MODULE
  5934. # non-empty at configure time, or by adding -multi_module to the
  5935. # link flags.
  5936. rm -rf libconftest.dylib*
  5937. echo "int foo(void){return 1;}" > conftest.c
  5938. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5939. -dynamiclib -Wl,-single_module conftest.c" >&5
  5940. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5941. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5942. _lt_result=$?
  5943. # If there is a non-empty error log, and "single_module"
  5944. # appears in it, assume the flag caused a linker warning
  5945. if test -s conftest.err && $GREP single_module conftest.err; then
  5946. cat conftest.err >&5
  5947. # Otherwise, if the output was created with a 0 exit code from
  5948. # the compiler, it worked.
  5949. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5950. lt_cv_apple_cc_single_mod=yes
  5951. else
  5952. cat conftest.err >&5
  5953. fi
  5954. rm -rf libconftest.dylib*
  5955. rm -f conftest.*
  5956. fi
  5957. fi
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5959. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5961. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5962. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5963. $as_echo_n "(cached) " >&6
  5964. else
  5965. lt_cv_ld_exported_symbols_list=no
  5966. save_LDFLAGS=$LDFLAGS
  5967. echo "_main" > conftest.sym
  5968. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5970. /* end confdefs.h. */
  5971. int
  5972. main ()
  5973. {
  5974. ;
  5975. return 0;
  5976. }
  5977. _ACEOF
  5978. if ac_fn_c_try_link "$LINENO"; then :
  5979. lt_cv_ld_exported_symbols_list=yes
  5980. else
  5981. lt_cv_ld_exported_symbols_list=no
  5982. fi
  5983. rm -f core conftest.err conftest.$ac_objext \
  5984. conftest$ac_exeext conftest.$ac_ext
  5985. LDFLAGS="$save_LDFLAGS"
  5986. fi
  5987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5988. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5990. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5991. if ${lt_cv_ld_force_load+:} false; then :
  5992. $as_echo_n "(cached) " >&6
  5993. else
  5994. lt_cv_ld_force_load=no
  5995. cat > conftest.c << _LT_EOF
  5996. int forced_loaded() { return 2;}
  5997. _LT_EOF
  5998. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5999. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6000. echo "$AR cru libconftest.a conftest.o" >&5
  6001. $AR cru libconftest.a conftest.o 2>&5
  6002. echo "$RANLIB libconftest.a" >&5
  6003. $RANLIB libconftest.a 2>&5
  6004. cat > conftest.c << _LT_EOF
  6005. int main() { return 0;}
  6006. _LT_EOF
  6007. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6008. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6009. _lt_result=$?
  6010. if test -s conftest.err && $GREP force_load conftest.err; then
  6011. cat conftest.err >&5
  6012. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6013. lt_cv_ld_force_load=yes
  6014. else
  6015. cat conftest.err >&5
  6016. fi
  6017. rm -f conftest.err libconftest.a conftest conftest.c
  6018. rm -rf conftest.dSYM
  6019. fi
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6021. $as_echo "$lt_cv_ld_force_load" >&6; }
  6022. case $host_os in
  6023. rhapsody* | darwin1.[012])
  6024. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6025. darwin1.*)
  6026. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6027. darwin*) # darwin 5.x on
  6028. # if running on 10.5 or later, the deployment target defaults
  6029. # to the OS version, if on x86, and 10.4, the deployment
  6030. # target defaults to 10.4. Don't you love it?
  6031. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6032. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6033. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6034. 10.[012]*)
  6035. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6036. 10.*)
  6037. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6038. esac
  6039. ;;
  6040. esac
  6041. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6042. _lt_dar_single_mod='$single_module'
  6043. fi
  6044. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6045. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6046. else
  6047. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6048. fi
  6049. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6050. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6051. else
  6052. _lt_dsymutil=
  6053. fi
  6054. ;;
  6055. esac
  6056. ac_ext=c
  6057. ac_cpp='$CPP $CPPFLAGS'
  6058. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6059. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6060. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6062. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6063. # On Suns, sometimes $CPP names a directory.
  6064. if test -n "$CPP" && test -d "$CPP"; then
  6065. CPP=
  6066. fi
  6067. if test -z "$CPP"; then
  6068. if ${ac_cv_prog_CPP+:} false; then :
  6069. $as_echo_n "(cached) " >&6
  6070. else
  6071. # Double quotes because CPP needs to be expanded
  6072. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6073. do
  6074. ac_preproc_ok=false
  6075. for ac_c_preproc_warn_flag in '' yes
  6076. do
  6077. # Use a header file that comes with gcc, so configuring glibc
  6078. # with a fresh cross-compiler works.
  6079. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6080. # <limits.h> exists even on freestanding compilers.
  6081. # On the NeXT, cc -E runs the code through the compiler's parser,
  6082. # not just through cpp. "Syntax error" is here to catch this case.
  6083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6084. /* end confdefs.h. */
  6085. #ifdef __STDC__
  6086. # include <limits.h>
  6087. #else
  6088. # include <assert.h>
  6089. #endif
  6090. Syntax error
  6091. _ACEOF
  6092. if ac_fn_c_try_cpp "$LINENO"; then :
  6093. else
  6094. # Broken: fails on valid input.
  6095. continue
  6096. fi
  6097. rm -f conftest.err conftest.i conftest.$ac_ext
  6098. # OK, works on sane cases. Now check whether nonexistent headers
  6099. # can be detected and how.
  6100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6101. /* end confdefs.h. */
  6102. #include <ac_nonexistent.h>
  6103. _ACEOF
  6104. if ac_fn_c_try_cpp "$LINENO"; then :
  6105. # Broken: success on invalid input.
  6106. continue
  6107. else
  6108. # Passes both tests.
  6109. ac_preproc_ok=:
  6110. break
  6111. fi
  6112. rm -f conftest.err conftest.i conftest.$ac_ext
  6113. done
  6114. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6115. rm -f conftest.i conftest.err conftest.$ac_ext
  6116. if $ac_preproc_ok; then :
  6117. break
  6118. fi
  6119. done
  6120. ac_cv_prog_CPP=$CPP
  6121. fi
  6122. CPP=$ac_cv_prog_CPP
  6123. else
  6124. ac_cv_prog_CPP=$CPP
  6125. fi
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6127. $as_echo "$CPP" >&6; }
  6128. ac_preproc_ok=false
  6129. for ac_c_preproc_warn_flag in '' yes
  6130. do
  6131. # Use a header file that comes with gcc, so configuring glibc
  6132. # with a fresh cross-compiler works.
  6133. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6134. # <limits.h> exists even on freestanding compilers.
  6135. # On the NeXT, cc -E runs the code through the compiler's parser,
  6136. # not just through cpp. "Syntax error" is here to catch this case.
  6137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6138. /* end confdefs.h. */
  6139. #ifdef __STDC__
  6140. # include <limits.h>
  6141. #else
  6142. # include <assert.h>
  6143. #endif
  6144. Syntax error
  6145. _ACEOF
  6146. if ac_fn_c_try_cpp "$LINENO"; then :
  6147. else
  6148. # Broken: fails on valid input.
  6149. continue
  6150. fi
  6151. rm -f conftest.err conftest.i conftest.$ac_ext
  6152. # OK, works on sane cases. Now check whether nonexistent headers
  6153. # can be detected and how.
  6154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6155. /* end confdefs.h. */
  6156. #include <ac_nonexistent.h>
  6157. _ACEOF
  6158. if ac_fn_c_try_cpp "$LINENO"; then :
  6159. # Broken: success on invalid input.
  6160. continue
  6161. else
  6162. # Passes both tests.
  6163. ac_preproc_ok=:
  6164. break
  6165. fi
  6166. rm -f conftest.err conftest.i conftest.$ac_ext
  6167. done
  6168. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6169. rm -f conftest.i conftest.err conftest.$ac_ext
  6170. if $ac_preproc_ok; then :
  6171. else
  6172. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6173. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6174. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6175. See \`config.log' for more details" "$LINENO" 5; }
  6176. fi
  6177. ac_ext=c
  6178. ac_cpp='$CPP $CPPFLAGS'
  6179. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6180. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6181. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6183. $as_echo_n "checking for ANSI C header files... " >&6; }
  6184. if ${ac_cv_header_stdc+:} false; then :
  6185. $as_echo_n "(cached) " >&6
  6186. else
  6187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6188. /* end confdefs.h. */
  6189. #include <stdlib.h>
  6190. #include <stdarg.h>
  6191. #include <string.h>
  6192. #include <float.h>
  6193. int
  6194. main ()
  6195. {
  6196. ;
  6197. return 0;
  6198. }
  6199. _ACEOF
  6200. if ac_fn_c_try_compile "$LINENO"; then :
  6201. ac_cv_header_stdc=yes
  6202. else
  6203. ac_cv_header_stdc=no
  6204. fi
  6205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6206. if test $ac_cv_header_stdc = yes; then
  6207. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6209. /* end confdefs.h. */
  6210. #include <string.h>
  6211. _ACEOF
  6212. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6213. $EGREP "memchr" >/dev/null 2>&1; then :
  6214. else
  6215. ac_cv_header_stdc=no
  6216. fi
  6217. rm -f conftest*
  6218. fi
  6219. if test $ac_cv_header_stdc = yes; then
  6220. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6222. /* end confdefs.h. */
  6223. #include <stdlib.h>
  6224. _ACEOF
  6225. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6226. $EGREP "free" >/dev/null 2>&1; then :
  6227. else
  6228. ac_cv_header_stdc=no
  6229. fi
  6230. rm -f conftest*
  6231. fi
  6232. if test $ac_cv_header_stdc = yes; then
  6233. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6234. if test "$cross_compiling" = yes; then :
  6235. :
  6236. else
  6237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6238. /* end confdefs.h. */
  6239. #include <ctype.h>
  6240. #include <stdlib.h>
  6241. #if ((' ' & 0x0FF) == 0x020)
  6242. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6243. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6244. #else
  6245. # define ISLOWER(c) \
  6246. (('a' <= (c) && (c) <= 'i') \
  6247. || ('j' <= (c) && (c) <= 'r') \
  6248. || ('s' <= (c) && (c) <= 'z'))
  6249. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6250. #endif
  6251. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6252. int
  6253. main ()
  6254. {
  6255. int i;
  6256. for (i = 0; i < 256; i++)
  6257. if (XOR (islower (i), ISLOWER (i))
  6258. || toupper (i) != TOUPPER (i))
  6259. return 2;
  6260. return 0;
  6261. }
  6262. _ACEOF
  6263. if ac_fn_c_try_run "$LINENO"; then :
  6264. else
  6265. ac_cv_header_stdc=no
  6266. fi
  6267. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6268. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6269. fi
  6270. fi
  6271. fi
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6273. $as_echo "$ac_cv_header_stdc" >&6; }
  6274. if test $ac_cv_header_stdc = yes; then
  6275. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6276. fi
  6277. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6278. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6279. inttypes.h stdint.h unistd.h
  6280. do :
  6281. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6282. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6283. "
  6284. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6285. cat >>confdefs.h <<_ACEOF
  6286. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6287. _ACEOF
  6288. fi
  6289. done
  6290. for ac_header in dlfcn.h
  6291. do :
  6292. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6293. "
  6294. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6295. cat >>confdefs.h <<_ACEOF
  6296. #define HAVE_DLFCN_H 1
  6297. _ACEOF
  6298. fi
  6299. done
  6300. # Set options
  6301. enable_win32_dll=yes
  6302. case $host in
  6303. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6304. if test -n "$ac_tool_prefix"; then
  6305. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6306. set dummy ${ac_tool_prefix}as; ac_word=$2
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6308. $as_echo_n "checking for $ac_word... " >&6; }
  6309. if ${ac_cv_prog_AS+:} false; then :
  6310. $as_echo_n "(cached) " >&6
  6311. else
  6312. if test -n "$AS"; then
  6313. ac_cv_prog_AS="$AS" # Let the user override the test.
  6314. else
  6315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6316. for as_dir in $PATH
  6317. do
  6318. IFS=$as_save_IFS
  6319. test -z "$as_dir" && as_dir=.
  6320. for ac_exec_ext in '' $ac_executable_extensions; do
  6321. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6322. ac_cv_prog_AS="${ac_tool_prefix}as"
  6323. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6324. break 2
  6325. fi
  6326. done
  6327. done
  6328. IFS=$as_save_IFS
  6329. fi
  6330. fi
  6331. AS=$ac_cv_prog_AS
  6332. if test -n "$AS"; then
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6334. $as_echo "$AS" >&6; }
  6335. else
  6336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6337. $as_echo "no" >&6; }
  6338. fi
  6339. fi
  6340. if test -z "$ac_cv_prog_AS"; then
  6341. ac_ct_AS=$AS
  6342. # Extract the first word of "as", so it can be a program name with args.
  6343. set dummy as; ac_word=$2
  6344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6345. $as_echo_n "checking for $ac_word... " >&6; }
  6346. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6347. $as_echo_n "(cached) " >&6
  6348. else
  6349. if test -n "$ac_ct_AS"; then
  6350. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6351. else
  6352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6353. for as_dir in $PATH
  6354. do
  6355. IFS=$as_save_IFS
  6356. test -z "$as_dir" && as_dir=.
  6357. for ac_exec_ext in '' $ac_executable_extensions; do
  6358. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6359. ac_cv_prog_ac_ct_AS="as"
  6360. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6361. break 2
  6362. fi
  6363. done
  6364. done
  6365. IFS=$as_save_IFS
  6366. fi
  6367. fi
  6368. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6369. if test -n "$ac_ct_AS"; then
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6371. $as_echo "$ac_ct_AS" >&6; }
  6372. else
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6374. $as_echo "no" >&6; }
  6375. fi
  6376. if test "x$ac_ct_AS" = x; then
  6377. AS="false"
  6378. else
  6379. case $cross_compiling:$ac_tool_warned in
  6380. yes:)
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6382. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6383. ac_tool_warned=yes ;;
  6384. esac
  6385. AS=$ac_ct_AS
  6386. fi
  6387. else
  6388. AS="$ac_cv_prog_AS"
  6389. fi
  6390. if test -n "$ac_tool_prefix"; then
  6391. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6392. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6394. $as_echo_n "checking for $ac_word... " >&6; }
  6395. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6396. $as_echo_n "(cached) " >&6
  6397. else
  6398. if test -n "$DLLTOOL"; then
  6399. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6400. else
  6401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6402. for as_dir in $PATH
  6403. do
  6404. IFS=$as_save_IFS
  6405. test -z "$as_dir" && as_dir=.
  6406. for ac_exec_ext in '' $ac_executable_extensions; do
  6407. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6408. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6409. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6410. break 2
  6411. fi
  6412. done
  6413. done
  6414. IFS=$as_save_IFS
  6415. fi
  6416. fi
  6417. DLLTOOL=$ac_cv_prog_DLLTOOL
  6418. if test -n "$DLLTOOL"; then
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6420. $as_echo "$DLLTOOL" >&6; }
  6421. else
  6422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6423. $as_echo "no" >&6; }
  6424. fi
  6425. fi
  6426. if test -z "$ac_cv_prog_DLLTOOL"; then
  6427. ac_ct_DLLTOOL=$DLLTOOL
  6428. # Extract the first word of "dlltool", so it can be a program name with args.
  6429. set dummy dlltool; ac_word=$2
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6431. $as_echo_n "checking for $ac_word... " >&6; }
  6432. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6433. $as_echo_n "(cached) " >&6
  6434. else
  6435. if test -n "$ac_ct_DLLTOOL"; then
  6436. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6437. else
  6438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6439. for as_dir in $PATH
  6440. do
  6441. IFS=$as_save_IFS
  6442. test -z "$as_dir" && as_dir=.
  6443. for ac_exec_ext in '' $ac_executable_extensions; do
  6444. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6445. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6446. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6447. break 2
  6448. fi
  6449. done
  6450. done
  6451. IFS=$as_save_IFS
  6452. fi
  6453. fi
  6454. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6455. if test -n "$ac_ct_DLLTOOL"; then
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6457. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6458. else
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6460. $as_echo "no" >&6; }
  6461. fi
  6462. if test "x$ac_ct_DLLTOOL" = x; then
  6463. DLLTOOL="false"
  6464. else
  6465. case $cross_compiling:$ac_tool_warned in
  6466. yes:)
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6468. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6469. ac_tool_warned=yes ;;
  6470. esac
  6471. DLLTOOL=$ac_ct_DLLTOOL
  6472. fi
  6473. else
  6474. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6475. fi
  6476. if test -n "$ac_tool_prefix"; then
  6477. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6478. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6480. $as_echo_n "checking for $ac_word... " >&6; }
  6481. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6482. $as_echo_n "(cached) " >&6
  6483. else
  6484. if test -n "$OBJDUMP"; then
  6485. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6486. else
  6487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6488. for as_dir in $PATH
  6489. do
  6490. IFS=$as_save_IFS
  6491. test -z "$as_dir" && as_dir=.
  6492. for ac_exec_ext in '' $ac_executable_extensions; do
  6493. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6494. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6496. break 2
  6497. fi
  6498. done
  6499. done
  6500. IFS=$as_save_IFS
  6501. fi
  6502. fi
  6503. OBJDUMP=$ac_cv_prog_OBJDUMP
  6504. if test -n "$OBJDUMP"; then
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6506. $as_echo "$OBJDUMP" >&6; }
  6507. else
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6509. $as_echo "no" >&6; }
  6510. fi
  6511. fi
  6512. if test -z "$ac_cv_prog_OBJDUMP"; then
  6513. ac_ct_OBJDUMP=$OBJDUMP
  6514. # Extract the first word of "objdump", so it can be a program name with args.
  6515. set dummy objdump; ac_word=$2
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6517. $as_echo_n "checking for $ac_word... " >&6; }
  6518. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6519. $as_echo_n "(cached) " >&6
  6520. else
  6521. if test -n "$ac_ct_OBJDUMP"; then
  6522. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6523. else
  6524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6525. for as_dir in $PATH
  6526. do
  6527. IFS=$as_save_IFS
  6528. test -z "$as_dir" && as_dir=.
  6529. for ac_exec_ext in '' $ac_executable_extensions; do
  6530. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6531. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6533. break 2
  6534. fi
  6535. done
  6536. done
  6537. IFS=$as_save_IFS
  6538. fi
  6539. fi
  6540. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6541. if test -n "$ac_ct_OBJDUMP"; then
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6543. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6544. else
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6546. $as_echo "no" >&6; }
  6547. fi
  6548. if test "x$ac_ct_OBJDUMP" = x; then
  6549. OBJDUMP="false"
  6550. else
  6551. case $cross_compiling:$ac_tool_warned in
  6552. yes:)
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6554. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6555. ac_tool_warned=yes ;;
  6556. esac
  6557. OBJDUMP=$ac_ct_OBJDUMP
  6558. fi
  6559. else
  6560. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6561. fi
  6562. ;;
  6563. esac
  6564. test -z "$AS" && AS=as
  6565. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6566. test -z "$OBJDUMP" && OBJDUMP=objdump
  6567. enable_dlopen=no
  6568. # Check whether --enable-shared was given.
  6569. if test "${enable_shared+set}" = set; then :
  6570. enableval=$enable_shared; p=${PACKAGE-default}
  6571. case $enableval in
  6572. yes) enable_shared=yes ;;
  6573. no) enable_shared=no ;;
  6574. *)
  6575. enable_shared=no
  6576. # Look at the argument we got. We use all the common list separators.
  6577. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6578. for pkg in $enableval; do
  6579. IFS="$lt_save_ifs"
  6580. if test "X$pkg" = "X$p"; then
  6581. enable_shared=yes
  6582. fi
  6583. done
  6584. IFS="$lt_save_ifs"
  6585. ;;
  6586. esac
  6587. else
  6588. enable_shared=yes
  6589. fi
  6590. # Check whether --enable-static was given.
  6591. if test "${enable_static+set}" = set; then :
  6592. enableval=$enable_static; p=${PACKAGE-default}
  6593. case $enableval in
  6594. yes) enable_static=yes ;;
  6595. no) enable_static=no ;;
  6596. *)
  6597. enable_static=no
  6598. # Look at the argument we got. We use all the common list separators.
  6599. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6600. for pkg in $enableval; do
  6601. IFS="$lt_save_ifs"
  6602. if test "X$pkg" = "X$p"; then
  6603. enable_static=yes
  6604. fi
  6605. done
  6606. IFS="$lt_save_ifs"
  6607. ;;
  6608. esac
  6609. else
  6610. enable_static=yes
  6611. fi
  6612. # Check whether --with-pic was given.
  6613. if test "${with_pic+set}" = set; then :
  6614. withval=$with_pic; lt_p=${PACKAGE-default}
  6615. case $withval in
  6616. yes|no) pic_mode=$withval ;;
  6617. *)
  6618. pic_mode=default
  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 lt_pkg in $withval; do
  6622. IFS="$lt_save_ifs"
  6623. if test "X$lt_pkg" = "X$lt_p"; then
  6624. pic_mode=yes
  6625. fi
  6626. done
  6627. IFS="$lt_save_ifs"
  6628. ;;
  6629. esac
  6630. else
  6631. pic_mode=default
  6632. fi
  6633. test -z "$pic_mode" && pic_mode=default
  6634. # Check whether --enable-fast-install was given.
  6635. if test "${enable_fast_install+set}" = set; then :
  6636. enableval=$enable_fast_install; p=${PACKAGE-default}
  6637. case $enableval in
  6638. yes) enable_fast_install=yes ;;
  6639. no) enable_fast_install=no ;;
  6640. *)
  6641. enable_fast_install=no
  6642. # Look at the argument we got. We use all the common list separators.
  6643. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6644. for pkg in $enableval; do
  6645. IFS="$lt_save_ifs"
  6646. if test "X$pkg" = "X$p"; then
  6647. enable_fast_install=yes
  6648. fi
  6649. done
  6650. IFS="$lt_save_ifs"
  6651. ;;
  6652. esac
  6653. else
  6654. enable_fast_install=yes
  6655. fi
  6656. # This can be used to rebuild libtool when needed
  6657. LIBTOOL_DEPS="$ltmain"
  6658. # Always use our own libtool.
  6659. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6660. test -z "$LN_S" && LN_S="ln -s"
  6661. if test -n "${ZSH_VERSION+set}" ; then
  6662. setopt NO_GLOB_SUBST
  6663. fi
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6665. $as_echo_n "checking for objdir... " >&6; }
  6666. if ${lt_cv_objdir+:} false; then :
  6667. $as_echo_n "(cached) " >&6
  6668. else
  6669. rm -f .libs 2>/dev/null
  6670. mkdir .libs 2>/dev/null
  6671. if test -d .libs; then
  6672. lt_cv_objdir=.libs
  6673. else
  6674. # MS-DOS does not allow filenames that begin with a dot.
  6675. lt_cv_objdir=_libs
  6676. fi
  6677. rmdir .libs 2>/dev/null
  6678. fi
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6680. $as_echo "$lt_cv_objdir" >&6; }
  6681. objdir=$lt_cv_objdir
  6682. cat >>confdefs.h <<_ACEOF
  6683. #define LT_OBJDIR "$lt_cv_objdir/"
  6684. _ACEOF
  6685. case $host_os in
  6686. aix3*)
  6687. # AIX sometimes has problems with the GCC collect2 program. For some
  6688. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6689. # vanish in a puff of smoke.
  6690. if test "X${COLLECT_NAMES+set}" != Xset; then
  6691. COLLECT_NAMES=
  6692. export COLLECT_NAMES
  6693. fi
  6694. ;;
  6695. esac
  6696. # Global variables:
  6697. ofile=libtool
  6698. can_build_shared=yes
  6699. # All known linkers require a `.a' archive for static linking (except MSVC,
  6700. # which needs '.lib').
  6701. libext=a
  6702. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6703. old_CC="$CC"
  6704. old_CFLAGS="$CFLAGS"
  6705. # Set sane defaults for various variables
  6706. test -z "$CC" && CC=cc
  6707. test -z "$LTCC" && LTCC=$CC
  6708. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6709. test -z "$LD" && LD=ld
  6710. test -z "$ac_objext" && ac_objext=o
  6711. for cc_temp in $compiler""; do
  6712. case $cc_temp in
  6713. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6714. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6715. \-*) ;;
  6716. *) break;;
  6717. esac
  6718. done
  6719. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6720. # Only perform the check for file, if the check method requires it
  6721. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6722. case $deplibs_check_method in
  6723. file_magic*)
  6724. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6726. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6727. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6728. $as_echo_n "(cached) " >&6
  6729. else
  6730. case $MAGIC_CMD in
  6731. [\\/*] | ?:[\\/]*)
  6732. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6733. ;;
  6734. *)
  6735. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6736. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6737. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6738. for ac_dir in $ac_dummy; do
  6739. IFS="$lt_save_ifs"
  6740. test -z "$ac_dir" && ac_dir=.
  6741. if test -f $ac_dir/${ac_tool_prefix}file; then
  6742. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6743. if test -n "$file_magic_test_file"; then
  6744. case $deplibs_check_method in
  6745. "file_magic "*)
  6746. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6747. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6748. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6749. $EGREP "$file_magic_regex" > /dev/null; then
  6750. :
  6751. else
  6752. cat <<_LT_EOF 1>&2
  6753. *** Warning: the command libtool uses to detect shared libraries,
  6754. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6755. *** The result is that libtool may fail to recognize shared libraries
  6756. *** as such. This will affect the creation of libtool libraries that
  6757. *** depend on shared libraries, but programs linked with such libtool
  6758. *** libraries will work regardless of this problem. Nevertheless, you
  6759. *** may want to report the problem to your system manager and/or to
  6760. *** bug-libtool@gnu.org
  6761. _LT_EOF
  6762. fi ;;
  6763. esac
  6764. fi
  6765. break
  6766. fi
  6767. done
  6768. IFS="$lt_save_ifs"
  6769. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6770. ;;
  6771. esac
  6772. fi
  6773. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6774. if test -n "$MAGIC_CMD"; then
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6776. $as_echo "$MAGIC_CMD" >&6; }
  6777. else
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6779. $as_echo "no" >&6; }
  6780. fi
  6781. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6782. if test -n "$ac_tool_prefix"; then
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6784. $as_echo_n "checking for file... " >&6; }
  6785. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6786. $as_echo_n "(cached) " >&6
  6787. else
  6788. case $MAGIC_CMD in
  6789. [\\/*] | ?:[\\/]*)
  6790. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6791. ;;
  6792. *)
  6793. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6794. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6795. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6796. for ac_dir in $ac_dummy; do
  6797. IFS="$lt_save_ifs"
  6798. test -z "$ac_dir" && ac_dir=.
  6799. if test -f $ac_dir/file; then
  6800. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6801. if test -n "$file_magic_test_file"; then
  6802. case $deplibs_check_method in
  6803. "file_magic "*)
  6804. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6805. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6806. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6807. $EGREP "$file_magic_regex" > /dev/null; then
  6808. :
  6809. else
  6810. cat <<_LT_EOF 1>&2
  6811. *** Warning: the command libtool uses to detect shared libraries,
  6812. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6813. *** The result is that libtool may fail to recognize shared libraries
  6814. *** as such. This will affect the creation of libtool libraries that
  6815. *** depend on shared libraries, but programs linked with such libtool
  6816. *** libraries will work regardless of this problem. Nevertheless, you
  6817. *** may want to report the problem to your system manager and/or to
  6818. *** bug-libtool@gnu.org
  6819. _LT_EOF
  6820. fi ;;
  6821. esac
  6822. fi
  6823. break
  6824. fi
  6825. done
  6826. IFS="$lt_save_ifs"
  6827. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6828. ;;
  6829. esac
  6830. fi
  6831. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6832. if test -n "$MAGIC_CMD"; then
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6834. $as_echo "$MAGIC_CMD" >&6; }
  6835. else
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6837. $as_echo "no" >&6; }
  6838. fi
  6839. else
  6840. MAGIC_CMD=:
  6841. fi
  6842. fi
  6843. fi
  6844. ;;
  6845. esac
  6846. # Use C for the default configuration in the libtool script
  6847. lt_save_CC="$CC"
  6848. ac_ext=c
  6849. ac_cpp='$CPP $CPPFLAGS'
  6850. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6851. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6852. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6853. # Source file extension for C test sources.
  6854. ac_ext=c
  6855. # Object file extension for compiled C test sources.
  6856. objext=o
  6857. objext=$objext
  6858. # Code to be used in simple compile tests
  6859. lt_simple_compile_test_code="int some_variable = 0;"
  6860. # Code to be used in simple link tests
  6861. lt_simple_link_test_code='int main(){return(0);}'
  6862. # If no C compiler was specified, use CC.
  6863. LTCC=${LTCC-"$CC"}
  6864. # If no C compiler flags were specified, use CFLAGS.
  6865. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6866. # Allow CC to be a program name with arguments.
  6867. compiler=$CC
  6868. # Save the default compiler, since it gets overwritten when the other
  6869. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6870. compiler_DEFAULT=$CC
  6871. # save warnings/boilerplate of simple test code
  6872. ac_outfile=conftest.$ac_objext
  6873. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6874. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6875. _lt_compiler_boilerplate=`cat conftest.err`
  6876. $RM conftest*
  6877. ac_outfile=conftest.$ac_objext
  6878. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6879. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6880. _lt_linker_boilerplate=`cat conftest.err`
  6881. $RM -r conftest*
  6882. ## CAVEAT EMPTOR:
  6883. ## There is no encapsulation within the following macros, do not change
  6884. ## the running order or otherwise move them around unless you know exactly
  6885. ## what you are doing...
  6886. if test -n "$compiler"; then
  6887. lt_prog_compiler_no_builtin_flag=
  6888. if test "$GCC" = yes; then
  6889. case $cc_basename in
  6890. nvcc*)
  6891. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6892. *)
  6893. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6894. esac
  6895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6896. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6897. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6898. $as_echo_n "(cached) " >&6
  6899. else
  6900. lt_cv_prog_compiler_rtti_exceptions=no
  6901. ac_outfile=conftest.$ac_objext
  6902. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6903. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6904. # Insert the option either (1) after the last *FLAGS variable, or
  6905. # (2) before a word containing "conftest.", or (3) at the end.
  6906. # Note that $ac_compile itself does not contain backslashes and begins
  6907. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6908. # The option is referenced via a variable to avoid confusing sed.
  6909. lt_compile=`echo "$ac_compile" | $SED \
  6910. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6911. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6912. -e 's:$: $lt_compiler_flag:'`
  6913. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6914. (eval "$lt_compile" 2>conftest.err)
  6915. ac_status=$?
  6916. cat conftest.err >&5
  6917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6918. if (exit $ac_status) && test -s "$ac_outfile"; then
  6919. # The compiler can only warn and ignore the option if not recognized
  6920. # So say no if there are warnings other than the usual output.
  6921. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6922. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6923. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6924. lt_cv_prog_compiler_rtti_exceptions=yes
  6925. fi
  6926. fi
  6927. $RM conftest*
  6928. fi
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6930. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6931. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6932. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6933. else
  6934. :
  6935. fi
  6936. fi
  6937. lt_prog_compiler_wl=
  6938. lt_prog_compiler_pic=
  6939. lt_prog_compiler_static=
  6940. if test "$GCC" = yes; then
  6941. lt_prog_compiler_wl='-Wl,'
  6942. lt_prog_compiler_static='-static'
  6943. case $host_os in
  6944. aix*)
  6945. # All AIX code is PIC.
  6946. if test "$host_cpu" = ia64; then
  6947. # AIX 5 now supports IA64 processor
  6948. lt_prog_compiler_static='-Bstatic'
  6949. fi
  6950. ;;
  6951. amigaos*)
  6952. case $host_cpu in
  6953. powerpc)
  6954. # see comment about AmigaOS4 .so support
  6955. lt_prog_compiler_pic='-fPIC'
  6956. ;;
  6957. m68k)
  6958. # FIXME: we need at least 68020 code to build shared libraries, but
  6959. # adding the `-m68020' flag to GCC prevents building anything better,
  6960. # like `-m68040'.
  6961. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6962. ;;
  6963. esac
  6964. ;;
  6965. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6966. # PIC is the default for these OSes.
  6967. ;;
  6968. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6969. # This hack is so that the source file can tell whether it is being
  6970. # built for inclusion in a dll (and should export symbols for example).
  6971. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6972. # (--disable-auto-import) libraries
  6973. lt_prog_compiler_pic='-DDLL_EXPORT'
  6974. ;;
  6975. darwin* | rhapsody*)
  6976. # PIC is the default on this platform
  6977. # Common symbols not allowed in MH_DYLIB files
  6978. lt_prog_compiler_pic='-fno-common'
  6979. ;;
  6980. haiku*)
  6981. # PIC is the default for Haiku.
  6982. # The "-static" flag exists, but is broken.
  6983. lt_prog_compiler_static=
  6984. ;;
  6985. hpux*)
  6986. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6987. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6988. # sets the default TLS model and affects inlining.
  6989. case $host_cpu in
  6990. hppa*64*)
  6991. # +Z the default
  6992. ;;
  6993. *)
  6994. lt_prog_compiler_pic='-fPIC'
  6995. ;;
  6996. esac
  6997. ;;
  6998. interix[3-9]*)
  6999. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7000. # Instead, we relocate shared libraries at runtime.
  7001. ;;
  7002. msdosdjgpp*)
  7003. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7004. # on systems that don't support them.
  7005. lt_prog_compiler_can_build_shared=no
  7006. enable_shared=no
  7007. ;;
  7008. *nto* | *qnx*)
  7009. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7010. # it will coredump.
  7011. lt_prog_compiler_pic='-fPIC -shared'
  7012. ;;
  7013. sysv4*MP*)
  7014. if test -d /usr/nec; then
  7015. lt_prog_compiler_pic=-Kconform_pic
  7016. fi
  7017. ;;
  7018. *)
  7019. lt_prog_compiler_pic='-fPIC'
  7020. ;;
  7021. esac
  7022. case $cc_basename in
  7023. nvcc*) # Cuda Compiler Driver 2.2
  7024. lt_prog_compiler_wl='-Xlinker '
  7025. if test -n "$lt_prog_compiler_pic"; then
  7026. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7027. fi
  7028. ;;
  7029. esac
  7030. else
  7031. # PORTME Check for flag to pass linker flags through the system compiler.
  7032. case $host_os in
  7033. aix*)
  7034. lt_prog_compiler_wl='-Wl,'
  7035. if test "$host_cpu" = ia64; then
  7036. # AIX 5 now supports IA64 processor
  7037. lt_prog_compiler_static='-Bstatic'
  7038. else
  7039. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7040. fi
  7041. ;;
  7042. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7043. # This hack is so that the source file can tell whether it is being
  7044. # built for inclusion in a dll (and should export symbols for example).
  7045. lt_prog_compiler_pic='-DDLL_EXPORT'
  7046. ;;
  7047. hpux9* | hpux10* | hpux11*)
  7048. lt_prog_compiler_wl='-Wl,'
  7049. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7050. # not for PA HP-UX.
  7051. case $host_cpu in
  7052. hppa*64*|ia64*)
  7053. # +Z the default
  7054. ;;
  7055. *)
  7056. lt_prog_compiler_pic='+Z'
  7057. ;;
  7058. esac
  7059. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7060. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7061. ;;
  7062. irix5* | irix6* | nonstopux*)
  7063. lt_prog_compiler_wl='-Wl,'
  7064. # PIC (with -KPIC) is the default.
  7065. lt_prog_compiler_static='-non_shared'
  7066. ;;
  7067. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7068. case $cc_basename in
  7069. # old Intel for x86_64 which still supported -KPIC.
  7070. ecc*)
  7071. lt_prog_compiler_wl='-Wl,'
  7072. lt_prog_compiler_pic='-KPIC'
  7073. lt_prog_compiler_static='-static'
  7074. ;;
  7075. # icc used to be incompatible with GCC.
  7076. # ICC 10 doesn't accept -KPIC any more.
  7077. icc* | ifort*)
  7078. lt_prog_compiler_wl='-Wl,'
  7079. lt_prog_compiler_pic='-fPIC'
  7080. lt_prog_compiler_static='-static'
  7081. ;;
  7082. # Lahey Fortran 8.1.
  7083. lf95*)
  7084. lt_prog_compiler_wl='-Wl,'
  7085. lt_prog_compiler_pic='--shared'
  7086. lt_prog_compiler_static='--static'
  7087. ;;
  7088. nagfor*)
  7089. # NAG Fortran compiler
  7090. lt_prog_compiler_wl='-Wl,-Wl,,'
  7091. lt_prog_compiler_pic='-PIC'
  7092. lt_prog_compiler_static='-Bstatic'
  7093. ;;
  7094. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7095. # Portland Group compilers (*not* the Pentium gcc compiler,
  7096. # which looks to be a dead project)
  7097. lt_prog_compiler_wl='-Wl,'
  7098. lt_prog_compiler_pic='-fpic'
  7099. lt_prog_compiler_static='-Bstatic'
  7100. ;;
  7101. ccc*)
  7102. lt_prog_compiler_wl='-Wl,'
  7103. # All Alpha code is PIC.
  7104. lt_prog_compiler_static='-non_shared'
  7105. ;;
  7106. xl* | bgxl* | bgf* | mpixl*)
  7107. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7108. lt_prog_compiler_wl='-Wl,'
  7109. lt_prog_compiler_pic='-qpic'
  7110. lt_prog_compiler_static='-qstaticlink'
  7111. ;;
  7112. *)
  7113. case `$CC -V 2>&1 | sed 5q` in
  7114. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7115. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7116. lt_prog_compiler_pic='-KPIC'
  7117. lt_prog_compiler_static='-Bstatic'
  7118. lt_prog_compiler_wl=''
  7119. ;;
  7120. *Sun\ F* | *Sun*Fortran*)
  7121. lt_prog_compiler_pic='-KPIC'
  7122. lt_prog_compiler_static='-Bstatic'
  7123. lt_prog_compiler_wl='-Qoption ld '
  7124. ;;
  7125. *Sun\ C*)
  7126. # Sun C 5.9
  7127. lt_prog_compiler_pic='-KPIC'
  7128. lt_prog_compiler_static='-Bstatic'
  7129. lt_prog_compiler_wl='-Wl,'
  7130. ;;
  7131. *Intel*\ [CF]*Compiler*)
  7132. lt_prog_compiler_wl='-Wl,'
  7133. lt_prog_compiler_pic='-fPIC'
  7134. lt_prog_compiler_static='-static'
  7135. ;;
  7136. *Portland\ Group*)
  7137. lt_prog_compiler_wl='-Wl,'
  7138. lt_prog_compiler_pic='-fpic'
  7139. lt_prog_compiler_static='-Bstatic'
  7140. ;;
  7141. esac
  7142. ;;
  7143. esac
  7144. ;;
  7145. newsos6)
  7146. lt_prog_compiler_pic='-KPIC'
  7147. lt_prog_compiler_static='-Bstatic'
  7148. ;;
  7149. *nto* | *qnx*)
  7150. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7151. # it will coredump.
  7152. lt_prog_compiler_pic='-fPIC -shared'
  7153. ;;
  7154. osf3* | osf4* | osf5*)
  7155. lt_prog_compiler_wl='-Wl,'
  7156. # All OSF/1 code is PIC.
  7157. lt_prog_compiler_static='-non_shared'
  7158. ;;
  7159. rdos*)
  7160. lt_prog_compiler_static='-non_shared'
  7161. ;;
  7162. solaris*)
  7163. lt_prog_compiler_pic='-KPIC'
  7164. lt_prog_compiler_static='-Bstatic'
  7165. case $cc_basename in
  7166. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7167. lt_prog_compiler_wl='-Qoption ld ';;
  7168. *)
  7169. lt_prog_compiler_wl='-Wl,';;
  7170. esac
  7171. ;;
  7172. sunos4*)
  7173. lt_prog_compiler_wl='-Qoption ld '
  7174. lt_prog_compiler_pic='-PIC'
  7175. lt_prog_compiler_static='-Bstatic'
  7176. ;;
  7177. sysv4 | sysv4.2uw2* | sysv4.3*)
  7178. lt_prog_compiler_wl='-Wl,'
  7179. lt_prog_compiler_pic='-KPIC'
  7180. lt_prog_compiler_static='-Bstatic'
  7181. ;;
  7182. sysv4*MP*)
  7183. if test -d /usr/nec ;then
  7184. lt_prog_compiler_pic='-Kconform_pic'
  7185. lt_prog_compiler_static='-Bstatic'
  7186. fi
  7187. ;;
  7188. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7189. lt_prog_compiler_wl='-Wl,'
  7190. lt_prog_compiler_pic='-KPIC'
  7191. lt_prog_compiler_static='-Bstatic'
  7192. ;;
  7193. unicos*)
  7194. lt_prog_compiler_wl='-Wl,'
  7195. lt_prog_compiler_can_build_shared=no
  7196. ;;
  7197. uts4*)
  7198. lt_prog_compiler_pic='-pic'
  7199. lt_prog_compiler_static='-Bstatic'
  7200. ;;
  7201. *)
  7202. lt_prog_compiler_can_build_shared=no
  7203. ;;
  7204. esac
  7205. fi
  7206. case $host_os in
  7207. # For platforms which do not support PIC, -DPIC is meaningless:
  7208. *djgpp*)
  7209. lt_prog_compiler_pic=
  7210. ;;
  7211. *)
  7212. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7213. ;;
  7214. esac
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7216. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7217. if ${lt_cv_prog_compiler_pic+:} false; then :
  7218. $as_echo_n "(cached) " >&6
  7219. else
  7220. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7221. fi
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7223. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7224. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7225. #
  7226. # Check to make sure the PIC flag actually works.
  7227. #
  7228. if test -n "$lt_prog_compiler_pic"; then
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7230. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7231. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7232. $as_echo_n "(cached) " >&6
  7233. else
  7234. lt_cv_prog_compiler_pic_works=no
  7235. ac_outfile=conftest.$ac_objext
  7236. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7237. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7238. # Insert the option either (1) after the last *FLAGS variable, or
  7239. # (2) before a word containing "conftest.", or (3) at the end.
  7240. # Note that $ac_compile itself does not contain backslashes and begins
  7241. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7242. # The option is referenced via a variable to avoid confusing sed.
  7243. lt_compile=`echo "$ac_compile" | $SED \
  7244. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7245. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7246. -e 's:$: $lt_compiler_flag:'`
  7247. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7248. (eval "$lt_compile" 2>conftest.err)
  7249. ac_status=$?
  7250. cat conftest.err >&5
  7251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7252. if (exit $ac_status) && test -s "$ac_outfile"; then
  7253. # The compiler can only warn and ignore the option if not recognized
  7254. # So say no if there are warnings other than the usual output.
  7255. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7256. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7257. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7258. lt_cv_prog_compiler_pic_works=yes
  7259. fi
  7260. fi
  7261. $RM conftest*
  7262. fi
  7263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7264. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7265. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7266. case $lt_prog_compiler_pic in
  7267. "" | " "*) ;;
  7268. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7269. esac
  7270. else
  7271. lt_prog_compiler_pic=
  7272. lt_prog_compiler_can_build_shared=no
  7273. fi
  7274. fi
  7275. #
  7276. # Check to make sure the static flag actually works.
  7277. #
  7278. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7280. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7281. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7282. $as_echo_n "(cached) " >&6
  7283. else
  7284. lt_cv_prog_compiler_static_works=no
  7285. save_LDFLAGS="$LDFLAGS"
  7286. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7287. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7288. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7289. # The linker can only warn and ignore the option if not recognized
  7290. # So say no if there are warnings
  7291. if test -s conftest.err; then
  7292. # Append any errors to the config.log.
  7293. cat conftest.err 1>&5
  7294. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7295. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7296. if diff conftest.exp conftest.er2 >/dev/null; then
  7297. lt_cv_prog_compiler_static_works=yes
  7298. fi
  7299. else
  7300. lt_cv_prog_compiler_static_works=yes
  7301. fi
  7302. fi
  7303. $RM -r conftest*
  7304. LDFLAGS="$save_LDFLAGS"
  7305. fi
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7307. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7308. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7309. :
  7310. else
  7311. lt_prog_compiler_static=
  7312. fi
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7314. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7315. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7316. $as_echo_n "(cached) " >&6
  7317. else
  7318. lt_cv_prog_compiler_c_o=no
  7319. $RM -r conftest 2>/dev/null
  7320. mkdir conftest
  7321. cd conftest
  7322. mkdir out
  7323. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7324. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7325. # Insert the option either (1) after the last *FLAGS variable, or
  7326. # (2) before a word containing "conftest.", or (3) at the end.
  7327. # Note that $ac_compile itself does not contain backslashes and begins
  7328. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7329. lt_compile=`echo "$ac_compile" | $SED \
  7330. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7331. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7332. -e 's:$: $lt_compiler_flag:'`
  7333. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7334. (eval "$lt_compile" 2>out/conftest.err)
  7335. ac_status=$?
  7336. cat out/conftest.err >&5
  7337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7338. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7339. then
  7340. # The compiler can only warn and ignore the option if not recognized
  7341. # So say no if there are warnings
  7342. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7343. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7344. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7345. lt_cv_prog_compiler_c_o=yes
  7346. fi
  7347. fi
  7348. chmod u+w . 2>&5
  7349. $RM conftest*
  7350. # SGI C++ compiler will create directory out/ii_files/ for
  7351. # template instantiation
  7352. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7353. $RM out/* && rmdir out
  7354. cd ..
  7355. $RM -r conftest
  7356. $RM conftest*
  7357. fi
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7359. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7361. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7362. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7363. $as_echo_n "(cached) " >&6
  7364. else
  7365. lt_cv_prog_compiler_c_o=no
  7366. $RM -r conftest 2>/dev/null
  7367. mkdir conftest
  7368. cd conftest
  7369. mkdir out
  7370. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7371. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7372. # Insert the option either (1) after the last *FLAGS variable, or
  7373. # (2) before a word containing "conftest.", or (3) at the end.
  7374. # Note that $ac_compile itself does not contain backslashes and begins
  7375. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7376. lt_compile=`echo "$ac_compile" | $SED \
  7377. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7378. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7379. -e 's:$: $lt_compiler_flag:'`
  7380. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7381. (eval "$lt_compile" 2>out/conftest.err)
  7382. ac_status=$?
  7383. cat out/conftest.err >&5
  7384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7385. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7386. then
  7387. # The compiler can only warn and ignore the option if not recognized
  7388. # So say no if there are warnings
  7389. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7390. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7391. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7392. lt_cv_prog_compiler_c_o=yes
  7393. fi
  7394. fi
  7395. chmod u+w . 2>&5
  7396. $RM conftest*
  7397. # SGI C++ compiler will create directory out/ii_files/ for
  7398. # template instantiation
  7399. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7400. $RM out/* && rmdir out
  7401. cd ..
  7402. $RM -r conftest
  7403. $RM conftest*
  7404. fi
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7406. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7407. hard_links="nottested"
  7408. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7409. # do not overwrite the value of need_locks provided by the user
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7411. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7412. hard_links=yes
  7413. $RM conftest*
  7414. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7415. touch conftest.a
  7416. ln conftest.a conftest.b 2>&5 || hard_links=no
  7417. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7419. $as_echo "$hard_links" >&6; }
  7420. if test "$hard_links" = no; then
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7422. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7423. need_locks=warn
  7424. fi
  7425. else
  7426. need_locks=no
  7427. fi
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7429. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7430. runpath_var=
  7431. allow_undefined_flag=
  7432. always_export_symbols=no
  7433. archive_cmds=
  7434. archive_expsym_cmds=
  7435. compiler_needs_object=no
  7436. enable_shared_with_static_runtimes=no
  7437. export_dynamic_flag_spec=
  7438. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7439. hardcode_automatic=no
  7440. hardcode_direct=no
  7441. hardcode_direct_absolute=no
  7442. hardcode_libdir_flag_spec=
  7443. hardcode_libdir_separator=
  7444. hardcode_minus_L=no
  7445. hardcode_shlibpath_var=unsupported
  7446. inherit_rpath=no
  7447. link_all_deplibs=unknown
  7448. module_cmds=
  7449. module_expsym_cmds=
  7450. old_archive_from_new_cmds=
  7451. old_archive_from_expsyms_cmds=
  7452. thread_safe_flag_spec=
  7453. whole_archive_flag_spec=
  7454. # include_expsyms should be a list of space-separated symbols to be *always*
  7455. # included in the symbol list
  7456. include_expsyms=
  7457. # exclude_expsyms can be an extended regexp of symbols to exclude
  7458. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7459. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7460. # as well as any symbol that contains `d'.
  7461. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7462. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7463. # platforms (ab)use it in PIC code, but their linkers get confused if
  7464. # the symbol is explicitly referenced. Since portable code cannot
  7465. # rely on this symbol name, it's probably fine to never include it in
  7466. # preloaded symbol tables.
  7467. # Exclude shared library initialization/finalization symbols.
  7468. extract_expsyms_cmds=
  7469. case $host_os in
  7470. cygwin* | mingw* | pw32* | cegcc*)
  7471. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7472. # When not using gcc, we currently assume that we are using
  7473. # Microsoft Visual C++.
  7474. if test "$GCC" != yes; then
  7475. with_gnu_ld=no
  7476. fi
  7477. ;;
  7478. interix*)
  7479. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7480. with_gnu_ld=yes
  7481. ;;
  7482. openbsd*)
  7483. with_gnu_ld=no
  7484. ;;
  7485. esac
  7486. ld_shlibs=yes
  7487. # On some targets, GNU ld is compatible enough with the native linker
  7488. # that we're better off using the native interface for both.
  7489. lt_use_gnu_ld_interface=no
  7490. if test "$with_gnu_ld" = yes; then
  7491. case $host_os in
  7492. aix*)
  7493. # The AIX port of GNU ld has always aspired to compatibility
  7494. # with the native linker. However, as the warning in the GNU ld
  7495. # block says, versions before 2.19.5* couldn't really create working
  7496. # shared libraries, regardless of the interface used.
  7497. case `$LD -v 2>&1` in
  7498. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7499. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7500. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7501. *)
  7502. lt_use_gnu_ld_interface=yes
  7503. ;;
  7504. esac
  7505. ;;
  7506. *)
  7507. lt_use_gnu_ld_interface=yes
  7508. ;;
  7509. esac
  7510. fi
  7511. if test "$lt_use_gnu_ld_interface" = yes; then
  7512. # If archive_cmds runs LD, not CC, wlarc should be empty
  7513. wlarc='${wl}'
  7514. # Set some defaults for GNU ld with shared library support. These
  7515. # are reset later if shared libraries are not supported. Putting them
  7516. # here allows them to be overridden if necessary.
  7517. runpath_var=LD_RUN_PATH
  7518. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7519. export_dynamic_flag_spec='${wl}--export-dynamic'
  7520. # ancient GNU ld didn't support --whole-archive et. al.
  7521. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7522. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7523. else
  7524. whole_archive_flag_spec=
  7525. fi
  7526. supports_anon_versioning=no
  7527. case `$LD -v 2>&1` in
  7528. *GNU\ gold*) supports_anon_versioning=yes ;;
  7529. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7530. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7531. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7532. *\ 2.11.*) ;; # other 2.11 versions
  7533. *) supports_anon_versioning=yes ;;
  7534. esac
  7535. # See if GNU ld supports shared libraries.
  7536. case $host_os in
  7537. aix[3-9]*)
  7538. # On AIX/PPC, the GNU linker is very broken
  7539. if test "$host_cpu" != ia64; then
  7540. ld_shlibs=no
  7541. cat <<_LT_EOF 1>&2
  7542. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7543. *** to be unable to reliably create shared libraries on AIX.
  7544. *** Therefore, libtool is disabling shared libraries support. If you
  7545. *** really care for shared libraries, you may want to install binutils
  7546. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7547. *** You will then need to restart the configuration process.
  7548. _LT_EOF
  7549. fi
  7550. ;;
  7551. amigaos*)
  7552. case $host_cpu in
  7553. powerpc)
  7554. # see comment about AmigaOS4 .so support
  7555. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7556. archive_expsym_cmds=''
  7557. ;;
  7558. m68k)
  7559. 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)'
  7560. hardcode_libdir_flag_spec='-L$libdir'
  7561. hardcode_minus_L=yes
  7562. ;;
  7563. esac
  7564. ;;
  7565. beos*)
  7566. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7567. allow_undefined_flag=unsupported
  7568. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7569. # support --undefined. This deserves some investigation. FIXME
  7570. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7571. else
  7572. ld_shlibs=no
  7573. fi
  7574. ;;
  7575. cygwin* | mingw* | pw32* | cegcc*)
  7576. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7577. # as there is no search path for DLLs.
  7578. hardcode_libdir_flag_spec='-L$libdir'
  7579. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7580. allow_undefined_flag=unsupported
  7581. always_export_symbols=no
  7582. enable_shared_with_static_runtimes=yes
  7583. 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'
  7584. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7585. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7586. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7587. # If the export-symbols file already is a .def file (1st line
  7588. # is EXPORTS), use it as is; otherwise, prepend...
  7589. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7590. cp $export_symbols $output_objdir/$soname.def;
  7591. else
  7592. echo EXPORTS > $output_objdir/$soname.def;
  7593. cat $export_symbols >> $output_objdir/$soname.def;
  7594. fi~
  7595. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7596. else
  7597. ld_shlibs=no
  7598. fi
  7599. ;;
  7600. haiku*)
  7601. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7602. link_all_deplibs=yes
  7603. ;;
  7604. interix[3-9]*)
  7605. hardcode_direct=no
  7606. hardcode_shlibpath_var=no
  7607. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7608. export_dynamic_flag_spec='${wl}-E'
  7609. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7610. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7611. # default) and relocated if they conflict, which is a slow very memory
  7612. # consuming and fragmenting process. To avoid this, we pick a random,
  7613. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7614. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7615. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7616. 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'
  7617. ;;
  7618. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7619. tmp_diet=no
  7620. if test "$host_os" = linux-dietlibc; then
  7621. case $cc_basename in
  7622. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7623. esac
  7624. fi
  7625. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7626. && test "$tmp_diet" = no
  7627. then
  7628. tmp_addflag=' $pic_flag'
  7629. tmp_sharedflag='-shared'
  7630. case $cc_basename,$host_cpu in
  7631. pgcc*) # Portland Group C compiler
  7632. 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'
  7633. tmp_addflag=' $pic_flag'
  7634. ;;
  7635. pgf77* | pgf90* | pgf95* | pgfortran*)
  7636. # Portland Group f77 and f90 compilers
  7637. 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'
  7638. tmp_addflag=' $pic_flag -Mnomain' ;;
  7639. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7640. tmp_addflag=' -i_dynamic' ;;
  7641. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7642. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7643. ifc* | ifort*) # Intel Fortran compiler
  7644. tmp_addflag=' -nofor_main' ;;
  7645. lf95*) # Lahey Fortran 8.1
  7646. whole_archive_flag_spec=
  7647. tmp_sharedflag='--shared' ;;
  7648. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7649. tmp_sharedflag='-qmkshrobj'
  7650. tmp_addflag= ;;
  7651. nvcc*) # Cuda Compiler Driver 2.2
  7652. 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'
  7653. compiler_needs_object=yes
  7654. ;;
  7655. esac
  7656. case `$CC -V 2>&1 | sed 5q` in
  7657. *Sun\ C*) # Sun C 5.9
  7658. 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'
  7659. compiler_needs_object=yes
  7660. tmp_sharedflag='-G' ;;
  7661. *Sun\ F*) # Sun Fortran 8.3
  7662. tmp_sharedflag='-G' ;;
  7663. esac
  7664. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7665. if test "x$supports_anon_versioning" = xyes; then
  7666. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7667. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7668. echo "local: *; };" >> $output_objdir/$libname.ver~
  7669. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7670. fi
  7671. case $cc_basename in
  7672. xlf* | bgf* | bgxlf* | mpixlf*)
  7673. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7674. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7675. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7676. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7677. if test "x$supports_anon_versioning" = xyes; then
  7678. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7679. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7680. echo "local: *; };" >> $output_objdir/$libname.ver~
  7681. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7682. fi
  7683. ;;
  7684. esac
  7685. else
  7686. ld_shlibs=no
  7687. fi
  7688. ;;
  7689. netbsd*)
  7690. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7691. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7692. wlarc=
  7693. else
  7694. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7695. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7696. fi
  7697. ;;
  7698. solaris*)
  7699. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7700. ld_shlibs=no
  7701. cat <<_LT_EOF 1>&2
  7702. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7703. *** create shared libraries on Solaris systems. Therefore, libtool
  7704. *** is disabling shared libraries support. We urge you to upgrade GNU
  7705. *** binutils to release 2.9.1 or newer. Another option is to modify
  7706. *** your PATH or compiler configuration so that the native linker is
  7707. *** used, and then restart.
  7708. _LT_EOF
  7709. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7710. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7711. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7712. else
  7713. ld_shlibs=no
  7714. fi
  7715. ;;
  7716. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7717. case `$LD -v 2>&1` in
  7718. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7719. ld_shlibs=no
  7720. cat <<_LT_EOF 1>&2
  7721. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7722. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7723. *** is disabling shared libraries support. We urge you to upgrade GNU
  7724. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7725. *** your PATH or compiler configuration so that the native linker is
  7726. *** used, and then restart.
  7727. _LT_EOF
  7728. ;;
  7729. *)
  7730. # For security reasons, it is highly recommended that you always
  7731. # use absolute paths for naming shared libraries, and exclude the
  7732. # DT_RUNPATH tag from executables and libraries. But doing so
  7733. # requires that you compile everything twice, which is a pain.
  7734. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7735. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7736. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7737. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7738. else
  7739. ld_shlibs=no
  7740. fi
  7741. ;;
  7742. esac
  7743. ;;
  7744. sunos4*)
  7745. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7746. wlarc=
  7747. hardcode_direct=yes
  7748. hardcode_shlibpath_var=no
  7749. ;;
  7750. *)
  7751. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7752. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7753. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7754. else
  7755. ld_shlibs=no
  7756. fi
  7757. ;;
  7758. esac
  7759. if test "$ld_shlibs" = no; then
  7760. runpath_var=
  7761. hardcode_libdir_flag_spec=
  7762. export_dynamic_flag_spec=
  7763. whole_archive_flag_spec=
  7764. fi
  7765. else
  7766. # PORTME fill in a description of your system's linker (not GNU ld)
  7767. case $host_os in
  7768. aix3*)
  7769. allow_undefined_flag=unsupported
  7770. always_export_symbols=yes
  7771. 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'
  7772. # Note: this linker hardcodes the directories in LIBPATH if there
  7773. # are no directories specified by -L.
  7774. hardcode_minus_L=yes
  7775. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7776. # Neither direct hardcoding nor static linking is supported with a
  7777. # broken collect2.
  7778. hardcode_direct=unsupported
  7779. fi
  7780. ;;
  7781. aix[4-9]*)
  7782. if test "$host_cpu" = ia64; then
  7783. # On IA64, the linker does run time linking by default, so we don't
  7784. # have to do anything special.
  7785. aix_use_runtimelinking=no
  7786. exp_sym_flag='-Bexport'
  7787. no_entry_flag=""
  7788. else
  7789. # If we're using GNU nm, then we don't want the "-C" option.
  7790. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7791. # Also, AIX nm treats weak defined symbols like other global
  7792. # defined symbols, whereas GNU nm marks them as "W".
  7793. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7794. 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'
  7795. else
  7796. 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'
  7797. fi
  7798. aix_use_runtimelinking=no
  7799. # Test if we are trying to use run time linking or normal
  7800. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7801. # need to do runtime linking.
  7802. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7803. for ld_flag in $LDFLAGS; do
  7804. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7805. aix_use_runtimelinking=yes
  7806. break
  7807. fi
  7808. done
  7809. ;;
  7810. esac
  7811. exp_sym_flag='-bexport'
  7812. no_entry_flag='-bnoentry'
  7813. fi
  7814. # When large executables or shared objects are built, AIX ld can
  7815. # have problems creating the table of contents. If linking a library
  7816. # or program results in "error TOC overflow" add -mminimal-toc to
  7817. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7818. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7819. archive_cmds=''
  7820. hardcode_direct=yes
  7821. hardcode_direct_absolute=yes
  7822. hardcode_libdir_separator=':'
  7823. link_all_deplibs=yes
  7824. file_list_spec='${wl}-f,'
  7825. if test "$GCC" = yes; then
  7826. case $host_os in aix4.[012]|aix4.[012].*)
  7827. # We only want to do this on AIX 4.2 and lower, the check
  7828. # below for broken collect2 doesn't work under 4.3+
  7829. collect2name=`${CC} -print-prog-name=collect2`
  7830. if test -f "$collect2name" &&
  7831. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7832. then
  7833. # We have reworked collect2
  7834. :
  7835. else
  7836. # We have old collect2
  7837. hardcode_direct=unsupported
  7838. # It fails to find uninstalled libraries when the uninstalled
  7839. # path is not listed in the libpath. Setting hardcode_minus_L
  7840. # to unsupported forces relinking
  7841. hardcode_minus_L=yes
  7842. hardcode_libdir_flag_spec='-L$libdir'
  7843. hardcode_libdir_separator=
  7844. fi
  7845. ;;
  7846. esac
  7847. shared_flag='-shared'
  7848. if test "$aix_use_runtimelinking" = yes; then
  7849. shared_flag="$shared_flag "'${wl}-G'
  7850. fi
  7851. else
  7852. # not using gcc
  7853. if test "$host_cpu" = ia64; then
  7854. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7855. # chokes on -Wl,-G. The following line is correct:
  7856. shared_flag='-G'
  7857. else
  7858. if test "$aix_use_runtimelinking" = yes; then
  7859. shared_flag='${wl}-G'
  7860. else
  7861. shared_flag='${wl}-bM:SRE'
  7862. fi
  7863. fi
  7864. fi
  7865. export_dynamic_flag_spec='${wl}-bexpall'
  7866. # It seems that -bexpall does not export symbols beginning with
  7867. # underscore (_), so it is better to generate a list of symbols to export.
  7868. always_export_symbols=yes
  7869. if test "$aix_use_runtimelinking" = yes; then
  7870. # Warning - without using the other runtime loading flags (-brtl),
  7871. # -berok will link without error, but may produce a broken library.
  7872. allow_undefined_flag='-berok'
  7873. # Determine the default libpath from the value encoded in an
  7874. # empty executable.
  7875. if test "${lt_cv_aix_libpath+set}" = set; then
  7876. aix_libpath=$lt_cv_aix_libpath
  7877. else
  7878. if ${lt_cv_aix_libpath_+:} false; then :
  7879. $as_echo_n "(cached) " >&6
  7880. else
  7881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7882. /* end confdefs.h. */
  7883. int
  7884. main ()
  7885. {
  7886. ;
  7887. return 0;
  7888. }
  7889. _ACEOF
  7890. if ac_fn_c_try_link "$LINENO"; then :
  7891. lt_aix_libpath_sed='
  7892. /Import File Strings/,/^$/ {
  7893. /^0/ {
  7894. s/^0 *\([^ ]*\) *$/\1/
  7895. p
  7896. }
  7897. }'
  7898. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7899. # Check for a 64-bit object if we didn't find anything.
  7900. if test -z "$lt_cv_aix_libpath_"; then
  7901. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7902. fi
  7903. fi
  7904. rm -f core conftest.err conftest.$ac_objext \
  7905. conftest$ac_exeext conftest.$ac_ext
  7906. if test -z "$lt_cv_aix_libpath_"; then
  7907. lt_cv_aix_libpath_="/usr/lib:/lib"
  7908. fi
  7909. fi
  7910. aix_libpath=$lt_cv_aix_libpath_
  7911. fi
  7912. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7913. 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"
  7914. else
  7915. if test "$host_cpu" = ia64; then
  7916. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7917. allow_undefined_flag="-z nodefs"
  7918. 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"
  7919. else
  7920. # Determine the default libpath from the value encoded in an
  7921. # empty executable.
  7922. if test "${lt_cv_aix_libpath+set}" = set; then
  7923. aix_libpath=$lt_cv_aix_libpath
  7924. else
  7925. if ${lt_cv_aix_libpath_+:} false; then :
  7926. $as_echo_n "(cached) " >&6
  7927. else
  7928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7929. /* end confdefs.h. */
  7930. int
  7931. main ()
  7932. {
  7933. ;
  7934. return 0;
  7935. }
  7936. _ACEOF
  7937. if ac_fn_c_try_link "$LINENO"; then :
  7938. lt_aix_libpath_sed='
  7939. /Import File Strings/,/^$/ {
  7940. /^0/ {
  7941. s/^0 *\([^ ]*\) *$/\1/
  7942. p
  7943. }
  7944. }'
  7945. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7946. # Check for a 64-bit object if we didn't find anything.
  7947. if test -z "$lt_cv_aix_libpath_"; then
  7948. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7949. fi
  7950. fi
  7951. rm -f core conftest.err conftest.$ac_objext \
  7952. conftest$ac_exeext conftest.$ac_ext
  7953. if test -z "$lt_cv_aix_libpath_"; then
  7954. lt_cv_aix_libpath_="/usr/lib:/lib"
  7955. fi
  7956. fi
  7957. aix_libpath=$lt_cv_aix_libpath_
  7958. fi
  7959. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7960. # Warning - without using the other run time loading flags,
  7961. # -berok will link without error, but may produce a broken library.
  7962. no_undefined_flag=' ${wl}-bernotok'
  7963. allow_undefined_flag=' ${wl}-berok'
  7964. if test "$with_gnu_ld" = yes; then
  7965. # We only use this code for GNU lds that support --whole-archive.
  7966. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7967. else
  7968. # Exported symbols can be pulled into shared objects from archives
  7969. whole_archive_flag_spec='$convenience'
  7970. fi
  7971. archive_cmds_need_lc=yes
  7972. # This is similar to how AIX traditionally builds its shared libraries.
  7973. 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'
  7974. fi
  7975. fi
  7976. ;;
  7977. amigaos*)
  7978. case $host_cpu in
  7979. powerpc)
  7980. # see comment about AmigaOS4 .so support
  7981. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7982. archive_expsym_cmds=''
  7983. ;;
  7984. m68k)
  7985. 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)'
  7986. hardcode_libdir_flag_spec='-L$libdir'
  7987. hardcode_minus_L=yes
  7988. ;;
  7989. esac
  7990. ;;
  7991. bsdi[45]*)
  7992. export_dynamic_flag_spec=-rdynamic
  7993. ;;
  7994. cygwin* | mingw* | pw32* | cegcc*)
  7995. # When not using gcc, we currently assume that we are using
  7996. # Microsoft Visual C++.
  7997. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7998. # no search path for DLLs.
  7999. case $cc_basename in
  8000. cl*)
  8001. # Native MSVC
  8002. hardcode_libdir_flag_spec=' '
  8003. allow_undefined_flag=unsupported
  8004. always_export_symbols=yes
  8005. file_list_spec='@'
  8006. # Tell ltmain to make .lib files, not .a files.
  8007. libext=lib
  8008. # Tell ltmain to make .dll files, not .so files.
  8009. shrext_cmds=".dll"
  8010. # FIXME: Setting linknames here is a bad hack.
  8011. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8012. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8013. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8014. else
  8015. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8016. fi~
  8017. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8018. linknames='
  8019. # The linker will not automatically build a static lib if we build a DLL.
  8020. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8021. enable_shared_with_static_runtimes=yes
  8022. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8023. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8024. # Don't use ranlib
  8025. old_postinstall_cmds='chmod 644 $oldlib'
  8026. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8027. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8028. case $lt_outputfile in
  8029. *.exe|*.EXE) ;;
  8030. *)
  8031. lt_outputfile="$lt_outputfile.exe"
  8032. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8033. ;;
  8034. esac~
  8035. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8036. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8037. $RM "$lt_outputfile.manifest";
  8038. fi'
  8039. ;;
  8040. *)
  8041. # Assume MSVC wrapper
  8042. hardcode_libdir_flag_spec=' '
  8043. allow_undefined_flag=unsupported
  8044. # Tell ltmain to make .lib files, not .a files.
  8045. libext=lib
  8046. # Tell ltmain to make .dll files, not .so files.
  8047. shrext_cmds=".dll"
  8048. # FIXME: Setting linknames here is a bad hack.
  8049. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8050. # The linker will automatically build a .lib file if we build a DLL.
  8051. old_archive_from_new_cmds='true'
  8052. # FIXME: Should let the user specify the lib program.
  8053. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8054. enable_shared_with_static_runtimes=yes
  8055. ;;
  8056. esac
  8057. ;;
  8058. darwin* | rhapsody*)
  8059. archive_cmds_need_lc=no
  8060. hardcode_direct=no
  8061. hardcode_automatic=yes
  8062. hardcode_shlibpath_var=unsupported
  8063. if test "$lt_cv_ld_force_load" = "yes"; then
  8064. 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\"`'
  8065. else
  8066. whole_archive_flag_spec=''
  8067. fi
  8068. link_all_deplibs=yes
  8069. allow_undefined_flag="$_lt_dar_allow_undefined"
  8070. case $cc_basename in
  8071. ifort*) _lt_dar_can_shared=yes ;;
  8072. *) _lt_dar_can_shared=$GCC ;;
  8073. esac
  8074. if test "$_lt_dar_can_shared" = "yes"; then
  8075. output_verbose_link_cmd=func_echo_all
  8076. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8077. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8078. 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}"
  8079. 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}"
  8080. else
  8081. ld_shlibs=no
  8082. fi
  8083. ;;
  8084. dgux*)
  8085. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8086. hardcode_libdir_flag_spec='-L$libdir'
  8087. hardcode_shlibpath_var=no
  8088. ;;
  8089. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8090. # support. Future versions do this automatically, but an explicit c++rt0.o
  8091. # does not break anything, and helps significantly (at the cost of a little
  8092. # extra space).
  8093. freebsd2.2*)
  8094. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8095. hardcode_libdir_flag_spec='-R$libdir'
  8096. hardcode_direct=yes
  8097. hardcode_shlibpath_var=no
  8098. ;;
  8099. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8100. freebsd2.*)
  8101. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8102. hardcode_direct=yes
  8103. hardcode_minus_L=yes
  8104. hardcode_shlibpath_var=no
  8105. ;;
  8106. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8107. freebsd* | dragonfly*)
  8108. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8109. hardcode_libdir_flag_spec='-R$libdir'
  8110. hardcode_direct=yes
  8111. hardcode_shlibpath_var=no
  8112. ;;
  8113. hpux9*)
  8114. if test "$GCC" = yes; then
  8115. 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'
  8116. else
  8117. 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'
  8118. fi
  8119. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8120. hardcode_libdir_separator=:
  8121. hardcode_direct=yes
  8122. # hardcode_minus_L: Not really in the search PATH,
  8123. # but as the default location of the library.
  8124. hardcode_minus_L=yes
  8125. export_dynamic_flag_spec='${wl}-E'
  8126. ;;
  8127. hpux10*)
  8128. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8129. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8130. else
  8131. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8132. fi
  8133. if test "$with_gnu_ld" = no; then
  8134. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8135. hardcode_libdir_separator=:
  8136. hardcode_direct=yes
  8137. hardcode_direct_absolute=yes
  8138. export_dynamic_flag_spec='${wl}-E'
  8139. # hardcode_minus_L: Not really in the search PATH,
  8140. # but as the default location of the library.
  8141. hardcode_minus_L=yes
  8142. fi
  8143. ;;
  8144. hpux11*)
  8145. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8146. case $host_cpu in
  8147. hppa*64*)
  8148. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8149. ;;
  8150. ia64*)
  8151. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8152. ;;
  8153. *)
  8154. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8155. ;;
  8156. esac
  8157. else
  8158. case $host_cpu in
  8159. hppa*64*)
  8160. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8161. ;;
  8162. ia64*)
  8163. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8164. ;;
  8165. *)
  8166. # Older versions of the 11.00 compiler do not understand -b yet
  8167. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8169. $as_echo_n "checking if $CC understands -b... " >&6; }
  8170. if ${lt_cv_prog_compiler__b+:} false; then :
  8171. $as_echo_n "(cached) " >&6
  8172. else
  8173. lt_cv_prog_compiler__b=no
  8174. save_LDFLAGS="$LDFLAGS"
  8175. LDFLAGS="$LDFLAGS -b"
  8176. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8177. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8178. # The linker can only warn and ignore the option if not recognized
  8179. # So say no if there are warnings
  8180. if test -s conftest.err; then
  8181. # Append any errors to the config.log.
  8182. cat conftest.err 1>&5
  8183. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8184. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8185. if diff conftest.exp conftest.er2 >/dev/null; then
  8186. lt_cv_prog_compiler__b=yes
  8187. fi
  8188. else
  8189. lt_cv_prog_compiler__b=yes
  8190. fi
  8191. fi
  8192. $RM -r conftest*
  8193. LDFLAGS="$save_LDFLAGS"
  8194. fi
  8195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8196. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8197. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8198. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8199. else
  8200. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8201. fi
  8202. ;;
  8203. esac
  8204. fi
  8205. if test "$with_gnu_ld" = no; then
  8206. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8207. hardcode_libdir_separator=:
  8208. case $host_cpu in
  8209. hppa*64*|ia64*)
  8210. hardcode_direct=no
  8211. hardcode_shlibpath_var=no
  8212. ;;
  8213. *)
  8214. hardcode_direct=yes
  8215. hardcode_direct_absolute=yes
  8216. export_dynamic_flag_spec='${wl}-E'
  8217. # hardcode_minus_L: Not really in the search PATH,
  8218. # but as the default location of the library.
  8219. hardcode_minus_L=yes
  8220. ;;
  8221. esac
  8222. fi
  8223. ;;
  8224. irix5* | irix6* | nonstopux*)
  8225. if test "$GCC" = yes; then
  8226. 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'
  8227. # Try to use the -exported_symbol ld option, if it does not
  8228. # work, assume that -exports_file does not work either and
  8229. # implicitly export all symbols.
  8230. # This should be the same for all languages, so no per-tag cache variable.
  8231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8232. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8233. if ${lt_cv_irix_exported_symbol+:} false; then :
  8234. $as_echo_n "(cached) " >&6
  8235. else
  8236. save_LDFLAGS="$LDFLAGS"
  8237. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8239. /* end confdefs.h. */
  8240. int foo (void) { return 0; }
  8241. _ACEOF
  8242. if ac_fn_c_try_link "$LINENO"; then :
  8243. lt_cv_irix_exported_symbol=yes
  8244. else
  8245. lt_cv_irix_exported_symbol=no
  8246. fi
  8247. rm -f core conftest.err conftest.$ac_objext \
  8248. conftest$ac_exeext conftest.$ac_ext
  8249. LDFLAGS="$save_LDFLAGS"
  8250. fi
  8251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8252. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8253. if test "$lt_cv_irix_exported_symbol" = yes; then
  8254. 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'
  8255. fi
  8256. else
  8257. 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'
  8258. 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'
  8259. fi
  8260. archive_cmds_need_lc='no'
  8261. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8262. hardcode_libdir_separator=:
  8263. inherit_rpath=yes
  8264. link_all_deplibs=yes
  8265. ;;
  8266. netbsd*)
  8267. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8268. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8269. else
  8270. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8271. fi
  8272. hardcode_libdir_flag_spec='-R$libdir'
  8273. hardcode_direct=yes
  8274. hardcode_shlibpath_var=no
  8275. ;;
  8276. newsos6)
  8277. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8278. hardcode_direct=yes
  8279. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8280. hardcode_libdir_separator=:
  8281. hardcode_shlibpath_var=no
  8282. ;;
  8283. *nto* | *qnx*)
  8284. ;;
  8285. openbsd*)
  8286. if test -f /usr/libexec/ld.so; then
  8287. hardcode_direct=yes
  8288. hardcode_shlibpath_var=no
  8289. hardcode_direct_absolute=yes
  8290. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8291. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8292. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8293. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8294. export_dynamic_flag_spec='${wl}-E'
  8295. else
  8296. case $host_os in
  8297. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8298. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8299. hardcode_libdir_flag_spec='-R$libdir'
  8300. ;;
  8301. *)
  8302. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8303. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8304. ;;
  8305. esac
  8306. fi
  8307. else
  8308. ld_shlibs=no
  8309. fi
  8310. ;;
  8311. os2*)
  8312. hardcode_libdir_flag_spec='-L$libdir'
  8313. hardcode_minus_L=yes
  8314. allow_undefined_flag=unsupported
  8315. 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'
  8316. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8317. ;;
  8318. osf3*)
  8319. if test "$GCC" = yes; then
  8320. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8321. 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'
  8322. else
  8323. allow_undefined_flag=' -expect_unresolved \*'
  8324. 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'
  8325. fi
  8326. archive_cmds_need_lc='no'
  8327. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8328. hardcode_libdir_separator=:
  8329. ;;
  8330. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8331. if test "$GCC" = yes; then
  8332. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8333. 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'
  8334. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8335. else
  8336. allow_undefined_flag=' -expect_unresolved \*'
  8337. 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'
  8338. 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~
  8339. $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'
  8340. # Both c and cxx compiler support -rpath directly
  8341. hardcode_libdir_flag_spec='-rpath $libdir'
  8342. fi
  8343. archive_cmds_need_lc='no'
  8344. hardcode_libdir_separator=:
  8345. ;;
  8346. solaris*)
  8347. no_undefined_flag=' -z defs'
  8348. if test "$GCC" = yes; then
  8349. wlarc='${wl}'
  8350. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8351. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8352. $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'
  8353. else
  8354. case `$CC -V 2>&1` in
  8355. *"Compilers 5.0"*)
  8356. wlarc=''
  8357. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8358. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8359. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8360. ;;
  8361. *)
  8362. wlarc='${wl}'
  8363. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8364. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8365. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8366. ;;
  8367. esac
  8368. fi
  8369. hardcode_libdir_flag_spec='-R$libdir'
  8370. hardcode_shlibpath_var=no
  8371. case $host_os in
  8372. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8373. *)
  8374. # The compiler driver will combine and reorder linker options,
  8375. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8376. # but is careful enough not to reorder.
  8377. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8378. if test "$GCC" = yes; then
  8379. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8380. else
  8381. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8382. fi
  8383. ;;
  8384. esac
  8385. link_all_deplibs=yes
  8386. ;;
  8387. sunos4*)
  8388. if test "x$host_vendor" = xsequent; then
  8389. # Use $CC to link under sequent, because it throws in some extra .o
  8390. # files that make .init and .fini sections work.
  8391. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8392. else
  8393. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8394. fi
  8395. hardcode_libdir_flag_spec='-L$libdir'
  8396. hardcode_direct=yes
  8397. hardcode_minus_L=yes
  8398. hardcode_shlibpath_var=no
  8399. ;;
  8400. sysv4)
  8401. case $host_vendor in
  8402. sni)
  8403. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8404. hardcode_direct=yes # is this really true???
  8405. ;;
  8406. siemens)
  8407. ## LD is ld it makes a PLAMLIB
  8408. ## CC just makes a GrossModule.
  8409. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8410. reload_cmds='$CC -r -o $output$reload_objs'
  8411. hardcode_direct=no
  8412. ;;
  8413. motorola)
  8414. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8415. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8416. ;;
  8417. esac
  8418. runpath_var='LD_RUN_PATH'
  8419. hardcode_shlibpath_var=no
  8420. ;;
  8421. sysv4.3*)
  8422. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8423. hardcode_shlibpath_var=no
  8424. export_dynamic_flag_spec='-Bexport'
  8425. ;;
  8426. sysv4*MP*)
  8427. if test -d /usr/nec; then
  8428. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8429. hardcode_shlibpath_var=no
  8430. runpath_var=LD_RUN_PATH
  8431. hardcode_runpath_var=yes
  8432. ld_shlibs=yes
  8433. fi
  8434. ;;
  8435. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8436. no_undefined_flag='${wl}-z,text'
  8437. archive_cmds_need_lc=no
  8438. hardcode_shlibpath_var=no
  8439. runpath_var='LD_RUN_PATH'
  8440. if test "$GCC" = yes; then
  8441. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8442. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8443. else
  8444. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8445. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8446. fi
  8447. ;;
  8448. sysv5* | sco3.2v5* | sco5v6*)
  8449. # Note: We can NOT use -z defs as we might desire, because we do not
  8450. # link with -lc, and that would cause any symbols used from libc to
  8451. # always be unresolved, which means just about no library would
  8452. # ever link correctly. If we're not using GNU ld we use -z text
  8453. # though, which does catch some bad symbols but isn't as heavy-handed
  8454. # as -z defs.
  8455. no_undefined_flag='${wl}-z,text'
  8456. allow_undefined_flag='${wl}-z,nodefs'
  8457. archive_cmds_need_lc=no
  8458. hardcode_shlibpath_var=no
  8459. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8460. hardcode_libdir_separator=':'
  8461. link_all_deplibs=yes
  8462. export_dynamic_flag_spec='${wl}-Bexport'
  8463. runpath_var='LD_RUN_PATH'
  8464. if test "$GCC" = yes; then
  8465. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8466. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8467. else
  8468. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8469. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8470. fi
  8471. ;;
  8472. uts4*)
  8473. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8474. hardcode_libdir_flag_spec='-L$libdir'
  8475. hardcode_shlibpath_var=no
  8476. ;;
  8477. *)
  8478. ld_shlibs=no
  8479. ;;
  8480. esac
  8481. if test x$host_vendor = xsni; then
  8482. case $host in
  8483. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8484. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8485. ;;
  8486. esac
  8487. fi
  8488. fi
  8489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8490. $as_echo "$ld_shlibs" >&6; }
  8491. test "$ld_shlibs" = no && can_build_shared=no
  8492. with_gnu_ld=$with_gnu_ld
  8493. #
  8494. # Do we need to explicitly link libc?
  8495. #
  8496. case "x$archive_cmds_need_lc" in
  8497. x|xyes)
  8498. # Assume -lc should be added
  8499. archive_cmds_need_lc=yes
  8500. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8501. case $archive_cmds in
  8502. *'~'*)
  8503. # FIXME: we may have to deal with multi-command sequences.
  8504. ;;
  8505. '$CC '*)
  8506. # Test whether the compiler implicitly links with -lc since on some
  8507. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8508. # to ld, don't add -lc before -lgcc.
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8510. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8511. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8512. $as_echo_n "(cached) " >&6
  8513. else
  8514. $RM conftest*
  8515. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8516. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8517. (eval $ac_compile) 2>&5
  8518. ac_status=$?
  8519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8520. test $ac_status = 0; } 2>conftest.err; then
  8521. soname=conftest
  8522. lib=conftest
  8523. libobjs=conftest.$ac_objext
  8524. deplibs=
  8525. wl=$lt_prog_compiler_wl
  8526. pic_flag=$lt_prog_compiler_pic
  8527. compiler_flags=-v
  8528. linker_flags=-v
  8529. verstring=
  8530. output_objdir=.
  8531. libname=conftest
  8532. lt_save_allow_undefined_flag=$allow_undefined_flag
  8533. allow_undefined_flag=
  8534. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8535. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8536. ac_status=$?
  8537. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8538. test $ac_status = 0; }
  8539. then
  8540. lt_cv_archive_cmds_need_lc=no
  8541. else
  8542. lt_cv_archive_cmds_need_lc=yes
  8543. fi
  8544. allow_undefined_flag=$lt_save_allow_undefined_flag
  8545. else
  8546. cat conftest.err 1>&5
  8547. fi
  8548. $RM conftest*
  8549. fi
  8550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8551. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8552. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8553. ;;
  8554. esac
  8555. fi
  8556. ;;
  8557. esac
  8558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8559. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8560. if test "$GCC" = yes; then
  8561. case $host_os in
  8562. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8563. *) lt_awk_arg="/^libraries:/" ;;
  8564. esac
  8565. case $host_os in
  8566. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8567. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8568. esac
  8569. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8570. case $lt_search_path_spec in
  8571. *\;*)
  8572. # if the path contains ";" then we assume it to be the separator
  8573. # otherwise default to the standard path separator (i.e. ":") - it is
  8574. # assumed that no part of a normal pathname contains ";" but that should
  8575. # okay in the real world where ";" in dirpaths is itself problematic.
  8576. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8577. ;;
  8578. *)
  8579. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8580. ;;
  8581. esac
  8582. # Ok, now we have the path, separated by spaces, we can step through it
  8583. # and add multilib dir if necessary...
  8584. lt_tmp_lt_search_path_spec=
  8585. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8586. # ...but if some path already ends with the multilib dir we assume
  8587. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8588. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8589. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8590. lt_multi_os_dir=
  8591. ;;
  8592. esac
  8593. for lt_sys_path in $lt_search_path_spec; do
  8594. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8595. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8596. elif test -n "$lt_multi_os_dir"; then
  8597. test -d "$lt_sys_path" && \
  8598. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8599. fi
  8600. done
  8601. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8602. BEGIN {RS=" "; FS="/|\n";} {
  8603. lt_foo="";
  8604. lt_count=0;
  8605. for (lt_i = NF; lt_i > 0; lt_i--) {
  8606. if ($lt_i != "" && $lt_i != ".") {
  8607. if ($lt_i == "..") {
  8608. lt_count++;
  8609. } else {
  8610. if (lt_count == 0) {
  8611. lt_foo="/" $lt_i lt_foo;
  8612. } else {
  8613. lt_count--;
  8614. }
  8615. }
  8616. }
  8617. }
  8618. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8619. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8620. }'`
  8621. # AWK program above erroneously prepends '/' to C:/dos/paths
  8622. # for these hosts.
  8623. case $host_os in
  8624. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8625. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8626. esac
  8627. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8628. else
  8629. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8630. fi
  8631. library_names_spec=
  8632. libname_spec='lib$name'
  8633. soname_spec=
  8634. shrext_cmds=".so"
  8635. postinstall_cmds=
  8636. postuninstall_cmds=
  8637. finish_cmds=
  8638. finish_eval=
  8639. shlibpath_var=
  8640. shlibpath_overrides_runpath=unknown
  8641. version_type=none
  8642. dynamic_linker="$host_os ld.so"
  8643. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8644. need_lib_prefix=unknown
  8645. hardcode_into_libs=no
  8646. # when you set need_version to no, make sure it does not cause -set_version
  8647. # flags to be left without arguments
  8648. need_version=unknown
  8649. case $host_os in
  8650. aix3*)
  8651. version_type=linux # correct to gnu/linux during the next big refactor
  8652. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8653. shlibpath_var=LIBPATH
  8654. # AIX 3 has no versioning support, so we append a major version to the name.
  8655. soname_spec='${libname}${release}${shared_ext}$major'
  8656. ;;
  8657. aix[4-9]*)
  8658. version_type=linux # correct to gnu/linux during the next big refactor
  8659. need_lib_prefix=no
  8660. need_version=no
  8661. hardcode_into_libs=yes
  8662. if test "$host_cpu" = ia64; then
  8663. # AIX 5 supports IA64
  8664. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8665. shlibpath_var=LD_LIBRARY_PATH
  8666. else
  8667. # With GCC up to 2.95.x, collect2 would create an import file
  8668. # for dependence libraries. The import file would start with
  8669. # the line `#! .'. This would cause the generated library to
  8670. # depend on `.', always an invalid library. This was fixed in
  8671. # development snapshots of GCC prior to 3.0.
  8672. case $host_os in
  8673. aix4 | aix4.[01] | aix4.[01].*)
  8674. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8675. echo ' yes '
  8676. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8677. :
  8678. else
  8679. can_build_shared=no
  8680. fi
  8681. ;;
  8682. esac
  8683. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8684. # soname into executable. Probably we can add versioning support to
  8685. # collect2, so additional links can be useful in future.
  8686. if test "$aix_use_runtimelinking" = yes; then
  8687. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8688. # instead of lib<name>.a to let people know that these are not
  8689. # typical AIX shared libraries.
  8690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8691. else
  8692. # We preserve .a as extension for shared libraries through AIX4.2
  8693. # and later when we are not doing run time linking.
  8694. library_names_spec='${libname}${release}.a $libname.a'
  8695. soname_spec='${libname}${release}${shared_ext}$major'
  8696. fi
  8697. shlibpath_var=LIBPATH
  8698. fi
  8699. ;;
  8700. amigaos*)
  8701. case $host_cpu in
  8702. powerpc)
  8703. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8704. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8705. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8706. ;;
  8707. m68k)
  8708. library_names_spec='$libname.ixlibrary $libname.a'
  8709. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8710. 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'
  8711. ;;
  8712. esac
  8713. ;;
  8714. beos*)
  8715. library_names_spec='${libname}${shared_ext}'
  8716. dynamic_linker="$host_os ld.so"
  8717. shlibpath_var=LIBRARY_PATH
  8718. ;;
  8719. bsdi[45]*)
  8720. version_type=linux # correct to gnu/linux during the next big refactor
  8721. need_version=no
  8722. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8723. soname_spec='${libname}${release}${shared_ext}$major'
  8724. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8725. shlibpath_var=LD_LIBRARY_PATH
  8726. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8727. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8728. # the default ld.so.conf also contains /usr/contrib/lib and
  8729. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8730. # libtool to hard-code these into programs
  8731. ;;
  8732. cygwin* | mingw* | pw32* | cegcc*)
  8733. version_type=windows
  8734. shrext_cmds=".dll"
  8735. need_version=no
  8736. need_lib_prefix=no
  8737. case $GCC,$cc_basename in
  8738. yes,*)
  8739. # gcc
  8740. library_names_spec='$libname.dll.a'
  8741. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8742. postinstall_cmds='base_file=`basename \${file}`~
  8743. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8744. dldir=$destdir/`dirname \$dlpath`~
  8745. test -d \$dldir || mkdir -p \$dldir~
  8746. $install_prog $dir/$dlname \$dldir/$dlname~
  8747. chmod a+x \$dldir/$dlname~
  8748. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8749. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8750. fi'
  8751. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8752. dlpath=$dir/\$dldll~
  8753. $RM \$dlpath'
  8754. shlibpath_overrides_runpath=yes
  8755. case $host_os in
  8756. cygwin*)
  8757. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8758. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8759. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8760. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8761. ;;
  8762. mingw* | cegcc*)
  8763. # MinGW DLLs use traditional 'lib' prefix
  8764. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8765. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8766. ;;
  8767. pw32*)
  8768. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8769. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8770. ;;
  8771. esac
  8772. dynamic_linker='Win32 ld.exe'
  8773. ;;
  8774. *,cl*)
  8775. # Native MSVC
  8776. libname_spec='$name'
  8777. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8778. library_names_spec='${libname}.dll.lib'
  8779. case $build_os in
  8780. mingw*)
  8781. sys_lib_search_path_spec=
  8782. lt_save_ifs=$IFS
  8783. IFS=';'
  8784. for lt_path in $LIB
  8785. do
  8786. IFS=$lt_save_ifs
  8787. # Let DOS variable expansion print the short 8.3 style file name.
  8788. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8789. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8790. done
  8791. IFS=$lt_save_ifs
  8792. # Convert to MSYS style.
  8793. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8794. ;;
  8795. cygwin*)
  8796. # Convert to unix form, then to dos form, then back to unix form
  8797. # but this time dos style (no spaces!) so that the unix form looks
  8798. # like /cygdrive/c/PROGRA~1:/cygdr...
  8799. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8800. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8801. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8802. ;;
  8803. *)
  8804. sys_lib_search_path_spec="$LIB"
  8805. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8806. # It is most probably a Windows format PATH.
  8807. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8808. else
  8809. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8810. fi
  8811. # FIXME: find the short name or the path components, as spaces are
  8812. # common. (e.g. "Program Files" -> "PROGRA~1")
  8813. ;;
  8814. esac
  8815. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8816. postinstall_cmds='base_file=`basename \${file}`~
  8817. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8818. dldir=$destdir/`dirname \$dlpath`~
  8819. test -d \$dldir || mkdir -p \$dldir~
  8820. $install_prog $dir/$dlname \$dldir/$dlname'
  8821. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8822. dlpath=$dir/\$dldll~
  8823. $RM \$dlpath'
  8824. shlibpath_overrides_runpath=yes
  8825. dynamic_linker='Win32 link.exe'
  8826. ;;
  8827. *)
  8828. # Assume MSVC wrapper
  8829. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8830. dynamic_linker='Win32 ld.exe'
  8831. ;;
  8832. esac
  8833. # FIXME: first we should search . and the directory the executable is in
  8834. shlibpath_var=PATH
  8835. ;;
  8836. darwin* | rhapsody*)
  8837. dynamic_linker="$host_os dyld"
  8838. version_type=darwin
  8839. need_lib_prefix=no
  8840. need_version=no
  8841. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8842. soname_spec='${libname}${release}${major}$shared_ext'
  8843. shlibpath_overrides_runpath=yes
  8844. shlibpath_var=DYLD_LIBRARY_PATH
  8845. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8846. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8847. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8848. ;;
  8849. dgux*)
  8850. version_type=linux # correct to gnu/linux during the next big refactor
  8851. need_lib_prefix=no
  8852. need_version=no
  8853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8854. soname_spec='${libname}${release}${shared_ext}$major'
  8855. shlibpath_var=LD_LIBRARY_PATH
  8856. ;;
  8857. freebsd* | dragonfly*)
  8858. # DragonFly does not have aout. When/if they implement a new
  8859. # versioning mechanism, adjust this.
  8860. if test -x /usr/bin/objformat; then
  8861. objformat=`/usr/bin/objformat`
  8862. else
  8863. case $host_os in
  8864. freebsd[23].*) objformat=aout ;;
  8865. *) objformat=elf ;;
  8866. esac
  8867. fi
  8868. version_type=freebsd-$objformat
  8869. case $version_type in
  8870. freebsd-elf*)
  8871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8872. need_version=no
  8873. need_lib_prefix=no
  8874. ;;
  8875. freebsd-*)
  8876. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8877. need_version=yes
  8878. ;;
  8879. esac
  8880. shlibpath_var=LD_LIBRARY_PATH
  8881. case $host_os in
  8882. freebsd2.*)
  8883. shlibpath_overrides_runpath=yes
  8884. ;;
  8885. freebsd3.[01]* | freebsdelf3.[01]*)
  8886. shlibpath_overrides_runpath=yes
  8887. hardcode_into_libs=yes
  8888. ;;
  8889. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8890. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8891. shlibpath_overrides_runpath=no
  8892. hardcode_into_libs=yes
  8893. ;;
  8894. *) # from 4.6 on, and DragonFly
  8895. shlibpath_overrides_runpath=yes
  8896. hardcode_into_libs=yes
  8897. ;;
  8898. esac
  8899. ;;
  8900. gnu*)
  8901. version_type=linux # correct to gnu/linux during the next big refactor
  8902. need_lib_prefix=no
  8903. need_version=no
  8904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8905. soname_spec='${libname}${release}${shared_ext}$major'
  8906. shlibpath_var=LD_LIBRARY_PATH
  8907. shlibpath_overrides_runpath=no
  8908. hardcode_into_libs=yes
  8909. ;;
  8910. haiku*)
  8911. version_type=linux # correct to gnu/linux during the next big refactor
  8912. need_lib_prefix=no
  8913. need_version=no
  8914. dynamic_linker="$host_os runtime_loader"
  8915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8916. soname_spec='${libname}${release}${shared_ext}$major'
  8917. shlibpath_var=LIBRARY_PATH
  8918. shlibpath_overrides_runpath=yes
  8919. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8920. hardcode_into_libs=yes
  8921. ;;
  8922. hpux9* | hpux10* | hpux11*)
  8923. # Give a soname corresponding to the major version so that dld.sl refuses to
  8924. # link against other versions.
  8925. version_type=sunos
  8926. need_lib_prefix=no
  8927. need_version=no
  8928. case $host_cpu in
  8929. ia64*)
  8930. shrext_cmds='.so'
  8931. hardcode_into_libs=yes
  8932. dynamic_linker="$host_os dld.so"
  8933. shlibpath_var=LD_LIBRARY_PATH
  8934. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8936. soname_spec='${libname}${release}${shared_ext}$major'
  8937. if test "X$HPUX_IA64_MODE" = X32; then
  8938. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8939. else
  8940. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8941. fi
  8942. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8943. ;;
  8944. hppa*64*)
  8945. shrext_cmds='.sl'
  8946. hardcode_into_libs=yes
  8947. dynamic_linker="$host_os dld.sl"
  8948. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8949. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8953. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8954. ;;
  8955. *)
  8956. shrext_cmds='.sl'
  8957. dynamic_linker="$host_os dld.sl"
  8958. shlibpath_var=SHLIB_PATH
  8959. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8961. soname_spec='${libname}${release}${shared_ext}$major'
  8962. ;;
  8963. esac
  8964. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8965. postinstall_cmds='chmod 555 $lib'
  8966. # or fails outright, so override atomically:
  8967. install_override_mode=555
  8968. ;;
  8969. interix[3-9]*)
  8970. version_type=linux # correct to gnu/linux during the next big refactor
  8971. need_lib_prefix=no
  8972. need_version=no
  8973. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8974. soname_spec='${libname}${release}${shared_ext}$major'
  8975. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8976. shlibpath_var=LD_LIBRARY_PATH
  8977. shlibpath_overrides_runpath=no
  8978. hardcode_into_libs=yes
  8979. ;;
  8980. irix5* | irix6* | nonstopux*)
  8981. case $host_os in
  8982. nonstopux*) version_type=nonstopux ;;
  8983. *)
  8984. if test "$lt_cv_prog_gnu_ld" = yes; then
  8985. version_type=linux # correct to gnu/linux during the next big refactor
  8986. else
  8987. version_type=irix
  8988. fi ;;
  8989. esac
  8990. need_lib_prefix=no
  8991. need_version=no
  8992. soname_spec='${libname}${release}${shared_ext}$major'
  8993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8994. case $host_os in
  8995. irix5* | nonstopux*)
  8996. libsuff= shlibsuff=
  8997. ;;
  8998. *)
  8999. case $LD in # libtool.m4 will add one of these switches to LD
  9000. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9001. libsuff= shlibsuff= libmagic=32-bit;;
  9002. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9003. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9004. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9005. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9006. *) libsuff= shlibsuff= libmagic=never-match;;
  9007. esac
  9008. ;;
  9009. esac
  9010. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9011. shlibpath_overrides_runpath=no
  9012. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9013. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9014. hardcode_into_libs=yes
  9015. ;;
  9016. # No shared lib support for Linux oldld, aout, or coff.
  9017. linux*oldld* | linux*aout* | linux*coff*)
  9018. dynamic_linker=no
  9019. ;;
  9020. # This must be glibc/ELF.
  9021. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9022. version_type=linux # correct to gnu/linux during the next big refactor
  9023. need_lib_prefix=no
  9024. need_version=no
  9025. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9026. soname_spec='${libname}${release}${shared_ext}$major'
  9027. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9028. shlibpath_var=LD_LIBRARY_PATH
  9029. shlibpath_overrides_runpath=no
  9030. # Some binutils ld are patched to set DT_RUNPATH
  9031. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9032. $as_echo_n "(cached) " >&6
  9033. else
  9034. lt_cv_shlibpath_overrides_runpath=no
  9035. save_LDFLAGS=$LDFLAGS
  9036. save_libdir=$libdir
  9037. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9038. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9040. /* end confdefs.h. */
  9041. int
  9042. main ()
  9043. {
  9044. ;
  9045. return 0;
  9046. }
  9047. _ACEOF
  9048. if ac_fn_c_try_link "$LINENO"; then :
  9049. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9050. lt_cv_shlibpath_overrides_runpath=yes
  9051. fi
  9052. fi
  9053. rm -f core conftest.err conftest.$ac_objext \
  9054. conftest$ac_exeext conftest.$ac_ext
  9055. LDFLAGS=$save_LDFLAGS
  9056. libdir=$save_libdir
  9057. fi
  9058. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9059. # This implies no fast_install, which is unacceptable.
  9060. # Some rework will be needed to allow for fast_install
  9061. # before this can be enabled.
  9062. hardcode_into_libs=yes
  9063. # Append ld.so.conf contents to the search path
  9064. if test -f /etc/ld.so.conf; then
  9065. 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' ' '`
  9066. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9067. fi
  9068. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9069. # powerpc, because MkLinux only supported shared libraries with the
  9070. # GNU dynamic linker. Since this was broken with cross compilers,
  9071. # most powerpc-linux boxes support dynamic linking these days and
  9072. # people can always --disable-shared, the test was removed, and we
  9073. # assume the GNU/Linux dynamic linker is in use.
  9074. dynamic_linker='GNU/Linux ld.so'
  9075. ;;
  9076. netbsd*)
  9077. version_type=sunos
  9078. need_lib_prefix=no
  9079. need_version=no
  9080. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9082. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9083. dynamic_linker='NetBSD (a.out) ld.so'
  9084. else
  9085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9086. soname_spec='${libname}${release}${shared_ext}$major'
  9087. dynamic_linker='NetBSD ld.elf_so'
  9088. fi
  9089. shlibpath_var=LD_LIBRARY_PATH
  9090. shlibpath_overrides_runpath=yes
  9091. hardcode_into_libs=yes
  9092. ;;
  9093. newsos6)
  9094. version_type=linux # correct to gnu/linux during the next big refactor
  9095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9096. shlibpath_var=LD_LIBRARY_PATH
  9097. shlibpath_overrides_runpath=yes
  9098. ;;
  9099. *nto* | *qnx*)
  9100. version_type=qnx
  9101. need_lib_prefix=no
  9102. need_version=no
  9103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9104. soname_spec='${libname}${release}${shared_ext}$major'
  9105. shlibpath_var=LD_LIBRARY_PATH
  9106. shlibpath_overrides_runpath=no
  9107. hardcode_into_libs=yes
  9108. dynamic_linker='ldqnx.so'
  9109. ;;
  9110. openbsd*)
  9111. version_type=sunos
  9112. sys_lib_dlsearch_path_spec="/usr/lib"
  9113. need_lib_prefix=no
  9114. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9115. case $host_os in
  9116. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9117. *) need_version=no ;;
  9118. esac
  9119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9120. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9121. shlibpath_var=LD_LIBRARY_PATH
  9122. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9123. case $host_os in
  9124. openbsd2.[89] | openbsd2.[89].*)
  9125. shlibpath_overrides_runpath=no
  9126. ;;
  9127. *)
  9128. shlibpath_overrides_runpath=yes
  9129. ;;
  9130. esac
  9131. else
  9132. shlibpath_overrides_runpath=yes
  9133. fi
  9134. ;;
  9135. os2*)
  9136. libname_spec='$name'
  9137. shrext_cmds=".dll"
  9138. need_lib_prefix=no
  9139. library_names_spec='$libname${shared_ext} $libname.a'
  9140. dynamic_linker='OS/2 ld.exe'
  9141. shlibpath_var=LIBPATH
  9142. ;;
  9143. osf3* | osf4* | osf5*)
  9144. version_type=osf
  9145. need_lib_prefix=no
  9146. need_version=no
  9147. soname_spec='${libname}${release}${shared_ext}$major'
  9148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9149. shlibpath_var=LD_LIBRARY_PATH
  9150. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9151. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9152. ;;
  9153. rdos*)
  9154. dynamic_linker=no
  9155. ;;
  9156. solaris*)
  9157. version_type=linux # correct to gnu/linux during the next big refactor
  9158. need_lib_prefix=no
  9159. need_version=no
  9160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9161. soname_spec='${libname}${release}${shared_ext}$major'
  9162. shlibpath_var=LD_LIBRARY_PATH
  9163. shlibpath_overrides_runpath=yes
  9164. hardcode_into_libs=yes
  9165. # ldd complains unless libraries are executable
  9166. postinstall_cmds='chmod +x $lib'
  9167. ;;
  9168. sunos4*)
  9169. version_type=sunos
  9170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9171. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9172. shlibpath_var=LD_LIBRARY_PATH
  9173. shlibpath_overrides_runpath=yes
  9174. if test "$with_gnu_ld" = yes; then
  9175. need_lib_prefix=no
  9176. fi
  9177. need_version=yes
  9178. ;;
  9179. sysv4 | sysv4.3*)
  9180. version_type=linux # correct to gnu/linux during the next big refactor
  9181. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9182. soname_spec='${libname}${release}${shared_ext}$major'
  9183. shlibpath_var=LD_LIBRARY_PATH
  9184. case $host_vendor in
  9185. sni)
  9186. shlibpath_overrides_runpath=no
  9187. need_lib_prefix=no
  9188. runpath_var=LD_RUN_PATH
  9189. ;;
  9190. siemens)
  9191. need_lib_prefix=no
  9192. ;;
  9193. motorola)
  9194. need_lib_prefix=no
  9195. need_version=no
  9196. shlibpath_overrides_runpath=no
  9197. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9198. ;;
  9199. esac
  9200. ;;
  9201. sysv4*MP*)
  9202. if test -d /usr/nec ;then
  9203. version_type=linux # correct to gnu/linux during the next big refactor
  9204. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9205. soname_spec='$libname${shared_ext}.$major'
  9206. shlibpath_var=LD_LIBRARY_PATH
  9207. fi
  9208. ;;
  9209. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9210. version_type=freebsd-elf
  9211. need_lib_prefix=no
  9212. need_version=no
  9213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9214. soname_spec='${libname}${release}${shared_ext}$major'
  9215. shlibpath_var=LD_LIBRARY_PATH
  9216. shlibpath_overrides_runpath=yes
  9217. hardcode_into_libs=yes
  9218. if test "$with_gnu_ld" = yes; then
  9219. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9220. else
  9221. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9222. case $host_os in
  9223. sco3.2v5*)
  9224. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9225. ;;
  9226. esac
  9227. fi
  9228. sys_lib_dlsearch_path_spec='/usr/lib'
  9229. ;;
  9230. tpf*)
  9231. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9232. version_type=linux # correct to gnu/linux during the next big refactor
  9233. need_lib_prefix=no
  9234. need_version=no
  9235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9236. shlibpath_var=LD_LIBRARY_PATH
  9237. shlibpath_overrides_runpath=no
  9238. hardcode_into_libs=yes
  9239. ;;
  9240. uts4*)
  9241. version_type=linux # correct to gnu/linux during the next big refactor
  9242. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9243. soname_spec='${libname}${release}${shared_ext}$major'
  9244. shlibpath_var=LD_LIBRARY_PATH
  9245. ;;
  9246. *)
  9247. dynamic_linker=no
  9248. ;;
  9249. esac
  9250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9251. $as_echo "$dynamic_linker" >&6; }
  9252. test "$dynamic_linker" = no && can_build_shared=no
  9253. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9254. if test "$GCC" = yes; then
  9255. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9256. fi
  9257. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9258. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9259. fi
  9260. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9261. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9262. fi
  9263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9264. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9265. hardcode_action=
  9266. if test -n "$hardcode_libdir_flag_spec" ||
  9267. test -n "$runpath_var" ||
  9268. test "X$hardcode_automatic" = "Xyes" ; then
  9269. # We can hardcode non-existent directories.
  9270. if test "$hardcode_direct" != no &&
  9271. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9272. # have to relink, otherwise we might link with an installed library
  9273. # when we should be linking with a yet-to-be-installed one
  9274. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9275. test "$hardcode_minus_L" != no; then
  9276. # Linking always hardcodes the temporary library directory.
  9277. hardcode_action=relink
  9278. else
  9279. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9280. hardcode_action=immediate
  9281. fi
  9282. else
  9283. # We cannot hardcode anything, or else we can only hardcode existing
  9284. # directories.
  9285. hardcode_action=unsupported
  9286. fi
  9287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9288. $as_echo "$hardcode_action" >&6; }
  9289. if test "$hardcode_action" = relink ||
  9290. test "$inherit_rpath" = yes; then
  9291. # Fast installation is not supported
  9292. enable_fast_install=no
  9293. elif test "$shlibpath_overrides_runpath" = yes ||
  9294. test "$enable_shared" = no; then
  9295. # Fast installation is not necessary
  9296. enable_fast_install=needless
  9297. fi
  9298. if test "x$enable_dlopen" != xyes; then
  9299. enable_dlopen=unknown
  9300. enable_dlopen_self=unknown
  9301. enable_dlopen_self_static=unknown
  9302. else
  9303. lt_cv_dlopen=no
  9304. lt_cv_dlopen_libs=
  9305. case $host_os in
  9306. beos*)
  9307. lt_cv_dlopen="load_add_on"
  9308. lt_cv_dlopen_libs=
  9309. lt_cv_dlopen_self=yes
  9310. ;;
  9311. mingw* | pw32* | cegcc*)
  9312. lt_cv_dlopen="LoadLibrary"
  9313. lt_cv_dlopen_libs=
  9314. ;;
  9315. cygwin*)
  9316. lt_cv_dlopen="dlopen"
  9317. lt_cv_dlopen_libs=
  9318. ;;
  9319. darwin*)
  9320. # if libdl is installed we need to link against it
  9321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9322. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9323. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9324. $as_echo_n "(cached) " >&6
  9325. else
  9326. ac_check_lib_save_LIBS=$LIBS
  9327. LIBS="-ldl $LIBS"
  9328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9329. /* end confdefs.h. */
  9330. /* Override any GCC internal prototype to avoid an error.
  9331. Use char because int might match the return type of a GCC
  9332. builtin and then its argument prototype would still apply. */
  9333. #ifdef __cplusplus
  9334. extern "C"
  9335. #endif
  9336. char dlopen ();
  9337. int
  9338. main ()
  9339. {
  9340. return dlopen ();
  9341. ;
  9342. return 0;
  9343. }
  9344. _ACEOF
  9345. if ac_fn_c_try_link "$LINENO"; then :
  9346. ac_cv_lib_dl_dlopen=yes
  9347. else
  9348. ac_cv_lib_dl_dlopen=no
  9349. fi
  9350. rm -f core conftest.err conftest.$ac_objext \
  9351. conftest$ac_exeext conftest.$ac_ext
  9352. LIBS=$ac_check_lib_save_LIBS
  9353. fi
  9354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9355. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9356. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9357. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9358. else
  9359. lt_cv_dlopen="dyld"
  9360. lt_cv_dlopen_libs=
  9361. lt_cv_dlopen_self=yes
  9362. fi
  9363. ;;
  9364. *)
  9365. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9366. if test "x$ac_cv_func_shl_load" = xyes; then :
  9367. lt_cv_dlopen="shl_load"
  9368. else
  9369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9370. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9371. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9372. $as_echo_n "(cached) " >&6
  9373. else
  9374. ac_check_lib_save_LIBS=$LIBS
  9375. LIBS="-ldld $LIBS"
  9376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9377. /* end confdefs.h. */
  9378. /* Override any GCC internal prototype to avoid an error.
  9379. Use char because int might match the return type of a GCC
  9380. builtin and then its argument prototype would still apply. */
  9381. #ifdef __cplusplus
  9382. extern "C"
  9383. #endif
  9384. char shl_load ();
  9385. int
  9386. main ()
  9387. {
  9388. return shl_load ();
  9389. ;
  9390. return 0;
  9391. }
  9392. _ACEOF
  9393. if ac_fn_c_try_link "$LINENO"; then :
  9394. ac_cv_lib_dld_shl_load=yes
  9395. else
  9396. ac_cv_lib_dld_shl_load=no
  9397. fi
  9398. rm -f core conftest.err conftest.$ac_objext \
  9399. conftest$ac_exeext conftest.$ac_ext
  9400. LIBS=$ac_check_lib_save_LIBS
  9401. fi
  9402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9403. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9404. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9405. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9406. else
  9407. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9408. if test "x$ac_cv_func_dlopen" = xyes; then :
  9409. lt_cv_dlopen="dlopen"
  9410. else
  9411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9412. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9413. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9414. $as_echo_n "(cached) " >&6
  9415. else
  9416. ac_check_lib_save_LIBS=$LIBS
  9417. LIBS="-ldl $LIBS"
  9418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9419. /* end confdefs.h. */
  9420. /* Override any GCC internal prototype to avoid an error.
  9421. Use char because int might match the return type of a GCC
  9422. builtin and then its argument prototype would still apply. */
  9423. #ifdef __cplusplus
  9424. extern "C"
  9425. #endif
  9426. char dlopen ();
  9427. int
  9428. main ()
  9429. {
  9430. return dlopen ();
  9431. ;
  9432. return 0;
  9433. }
  9434. _ACEOF
  9435. if ac_fn_c_try_link "$LINENO"; then :
  9436. ac_cv_lib_dl_dlopen=yes
  9437. else
  9438. ac_cv_lib_dl_dlopen=no
  9439. fi
  9440. rm -f core conftest.err conftest.$ac_objext \
  9441. conftest$ac_exeext conftest.$ac_ext
  9442. LIBS=$ac_check_lib_save_LIBS
  9443. fi
  9444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9445. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9446. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9447. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9448. else
  9449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9450. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9451. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9452. $as_echo_n "(cached) " >&6
  9453. else
  9454. ac_check_lib_save_LIBS=$LIBS
  9455. LIBS="-lsvld $LIBS"
  9456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9457. /* end confdefs.h. */
  9458. /* Override any GCC internal prototype to avoid an error.
  9459. Use char because int might match the return type of a GCC
  9460. builtin and then its argument prototype would still apply. */
  9461. #ifdef __cplusplus
  9462. extern "C"
  9463. #endif
  9464. char dlopen ();
  9465. int
  9466. main ()
  9467. {
  9468. return dlopen ();
  9469. ;
  9470. return 0;
  9471. }
  9472. _ACEOF
  9473. if ac_fn_c_try_link "$LINENO"; then :
  9474. ac_cv_lib_svld_dlopen=yes
  9475. else
  9476. ac_cv_lib_svld_dlopen=no
  9477. fi
  9478. rm -f core conftest.err conftest.$ac_objext \
  9479. conftest$ac_exeext conftest.$ac_ext
  9480. LIBS=$ac_check_lib_save_LIBS
  9481. fi
  9482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9483. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9484. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9485. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9486. else
  9487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9488. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9489. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9490. $as_echo_n "(cached) " >&6
  9491. else
  9492. ac_check_lib_save_LIBS=$LIBS
  9493. LIBS="-ldld $LIBS"
  9494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9495. /* end confdefs.h. */
  9496. /* Override any GCC internal prototype to avoid an error.
  9497. Use char because int might match the return type of a GCC
  9498. builtin and then its argument prototype would still apply. */
  9499. #ifdef __cplusplus
  9500. extern "C"
  9501. #endif
  9502. char dld_link ();
  9503. int
  9504. main ()
  9505. {
  9506. return dld_link ();
  9507. ;
  9508. return 0;
  9509. }
  9510. _ACEOF
  9511. if ac_fn_c_try_link "$LINENO"; then :
  9512. ac_cv_lib_dld_dld_link=yes
  9513. else
  9514. ac_cv_lib_dld_dld_link=no
  9515. fi
  9516. rm -f core conftest.err conftest.$ac_objext \
  9517. conftest$ac_exeext conftest.$ac_ext
  9518. LIBS=$ac_check_lib_save_LIBS
  9519. fi
  9520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9521. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9522. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9523. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9524. fi
  9525. fi
  9526. fi
  9527. fi
  9528. fi
  9529. fi
  9530. ;;
  9531. esac
  9532. if test "x$lt_cv_dlopen" != xno; then
  9533. enable_dlopen=yes
  9534. else
  9535. enable_dlopen=no
  9536. fi
  9537. case $lt_cv_dlopen in
  9538. dlopen)
  9539. save_CPPFLAGS="$CPPFLAGS"
  9540. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9541. save_LDFLAGS="$LDFLAGS"
  9542. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9543. save_LIBS="$LIBS"
  9544. LIBS="$lt_cv_dlopen_libs $LIBS"
  9545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9546. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9547. if ${lt_cv_dlopen_self+:} false; then :
  9548. $as_echo_n "(cached) " >&6
  9549. else
  9550. if test "$cross_compiling" = yes; then :
  9551. lt_cv_dlopen_self=cross
  9552. else
  9553. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9554. lt_status=$lt_dlunknown
  9555. cat > conftest.$ac_ext <<_LT_EOF
  9556. #line $LINENO "configure"
  9557. #include "confdefs.h"
  9558. #if HAVE_DLFCN_H
  9559. #include <dlfcn.h>
  9560. #endif
  9561. #include <stdio.h>
  9562. #ifdef RTLD_GLOBAL
  9563. # define LT_DLGLOBAL RTLD_GLOBAL
  9564. #else
  9565. # ifdef DL_GLOBAL
  9566. # define LT_DLGLOBAL DL_GLOBAL
  9567. # else
  9568. # define LT_DLGLOBAL 0
  9569. # endif
  9570. #endif
  9571. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9572. find out it does not work in some platform. */
  9573. #ifndef LT_DLLAZY_OR_NOW
  9574. # ifdef RTLD_LAZY
  9575. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9576. # else
  9577. # ifdef DL_LAZY
  9578. # define LT_DLLAZY_OR_NOW DL_LAZY
  9579. # else
  9580. # ifdef RTLD_NOW
  9581. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9582. # else
  9583. # ifdef DL_NOW
  9584. # define LT_DLLAZY_OR_NOW DL_NOW
  9585. # else
  9586. # define LT_DLLAZY_OR_NOW 0
  9587. # endif
  9588. # endif
  9589. # endif
  9590. # endif
  9591. #endif
  9592. /* When -fvisbility=hidden is used, assume the code has been annotated
  9593. correspondingly for the symbols needed. */
  9594. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9595. int fnord () __attribute__((visibility("default")));
  9596. #endif
  9597. int fnord () { return 42; }
  9598. int main ()
  9599. {
  9600. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9601. int status = $lt_dlunknown;
  9602. if (self)
  9603. {
  9604. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9605. else
  9606. {
  9607. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9608. else puts (dlerror ());
  9609. }
  9610. /* dlclose (self); */
  9611. }
  9612. else
  9613. puts (dlerror ());
  9614. return status;
  9615. }
  9616. _LT_EOF
  9617. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9618. (eval $ac_link) 2>&5
  9619. ac_status=$?
  9620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9621. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9622. (./conftest; exit; ) >&5 2>/dev/null
  9623. lt_status=$?
  9624. case x$lt_status in
  9625. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9626. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9627. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9628. esac
  9629. else :
  9630. # compilation failed
  9631. lt_cv_dlopen_self=no
  9632. fi
  9633. fi
  9634. rm -fr conftest*
  9635. fi
  9636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9637. $as_echo "$lt_cv_dlopen_self" >&6; }
  9638. if test "x$lt_cv_dlopen_self" = xyes; then
  9639. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9641. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9642. if ${lt_cv_dlopen_self_static+:} false; then :
  9643. $as_echo_n "(cached) " >&6
  9644. else
  9645. if test "$cross_compiling" = yes; then :
  9646. lt_cv_dlopen_self_static=cross
  9647. else
  9648. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9649. lt_status=$lt_dlunknown
  9650. cat > conftest.$ac_ext <<_LT_EOF
  9651. #line $LINENO "configure"
  9652. #include "confdefs.h"
  9653. #if HAVE_DLFCN_H
  9654. #include <dlfcn.h>
  9655. #endif
  9656. #include <stdio.h>
  9657. #ifdef RTLD_GLOBAL
  9658. # define LT_DLGLOBAL RTLD_GLOBAL
  9659. #else
  9660. # ifdef DL_GLOBAL
  9661. # define LT_DLGLOBAL DL_GLOBAL
  9662. # else
  9663. # define LT_DLGLOBAL 0
  9664. # endif
  9665. #endif
  9666. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9667. find out it does not work in some platform. */
  9668. #ifndef LT_DLLAZY_OR_NOW
  9669. # ifdef RTLD_LAZY
  9670. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9671. # else
  9672. # ifdef DL_LAZY
  9673. # define LT_DLLAZY_OR_NOW DL_LAZY
  9674. # else
  9675. # ifdef RTLD_NOW
  9676. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9677. # else
  9678. # ifdef DL_NOW
  9679. # define LT_DLLAZY_OR_NOW DL_NOW
  9680. # else
  9681. # define LT_DLLAZY_OR_NOW 0
  9682. # endif
  9683. # endif
  9684. # endif
  9685. # endif
  9686. #endif
  9687. /* When -fvisbility=hidden is used, assume the code has been annotated
  9688. correspondingly for the symbols needed. */
  9689. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9690. int fnord () __attribute__((visibility("default")));
  9691. #endif
  9692. int fnord () { return 42; }
  9693. int main ()
  9694. {
  9695. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9696. int status = $lt_dlunknown;
  9697. if (self)
  9698. {
  9699. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9700. else
  9701. {
  9702. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9703. else puts (dlerror ());
  9704. }
  9705. /* dlclose (self); */
  9706. }
  9707. else
  9708. puts (dlerror ());
  9709. return status;
  9710. }
  9711. _LT_EOF
  9712. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9713. (eval $ac_link) 2>&5
  9714. ac_status=$?
  9715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9716. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9717. (./conftest; exit; ) >&5 2>/dev/null
  9718. lt_status=$?
  9719. case x$lt_status in
  9720. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9721. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9722. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9723. esac
  9724. else :
  9725. # compilation failed
  9726. lt_cv_dlopen_self_static=no
  9727. fi
  9728. fi
  9729. rm -fr conftest*
  9730. fi
  9731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9732. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9733. fi
  9734. CPPFLAGS="$save_CPPFLAGS"
  9735. LDFLAGS="$save_LDFLAGS"
  9736. LIBS="$save_LIBS"
  9737. ;;
  9738. esac
  9739. case $lt_cv_dlopen_self in
  9740. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9741. *) enable_dlopen_self=unknown ;;
  9742. esac
  9743. case $lt_cv_dlopen_self_static in
  9744. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9745. *) enable_dlopen_self_static=unknown ;;
  9746. esac
  9747. fi
  9748. striplib=
  9749. old_striplib=
  9750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9751. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9752. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9753. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9754. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9756. $as_echo "yes" >&6; }
  9757. else
  9758. # FIXME - insert some real tests, host_os isn't really good enough
  9759. case $host_os in
  9760. darwin*)
  9761. if test -n "$STRIP" ; then
  9762. striplib="$STRIP -x"
  9763. old_striplib="$STRIP -S"
  9764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9765. $as_echo "yes" >&6; }
  9766. else
  9767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9768. $as_echo "no" >&6; }
  9769. fi
  9770. ;;
  9771. *)
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9773. $as_echo "no" >&6; }
  9774. ;;
  9775. esac
  9776. fi
  9777. # Report which library types will actually be built
  9778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9779. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9781. $as_echo "$can_build_shared" >&6; }
  9782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9783. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9784. test "$can_build_shared" = "no" && enable_shared=no
  9785. # On AIX, shared libraries and static libraries use the same namespace, and
  9786. # are all built from PIC.
  9787. case $host_os in
  9788. aix3*)
  9789. test "$enable_shared" = yes && enable_static=no
  9790. if test -n "$RANLIB"; then
  9791. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9792. postinstall_cmds='$RANLIB $lib'
  9793. fi
  9794. ;;
  9795. aix[4-9]*)
  9796. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9797. test "$enable_shared" = yes && enable_static=no
  9798. fi
  9799. ;;
  9800. esac
  9801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9802. $as_echo "$enable_shared" >&6; }
  9803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9804. $as_echo_n "checking whether to build static libraries... " >&6; }
  9805. # Make sure either enable_shared or enable_static is yes.
  9806. test "$enable_shared" = yes || enable_static=yes
  9807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9808. $as_echo "$enable_static" >&6; }
  9809. fi
  9810. ac_ext=c
  9811. ac_cpp='$CPP $CPPFLAGS'
  9812. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9813. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9814. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9815. CC="$lt_save_CC"
  9816. ac_config_commands="$ac_config_commands libtool"
  9817. # Only expand once:
  9818. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9819. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9820. LT_REVISION=$SDL_INTERFACE_AGE
  9821. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9822. ac_ext=c
  9823. ac_cpp='$CPP $CPPFLAGS'
  9824. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9825. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9826. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9827. if test -n "$ac_tool_prefix"; then
  9828. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9829. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9831. $as_echo_n "checking for $ac_word... " >&6; }
  9832. if ${ac_cv_prog_CC+:} false; then :
  9833. $as_echo_n "(cached) " >&6
  9834. else
  9835. if test -n "$CC"; then
  9836. ac_cv_prog_CC="$CC" # Let the user override the test.
  9837. else
  9838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9839. for as_dir in $PATH
  9840. do
  9841. IFS=$as_save_IFS
  9842. test -z "$as_dir" && as_dir=.
  9843. for ac_exec_ext in '' $ac_executable_extensions; do
  9844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9845. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9847. break 2
  9848. fi
  9849. done
  9850. done
  9851. IFS=$as_save_IFS
  9852. fi
  9853. fi
  9854. CC=$ac_cv_prog_CC
  9855. if test -n "$CC"; then
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9857. $as_echo "$CC" >&6; }
  9858. else
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9860. $as_echo "no" >&6; }
  9861. fi
  9862. fi
  9863. if test -z "$ac_cv_prog_CC"; then
  9864. ac_ct_CC=$CC
  9865. # Extract the first word of "gcc", so it can be a program name with args.
  9866. set dummy gcc; ac_word=$2
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9868. $as_echo_n "checking for $ac_word... " >&6; }
  9869. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9870. $as_echo_n "(cached) " >&6
  9871. else
  9872. if test -n "$ac_ct_CC"; then
  9873. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9874. else
  9875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9876. for as_dir in $PATH
  9877. do
  9878. IFS=$as_save_IFS
  9879. test -z "$as_dir" && as_dir=.
  9880. for ac_exec_ext in '' $ac_executable_extensions; do
  9881. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9882. ac_cv_prog_ac_ct_CC="gcc"
  9883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9884. break 2
  9885. fi
  9886. done
  9887. done
  9888. IFS=$as_save_IFS
  9889. fi
  9890. fi
  9891. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9892. if test -n "$ac_ct_CC"; then
  9893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9894. $as_echo "$ac_ct_CC" >&6; }
  9895. else
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9897. $as_echo "no" >&6; }
  9898. fi
  9899. if test "x$ac_ct_CC" = x; then
  9900. CC=""
  9901. else
  9902. case $cross_compiling:$ac_tool_warned in
  9903. yes:)
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9905. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9906. ac_tool_warned=yes ;;
  9907. esac
  9908. CC=$ac_ct_CC
  9909. fi
  9910. else
  9911. CC="$ac_cv_prog_CC"
  9912. fi
  9913. if test -z "$CC"; then
  9914. if test -n "$ac_tool_prefix"; then
  9915. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9916. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9918. $as_echo_n "checking for $ac_word... " >&6; }
  9919. if ${ac_cv_prog_CC+:} false; then :
  9920. $as_echo_n "(cached) " >&6
  9921. else
  9922. if test -n "$CC"; then
  9923. ac_cv_prog_CC="$CC" # Let the user override the test.
  9924. else
  9925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9926. for as_dir in $PATH
  9927. do
  9928. IFS=$as_save_IFS
  9929. test -z "$as_dir" && as_dir=.
  9930. for ac_exec_ext in '' $ac_executable_extensions; do
  9931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9932. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9934. break 2
  9935. fi
  9936. done
  9937. done
  9938. IFS=$as_save_IFS
  9939. fi
  9940. fi
  9941. CC=$ac_cv_prog_CC
  9942. if test -n "$CC"; then
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9944. $as_echo "$CC" >&6; }
  9945. else
  9946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9947. $as_echo "no" >&6; }
  9948. fi
  9949. fi
  9950. fi
  9951. if test -z "$CC"; then
  9952. # Extract the first word of "cc", so it can be a program name with args.
  9953. set dummy cc; ac_word=$2
  9954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9955. $as_echo_n "checking for $ac_word... " >&6; }
  9956. if ${ac_cv_prog_CC+:} false; then :
  9957. $as_echo_n "(cached) " >&6
  9958. else
  9959. if test -n "$CC"; then
  9960. ac_cv_prog_CC="$CC" # Let the user override the test.
  9961. else
  9962. ac_prog_rejected=no
  9963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9964. for as_dir in $PATH
  9965. do
  9966. IFS=$as_save_IFS
  9967. test -z "$as_dir" && as_dir=.
  9968. for ac_exec_ext in '' $ac_executable_extensions; do
  9969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9970. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9971. ac_prog_rejected=yes
  9972. continue
  9973. fi
  9974. ac_cv_prog_CC="cc"
  9975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9976. break 2
  9977. fi
  9978. done
  9979. done
  9980. IFS=$as_save_IFS
  9981. if test $ac_prog_rejected = yes; then
  9982. # We found a bogon in the path, so make sure we never use it.
  9983. set dummy $ac_cv_prog_CC
  9984. shift
  9985. if test $# != 0; then
  9986. # We chose a different compiler from the bogus one.
  9987. # However, it has the same basename, so the bogon will be chosen
  9988. # first if we set CC to just the basename; use the full file name.
  9989. shift
  9990. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9991. fi
  9992. fi
  9993. fi
  9994. fi
  9995. CC=$ac_cv_prog_CC
  9996. if test -n "$CC"; then
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9998. $as_echo "$CC" >&6; }
  9999. else
  10000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10001. $as_echo "no" >&6; }
  10002. fi
  10003. fi
  10004. if test -z "$CC"; then
  10005. if test -n "$ac_tool_prefix"; then
  10006. for ac_prog in cl.exe
  10007. do
  10008. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10009. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10011. $as_echo_n "checking for $ac_word... " >&6; }
  10012. if ${ac_cv_prog_CC+:} false; then :
  10013. $as_echo_n "(cached) " >&6
  10014. else
  10015. if test -n "$CC"; then
  10016. ac_cv_prog_CC="$CC" # Let the user override the test.
  10017. else
  10018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10019. for as_dir in $PATH
  10020. do
  10021. IFS=$as_save_IFS
  10022. test -z "$as_dir" && as_dir=.
  10023. for ac_exec_ext in '' $ac_executable_extensions; do
  10024. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10025. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10026. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10027. break 2
  10028. fi
  10029. done
  10030. done
  10031. IFS=$as_save_IFS
  10032. fi
  10033. fi
  10034. CC=$ac_cv_prog_CC
  10035. if test -n "$CC"; then
  10036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10037. $as_echo "$CC" >&6; }
  10038. else
  10039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10040. $as_echo "no" >&6; }
  10041. fi
  10042. test -n "$CC" && break
  10043. done
  10044. fi
  10045. if test -z "$CC"; then
  10046. ac_ct_CC=$CC
  10047. for ac_prog in cl.exe
  10048. do
  10049. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10050. set dummy $ac_prog; ac_word=$2
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10052. $as_echo_n "checking for $ac_word... " >&6; }
  10053. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10054. $as_echo_n "(cached) " >&6
  10055. else
  10056. if test -n "$ac_ct_CC"; then
  10057. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10058. else
  10059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10060. for as_dir in $PATH
  10061. do
  10062. IFS=$as_save_IFS
  10063. test -z "$as_dir" && as_dir=.
  10064. for ac_exec_ext in '' $ac_executable_extensions; do
  10065. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10066. ac_cv_prog_ac_ct_CC="$ac_prog"
  10067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10068. break 2
  10069. fi
  10070. done
  10071. done
  10072. IFS=$as_save_IFS
  10073. fi
  10074. fi
  10075. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10076. if test -n "$ac_ct_CC"; then
  10077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10078. $as_echo "$ac_ct_CC" >&6; }
  10079. else
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10081. $as_echo "no" >&6; }
  10082. fi
  10083. test -n "$ac_ct_CC" && break
  10084. done
  10085. if test "x$ac_ct_CC" = x; then
  10086. CC=""
  10087. else
  10088. case $cross_compiling:$ac_tool_warned in
  10089. yes:)
  10090. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10091. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10092. ac_tool_warned=yes ;;
  10093. esac
  10094. CC=$ac_ct_CC
  10095. fi
  10096. fi
  10097. fi
  10098. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10099. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10100. as_fn_error $? "no acceptable C compiler found in \$PATH
  10101. See \`config.log' for more details" "$LINENO" 5; }
  10102. # Provide some information about the compiler.
  10103. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10104. set X $ac_compile
  10105. ac_compiler=$2
  10106. for ac_option in --version -v -V -qversion; do
  10107. { { ac_try="$ac_compiler $ac_option >&5"
  10108. case "(($ac_try" in
  10109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10110. *) ac_try_echo=$ac_try;;
  10111. esac
  10112. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10113. $as_echo "$ac_try_echo"; } >&5
  10114. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10115. ac_status=$?
  10116. if test -s conftest.err; then
  10117. sed '10a\
  10118. ... rest of stderr output deleted ...
  10119. 10q' conftest.err >conftest.er1
  10120. cat conftest.er1 >&5
  10121. fi
  10122. rm -f conftest.er1 conftest.err
  10123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10124. test $ac_status = 0; }
  10125. done
  10126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10127. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10128. if ${ac_cv_c_compiler_gnu+:} false; then :
  10129. $as_echo_n "(cached) " >&6
  10130. else
  10131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10132. /* end confdefs.h. */
  10133. int
  10134. main ()
  10135. {
  10136. #ifndef __GNUC__
  10137. choke me
  10138. #endif
  10139. ;
  10140. return 0;
  10141. }
  10142. _ACEOF
  10143. if ac_fn_c_try_compile "$LINENO"; then :
  10144. ac_compiler_gnu=yes
  10145. else
  10146. ac_compiler_gnu=no
  10147. fi
  10148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10149. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10150. fi
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10152. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10153. if test $ac_compiler_gnu = yes; then
  10154. GCC=yes
  10155. else
  10156. GCC=
  10157. fi
  10158. ac_test_CFLAGS=${CFLAGS+set}
  10159. ac_save_CFLAGS=$CFLAGS
  10160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10161. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10162. if ${ac_cv_prog_cc_g+:} false; then :
  10163. $as_echo_n "(cached) " >&6
  10164. else
  10165. ac_save_c_werror_flag=$ac_c_werror_flag
  10166. ac_c_werror_flag=yes
  10167. ac_cv_prog_cc_g=no
  10168. CFLAGS="-g"
  10169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10170. /* end confdefs.h. */
  10171. int
  10172. main ()
  10173. {
  10174. ;
  10175. return 0;
  10176. }
  10177. _ACEOF
  10178. if ac_fn_c_try_compile "$LINENO"; then :
  10179. ac_cv_prog_cc_g=yes
  10180. else
  10181. CFLAGS=""
  10182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10183. /* end confdefs.h. */
  10184. int
  10185. main ()
  10186. {
  10187. ;
  10188. return 0;
  10189. }
  10190. _ACEOF
  10191. if ac_fn_c_try_compile "$LINENO"; then :
  10192. else
  10193. ac_c_werror_flag=$ac_save_c_werror_flag
  10194. CFLAGS="-g"
  10195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10196. /* end confdefs.h. */
  10197. int
  10198. main ()
  10199. {
  10200. ;
  10201. return 0;
  10202. }
  10203. _ACEOF
  10204. if ac_fn_c_try_compile "$LINENO"; then :
  10205. ac_cv_prog_cc_g=yes
  10206. fi
  10207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10208. fi
  10209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10210. fi
  10211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10212. ac_c_werror_flag=$ac_save_c_werror_flag
  10213. fi
  10214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10215. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10216. if test "$ac_test_CFLAGS" = set; then
  10217. CFLAGS=$ac_save_CFLAGS
  10218. elif test $ac_cv_prog_cc_g = yes; then
  10219. if test "$GCC" = yes; then
  10220. CFLAGS="-g -O2"
  10221. else
  10222. CFLAGS="-g"
  10223. fi
  10224. else
  10225. if test "$GCC" = yes; then
  10226. CFLAGS="-O2"
  10227. else
  10228. CFLAGS=
  10229. fi
  10230. fi
  10231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10232. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10233. if ${ac_cv_prog_cc_c89+:} false; then :
  10234. $as_echo_n "(cached) " >&6
  10235. else
  10236. ac_cv_prog_cc_c89=no
  10237. ac_save_CC=$CC
  10238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10239. /* end confdefs.h. */
  10240. #include <stdarg.h>
  10241. #include <stdio.h>
  10242. struct stat;
  10243. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10244. struct buf { int x; };
  10245. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10246. static char *e (p, i)
  10247. char **p;
  10248. int i;
  10249. {
  10250. return p[i];
  10251. }
  10252. static char *f (char * (*g) (char **, int), char **p, ...)
  10253. {
  10254. char *s;
  10255. va_list v;
  10256. va_start (v,p);
  10257. s = g (p, va_arg (v,int));
  10258. va_end (v);
  10259. return s;
  10260. }
  10261. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10262. function prototypes and stuff, but not '\xHH' hex character constants.
  10263. These don't provoke an error unfortunately, instead are silently treated
  10264. as 'x'. The following induces an error, until -std is added to get
  10265. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10266. array size at least. It's necessary to write '\x00'==0 to get something
  10267. that's true only with -std. */
  10268. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10269. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10270. inside strings and character constants. */
  10271. #define FOO(x) 'x'
  10272. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10273. int test (int i, double x);
  10274. struct s1 {int (*f) (int a);};
  10275. struct s2 {int (*f) (double a);};
  10276. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10277. int argc;
  10278. char **argv;
  10279. int
  10280. main ()
  10281. {
  10282. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10283. ;
  10284. return 0;
  10285. }
  10286. _ACEOF
  10287. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10288. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10289. do
  10290. CC="$ac_save_CC $ac_arg"
  10291. if ac_fn_c_try_compile "$LINENO"; then :
  10292. ac_cv_prog_cc_c89=$ac_arg
  10293. fi
  10294. rm -f core conftest.err conftest.$ac_objext
  10295. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10296. done
  10297. rm -f conftest.$ac_ext
  10298. CC=$ac_save_CC
  10299. fi
  10300. # AC_CACHE_VAL
  10301. case "x$ac_cv_prog_cc_c89" in
  10302. x)
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10304. $as_echo "none needed" >&6; } ;;
  10305. xno)
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10307. $as_echo "unsupported" >&6; } ;;
  10308. *)
  10309. CC="$CC $ac_cv_prog_cc_c89"
  10310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10311. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10312. esac
  10313. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10314. fi
  10315. ac_ext=c
  10316. ac_cpp='$CPP $CPPFLAGS'
  10317. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10318. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10319. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10320. ac_ext=cpp
  10321. ac_cpp='$CXXCPP $CPPFLAGS'
  10322. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10323. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10324. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10325. if test -z "$CXX"; then
  10326. if test -n "$CCC"; then
  10327. CXX=$CCC
  10328. else
  10329. if test -n "$ac_tool_prefix"; then
  10330. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10331. do
  10332. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10333. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10335. $as_echo_n "checking for $ac_word... " >&6; }
  10336. if ${ac_cv_prog_CXX+:} false; then :
  10337. $as_echo_n "(cached) " >&6
  10338. else
  10339. if test -n "$CXX"; then
  10340. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10341. else
  10342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10343. for as_dir in $PATH
  10344. do
  10345. IFS=$as_save_IFS
  10346. test -z "$as_dir" && as_dir=.
  10347. for ac_exec_ext in '' $ac_executable_extensions; do
  10348. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10349. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10351. break 2
  10352. fi
  10353. done
  10354. done
  10355. IFS=$as_save_IFS
  10356. fi
  10357. fi
  10358. CXX=$ac_cv_prog_CXX
  10359. if test -n "$CXX"; then
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10361. $as_echo "$CXX" >&6; }
  10362. else
  10363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10364. $as_echo "no" >&6; }
  10365. fi
  10366. test -n "$CXX" && break
  10367. done
  10368. fi
  10369. if test -z "$CXX"; then
  10370. ac_ct_CXX=$CXX
  10371. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10372. do
  10373. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10374. set dummy $ac_prog; ac_word=$2
  10375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10376. $as_echo_n "checking for $ac_word... " >&6; }
  10377. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10378. $as_echo_n "(cached) " >&6
  10379. else
  10380. if test -n "$ac_ct_CXX"; then
  10381. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10382. else
  10383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10384. for as_dir in $PATH
  10385. do
  10386. IFS=$as_save_IFS
  10387. test -z "$as_dir" && as_dir=.
  10388. for ac_exec_ext in '' $ac_executable_extensions; do
  10389. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10390. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10392. break 2
  10393. fi
  10394. done
  10395. done
  10396. IFS=$as_save_IFS
  10397. fi
  10398. fi
  10399. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10400. if test -n "$ac_ct_CXX"; then
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10402. $as_echo "$ac_ct_CXX" >&6; }
  10403. else
  10404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10405. $as_echo "no" >&6; }
  10406. fi
  10407. test -n "$ac_ct_CXX" && break
  10408. done
  10409. if test "x$ac_ct_CXX" = x; then
  10410. CXX="g++"
  10411. else
  10412. case $cross_compiling:$ac_tool_warned in
  10413. yes:)
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10415. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10416. ac_tool_warned=yes ;;
  10417. esac
  10418. CXX=$ac_ct_CXX
  10419. fi
  10420. fi
  10421. fi
  10422. fi
  10423. # Provide some information about the compiler.
  10424. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10425. set X $ac_compile
  10426. ac_compiler=$2
  10427. for ac_option in --version -v -V -qversion; do
  10428. { { ac_try="$ac_compiler $ac_option >&5"
  10429. case "(($ac_try" in
  10430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10431. *) ac_try_echo=$ac_try;;
  10432. esac
  10433. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10434. $as_echo "$ac_try_echo"; } >&5
  10435. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10436. ac_status=$?
  10437. if test -s conftest.err; then
  10438. sed '10a\
  10439. ... rest of stderr output deleted ...
  10440. 10q' conftest.err >conftest.er1
  10441. cat conftest.er1 >&5
  10442. fi
  10443. rm -f conftest.er1 conftest.err
  10444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10445. test $ac_status = 0; }
  10446. done
  10447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10448. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10449. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10450. $as_echo_n "(cached) " >&6
  10451. else
  10452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10453. /* end confdefs.h. */
  10454. int
  10455. main ()
  10456. {
  10457. #ifndef __GNUC__
  10458. choke me
  10459. #endif
  10460. ;
  10461. return 0;
  10462. }
  10463. _ACEOF
  10464. if ac_fn_cxx_try_compile "$LINENO"; then :
  10465. ac_compiler_gnu=yes
  10466. else
  10467. ac_compiler_gnu=no
  10468. fi
  10469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10470. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10471. fi
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10473. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10474. if test $ac_compiler_gnu = yes; then
  10475. GXX=yes
  10476. else
  10477. GXX=
  10478. fi
  10479. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10480. ac_save_CXXFLAGS=$CXXFLAGS
  10481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10482. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10483. if ${ac_cv_prog_cxx_g+:} false; then :
  10484. $as_echo_n "(cached) " >&6
  10485. else
  10486. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10487. ac_cxx_werror_flag=yes
  10488. ac_cv_prog_cxx_g=no
  10489. CXXFLAGS="-g"
  10490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10491. /* end confdefs.h. */
  10492. int
  10493. main ()
  10494. {
  10495. ;
  10496. return 0;
  10497. }
  10498. _ACEOF
  10499. if ac_fn_cxx_try_compile "$LINENO"; then :
  10500. ac_cv_prog_cxx_g=yes
  10501. else
  10502. CXXFLAGS=""
  10503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10504. /* end confdefs.h. */
  10505. int
  10506. main ()
  10507. {
  10508. ;
  10509. return 0;
  10510. }
  10511. _ACEOF
  10512. if ac_fn_cxx_try_compile "$LINENO"; then :
  10513. else
  10514. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10515. CXXFLAGS="-g"
  10516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10517. /* end confdefs.h. */
  10518. int
  10519. main ()
  10520. {
  10521. ;
  10522. return 0;
  10523. }
  10524. _ACEOF
  10525. if ac_fn_cxx_try_compile "$LINENO"; then :
  10526. ac_cv_prog_cxx_g=yes
  10527. fi
  10528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10529. fi
  10530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10531. fi
  10532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10533. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10534. fi
  10535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10536. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10537. if test "$ac_test_CXXFLAGS" = set; then
  10538. CXXFLAGS=$ac_save_CXXFLAGS
  10539. elif test $ac_cv_prog_cxx_g = yes; then
  10540. if test "$GXX" = yes; then
  10541. CXXFLAGS="-g -O2"
  10542. else
  10543. CXXFLAGS="-g"
  10544. fi
  10545. else
  10546. if test "$GXX" = yes; then
  10547. CXXFLAGS="-O2"
  10548. else
  10549. CXXFLAGS=
  10550. fi
  10551. fi
  10552. ac_ext=c
  10553. ac_cpp='$CPP $CPPFLAGS'
  10554. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10555. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10556. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10557. func_stripname_cnf ()
  10558. {
  10559. case ${2} in
  10560. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10561. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10562. esac
  10563. } # func_stripname_cnf
  10564. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10565. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10566. (test "X$CXX" != "Xg++"))) ; then
  10567. ac_ext=cpp
  10568. ac_cpp='$CXXCPP $CPPFLAGS'
  10569. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10570. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10571. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10573. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10574. if test -z "$CXXCPP"; then
  10575. if ${ac_cv_prog_CXXCPP+:} false; then :
  10576. $as_echo_n "(cached) " >&6
  10577. else
  10578. # Double quotes because CXXCPP needs to be expanded
  10579. for CXXCPP in "$CXX -E" "/lib/cpp"
  10580. do
  10581. ac_preproc_ok=false
  10582. for ac_cxx_preproc_warn_flag in '' yes
  10583. do
  10584. # Use a header file that comes with gcc, so configuring glibc
  10585. # with a fresh cross-compiler works.
  10586. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10587. # <limits.h> exists even on freestanding compilers.
  10588. # On the NeXT, cc -E runs the code through the compiler's parser,
  10589. # not just through cpp. "Syntax error" is here to catch this case.
  10590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10591. /* end confdefs.h. */
  10592. #ifdef __STDC__
  10593. # include <limits.h>
  10594. #else
  10595. # include <assert.h>
  10596. #endif
  10597. Syntax error
  10598. _ACEOF
  10599. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10600. else
  10601. # Broken: fails on valid input.
  10602. continue
  10603. fi
  10604. rm -f conftest.err conftest.i conftest.$ac_ext
  10605. # OK, works on sane cases. Now check whether nonexistent headers
  10606. # can be detected and how.
  10607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10608. /* end confdefs.h. */
  10609. #include <ac_nonexistent.h>
  10610. _ACEOF
  10611. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10612. # Broken: success on invalid input.
  10613. continue
  10614. else
  10615. # Passes both tests.
  10616. ac_preproc_ok=:
  10617. break
  10618. fi
  10619. rm -f conftest.err conftest.i conftest.$ac_ext
  10620. done
  10621. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10622. rm -f conftest.i conftest.err conftest.$ac_ext
  10623. if $ac_preproc_ok; then :
  10624. break
  10625. fi
  10626. done
  10627. ac_cv_prog_CXXCPP=$CXXCPP
  10628. fi
  10629. CXXCPP=$ac_cv_prog_CXXCPP
  10630. else
  10631. ac_cv_prog_CXXCPP=$CXXCPP
  10632. fi
  10633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10634. $as_echo "$CXXCPP" >&6; }
  10635. ac_preproc_ok=false
  10636. for ac_cxx_preproc_warn_flag in '' yes
  10637. do
  10638. # Use a header file that comes with gcc, so configuring glibc
  10639. # with a fresh cross-compiler works.
  10640. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10641. # <limits.h> exists even on freestanding compilers.
  10642. # On the NeXT, cc -E runs the code through the compiler's parser,
  10643. # not just through cpp. "Syntax error" is here to catch this case.
  10644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10645. /* end confdefs.h. */
  10646. #ifdef __STDC__
  10647. # include <limits.h>
  10648. #else
  10649. # include <assert.h>
  10650. #endif
  10651. Syntax error
  10652. _ACEOF
  10653. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10654. else
  10655. # Broken: fails on valid input.
  10656. continue
  10657. fi
  10658. rm -f conftest.err conftest.i conftest.$ac_ext
  10659. # OK, works on sane cases. Now check whether nonexistent headers
  10660. # can be detected and how.
  10661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10662. /* end confdefs.h. */
  10663. #include <ac_nonexistent.h>
  10664. _ACEOF
  10665. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10666. # Broken: success on invalid input.
  10667. continue
  10668. else
  10669. # Passes both tests.
  10670. ac_preproc_ok=:
  10671. break
  10672. fi
  10673. rm -f conftest.err conftest.i conftest.$ac_ext
  10674. done
  10675. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10676. rm -f conftest.i conftest.err conftest.$ac_ext
  10677. if $ac_preproc_ok; then :
  10678. else
  10679. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10680. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10681. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10682. See \`config.log' for more details" "$LINENO" 5; }
  10683. fi
  10684. ac_ext=c
  10685. ac_cpp='$CPP $CPPFLAGS'
  10686. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10687. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10688. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10689. else
  10690. _lt_caught_CXX_error=yes
  10691. fi
  10692. ac_ext=cpp
  10693. ac_cpp='$CXXCPP $CPPFLAGS'
  10694. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10695. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10696. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10697. archive_cmds_need_lc_CXX=no
  10698. allow_undefined_flag_CXX=
  10699. always_export_symbols_CXX=no
  10700. archive_expsym_cmds_CXX=
  10701. compiler_needs_object_CXX=no
  10702. export_dynamic_flag_spec_CXX=
  10703. hardcode_direct_CXX=no
  10704. hardcode_direct_absolute_CXX=no
  10705. hardcode_libdir_flag_spec_CXX=
  10706. hardcode_libdir_separator_CXX=
  10707. hardcode_minus_L_CXX=no
  10708. hardcode_shlibpath_var_CXX=unsupported
  10709. hardcode_automatic_CXX=no
  10710. inherit_rpath_CXX=no
  10711. module_cmds_CXX=
  10712. module_expsym_cmds_CXX=
  10713. link_all_deplibs_CXX=unknown
  10714. old_archive_cmds_CXX=$old_archive_cmds
  10715. reload_flag_CXX=$reload_flag
  10716. reload_cmds_CXX=$reload_cmds
  10717. no_undefined_flag_CXX=
  10718. whole_archive_flag_spec_CXX=
  10719. enable_shared_with_static_runtimes_CXX=no
  10720. # Source file extension for C++ test sources.
  10721. ac_ext=cpp
  10722. # Object file extension for compiled C++ test sources.
  10723. objext=o
  10724. objext_CXX=$objext
  10725. # No sense in running all these tests if we already determined that
  10726. # the CXX compiler isn't working. Some variables (like enable_shared)
  10727. # are currently assumed to apply to all compilers on this platform,
  10728. # and will be corrupted by setting them based on a non-working compiler.
  10729. if test "$_lt_caught_CXX_error" != yes; then
  10730. # Code to be used in simple compile tests
  10731. lt_simple_compile_test_code="int some_variable = 0;"
  10732. # Code to be used in simple link tests
  10733. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10734. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10735. # If no C compiler was specified, use CC.
  10736. LTCC=${LTCC-"$CC"}
  10737. # If no C compiler flags were specified, use CFLAGS.
  10738. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10739. # Allow CC to be a program name with arguments.
  10740. compiler=$CC
  10741. # save warnings/boilerplate of simple test code
  10742. ac_outfile=conftest.$ac_objext
  10743. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10744. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10745. _lt_compiler_boilerplate=`cat conftest.err`
  10746. $RM conftest*
  10747. ac_outfile=conftest.$ac_objext
  10748. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10749. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10750. _lt_linker_boilerplate=`cat conftest.err`
  10751. $RM -r conftest*
  10752. # Allow CC to be a program name with arguments.
  10753. lt_save_CC=$CC
  10754. lt_save_CFLAGS=$CFLAGS
  10755. lt_save_LD=$LD
  10756. lt_save_GCC=$GCC
  10757. GCC=$GXX
  10758. lt_save_with_gnu_ld=$with_gnu_ld
  10759. lt_save_path_LD=$lt_cv_path_LD
  10760. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10761. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10762. else
  10763. $as_unset lt_cv_prog_gnu_ld
  10764. fi
  10765. if test -n "${lt_cv_path_LDCXX+set}"; then
  10766. lt_cv_path_LD=$lt_cv_path_LDCXX
  10767. else
  10768. $as_unset lt_cv_path_LD
  10769. fi
  10770. test -z "${LDCXX+set}" || LD=$LDCXX
  10771. CC=${CXX-"c++"}
  10772. CFLAGS=$CXXFLAGS
  10773. compiler=$CC
  10774. compiler_CXX=$CC
  10775. for cc_temp in $compiler""; do
  10776. case $cc_temp in
  10777. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10778. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10779. \-*) ;;
  10780. *) break;;
  10781. esac
  10782. done
  10783. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10784. if test -n "$compiler"; then
  10785. # We don't want -fno-exception when compiling C++ code, so set the
  10786. # no_builtin_flag separately
  10787. if test "$GXX" = yes; then
  10788. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10789. else
  10790. lt_prog_compiler_no_builtin_flag_CXX=
  10791. fi
  10792. if test "$GXX" = yes; then
  10793. # Set up default GNU C++ configuration
  10794. # Check whether --with-gnu-ld was given.
  10795. if test "${with_gnu_ld+set}" = set; then :
  10796. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10797. else
  10798. with_gnu_ld=no
  10799. fi
  10800. ac_prog=ld
  10801. if test "$GCC" = yes; then
  10802. # Check if gcc -print-prog-name=ld gives a path.
  10803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10804. $as_echo_n "checking for ld used by $CC... " >&6; }
  10805. case $host in
  10806. *-*-mingw*)
  10807. # gcc leaves a trailing carriage return which upsets mingw
  10808. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10809. *)
  10810. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10811. esac
  10812. case $ac_prog in
  10813. # Accept absolute paths.
  10814. [\\/]* | ?:[\\/]*)
  10815. re_direlt='/[^/][^/]*/\.\./'
  10816. # Canonicalize the pathname of ld
  10817. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10818. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10819. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10820. done
  10821. test -z "$LD" && LD="$ac_prog"
  10822. ;;
  10823. "")
  10824. # If it fails, then pretend we aren't using GCC.
  10825. ac_prog=ld
  10826. ;;
  10827. *)
  10828. # If it is relative, then search for the first ld in PATH.
  10829. with_gnu_ld=unknown
  10830. ;;
  10831. esac
  10832. elif test "$with_gnu_ld" = yes; then
  10833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10834. $as_echo_n "checking for GNU ld... " >&6; }
  10835. else
  10836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10837. $as_echo_n "checking for non-GNU ld... " >&6; }
  10838. fi
  10839. if ${lt_cv_path_LD+:} false; then :
  10840. $as_echo_n "(cached) " >&6
  10841. else
  10842. if test -z "$LD"; then
  10843. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10844. for ac_dir in $PATH; do
  10845. IFS="$lt_save_ifs"
  10846. test -z "$ac_dir" && ac_dir=.
  10847. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10848. lt_cv_path_LD="$ac_dir/$ac_prog"
  10849. # Check to see if the program is GNU ld. I'd rather use --version,
  10850. # but apparently some variants of GNU ld only accept -v.
  10851. # Break only if it was the GNU/non-GNU ld that we prefer.
  10852. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10853. *GNU* | *'with BFD'*)
  10854. test "$with_gnu_ld" != no && break
  10855. ;;
  10856. *)
  10857. test "$with_gnu_ld" != yes && break
  10858. ;;
  10859. esac
  10860. fi
  10861. done
  10862. IFS="$lt_save_ifs"
  10863. else
  10864. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10865. fi
  10866. fi
  10867. LD="$lt_cv_path_LD"
  10868. if test -n "$LD"; then
  10869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10870. $as_echo "$LD" >&6; }
  10871. else
  10872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10873. $as_echo "no" >&6; }
  10874. fi
  10875. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10877. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10878. if ${lt_cv_prog_gnu_ld+:} false; then :
  10879. $as_echo_n "(cached) " >&6
  10880. else
  10881. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10882. case `$LD -v 2>&1 </dev/null` in
  10883. *GNU* | *'with BFD'*)
  10884. lt_cv_prog_gnu_ld=yes
  10885. ;;
  10886. *)
  10887. lt_cv_prog_gnu_ld=no
  10888. ;;
  10889. esac
  10890. fi
  10891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10892. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10893. with_gnu_ld=$lt_cv_prog_gnu_ld
  10894. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10895. # archiving commands below assume that GNU ld is being used.
  10896. if test "$with_gnu_ld" = yes; then
  10897. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10898. 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'
  10899. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10900. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10901. # If archive_cmds runs LD, not CC, wlarc should be empty
  10902. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10903. # investigate it a little bit more. (MM)
  10904. wlarc='${wl}'
  10905. # ancient GNU ld didn't support --whole-archive et. al.
  10906. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10907. $GREP 'no-whole-archive' > /dev/null; then
  10908. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10909. else
  10910. whole_archive_flag_spec_CXX=
  10911. fi
  10912. else
  10913. with_gnu_ld=no
  10914. wlarc=
  10915. # A generic and very simple default shared library creation
  10916. # command for GNU C++ for the case where it uses the native
  10917. # linker, instead of GNU ld. If possible, this setting should
  10918. # overridden to take advantage of the native linker features on
  10919. # the platform it is being used on.
  10920. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10921. fi
  10922. # Commands to make compiler produce verbose output that lists
  10923. # what "hidden" libraries, object files and flags are used when
  10924. # linking a shared library.
  10925. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10926. else
  10927. GXX=no
  10928. with_gnu_ld=no
  10929. wlarc=
  10930. fi
  10931. # PORTME: fill in a description of your system's C++ link characteristics
  10932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10933. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10934. ld_shlibs_CXX=yes
  10935. case $host_os in
  10936. aix3*)
  10937. # FIXME: insert proper C++ library support
  10938. ld_shlibs_CXX=no
  10939. ;;
  10940. aix[4-9]*)
  10941. if test "$host_cpu" = ia64; then
  10942. # On IA64, the linker does run time linking by default, so we don't
  10943. # have to do anything special.
  10944. aix_use_runtimelinking=no
  10945. exp_sym_flag='-Bexport'
  10946. no_entry_flag=""
  10947. else
  10948. aix_use_runtimelinking=no
  10949. # Test if we are trying to use run time linking or normal
  10950. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10951. # need to do runtime linking.
  10952. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10953. for ld_flag in $LDFLAGS; do
  10954. case $ld_flag in
  10955. *-brtl*)
  10956. aix_use_runtimelinking=yes
  10957. break
  10958. ;;
  10959. esac
  10960. done
  10961. ;;
  10962. esac
  10963. exp_sym_flag='-bexport'
  10964. no_entry_flag='-bnoentry'
  10965. fi
  10966. # When large executables or shared objects are built, AIX ld can
  10967. # have problems creating the table of contents. If linking a library
  10968. # or program results in "error TOC overflow" add -mminimal-toc to
  10969. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10970. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10971. archive_cmds_CXX=''
  10972. hardcode_direct_CXX=yes
  10973. hardcode_direct_absolute_CXX=yes
  10974. hardcode_libdir_separator_CXX=':'
  10975. link_all_deplibs_CXX=yes
  10976. file_list_spec_CXX='${wl}-f,'
  10977. if test "$GXX" = yes; then
  10978. case $host_os in aix4.[012]|aix4.[012].*)
  10979. # We only want to do this on AIX 4.2 and lower, the check
  10980. # below for broken collect2 doesn't work under 4.3+
  10981. collect2name=`${CC} -print-prog-name=collect2`
  10982. if test -f "$collect2name" &&
  10983. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10984. then
  10985. # We have reworked collect2
  10986. :
  10987. else
  10988. # We have old collect2
  10989. hardcode_direct_CXX=unsupported
  10990. # It fails to find uninstalled libraries when the uninstalled
  10991. # path is not listed in the libpath. Setting hardcode_minus_L
  10992. # to unsupported forces relinking
  10993. hardcode_minus_L_CXX=yes
  10994. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10995. hardcode_libdir_separator_CXX=
  10996. fi
  10997. esac
  10998. shared_flag='-shared'
  10999. if test "$aix_use_runtimelinking" = yes; then
  11000. shared_flag="$shared_flag "'${wl}-G'
  11001. fi
  11002. else
  11003. # not using gcc
  11004. if test "$host_cpu" = ia64; then
  11005. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11006. # chokes on -Wl,-G. The following line is correct:
  11007. shared_flag='-G'
  11008. else
  11009. if test "$aix_use_runtimelinking" = yes; then
  11010. shared_flag='${wl}-G'
  11011. else
  11012. shared_flag='${wl}-bM:SRE'
  11013. fi
  11014. fi
  11015. fi
  11016. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11017. # It seems that -bexpall does not export symbols beginning with
  11018. # underscore (_), so it is better to generate a list of symbols to
  11019. # export.
  11020. always_export_symbols_CXX=yes
  11021. if test "$aix_use_runtimelinking" = yes; then
  11022. # Warning - without using the other runtime loading flags (-brtl),
  11023. # -berok will link without error, but may produce a broken library.
  11024. allow_undefined_flag_CXX='-berok'
  11025. # Determine the default libpath from the value encoded in an empty
  11026. # executable.
  11027. if test "${lt_cv_aix_libpath+set}" = set; then
  11028. aix_libpath=$lt_cv_aix_libpath
  11029. else
  11030. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11031. $as_echo_n "(cached) " >&6
  11032. else
  11033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11034. /* end confdefs.h. */
  11035. int
  11036. main ()
  11037. {
  11038. ;
  11039. return 0;
  11040. }
  11041. _ACEOF
  11042. if ac_fn_cxx_try_link "$LINENO"; then :
  11043. lt_aix_libpath_sed='
  11044. /Import File Strings/,/^$/ {
  11045. /^0/ {
  11046. s/^0 *\([^ ]*\) *$/\1/
  11047. p
  11048. }
  11049. }'
  11050. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11051. # Check for a 64-bit object if we didn't find anything.
  11052. if test -z "$lt_cv_aix_libpath__CXX"; then
  11053. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11054. fi
  11055. fi
  11056. rm -f core conftest.err conftest.$ac_objext \
  11057. conftest$ac_exeext conftest.$ac_ext
  11058. if test -z "$lt_cv_aix_libpath__CXX"; then
  11059. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11060. fi
  11061. fi
  11062. aix_libpath=$lt_cv_aix_libpath__CXX
  11063. fi
  11064. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11065. 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"
  11066. else
  11067. if test "$host_cpu" = ia64; then
  11068. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11069. allow_undefined_flag_CXX="-z nodefs"
  11070. 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"
  11071. else
  11072. # Determine the default libpath from the value encoded in an
  11073. # empty executable.
  11074. if test "${lt_cv_aix_libpath+set}" = set; then
  11075. aix_libpath=$lt_cv_aix_libpath
  11076. else
  11077. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11078. $as_echo_n "(cached) " >&6
  11079. else
  11080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11081. /* end confdefs.h. */
  11082. int
  11083. main ()
  11084. {
  11085. ;
  11086. return 0;
  11087. }
  11088. _ACEOF
  11089. if ac_fn_cxx_try_link "$LINENO"; then :
  11090. lt_aix_libpath_sed='
  11091. /Import File Strings/,/^$/ {
  11092. /^0/ {
  11093. s/^0 *\([^ ]*\) *$/\1/
  11094. p
  11095. }
  11096. }'
  11097. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11098. # Check for a 64-bit object if we didn't find anything.
  11099. if test -z "$lt_cv_aix_libpath__CXX"; then
  11100. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11101. fi
  11102. fi
  11103. rm -f core conftest.err conftest.$ac_objext \
  11104. conftest$ac_exeext conftest.$ac_ext
  11105. if test -z "$lt_cv_aix_libpath__CXX"; then
  11106. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11107. fi
  11108. fi
  11109. aix_libpath=$lt_cv_aix_libpath__CXX
  11110. fi
  11111. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11112. # Warning - without using the other run time loading flags,
  11113. # -berok will link without error, but may produce a broken library.
  11114. no_undefined_flag_CXX=' ${wl}-bernotok'
  11115. allow_undefined_flag_CXX=' ${wl}-berok'
  11116. if test "$with_gnu_ld" = yes; then
  11117. # We only use this code for GNU lds that support --whole-archive.
  11118. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11119. else
  11120. # Exported symbols can be pulled into shared objects from archives
  11121. whole_archive_flag_spec_CXX='$convenience'
  11122. fi
  11123. archive_cmds_need_lc_CXX=yes
  11124. # This is similar to how AIX traditionally builds its shared
  11125. # libraries.
  11126. 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'
  11127. fi
  11128. fi
  11129. ;;
  11130. beos*)
  11131. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11132. allow_undefined_flag_CXX=unsupported
  11133. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11134. # support --undefined. This deserves some investigation. FIXME
  11135. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11136. else
  11137. ld_shlibs_CXX=no
  11138. fi
  11139. ;;
  11140. chorus*)
  11141. case $cc_basename in
  11142. *)
  11143. # FIXME: insert proper C++ library support
  11144. ld_shlibs_CXX=no
  11145. ;;
  11146. esac
  11147. ;;
  11148. cygwin* | mingw* | pw32* | cegcc*)
  11149. case $GXX,$cc_basename in
  11150. ,cl* | no,cl*)
  11151. # Native MSVC
  11152. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11153. # no search path for DLLs.
  11154. hardcode_libdir_flag_spec_CXX=' '
  11155. allow_undefined_flag_CXX=unsupported
  11156. always_export_symbols_CXX=yes
  11157. file_list_spec_CXX='@'
  11158. # Tell ltmain to make .lib files, not .a files.
  11159. libext=lib
  11160. # Tell ltmain to make .dll files, not .so files.
  11161. shrext_cmds=".dll"
  11162. # FIXME: Setting linknames here is a bad hack.
  11163. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11164. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11165. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11166. else
  11167. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11168. fi~
  11169. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11170. linknames='
  11171. # The linker will not automatically build a static lib if we build a DLL.
  11172. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11173. enable_shared_with_static_runtimes_CXX=yes
  11174. # Don't use ranlib
  11175. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11176. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11177. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11178. case $lt_outputfile in
  11179. *.exe|*.EXE) ;;
  11180. *)
  11181. lt_outputfile="$lt_outputfile.exe"
  11182. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11183. ;;
  11184. esac~
  11185. func_to_tool_file "$lt_outputfile"~
  11186. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11187. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11188. $RM "$lt_outputfile.manifest";
  11189. fi'
  11190. ;;
  11191. *)
  11192. # g++
  11193. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11194. # as there is no search path for DLLs.
  11195. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11196. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11197. allow_undefined_flag_CXX=unsupported
  11198. always_export_symbols_CXX=no
  11199. enable_shared_with_static_runtimes_CXX=yes
  11200. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11201. 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'
  11202. # If the export-symbols file already is a .def file (1st line
  11203. # is EXPORTS), use it as is; otherwise, prepend...
  11204. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11205. cp $export_symbols $output_objdir/$soname.def;
  11206. else
  11207. echo EXPORTS > $output_objdir/$soname.def;
  11208. cat $export_symbols >> $output_objdir/$soname.def;
  11209. fi~
  11210. $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'
  11211. else
  11212. ld_shlibs_CXX=no
  11213. fi
  11214. ;;
  11215. esac
  11216. ;;
  11217. darwin* | rhapsody*)
  11218. archive_cmds_need_lc_CXX=no
  11219. hardcode_direct_CXX=no
  11220. hardcode_automatic_CXX=yes
  11221. hardcode_shlibpath_var_CXX=unsupported
  11222. if test "$lt_cv_ld_force_load" = "yes"; then
  11223. 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\"`'
  11224. else
  11225. whole_archive_flag_spec_CXX=''
  11226. fi
  11227. link_all_deplibs_CXX=yes
  11228. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11229. case $cc_basename in
  11230. ifort*) _lt_dar_can_shared=yes ;;
  11231. *) _lt_dar_can_shared=$GCC ;;
  11232. esac
  11233. if test "$_lt_dar_can_shared" = "yes"; then
  11234. output_verbose_link_cmd=func_echo_all
  11235. 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}"
  11236. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11237. 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}"
  11238. 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}"
  11239. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11240. 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}"
  11241. 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}"
  11242. fi
  11243. else
  11244. ld_shlibs_CXX=no
  11245. fi
  11246. ;;
  11247. dgux*)
  11248. case $cc_basename in
  11249. ec++*)
  11250. # FIXME: insert proper C++ library support
  11251. ld_shlibs_CXX=no
  11252. ;;
  11253. ghcx*)
  11254. # Green Hills C++ Compiler
  11255. # FIXME: insert proper C++ library support
  11256. ld_shlibs_CXX=no
  11257. ;;
  11258. *)
  11259. # FIXME: insert proper C++ library support
  11260. ld_shlibs_CXX=no
  11261. ;;
  11262. esac
  11263. ;;
  11264. freebsd2.*)
  11265. # C++ shared libraries reported to be fairly broken before
  11266. # switch to ELF
  11267. ld_shlibs_CXX=no
  11268. ;;
  11269. freebsd-elf*)
  11270. archive_cmds_need_lc_CXX=no
  11271. ;;
  11272. freebsd* | dragonfly*)
  11273. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11274. # conventions
  11275. ld_shlibs_CXX=yes
  11276. ;;
  11277. gnu*)
  11278. ;;
  11279. haiku*)
  11280. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11281. link_all_deplibs_CXX=yes
  11282. ;;
  11283. hpux9*)
  11284. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11285. hardcode_libdir_separator_CXX=:
  11286. export_dynamic_flag_spec_CXX='${wl}-E'
  11287. hardcode_direct_CXX=yes
  11288. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11289. # but as the default
  11290. # location of the library.
  11291. case $cc_basename in
  11292. CC*)
  11293. # FIXME: insert proper C++ library support
  11294. ld_shlibs_CXX=no
  11295. ;;
  11296. aCC*)
  11297. 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'
  11298. # Commands to make compiler produce verbose output that lists
  11299. # what "hidden" libraries, object files and flags are used when
  11300. # linking a shared library.
  11301. #
  11302. # There doesn't appear to be a way to prevent this compiler from
  11303. # explicitly linking system object files so we need to strip them
  11304. # from the output so that they don't get included in the library
  11305. # dependencies.
  11306. 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"'
  11307. ;;
  11308. *)
  11309. if test "$GXX" = yes; then
  11310. 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'
  11311. else
  11312. # FIXME: insert proper C++ library support
  11313. ld_shlibs_CXX=no
  11314. fi
  11315. ;;
  11316. esac
  11317. ;;
  11318. hpux10*|hpux11*)
  11319. if test $with_gnu_ld = no; then
  11320. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11321. hardcode_libdir_separator_CXX=:
  11322. case $host_cpu in
  11323. hppa*64*|ia64*)
  11324. ;;
  11325. *)
  11326. export_dynamic_flag_spec_CXX='${wl}-E'
  11327. ;;
  11328. esac
  11329. fi
  11330. case $host_cpu in
  11331. hppa*64*|ia64*)
  11332. hardcode_direct_CXX=no
  11333. hardcode_shlibpath_var_CXX=no
  11334. ;;
  11335. *)
  11336. hardcode_direct_CXX=yes
  11337. hardcode_direct_absolute_CXX=yes
  11338. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11339. # but as the default
  11340. # location of the library.
  11341. ;;
  11342. esac
  11343. case $cc_basename in
  11344. CC*)
  11345. # FIXME: insert proper C++ library support
  11346. ld_shlibs_CXX=no
  11347. ;;
  11348. aCC*)
  11349. case $host_cpu in
  11350. hppa*64*)
  11351. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11352. ;;
  11353. ia64*)
  11354. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11355. ;;
  11356. *)
  11357. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11358. ;;
  11359. esac
  11360. # Commands to make compiler produce verbose output that lists
  11361. # what "hidden" libraries, object files and flags are used when
  11362. # linking a shared library.
  11363. #
  11364. # There doesn't appear to be a way to prevent this compiler from
  11365. # explicitly linking system object files so we need to strip them
  11366. # from the output so that they don't get included in the library
  11367. # dependencies.
  11368. 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"'
  11369. ;;
  11370. *)
  11371. if test "$GXX" = yes; then
  11372. if test $with_gnu_ld = no; then
  11373. case $host_cpu in
  11374. hppa*64*)
  11375. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11376. ;;
  11377. ia64*)
  11378. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11379. ;;
  11380. *)
  11381. 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'
  11382. ;;
  11383. esac
  11384. fi
  11385. else
  11386. # FIXME: insert proper C++ library support
  11387. ld_shlibs_CXX=no
  11388. fi
  11389. ;;
  11390. esac
  11391. ;;
  11392. interix[3-9]*)
  11393. hardcode_direct_CXX=no
  11394. hardcode_shlibpath_var_CXX=no
  11395. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11396. export_dynamic_flag_spec_CXX='${wl}-E'
  11397. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11398. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11399. # default) and relocated if they conflict, which is a slow very memory
  11400. # consuming and fragmenting process. To avoid this, we pick a random,
  11401. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11402. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11403. 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'
  11404. 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'
  11405. ;;
  11406. irix5* | irix6*)
  11407. case $cc_basename in
  11408. CC*)
  11409. # SGI C++
  11410. 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'
  11411. # Archives containing C++ object files must be created using
  11412. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11413. # necessary to make sure instantiated templates are included
  11414. # in the archive.
  11415. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11416. ;;
  11417. *)
  11418. if test "$GXX" = yes; then
  11419. if test "$with_gnu_ld" = no; then
  11420. 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'
  11421. else
  11422. 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'
  11423. fi
  11424. fi
  11425. link_all_deplibs_CXX=yes
  11426. ;;
  11427. esac
  11428. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11429. hardcode_libdir_separator_CXX=:
  11430. inherit_rpath_CXX=yes
  11431. ;;
  11432. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11433. case $cc_basename in
  11434. KCC*)
  11435. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11436. # KCC will only create a shared library if the output file
  11437. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11438. # to its proper name (with version) after linking.
  11439. 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'
  11440. 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'
  11441. # Commands to make compiler produce verbose output that lists
  11442. # what "hidden" libraries, object files and flags are used when
  11443. # linking a shared library.
  11444. #
  11445. # There doesn't appear to be a way to prevent this compiler from
  11446. # explicitly linking system object files so we need to strip them
  11447. # from the output so that they don't get included in the library
  11448. # dependencies.
  11449. 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"'
  11450. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11451. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11452. # Archives containing C++ object files must be created using
  11453. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11454. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11455. ;;
  11456. icpc* | ecpc* )
  11457. # Intel C++
  11458. with_gnu_ld=yes
  11459. # version 8.0 and above of icpc choke on multiply defined symbols
  11460. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11461. # earlier do not add the objects themselves.
  11462. case `$CC -V 2>&1` in
  11463. *"Version 7."*)
  11464. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11465. 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'
  11466. ;;
  11467. *) # Version 8.0 or newer
  11468. tmp_idyn=
  11469. case $host_cpu in
  11470. ia64*) tmp_idyn=' -i_dynamic';;
  11471. esac
  11472. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11473. 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'
  11474. ;;
  11475. esac
  11476. archive_cmds_need_lc_CXX=no
  11477. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11478. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11479. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11480. ;;
  11481. pgCC* | pgcpp*)
  11482. # Portland Group C++ compiler
  11483. case `$CC -V` in
  11484. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11485. prelink_cmds_CXX='tpldir=Template.dir~
  11486. rm -rf $tpldir~
  11487. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11488. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11489. old_archive_cmds_CXX='tpldir=Template.dir~
  11490. rm -rf $tpldir~
  11491. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11492. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11493. $RANLIB $oldlib'
  11494. archive_cmds_CXX='tpldir=Template.dir~
  11495. rm -rf $tpldir~
  11496. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11497. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11498. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11499. rm -rf $tpldir~
  11500. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11501. $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'
  11502. ;;
  11503. *) # Version 6 and above use weak symbols
  11504. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11505. 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'
  11506. ;;
  11507. esac
  11508. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11509. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11510. 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'
  11511. ;;
  11512. cxx*)
  11513. # Compaq C++
  11514. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11515. 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'
  11516. runpath_var=LD_RUN_PATH
  11517. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11518. hardcode_libdir_separator_CXX=:
  11519. # Commands to make compiler produce verbose output that lists
  11520. # what "hidden" libraries, object files and flags are used when
  11521. # linking a shared library.
  11522. #
  11523. # There doesn't appear to be a way to prevent this compiler from
  11524. # explicitly linking system object files so we need to strip them
  11525. # from the output so that they don't get included in the library
  11526. # dependencies.
  11527. 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'
  11528. ;;
  11529. xl* | mpixl* | bgxl*)
  11530. # IBM XL 8.0 on PPC, with GNU ld
  11531. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11532. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11533. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11534. if test "x$supports_anon_versioning" = xyes; then
  11535. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11536. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11537. echo "local: *; };" >> $output_objdir/$libname.ver~
  11538. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11539. fi
  11540. ;;
  11541. *)
  11542. case `$CC -V 2>&1 | sed 5q` in
  11543. *Sun\ C*)
  11544. # Sun C++ 5.9
  11545. no_undefined_flag_CXX=' -zdefs'
  11546. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11547. 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'
  11548. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11549. 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'
  11550. compiler_needs_object_CXX=yes
  11551. # Not sure whether something based on
  11552. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11553. # would be better.
  11554. output_verbose_link_cmd='func_echo_all'
  11555. # Archives containing C++ object files must be created using
  11556. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11557. # necessary to make sure instantiated templates are included
  11558. # in the archive.
  11559. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11560. ;;
  11561. esac
  11562. ;;
  11563. esac
  11564. ;;
  11565. lynxos*)
  11566. # FIXME: insert proper C++ library support
  11567. ld_shlibs_CXX=no
  11568. ;;
  11569. m88k*)
  11570. # FIXME: insert proper C++ library support
  11571. ld_shlibs_CXX=no
  11572. ;;
  11573. mvs*)
  11574. case $cc_basename in
  11575. cxx*)
  11576. # FIXME: insert proper C++ library support
  11577. ld_shlibs_CXX=no
  11578. ;;
  11579. *)
  11580. # FIXME: insert proper C++ library support
  11581. ld_shlibs_CXX=no
  11582. ;;
  11583. esac
  11584. ;;
  11585. netbsd*)
  11586. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11587. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11588. wlarc=
  11589. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11590. hardcode_direct_CXX=yes
  11591. hardcode_shlibpath_var_CXX=no
  11592. fi
  11593. # Workaround some broken pre-1.5 toolchains
  11594. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11595. ;;
  11596. *nto* | *qnx*)
  11597. ld_shlibs_CXX=yes
  11598. ;;
  11599. openbsd2*)
  11600. # C++ shared libraries are fairly broken
  11601. ld_shlibs_CXX=no
  11602. ;;
  11603. openbsd*)
  11604. if test -f /usr/libexec/ld.so; then
  11605. hardcode_direct_CXX=yes
  11606. hardcode_shlibpath_var_CXX=no
  11607. hardcode_direct_absolute_CXX=yes
  11608. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11609. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11610. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11611. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11612. export_dynamic_flag_spec_CXX='${wl}-E'
  11613. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11614. fi
  11615. output_verbose_link_cmd=func_echo_all
  11616. else
  11617. ld_shlibs_CXX=no
  11618. fi
  11619. ;;
  11620. osf3* | osf4* | osf5*)
  11621. case $cc_basename in
  11622. KCC*)
  11623. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11624. # KCC will only create a shared library if the output file
  11625. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11626. # to its proper name (with version) after linking.
  11627. 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'
  11628. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11629. hardcode_libdir_separator_CXX=:
  11630. # Archives containing C++ object files must be created using
  11631. # the KAI C++ compiler.
  11632. case $host in
  11633. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11634. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11635. esac
  11636. ;;
  11637. RCC*)
  11638. # Rational C++ 2.4.1
  11639. # FIXME: insert proper C++ library support
  11640. ld_shlibs_CXX=no
  11641. ;;
  11642. cxx*)
  11643. case $host in
  11644. osf3*)
  11645. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11646. 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'
  11647. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11648. ;;
  11649. *)
  11650. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11651. 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'
  11652. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11653. echo "-hidden">> $lib.exp~
  11654. $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~
  11655. $RM $lib.exp'
  11656. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11657. ;;
  11658. esac
  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. #
  11664. # There doesn't appear to be a way to prevent this compiler from
  11665. # explicitly linking system object files so we need to strip them
  11666. # from the output so that they don't get included in the library
  11667. # dependencies.
  11668. 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"'
  11669. ;;
  11670. *)
  11671. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11672. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11673. case $host in
  11674. osf3*)
  11675. 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'
  11676. ;;
  11677. *)
  11678. 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'
  11679. ;;
  11680. esac
  11681. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11682. hardcode_libdir_separator_CXX=:
  11683. # Commands to make compiler produce verbose output that lists
  11684. # what "hidden" libraries, object files and flags are used when
  11685. # linking a shared library.
  11686. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11687. else
  11688. # FIXME: insert proper C++ library support
  11689. ld_shlibs_CXX=no
  11690. fi
  11691. ;;
  11692. esac
  11693. ;;
  11694. psos*)
  11695. # FIXME: insert proper C++ library support
  11696. ld_shlibs_CXX=no
  11697. ;;
  11698. sunos4*)
  11699. case $cc_basename in
  11700. CC*)
  11701. # Sun C++ 4.x
  11702. # FIXME: insert proper C++ library support
  11703. ld_shlibs_CXX=no
  11704. ;;
  11705. lcc*)
  11706. # Lucid
  11707. # FIXME: insert proper C++ library support
  11708. ld_shlibs_CXX=no
  11709. ;;
  11710. *)
  11711. # FIXME: insert proper C++ library support
  11712. ld_shlibs_CXX=no
  11713. ;;
  11714. esac
  11715. ;;
  11716. solaris*)
  11717. case $cc_basename in
  11718. CC* | sunCC*)
  11719. # Sun C++ 4.2, 5.x and Centerline C++
  11720. archive_cmds_need_lc_CXX=yes
  11721. no_undefined_flag_CXX=' -zdefs'
  11722. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11723. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11724. $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'
  11725. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11726. hardcode_shlibpath_var_CXX=no
  11727. case $host_os in
  11728. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11729. *)
  11730. # The compiler driver will combine and reorder linker options,
  11731. # but understands `-z linker_flag'.
  11732. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11733. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11734. ;;
  11735. esac
  11736. link_all_deplibs_CXX=yes
  11737. output_verbose_link_cmd='func_echo_all'
  11738. # Archives containing C++ object files must be created using
  11739. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11740. # necessary to make sure instantiated templates are included
  11741. # in the archive.
  11742. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11743. ;;
  11744. gcx*)
  11745. # Green Hills C++ Compiler
  11746. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11747. # The C++ compiler must be used to create the archive.
  11748. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11749. ;;
  11750. *)
  11751. # GNU C++ compiler with Solaris linker
  11752. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11753. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11754. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11755. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11756. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11757. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11758. # Commands to make compiler produce verbose output that lists
  11759. # what "hidden" libraries, object files and flags are used when
  11760. # linking a shared library.
  11761. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11762. else
  11763. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11764. # platform.
  11765. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11766. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11767. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11768. # Commands to make compiler produce verbose output that lists
  11769. # what "hidden" libraries, object files and flags are used when
  11770. # linking a shared library.
  11771. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11772. fi
  11773. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11774. case $host_os in
  11775. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11776. *)
  11777. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11778. ;;
  11779. esac
  11780. fi
  11781. ;;
  11782. esac
  11783. ;;
  11784. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11785. no_undefined_flag_CXX='${wl}-z,text'
  11786. archive_cmds_need_lc_CXX=no
  11787. hardcode_shlibpath_var_CXX=no
  11788. runpath_var='LD_RUN_PATH'
  11789. case $cc_basename in
  11790. CC*)
  11791. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11792. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11793. ;;
  11794. *)
  11795. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11796. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11797. ;;
  11798. esac
  11799. ;;
  11800. sysv5* | sco3.2v5* | sco5v6*)
  11801. # Note: We can NOT use -z defs as we might desire, because we do not
  11802. # link with -lc, and that would cause any symbols used from libc to
  11803. # always be unresolved, which means just about no library would
  11804. # ever link correctly. If we're not using GNU ld we use -z text
  11805. # though, which does catch some bad symbols but isn't as heavy-handed
  11806. # as -z defs.
  11807. no_undefined_flag_CXX='${wl}-z,text'
  11808. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11809. archive_cmds_need_lc_CXX=no
  11810. hardcode_shlibpath_var_CXX=no
  11811. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11812. hardcode_libdir_separator_CXX=':'
  11813. link_all_deplibs_CXX=yes
  11814. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11815. runpath_var='LD_RUN_PATH'
  11816. case $cc_basename in
  11817. CC*)
  11818. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11819. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11820. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11821. '"$old_archive_cmds_CXX"
  11822. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11823. '"$reload_cmds_CXX"
  11824. ;;
  11825. *)
  11826. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11827. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11828. ;;
  11829. esac
  11830. ;;
  11831. tandem*)
  11832. case $cc_basename in
  11833. NCC*)
  11834. # NonStop-UX NCC 3.20
  11835. # FIXME: insert proper C++ library support
  11836. ld_shlibs_CXX=no
  11837. ;;
  11838. *)
  11839. # FIXME: insert proper C++ library support
  11840. ld_shlibs_CXX=no
  11841. ;;
  11842. esac
  11843. ;;
  11844. vxworks*)
  11845. # FIXME: insert proper C++ library support
  11846. ld_shlibs_CXX=no
  11847. ;;
  11848. *)
  11849. # FIXME: insert proper C++ library support
  11850. ld_shlibs_CXX=no
  11851. ;;
  11852. esac
  11853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11854. $as_echo "$ld_shlibs_CXX" >&6; }
  11855. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11856. GCC_CXX="$GXX"
  11857. LD_CXX="$LD"
  11858. ## CAVEAT EMPTOR:
  11859. ## There is no encapsulation within the following macros, do not change
  11860. ## the running order or otherwise move them around unless you know exactly
  11861. ## what you are doing...
  11862. # Dependencies to place before and after the object being linked:
  11863. predep_objects_CXX=
  11864. postdep_objects_CXX=
  11865. predeps_CXX=
  11866. postdeps_CXX=
  11867. compiler_lib_search_path_CXX=
  11868. cat > conftest.$ac_ext <<_LT_EOF
  11869. class Foo
  11870. {
  11871. public:
  11872. Foo (void) { a = 0; }
  11873. private:
  11874. int a;
  11875. };
  11876. _LT_EOF
  11877. _lt_libdeps_save_CFLAGS=$CFLAGS
  11878. case "$CC $CFLAGS " in #(
  11879. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11880. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11881. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11882. esac
  11883. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11884. (eval $ac_compile) 2>&5
  11885. ac_status=$?
  11886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11887. test $ac_status = 0; }; then
  11888. # Parse the compiler output and extract the necessary
  11889. # objects, libraries and library flags.
  11890. # Sentinel used to keep track of whether or not we are before
  11891. # the conftest object file.
  11892. pre_test_object_deps_done=no
  11893. for p in `eval "$output_verbose_link_cmd"`; do
  11894. case ${prev}${p} in
  11895. -L* | -R* | -l*)
  11896. # Some compilers place space between "-{L,R}" and the path.
  11897. # Remove the space.
  11898. if test $p = "-L" ||
  11899. test $p = "-R"; then
  11900. prev=$p
  11901. continue
  11902. fi
  11903. # Expand the sysroot to ease extracting the directories later.
  11904. if test -z "$prev"; then
  11905. case $p in
  11906. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11907. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11908. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11909. esac
  11910. fi
  11911. case $p in
  11912. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11913. esac
  11914. if test "$pre_test_object_deps_done" = no; then
  11915. case ${prev} in
  11916. -L | -R)
  11917. # Internal compiler library paths should come after those
  11918. # provided the user. The postdeps already come after the
  11919. # user supplied libs so there is no need to process them.
  11920. if test -z "$compiler_lib_search_path_CXX"; then
  11921. compiler_lib_search_path_CXX="${prev}${p}"
  11922. else
  11923. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11924. fi
  11925. ;;
  11926. # The "-l" case would never come before the object being
  11927. # linked, so don't bother handling this case.
  11928. esac
  11929. else
  11930. if test -z "$postdeps_CXX"; then
  11931. postdeps_CXX="${prev}${p}"
  11932. else
  11933. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11934. fi
  11935. fi
  11936. prev=
  11937. ;;
  11938. *.lto.$objext) ;; # Ignore GCC LTO objects
  11939. *.$objext)
  11940. # This assumes that the test object file only shows up
  11941. # once in the compiler output.
  11942. if test "$p" = "conftest.$objext"; then
  11943. pre_test_object_deps_done=yes
  11944. continue
  11945. fi
  11946. if test "$pre_test_object_deps_done" = no; then
  11947. if test -z "$predep_objects_CXX"; then
  11948. predep_objects_CXX="$p"
  11949. else
  11950. predep_objects_CXX="$predep_objects_CXX $p"
  11951. fi
  11952. else
  11953. if test -z "$postdep_objects_CXX"; then
  11954. postdep_objects_CXX="$p"
  11955. else
  11956. postdep_objects_CXX="$postdep_objects_CXX $p"
  11957. fi
  11958. fi
  11959. ;;
  11960. *) ;; # Ignore the rest.
  11961. esac
  11962. done
  11963. # Clean up.
  11964. rm -f a.out a.exe
  11965. else
  11966. echo "libtool.m4: error: problem compiling CXX test program"
  11967. fi
  11968. $RM -f confest.$objext
  11969. CFLAGS=$_lt_libdeps_save_CFLAGS
  11970. # PORTME: override above test on systems where it is broken
  11971. case $host_os in
  11972. interix[3-9]*)
  11973. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11974. # hack all around it, let's just trust "g++" to DTRT.
  11975. predep_objects_CXX=
  11976. postdep_objects_CXX=
  11977. postdeps_CXX=
  11978. ;;
  11979. linux*)
  11980. case `$CC -V 2>&1 | sed 5q` in
  11981. *Sun\ C*)
  11982. # Sun C++ 5.9
  11983. # The more standards-conforming stlport4 library is
  11984. # incompatible with the Cstd library. Avoid specifying
  11985. # it if it's in CXXFLAGS. Ignore libCrun as
  11986. # -library=stlport4 depends on it.
  11987. case " $CXX $CXXFLAGS " in
  11988. *" -library=stlport4 "*)
  11989. solaris_use_stlport4=yes
  11990. ;;
  11991. esac
  11992. if test "$solaris_use_stlport4" != yes; then
  11993. postdeps_CXX='-library=Cstd -library=Crun'
  11994. fi
  11995. ;;
  11996. esac
  11997. ;;
  11998. solaris*)
  11999. case $cc_basename in
  12000. CC* | sunCC*)
  12001. # The more standards-conforming stlport4 library is
  12002. # incompatible with the Cstd library. Avoid specifying
  12003. # it if it's in CXXFLAGS. Ignore libCrun as
  12004. # -library=stlport4 depends on it.
  12005. case " $CXX $CXXFLAGS " in
  12006. *" -library=stlport4 "*)
  12007. solaris_use_stlport4=yes
  12008. ;;
  12009. esac
  12010. # Adding this requires a known-good setup of shared libraries for
  12011. # Sun compiler versions before 5.6, else PIC objects from an old
  12012. # archive will be linked into the output, leading to subtle bugs.
  12013. if test "$solaris_use_stlport4" != yes; then
  12014. postdeps_CXX='-library=Cstd -library=Crun'
  12015. fi
  12016. ;;
  12017. esac
  12018. ;;
  12019. esac
  12020. case " $postdeps_CXX " in
  12021. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12022. esac
  12023. compiler_lib_search_dirs_CXX=
  12024. if test -n "${compiler_lib_search_path_CXX}"; then
  12025. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12026. fi
  12027. lt_prog_compiler_wl_CXX=
  12028. lt_prog_compiler_pic_CXX=
  12029. lt_prog_compiler_static_CXX=
  12030. # C++ specific cases for pic, static, wl, etc.
  12031. if test "$GXX" = yes; then
  12032. lt_prog_compiler_wl_CXX='-Wl,'
  12033. lt_prog_compiler_static_CXX='-static'
  12034. case $host_os in
  12035. aix*)
  12036. # All AIX code is PIC.
  12037. if test "$host_cpu" = ia64; then
  12038. # AIX 5 now supports IA64 processor
  12039. lt_prog_compiler_static_CXX='-Bstatic'
  12040. fi
  12041. ;;
  12042. amigaos*)
  12043. case $host_cpu in
  12044. powerpc)
  12045. # see comment about AmigaOS4 .so support
  12046. lt_prog_compiler_pic_CXX='-fPIC'
  12047. ;;
  12048. m68k)
  12049. # FIXME: we need at least 68020 code to build shared libraries, but
  12050. # adding the `-m68020' flag to GCC prevents building anything better,
  12051. # like `-m68040'.
  12052. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12053. ;;
  12054. esac
  12055. ;;
  12056. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12057. # PIC is the default for these OSes.
  12058. ;;
  12059. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12060. # This hack is so that the source file can tell whether it is being
  12061. # built for inclusion in a dll (and should export symbols for example).
  12062. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12063. # (--disable-auto-import) libraries
  12064. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12065. ;;
  12066. darwin* | rhapsody*)
  12067. # PIC is the default on this platform
  12068. # Common symbols not allowed in MH_DYLIB files
  12069. lt_prog_compiler_pic_CXX='-fno-common'
  12070. ;;
  12071. *djgpp*)
  12072. # DJGPP does not support shared libraries at all
  12073. lt_prog_compiler_pic_CXX=
  12074. ;;
  12075. haiku*)
  12076. # PIC is the default for Haiku.
  12077. # The "-static" flag exists, but is broken.
  12078. lt_prog_compiler_static_CXX=
  12079. ;;
  12080. interix[3-9]*)
  12081. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12082. # Instead, we relocate shared libraries at runtime.
  12083. ;;
  12084. sysv4*MP*)
  12085. if test -d /usr/nec; then
  12086. lt_prog_compiler_pic_CXX=-Kconform_pic
  12087. fi
  12088. ;;
  12089. hpux*)
  12090. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12091. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12092. # sets the default TLS model and affects inlining.
  12093. case $host_cpu in
  12094. hppa*64*)
  12095. ;;
  12096. *)
  12097. lt_prog_compiler_pic_CXX='-fPIC'
  12098. ;;
  12099. esac
  12100. ;;
  12101. *qnx* | *nto*)
  12102. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12103. # it will coredump.
  12104. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12105. ;;
  12106. *)
  12107. lt_prog_compiler_pic_CXX='-fPIC'
  12108. ;;
  12109. esac
  12110. else
  12111. case $host_os in
  12112. aix[4-9]*)
  12113. # All AIX code is PIC.
  12114. if test "$host_cpu" = ia64; then
  12115. # AIX 5 now supports IA64 processor
  12116. lt_prog_compiler_static_CXX='-Bstatic'
  12117. else
  12118. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12119. fi
  12120. ;;
  12121. chorus*)
  12122. case $cc_basename in
  12123. cxch68*)
  12124. # Green Hills C++ Compiler
  12125. # _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"
  12126. ;;
  12127. esac
  12128. ;;
  12129. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12130. # This hack is so that the source file can tell whether it is being
  12131. # built for inclusion in a dll (and should export symbols for example).
  12132. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12133. ;;
  12134. dgux*)
  12135. case $cc_basename in
  12136. ec++*)
  12137. lt_prog_compiler_pic_CXX='-KPIC'
  12138. ;;
  12139. ghcx*)
  12140. # Green Hills C++ Compiler
  12141. lt_prog_compiler_pic_CXX='-pic'
  12142. ;;
  12143. *)
  12144. ;;
  12145. esac
  12146. ;;
  12147. freebsd* | dragonfly*)
  12148. # FreeBSD uses GNU C++
  12149. ;;
  12150. hpux9* | hpux10* | hpux11*)
  12151. case $cc_basename in
  12152. CC*)
  12153. lt_prog_compiler_wl_CXX='-Wl,'
  12154. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12155. if test "$host_cpu" != ia64; then
  12156. lt_prog_compiler_pic_CXX='+Z'
  12157. fi
  12158. ;;
  12159. aCC*)
  12160. lt_prog_compiler_wl_CXX='-Wl,'
  12161. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12162. case $host_cpu in
  12163. hppa*64*|ia64*)
  12164. # +Z the default
  12165. ;;
  12166. *)
  12167. lt_prog_compiler_pic_CXX='+Z'
  12168. ;;
  12169. esac
  12170. ;;
  12171. *)
  12172. ;;
  12173. esac
  12174. ;;
  12175. interix*)
  12176. # This is c89, which is MS Visual C++ (no shared libs)
  12177. # Anyone wants to do a port?
  12178. ;;
  12179. irix5* | irix6* | nonstopux*)
  12180. case $cc_basename in
  12181. CC*)
  12182. lt_prog_compiler_wl_CXX='-Wl,'
  12183. lt_prog_compiler_static_CXX='-non_shared'
  12184. # CC pic flag -KPIC is the default.
  12185. ;;
  12186. *)
  12187. ;;
  12188. esac
  12189. ;;
  12190. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12191. case $cc_basename in
  12192. KCC*)
  12193. # KAI C++ Compiler
  12194. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12195. lt_prog_compiler_pic_CXX='-fPIC'
  12196. ;;
  12197. ecpc* )
  12198. # old Intel C++ for x86_64 which still supported -KPIC.
  12199. lt_prog_compiler_wl_CXX='-Wl,'
  12200. lt_prog_compiler_pic_CXX='-KPIC'
  12201. lt_prog_compiler_static_CXX='-static'
  12202. ;;
  12203. icpc* )
  12204. # Intel C++, used to be incompatible with GCC.
  12205. # ICC 10 doesn't accept -KPIC any more.
  12206. lt_prog_compiler_wl_CXX='-Wl,'
  12207. lt_prog_compiler_pic_CXX='-fPIC'
  12208. lt_prog_compiler_static_CXX='-static'
  12209. ;;
  12210. pgCC* | pgcpp*)
  12211. # Portland Group C++ compiler
  12212. lt_prog_compiler_wl_CXX='-Wl,'
  12213. lt_prog_compiler_pic_CXX='-fpic'
  12214. lt_prog_compiler_static_CXX='-Bstatic'
  12215. ;;
  12216. cxx*)
  12217. # Compaq C++
  12218. # Make sure the PIC flag is empty. It appears that all Alpha
  12219. # Linux and Compaq Tru64 Unix objects are PIC.
  12220. lt_prog_compiler_pic_CXX=
  12221. lt_prog_compiler_static_CXX='-non_shared'
  12222. ;;
  12223. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12224. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12225. lt_prog_compiler_wl_CXX='-Wl,'
  12226. lt_prog_compiler_pic_CXX='-qpic'
  12227. lt_prog_compiler_static_CXX='-qstaticlink'
  12228. ;;
  12229. *)
  12230. case `$CC -V 2>&1 | sed 5q` in
  12231. *Sun\ C*)
  12232. # Sun C++ 5.9
  12233. lt_prog_compiler_pic_CXX='-KPIC'
  12234. lt_prog_compiler_static_CXX='-Bstatic'
  12235. lt_prog_compiler_wl_CXX='-Qoption ld '
  12236. ;;
  12237. esac
  12238. ;;
  12239. esac
  12240. ;;
  12241. lynxos*)
  12242. ;;
  12243. m88k*)
  12244. ;;
  12245. mvs*)
  12246. case $cc_basename in
  12247. cxx*)
  12248. lt_prog_compiler_pic_CXX='-W c,exportall'
  12249. ;;
  12250. *)
  12251. ;;
  12252. esac
  12253. ;;
  12254. netbsd*)
  12255. ;;
  12256. *qnx* | *nto*)
  12257. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12258. # it will coredump.
  12259. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12260. ;;
  12261. osf3* | osf4* | osf5*)
  12262. case $cc_basename in
  12263. KCC*)
  12264. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12265. ;;
  12266. RCC*)
  12267. # Rational C++ 2.4.1
  12268. lt_prog_compiler_pic_CXX='-pic'
  12269. ;;
  12270. cxx*)
  12271. # Digital/Compaq C++
  12272. lt_prog_compiler_wl_CXX='-Wl,'
  12273. # Make sure the PIC flag is empty. It appears that all Alpha
  12274. # Linux and Compaq Tru64 Unix objects are PIC.
  12275. lt_prog_compiler_pic_CXX=
  12276. lt_prog_compiler_static_CXX='-non_shared'
  12277. ;;
  12278. *)
  12279. ;;
  12280. esac
  12281. ;;
  12282. psos*)
  12283. ;;
  12284. solaris*)
  12285. case $cc_basename in
  12286. CC* | sunCC*)
  12287. # Sun C++ 4.2, 5.x and Centerline C++
  12288. lt_prog_compiler_pic_CXX='-KPIC'
  12289. lt_prog_compiler_static_CXX='-Bstatic'
  12290. lt_prog_compiler_wl_CXX='-Qoption ld '
  12291. ;;
  12292. gcx*)
  12293. # Green Hills C++ Compiler
  12294. lt_prog_compiler_pic_CXX='-PIC'
  12295. ;;
  12296. *)
  12297. ;;
  12298. esac
  12299. ;;
  12300. sunos4*)
  12301. case $cc_basename in
  12302. CC*)
  12303. # Sun C++ 4.x
  12304. lt_prog_compiler_pic_CXX='-pic'
  12305. lt_prog_compiler_static_CXX='-Bstatic'
  12306. ;;
  12307. lcc*)
  12308. # Lucid
  12309. lt_prog_compiler_pic_CXX='-pic'
  12310. ;;
  12311. *)
  12312. ;;
  12313. esac
  12314. ;;
  12315. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12316. case $cc_basename in
  12317. CC*)
  12318. lt_prog_compiler_wl_CXX='-Wl,'
  12319. lt_prog_compiler_pic_CXX='-KPIC'
  12320. lt_prog_compiler_static_CXX='-Bstatic'
  12321. ;;
  12322. esac
  12323. ;;
  12324. tandem*)
  12325. case $cc_basename in
  12326. NCC*)
  12327. # NonStop-UX NCC 3.20
  12328. lt_prog_compiler_pic_CXX='-KPIC'
  12329. ;;
  12330. *)
  12331. ;;
  12332. esac
  12333. ;;
  12334. vxworks*)
  12335. ;;
  12336. *)
  12337. lt_prog_compiler_can_build_shared_CXX=no
  12338. ;;
  12339. esac
  12340. fi
  12341. case $host_os in
  12342. # For platforms which do not support PIC, -DPIC is meaningless:
  12343. *djgpp*)
  12344. lt_prog_compiler_pic_CXX=
  12345. ;;
  12346. *)
  12347. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12348. ;;
  12349. esac
  12350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12351. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12352. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12353. $as_echo_n "(cached) " >&6
  12354. else
  12355. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12356. fi
  12357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12358. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12359. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12360. #
  12361. # Check to make sure the PIC flag actually works.
  12362. #
  12363. if test -n "$lt_prog_compiler_pic_CXX"; then
  12364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12365. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12366. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12367. $as_echo_n "(cached) " >&6
  12368. else
  12369. lt_cv_prog_compiler_pic_works_CXX=no
  12370. ac_outfile=conftest.$ac_objext
  12371. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12372. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12373. # Insert the option either (1) after the last *FLAGS variable, or
  12374. # (2) before a word containing "conftest.", or (3) at the end.
  12375. # Note that $ac_compile itself does not contain backslashes and begins
  12376. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12377. # The option is referenced via a variable to avoid confusing sed.
  12378. lt_compile=`echo "$ac_compile" | $SED \
  12379. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12380. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12381. -e 's:$: $lt_compiler_flag:'`
  12382. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12383. (eval "$lt_compile" 2>conftest.err)
  12384. ac_status=$?
  12385. cat conftest.err >&5
  12386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12387. if (exit $ac_status) && test -s "$ac_outfile"; then
  12388. # The compiler can only warn and ignore the option if not recognized
  12389. # So say no if there are warnings other than the usual output.
  12390. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12391. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12392. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12393. lt_cv_prog_compiler_pic_works_CXX=yes
  12394. fi
  12395. fi
  12396. $RM conftest*
  12397. fi
  12398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12399. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12400. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12401. case $lt_prog_compiler_pic_CXX in
  12402. "" | " "*) ;;
  12403. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12404. esac
  12405. else
  12406. lt_prog_compiler_pic_CXX=
  12407. lt_prog_compiler_can_build_shared_CXX=no
  12408. fi
  12409. fi
  12410. #
  12411. # Check to make sure the static flag actually works.
  12412. #
  12413. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12415. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12416. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12417. $as_echo_n "(cached) " >&6
  12418. else
  12419. lt_cv_prog_compiler_static_works_CXX=no
  12420. save_LDFLAGS="$LDFLAGS"
  12421. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12422. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12423. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12424. # The linker can only warn and ignore the option if not recognized
  12425. # So say no if there are warnings
  12426. if test -s conftest.err; then
  12427. # Append any errors to the config.log.
  12428. cat conftest.err 1>&5
  12429. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12430. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12431. if diff conftest.exp conftest.er2 >/dev/null; then
  12432. lt_cv_prog_compiler_static_works_CXX=yes
  12433. fi
  12434. else
  12435. lt_cv_prog_compiler_static_works_CXX=yes
  12436. fi
  12437. fi
  12438. $RM -r conftest*
  12439. LDFLAGS="$save_LDFLAGS"
  12440. fi
  12441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12442. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12443. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12444. :
  12445. else
  12446. lt_prog_compiler_static_CXX=
  12447. fi
  12448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12449. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12450. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12451. $as_echo_n "(cached) " >&6
  12452. else
  12453. lt_cv_prog_compiler_c_o_CXX=no
  12454. $RM -r conftest 2>/dev/null
  12455. mkdir conftest
  12456. cd conftest
  12457. mkdir out
  12458. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12459. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12460. # Insert the option either (1) after the last *FLAGS variable, or
  12461. # (2) before a word containing "conftest.", or (3) at the end.
  12462. # Note that $ac_compile itself does not contain backslashes and begins
  12463. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12464. lt_compile=`echo "$ac_compile" | $SED \
  12465. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12466. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12467. -e 's:$: $lt_compiler_flag:'`
  12468. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12469. (eval "$lt_compile" 2>out/conftest.err)
  12470. ac_status=$?
  12471. cat out/conftest.err >&5
  12472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12473. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12474. then
  12475. # The compiler can only warn and ignore the option if not recognized
  12476. # So say no if there are warnings
  12477. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12478. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12479. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12480. lt_cv_prog_compiler_c_o_CXX=yes
  12481. fi
  12482. fi
  12483. chmod u+w . 2>&5
  12484. $RM conftest*
  12485. # SGI C++ compiler will create directory out/ii_files/ for
  12486. # template instantiation
  12487. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12488. $RM out/* && rmdir out
  12489. cd ..
  12490. $RM -r conftest
  12491. $RM conftest*
  12492. fi
  12493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12494. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12496. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12497. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12498. $as_echo_n "(cached) " >&6
  12499. else
  12500. lt_cv_prog_compiler_c_o_CXX=no
  12501. $RM -r conftest 2>/dev/null
  12502. mkdir conftest
  12503. cd conftest
  12504. mkdir out
  12505. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12506. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12507. # Insert the option either (1) after the last *FLAGS variable, or
  12508. # (2) before a word containing "conftest.", or (3) at the end.
  12509. # Note that $ac_compile itself does not contain backslashes and begins
  12510. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12511. lt_compile=`echo "$ac_compile" | $SED \
  12512. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12513. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12514. -e 's:$: $lt_compiler_flag:'`
  12515. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12516. (eval "$lt_compile" 2>out/conftest.err)
  12517. ac_status=$?
  12518. cat out/conftest.err >&5
  12519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12520. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12521. then
  12522. # The compiler can only warn and ignore the option if not recognized
  12523. # So say no if there are warnings
  12524. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12525. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12526. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12527. lt_cv_prog_compiler_c_o_CXX=yes
  12528. fi
  12529. fi
  12530. chmod u+w . 2>&5
  12531. $RM conftest*
  12532. # SGI C++ compiler will create directory out/ii_files/ for
  12533. # template instantiation
  12534. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12535. $RM out/* && rmdir out
  12536. cd ..
  12537. $RM -r conftest
  12538. $RM conftest*
  12539. fi
  12540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12541. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12542. hard_links="nottested"
  12543. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12544. # do not overwrite the value of need_locks provided by the user
  12545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12546. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12547. hard_links=yes
  12548. $RM conftest*
  12549. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12550. touch conftest.a
  12551. ln conftest.a conftest.b 2>&5 || hard_links=no
  12552. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12554. $as_echo "$hard_links" >&6; }
  12555. if test "$hard_links" = no; then
  12556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12557. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12558. need_locks=warn
  12559. fi
  12560. else
  12561. need_locks=no
  12562. fi
  12563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12564. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12565. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12566. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12567. case $host_os in
  12568. aix[4-9]*)
  12569. # If we're using GNU nm, then we don't want the "-C" option.
  12570. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12571. # Also, AIX nm treats weak defined symbols like other global defined
  12572. # symbols, whereas GNU nm marks them as "W".
  12573. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12574. 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'
  12575. else
  12576. 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'
  12577. fi
  12578. ;;
  12579. pw32*)
  12580. export_symbols_cmds_CXX="$ltdll_cmds"
  12581. ;;
  12582. cygwin* | mingw* | cegcc*)
  12583. case $cc_basename in
  12584. cl*)
  12585. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12586. ;;
  12587. *)
  12588. 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'
  12589. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12590. ;;
  12591. esac
  12592. ;;
  12593. *)
  12594. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12595. ;;
  12596. esac
  12597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12598. $as_echo "$ld_shlibs_CXX" >&6; }
  12599. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12600. with_gnu_ld_CXX=$with_gnu_ld
  12601. #
  12602. # Do we need to explicitly link libc?
  12603. #
  12604. case "x$archive_cmds_need_lc_CXX" in
  12605. x|xyes)
  12606. # Assume -lc should be added
  12607. archive_cmds_need_lc_CXX=yes
  12608. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12609. case $archive_cmds_CXX in
  12610. *'~'*)
  12611. # FIXME: we may have to deal with multi-command sequences.
  12612. ;;
  12613. '$CC '*)
  12614. # Test whether the compiler implicitly links with -lc since on some
  12615. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12616. # to ld, don't add -lc before -lgcc.
  12617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12618. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12619. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12620. $as_echo_n "(cached) " >&6
  12621. else
  12622. $RM conftest*
  12623. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12624. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12625. (eval $ac_compile) 2>&5
  12626. ac_status=$?
  12627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12628. test $ac_status = 0; } 2>conftest.err; then
  12629. soname=conftest
  12630. lib=conftest
  12631. libobjs=conftest.$ac_objext
  12632. deplibs=
  12633. wl=$lt_prog_compiler_wl_CXX
  12634. pic_flag=$lt_prog_compiler_pic_CXX
  12635. compiler_flags=-v
  12636. linker_flags=-v
  12637. verstring=
  12638. output_objdir=.
  12639. libname=conftest
  12640. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12641. allow_undefined_flag_CXX=
  12642. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12643. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12644. ac_status=$?
  12645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12646. test $ac_status = 0; }
  12647. then
  12648. lt_cv_archive_cmds_need_lc_CXX=no
  12649. else
  12650. lt_cv_archive_cmds_need_lc_CXX=yes
  12651. fi
  12652. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12653. else
  12654. cat conftest.err 1>&5
  12655. fi
  12656. $RM conftest*
  12657. fi
  12658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12659. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12660. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12661. ;;
  12662. esac
  12663. fi
  12664. ;;
  12665. esac
  12666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12667. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12668. library_names_spec=
  12669. libname_spec='lib$name'
  12670. soname_spec=
  12671. shrext_cmds=".so"
  12672. postinstall_cmds=
  12673. postuninstall_cmds=
  12674. finish_cmds=
  12675. finish_eval=
  12676. shlibpath_var=
  12677. shlibpath_overrides_runpath=unknown
  12678. version_type=none
  12679. dynamic_linker="$host_os ld.so"
  12680. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12681. need_lib_prefix=unknown
  12682. hardcode_into_libs=no
  12683. # when you set need_version to no, make sure it does not cause -set_version
  12684. # flags to be left without arguments
  12685. need_version=unknown
  12686. case $host_os in
  12687. aix3*)
  12688. version_type=linux # correct to gnu/linux during the next big refactor
  12689. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12690. shlibpath_var=LIBPATH
  12691. # AIX 3 has no versioning support, so we append a major version to the name.
  12692. soname_spec='${libname}${release}${shared_ext}$major'
  12693. ;;
  12694. aix[4-9]*)
  12695. version_type=linux # correct to gnu/linux during the next big refactor
  12696. need_lib_prefix=no
  12697. need_version=no
  12698. hardcode_into_libs=yes
  12699. if test "$host_cpu" = ia64; then
  12700. # AIX 5 supports IA64
  12701. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12702. shlibpath_var=LD_LIBRARY_PATH
  12703. else
  12704. # With GCC up to 2.95.x, collect2 would create an import file
  12705. # for dependence libraries. The import file would start with
  12706. # the line `#! .'. This would cause the generated library to
  12707. # depend on `.', always an invalid library. This was fixed in
  12708. # development snapshots of GCC prior to 3.0.
  12709. case $host_os in
  12710. aix4 | aix4.[01] | aix4.[01].*)
  12711. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12712. echo ' yes '
  12713. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12714. :
  12715. else
  12716. can_build_shared=no
  12717. fi
  12718. ;;
  12719. esac
  12720. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12721. # soname into executable. Probably we can add versioning support to
  12722. # collect2, so additional links can be useful in future.
  12723. if test "$aix_use_runtimelinking" = yes; then
  12724. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12725. # instead of lib<name>.a to let people know that these are not
  12726. # typical AIX shared libraries.
  12727. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12728. else
  12729. # We preserve .a as extension for shared libraries through AIX4.2
  12730. # and later when we are not doing run time linking.
  12731. library_names_spec='${libname}${release}.a $libname.a'
  12732. soname_spec='${libname}${release}${shared_ext}$major'
  12733. fi
  12734. shlibpath_var=LIBPATH
  12735. fi
  12736. ;;
  12737. amigaos*)
  12738. case $host_cpu in
  12739. powerpc)
  12740. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12741. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12743. ;;
  12744. m68k)
  12745. library_names_spec='$libname.ixlibrary $libname.a'
  12746. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12747. 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'
  12748. ;;
  12749. esac
  12750. ;;
  12751. beos*)
  12752. library_names_spec='${libname}${shared_ext}'
  12753. dynamic_linker="$host_os ld.so"
  12754. shlibpath_var=LIBRARY_PATH
  12755. ;;
  12756. bsdi[45]*)
  12757. version_type=linux # correct to gnu/linux during the next big refactor
  12758. need_version=no
  12759. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12760. soname_spec='${libname}${release}${shared_ext}$major'
  12761. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12762. shlibpath_var=LD_LIBRARY_PATH
  12763. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12764. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12765. # the default ld.so.conf also contains /usr/contrib/lib and
  12766. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12767. # libtool to hard-code these into programs
  12768. ;;
  12769. cygwin* | mingw* | pw32* | cegcc*)
  12770. version_type=windows
  12771. shrext_cmds=".dll"
  12772. need_version=no
  12773. need_lib_prefix=no
  12774. case $GCC,$cc_basename in
  12775. yes,*)
  12776. # gcc
  12777. library_names_spec='$libname.dll.a'
  12778. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12779. postinstall_cmds='base_file=`basename \${file}`~
  12780. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12781. dldir=$destdir/`dirname \$dlpath`~
  12782. test -d \$dldir || mkdir -p \$dldir~
  12783. $install_prog $dir/$dlname \$dldir/$dlname~
  12784. chmod a+x \$dldir/$dlname~
  12785. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12786. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12787. fi'
  12788. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12789. dlpath=$dir/\$dldll~
  12790. $RM \$dlpath'
  12791. shlibpath_overrides_runpath=yes
  12792. case $host_os in
  12793. cygwin*)
  12794. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12795. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12796. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12797. ;;
  12798. mingw* | cegcc*)
  12799. # MinGW DLLs use traditional 'lib' prefix
  12800. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12801. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12802. ;;
  12803. pw32*)
  12804. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12805. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12806. ;;
  12807. esac
  12808. dynamic_linker='Win32 ld.exe'
  12809. ;;
  12810. *,cl*)
  12811. # Native MSVC
  12812. libname_spec='$name'
  12813. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12814. library_names_spec='${libname}.dll.lib'
  12815. case $build_os in
  12816. mingw*)
  12817. sys_lib_search_path_spec=
  12818. lt_save_ifs=$IFS
  12819. IFS=';'
  12820. for lt_path in $LIB
  12821. do
  12822. IFS=$lt_save_ifs
  12823. # Let DOS variable expansion print the short 8.3 style file name.
  12824. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12825. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12826. done
  12827. IFS=$lt_save_ifs
  12828. # Convert to MSYS style.
  12829. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12830. ;;
  12831. cygwin*)
  12832. # Convert to unix form, then to dos form, then back to unix form
  12833. # but this time dos style (no spaces!) so that the unix form looks
  12834. # like /cygdrive/c/PROGRA~1:/cygdr...
  12835. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12836. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12837. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12838. ;;
  12839. *)
  12840. sys_lib_search_path_spec="$LIB"
  12841. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12842. # It is most probably a Windows format PATH.
  12843. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12844. else
  12845. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12846. fi
  12847. # FIXME: find the short name or the path components, as spaces are
  12848. # common. (e.g. "Program Files" -> "PROGRA~1")
  12849. ;;
  12850. esac
  12851. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12852. postinstall_cmds='base_file=`basename \${file}`~
  12853. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12854. dldir=$destdir/`dirname \$dlpath`~
  12855. test -d \$dldir || mkdir -p \$dldir~
  12856. $install_prog $dir/$dlname \$dldir/$dlname'
  12857. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12858. dlpath=$dir/\$dldll~
  12859. $RM \$dlpath'
  12860. shlibpath_overrides_runpath=yes
  12861. dynamic_linker='Win32 link.exe'
  12862. ;;
  12863. *)
  12864. # Assume MSVC wrapper
  12865. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12866. dynamic_linker='Win32 ld.exe'
  12867. ;;
  12868. esac
  12869. # FIXME: first we should search . and the directory the executable is in
  12870. shlibpath_var=PATH
  12871. ;;
  12872. darwin* | rhapsody*)
  12873. dynamic_linker="$host_os dyld"
  12874. version_type=darwin
  12875. need_lib_prefix=no
  12876. need_version=no
  12877. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12878. soname_spec='${libname}${release}${major}$shared_ext'
  12879. shlibpath_overrides_runpath=yes
  12880. shlibpath_var=DYLD_LIBRARY_PATH
  12881. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12882. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12883. ;;
  12884. dgux*)
  12885. version_type=linux # correct to gnu/linux during the next big refactor
  12886. need_lib_prefix=no
  12887. need_version=no
  12888. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12889. soname_spec='${libname}${release}${shared_ext}$major'
  12890. shlibpath_var=LD_LIBRARY_PATH
  12891. ;;
  12892. freebsd* | dragonfly*)
  12893. # DragonFly does not have aout. When/if they implement a new
  12894. # versioning mechanism, adjust this.
  12895. if test -x /usr/bin/objformat; then
  12896. objformat=`/usr/bin/objformat`
  12897. else
  12898. case $host_os in
  12899. freebsd[23].*) objformat=aout ;;
  12900. *) objformat=elf ;;
  12901. esac
  12902. fi
  12903. version_type=freebsd-$objformat
  12904. case $version_type in
  12905. freebsd-elf*)
  12906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12907. need_version=no
  12908. need_lib_prefix=no
  12909. ;;
  12910. freebsd-*)
  12911. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12912. need_version=yes
  12913. ;;
  12914. esac
  12915. shlibpath_var=LD_LIBRARY_PATH
  12916. case $host_os in
  12917. freebsd2.*)
  12918. shlibpath_overrides_runpath=yes
  12919. ;;
  12920. freebsd3.[01]* | freebsdelf3.[01]*)
  12921. shlibpath_overrides_runpath=yes
  12922. hardcode_into_libs=yes
  12923. ;;
  12924. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12925. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12926. shlibpath_overrides_runpath=no
  12927. hardcode_into_libs=yes
  12928. ;;
  12929. *) # from 4.6 on, and DragonFly
  12930. shlibpath_overrides_runpath=yes
  12931. hardcode_into_libs=yes
  12932. ;;
  12933. esac
  12934. ;;
  12935. gnu*)
  12936. version_type=linux # correct to gnu/linux during the next big refactor
  12937. need_lib_prefix=no
  12938. need_version=no
  12939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12940. soname_spec='${libname}${release}${shared_ext}$major'
  12941. shlibpath_var=LD_LIBRARY_PATH
  12942. shlibpath_overrides_runpath=no
  12943. hardcode_into_libs=yes
  12944. ;;
  12945. haiku*)
  12946. version_type=linux # correct to gnu/linux during the next big refactor
  12947. need_lib_prefix=no
  12948. need_version=no
  12949. dynamic_linker="$host_os runtime_loader"
  12950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12951. soname_spec='${libname}${release}${shared_ext}$major'
  12952. shlibpath_var=LIBRARY_PATH
  12953. shlibpath_overrides_runpath=yes
  12954. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12955. hardcode_into_libs=yes
  12956. ;;
  12957. hpux9* | hpux10* | hpux11*)
  12958. # Give a soname corresponding to the major version so that dld.sl refuses to
  12959. # link against other versions.
  12960. version_type=sunos
  12961. need_lib_prefix=no
  12962. need_version=no
  12963. case $host_cpu in
  12964. ia64*)
  12965. shrext_cmds='.so'
  12966. hardcode_into_libs=yes
  12967. dynamic_linker="$host_os dld.so"
  12968. shlibpath_var=LD_LIBRARY_PATH
  12969. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12971. soname_spec='${libname}${release}${shared_ext}$major'
  12972. if test "X$HPUX_IA64_MODE" = X32; then
  12973. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12974. else
  12975. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12976. fi
  12977. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12978. ;;
  12979. hppa*64*)
  12980. shrext_cmds='.sl'
  12981. hardcode_into_libs=yes
  12982. dynamic_linker="$host_os dld.sl"
  12983. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12984. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12988. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12989. ;;
  12990. *)
  12991. shrext_cmds='.sl'
  12992. dynamic_linker="$host_os dld.sl"
  12993. shlibpath_var=SHLIB_PATH
  12994. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12996. soname_spec='${libname}${release}${shared_ext}$major'
  12997. ;;
  12998. esac
  12999. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13000. postinstall_cmds='chmod 555 $lib'
  13001. # or fails outright, so override atomically:
  13002. install_override_mode=555
  13003. ;;
  13004. interix[3-9]*)
  13005. version_type=linux # correct to gnu/linux during the next big refactor
  13006. need_lib_prefix=no
  13007. need_version=no
  13008. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13009. soname_spec='${libname}${release}${shared_ext}$major'
  13010. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13011. shlibpath_var=LD_LIBRARY_PATH
  13012. shlibpath_overrides_runpath=no
  13013. hardcode_into_libs=yes
  13014. ;;
  13015. irix5* | irix6* | nonstopux*)
  13016. case $host_os in
  13017. nonstopux*) version_type=nonstopux ;;
  13018. *)
  13019. if test "$lt_cv_prog_gnu_ld" = yes; then
  13020. version_type=linux # correct to gnu/linux during the next big refactor
  13021. else
  13022. version_type=irix
  13023. fi ;;
  13024. esac
  13025. need_lib_prefix=no
  13026. need_version=no
  13027. soname_spec='${libname}${release}${shared_ext}$major'
  13028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13029. case $host_os in
  13030. irix5* | nonstopux*)
  13031. libsuff= shlibsuff=
  13032. ;;
  13033. *)
  13034. case $LD in # libtool.m4 will add one of these switches to LD
  13035. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13036. libsuff= shlibsuff= libmagic=32-bit;;
  13037. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13038. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13039. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13040. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13041. *) libsuff= shlibsuff= libmagic=never-match;;
  13042. esac
  13043. ;;
  13044. esac
  13045. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13046. shlibpath_overrides_runpath=no
  13047. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13048. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13049. hardcode_into_libs=yes
  13050. ;;
  13051. # No shared lib support for Linux oldld, aout, or coff.
  13052. linux*oldld* | linux*aout* | linux*coff*)
  13053. dynamic_linker=no
  13054. ;;
  13055. # This must be glibc/ELF.
  13056. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13057. version_type=linux # correct to gnu/linux during the next big refactor
  13058. need_lib_prefix=no
  13059. need_version=no
  13060. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13061. soname_spec='${libname}${release}${shared_ext}$major'
  13062. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13063. shlibpath_var=LD_LIBRARY_PATH
  13064. shlibpath_overrides_runpath=no
  13065. # Some binutils ld are patched to set DT_RUNPATH
  13066. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13067. $as_echo_n "(cached) " >&6
  13068. else
  13069. lt_cv_shlibpath_overrides_runpath=no
  13070. save_LDFLAGS=$LDFLAGS
  13071. save_libdir=$libdir
  13072. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13073. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13075. /* end confdefs.h. */
  13076. int
  13077. main ()
  13078. {
  13079. ;
  13080. return 0;
  13081. }
  13082. _ACEOF
  13083. if ac_fn_cxx_try_link "$LINENO"; then :
  13084. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13085. lt_cv_shlibpath_overrides_runpath=yes
  13086. fi
  13087. fi
  13088. rm -f core conftest.err conftest.$ac_objext \
  13089. conftest$ac_exeext conftest.$ac_ext
  13090. LDFLAGS=$save_LDFLAGS
  13091. libdir=$save_libdir
  13092. fi
  13093. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13094. # This implies no fast_install, which is unacceptable.
  13095. # Some rework will be needed to allow for fast_install
  13096. # before this can be enabled.
  13097. hardcode_into_libs=yes
  13098. # Append ld.so.conf contents to the search path
  13099. if test -f /etc/ld.so.conf; then
  13100. 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' ' '`
  13101. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13102. fi
  13103. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13104. # powerpc, because MkLinux only supported shared libraries with the
  13105. # GNU dynamic linker. Since this was broken with cross compilers,
  13106. # most powerpc-linux boxes support dynamic linking these days and
  13107. # people can always --disable-shared, the test was removed, and we
  13108. # assume the GNU/Linux dynamic linker is in use.
  13109. dynamic_linker='GNU/Linux ld.so'
  13110. ;;
  13111. netbsd*)
  13112. version_type=sunos
  13113. need_lib_prefix=no
  13114. need_version=no
  13115. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13117. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13118. dynamic_linker='NetBSD (a.out) ld.so'
  13119. else
  13120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13121. soname_spec='${libname}${release}${shared_ext}$major'
  13122. dynamic_linker='NetBSD ld.elf_so'
  13123. fi
  13124. shlibpath_var=LD_LIBRARY_PATH
  13125. shlibpath_overrides_runpath=yes
  13126. hardcode_into_libs=yes
  13127. ;;
  13128. newsos6)
  13129. version_type=linux # correct to gnu/linux during the next big refactor
  13130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13131. shlibpath_var=LD_LIBRARY_PATH
  13132. shlibpath_overrides_runpath=yes
  13133. ;;
  13134. *nto* | *qnx*)
  13135. version_type=qnx
  13136. need_lib_prefix=no
  13137. need_version=no
  13138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13139. soname_spec='${libname}${release}${shared_ext}$major'
  13140. shlibpath_var=LD_LIBRARY_PATH
  13141. shlibpath_overrides_runpath=no
  13142. hardcode_into_libs=yes
  13143. dynamic_linker='ldqnx.so'
  13144. ;;
  13145. openbsd*)
  13146. version_type=sunos
  13147. sys_lib_dlsearch_path_spec="/usr/lib"
  13148. need_lib_prefix=no
  13149. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13150. case $host_os in
  13151. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13152. *) need_version=no ;;
  13153. esac
  13154. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13155. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13156. shlibpath_var=LD_LIBRARY_PATH
  13157. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13158. case $host_os in
  13159. openbsd2.[89] | openbsd2.[89].*)
  13160. shlibpath_overrides_runpath=no
  13161. ;;
  13162. *)
  13163. shlibpath_overrides_runpath=yes
  13164. ;;
  13165. esac
  13166. else
  13167. shlibpath_overrides_runpath=yes
  13168. fi
  13169. ;;
  13170. os2*)
  13171. libname_spec='$name'
  13172. shrext_cmds=".dll"
  13173. need_lib_prefix=no
  13174. library_names_spec='$libname${shared_ext} $libname.a'
  13175. dynamic_linker='OS/2 ld.exe'
  13176. shlibpath_var=LIBPATH
  13177. ;;
  13178. osf3* | osf4* | osf5*)
  13179. version_type=osf
  13180. need_lib_prefix=no
  13181. need_version=no
  13182. soname_spec='${libname}${release}${shared_ext}$major'
  13183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13184. shlibpath_var=LD_LIBRARY_PATH
  13185. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13186. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13187. ;;
  13188. rdos*)
  13189. dynamic_linker=no
  13190. ;;
  13191. solaris*)
  13192. version_type=linux # correct to gnu/linux during the next big refactor
  13193. need_lib_prefix=no
  13194. need_version=no
  13195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13196. soname_spec='${libname}${release}${shared_ext}$major'
  13197. shlibpath_var=LD_LIBRARY_PATH
  13198. shlibpath_overrides_runpath=yes
  13199. hardcode_into_libs=yes
  13200. # ldd complains unless libraries are executable
  13201. postinstall_cmds='chmod +x $lib'
  13202. ;;
  13203. sunos4*)
  13204. version_type=sunos
  13205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13206. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13207. shlibpath_var=LD_LIBRARY_PATH
  13208. shlibpath_overrides_runpath=yes
  13209. if test "$with_gnu_ld" = yes; then
  13210. need_lib_prefix=no
  13211. fi
  13212. need_version=yes
  13213. ;;
  13214. sysv4 | sysv4.3*)
  13215. version_type=linux # correct to gnu/linux during the next big refactor
  13216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13217. soname_spec='${libname}${release}${shared_ext}$major'
  13218. shlibpath_var=LD_LIBRARY_PATH
  13219. case $host_vendor in
  13220. sni)
  13221. shlibpath_overrides_runpath=no
  13222. need_lib_prefix=no
  13223. runpath_var=LD_RUN_PATH
  13224. ;;
  13225. siemens)
  13226. need_lib_prefix=no
  13227. ;;
  13228. motorola)
  13229. need_lib_prefix=no
  13230. need_version=no
  13231. shlibpath_overrides_runpath=no
  13232. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13233. ;;
  13234. esac
  13235. ;;
  13236. sysv4*MP*)
  13237. if test -d /usr/nec ;then
  13238. version_type=linux # correct to gnu/linux during the next big refactor
  13239. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13240. soname_spec='$libname${shared_ext}.$major'
  13241. shlibpath_var=LD_LIBRARY_PATH
  13242. fi
  13243. ;;
  13244. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13245. version_type=freebsd-elf
  13246. need_lib_prefix=no
  13247. need_version=no
  13248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13249. soname_spec='${libname}${release}${shared_ext}$major'
  13250. shlibpath_var=LD_LIBRARY_PATH
  13251. shlibpath_overrides_runpath=yes
  13252. hardcode_into_libs=yes
  13253. if test "$with_gnu_ld" = yes; then
  13254. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13255. else
  13256. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13257. case $host_os in
  13258. sco3.2v5*)
  13259. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13260. ;;
  13261. esac
  13262. fi
  13263. sys_lib_dlsearch_path_spec='/usr/lib'
  13264. ;;
  13265. tpf*)
  13266. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13267. version_type=linux # correct to gnu/linux during the next big refactor
  13268. need_lib_prefix=no
  13269. need_version=no
  13270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13271. shlibpath_var=LD_LIBRARY_PATH
  13272. shlibpath_overrides_runpath=no
  13273. hardcode_into_libs=yes
  13274. ;;
  13275. uts4*)
  13276. version_type=linux # correct to gnu/linux during the next big refactor
  13277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13278. soname_spec='${libname}${release}${shared_ext}$major'
  13279. shlibpath_var=LD_LIBRARY_PATH
  13280. ;;
  13281. *)
  13282. dynamic_linker=no
  13283. ;;
  13284. esac
  13285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13286. $as_echo "$dynamic_linker" >&6; }
  13287. test "$dynamic_linker" = no && can_build_shared=no
  13288. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13289. if test "$GCC" = yes; then
  13290. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13291. fi
  13292. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13293. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13294. fi
  13295. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13296. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13297. fi
  13298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13299. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13300. hardcode_action_CXX=
  13301. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13302. test -n "$runpath_var_CXX" ||
  13303. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13304. # We can hardcode non-existent directories.
  13305. if test "$hardcode_direct_CXX" != no &&
  13306. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13307. # have to relink, otherwise we might link with an installed library
  13308. # when we should be linking with a yet-to-be-installed one
  13309. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13310. test "$hardcode_minus_L_CXX" != no; then
  13311. # Linking always hardcodes the temporary library directory.
  13312. hardcode_action_CXX=relink
  13313. else
  13314. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13315. hardcode_action_CXX=immediate
  13316. fi
  13317. else
  13318. # We cannot hardcode anything, or else we can only hardcode existing
  13319. # directories.
  13320. hardcode_action_CXX=unsupported
  13321. fi
  13322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13323. $as_echo "$hardcode_action_CXX" >&6; }
  13324. if test "$hardcode_action_CXX" = relink ||
  13325. test "$inherit_rpath_CXX" = yes; then
  13326. # Fast installation is not supported
  13327. enable_fast_install=no
  13328. elif test "$shlibpath_overrides_runpath" = yes ||
  13329. test "$enable_shared" = no; then
  13330. # Fast installation is not necessary
  13331. enable_fast_install=needless
  13332. fi
  13333. fi # test -n "$compiler"
  13334. CC=$lt_save_CC
  13335. CFLAGS=$lt_save_CFLAGS
  13336. LDCXX=$LD
  13337. LD=$lt_save_LD
  13338. GCC=$lt_save_GCC
  13339. with_gnu_ld=$lt_save_with_gnu_ld
  13340. lt_cv_path_LDCXX=$lt_cv_path_LD
  13341. lt_cv_path_LD=$lt_save_path_LD
  13342. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13343. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13344. fi # test "$_lt_caught_CXX_error" != yes
  13345. ac_ext=c
  13346. ac_cpp='$CPP $CPPFLAGS'
  13347. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13348. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13349. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13350. # Find a good install program. We prefer a C program (faster),
  13351. # so one script is as good as another. But avoid the broken or
  13352. # incompatible versions:
  13353. # SysV /etc/install, /usr/sbin/install
  13354. # SunOS /usr/etc/install
  13355. # IRIX /sbin/install
  13356. # AIX /bin/install
  13357. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13358. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13359. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13360. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13361. # OS/2's system install, which has a completely different semantic
  13362. # ./install, which can be erroneously created by make from ./install.sh.
  13363. # Reject install programs that cannot install multiple files.
  13364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13365. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13366. if test -z "$INSTALL"; then
  13367. if ${ac_cv_path_install+:} false; then :
  13368. $as_echo_n "(cached) " >&6
  13369. else
  13370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13371. for as_dir in $PATH
  13372. do
  13373. IFS=$as_save_IFS
  13374. test -z "$as_dir" && as_dir=.
  13375. # Account for people who put trailing slashes in PATH elements.
  13376. case $as_dir/ in #((
  13377. ./ | .// | /[cC]/* | \
  13378. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13379. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13380. /usr/ucb/* ) ;;
  13381. *)
  13382. # OSF1 and SCO ODT 3.0 have their own names for install.
  13383. # Don't use installbsd from OSF since it installs stuff as root
  13384. # by default.
  13385. for ac_prog in ginstall scoinst install; do
  13386. for ac_exec_ext in '' $ac_executable_extensions; do
  13387. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13388. if test $ac_prog = install &&
  13389. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13390. # AIX install. It has an incompatible calling convention.
  13391. :
  13392. elif test $ac_prog = install &&
  13393. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13394. # program-specific install script used by HP pwplus--don't use.
  13395. :
  13396. else
  13397. rm -rf conftest.one conftest.two conftest.dir
  13398. echo one > conftest.one
  13399. echo two > conftest.two
  13400. mkdir conftest.dir
  13401. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13402. test -s conftest.one && test -s conftest.two &&
  13403. test -s conftest.dir/conftest.one &&
  13404. test -s conftest.dir/conftest.two
  13405. then
  13406. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13407. break 3
  13408. fi
  13409. fi
  13410. fi
  13411. done
  13412. done
  13413. ;;
  13414. esac
  13415. done
  13416. IFS=$as_save_IFS
  13417. rm -rf conftest.one conftest.two conftest.dir
  13418. fi
  13419. if test "${ac_cv_path_install+set}" = set; then
  13420. INSTALL=$ac_cv_path_install
  13421. else
  13422. # As a last resort, use the slow shell script. Don't cache a
  13423. # value for INSTALL within a source directory, because that will
  13424. # break other packages using the cache if that directory is
  13425. # removed, or if the value is a relative name.
  13426. INSTALL=$ac_install_sh
  13427. fi
  13428. fi
  13429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13430. $as_echo "$INSTALL" >&6; }
  13431. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13432. # It thinks the first close brace ends the variable substitution.
  13433. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13434. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13435. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13437. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13438. set x ${MAKE-make}
  13439. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13440. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13441. $as_echo_n "(cached) " >&6
  13442. else
  13443. cat >conftest.make <<\_ACEOF
  13444. SHELL = /bin/sh
  13445. all:
  13446. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13447. _ACEOF
  13448. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13449. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13450. *@@@%%%=?*=@@@%%%*)
  13451. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13452. *)
  13453. eval ac_cv_prog_make_${ac_make}_set=no;;
  13454. esac
  13455. rm -f conftest.make
  13456. fi
  13457. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13459. $as_echo "yes" >&6; }
  13460. SET_MAKE=
  13461. else
  13462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13463. $as_echo "no" >&6; }
  13464. SET_MAKE="MAKE=${MAKE-make}"
  13465. fi
  13466. if test -n "$ac_tool_prefix"; then
  13467. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13468. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13470. $as_echo_n "checking for $ac_word... " >&6; }
  13471. if ${ac_cv_prog_WINDRES+:} false; then :
  13472. $as_echo_n "(cached) " >&6
  13473. else
  13474. if test -n "$WINDRES"; then
  13475. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13476. else
  13477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13478. for as_dir in $PATH
  13479. do
  13480. IFS=$as_save_IFS
  13481. test -z "$as_dir" && as_dir=.
  13482. for ac_exec_ext in '' $ac_executable_extensions; do
  13483. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13484. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13486. break 2
  13487. fi
  13488. done
  13489. done
  13490. IFS=$as_save_IFS
  13491. fi
  13492. fi
  13493. WINDRES=$ac_cv_prog_WINDRES
  13494. if test -n "$WINDRES"; then
  13495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13496. $as_echo "$WINDRES" >&6; }
  13497. else
  13498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13499. $as_echo "no" >&6; }
  13500. fi
  13501. fi
  13502. if test -z "$ac_cv_prog_WINDRES"; then
  13503. ac_ct_WINDRES=$WINDRES
  13504. # Extract the first word of "windres", so it can be a program name with args.
  13505. set dummy windres; ac_word=$2
  13506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13507. $as_echo_n "checking for $ac_word... " >&6; }
  13508. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13509. $as_echo_n "(cached) " >&6
  13510. else
  13511. if test -n "$ac_ct_WINDRES"; then
  13512. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13513. else
  13514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13515. for as_dir in $PATH
  13516. do
  13517. IFS=$as_save_IFS
  13518. test -z "$as_dir" && as_dir=.
  13519. for ac_exec_ext in '' $ac_executable_extensions; do
  13520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13521. ac_cv_prog_ac_ct_WINDRES="windres"
  13522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13523. break 2
  13524. fi
  13525. done
  13526. done
  13527. IFS=$as_save_IFS
  13528. fi
  13529. fi
  13530. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13531. if test -n "$ac_ct_WINDRES"; then
  13532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13533. $as_echo "$ac_ct_WINDRES" >&6; }
  13534. else
  13535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13536. $as_echo "no" >&6; }
  13537. fi
  13538. if test "x$ac_ct_WINDRES" = x; then
  13539. WINDRES=":"
  13540. else
  13541. case $cross_compiling:$ac_tool_warned in
  13542. yes:)
  13543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13545. ac_tool_warned=yes ;;
  13546. esac
  13547. WINDRES=$ac_ct_WINDRES
  13548. fi
  13549. else
  13550. WINDRES="$ac_cv_prog_WINDRES"
  13551. fi
  13552. case "$host" in
  13553. *-*-mingw32*)
  13554. # Except on msys, where make can't handle full pathnames (bug 1972)
  13555. ;;
  13556. *)
  13557. srcdir=`cd $srcdir && pwd`
  13558. ;;
  13559. esac
  13560. INCLUDE="-I$srcdir/include"
  13561. if test x$srcdir != x.; then
  13562. INCLUDE="-Iinclude $INCLUDE"
  13563. elif test -d .hg; then
  13564. as_fn_error $? "
  13565. *** When building from Mercurial you should configure and build in a
  13566. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13567. " "$LINENO" 5
  13568. fi
  13569. BASE_CFLAGS=""
  13570. BASE_LDFLAGS=""
  13571. case "$host" in
  13572. *-*-cygwin*)
  13573. # We build SDL on cygwin without the UNIX emulation layer
  13574. save_CFLAGS="$CFLAGS"
  13575. have_no_cygwin=no
  13576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13577. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13578. CFLAGS="$save_CFLAGS -mno-cygwin"
  13579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13580. /* end confdefs.h. */
  13581. int
  13582. main ()
  13583. {
  13584. ;
  13585. return 0;
  13586. }
  13587. _ACEOF
  13588. if ac_fn_c_try_compile "$LINENO"; then :
  13589. have_no_cygwin=yes
  13590. fi
  13591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13593. $as_echo "$have_no_cygwin" >&6; }
  13594. CFLAGS="$save_CFLAGS"
  13595. if test x$have_no_cygwin = xyes; then
  13596. BASE_CFLAGS="-mno-cygwin"
  13597. BASE_LDFLAGS="-mno-cygwin"
  13598. fi
  13599. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13600. ;;
  13601. esac
  13602. # Uncomment the following line if you want to force SDL and applications
  13603. # built with it to be compiled for a particular architecture.
  13604. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13605. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13606. # The default optimization for SDL is -O3 (Bug #31)
  13607. if test "x$orig_CFLAGS" = x; then
  13608. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13609. fi
  13610. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13611. BUILD_LDFLAGS="$LDFLAGS"
  13612. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13613. ## These are common directories to find software packages
  13614. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13615. # if test -d $path/include; then
  13616. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13617. # fi
  13618. # if test -d $path/lib; then
  13619. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13620. # fi
  13621. #done
  13622. SDL_CFLAGS="$BASE_CFLAGS"
  13623. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13624. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13625. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13626. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13627. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13628. find_lib()
  13629. {
  13630. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13631. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13632. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13633. if test "$cross_compiling" = yes; then
  13634. host_lib_path=""
  13635. else
  13636. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13637. fi
  13638. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13639. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13640. if test x$lib != x; then
  13641. echo $lib
  13642. return
  13643. fi
  13644. done
  13645. }
  13646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13647. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13648. if ${ac_cv_c_const+:} false; then :
  13649. $as_echo_n "(cached) " >&6
  13650. else
  13651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13652. /* end confdefs.h. */
  13653. int
  13654. main ()
  13655. {
  13656. #ifndef __cplusplus
  13657. /* Ultrix mips cc rejects this sort of thing. */
  13658. typedef int charset[2];
  13659. const charset cs = { 0, 0 };
  13660. /* SunOS 4.1.1 cc rejects this. */
  13661. char const *const *pcpcc;
  13662. char **ppc;
  13663. /* NEC SVR4.0.2 mips cc rejects this. */
  13664. struct point {int x, y;};
  13665. static struct point const zero = {0,0};
  13666. /* AIX XL C 1.02.0.0 rejects this.
  13667. It does not let you subtract one const X* pointer from another in
  13668. an arm of an if-expression whose if-part is not a constant
  13669. expression */
  13670. const char *g = "string";
  13671. pcpcc = &g + (g ? g-g : 0);
  13672. /* HPUX 7.0 cc rejects these. */
  13673. ++pcpcc;
  13674. ppc = (char**) pcpcc;
  13675. pcpcc = (char const *const *) ppc;
  13676. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13677. char tx;
  13678. char *t = &tx;
  13679. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13680. *t++ = 0;
  13681. if (s) return 0;
  13682. }
  13683. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13684. int x[] = {25, 17};
  13685. const int *foo = &x[0];
  13686. ++foo;
  13687. }
  13688. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13689. typedef const int *iptr;
  13690. iptr p = 0;
  13691. ++p;
  13692. }
  13693. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13694. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13695. struct s { int j; const int *ap[3]; } bx;
  13696. struct s *b = &bx; b->j = 5;
  13697. }
  13698. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13699. const int foo = 10;
  13700. if (!foo) return 0;
  13701. }
  13702. return !cs[0] && !zero.x;
  13703. #endif
  13704. ;
  13705. return 0;
  13706. }
  13707. _ACEOF
  13708. if ac_fn_c_try_compile "$LINENO"; then :
  13709. ac_cv_c_const=yes
  13710. else
  13711. ac_cv_c_const=no
  13712. fi
  13713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13714. fi
  13715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13716. $as_echo "$ac_cv_c_const" >&6; }
  13717. if test $ac_cv_c_const = no; then
  13718. $as_echo "#define const /**/" >>confdefs.h
  13719. fi
  13720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13721. $as_echo_n "checking for inline... " >&6; }
  13722. if ${ac_cv_c_inline+:} false; then :
  13723. $as_echo_n "(cached) " >&6
  13724. else
  13725. ac_cv_c_inline=no
  13726. for ac_kw in inline __inline__ __inline; do
  13727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13728. /* end confdefs.h. */
  13729. #ifndef __cplusplus
  13730. typedef int foo_t;
  13731. static $ac_kw foo_t static_foo () {return 0; }
  13732. $ac_kw foo_t foo () {return 0; }
  13733. #endif
  13734. _ACEOF
  13735. if ac_fn_c_try_compile "$LINENO"; then :
  13736. ac_cv_c_inline=$ac_kw
  13737. fi
  13738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13739. test "$ac_cv_c_inline" != no && break
  13740. done
  13741. fi
  13742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13743. $as_echo "$ac_cv_c_inline" >&6; }
  13744. case $ac_cv_c_inline in
  13745. inline | yes) ;;
  13746. *)
  13747. case $ac_cv_c_inline in
  13748. no) ac_val=;;
  13749. *) ac_val=$ac_cv_c_inline;;
  13750. esac
  13751. cat >>confdefs.h <<_ACEOF
  13752. #ifndef __cplusplus
  13753. #define inline $ac_val
  13754. #endif
  13755. _ACEOF
  13756. ;;
  13757. esac
  13758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13759. $as_echo_n "checking for working volatile... " >&6; }
  13760. if ${ac_cv_c_volatile+:} false; then :
  13761. $as_echo_n "(cached) " >&6
  13762. else
  13763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13764. /* end confdefs.h. */
  13765. int
  13766. main ()
  13767. {
  13768. volatile int x;
  13769. int * volatile y = (int *) 0;
  13770. return !x && !y;
  13771. ;
  13772. return 0;
  13773. }
  13774. _ACEOF
  13775. if ac_fn_c_try_compile "$LINENO"; then :
  13776. ac_cv_c_volatile=yes
  13777. else
  13778. ac_cv_c_volatile=no
  13779. fi
  13780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13781. fi
  13782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13783. $as_echo "$ac_cv_c_volatile" >&6; }
  13784. if test $ac_cv_c_volatile = no; then
  13785. $as_echo "#define volatile /**/" >>confdefs.h
  13786. fi
  13787. # Check whether --enable-assertions was given.
  13788. if test "${enable_assertions+set}" = set; then :
  13789. enableval=$enable_assertions;
  13790. else
  13791. enable_assertions=auto
  13792. fi
  13793. case "$enable_assertions" in
  13794. auto) # Use optimization settings to determine assertion level
  13795. ;;
  13796. disabled)
  13797. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13798. ;;
  13799. release)
  13800. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13801. ;;
  13802. enabled)
  13803. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13804. ;;
  13805. paranoid)
  13806. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13807. ;;
  13808. *)
  13809. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13810. ;;
  13811. esac
  13812. # Check whether --enable-dependency-tracking was given.
  13813. if test "${enable_dependency_tracking+set}" = set; then :
  13814. enableval=$enable_dependency_tracking;
  13815. else
  13816. enable_dependency_tracking=yes
  13817. fi
  13818. if test x$enable_dependency_tracking = xyes; then
  13819. have_gcc_mmd_mt=no
  13820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13821. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13823. /* end confdefs.h. */
  13824. #if !defined(__GNUC__) || __GNUC__ < 3
  13825. #error Dependency tracking requires GCC 3.0 or newer
  13826. #endif
  13827. int
  13828. main ()
  13829. {
  13830. ;
  13831. return 0;
  13832. }
  13833. _ACEOF
  13834. if ac_fn_c_try_compile "$LINENO"; then :
  13835. have_gcc_mmd_mt=yes
  13836. fi
  13837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13839. $as_echo "$have_gcc_mmd_mt" >&6; }
  13840. if test x$have_gcc_mmd_mt = xyes; then
  13841. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13842. fi
  13843. fi
  13844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13845. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13846. have_no_undefined=no
  13847. case "$host" in
  13848. *-*-openbsd*)
  13849. ;;
  13850. *)
  13851. save_LDFLAGS="$LDFLAGS"
  13852. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13854. /* end confdefs.h. */
  13855. int
  13856. main ()
  13857. {
  13858. ;
  13859. return 0;
  13860. }
  13861. _ACEOF
  13862. if ac_fn_c_try_link "$LINENO"; then :
  13863. have_no_undefined=yes
  13864. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13865. fi
  13866. rm -f core conftest.err conftest.$ac_objext \
  13867. conftest$ac_exeext conftest.$ac_ext
  13868. LDFLAGS="$save_LDFLAGS"
  13869. ;;
  13870. esac
  13871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13872. $as_echo "$have_no_undefined" >&6; }
  13873. # Check whether --enable-libc was given.
  13874. if test "${enable_libc+set}" = set; then :
  13875. enableval=$enable_libc;
  13876. else
  13877. enable_libc=yes
  13878. fi
  13879. if test x$enable_libc = xyes; then
  13880. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13882. $as_echo_n "checking for ANSI C header files... " >&6; }
  13883. if ${ac_cv_header_stdc+:} false; then :
  13884. $as_echo_n "(cached) " >&6
  13885. else
  13886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13887. /* end confdefs.h. */
  13888. #include <stdlib.h>
  13889. #include <stdarg.h>
  13890. #include <string.h>
  13891. #include <float.h>
  13892. int
  13893. main ()
  13894. {
  13895. ;
  13896. return 0;
  13897. }
  13898. _ACEOF
  13899. if ac_fn_c_try_compile "$LINENO"; then :
  13900. ac_cv_header_stdc=yes
  13901. else
  13902. ac_cv_header_stdc=no
  13903. fi
  13904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13905. if test $ac_cv_header_stdc = yes; then
  13906. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13908. /* end confdefs.h. */
  13909. #include <string.h>
  13910. _ACEOF
  13911. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13912. $EGREP "memchr" >/dev/null 2>&1; then :
  13913. else
  13914. ac_cv_header_stdc=no
  13915. fi
  13916. rm -f conftest*
  13917. fi
  13918. if test $ac_cv_header_stdc = yes; then
  13919. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13921. /* end confdefs.h. */
  13922. #include <stdlib.h>
  13923. _ACEOF
  13924. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13925. $EGREP "free" >/dev/null 2>&1; then :
  13926. else
  13927. ac_cv_header_stdc=no
  13928. fi
  13929. rm -f conftest*
  13930. fi
  13931. if test $ac_cv_header_stdc = yes; then
  13932. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13933. if test "$cross_compiling" = yes; then :
  13934. :
  13935. else
  13936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13937. /* end confdefs.h. */
  13938. #include <ctype.h>
  13939. #include <stdlib.h>
  13940. #if ((' ' & 0x0FF) == 0x020)
  13941. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13942. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13943. #else
  13944. # define ISLOWER(c) \
  13945. (('a' <= (c) && (c) <= 'i') \
  13946. || ('j' <= (c) && (c) <= 'r') \
  13947. || ('s' <= (c) && (c) <= 'z'))
  13948. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13949. #endif
  13950. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13951. int
  13952. main ()
  13953. {
  13954. int i;
  13955. for (i = 0; i < 256; i++)
  13956. if (XOR (islower (i), ISLOWER (i))
  13957. || toupper (i) != TOUPPER (i))
  13958. return 2;
  13959. return 0;
  13960. }
  13961. _ACEOF
  13962. if ac_fn_c_try_run "$LINENO"; then :
  13963. else
  13964. ac_cv_header_stdc=no
  13965. fi
  13966. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13967. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13968. fi
  13969. fi
  13970. fi
  13971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13972. $as_echo "$ac_cv_header_stdc" >&6; }
  13973. if test $ac_cv_header_stdc = yes; then
  13974. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13975. fi
  13976. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
  13977. do :
  13978. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13979. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13980. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13981. cat >>confdefs.h <<_ACEOF
  13982. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13983. _ACEOF
  13984. fi
  13985. done
  13986. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13987. if test "x$ac_cv_type_size_t" = xyes; then :
  13988. else
  13989. cat >>confdefs.h <<_ACEOF
  13990. #define size_t unsigned int
  13991. _ACEOF
  13992. fi
  13993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13994. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13995. if ${ac_cv_define_M_PI+:} false; then :
  13996. $as_echo_n "(cached) " >&6
  13997. else
  13998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13999. /* end confdefs.h. */
  14000. #include <math.h>
  14001. #ifdef M_PI
  14002. YES_IS_DEFINED
  14003. #endif
  14004. _ACEOF
  14005. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14006. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14007. ac_cv_define_M_PI=yes
  14008. else
  14009. ac_cv_define_M_PI=no
  14010. fi
  14011. rm -f conftest*
  14012. fi
  14013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14014. $as_echo "$ac_cv_define_M_PI" >&6; }
  14015. if test "$ac_cv_define_M_PI" = "yes" ; then
  14016. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14017. fi
  14018. case "$host" in
  14019. *-*-cygwin* | *-*-mingw32*)
  14020. ;;
  14021. *)
  14022. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14023. # for constant arguments. Useless!
  14024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14025. $as_echo_n "checking for working alloca.h... " >&6; }
  14026. if ${ac_cv_working_alloca_h+:} false; then :
  14027. $as_echo_n "(cached) " >&6
  14028. else
  14029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14030. /* end confdefs.h. */
  14031. #include <alloca.h>
  14032. int
  14033. main ()
  14034. {
  14035. char *p = (char *) alloca (2 * sizeof (int));
  14036. if (p) return 0;
  14037. ;
  14038. return 0;
  14039. }
  14040. _ACEOF
  14041. if ac_fn_c_try_link "$LINENO"; then :
  14042. ac_cv_working_alloca_h=yes
  14043. else
  14044. ac_cv_working_alloca_h=no
  14045. fi
  14046. rm -f core conftest.err conftest.$ac_objext \
  14047. conftest$ac_exeext conftest.$ac_ext
  14048. fi
  14049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14050. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14051. if test $ac_cv_working_alloca_h = yes; then
  14052. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14053. fi
  14054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14055. $as_echo_n "checking for alloca... " >&6; }
  14056. if ${ac_cv_func_alloca_works+:} false; then :
  14057. $as_echo_n "(cached) " >&6
  14058. else
  14059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14060. /* end confdefs.h. */
  14061. #ifdef __GNUC__
  14062. # define alloca __builtin_alloca
  14063. #else
  14064. # ifdef _MSC_VER
  14065. # include <malloc.h>
  14066. # define alloca _alloca
  14067. # else
  14068. # ifdef HAVE_ALLOCA_H
  14069. # include <alloca.h>
  14070. # else
  14071. # ifdef _AIX
  14072. #pragma alloca
  14073. # else
  14074. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14075. void *alloca (size_t);
  14076. # endif
  14077. # endif
  14078. # endif
  14079. # endif
  14080. #endif
  14081. int
  14082. main ()
  14083. {
  14084. char *p = (char *) alloca (1);
  14085. if (p) return 0;
  14086. ;
  14087. return 0;
  14088. }
  14089. _ACEOF
  14090. if ac_fn_c_try_link "$LINENO"; then :
  14091. ac_cv_func_alloca_works=yes
  14092. else
  14093. ac_cv_func_alloca_works=no
  14094. fi
  14095. rm -f core conftest.err conftest.$ac_objext \
  14096. conftest$ac_exeext conftest.$ac_ext
  14097. fi
  14098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14099. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14100. if test $ac_cv_func_alloca_works = yes; then
  14101. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14102. else
  14103. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14104. # that cause trouble. Some versions do not even contain alloca or
  14105. # contain a buggy version. If you still want to use their alloca,
  14106. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14107. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14108. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14110. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14111. if ${ac_cv_os_cray+:} false; then :
  14112. $as_echo_n "(cached) " >&6
  14113. else
  14114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14115. /* end confdefs.h. */
  14116. #if defined CRAY && ! defined CRAY2
  14117. webecray
  14118. #else
  14119. wenotbecray
  14120. #endif
  14121. _ACEOF
  14122. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14123. $EGREP "webecray" >/dev/null 2>&1; then :
  14124. ac_cv_os_cray=yes
  14125. else
  14126. ac_cv_os_cray=no
  14127. fi
  14128. rm -f conftest*
  14129. fi
  14130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14131. $as_echo "$ac_cv_os_cray" >&6; }
  14132. if test $ac_cv_os_cray = yes; then
  14133. for ac_func in _getb67 GETB67 getb67; do
  14134. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14135. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14136. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14137. cat >>confdefs.h <<_ACEOF
  14138. #define CRAY_STACKSEG_END $ac_func
  14139. _ACEOF
  14140. break
  14141. fi
  14142. done
  14143. fi
  14144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14145. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14146. if ${ac_cv_c_stack_direction+:} false; then :
  14147. $as_echo_n "(cached) " >&6
  14148. else
  14149. if test "$cross_compiling" = yes; then :
  14150. ac_cv_c_stack_direction=0
  14151. else
  14152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14153. /* end confdefs.h. */
  14154. $ac_includes_default
  14155. int
  14156. find_stack_direction (int *addr, int depth)
  14157. {
  14158. int dir, dummy = 0;
  14159. if (! addr)
  14160. addr = &dummy;
  14161. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14162. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14163. return dir + dummy;
  14164. }
  14165. int
  14166. main (int argc, char **argv)
  14167. {
  14168. return find_stack_direction (0, argc + !argv + 20) < 0;
  14169. }
  14170. _ACEOF
  14171. if ac_fn_c_try_run "$LINENO"; then :
  14172. ac_cv_c_stack_direction=1
  14173. else
  14174. ac_cv_c_stack_direction=-1
  14175. fi
  14176. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14177. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14178. fi
  14179. fi
  14180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14181. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14182. cat >>confdefs.h <<_ACEOF
  14183. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14184. _ACEOF
  14185. fi
  14186. ;;
  14187. esac
  14188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14189. $as_echo_n "checking for working memcmp... " >&6; }
  14190. if ${ac_cv_func_memcmp_working+:} false; then :
  14191. $as_echo_n "(cached) " >&6
  14192. else
  14193. if test "$cross_compiling" = yes; then :
  14194. ac_cv_func_memcmp_working=no
  14195. else
  14196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14197. /* end confdefs.h. */
  14198. $ac_includes_default
  14199. int
  14200. main ()
  14201. {
  14202. /* Some versions of memcmp are not 8-bit clean. */
  14203. char c0 = '\100', c1 = '\200', c2 = '\201';
  14204. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14205. return 1;
  14206. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14207. or more and with at least one buffer not starting on a 4-byte boundary.
  14208. William Lewis provided this test program. */
  14209. {
  14210. char foo[21];
  14211. char bar[21];
  14212. int i;
  14213. for (i = 0; i < 4; i++)
  14214. {
  14215. char *a = foo + i;
  14216. char *b = bar + i;
  14217. strcpy (a, "--------01111111");
  14218. strcpy (b, "--------10000000");
  14219. if (memcmp (a, b, 16) >= 0)
  14220. return 1;
  14221. }
  14222. return 0;
  14223. }
  14224. ;
  14225. return 0;
  14226. }
  14227. _ACEOF
  14228. if ac_fn_c_try_run "$LINENO"; then :
  14229. ac_cv_func_memcmp_working=yes
  14230. else
  14231. ac_cv_func_memcmp_working=no
  14232. fi
  14233. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14234. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14235. fi
  14236. fi
  14237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14238. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14239. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14240. *" memcmp.$ac_objext "* ) ;;
  14241. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14242. ;;
  14243. esac
  14244. if test x$ac_cv_func_memcmp_working = xyes; then
  14245. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14246. fi
  14247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14248. $as_echo_n "checking for working strtod... " >&6; }
  14249. if ${ac_cv_func_strtod+:} false; then :
  14250. $as_echo_n "(cached) " >&6
  14251. else
  14252. if test "$cross_compiling" = yes; then :
  14253. ac_cv_func_strtod=no
  14254. else
  14255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14256. /* end confdefs.h. */
  14257. $ac_includes_default
  14258. #ifndef strtod
  14259. double strtod ();
  14260. #endif
  14261. int
  14262. main()
  14263. {
  14264. {
  14265. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14266. char *string = " +69";
  14267. char *term;
  14268. double value;
  14269. value = strtod (string, &term);
  14270. if (value != 69 || term != (string + 4))
  14271. return 1;
  14272. }
  14273. {
  14274. /* Under Solaris 2.4, strtod returns the wrong value for the
  14275. terminating character under some conditions. */
  14276. char *string = "NaN";
  14277. char *term;
  14278. strtod (string, &term);
  14279. if (term != string && *(term - 1) == 0)
  14280. return 1;
  14281. }
  14282. return 0;
  14283. }
  14284. _ACEOF
  14285. if ac_fn_c_try_run "$LINENO"; then :
  14286. ac_cv_func_strtod=yes
  14287. else
  14288. ac_cv_func_strtod=no
  14289. fi
  14290. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14291. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14292. fi
  14293. fi
  14294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14295. $as_echo "$ac_cv_func_strtod" >&6; }
  14296. if test $ac_cv_func_strtod = no; then
  14297. case " $LIBOBJS " in
  14298. *" strtod.$ac_objext "* ) ;;
  14299. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14300. ;;
  14301. esac
  14302. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14303. if test "x$ac_cv_func_pow" = xyes; then :
  14304. fi
  14305. if test $ac_cv_func_pow = no; then
  14306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14307. $as_echo_n "checking for pow in -lm... " >&6; }
  14308. if ${ac_cv_lib_m_pow+:} false; then :
  14309. $as_echo_n "(cached) " >&6
  14310. else
  14311. ac_check_lib_save_LIBS=$LIBS
  14312. LIBS="-lm $LIBS"
  14313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14314. /* end confdefs.h. */
  14315. /* Override any GCC internal prototype to avoid an error.
  14316. Use char because int might match the return type of a GCC
  14317. builtin and then its argument prototype would still apply. */
  14318. #ifdef __cplusplus
  14319. extern "C"
  14320. #endif
  14321. char pow ();
  14322. int
  14323. main ()
  14324. {
  14325. return pow ();
  14326. ;
  14327. return 0;
  14328. }
  14329. _ACEOF
  14330. if ac_fn_c_try_link "$LINENO"; then :
  14331. ac_cv_lib_m_pow=yes
  14332. else
  14333. ac_cv_lib_m_pow=no
  14334. fi
  14335. rm -f core conftest.err conftest.$ac_objext \
  14336. conftest$ac_exeext conftest.$ac_ext
  14337. LIBS=$ac_check_lib_save_LIBS
  14338. fi
  14339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14340. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14341. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14342. POW_LIB=-lm
  14343. else
  14344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14345. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14346. fi
  14347. fi
  14348. fi
  14349. if test x$ac_cv_func_strtod = xyes; then
  14350. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14351. fi
  14352. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14353. if test "x$ac_cv_func_mprotect" = xyes; then :
  14354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14355. /* end confdefs.h. */
  14356. #include <sys/types.h>
  14357. #include <sys/mman.h>
  14358. int
  14359. main ()
  14360. {
  14361. ;
  14362. return 0;
  14363. }
  14364. _ACEOF
  14365. if ac_fn_c_try_compile "$LINENO"; then :
  14366. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14367. fi
  14368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14369. fi
  14370. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll
  14371. do :
  14372. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14373. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14374. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14375. cat >>confdefs.h <<_ACEOF
  14376. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14377. _ACEOF
  14378. fi
  14379. done
  14380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14381. $as_echo_n "checking for pow in -lm... " >&6; }
  14382. if ${ac_cv_lib_m_pow+:} false; then :
  14383. $as_echo_n "(cached) " >&6
  14384. else
  14385. ac_check_lib_save_LIBS=$LIBS
  14386. LIBS="-lm $LIBS"
  14387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14388. /* end confdefs.h. */
  14389. /* Override any GCC internal prototype to avoid an error.
  14390. Use char because int might match the return type of a GCC
  14391. builtin and then its argument prototype would still apply. */
  14392. #ifdef __cplusplus
  14393. extern "C"
  14394. #endif
  14395. char pow ();
  14396. int
  14397. main ()
  14398. {
  14399. return pow ();
  14400. ;
  14401. return 0;
  14402. }
  14403. _ACEOF
  14404. if ac_fn_c_try_link "$LINENO"; then :
  14405. ac_cv_lib_m_pow=yes
  14406. else
  14407. ac_cv_lib_m_pow=no
  14408. fi
  14409. rm -f core conftest.err conftest.$ac_objext \
  14410. conftest$ac_exeext conftest.$ac_ext
  14411. LIBS=$ac_check_lib_save_LIBS
  14412. fi
  14413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14414. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14415. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14416. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14417. fi
  14418. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14419. do :
  14420. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14421. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14422. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14423. cat >>confdefs.h <<_ACEOF
  14424. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14425. _ACEOF
  14426. fi
  14427. done
  14428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14429. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14430. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14431. $as_echo_n "(cached) " >&6
  14432. else
  14433. ac_check_lib_save_LIBS=$LIBS
  14434. LIBS="-liconv $LIBS"
  14435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14436. /* end confdefs.h. */
  14437. /* Override any GCC internal prototype to avoid an error.
  14438. Use char because int might match the return type of a GCC
  14439. builtin and then its argument prototype would still apply. */
  14440. #ifdef __cplusplus
  14441. extern "C"
  14442. #endif
  14443. char iconv_open ();
  14444. int
  14445. main ()
  14446. {
  14447. return iconv_open ();
  14448. ;
  14449. return 0;
  14450. }
  14451. _ACEOF
  14452. if ac_fn_c_try_link "$LINENO"; then :
  14453. ac_cv_lib_iconv_iconv_open=yes
  14454. else
  14455. ac_cv_lib_iconv_iconv_open=no
  14456. fi
  14457. rm -f core conftest.err conftest.$ac_objext \
  14458. conftest$ac_exeext conftest.$ac_ext
  14459. LIBS=$ac_check_lib_save_LIBS
  14460. fi
  14461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14462. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14463. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14464. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14465. fi
  14466. for ac_func in iconv
  14467. do :
  14468. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14469. if test "x$ac_cv_func_iconv" = xyes; then :
  14470. cat >>confdefs.h <<_ACEOF
  14471. #define HAVE_ICONV 1
  14472. _ACEOF
  14473. fi
  14474. done
  14475. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14476. "
  14477. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14478. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14479. fi
  14480. fi
  14481. # Check whether --enable-gcc-atomics was given.
  14482. if test "${enable_gcc_atomics+set}" = set; then :
  14483. enableval=$enable_gcc_atomics;
  14484. else
  14485. enable_gcc_atomics=yes
  14486. fi
  14487. if test x$enable_gcc_atomics = xyes; then
  14488. have_gcc_atomics=no
  14489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14490. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14492. /* end confdefs.h. */
  14493. int
  14494. main ()
  14495. {
  14496. int a;
  14497. void *x, *y, *z;
  14498. __sync_lock_test_and_set(&a, 4);
  14499. __sync_lock_test_and_set(&x, y);
  14500. __sync_fetch_and_add(&a, 1);
  14501. __sync_bool_compare_and_swap(&a, 5, 10);
  14502. __sync_bool_compare_and_swap(&x, y, z);
  14503. ;
  14504. return 0;
  14505. }
  14506. _ACEOF
  14507. if ac_fn_c_try_link "$LINENO"; then :
  14508. have_gcc_atomics=yes
  14509. fi
  14510. rm -f core conftest.err conftest.$ac_objext \
  14511. conftest$ac_exeext conftest.$ac_ext
  14512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14513. $as_echo "$have_gcc_atomics" >&6; }
  14514. if test x$have_gcc_atomics = xyes; then
  14515. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14516. else
  14517. # See if we have the minimum operation needed for GCC atomics
  14518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14519. /* end confdefs.h. */
  14520. int
  14521. main ()
  14522. {
  14523. int a;
  14524. __sync_lock_test_and_set(&a, 1);
  14525. __sync_lock_release(&a);
  14526. ;
  14527. return 0;
  14528. }
  14529. _ACEOF
  14530. if ac_fn_c_try_link "$LINENO"; then :
  14531. have_gcc_sync_lock_test_and_set=yes
  14532. fi
  14533. rm -f core conftest.err conftest.$ac_objext \
  14534. conftest$ac_exeext conftest.$ac_ext
  14535. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14536. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14537. fi
  14538. fi
  14539. fi
  14540. # Standard C sources
  14541. SOURCES="$SOURCES $srcdir/src/*.c"
  14542. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14543. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14544. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14545. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14546. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14547. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14548. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14549. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14550. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14551. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14552. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14553. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14554. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14555. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14556. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14557. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14558. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14559. # Check whether --enable-atomic was given.
  14560. if test "${enable_atomic+set}" = set; then :
  14561. enableval=$enable_atomic;
  14562. else
  14563. enable_atomic=yes
  14564. fi
  14565. if test x$enable_atomic != xyes; then
  14566. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14567. else
  14568. SUMMARY_modules="${SUMMARY_modules} atomic"
  14569. fi
  14570. # Check whether --enable-audio was given.
  14571. if test "${enable_audio+set}" = set; then :
  14572. enableval=$enable_audio;
  14573. else
  14574. enable_audio=yes
  14575. fi
  14576. if test x$enable_audio != xyes; then
  14577. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14578. else
  14579. SUMMARY_modules="${SUMMARY_modules} audio"
  14580. fi
  14581. # Check whether --enable-video was given.
  14582. if test "${enable_video+set}" = set; then :
  14583. enableval=$enable_video;
  14584. else
  14585. enable_video=yes
  14586. fi
  14587. if test x$enable_video != xyes; then
  14588. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14589. else
  14590. SUMMARY_modules="${SUMMARY_modules} video"
  14591. fi
  14592. # Check whether --enable-render was given.
  14593. if test "${enable_render+set}" = set; then :
  14594. enableval=$enable_render;
  14595. else
  14596. enable_render=yes
  14597. fi
  14598. if test x$enable_render != xyes; then
  14599. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14600. else
  14601. SUMMARY_modules="${SUMMARY_modules} render"
  14602. fi
  14603. # Check whether --enable-events was given.
  14604. if test "${enable_events+set}" = set; then :
  14605. enableval=$enable_events;
  14606. else
  14607. enable_events=yes
  14608. fi
  14609. if test x$enable_events != xyes; then
  14610. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14611. else
  14612. SUMMARY_modules="${SUMMARY_modules} events"
  14613. fi
  14614. # Check whether --enable-joystick was given.
  14615. if test "${enable_joystick+set}" = set; then :
  14616. enableval=$enable_joystick;
  14617. else
  14618. enable_joystick=yes
  14619. fi
  14620. if test x$enable_joystick != xyes; then
  14621. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14622. else
  14623. SUMMARY_modules="${SUMMARY_modules} joystick"
  14624. fi
  14625. # Check whether --enable-haptic was given.
  14626. if test "${enable_haptic+set}" = set; then :
  14627. enableval=$enable_haptic;
  14628. else
  14629. enable_haptic=yes
  14630. fi
  14631. if test x$enable_haptic != xyes; then
  14632. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14633. else
  14634. SUMMARY_modules="${SUMMARY_modules} haptic"
  14635. fi
  14636. # Check whether --enable-power was given.
  14637. if test "${enable_power+set}" = set; then :
  14638. enableval=$enable_power;
  14639. else
  14640. enable_power=yes
  14641. fi
  14642. if test x$enable_power != xyes; then
  14643. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14644. else
  14645. SUMMARY_modules="${SUMMARY_modules} power"
  14646. fi
  14647. # Check whether --enable-filesystem was given.
  14648. if test "${enable_filesystem+set}" = set; then :
  14649. enableval=$enable_filesystem;
  14650. else
  14651. enable_filesystem=yes
  14652. fi
  14653. if test x$enable_filesystem != xyes; then
  14654. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14655. else
  14656. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14657. fi
  14658. # Check whether --enable-threads was given.
  14659. if test "${enable_threads+set}" = set; then :
  14660. enableval=$enable_threads;
  14661. else
  14662. enable_threads=yes
  14663. fi
  14664. if test x$enable_threads != xyes; then
  14665. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14666. else
  14667. SUMMARY_modules="${SUMMARY_modules} threads"
  14668. fi
  14669. # Check whether --enable-timers was given.
  14670. if test "${enable_timers+set}" = set; then :
  14671. enableval=$enable_timers;
  14672. else
  14673. enable_timers=yes
  14674. fi
  14675. if test x$enable_timers != xyes; then
  14676. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14677. else
  14678. SUMMARY_modules="${SUMMARY_modules} timers"
  14679. fi
  14680. # Check whether --enable-file was given.
  14681. if test "${enable_file+set}" = set; then :
  14682. enableval=$enable_file;
  14683. else
  14684. enable_file=yes
  14685. fi
  14686. if test x$enable_file != xyes; then
  14687. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14688. else
  14689. SUMMARY_modules="${SUMMARY_modules} file"
  14690. fi
  14691. # Check whether --enable-loadso was given.
  14692. if test "${enable_loadso+set}" = set; then :
  14693. enableval=$enable_loadso;
  14694. else
  14695. enable_loadso=yes
  14696. fi
  14697. if test x$enable_loadso != xyes; then
  14698. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14699. else
  14700. SUMMARY_modules="${SUMMARY_modules} loadso"
  14701. fi
  14702. # Check whether --enable-cpuinfo was given.
  14703. if test "${enable_cpuinfo+set}" = set; then :
  14704. enableval=$enable_cpuinfo;
  14705. else
  14706. enable_cpuinfo=yes
  14707. fi
  14708. if test x$enable_cpuinfo != xyes; then
  14709. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14710. else
  14711. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14712. fi
  14713. # Check whether --enable-assembly was given.
  14714. if test "${enable_assembly+set}" = set; then :
  14715. enableval=$enable_assembly;
  14716. else
  14717. enable_assembly=yes
  14718. fi
  14719. if test x$enable_assembly = xyes; then
  14720. SUMMARY_modules="${SUMMARY_modules} assembly"
  14721. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14722. # Make sure that we don't generate floating point code that would
  14723. # cause illegal instruction exceptions on older processors
  14724. case "$host" in
  14725. *-*-darwin*)
  14726. # Don't need to worry about Apple hardware, it's all SSE capable
  14727. default_ssemath=yes
  14728. ;;
  14729. *64-*-*)
  14730. # x86 64-bit architectures all have SSE instructions
  14731. default_ssemath=yes
  14732. ;;
  14733. *)
  14734. default_ssemath=no
  14735. ;;
  14736. esac
  14737. # Check whether --enable-ssemath was given.
  14738. if test "${enable_ssemath+set}" = set; then :
  14739. enableval=$enable_ssemath;
  14740. else
  14741. enable_ssemath=$default_ssemath
  14742. fi
  14743. if test x$enable_ssemath = xno; then
  14744. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14745. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14746. fi
  14747. fi
  14748. # Check whether --enable-mmx was given.
  14749. if test "${enable_mmx+set}" = set; then :
  14750. enableval=$enable_mmx;
  14751. else
  14752. enable_mmx=yes
  14753. fi
  14754. if test x$enable_mmx = xyes; then
  14755. save_CFLAGS="$CFLAGS"
  14756. have_gcc_mmx=no
  14757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14758. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14759. mmx_CFLAGS="-mmmx"
  14760. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14762. /* end confdefs.h. */
  14763. #ifdef __MINGW32__
  14764. #include <_mingw.h>
  14765. #ifdef __MINGW64_VERSION_MAJOR
  14766. #include <intrin.h>
  14767. #else
  14768. #include <mmintrin.h>
  14769. #endif
  14770. #else
  14771. #include <mmintrin.h>
  14772. #endif
  14773. #ifndef __MMX__
  14774. #error Assembler CPP flag not enabled
  14775. #endif
  14776. int
  14777. main ()
  14778. {
  14779. ;
  14780. return 0;
  14781. }
  14782. _ACEOF
  14783. if ac_fn_c_try_compile "$LINENO"; then :
  14784. have_gcc_mmx=yes
  14785. fi
  14786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14788. $as_echo "$have_gcc_mmx" >&6; }
  14789. CFLAGS="$save_CFLAGS"
  14790. if test x$have_gcc_mmx = xyes; then
  14791. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14792. SUMMARY_math="${SUMMARY_math} mmx"
  14793. fi
  14794. fi
  14795. # Check whether --enable-3dnow was given.
  14796. if test "${enable_3dnow+set}" = set; then :
  14797. enableval=$enable_3dnow;
  14798. else
  14799. enable_3dnow=yes
  14800. fi
  14801. if test x$enable_3dnow = xyes; then
  14802. save_CFLAGS="$CFLAGS"
  14803. have_gcc_3dnow=no
  14804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14805. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14806. amd3dnow_CFLAGS="-m3dnow"
  14807. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14809. /* end confdefs.h. */
  14810. #include <mm3dnow.h>
  14811. #ifndef __3dNOW__
  14812. #error Assembler CPP flag not enabled
  14813. #endif
  14814. int
  14815. main ()
  14816. {
  14817. void *p = 0;
  14818. _m_prefetch(p);
  14819. ;
  14820. return 0;
  14821. }
  14822. _ACEOF
  14823. if ac_fn_c_try_link "$LINENO"; then :
  14824. have_gcc_3dnow=yes
  14825. fi
  14826. rm -f core conftest.err conftest.$ac_objext \
  14827. conftest$ac_exeext conftest.$ac_ext
  14828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14829. $as_echo "$have_gcc_3dnow" >&6; }
  14830. CFLAGS="$save_CFLAGS"
  14831. if test x$have_gcc_3dnow = xyes; then
  14832. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14833. SUMMARY_math="${SUMMARY_math} 3dnow"
  14834. fi
  14835. fi
  14836. # Check whether --enable-sse was given.
  14837. if test "${enable_sse+set}" = set; then :
  14838. enableval=$enable_sse;
  14839. else
  14840. enable_sse=yes
  14841. fi
  14842. if test x$enable_sse = xyes; then
  14843. save_CFLAGS="$CFLAGS"
  14844. have_gcc_sse=no
  14845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14846. $as_echo_n "checking for GCC -msse option... " >&6; }
  14847. sse_CFLAGS="-msse"
  14848. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14850. /* end confdefs.h. */
  14851. #ifdef __MINGW32__
  14852. #include <_mingw.h>
  14853. #ifdef __MINGW64_VERSION_MAJOR
  14854. #include <intrin.h>
  14855. #else
  14856. #include <xmmintrin.h>
  14857. #endif
  14858. #else
  14859. #include <xmmintrin.h>
  14860. #endif
  14861. #ifndef __SSE__
  14862. #error Assembler CPP flag not enabled
  14863. #endif
  14864. int
  14865. main ()
  14866. {
  14867. ;
  14868. return 0;
  14869. }
  14870. _ACEOF
  14871. if ac_fn_c_try_compile "$LINENO"; then :
  14872. have_gcc_sse=yes
  14873. fi
  14874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14876. $as_echo "$have_gcc_sse" >&6; }
  14877. CFLAGS="$save_CFLAGS"
  14878. if test x$have_gcc_sse = xyes; then
  14879. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14880. SUMMARY_math="${SUMMARY_math} sse"
  14881. fi
  14882. fi
  14883. # Check whether --enable-sse2 was given.
  14884. if test "${enable_sse2+set}" = set; then :
  14885. enableval=$enable_sse2;
  14886. else
  14887. enable_sse2=$default_ssemath
  14888. fi
  14889. if test x$enable_sse2 = xyes; then
  14890. save_CFLAGS="$CFLAGS"
  14891. have_gcc_sse2=no
  14892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14893. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14894. sse2_CFLAGS="-msse2"
  14895. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14897. /* end confdefs.h. */
  14898. #ifdef __MINGW32__
  14899. #include <_mingw.h>
  14900. #ifdef __MINGW64_VERSION_MAJOR
  14901. #include <intrin.h>
  14902. #else
  14903. #include <emmintrin.h>
  14904. #endif
  14905. #else
  14906. #include <emmintrin.h>
  14907. #endif
  14908. #ifndef __SSE2__
  14909. #error Assembler CPP flag not enabled
  14910. #endif
  14911. int
  14912. main ()
  14913. {
  14914. ;
  14915. return 0;
  14916. }
  14917. _ACEOF
  14918. if ac_fn_c_try_compile "$LINENO"; then :
  14919. have_gcc_sse2=yes
  14920. fi
  14921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14923. $as_echo "$have_gcc_sse2" >&6; }
  14924. CFLAGS="$save_CFLAGS"
  14925. if test x$have_gcc_sse2 = xyes; then
  14926. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14927. SUMMARY_math="${SUMMARY_math} sse2"
  14928. fi
  14929. fi
  14930. # Check whether --enable-sse3 was given.
  14931. if test "${enable_sse3+set}" = set; then :
  14932. enableval=$enable_sse3;
  14933. else
  14934. enable_sse3=$default_ssemath
  14935. fi
  14936. if test x$enable_sse3 = xyes; then
  14937. save_CFLAGS="$CFLAGS"
  14938. have_gcc_sse3=no
  14939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  14940. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  14941. sse3_CFLAGS="-msse3"
  14942. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  14943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14944. /* end confdefs.h. */
  14945. #ifdef __MINGW32__
  14946. #include <_mingw.h>
  14947. #ifdef __MINGW64_VERSION_MAJOR
  14948. #include <intrin.h>
  14949. #else
  14950. #include <pmmintrin.h>
  14951. #endif
  14952. #else
  14953. #include <pmmintrin.h>
  14954. #endif
  14955. #ifndef __SSE2__
  14956. #error Assembler CPP flag not enabled
  14957. #endif
  14958. int
  14959. main ()
  14960. {
  14961. ;
  14962. return 0;
  14963. }
  14964. _ACEOF
  14965. if ac_fn_c_try_compile "$LINENO"; then :
  14966. have_gcc_sse3=yes
  14967. fi
  14968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  14970. $as_echo "$have_gcc_sse3" >&6; }
  14971. CFLAGS="$save_CFLAGS"
  14972. if test x$have_gcc_sse3 = xyes; then
  14973. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  14974. SUMMARY_math="${SUMMARY_math} sse3"
  14975. fi
  14976. fi
  14977. # Check whether --enable-altivec was given.
  14978. if test "${enable_altivec+set}" = set; then :
  14979. enableval=$enable_altivec;
  14980. else
  14981. enable_altivec=yes
  14982. fi
  14983. if test x$enable_altivec = xyes; then
  14984. save_CFLAGS="$CFLAGS"
  14985. have_gcc_altivec=no
  14986. have_altivec_h_hdr=no
  14987. altivec_CFLAGS="-maltivec"
  14988. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14990. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14992. /* end confdefs.h. */
  14993. #include <altivec.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. have_altivec_h_hdr=yes
  15007. fi
  15008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15010. $as_echo "$have_gcc_altivec" >&6; }
  15011. if test x$have_gcc_altivec = xno; then
  15012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15013. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15015. /* end confdefs.h. */
  15016. vector unsigned int vzero() {
  15017. return vec_splat_u32(0);
  15018. }
  15019. int
  15020. main ()
  15021. {
  15022. ;
  15023. return 0;
  15024. }
  15025. _ACEOF
  15026. if ac_fn_c_try_compile "$LINENO"; then :
  15027. have_gcc_altivec=yes
  15028. fi
  15029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15031. $as_echo "$have_gcc_altivec" >&6; }
  15032. fi
  15033. if test x$have_gcc_altivec = xno; then
  15034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15035. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15036. altivec_CFLAGS="-faltivec"
  15037. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15039. /* end confdefs.h. */
  15040. #include <altivec.h>
  15041. vector unsigned int vzero() {
  15042. return vec_splat_u32(0);
  15043. }
  15044. int
  15045. main ()
  15046. {
  15047. ;
  15048. return 0;
  15049. }
  15050. _ACEOF
  15051. if ac_fn_c_try_compile "$LINENO"; then :
  15052. have_gcc_altivec=yes
  15053. have_altivec_h_hdr=yes
  15054. fi
  15055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15057. $as_echo "$have_gcc_altivec" >&6; }
  15058. fi
  15059. if test x$have_gcc_altivec = xno; then
  15060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15061. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15063. /* end confdefs.h. */
  15064. vector unsigned int vzero() {
  15065. return vec_splat_u32(0);
  15066. }
  15067. int
  15068. main ()
  15069. {
  15070. ;
  15071. return 0;
  15072. }
  15073. _ACEOF
  15074. if ac_fn_c_try_compile "$LINENO"; then :
  15075. have_gcc_altivec=yes
  15076. fi
  15077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15079. $as_echo "$have_gcc_altivec" >&6; }
  15080. fi
  15081. CFLAGS="$save_CFLAGS"
  15082. if test x$have_gcc_altivec = xyes; then
  15083. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15084. if test x$have_altivec_h_hdr = xyes; then
  15085. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15086. fi
  15087. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15088. SUMMARY_math="${SUMMARY_math} altivec"
  15089. fi
  15090. fi
  15091. fi
  15092. CheckOSS()
  15093. {
  15094. # Check whether --enable-oss was given.
  15095. if test "${enable_oss+set}" = set; then :
  15096. enableval=$enable_oss;
  15097. else
  15098. enable_oss=maybe
  15099. fi
  15100. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15101. # use sndio instead. So on there, we default to disabled. You can force
  15102. # it on if you really want, though.
  15103. if test x$enable_oss = xmaybe; then
  15104. enable_oss=yes
  15105. case "$host" in
  15106. *-*-openbsd*)
  15107. enable_oss=no;;
  15108. esac
  15109. fi
  15110. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15112. $as_echo_n "checking for OSS audio support... " >&6; }
  15113. have_oss=no
  15114. if test x$have_oss != xyes; then
  15115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15116. /* end confdefs.h. */
  15117. #include <sys/soundcard.h>
  15118. int
  15119. main ()
  15120. {
  15121. int arg = SNDCTL_DSP_SETFRAGMENT;
  15122. ;
  15123. return 0;
  15124. }
  15125. _ACEOF
  15126. if ac_fn_c_try_compile "$LINENO"; then :
  15127. have_oss=yes
  15128. fi
  15129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15130. fi
  15131. if test x$have_oss != xyes; then
  15132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15133. /* end confdefs.h. */
  15134. #include <soundcard.h>
  15135. int
  15136. main ()
  15137. {
  15138. int arg = SNDCTL_DSP_SETFRAGMENT;
  15139. ;
  15140. return 0;
  15141. }
  15142. _ACEOF
  15143. if ac_fn_c_try_compile "$LINENO"; then :
  15144. have_oss=yes
  15145. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15146. fi
  15147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15148. fi
  15149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15150. $as_echo "$have_oss" >&6; }
  15151. if test x$have_oss = xyes; then
  15152. SUMMARY_audio="${SUMMARY_audio} oss"
  15153. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15154. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15155. have_audio=yes
  15156. # We may need to link with ossaudio emulation library
  15157. case "$host" in
  15158. *-*-openbsd*|*-*-netbsd*)
  15159. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15160. esac
  15161. fi
  15162. fi
  15163. }
  15164. CheckALSA()
  15165. {
  15166. # Check whether --enable-alsa was given.
  15167. if test "${enable_alsa+set}" = set; then :
  15168. enableval=$enable_alsa;
  15169. else
  15170. enable_alsa=yes
  15171. fi
  15172. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15173. alsa_save_CFLAGS="$CFLAGS"
  15174. alsa_save_LDFLAGS="$LDFLAGS"
  15175. alsa_save_LIBS="$LIBS"
  15176. alsa_found=yes
  15177. # Check whether --with-alsa-prefix was given.
  15178. if test "${with_alsa_prefix+set}" = set; then :
  15179. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15180. else
  15181. alsa_prefix=""
  15182. fi
  15183. # Check whether --with-alsa-inc-prefix was given.
  15184. if test "${with_alsa_inc_prefix+set}" = set; then :
  15185. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15186. else
  15187. alsa_inc_prefix=""
  15188. fi
  15189. # Check whether --enable-alsatest was given.
  15190. if test "${enable_alsatest+set}" = set; then :
  15191. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15192. else
  15193. enable_alsatest=yes
  15194. fi
  15195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15196. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15197. if test "$alsa_inc_prefix" != "" ; then
  15198. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15199. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15200. fi
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15202. $as_echo "$ALSA_CFLAGS" >&6; }
  15203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15204. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15205. if test "$alsa_prefix" != "" ; then
  15206. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15207. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15208. fi
  15209. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15210. LIBS=`echo $LIBS | sed 's/-lm//'`
  15211. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15212. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15213. LIBS=`echo $LIBS | sed 's/ //'`
  15214. LIBS="$ALSA_LIBS $LIBS"
  15215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15216. $as_echo "$ALSA_LIBS" >&6; }
  15217. min_alsa_version=1.0.11
  15218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15219. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15220. no_alsa=""
  15221. alsa_min_major_version=`echo $min_alsa_version | \
  15222. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15223. alsa_min_minor_version=`echo $min_alsa_version | \
  15224. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15225. alsa_min_micro_version=`echo $min_alsa_version | \
  15226. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15227. ac_ext=c
  15228. ac_cpp='$CPP $CPPFLAGS'
  15229. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15230. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15231. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15233. /* end confdefs.h. */
  15234. #include <alsa/asoundlib.h>
  15235. int
  15236. main ()
  15237. {
  15238. /* ensure backward compatibility */
  15239. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15240. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15241. #endif
  15242. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15243. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15244. #endif
  15245. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15246. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15247. #endif
  15248. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15249. exit(0);
  15250. # else
  15251. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15252. # error not present
  15253. # endif
  15254. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15255. exit(0);
  15256. # else
  15257. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15258. # error not present
  15259. # endif
  15260. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15261. # error not present
  15262. # endif
  15263. # endif
  15264. # endif
  15265. exit(0);
  15266. ;
  15267. return 0;
  15268. }
  15269. _ACEOF
  15270. if ac_fn_c_try_compile "$LINENO"; then :
  15271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15272. $as_echo "found." >&6; }
  15273. else
  15274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15275. $as_echo "not present." >&6; }
  15276. alsa_found=no
  15277. fi
  15278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15279. ac_ext=c
  15280. ac_cpp='$CPP $CPPFLAGS'
  15281. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15282. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15283. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15284. if test "x$enable_alsatest" = "xyes"; then
  15285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15286. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15287. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15288. $as_echo_n "(cached) " >&6
  15289. else
  15290. ac_check_lib_save_LIBS=$LIBS
  15291. LIBS="-lasound $LIBS"
  15292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15293. /* end confdefs.h. */
  15294. /* Override any GCC internal prototype to avoid an error.
  15295. Use char because int might match the return type of a GCC
  15296. builtin and then its argument prototype would still apply. */
  15297. #ifdef __cplusplus
  15298. extern "C"
  15299. #endif
  15300. char snd_ctl_open ();
  15301. int
  15302. main ()
  15303. {
  15304. return snd_ctl_open ();
  15305. ;
  15306. return 0;
  15307. }
  15308. _ACEOF
  15309. if ac_fn_c_try_link "$LINENO"; then :
  15310. ac_cv_lib_asound_snd_ctl_open=yes
  15311. else
  15312. ac_cv_lib_asound_snd_ctl_open=no
  15313. fi
  15314. rm -f core conftest.err conftest.$ac_objext \
  15315. conftest$ac_exeext conftest.$ac_ext
  15316. LIBS=$ac_check_lib_save_LIBS
  15317. fi
  15318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15319. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15320. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15321. cat >>confdefs.h <<_ACEOF
  15322. #define HAVE_LIBASOUND 1
  15323. _ACEOF
  15324. LIBS="-lasound $LIBS"
  15325. else
  15326. alsa_found=no
  15327. fi
  15328. fi
  15329. if test "x$alsa_found" = "xyes" ; then
  15330. have_alsa=yes
  15331. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15332. LIBS=`echo $LIBS | sed 's/ //'`
  15333. LIBS="-lasound $LIBS"
  15334. fi
  15335. if test "x$alsa_found" = "xno" ; then
  15336. have_alsa=no
  15337. CFLAGS="$alsa_save_CFLAGS"
  15338. LDFLAGS="$alsa_save_LDFLAGS"
  15339. LIBS="$alsa_save_LIBS"
  15340. ALSA_CFLAGS=""
  15341. ALSA_LIBS=""
  15342. fi
  15343. # Restore all flags from before the ALSA detection runs
  15344. CFLAGS="$alsa_save_CFLAGS"
  15345. LDFLAGS="$alsa_save_LDFLAGS"
  15346. LIBS="$alsa_save_LIBS"
  15347. if test x$have_alsa = xyes; then
  15348. # Check whether --enable-alsa-shared was given.
  15349. if test "${enable_alsa_shared+set}" = set; then :
  15350. enableval=$enable_alsa_shared;
  15351. else
  15352. enable_alsa_shared=yes
  15353. fi
  15354. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15355. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15356. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15357. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15358. if test x$have_loadso != xyes && \
  15359. test x$enable_alsa_shared = xyes; then
  15360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15361. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15362. fi
  15363. if test x$have_loadso = xyes && \
  15364. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15365. echo "-- dynamic libasound -> $alsa_lib"
  15366. cat >>confdefs.h <<_ACEOF
  15367. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15368. _ACEOF
  15369. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15370. else
  15371. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15372. SUMMARY_audio="${SUMMARY_audio} alsa"
  15373. fi
  15374. have_audio=yes
  15375. fi
  15376. fi
  15377. }
  15378. CheckJACK()
  15379. {
  15380. # Check whether --enable-jack was given.
  15381. if test "${enable_jack+set}" = set; then :
  15382. enableval=$enable_jack;
  15383. else
  15384. enable_jack=yes
  15385. fi
  15386. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15387. audio_jack=no
  15388. JACK_REQUIRED_VERSION=0.125
  15389. # Extract the first word of "pkg-config", so it can be a program name with args.
  15390. set dummy pkg-config; ac_word=$2
  15391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15392. $as_echo_n "checking for $ac_word... " >&6; }
  15393. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15394. $as_echo_n "(cached) " >&6
  15395. else
  15396. case $PKG_CONFIG in
  15397. [\\/]* | ?:[\\/]*)
  15398. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15399. ;;
  15400. *)
  15401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15402. for as_dir in $PATH
  15403. do
  15404. IFS=$as_save_IFS
  15405. test -z "$as_dir" && as_dir=.
  15406. for ac_exec_ext in '' $ac_executable_extensions; do
  15407. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15408. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15409. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15410. break 2
  15411. fi
  15412. done
  15413. done
  15414. IFS=$as_save_IFS
  15415. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15416. ;;
  15417. esac
  15418. fi
  15419. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15420. if test -n "$PKG_CONFIG"; then
  15421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15422. $as_echo "$PKG_CONFIG" >&6; }
  15423. else
  15424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15425. $as_echo "no" >&6; }
  15426. fi
  15427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
  15428. $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
  15429. if test x$PKG_CONFIG != xno; then
  15430. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
  15431. JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
  15432. JACK_LIBS=`$PKG_CONFIG --libs jack`
  15433. audio_jack=yes
  15434. fi
  15435. fi
  15436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
  15437. $as_echo "$audio_jack" >&6; }
  15438. if test x$audio_jack = xyes; then
  15439. # Check whether --enable-jack-shared was given.
  15440. if test "${enable_jack_shared+set}" = set; then :
  15441. enableval=$enable_jack_shared;
  15442. else
  15443. enable_jack_shared=yes
  15444. fi
  15445. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15446. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15447. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15448. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15449. if test x$have_loadso != xyes && \
  15450. test x$enable_jack_shared = xyes; then
  15451. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15452. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15453. fi
  15454. if test x$have_loadso = xyes && \
  15455. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15456. echo "-- dynamic libjack -> $jack_lib"
  15457. cat >>confdefs.h <<_ACEOF
  15458. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15459. _ACEOF
  15460. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15461. case "$host" in
  15462. # On Solaris, jack must be linked deferred explicitly
  15463. # to prevent undefined symbol failures.
  15464. *-*-solaris*)
  15465. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15466. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15467. esac
  15468. else
  15469. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15470. SUMMARY_audio="${SUMMARY_audio} jack"
  15471. fi
  15472. have_audio=yes
  15473. fi
  15474. fi
  15475. }
  15476. CheckESD()
  15477. {
  15478. # Check whether --enable-esd was given.
  15479. if test "${enable_esd+set}" = set; then :
  15480. enableval=$enable_esd;
  15481. else
  15482. enable_esd=yes
  15483. fi
  15484. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15485. # Check whether --with-esd-prefix was given.
  15486. if test "${with_esd_prefix+set}" = set; then :
  15487. withval=$with_esd_prefix; esd_prefix="$withval"
  15488. else
  15489. esd_prefix=""
  15490. fi
  15491. # Check whether --with-esd-exec-prefix was given.
  15492. if test "${with_esd_exec_prefix+set}" = set; then :
  15493. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15494. else
  15495. esd_exec_prefix=""
  15496. fi
  15497. # Check whether --enable-esdtest was given.
  15498. if test "${enable_esdtest+set}" = set; then :
  15499. enableval=$enable_esdtest;
  15500. else
  15501. enable_esdtest=yes
  15502. fi
  15503. if test x$esd_exec_prefix != x ; then
  15504. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15505. if test x${ESD_CONFIG+set} != xset ; then
  15506. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15507. fi
  15508. fi
  15509. if test x$esd_prefix != x ; then
  15510. esd_args="$esd_args --prefix=$esd_prefix"
  15511. if test x${ESD_CONFIG+set} != xset ; then
  15512. ESD_CONFIG=$esd_prefix/bin/esd-config
  15513. fi
  15514. fi
  15515. # Extract the first word of "esd-config", so it can be a program name with args.
  15516. set dummy esd-config; ac_word=$2
  15517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15518. $as_echo_n "checking for $ac_word... " >&6; }
  15519. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15520. $as_echo_n "(cached) " >&6
  15521. else
  15522. case $ESD_CONFIG in
  15523. [\\/]* | ?:[\\/]*)
  15524. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15525. ;;
  15526. *)
  15527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15528. for as_dir in $PATH
  15529. do
  15530. IFS=$as_save_IFS
  15531. test -z "$as_dir" && as_dir=.
  15532. for ac_exec_ext in '' $ac_executable_extensions; do
  15533. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15534. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15536. break 2
  15537. fi
  15538. done
  15539. done
  15540. IFS=$as_save_IFS
  15541. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15542. ;;
  15543. esac
  15544. fi
  15545. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15546. if test -n "$ESD_CONFIG"; then
  15547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15548. $as_echo "$ESD_CONFIG" >&6; }
  15549. else
  15550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15551. $as_echo "no" >&6; }
  15552. fi
  15553. min_esd_version=0.2.8
  15554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15555. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15556. no_esd=""
  15557. if test "$ESD_CONFIG" = "no" ; then
  15558. no_esd=yes
  15559. else
  15560. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15561. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15562. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15563. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15564. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15565. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15566. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15567. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15568. if test "x$enable_esdtest" = "xyes" ; then
  15569. ac_save_CFLAGS="$CFLAGS"
  15570. ac_save_LIBS="$LIBS"
  15571. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15572. LIBS="$LIBS $ESD_LIBS"
  15573. rm -f conf.esdtest
  15574. if test "$cross_compiling" = yes; then :
  15575. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15576. else
  15577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15578. /* end confdefs.h. */
  15579. #include <stdio.h>
  15580. #include <stdlib.h>
  15581. #include <string.h>
  15582. #include <esd.h>
  15583. char*
  15584. my_strdup (char *str)
  15585. {
  15586. char *new_str;
  15587. if (str)
  15588. {
  15589. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15590. strcpy (new_str, str);
  15591. }
  15592. else
  15593. new_str = NULL;
  15594. return new_str;
  15595. }
  15596. int main ()
  15597. {
  15598. int major, minor, micro;
  15599. char *tmp_version;
  15600. system ("touch conf.esdtest");
  15601. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15602. tmp_version = my_strdup("$min_esd_version");
  15603. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15604. printf("%s, bad version string\n", "$min_esd_version");
  15605. exit(1);
  15606. }
  15607. if (($esd_major_version > major) ||
  15608. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15609. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15610. {
  15611. return 0;
  15612. }
  15613. else
  15614. {
  15615. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15616. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15617. printf("*** best to upgrade to the required version.\n");
  15618. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15619. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15620. printf("*** config.cache before re-running configure\n");
  15621. return 1;
  15622. }
  15623. }
  15624. _ACEOF
  15625. if ac_fn_c_try_run "$LINENO"; then :
  15626. else
  15627. no_esd=yes
  15628. fi
  15629. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15630. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15631. fi
  15632. CFLAGS="$ac_save_CFLAGS"
  15633. LIBS="$ac_save_LIBS"
  15634. fi
  15635. fi
  15636. if test "x$no_esd" = x ; then
  15637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15638. $as_echo "yes" >&6; }
  15639. have_esd=yes
  15640. else
  15641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15642. $as_echo "no" >&6; }
  15643. if test "$ESD_CONFIG" = "no" ; then
  15644. echo "*** The esd-config script installed by ESD could not be found"
  15645. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15646. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15647. echo "*** full path to esd-config."
  15648. else
  15649. if test -f conf.esdtest ; then
  15650. :
  15651. else
  15652. echo "*** Could not run ESD test program, checking why..."
  15653. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15654. LIBS="$LIBS $ESD_LIBS"
  15655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15656. /* end confdefs.h. */
  15657. #include <stdio.h>
  15658. #include <esd.h>
  15659. int
  15660. main ()
  15661. {
  15662. return 0;
  15663. ;
  15664. return 0;
  15665. }
  15666. _ACEOF
  15667. if ac_fn_c_try_link "$LINENO"; then :
  15668. echo "*** The test program compiled, but did not run. This usually means"
  15669. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15670. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15671. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15672. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15673. echo "*** is required on your system"
  15674. echo "***"
  15675. echo "*** If you have an old version installed, it is best to remove it, although"
  15676. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15677. else
  15678. echo "*** The test program failed to compile or link. See the file config.log for the"
  15679. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15680. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15681. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15682. fi
  15683. rm -f core conftest.err conftest.$ac_objext \
  15684. conftest$ac_exeext conftest.$ac_ext
  15685. CFLAGS="$ac_save_CFLAGS"
  15686. LIBS="$ac_save_LIBS"
  15687. fi
  15688. fi
  15689. ESD_CFLAGS=""
  15690. ESD_LIBS=""
  15691. have_esd=no
  15692. fi
  15693. rm -f conf.esdtest
  15694. if test x$have_esd = xyes; then
  15695. # Check whether --enable-esd-shared was given.
  15696. if test "${enable_esd_shared+set}" = set; then :
  15697. enableval=$enable_esd_shared;
  15698. else
  15699. enable_esd_shared=yes
  15700. fi
  15701. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15702. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15703. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15704. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15705. if test x$have_loadso != xyes && \
  15706. test x$enable_esd_shared = xyes; then
  15707. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15708. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15709. fi
  15710. if test x$have_loadso = xyes && \
  15711. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15712. echo "-- dynamic libesd -> $esd_lib"
  15713. cat >>confdefs.h <<_ACEOF
  15714. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15715. _ACEOF
  15716. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15717. else
  15718. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15719. SUMMARY_audio="${SUMMARY_audio} esd"
  15720. fi
  15721. have_audio=yes
  15722. fi
  15723. fi
  15724. }
  15725. CheckPulseAudio()
  15726. {
  15727. # Check whether --enable-pulseaudio was given.
  15728. if test "${enable_pulseaudio+set}" = set; then :
  15729. enableval=$enable_pulseaudio;
  15730. else
  15731. enable_pulseaudio=yes
  15732. fi
  15733. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15734. audio_pulseaudio=no
  15735. PULSEAUDIO_REQUIRED_VERSION=0.9
  15736. # Extract the first word of "pkg-config", so it can be a program name with args.
  15737. set dummy pkg-config; ac_word=$2
  15738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15739. $as_echo_n "checking for $ac_word... " >&6; }
  15740. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15741. $as_echo_n "(cached) " >&6
  15742. else
  15743. case $PKG_CONFIG in
  15744. [\\/]* | ?:[\\/]*)
  15745. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15746. ;;
  15747. *)
  15748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15749. for as_dir in $PATH
  15750. do
  15751. IFS=$as_save_IFS
  15752. test -z "$as_dir" && as_dir=.
  15753. for ac_exec_ext in '' $ac_executable_extensions; do
  15754. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15755. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15757. break 2
  15758. fi
  15759. done
  15760. done
  15761. IFS=$as_save_IFS
  15762. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15763. ;;
  15764. esac
  15765. fi
  15766. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15767. if test -n "$PKG_CONFIG"; then
  15768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15769. $as_echo "$PKG_CONFIG" >&6; }
  15770. else
  15771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15772. $as_echo "no" >&6; }
  15773. fi
  15774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15775. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15776. if test x$PKG_CONFIG != xno; then
  15777. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15778. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15779. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15780. audio_pulseaudio=yes
  15781. fi
  15782. fi
  15783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15784. $as_echo "$audio_pulseaudio" >&6; }
  15785. if test x$audio_pulseaudio = xyes; then
  15786. # Check whether --enable-pulseaudio-shared was given.
  15787. if test "${enable_pulseaudio_shared+set}" = set; then :
  15788. enableval=$enable_pulseaudio_shared;
  15789. else
  15790. enable_pulseaudio_shared=yes
  15791. fi
  15792. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15793. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15794. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15795. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15796. if test x$have_loadso != xyes && \
  15797. test x$enable_pulseaudio_shared = xyes; then
  15798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15799. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15800. fi
  15801. if test x$have_loadso = xyes && \
  15802. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15803. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15804. cat >>confdefs.h <<_ACEOF
  15805. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15806. _ACEOF
  15807. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15808. case "$host" in
  15809. # On Solaris, pulseaudio must be linked deferred explicitly
  15810. # to prevent undefined symbol failures.
  15811. *-*-solaris*)
  15812. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15813. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15814. esac
  15815. else
  15816. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15817. SUMMARY_audio="${SUMMARY_audio} pulse"
  15818. fi
  15819. have_audio=yes
  15820. fi
  15821. fi
  15822. }
  15823. CheckARTSC()
  15824. {
  15825. # Check whether --enable-arts was given.
  15826. if test "${enable_arts+set}" = set; then :
  15827. enableval=$enable_arts;
  15828. else
  15829. enable_arts=yes
  15830. fi
  15831. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15832. # Extract the first word of "artsc-config", so it can be a program name with args.
  15833. set dummy artsc-config; ac_word=$2
  15834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15835. $as_echo_n "checking for $ac_word... " >&6; }
  15836. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15837. $as_echo_n "(cached) " >&6
  15838. else
  15839. case $ARTSCONFIG in
  15840. [\\/]* | ?:[\\/]*)
  15841. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15842. ;;
  15843. *)
  15844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15845. for as_dir in $PATH
  15846. do
  15847. IFS=$as_save_IFS
  15848. test -z "$as_dir" && as_dir=.
  15849. for ac_exec_ext in '' $ac_executable_extensions; do
  15850. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15851. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15852. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15853. break 2
  15854. fi
  15855. done
  15856. done
  15857. IFS=$as_save_IFS
  15858. ;;
  15859. esac
  15860. fi
  15861. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15862. if test -n "$ARTSCONFIG"; then
  15863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15864. $as_echo "$ARTSCONFIG" >&6; }
  15865. else
  15866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15867. $as_echo "no" >&6; }
  15868. fi
  15869. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15870. : # arts isn't installed
  15871. else
  15872. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15873. ARTS_LIBS=`$ARTSCONFIG --libs`
  15874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15875. $as_echo_n "checking for aRts development environment... " >&6; }
  15876. audio_arts=no
  15877. save_CFLAGS="$CFLAGS"
  15878. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15880. /* end confdefs.h. */
  15881. #include <artsc.h>
  15882. int
  15883. main ()
  15884. {
  15885. arts_stream_t stream;
  15886. ;
  15887. return 0;
  15888. }
  15889. _ACEOF
  15890. if ac_fn_c_try_compile "$LINENO"; then :
  15891. audio_arts=yes
  15892. fi
  15893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15894. CFLAGS="$save_CFLAGS"
  15895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15896. $as_echo "$audio_arts" >&6; }
  15897. if test x$audio_arts = xyes; then
  15898. # Check whether --enable-arts-shared was given.
  15899. if test "${enable_arts_shared+set}" = set; then :
  15900. enableval=$enable_arts_shared;
  15901. else
  15902. enable_arts_shared=yes
  15903. fi
  15904. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15905. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15906. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15907. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15908. if test x$have_loadso != xyes && \
  15909. test x$enable_arts_shared = xyes; then
  15910. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15911. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15912. fi
  15913. if test x$have_loadso = xyes && \
  15914. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15915. echo "-- dynamic libartsc -> $arts_lib"
  15916. cat >>confdefs.h <<_ACEOF
  15917. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15918. _ACEOF
  15919. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15920. else
  15921. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15922. SUMMARY_audio="${SUMMARY_audio} arts"
  15923. fi
  15924. have_audio=yes
  15925. fi
  15926. fi
  15927. fi
  15928. }
  15929. CheckNAS()
  15930. {
  15931. # Check whether --enable-nas was given.
  15932. if test "${enable_nas+set}" = set; then :
  15933. enableval=$enable_nas;
  15934. else
  15935. enable_nas=yes
  15936. fi
  15937. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15938. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15939. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15940. have_nas_hdr=yes
  15941. fi
  15942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15943. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15944. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15945. $as_echo_n "(cached) " >&6
  15946. else
  15947. ac_check_lib_save_LIBS=$LIBS
  15948. LIBS="-laudio $LIBS"
  15949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15950. /* end confdefs.h. */
  15951. /* Override any GCC internal prototype to avoid an error.
  15952. Use char because int might match the return type of a GCC
  15953. builtin and then its argument prototype would still apply. */
  15954. #ifdef __cplusplus
  15955. extern "C"
  15956. #endif
  15957. char AuOpenServer ();
  15958. int
  15959. main ()
  15960. {
  15961. return AuOpenServer ();
  15962. ;
  15963. return 0;
  15964. }
  15965. _ACEOF
  15966. if ac_fn_c_try_link "$LINENO"; then :
  15967. ac_cv_lib_audio_AuOpenServer=yes
  15968. else
  15969. ac_cv_lib_audio_AuOpenServer=no
  15970. fi
  15971. rm -f core conftest.err conftest.$ac_objext \
  15972. conftest$ac_exeext conftest.$ac_ext
  15973. LIBS=$ac_check_lib_save_LIBS
  15974. fi
  15975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15976. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15977. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15978. have_nas_lib=yes
  15979. fi
  15980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15981. $as_echo_n "checking for NAS audio support... " >&6; }
  15982. have_nas=no
  15983. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15984. have_nas=yes
  15985. NAS_LIBS="-laudio"
  15986. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15987. have_nas=yes
  15988. NAS_CFLAGS="-I/usr/X11R6/include/"
  15989. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15990. fi
  15991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15992. $as_echo "$have_nas" >&6; }
  15993. if test x$have_nas = xyes; then
  15994. # Check whether --enable-nas-shared was given.
  15995. if test "${enable_nas_shared+set}" = set; then :
  15996. enableval=$enable_nas_shared;
  15997. else
  15998. enable_nas_shared=yes
  15999. fi
  16000. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16001. if test x$have_loadso != xyes && \
  16002. test x$enable_nas_shared = xyes; then
  16003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16004. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16005. fi
  16006. if test x$have_loadso = xyes && \
  16007. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16008. echo "-- dynamic libaudio -> $nas_lib"
  16009. cat >>confdefs.h <<_ACEOF
  16010. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16011. _ACEOF
  16012. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16013. else
  16014. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16015. SUMMARY_audio="${SUMMARY_audio} nas"
  16016. fi
  16017. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16018. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16019. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16020. have_audio=yes
  16021. fi
  16022. fi
  16023. }
  16024. CheckSNDIO()
  16025. {
  16026. # Check whether --enable-sndio was given.
  16027. if test "${enable_sndio+set}" = set; then :
  16028. enableval=$enable_sndio;
  16029. else
  16030. enable_sndio=yes
  16031. fi
  16032. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16033. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16034. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16035. have_sndio_hdr=yes
  16036. fi
  16037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16038. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16039. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16040. $as_echo_n "(cached) " >&6
  16041. else
  16042. ac_check_lib_save_LIBS=$LIBS
  16043. LIBS="-lsndio $LIBS"
  16044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16045. /* end confdefs.h. */
  16046. /* Override any GCC internal prototype to avoid an error.
  16047. Use char because int might match the return type of a GCC
  16048. builtin and then its argument prototype would still apply. */
  16049. #ifdef __cplusplus
  16050. extern "C"
  16051. #endif
  16052. char sio_open ();
  16053. int
  16054. main ()
  16055. {
  16056. return sio_open ();
  16057. ;
  16058. return 0;
  16059. }
  16060. _ACEOF
  16061. if ac_fn_c_try_link "$LINENO"; then :
  16062. ac_cv_lib_sndio_sio_open=yes
  16063. else
  16064. ac_cv_lib_sndio_sio_open=no
  16065. fi
  16066. rm -f core conftest.err conftest.$ac_objext \
  16067. conftest$ac_exeext conftest.$ac_ext
  16068. LIBS=$ac_check_lib_save_LIBS
  16069. fi
  16070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16071. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16072. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16073. have_sndio_lib=yes
  16074. fi
  16075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16076. $as_echo_n "checking for sndio audio support... " >&6; }
  16077. have_sndio=no
  16078. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16079. have_sndio=yes
  16080. SNDIO_LIBS="-lsndio"
  16081. fi
  16082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16083. $as_echo "$have_sndio" >&6; }
  16084. if test x$have_sndio = xyes; then
  16085. # Check whether --enable-sndio-shared was given.
  16086. if test "${enable_sndio_shared+set}" = set; then :
  16087. enableval=$enable_sndio_shared;
  16088. else
  16089. enable_sndio_shared=yes
  16090. fi
  16091. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16092. if test x$have_loadso != xyes && \
  16093. test x$enable_sndio_shared = xyes; then
  16094. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16095. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16096. fi
  16097. if test x$have_loadso = xyes && \
  16098. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16099. echo "-- dynamic libsndio -> $sndio_lib"
  16100. cat >>confdefs.h <<_ACEOF
  16101. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16102. _ACEOF
  16103. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16104. else
  16105. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16106. SUMMARY_audio="${SUMMARY_audio} sndio"
  16107. fi
  16108. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16109. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16110. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16111. have_audio=yes
  16112. fi
  16113. fi
  16114. }
  16115. CheckFusionSound()
  16116. {
  16117. # Check whether --enable-fusionsound was given.
  16118. if test "${enable_fusionsound+set}" = set; then :
  16119. enableval=$enable_fusionsound;
  16120. else
  16121. enable_fusionsound=no
  16122. fi
  16123. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16124. fusionsound=no
  16125. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16126. # Extract the first word of "pkg-config", so it can be a program name with args.
  16127. set dummy pkg-config; ac_word=$2
  16128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16129. $as_echo_n "checking for $ac_word... " >&6; }
  16130. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16131. $as_echo_n "(cached) " >&6
  16132. else
  16133. case $PKG_CONFIG in
  16134. [\\/]* | ?:[\\/]*)
  16135. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16136. ;;
  16137. *)
  16138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16139. for as_dir in $PATH
  16140. do
  16141. IFS=$as_save_IFS
  16142. test -z "$as_dir" && as_dir=.
  16143. for ac_exec_ext in '' $ac_executable_extensions; do
  16144. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16145. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16147. break 2
  16148. fi
  16149. done
  16150. done
  16151. IFS=$as_save_IFS
  16152. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16153. ;;
  16154. esac
  16155. fi
  16156. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16157. if test -n "$PKG_CONFIG"; then
  16158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16159. $as_echo "$PKG_CONFIG" >&6; }
  16160. else
  16161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16162. $as_echo "no" >&6; }
  16163. fi
  16164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16165. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16166. if test x$PKG_CONFIG != xno; then
  16167. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16168. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16169. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16170. fusionsound=yes
  16171. fi
  16172. fi
  16173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16174. $as_echo "$fusionsound" >&6; }
  16175. if test x$fusionsound = xyes; then
  16176. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16177. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16178. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16179. # Check whether --enable-fusionsound-shared was given.
  16180. if test "${enable_fusionsound_shared+set}" = set; then :
  16181. enableval=$enable_fusionsound_shared;
  16182. else
  16183. enable_fusionsound_shared=yes
  16184. fi
  16185. fusionsound_shared=no
  16186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16187. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16188. if test x$have_loadso != xyes && \
  16189. test x$enable_fusionsound_shared = xyes; then
  16190. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16191. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16192. fi
  16193. if test x$have_loadso = xyes && \
  16194. test x$enable_fusionsound_shared = xyes; then
  16195. cat >>confdefs.h <<_ACEOF
  16196. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16197. _ACEOF
  16198. fusionsound_shared=yes
  16199. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16200. else
  16201. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16202. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16203. fi
  16204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16205. $as_echo "$fusionsound_shared" >&6; }
  16206. have_audio=yes
  16207. fi
  16208. fi
  16209. }
  16210. CheckDiskAudio()
  16211. {
  16212. # Check whether --enable-diskaudio was given.
  16213. if test "${enable_diskaudio+set}" = set; then :
  16214. enableval=$enable_diskaudio;
  16215. else
  16216. enable_diskaudio=yes
  16217. fi
  16218. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16219. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16220. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16221. SUMMARY_audio="${SUMMARY_audio} disk"
  16222. fi
  16223. }
  16224. CheckDummyAudio()
  16225. {
  16226. # Check whether --enable-dummyaudio was given.
  16227. if test "${enable_dummyaudio+set}" = set; then :
  16228. enableval=$enable_dummyaudio;
  16229. else
  16230. enable_dummyaudio=yes
  16231. fi
  16232. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16233. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16234. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16235. SUMMARY_audio="${SUMMARY_audio} dummy"
  16236. fi
  16237. }
  16238. CheckLibSampleRate()
  16239. {
  16240. # Check whether --enable-libsamplerate was given.
  16241. if test "${enable_libsamplerate+set}" = set; then :
  16242. enableval=$enable_libsamplerate;
  16243. else
  16244. enable_libsamplerate=yes
  16245. fi
  16246. if test x$enable_libsamplerate = xyes; then
  16247. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16248. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16249. have_samplerate_h_hdr=yes
  16250. else
  16251. have_samplerate_h_hdr=no
  16252. fi
  16253. if test x$have_samplerate_h_hdr = xyes; then
  16254. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16255. # Check whether --enable-libsamplerate-shared was given.
  16256. if test "${enable_libsamplerate_shared+set}" = set; then :
  16257. enableval=$enable_libsamplerate_shared;
  16258. else
  16259. enable_libsamplerate_shared=yes
  16260. fi
  16261. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16262. if test x$have_loadso != xyes && \
  16263. test x$enable_libsamplerate_shared = xyes; then
  16264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16265. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16266. fi
  16267. if test x$have_loadso = xyes && \
  16268. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16269. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16270. cat >>confdefs.h <<_ACEOF
  16271. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16272. _ACEOF
  16273. else
  16274. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16275. fi
  16276. fi
  16277. fi
  16278. }
  16279. CheckVisibilityHidden()
  16280. {
  16281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16282. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16283. have_gcc_fvisibility=no
  16284. visibility_CFLAGS="-fvisibility=hidden"
  16285. save_CFLAGS="$CFLAGS"
  16286. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16288. /* end confdefs.h. */
  16289. #if !defined(__GNUC__) || __GNUC__ < 4
  16290. #error SDL only uses visibility attributes in GCC 4 or newer
  16291. #endif
  16292. int
  16293. main ()
  16294. {
  16295. ;
  16296. return 0;
  16297. }
  16298. _ACEOF
  16299. if ac_fn_c_try_compile "$LINENO"; then :
  16300. have_gcc_fvisibility=yes
  16301. fi
  16302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16304. $as_echo "$have_gcc_fvisibility" >&6; }
  16305. CFLAGS="$save_CFLAGS"
  16306. if test x$have_gcc_fvisibility = xyes; then
  16307. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16308. fi
  16309. }
  16310. CheckStackBoundary()
  16311. {
  16312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16313. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16314. have_gcc_preferred_stack_boundary=no
  16315. save_CFLAGS="$CFLAGS"
  16316. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16318. /* end confdefs.h. */
  16319. int x = 0;
  16320. int
  16321. main ()
  16322. {
  16323. ;
  16324. return 0;
  16325. }
  16326. _ACEOF
  16327. if ac_fn_c_try_compile "$LINENO"; then :
  16328. have_gcc_preferred_stack_boundary=yes
  16329. fi
  16330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16332. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16333. CFLAGS="$save_CFLAGS"
  16334. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16335. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16336. fi
  16337. }
  16338. CheckDeclarationAfterStatement()
  16339. {
  16340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16341. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16342. have_gcc_declaration_after_statement=no
  16343. save_CFLAGS="$CFLAGS"
  16344. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16346. /* end confdefs.h. */
  16347. int x = 0;
  16348. int
  16349. main ()
  16350. {
  16351. ;
  16352. return 0;
  16353. }
  16354. _ACEOF
  16355. if ac_fn_c_try_compile "$LINENO"; then :
  16356. have_gcc_declaration_after_statement=yes
  16357. fi
  16358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16360. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16361. CFLAGS="$save_CFLAGS"
  16362. if test x$have_gcc_declaration_after_statement = xyes; then
  16363. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16364. fi
  16365. }
  16366. CheckWarnAll()
  16367. {
  16368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16369. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16370. have_gcc_Wall=no
  16371. save_CFLAGS="$CFLAGS"
  16372. CFLAGS="$save_CFLAGS -Wall"
  16373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16374. /* end confdefs.h. */
  16375. int x = 0;
  16376. int
  16377. main ()
  16378. {
  16379. ;
  16380. return 0;
  16381. }
  16382. _ACEOF
  16383. if ac_fn_c_try_compile "$LINENO"; then :
  16384. have_gcc_Wall=yes
  16385. fi
  16386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16388. $as_echo "$have_gcc_Wall" >&6; }
  16389. CFLAGS="$save_CFLAGS"
  16390. if test x$have_gcc_Wall = xyes; then
  16391. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16393. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16394. need_gcc_Wno_multichar=no
  16395. case "$host" in
  16396. *-*-haiku*)
  16397. need_gcc_Wno_multichar=yes
  16398. ;;
  16399. esac
  16400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16401. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16402. if test x$need_gcc_Wno_multichar = xyes; then
  16403. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16404. fi
  16405. fi
  16406. }
  16407. CheckWayland()
  16408. {
  16409. # Check whether --enable-video-wayland was given.
  16410. if test "${enable_video_wayland+set}" = set; then :
  16411. enableval=$enable_video_wayland;
  16412. else
  16413. enable_video_wayland=yes
  16414. fi
  16415. # Check whether --enable-video-wayland-qt-touch was given.
  16416. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16417. enableval=$enable_video_wayland_qt_touch;
  16418. else
  16419. enable_video_wayland_qt_touch=yes
  16420. fi
  16421. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16422. # Extract the first word of "pkg-config", so it can be a program name with args.
  16423. set dummy pkg-config; ac_word=$2
  16424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16425. $as_echo_n "checking for $ac_word... " >&6; }
  16426. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16427. $as_echo_n "(cached) " >&6
  16428. else
  16429. case $PKG_CONFIG in
  16430. [\\/]* | ?:[\\/]*)
  16431. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16432. ;;
  16433. *)
  16434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16435. for as_dir in $PATH
  16436. do
  16437. IFS=$as_save_IFS
  16438. test -z "$as_dir" && as_dir=.
  16439. for ac_exec_ext in '' $ac_executable_extensions; do
  16440. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16441. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16443. break 2
  16444. fi
  16445. done
  16446. done
  16447. IFS=$as_save_IFS
  16448. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16449. ;;
  16450. esac
  16451. fi
  16452. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16453. if test -n "$PKG_CONFIG"; then
  16454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16455. $as_echo "$PKG_CONFIG" >&6; }
  16456. else
  16457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16458. $as_echo "no" >&6; }
  16459. fi
  16460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16461. $as_echo_n "checking for Wayland support... " >&6; }
  16462. video_wayland=no
  16463. if test x$PKG_CONFIG != xno && \
  16464. test x$video_opengl_egl = xyes && \
  16465. test x$video_opengles_v2 = xyes; then
  16466. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16467. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16468. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16469. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16470. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16471. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16472. video_wayland=yes
  16473. fi
  16474. fi
  16475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16476. $as_echo "$video_wayland" >&6; }
  16477. if test x$video_wayland = xyes; then
  16478. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16479. if test x$enable_video_wayland_qt_touch = xyes; then
  16480. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16481. fi
  16482. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
  16483. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16484. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16485. # Check whether --enable-wayland-shared was given.
  16486. if test "${enable_wayland_shared+set}" = set; then :
  16487. enableval=$enable_wayland_shared;
  16488. else
  16489. enable_wayland_shared=maybe
  16490. fi
  16491. case "$host" in
  16492. *)
  16493. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16494. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16495. if test x$wayland_egl_lib = x; then
  16496. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16497. fi
  16498. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16499. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16500. ;;
  16501. esac
  16502. if test x$enable_wayland_shared = xmaybe; then
  16503. enable_wayland_shared=yes
  16504. fi
  16505. if test x$have_loadso != xyes && \
  16506. test x$enable_wayland_shared = xyes; then
  16507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16508. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16509. enable_wayland_shared=no
  16510. fi
  16511. if test x$have_loadso = xyes && \
  16512. test x$enable_wayland_shared = xyes && \
  16513. test x$wayland_client_lib != x && \
  16514. test x$wayland_egl_lib != x && \
  16515. test x$wayland_cursor_lib != x && \
  16516. test x$xkbcommon_lib != x; then
  16517. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16518. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16519. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16520. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16521. cat >>confdefs.h <<_ACEOF
  16522. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16523. _ACEOF
  16524. cat >>confdefs.h <<_ACEOF
  16525. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16526. _ACEOF
  16527. cat >>confdefs.h <<_ACEOF
  16528. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16529. _ACEOF
  16530. cat >>confdefs.h <<_ACEOF
  16531. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16532. _ACEOF
  16533. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16534. else
  16535. enable_wayland_shared=no
  16536. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16537. SUMMARY_video="${SUMMARY_video} wayland"
  16538. fi
  16539. have_video=yes
  16540. fi
  16541. fi
  16542. }
  16543. CheckMir()
  16544. {
  16545. # Check whether --enable-video-mir was given.
  16546. if test "${enable_video_mir+set}" = set; then :
  16547. enableval=$enable_video_mir;
  16548. else
  16549. enable_video_mir=yes
  16550. fi
  16551. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16552. # Extract the first word of "pkg-config", so it can be a program name with args.
  16553. set dummy pkg-config; ac_word=$2
  16554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16555. $as_echo_n "checking for $ac_word... " >&6; }
  16556. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16557. $as_echo_n "(cached) " >&6
  16558. else
  16559. case $PKG_CONFIG in
  16560. [\\/]* | ?:[\\/]*)
  16561. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16562. ;;
  16563. *)
  16564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16565. for as_dir in $PATH
  16566. do
  16567. IFS=$as_save_IFS
  16568. test -z "$as_dir" && as_dir=.
  16569. for ac_exec_ext in '' $ac_executable_extensions; do
  16570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16571. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16573. break 2
  16574. fi
  16575. done
  16576. done
  16577. IFS=$as_save_IFS
  16578. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16579. ;;
  16580. esac
  16581. fi
  16582. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16583. if test -n "$PKG_CONFIG"; then
  16584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16585. $as_echo "$PKG_CONFIG" >&6; }
  16586. else
  16587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16588. $as_echo "no" >&6; }
  16589. fi
  16590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16591. $as_echo_n "checking for Mir support... " >&6; }
  16592. video_mir=no
  16593. if test x$PKG_CONFIG != xno; then
  16594. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16595. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16596. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16597. save_CFLAGS="$CFLAGS"
  16598. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16600. /* end confdefs.h. */
  16601. #include <mir_toolkit/mir_client_library.h>
  16602. int
  16603. main ()
  16604. {
  16605. MirWindowAttrib attrib = mir_window_attrib_state
  16606. ;
  16607. return 0;
  16608. }
  16609. _ACEOF
  16610. if ac_fn_c_try_compile "$LINENO"; then :
  16611. video_mir=yes
  16612. fi
  16613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16614. CFLAGS="$save_CFLAGS"
  16615. fi
  16616. fi
  16617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16618. $as_echo "$video_mir" >&6; }
  16619. if test x$video_mir = xyes; then
  16620. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16621. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16622. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16623. # Check whether --enable-mir-shared was given.
  16624. if test "${enable_mir_shared+set}" = set; then :
  16625. enableval=$enable_mir_shared;
  16626. else
  16627. enable_mir_shared=maybe
  16628. fi
  16629. case "$host" in
  16630. *)
  16631. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16632. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16633. ;;
  16634. esac
  16635. if test x$enable_mir_shared = xmaybe; then
  16636. enable_mir_shared=yes
  16637. fi
  16638. if test x$have_loadso != xyes && \
  16639. test x$enable_mir_shared = xyes; then
  16640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16641. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16642. enable_mir_shared=no
  16643. fi
  16644. if test x$have_loadso = xyes && \
  16645. test x$enable_mir_shared = xyes && \
  16646. test x$mirclient_lib != x && \
  16647. test x$xkbcommon_lib != x; then
  16648. echo "-- dynamic libmirclient -> $mirclient_lib"
  16649. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16650. cat >>confdefs.h <<_ACEOF
  16651. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16652. _ACEOF
  16653. cat >>confdefs.h <<_ACEOF
  16654. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16655. _ACEOF
  16656. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16657. else
  16658. enable_mir_shared=no
  16659. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16660. SUMMARY_video="${SUMMARY_video} mir"
  16661. fi
  16662. have_video=yes
  16663. fi
  16664. fi
  16665. }
  16666. CheckNativeClient()
  16667. {
  16668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16669. /* end confdefs.h. */
  16670. #if !defined(__native_client__)
  16671. #error "NO NACL"
  16672. #endif
  16673. int
  16674. main ()
  16675. {
  16676. ;
  16677. return 0;
  16678. }
  16679. _ACEOF
  16680. if ac_fn_c_try_compile "$LINENO"; then :
  16681. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16682. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16683. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16684. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16685. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16686. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16687. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16688. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16689. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16690. SUMMARY_audio="${SUMMARY_audio} nacl"
  16691. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16692. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16693. fi
  16694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16695. }
  16696. CheckX11()
  16697. {
  16698. # Check whether --enable-video-x11 was given.
  16699. if test "${enable_video_x11+set}" = set; then :
  16700. enableval=$enable_video_x11;
  16701. else
  16702. enable_video_x11=yes
  16703. fi
  16704. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16705. case "$host" in
  16706. *-*-darwin*)
  16707. # This isn't necessary for X11, but fixes GLX detection
  16708. if test "x$x_includes" = xNONE && \
  16709. test "x$x_libraries" = xNONE && \
  16710. test -d /usr/X11R6/include && \
  16711. test -d /usr/X11R6/lib; then
  16712. x_includes="/usr/X11R6/include"
  16713. x_libraries="/usr/X11R6/lib"
  16714. fi
  16715. ;;
  16716. esac
  16717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16718. $as_echo_n "checking for X... " >&6; }
  16719. # Check whether --with-x was given.
  16720. if test "${with_x+set}" = set; then :
  16721. withval=$with_x;
  16722. fi
  16723. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16724. if test "x$with_x" = xno; then
  16725. # The user explicitly disabled X.
  16726. have_x=disabled
  16727. else
  16728. case $x_includes,$x_libraries in #(
  16729. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16730. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16731. $as_echo_n "(cached) " >&6
  16732. else
  16733. # One or both of the vars are not set, and there is no cached value.
  16734. ac_x_includes=no ac_x_libraries=no
  16735. rm -f -r conftest.dir
  16736. if mkdir conftest.dir; then
  16737. cd conftest.dir
  16738. cat >Imakefile <<'_ACEOF'
  16739. incroot:
  16740. @echo incroot='${INCROOT}'
  16741. usrlibdir:
  16742. @echo usrlibdir='${USRLIBDIR}'
  16743. libdir:
  16744. @echo libdir='${LIBDIR}'
  16745. _ACEOF
  16746. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16747. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16748. for ac_var in incroot usrlibdir libdir; do
  16749. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16750. done
  16751. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16752. for ac_extension in a so sl dylib la dll; do
  16753. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16754. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16755. ac_im_usrlibdir=$ac_im_libdir; break
  16756. fi
  16757. done
  16758. # Screen out bogus values from the imake configuration. They are
  16759. # bogus both because they are the default anyway, and because
  16760. # using them would break gcc on systems where it needs fixed includes.
  16761. case $ac_im_incroot in
  16762. /usr/include) ac_x_includes= ;;
  16763. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16764. esac
  16765. case $ac_im_usrlibdir in
  16766. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16767. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16768. esac
  16769. fi
  16770. cd ..
  16771. rm -f -r conftest.dir
  16772. fi
  16773. # Standard set of common directories for X headers.
  16774. # Check X11 before X11Rn because it is often a symlink to the current release.
  16775. ac_x_header_dirs='
  16776. /usr/X11/include
  16777. /usr/X11R7/include
  16778. /usr/X11R6/include
  16779. /usr/X11R5/include
  16780. /usr/X11R4/include
  16781. /usr/include/X11
  16782. /usr/include/X11R7
  16783. /usr/include/X11R6
  16784. /usr/include/X11R5
  16785. /usr/include/X11R4
  16786. /usr/local/X11/include
  16787. /usr/local/X11R7/include
  16788. /usr/local/X11R6/include
  16789. /usr/local/X11R5/include
  16790. /usr/local/X11R4/include
  16791. /usr/local/include/X11
  16792. /usr/local/include/X11R7
  16793. /usr/local/include/X11R6
  16794. /usr/local/include/X11R5
  16795. /usr/local/include/X11R4
  16796. /usr/X386/include
  16797. /usr/x386/include
  16798. /usr/XFree86/include/X11
  16799. /usr/include
  16800. /usr/local/include
  16801. /usr/unsupported/include
  16802. /usr/athena/include
  16803. /usr/local/x11r5/include
  16804. /usr/lpp/Xamples/include
  16805. /usr/openwin/include
  16806. /usr/openwin/share/include'
  16807. if test "$ac_x_includes" = no; then
  16808. # Guess where to find include files, by looking for Xlib.h.
  16809. # First, try using that file with no special directory specified.
  16810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16811. /* end confdefs.h. */
  16812. #include <X11/Xlib.h>
  16813. _ACEOF
  16814. if ac_fn_c_try_cpp "$LINENO"; then :
  16815. # We can compile using X headers with no special include directory.
  16816. ac_x_includes=
  16817. else
  16818. for ac_dir in $ac_x_header_dirs; do
  16819. if test -r "$ac_dir/X11/Xlib.h"; then
  16820. ac_x_includes=$ac_dir
  16821. break
  16822. fi
  16823. done
  16824. fi
  16825. rm -f conftest.err conftest.i conftest.$ac_ext
  16826. fi # $ac_x_includes = no
  16827. if test "$ac_x_libraries" = no; then
  16828. # Check for the libraries.
  16829. # See if we find them without any special options.
  16830. # Don't add to $LIBS permanently.
  16831. ac_save_LIBS=$LIBS
  16832. LIBS="-lX11 $LIBS"
  16833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16834. /* end confdefs.h. */
  16835. #include <X11/Xlib.h>
  16836. int
  16837. main ()
  16838. {
  16839. XrmInitialize ()
  16840. ;
  16841. return 0;
  16842. }
  16843. _ACEOF
  16844. if ac_fn_c_try_link "$LINENO"; then :
  16845. LIBS=$ac_save_LIBS
  16846. # We can link X programs with no special library path.
  16847. ac_x_libraries=
  16848. else
  16849. LIBS=$ac_save_LIBS
  16850. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16851. do
  16852. # Don't even attempt the hair of trying to link an X program!
  16853. for ac_extension in a so sl dylib la dll; do
  16854. if test -r "$ac_dir/libX11.$ac_extension"; then
  16855. ac_x_libraries=$ac_dir
  16856. break 2
  16857. fi
  16858. done
  16859. done
  16860. fi
  16861. rm -f core conftest.err conftest.$ac_objext \
  16862. conftest$ac_exeext conftest.$ac_ext
  16863. fi # $ac_x_libraries = no
  16864. case $ac_x_includes,$ac_x_libraries in #(
  16865. no,* | *,no | *\'*)
  16866. # Didn't find X, or a directory has "'" in its name.
  16867. ac_cv_have_x="have_x=no";; #(
  16868. *)
  16869. # Record where we found X for the cache.
  16870. ac_cv_have_x="have_x=yes\
  16871. ac_x_includes='$ac_x_includes'\
  16872. ac_x_libraries='$ac_x_libraries'"
  16873. esac
  16874. fi
  16875. ;; #(
  16876. *) have_x=yes;;
  16877. esac
  16878. eval "$ac_cv_have_x"
  16879. fi # $with_x != no
  16880. if test "$have_x" != yes; then
  16881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16882. $as_echo "$have_x" >&6; }
  16883. no_x=yes
  16884. else
  16885. # If each of the values was on the command line, it overrides each guess.
  16886. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16887. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16888. # Update the cache value to reflect the command line values.
  16889. ac_cv_have_x="have_x=yes\
  16890. ac_x_includes='$x_includes'\
  16891. ac_x_libraries='$x_libraries'"
  16892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16893. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16894. fi
  16895. if test "$no_x" = yes; then
  16896. # Not all programs may use this symbol, but it does not hurt to define it.
  16897. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16898. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16899. else
  16900. if test -n "$x_includes"; then
  16901. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16902. fi
  16903. # It would also be nice to do this for all -L options, not just this one.
  16904. if test -n "$x_libraries"; then
  16905. X_LIBS="$X_LIBS -L$x_libraries"
  16906. # For Solaris; some versions of Sun CC require a space after -R and
  16907. # others require no space. Words are not sufficient . . . .
  16908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16909. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16910. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16911. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16912. ac_c_werror_flag=yes
  16913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16914. /* end confdefs.h. */
  16915. int
  16916. main ()
  16917. {
  16918. ;
  16919. return 0;
  16920. }
  16921. _ACEOF
  16922. if ac_fn_c_try_link "$LINENO"; then :
  16923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16924. $as_echo "no" >&6; }
  16925. X_LIBS="$X_LIBS -R$x_libraries"
  16926. else
  16927. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16929. /* end confdefs.h. */
  16930. int
  16931. main ()
  16932. {
  16933. ;
  16934. return 0;
  16935. }
  16936. _ACEOF
  16937. if ac_fn_c_try_link "$LINENO"; then :
  16938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16939. $as_echo "yes" >&6; }
  16940. X_LIBS="$X_LIBS -R $x_libraries"
  16941. else
  16942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16943. $as_echo "neither works" >&6; }
  16944. fi
  16945. rm -f core conftest.err conftest.$ac_objext \
  16946. conftest$ac_exeext conftest.$ac_ext
  16947. fi
  16948. rm -f core conftest.err conftest.$ac_objext \
  16949. conftest$ac_exeext conftest.$ac_ext
  16950. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16951. LIBS=$ac_xsave_LIBS
  16952. fi
  16953. # Check for system-dependent libraries X programs must link with.
  16954. # Do this before checking for the system-independent R6 libraries
  16955. # (-lICE), since we may need -lsocket or whatever for X linking.
  16956. if test "$ISC" = yes; then
  16957. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16958. else
  16959. # Martyn Johnson says this is needed for Ultrix, if the X
  16960. # libraries were built with DECnet support. And Karl Berry says
  16961. # the Alpha needs dnet_stub (dnet does not exist).
  16962. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16964. /* end confdefs.h. */
  16965. /* Override any GCC internal prototype to avoid an error.
  16966. Use char because int might match the return type of a GCC
  16967. builtin and then its argument prototype would still apply. */
  16968. #ifdef __cplusplus
  16969. extern "C"
  16970. #endif
  16971. char XOpenDisplay ();
  16972. int
  16973. main ()
  16974. {
  16975. return XOpenDisplay ();
  16976. ;
  16977. return 0;
  16978. }
  16979. _ACEOF
  16980. if ac_fn_c_try_link "$LINENO"; then :
  16981. else
  16982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16983. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16984. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16985. $as_echo_n "(cached) " >&6
  16986. else
  16987. ac_check_lib_save_LIBS=$LIBS
  16988. LIBS="-ldnet $LIBS"
  16989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16990. /* end confdefs.h. */
  16991. /* Override any GCC internal prototype to avoid an error.
  16992. Use char because int might match the return type of a GCC
  16993. builtin and then its argument prototype would still apply. */
  16994. #ifdef __cplusplus
  16995. extern "C"
  16996. #endif
  16997. char dnet_ntoa ();
  16998. int
  16999. main ()
  17000. {
  17001. return dnet_ntoa ();
  17002. ;
  17003. return 0;
  17004. }
  17005. _ACEOF
  17006. if ac_fn_c_try_link "$LINENO"; then :
  17007. ac_cv_lib_dnet_dnet_ntoa=yes
  17008. else
  17009. ac_cv_lib_dnet_dnet_ntoa=no
  17010. fi
  17011. rm -f core conftest.err conftest.$ac_objext \
  17012. conftest$ac_exeext conftest.$ac_ext
  17013. LIBS=$ac_check_lib_save_LIBS
  17014. fi
  17015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17016. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17017. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17018. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17019. fi
  17020. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17022. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17023. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17024. $as_echo_n "(cached) " >&6
  17025. else
  17026. ac_check_lib_save_LIBS=$LIBS
  17027. LIBS="-ldnet_stub $LIBS"
  17028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17029. /* end confdefs.h. */
  17030. /* Override any GCC internal prototype to avoid an error.
  17031. Use char because int might match the return type of a GCC
  17032. builtin and then its argument prototype would still apply. */
  17033. #ifdef __cplusplus
  17034. extern "C"
  17035. #endif
  17036. char dnet_ntoa ();
  17037. int
  17038. main ()
  17039. {
  17040. return dnet_ntoa ();
  17041. ;
  17042. return 0;
  17043. }
  17044. _ACEOF
  17045. if ac_fn_c_try_link "$LINENO"; then :
  17046. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17047. else
  17048. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17049. fi
  17050. rm -f core conftest.err conftest.$ac_objext \
  17051. conftest$ac_exeext conftest.$ac_ext
  17052. LIBS=$ac_check_lib_save_LIBS
  17053. fi
  17054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17055. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17056. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17057. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17058. fi
  17059. fi
  17060. fi
  17061. rm -f core conftest.err conftest.$ac_objext \
  17062. conftest$ac_exeext conftest.$ac_ext
  17063. LIBS="$ac_xsave_LIBS"
  17064. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17065. # to get the SysV transport functions.
  17066. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17067. # needs -lnsl.
  17068. # The nsl library prevents programs from opening the X display
  17069. # on Irix 5.2, according to T.E. Dickey.
  17070. # The functions gethostbyname, getservbyname, and inet_addr are
  17071. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17072. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17073. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17074. fi
  17075. if test $ac_cv_func_gethostbyname = no; then
  17076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17077. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17078. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17079. $as_echo_n "(cached) " >&6
  17080. else
  17081. ac_check_lib_save_LIBS=$LIBS
  17082. LIBS="-lnsl $LIBS"
  17083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17084. /* end confdefs.h. */
  17085. /* Override any GCC internal prototype to avoid an error.
  17086. Use char because int might match the return type of a GCC
  17087. builtin and then its argument prototype would still apply. */
  17088. #ifdef __cplusplus
  17089. extern "C"
  17090. #endif
  17091. char gethostbyname ();
  17092. int
  17093. main ()
  17094. {
  17095. return gethostbyname ();
  17096. ;
  17097. return 0;
  17098. }
  17099. _ACEOF
  17100. if ac_fn_c_try_link "$LINENO"; then :
  17101. ac_cv_lib_nsl_gethostbyname=yes
  17102. else
  17103. ac_cv_lib_nsl_gethostbyname=no
  17104. fi
  17105. rm -f core conftest.err conftest.$ac_objext \
  17106. conftest$ac_exeext conftest.$ac_ext
  17107. LIBS=$ac_check_lib_save_LIBS
  17108. fi
  17109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17110. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17111. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17112. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17113. fi
  17114. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17116. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17117. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17118. $as_echo_n "(cached) " >&6
  17119. else
  17120. ac_check_lib_save_LIBS=$LIBS
  17121. LIBS="-lbsd $LIBS"
  17122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17123. /* end confdefs.h. */
  17124. /* Override any GCC internal prototype to avoid an error.
  17125. Use char because int might match the return type of a GCC
  17126. builtin and then its argument prototype would still apply. */
  17127. #ifdef __cplusplus
  17128. extern "C"
  17129. #endif
  17130. char gethostbyname ();
  17131. int
  17132. main ()
  17133. {
  17134. return gethostbyname ();
  17135. ;
  17136. return 0;
  17137. }
  17138. _ACEOF
  17139. if ac_fn_c_try_link "$LINENO"; then :
  17140. ac_cv_lib_bsd_gethostbyname=yes
  17141. else
  17142. ac_cv_lib_bsd_gethostbyname=no
  17143. fi
  17144. rm -f core conftest.err conftest.$ac_objext \
  17145. conftest$ac_exeext conftest.$ac_ext
  17146. LIBS=$ac_check_lib_save_LIBS
  17147. fi
  17148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17149. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17150. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17151. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17152. fi
  17153. fi
  17154. fi
  17155. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17156. # socket/setsockopt and other routines are undefined under SCO ODT
  17157. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17158. # on later versions), says Simon Leinen: it contains gethostby*
  17159. # variants that don't use the name server (or something). -lsocket
  17160. # must be given before -lnsl if both are needed. We assume that
  17161. # if connect needs -lnsl, so does gethostbyname.
  17162. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17163. if test "x$ac_cv_func_connect" = xyes; then :
  17164. fi
  17165. if test $ac_cv_func_connect = no; then
  17166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17167. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17168. if ${ac_cv_lib_socket_connect+:} false; then :
  17169. $as_echo_n "(cached) " >&6
  17170. else
  17171. ac_check_lib_save_LIBS=$LIBS
  17172. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17174. /* end confdefs.h. */
  17175. /* Override any GCC internal prototype to avoid an error.
  17176. Use char because int might match the return type of a GCC
  17177. builtin and then its argument prototype would still apply. */
  17178. #ifdef __cplusplus
  17179. extern "C"
  17180. #endif
  17181. char connect ();
  17182. int
  17183. main ()
  17184. {
  17185. return connect ();
  17186. ;
  17187. return 0;
  17188. }
  17189. _ACEOF
  17190. if ac_fn_c_try_link "$LINENO"; then :
  17191. ac_cv_lib_socket_connect=yes
  17192. else
  17193. ac_cv_lib_socket_connect=no
  17194. fi
  17195. rm -f core conftest.err conftest.$ac_objext \
  17196. conftest$ac_exeext conftest.$ac_ext
  17197. LIBS=$ac_check_lib_save_LIBS
  17198. fi
  17199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17200. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17201. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17202. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17203. fi
  17204. fi
  17205. # Guillermo Gomez says -lposix is necessary on A/UX.
  17206. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17207. if test "x$ac_cv_func_remove" = xyes; then :
  17208. fi
  17209. if test $ac_cv_func_remove = no; then
  17210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17211. $as_echo_n "checking for remove in -lposix... " >&6; }
  17212. if ${ac_cv_lib_posix_remove+:} false; then :
  17213. $as_echo_n "(cached) " >&6
  17214. else
  17215. ac_check_lib_save_LIBS=$LIBS
  17216. LIBS="-lposix $LIBS"
  17217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17218. /* end confdefs.h. */
  17219. /* Override any GCC internal prototype to avoid an error.
  17220. Use char because int might match the return type of a GCC
  17221. builtin and then its argument prototype would still apply. */
  17222. #ifdef __cplusplus
  17223. extern "C"
  17224. #endif
  17225. char remove ();
  17226. int
  17227. main ()
  17228. {
  17229. return remove ();
  17230. ;
  17231. return 0;
  17232. }
  17233. _ACEOF
  17234. if ac_fn_c_try_link "$LINENO"; then :
  17235. ac_cv_lib_posix_remove=yes
  17236. else
  17237. ac_cv_lib_posix_remove=no
  17238. fi
  17239. rm -f core conftest.err conftest.$ac_objext \
  17240. conftest$ac_exeext conftest.$ac_ext
  17241. LIBS=$ac_check_lib_save_LIBS
  17242. fi
  17243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17244. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17245. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17246. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17247. fi
  17248. fi
  17249. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17250. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17251. if test "x$ac_cv_func_shmat" = xyes; then :
  17252. fi
  17253. if test $ac_cv_func_shmat = no; then
  17254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17255. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17256. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17257. $as_echo_n "(cached) " >&6
  17258. else
  17259. ac_check_lib_save_LIBS=$LIBS
  17260. LIBS="-lipc $LIBS"
  17261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17262. /* end confdefs.h. */
  17263. /* Override any GCC internal prototype to avoid an error.
  17264. Use char because int might match the return type of a GCC
  17265. builtin and then its argument prototype would still apply. */
  17266. #ifdef __cplusplus
  17267. extern "C"
  17268. #endif
  17269. char shmat ();
  17270. int
  17271. main ()
  17272. {
  17273. return shmat ();
  17274. ;
  17275. return 0;
  17276. }
  17277. _ACEOF
  17278. if ac_fn_c_try_link "$LINENO"; then :
  17279. ac_cv_lib_ipc_shmat=yes
  17280. else
  17281. ac_cv_lib_ipc_shmat=no
  17282. fi
  17283. rm -f core conftest.err conftest.$ac_objext \
  17284. conftest$ac_exeext conftest.$ac_ext
  17285. LIBS=$ac_check_lib_save_LIBS
  17286. fi
  17287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17288. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17289. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17290. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17291. fi
  17292. fi
  17293. fi
  17294. # Check for libraries that X11R6 Xt/Xaw programs need.
  17295. ac_save_LDFLAGS=$LDFLAGS
  17296. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17297. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17298. # check for ICE first), but we must link in the order -lSM -lICE or
  17299. # we get undefined symbols. So assume we have SM if we have ICE.
  17300. # These have to be linked with before -lX11, unlike the other
  17301. # libraries we check for below, so use a different variable.
  17302. # John Interrante, Karl Berry
  17303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17304. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17305. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17306. $as_echo_n "(cached) " >&6
  17307. else
  17308. ac_check_lib_save_LIBS=$LIBS
  17309. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17311. /* end confdefs.h. */
  17312. /* Override any GCC internal prototype to avoid an error.
  17313. Use char because int might match the return type of a GCC
  17314. builtin and then its argument prototype would still apply. */
  17315. #ifdef __cplusplus
  17316. extern "C"
  17317. #endif
  17318. char IceConnectionNumber ();
  17319. int
  17320. main ()
  17321. {
  17322. return IceConnectionNumber ();
  17323. ;
  17324. return 0;
  17325. }
  17326. _ACEOF
  17327. if ac_fn_c_try_link "$LINENO"; then :
  17328. ac_cv_lib_ICE_IceConnectionNumber=yes
  17329. else
  17330. ac_cv_lib_ICE_IceConnectionNumber=no
  17331. fi
  17332. rm -f core conftest.err conftest.$ac_objext \
  17333. conftest$ac_exeext conftest.$ac_ext
  17334. LIBS=$ac_check_lib_save_LIBS
  17335. fi
  17336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17337. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17338. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17339. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17340. fi
  17341. LDFLAGS=$ac_save_LDFLAGS
  17342. fi
  17343. if test x$have_x = xyes; then
  17344. # Check whether --enable-x11-shared was given.
  17345. if test "${enable_x11_shared+set}" = set; then :
  17346. enableval=$enable_x11_shared;
  17347. else
  17348. enable_x11_shared=maybe
  17349. fi
  17350. case "$host" in
  17351. *-*-darwin*)
  17352. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17353. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17354. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17355. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17356. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17357. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17358. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17359. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17360. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17361. ;;
  17362. *-*-openbsd*)
  17363. x11_lib='libX11.so'
  17364. x11ext_lib='libXext.so'
  17365. xcursor_lib='libXcursor.so'
  17366. xinerama_lib='libXinerama.so'
  17367. xinput_lib='libXi.so'
  17368. xrandr_lib='libXrandr.so'
  17369. xrender_lib='libXrender.so'
  17370. xss_lib='libXss.so'
  17371. xvidmode_lib='libXxf86vm.so'
  17372. ;;
  17373. *)
  17374. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17375. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17376. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17377. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17378. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17379. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17380. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17381. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17382. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17383. ;;
  17384. esac
  17385. if test x$ac_cv_func_shmat != xyes; then
  17386. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17387. fi
  17388. CFLAGS="$CFLAGS $X_CFLAGS"
  17389. LDFLAGS="$LDFLAGS $X_LIBS"
  17390. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17391. #include <X11/Xproto.h>
  17392. "
  17393. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17394. have_xext_h_hdr=yes
  17395. else
  17396. have_xext_h_hdr=no
  17397. fi
  17398. if test x$have_xext_h_hdr != xyes; then
  17399. as_fn_error $? "
  17400. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17401. " "$LINENO" 5
  17402. fi
  17403. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17404. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17405. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17406. # Needed so SDL applications can include SDL_syswm.h
  17407. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17408. if test x$enable_x11_shared = xmaybe; then
  17409. enable_x11_shared=yes
  17410. fi
  17411. if test x$have_loadso != xyes && \
  17412. test x$enable_x11_shared = xyes; then
  17413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17414. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17415. enable_x11_shared=no
  17416. fi
  17417. if test x$have_loadso = xyes && \
  17418. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17419. echo "-- dynamic libX11 -> $x11_lib"
  17420. echo "-- dynamic libX11ext -> $x11ext_lib"
  17421. cat >>confdefs.h <<_ACEOF
  17422. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17423. _ACEOF
  17424. cat >>confdefs.h <<_ACEOF
  17425. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17426. _ACEOF
  17427. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17428. else
  17429. enable_x11_shared=no
  17430. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17431. SUMMARY_video="${SUMMARY_video} x11"
  17432. fi
  17433. have_video=yes
  17434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17435. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17436. have_const_param_XextAddDisplay=no
  17437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17438. /* end confdefs.h. */
  17439. #include <X11/Xlib.h>
  17440. #include <X11/Xproto.h>
  17441. #include <X11/extensions/Xext.h>
  17442. #include <X11/extensions/extutil.h>
  17443. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17444. int
  17445. main ()
  17446. {
  17447. ;
  17448. return 0;
  17449. }
  17450. _ACEOF
  17451. if ac_fn_c_try_compile "$LINENO"; then :
  17452. have_const_param_XextAddDisplay=yes
  17453. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17454. fi
  17455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17457. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17459. $as_echo_n "checking for XGenericEvent... " >&6; }
  17460. have_XGenericEvent=no
  17461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17462. /* end confdefs.h. */
  17463. #include <X11/Xlib.h>
  17464. int
  17465. main ()
  17466. {
  17467. Display *display;
  17468. XEvent event;
  17469. XGenericEventCookie *cookie = &event.xcookie;
  17470. XNextEvent(display, &event);
  17471. XGetEventData(display, cookie);
  17472. XFreeEventData(display, cookie);
  17473. ;
  17474. return 0;
  17475. }
  17476. _ACEOF
  17477. if ac_fn_c_try_compile "$LINENO"; then :
  17478. have_XGenericEvent=yes
  17479. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17480. fi
  17481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17483. $as_echo "$have_XGenericEvent" >&6; }
  17484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17485. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17486. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17487. $as_echo_n "(cached) " >&6
  17488. else
  17489. ac_check_lib_save_LIBS=$LIBS
  17490. LIBS="-lX11 $LIBS"
  17491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17492. /* end confdefs.h. */
  17493. /* Override any GCC internal prototype to avoid an error.
  17494. Use char because int might match the return type of a GCC
  17495. builtin and then its argument prototype would still apply. */
  17496. #ifdef __cplusplus
  17497. extern "C"
  17498. #endif
  17499. char XkbKeycodeToKeysym ();
  17500. int
  17501. main ()
  17502. {
  17503. return XkbKeycodeToKeysym ();
  17504. ;
  17505. return 0;
  17506. }
  17507. _ACEOF
  17508. if ac_fn_c_try_link "$LINENO"; then :
  17509. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17510. else
  17511. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17512. fi
  17513. rm -f core conftest.err conftest.$ac_objext \
  17514. conftest$ac_exeext conftest.$ac_ext
  17515. LIBS=$ac_check_lib_save_LIBS
  17516. fi
  17517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17518. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17519. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17520. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17521. fi
  17522. # Check whether --enable-video-x11-xcursor was given.
  17523. if test "${enable_video_x11_xcursor+set}" = set; then :
  17524. enableval=$enable_video_x11_xcursor;
  17525. else
  17526. enable_video_x11_xcursor=yes
  17527. fi
  17528. if test x$enable_video_x11_xcursor = xyes; then
  17529. definitely_enable_video_x11_xcursor=no
  17530. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17531. "
  17532. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17533. have_xcursor_h_hdr=yes
  17534. else
  17535. have_xcursor_h_hdr=no
  17536. fi
  17537. if test x$have_xcursor_h_hdr = xyes; then
  17538. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17539. echo "-- dynamic libXcursor -> $xcursor_lib"
  17540. cat >>confdefs.h <<_ACEOF
  17541. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17542. _ACEOF
  17543. definitely_enable_video_x11_xcursor=yes
  17544. else
  17545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17546. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17547. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17548. $as_echo_n "(cached) " >&6
  17549. else
  17550. ac_check_lib_save_LIBS=$LIBS
  17551. LIBS="-lXcursor $LIBS"
  17552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17553. /* end confdefs.h. */
  17554. /* Override any GCC internal prototype to avoid an error.
  17555. Use char because int might match the return type of a GCC
  17556. builtin and then its argument prototype would still apply. */
  17557. #ifdef __cplusplus
  17558. extern "C"
  17559. #endif
  17560. char XcursorImageCreate ();
  17561. int
  17562. main ()
  17563. {
  17564. return XcursorImageCreate ();
  17565. ;
  17566. return 0;
  17567. }
  17568. _ACEOF
  17569. if ac_fn_c_try_link "$LINENO"; then :
  17570. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17571. else
  17572. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17573. fi
  17574. rm -f core conftest.err conftest.$ac_objext \
  17575. conftest$ac_exeext conftest.$ac_ext
  17576. LIBS=$ac_check_lib_save_LIBS
  17577. fi
  17578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17579. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17580. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17581. have_xcursor_lib=yes
  17582. fi
  17583. if test x$have_xcursor_lib = xyes ; then
  17584. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17585. definitely_enable_video_x11_xcursor=yes
  17586. fi
  17587. fi
  17588. fi
  17589. fi
  17590. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17591. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17592. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17593. fi
  17594. # Check whether --enable-video-x11-xdbe was given.
  17595. if test "${enable_video_x11_xdbe+set}" = set; then :
  17596. enableval=$enable_video_x11_xdbe;
  17597. else
  17598. enable_video_x11_xdbe=yes
  17599. fi
  17600. if test x$enable_video_x11_xdbe = xyes; then
  17601. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17602. "
  17603. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17604. have_dbe_h_hdr=yes
  17605. else
  17606. have_dbe_h_hdr=no
  17607. fi
  17608. if test x$have_dbe_h_hdr = xyes; then
  17609. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17610. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17611. fi
  17612. fi
  17613. # Check whether --enable-video-x11-xinerama was given.
  17614. if test "${enable_video_x11_xinerama+set}" = set; then :
  17615. enableval=$enable_video_x11_xinerama;
  17616. else
  17617. enable_video_x11_xinerama=yes
  17618. fi
  17619. if test x$enable_video_x11_xinerama = xyes; then
  17620. definitely_enable_video_x11_xinerama=no
  17621. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17622. "
  17623. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17624. have_xinerama_h_hdr=yes
  17625. else
  17626. have_xinerama_h_hdr=no
  17627. fi
  17628. if test x$have_xinerama_h_hdr = xyes; then
  17629. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17630. echo "-- dynamic libXinerama -> $xinerama_lib"
  17631. cat >>confdefs.h <<_ACEOF
  17632. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17633. _ACEOF
  17634. definitely_enable_video_x11_xinerama=yes
  17635. else
  17636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17637. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17638. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17639. $as_echo_n "(cached) " >&6
  17640. else
  17641. ac_check_lib_save_LIBS=$LIBS
  17642. LIBS="-lXinerama $LIBS"
  17643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17644. /* end confdefs.h. */
  17645. /* Override any GCC internal prototype to avoid an error.
  17646. Use char because int might match the return type of a GCC
  17647. builtin and then its argument prototype would still apply. */
  17648. #ifdef __cplusplus
  17649. extern "C"
  17650. #endif
  17651. char XineramaQueryExtension ();
  17652. int
  17653. main ()
  17654. {
  17655. return XineramaQueryExtension ();
  17656. ;
  17657. return 0;
  17658. }
  17659. _ACEOF
  17660. if ac_fn_c_try_link "$LINENO"; then :
  17661. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17662. else
  17663. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17664. fi
  17665. rm -f core conftest.err conftest.$ac_objext \
  17666. conftest$ac_exeext conftest.$ac_ext
  17667. LIBS=$ac_check_lib_save_LIBS
  17668. fi
  17669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17670. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17671. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17672. have_xinerama_lib=yes
  17673. fi
  17674. if test x$have_xinerama_lib = xyes ; then
  17675. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17676. definitely_enable_video_x11_xinerama=yes
  17677. fi
  17678. fi
  17679. fi
  17680. fi
  17681. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17682. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17683. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17684. fi
  17685. # Check whether --enable-video-x11-xinput was given.
  17686. if test "${enable_video_x11_xinput+set}" = set; then :
  17687. enableval=$enable_video_x11_xinput;
  17688. else
  17689. enable_video_x11_xinput=yes
  17690. fi
  17691. if test x$enable_video_x11_xinput = xyes; then
  17692. definitely_enable_video_x11_xinput=no
  17693. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17694. "
  17695. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17696. have_xinput_h_hdr=yes
  17697. else
  17698. have_xinput_h_hdr=no
  17699. fi
  17700. if test x$have_xinput_h_hdr = xyes; then
  17701. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17702. echo "-- dynamic libXi -> $xinput_lib"
  17703. cat >>confdefs.h <<_ACEOF
  17704. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17705. _ACEOF
  17706. definitely_enable_video_x11_xinput=yes
  17707. else
  17708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17709. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17710. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17711. $as_echo_n "(cached) " >&6
  17712. else
  17713. ac_check_lib_save_LIBS=$LIBS
  17714. LIBS="-lXi $LIBS"
  17715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17716. /* end confdefs.h. */
  17717. /* Override any GCC internal prototype to avoid an error.
  17718. Use char because int might match the return type of a GCC
  17719. builtin and then its argument prototype would still apply. */
  17720. #ifdef __cplusplus
  17721. extern "C"
  17722. #endif
  17723. char XOpenDevice ();
  17724. int
  17725. main ()
  17726. {
  17727. return XOpenDevice ();
  17728. ;
  17729. return 0;
  17730. }
  17731. _ACEOF
  17732. if ac_fn_c_try_link "$LINENO"; then :
  17733. ac_cv_lib_Xi_XOpenDevice=yes
  17734. else
  17735. ac_cv_lib_Xi_XOpenDevice=no
  17736. fi
  17737. rm -f core conftest.err conftest.$ac_objext \
  17738. conftest$ac_exeext conftest.$ac_ext
  17739. LIBS=$ac_check_lib_save_LIBS
  17740. fi
  17741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17742. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17743. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17744. have_xinput_lib=yes
  17745. fi
  17746. if test x$have_xinput_lib = xyes ; then
  17747. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17748. definitely_enable_video_x11_xinput=yes
  17749. fi
  17750. fi
  17751. fi
  17752. fi
  17753. if test x$definitely_enable_video_x11_xinput = xyes; then
  17754. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17755. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17757. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17758. have_xinput2_multitouch=no
  17759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17760. /* end confdefs.h. */
  17761. #include <X11/Xlib.h>
  17762. #include <X11/Xproto.h>
  17763. #include <X11/extensions/XInput2.h>
  17764. int
  17765. main ()
  17766. {
  17767. int event_type = XI_TouchBegin;
  17768. XITouchClassInfo *t;
  17769. ;
  17770. return 0;
  17771. }
  17772. _ACEOF
  17773. if ac_fn_c_try_compile "$LINENO"; then :
  17774. have_xinput2_multitouch=yes
  17775. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17776. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17777. fi
  17778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17780. $as_echo "$have_xinput2_multitouch" >&6; }
  17781. fi
  17782. # Check whether --enable-video-x11-xrandr was given.
  17783. if test "${enable_video_x11_xrandr+set}" = set; then :
  17784. enableval=$enable_video_x11_xrandr;
  17785. else
  17786. enable_video_x11_xrandr=yes
  17787. fi
  17788. if test x$enable_video_x11_xrandr = xyes; then
  17789. definitely_enable_video_x11_xrandr=no
  17790. have_xrandr_h_hdr=no
  17791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17792. /* end confdefs.h. */
  17793. #include <X11/Xlib.h>
  17794. #include <X11/extensions/Xrandr.h>
  17795. int
  17796. main ()
  17797. {
  17798. XRRScreenResources *res = NULL;
  17799. ;
  17800. return 0;
  17801. }
  17802. _ACEOF
  17803. if ac_fn_c_try_compile "$LINENO"; then :
  17804. have_xrandr_h_hdr=yes
  17805. fi
  17806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17807. if test x$have_xrandr_h_hdr = xyes; then
  17808. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17809. echo "-- dynamic libXrandr -> $xrandr_lib"
  17810. cat >>confdefs.h <<_ACEOF
  17811. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17812. _ACEOF
  17813. definitely_enable_video_x11_xrandr=yes
  17814. else
  17815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17816. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17817. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17818. $as_echo_n "(cached) " >&6
  17819. else
  17820. ac_check_lib_save_LIBS=$LIBS
  17821. LIBS="-lXrandr $LIBS"
  17822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17823. /* end confdefs.h. */
  17824. /* Override any GCC internal prototype to avoid an error.
  17825. Use char because int might match the return type of a GCC
  17826. builtin and then its argument prototype would still apply. */
  17827. #ifdef __cplusplus
  17828. extern "C"
  17829. #endif
  17830. char XRRQueryExtension ();
  17831. int
  17832. main ()
  17833. {
  17834. return XRRQueryExtension ();
  17835. ;
  17836. return 0;
  17837. }
  17838. _ACEOF
  17839. if ac_fn_c_try_link "$LINENO"; then :
  17840. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17841. else
  17842. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17843. fi
  17844. rm -f core conftest.err conftest.$ac_objext \
  17845. conftest$ac_exeext conftest.$ac_ext
  17846. LIBS=$ac_check_lib_save_LIBS
  17847. fi
  17848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17849. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17850. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17851. have_xrandr_lib=yes
  17852. fi
  17853. if test x$have_xrandr_lib = xyes ; then
  17854. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17855. definitely_enable_video_x11_xrandr=yes
  17856. fi
  17857. fi
  17858. fi
  17859. fi
  17860. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17861. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17862. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17863. fi
  17864. # Check whether --enable-video-x11-scrnsaver was given.
  17865. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17866. enableval=$enable_video_x11_scrnsaver;
  17867. else
  17868. enable_video_x11_scrnsaver=yes
  17869. fi
  17870. if test x$enable_video_x11_scrnsaver = xyes; then
  17871. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17872. "
  17873. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17874. have_scrnsaver_h_hdr=yes
  17875. else
  17876. have_scrnsaver_h_hdr=no
  17877. fi
  17878. if test x$have_scrnsaver_h_hdr = xyes; then
  17879. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17880. echo "-- dynamic libXss -> $xss_lib"
  17881. cat >>confdefs.h <<_ACEOF
  17882. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17883. _ACEOF
  17884. definitely_enable_video_x11_scrnsaver=yes
  17885. else
  17886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17887. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17888. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17889. $as_echo_n "(cached) " >&6
  17890. else
  17891. ac_check_lib_save_LIBS=$LIBS
  17892. LIBS="-lXss $LIBS"
  17893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17894. /* end confdefs.h. */
  17895. /* Override any GCC internal prototype to avoid an error.
  17896. Use char because int might match the return type of a GCC
  17897. builtin and then its argument prototype would still apply. */
  17898. #ifdef __cplusplus
  17899. extern "C"
  17900. #endif
  17901. char XScreenSaverSuspend ();
  17902. int
  17903. main ()
  17904. {
  17905. return XScreenSaverSuspend ();
  17906. ;
  17907. return 0;
  17908. }
  17909. _ACEOF
  17910. if ac_fn_c_try_link "$LINENO"; then :
  17911. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17912. else
  17913. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17914. fi
  17915. rm -f core conftest.err conftest.$ac_objext \
  17916. conftest$ac_exeext conftest.$ac_ext
  17917. LIBS=$ac_check_lib_save_LIBS
  17918. fi
  17919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17920. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17921. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17922. have_xss_lib=yes
  17923. fi
  17924. if test x$have_xss_lib = xyes ; then
  17925. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17926. definitely_enable_video_x11_scrnsaver=yes
  17927. fi
  17928. fi
  17929. fi
  17930. fi
  17931. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17932. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17933. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17934. fi
  17935. # Check whether --enable-video-x11-xshape was given.
  17936. if test "${enable_video_x11_xshape+set}" = set; then :
  17937. enableval=$enable_video_x11_xshape;
  17938. else
  17939. enable_video_x11_xshape=yes
  17940. fi
  17941. if test x$enable_video_x11_xshape = xyes; then
  17942. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17943. "
  17944. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17945. have_shape_h_hdr=yes
  17946. else
  17947. have_shape_h_hdr=no
  17948. fi
  17949. if test x$have_shape_h_hdr = xyes; then
  17950. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17951. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17952. fi
  17953. fi
  17954. # Check whether --enable-video-x11-vm was given.
  17955. if test "${enable_video_x11_vm+set}" = set; then :
  17956. enableval=$enable_video_x11_vm;
  17957. else
  17958. enable_video_x11_vm=yes
  17959. fi
  17960. if test x$enable_video_x11_vm = xyes; then
  17961. definitely_enable_video_x11_vm=no
  17962. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17963. "
  17964. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17965. have_vm_h_hdr=yes
  17966. else
  17967. have_vm_h_hdr=no
  17968. fi
  17969. if test x$have_vm_h_hdr = xyes; then
  17970. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17971. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17972. cat >>confdefs.h <<_ACEOF
  17973. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17974. _ACEOF
  17975. definitely_enable_video_x11_vm=yes
  17976. else
  17977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17978. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17979. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17980. $as_echo_n "(cached) " >&6
  17981. else
  17982. ac_check_lib_save_LIBS=$LIBS
  17983. LIBS="-lXxf86vm $LIBS"
  17984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17985. /* end confdefs.h. */
  17986. /* Override any GCC internal prototype to avoid an error.
  17987. Use char because int might match the return type of a GCC
  17988. builtin and then its argument prototype would still apply. */
  17989. #ifdef __cplusplus
  17990. extern "C"
  17991. #endif
  17992. char XF86VidModeQueryVersion ();
  17993. int
  17994. main ()
  17995. {
  17996. return XF86VidModeQueryVersion ();
  17997. ;
  17998. return 0;
  17999. }
  18000. _ACEOF
  18001. if ac_fn_c_try_link "$LINENO"; then :
  18002. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18003. else
  18004. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18005. fi
  18006. rm -f core conftest.err conftest.$ac_objext \
  18007. conftest$ac_exeext conftest.$ac_ext
  18008. LIBS=$ac_check_lib_save_LIBS
  18009. fi
  18010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18011. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18012. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18013. have_vm_lib=yes
  18014. fi
  18015. if test x$have_vm_lib = xyes ; then
  18016. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18017. definitely_enable_video_x11_vm=yes
  18018. fi
  18019. fi
  18020. fi
  18021. fi
  18022. if test x$definitely_enable_video_x11_vm = xyes; then
  18023. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18024. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18025. fi
  18026. fi
  18027. fi
  18028. }
  18029. CheckVivanteVideo()
  18030. {
  18031. # Check whether --enable-video-vivante was given.
  18032. if test "${enable_video_vivante+set}" = set; then :
  18033. enableval=$enable_video_vivante;
  18034. else
  18035. enable_video_vivante=yes
  18036. fi
  18037. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18039. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18040. have_vivante_vdk=no
  18041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18042. /* end confdefs.h. */
  18043. #define LINUX
  18044. #define EGL_API_FB
  18045. #include <gc_vdk.h>
  18046. int
  18047. main ()
  18048. {
  18049. ;
  18050. return 0;
  18051. }
  18052. _ACEOF
  18053. if ac_fn_c_try_compile "$LINENO"; then :
  18054. have_vivante_vdk=yes
  18055. fi
  18056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18058. $as_echo "$have_vivante_vdk" >&6; }
  18059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18060. $as_echo_n "checking for Vivante FB API... " >&6; }
  18061. have_vivante_egl=no
  18062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18063. /* end confdefs.h. */
  18064. #define LINUX
  18065. #define EGL_API_FB
  18066. #include <EGL/eglvivante.h>
  18067. int
  18068. main ()
  18069. {
  18070. ;
  18071. return 0;
  18072. }
  18073. _ACEOF
  18074. if ac_fn_c_try_compile "$LINENO"; then :
  18075. have_vivante_egl=yes
  18076. fi
  18077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18079. $as_echo "$have_vivante_egl" >&6; }
  18080. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18081. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18082. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18083. if test x$have_vivante_vdk = xyes; then
  18084. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18085. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18086. fi
  18087. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18088. SUMMARY_video="${SUMMARY_video} vivante"
  18089. have_video=yes
  18090. fi
  18091. fi
  18092. }
  18093. CheckHaikuVideo()
  18094. {
  18095. if test x$enable_video = xyes; then
  18096. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18097. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18098. have_video=yes
  18099. SUMMARY_video="${SUMMARY_video} haiku"
  18100. fi
  18101. }
  18102. CheckCOCOA()
  18103. {
  18104. # Check whether --enable-video-cocoa was given.
  18105. if test "${enable_video_cocoa+set}" = set; then :
  18106. enableval=$enable_video_cocoa;
  18107. else
  18108. enable_video_cocoa=yes
  18109. fi
  18110. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18111. save_CFLAGS="$CFLAGS"
  18112. CFLAGS="$CFLAGS -x objective-c"
  18113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18114. $as_echo_n "checking for Cocoa framework... " >&6; }
  18115. have_cocoa=no
  18116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18117. /* end confdefs.h. */
  18118. #import <Cocoa/Cocoa.h>
  18119. int
  18120. main ()
  18121. {
  18122. ;
  18123. return 0;
  18124. }
  18125. _ACEOF
  18126. if ac_fn_c_try_compile "$LINENO"; then :
  18127. have_cocoa=yes
  18128. fi
  18129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18131. $as_echo "$have_cocoa" >&6; }
  18132. CFLAGS="$save_CFLAGS"
  18133. if test x$have_cocoa = xyes; then
  18134. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18135. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18136. SUMMARY_video="${SUMMARY_video} cocoa"
  18137. have_video=yes
  18138. fi
  18139. fi
  18140. }
  18141. CheckDirectFB()
  18142. {
  18143. # Check whether --enable-video-directfb was given.
  18144. if test "${enable_video_directfb+set}" = set; then :
  18145. enableval=$enable_video_directfb;
  18146. else
  18147. enable_video_directfb=no
  18148. fi
  18149. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18150. video_directfb=no
  18151. DIRECTFB_REQUIRED_VERSION=1.0.0
  18152. for ac_prog in directfb-config
  18153. do
  18154. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18155. set dummy $ac_prog; ac_word=$2
  18156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18157. $as_echo_n "checking for $ac_word... " >&6; }
  18158. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18159. $as_echo_n "(cached) " >&6
  18160. else
  18161. case $DIRECTFBCONFIG in
  18162. [\\/]* | ?:[\\/]*)
  18163. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18164. ;;
  18165. *)
  18166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18167. as_dummy="$prefix/bin:$PATH"
  18168. for as_dir in $as_dummy
  18169. do
  18170. IFS=$as_save_IFS
  18171. test -z "$as_dir" && as_dir=.
  18172. for ac_exec_ext in '' $ac_executable_extensions; do
  18173. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18174. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18175. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18176. break 2
  18177. fi
  18178. done
  18179. done
  18180. IFS=$as_save_IFS
  18181. ;;
  18182. esac
  18183. fi
  18184. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18185. if test -n "$DIRECTFBCONFIG"; then
  18186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18187. $as_echo "$DIRECTFBCONFIG" >&6; }
  18188. else
  18189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18190. $as_echo "no" >&6; }
  18191. fi
  18192. test -n "$DIRECTFBCONFIG" && break
  18193. done
  18194. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18195. if test x$DIRECTFBCONFIG = xno; then
  18196. # Extract the first word of "pkg-config", so it can be a program name with args.
  18197. set dummy pkg-config; ac_word=$2
  18198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18199. $as_echo_n "checking for $ac_word... " >&6; }
  18200. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18201. $as_echo_n "(cached) " >&6
  18202. else
  18203. case $PKG_CONFIG in
  18204. [\\/]* | ?:[\\/]*)
  18205. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18206. ;;
  18207. *)
  18208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18209. for as_dir in $PATH
  18210. do
  18211. IFS=$as_save_IFS
  18212. test -z "$as_dir" && as_dir=.
  18213. for ac_exec_ext in '' $ac_executable_extensions; do
  18214. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18215. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18216. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18217. break 2
  18218. fi
  18219. done
  18220. done
  18221. IFS=$as_save_IFS
  18222. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18223. ;;
  18224. esac
  18225. fi
  18226. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18227. if test -n "$PKG_CONFIG"; then
  18228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18229. $as_echo "$PKG_CONFIG" >&6; }
  18230. else
  18231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18232. $as_echo "no" >&6; }
  18233. fi
  18234. if test x$PKG_CONFIG != xno; then
  18235. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18236. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18237. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18238. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18239. video_directfb=yes
  18240. fi
  18241. fi
  18242. else
  18243. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18244. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18245. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18246. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18247. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18248. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18249. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18250. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18251. video_directfb=yes
  18252. fi
  18253. fi
  18254. if test x$video_directfb = xyes; then
  18255. # SuSE 11.1 installs directfb-config without directfb-devel
  18256. save_CPPFLAGS="$CPPFLAGS"
  18257. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18258. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18259. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18260. have_directfb_hdr=yes
  18261. else
  18262. have_directfb_hdr=no
  18263. fi
  18264. CPPFLAGS="$save_CPPFLAGS"
  18265. video_directfb=$have_directfb_hdr
  18266. fi
  18267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18268. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18270. $as_echo "$video_directfb" >&6; }
  18271. if test x$video_directfb = xyes; then
  18272. # Check whether --enable-directfb-shared was given.
  18273. if test "${enable_directfb_shared+set}" = set; then :
  18274. enableval=$enable_directfb_shared;
  18275. else
  18276. enable_directfb_shared=yes
  18277. fi
  18278. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18279. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18280. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18281. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18283. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18284. directfb_shared=no
  18285. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18286. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18287. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18288. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18289. if test x$have_loadso != xyes && \
  18290. test x$enable_directfb_shared = xyes; then
  18291. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18292. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18293. fi
  18294. if test x$have_loadso = xyes && \
  18295. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18296. directfb_shared=yes
  18297. echo "-- $directfb_lib_spec -> $directfb_lib"
  18298. cat >>confdefs.h <<_ACEOF
  18299. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18300. _ACEOF
  18301. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18302. else
  18303. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18304. SUMMARY_video="${SUMMARY_video} directfb"
  18305. fi
  18306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18307. $as_echo "$directfb_shared" >&6; }
  18308. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18309. have_video=yes
  18310. fi
  18311. fi
  18312. }
  18313. CheckKMSDRM()
  18314. {
  18315. # Check whether --enable-video-kmsdrm was given.
  18316. if test "${enable_video_kmsdrm+set}" = set; then :
  18317. enableval=$enable_video_kmsdrm;
  18318. else
  18319. enable_video_kmsdrm=no
  18320. fi
  18321. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18322. video_kmsdrm=no
  18323. libdrm_avail=no
  18324. libgbm_avail=no
  18325. LIBDRM_REQUIRED_VERSION=2.4.46
  18326. LIBGBM_REQUIRED_VERSION=9.0.0
  18327. # Extract the first word of "pkg-config", so it can be a program name with args.
  18328. set dummy pkg-config; ac_word=$2
  18329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18330. $as_echo_n "checking for $ac_word... " >&6; }
  18331. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18332. $as_echo_n "(cached) " >&6
  18333. else
  18334. case $PKG_CONFIG in
  18335. [\\/]* | ?:[\\/]*)
  18336. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18337. ;;
  18338. *)
  18339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18340. for as_dir in $PATH
  18341. do
  18342. IFS=$as_save_IFS
  18343. test -z "$as_dir" && as_dir=.
  18344. for ac_exec_ext in '' $ac_executable_extensions; do
  18345. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18346. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18347. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18348. break 2
  18349. fi
  18350. done
  18351. done
  18352. IFS=$as_save_IFS
  18353. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18354. ;;
  18355. esac
  18356. fi
  18357. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18358. if test -n "$PKG_CONFIG"; then
  18359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18360. $as_echo "$PKG_CONFIG" >&6; }
  18361. else
  18362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18363. $as_echo "no" >&6; }
  18364. fi
  18365. if test x$PKG_CONFIG != xno; then
  18366. if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
  18367. if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
  18368. LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
  18369. LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
  18370. LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
  18371. libdrm_avail=yes
  18372. fi
  18373. if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
  18374. LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
  18375. LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
  18376. LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
  18377. libgbm_avail=yes
  18378. fi
  18379. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18380. video_kmsdrm=yes
  18381. fi
  18382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
  18383. $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
  18385. $as_echo "$libdrm_avail" >&6; }
  18386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
  18387. $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
  18389. $as_echo "$libgbm_avail" >&6; }
  18390. if test x$video_kmsdrm = xyes; then
  18391. # Check whether --enable-kmsdrm-shared was given.
  18392. if test "${enable_kmsdrm_shared+set}" = set; then :
  18393. enableval=$enable_kmsdrm_shared;
  18394. else
  18395. enable_kmsdrm_shared=yes
  18396. fi
  18397. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18398. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18399. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18401. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18402. kmsdrm_shared=no
  18403. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18404. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18405. if test x$have_loadso != xyes && \
  18406. test x$enable_kmsdrm_shared = xyes; then
  18407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18408. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18409. fi
  18410. if test x$have_loadso = xyes && \
  18411. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18412. kmsdrm_shared=yes
  18413. cat >>confdefs.h <<_ACEOF
  18414. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18415. _ACEOF
  18416. cat >>confdefs.h <<_ACEOF
  18417. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18418. _ACEOF
  18419. cat >>confdefs.h <<_ACEOF
  18420. #define HAVE_KMSDRM_SHARED "TRUE"
  18421. _ACEOF
  18422. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18423. else
  18424. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18425. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18426. fi
  18427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18428. $as_echo "$kmsdrm_shared" >&6; }
  18429. have_video=yes
  18430. fi
  18431. fi
  18432. fi
  18433. fi
  18434. }
  18435. CheckDummyVideo()
  18436. {
  18437. # Check whether --enable-video-dummy was given.
  18438. if test "${enable_video_dummy+set}" = set; then :
  18439. enableval=$enable_video_dummy;
  18440. else
  18441. enable_video_dummy=yes
  18442. fi
  18443. if test x$enable_video_dummy = xyes; then
  18444. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18445. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18446. have_video=yes
  18447. SUMMARY_video="${SUMMARY_video} dummy"
  18448. fi
  18449. }
  18450. CheckQNXVideo()
  18451. {
  18452. if test x$enable_video = xyes; then
  18453. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18454. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18455. have_video=yes
  18456. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18457. SUMMARY_video="${SUMMARY_video} qnx"
  18458. fi
  18459. }
  18460. CheckQNXAudio()
  18461. {
  18462. if test x$enable_audio = xyes; then
  18463. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18464. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18465. have_audio=yes
  18466. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18467. SUMMARY_audio="${SUMMARY_audio} qsa"
  18468. fi
  18469. }
  18470. # Check whether --enable-video-opengl was given.
  18471. if test "${enable_video_opengl+set}" = set; then :
  18472. enableval=$enable_video_opengl;
  18473. else
  18474. enable_video_opengl=yes
  18475. fi
  18476. CheckOpenGLX11()
  18477. {
  18478. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18480. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18481. video_opengl=no
  18482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18483. /* end confdefs.h. */
  18484. #include <GL/gl.h>
  18485. #include <GL/glx.h>
  18486. int
  18487. main ()
  18488. {
  18489. ;
  18490. return 0;
  18491. }
  18492. _ACEOF
  18493. if ac_fn_c_try_compile "$LINENO"; then :
  18494. video_opengl=yes
  18495. fi
  18496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18498. $as_echo "$video_opengl" >&6; }
  18499. if test x$video_opengl = xyes; then
  18500. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18501. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18502. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18503. SUMMARY_video="${SUMMARY_video} opengl"
  18504. fi
  18505. fi
  18506. }
  18507. # Check whether --enable-video-opengles was given.
  18508. if test "${enable_video_opengles+set}" = set; then :
  18509. enableval=$enable_video_opengles;
  18510. else
  18511. enable_video_opengles=yes
  18512. fi
  18513. # Check whether --enable-video-opengles1 was given.
  18514. if test "${enable_video_opengles1+set}" = set; then :
  18515. enableval=$enable_video_opengles1;
  18516. else
  18517. enable_video_opengles1=yes
  18518. fi
  18519. # Check whether --enable-video-opengles2 was given.
  18520. if test "${enable_video_opengles2+set}" = set; then :
  18521. enableval=$enable_video_opengles2;
  18522. else
  18523. enable_video_opengles2=yes
  18524. fi
  18525. CheckOpenGLESX11()
  18526. {
  18527. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18529. $as_echo_n "checking for EGL support... " >&6; }
  18530. video_opengl_egl=no
  18531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18532. /* end confdefs.h. */
  18533. #define LINUX
  18534. #define EGL_API_FB
  18535. #include <EGL/egl.h>
  18536. #include <EGL/eglext.h>
  18537. int
  18538. main ()
  18539. {
  18540. ;
  18541. return 0;
  18542. }
  18543. _ACEOF
  18544. if ac_fn_c_try_compile "$LINENO"; then :
  18545. video_opengl_egl=yes
  18546. fi
  18547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18549. $as_echo "$video_opengl_egl" >&6; }
  18550. if test x$video_opengl_egl = xyes; then
  18551. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18552. fi
  18553. if test x$enable_video_opengles1 = xyes; then
  18554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18555. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18556. video_opengles_v1=no
  18557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18558. /* end confdefs.h. */
  18559. #include <GLES/gl.h>
  18560. #include <GLES/glext.h>
  18561. int
  18562. main ()
  18563. {
  18564. ;
  18565. return 0;
  18566. }
  18567. _ACEOF
  18568. if ac_fn_c_try_compile "$LINENO"; then :
  18569. video_opengles_v1=yes
  18570. fi
  18571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18573. $as_echo "$video_opengles_v1" >&6; }
  18574. if test x$video_opengles_v1 = xyes; then
  18575. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18576. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18577. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18578. fi
  18579. fi
  18580. if test x$enable_video_opengles2 = xyes; then
  18581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18582. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18583. video_opengles_v2=no
  18584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18585. /* end confdefs.h. */
  18586. #include <GLES2/gl2.h>
  18587. #include <GLES2/gl2ext.h>
  18588. int
  18589. main ()
  18590. {
  18591. ;
  18592. return 0;
  18593. }
  18594. _ACEOF
  18595. if ac_fn_c_try_compile "$LINENO"; then :
  18596. video_opengles_v2=yes
  18597. fi
  18598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18600. $as_echo "$video_opengles_v2" >&6; }
  18601. if test x$video_opengles_v2 = xyes; then
  18602. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18603. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18604. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18605. fi
  18606. fi
  18607. fi
  18608. }
  18609. CheckWINDOWSGL()
  18610. {
  18611. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18612. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18613. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18614. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18615. SUMMARY_video="${SUMMARY_video} opengl"
  18616. fi
  18617. }
  18618. CheckWINDOWSGLES()
  18619. {
  18620. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18622. $as_echo_n "checking for EGL support... " >&6; }
  18623. video_opengl_egl=no
  18624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18625. /* end confdefs.h. */
  18626. #include <EGL/egl.h>
  18627. int
  18628. main ()
  18629. {
  18630. ;
  18631. return 0;
  18632. }
  18633. _ACEOF
  18634. if ac_fn_c_try_compile "$LINENO"; then :
  18635. video_opengl_egl=yes
  18636. fi
  18637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18639. $as_echo "$video_opengl_egl" >&6; }
  18640. if test x$video_opengl_egl = xyes; then
  18641. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18642. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18643. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18644. fi
  18645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18646. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18647. video_opengles_v2=no
  18648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18649. /* end confdefs.h. */
  18650. #include <GLES2/gl2.h>
  18651. #include <GLES2/gl2ext.h>
  18652. int
  18653. main ()
  18654. {
  18655. ;
  18656. return 0;
  18657. }
  18658. _ACEOF
  18659. if ac_fn_c_try_compile "$LINENO"; then :
  18660. video_opengles_v2=yes
  18661. fi
  18662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18664. $as_echo "$video_opengles_v2" >&6; }
  18665. if test x$video_opengles_v2 = xyes; then
  18666. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18667. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18668. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18669. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18670. fi
  18671. fi
  18672. }
  18673. CheckHaikuGL()
  18674. {
  18675. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18676. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18677. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18678. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18679. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18680. SUMMARY_video="${SUMMARY_video} opengl"
  18681. fi
  18682. }
  18683. CheckMacGL()
  18684. {
  18685. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18686. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18687. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18688. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18689. SUMMARY_video="${SUMMARY_video} opengl"
  18690. fi
  18691. }
  18692. CheckEmscriptenGLES()
  18693. {
  18694. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18696. $as_echo_n "checking for EGL support... " >&6; }
  18697. video_opengl_egl=no
  18698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18699. /* end confdefs.h. */
  18700. #include <EGL/egl.h>
  18701. int
  18702. main ()
  18703. {
  18704. ;
  18705. return 0;
  18706. }
  18707. _ACEOF
  18708. if ac_fn_c_try_compile "$LINENO"; then :
  18709. video_opengl_egl=yes
  18710. fi
  18711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18713. $as_echo "$video_opengl_egl" >&6; }
  18714. if test x$video_opengl_egl = xyes; then
  18715. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18716. fi
  18717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18718. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18719. video_opengles_v2=no
  18720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18721. /* end confdefs.h. */
  18722. #include <GLES2/gl2.h>
  18723. #include <GLES2/gl2ext.h>
  18724. int
  18725. main ()
  18726. {
  18727. ;
  18728. return 0;
  18729. }
  18730. _ACEOF
  18731. if ac_fn_c_try_compile "$LINENO"; then :
  18732. video_opengles_v2=yes
  18733. fi
  18734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18736. $as_echo "$video_opengles_v2" >&6; }
  18737. if test x$video_opengles_v2 = xyes; then
  18738. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18739. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18740. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18741. fi
  18742. fi
  18743. }
  18744. # Check whether --enable-video-vulkan was given.
  18745. if test "${enable_video_vulkan+set}" = set; then :
  18746. enableval=$enable_video_vulkan;
  18747. else
  18748. enable_video_vulkan=yes
  18749. fi
  18750. CheckVulkan()
  18751. {
  18752. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  18753. case "$host" in
  18754. *-*-androideabi*)
  18755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18756. /* end confdefs.h. */
  18757. #if defined(__ANDROID__) && defined(__ARM_EABI__) && !defined(__ARM_ARCH_7A__)
  18758. #error Vulkan doesn't work on this configuration
  18759. #endif
  18760. int main()
  18761. {
  18762. return 0;
  18763. }
  18764. int
  18765. main ()
  18766. {
  18767. enable_video_vulkan=no
  18768. ;
  18769. return 0;
  18770. }
  18771. _ACEOF
  18772. if ac_fn_c_try_compile "$LINENO"; then :
  18773. fi
  18774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18775. ;;
  18776. *)
  18777. ;;
  18778. esac
  18779. if test x$enable_video_vulkan = xno; then
  18780. # For reasons I am totally unable to see, I get an undefined macro error if
  18781. # I put this in the AC_TRY_COMPILE.
  18782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, Vulkan does not work on this configuration." >&5
  18783. $as_echo "$as_me: WARNING: Sorry, Vulkan does not work on this configuration." >&2;}
  18784. fi
  18785. fi
  18786. if test x$enable_video_vulkan = xyes; then
  18787. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  18788. SUMMARY_video="${SUMMARY_video} vulkan"
  18789. fi
  18790. }
  18791. CheckInputEvents()
  18792. {
  18793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18794. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18795. use_input_events=no
  18796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18797. /* end confdefs.h. */
  18798. #include <linux/input.h>
  18799. int
  18800. main ()
  18801. {
  18802. #ifndef EVIOCGNAME
  18803. #error EVIOCGNAME() ioctl not available
  18804. #endif
  18805. ;
  18806. return 0;
  18807. }
  18808. _ACEOF
  18809. if ac_fn_c_try_compile "$LINENO"; then :
  18810. use_input_events=yes
  18811. fi
  18812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18814. $as_echo "$use_input_events" >&6; }
  18815. if test x$use_input_events = xyes; then
  18816. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18817. SUMMARY_input="${SUMMARY_input} linuxev"
  18818. fi
  18819. }
  18820. CheckInputKD()
  18821. {
  18822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18823. $as_echo_n "checking for Linux kd.h... " >&6; }
  18824. use_input_kd=no
  18825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18826. /* end confdefs.h. */
  18827. #include <linux/kd.h>
  18828. #include <linux/keyboard.h>
  18829. int
  18830. main ()
  18831. {
  18832. struct kbentry kbe;
  18833. kbe.kb_table = KG_CTRL;
  18834. ioctl(0, KDGKBENT, &kbe);
  18835. ;
  18836. return 0;
  18837. }
  18838. _ACEOF
  18839. if ac_fn_c_try_compile "$LINENO"; then :
  18840. use_input_kd=yes
  18841. fi
  18842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18844. $as_echo "$use_input_kd" >&6; }
  18845. if test x$use_input_kd = xyes; then
  18846. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18847. SUMMARY_input="${SUMMARY_input} linuxkd"
  18848. fi
  18849. }
  18850. CheckLibUDev()
  18851. {
  18852. # Check whether --enable-libudev was given.
  18853. if test "${enable_libudev+set}" = set; then :
  18854. enableval=$enable_libudev;
  18855. else
  18856. enable_libudev=yes
  18857. fi
  18858. if test x$enable_libudev = xyes; then
  18859. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18860. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18861. have_libudev_h_hdr=yes
  18862. else
  18863. have_libudev_h_hdr=no
  18864. fi
  18865. if test x$have_libudev_h_hdr = xyes; then
  18866. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18867. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18868. if test x$udev_lib != x; then
  18869. echo "-- dynamic udev -> $udev_lib"
  18870. cat >>confdefs.h <<_ACEOF
  18871. #define SDL_UDEV_DYNAMIC "$udev_lib"
  18872. _ACEOF
  18873. fi
  18874. fi
  18875. fi
  18876. }
  18877. CheckDBus()
  18878. {
  18879. # Check whether --enable-dbus was given.
  18880. if test "${enable_dbus+set}" = set; then :
  18881. enableval=$enable_dbus;
  18882. else
  18883. enable_dbus=yes
  18884. fi
  18885. if test x$enable_dbus = xyes; then
  18886. # Extract the first word of "pkg-config", so it can be a program name with args.
  18887. set dummy pkg-config; ac_word=$2
  18888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18889. $as_echo_n "checking for $ac_word... " >&6; }
  18890. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18891. $as_echo_n "(cached) " >&6
  18892. else
  18893. case $PKG_CONFIG in
  18894. [\\/]* | ?:[\\/]*)
  18895. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18896. ;;
  18897. *)
  18898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18899. for as_dir in $PATH
  18900. do
  18901. IFS=$as_save_IFS
  18902. test -z "$as_dir" && as_dir=.
  18903. for ac_exec_ext in '' $ac_executable_extensions; do
  18904. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18905. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18906. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18907. break 2
  18908. fi
  18909. done
  18910. done
  18911. IFS=$as_save_IFS
  18912. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18913. ;;
  18914. esac
  18915. fi
  18916. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18917. if test -n "$PKG_CONFIG"; then
  18918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18919. $as_echo "$PKG_CONFIG" >&6; }
  18920. else
  18921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18922. $as_echo "no" >&6; }
  18923. fi
  18924. if test x$PKG_CONFIG != xno; then
  18925. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18926. save_CFLAGS="$CFLAGS"
  18927. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18928. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18929. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18930. have_dbus_dbus_h_hdr=yes
  18931. else
  18932. have_dbus_dbus_h_hdr=no
  18933. fi
  18934. CFLAGS="$save_CFLAGS"
  18935. if test x$have_dbus_dbus_h_hdr = xyes; then
  18936. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18937. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18938. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18939. fi
  18940. fi
  18941. fi
  18942. }
  18943. CheckIME()
  18944. {
  18945. # Check whether --enable-ime was given.
  18946. if test "${enable_ime+set}" = set; then :
  18947. enableval=$enable_ime;
  18948. else
  18949. enable_ime=yes
  18950. fi
  18951. if test x$enable_ime = xyes; then
  18952. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  18953. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  18954. fi
  18955. }
  18956. CheckIBus()
  18957. {
  18958. # Check whether --enable-ibus was given.
  18959. if test "${enable_ibus+set}" = set; then :
  18960. enableval=$enable_ibus;
  18961. else
  18962. enable_ibus=yes
  18963. fi
  18964. if test x$enable_ibus = xyes; then
  18965. # Extract the first word of "pkg-config", so it can be a program name with args.
  18966. set dummy pkg-config; ac_word=$2
  18967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18968. $as_echo_n "checking for $ac_word... " >&6; }
  18969. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18970. $as_echo_n "(cached) " >&6
  18971. else
  18972. case $PKG_CONFIG in
  18973. [\\/]* | ?:[\\/]*)
  18974. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18975. ;;
  18976. *)
  18977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18978. for as_dir in $PATH
  18979. do
  18980. IFS=$as_save_IFS
  18981. test -z "$as_dir" && as_dir=.
  18982. for ac_exec_ext in '' $ac_executable_extensions; do
  18983. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18984. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18985. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18986. break 2
  18987. fi
  18988. done
  18989. done
  18990. IFS=$as_save_IFS
  18991. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18992. ;;
  18993. esac
  18994. fi
  18995. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18996. if test -n "$PKG_CONFIG"; then
  18997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18998. $as_echo "$PKG_CONFIG" >&6; }
  18999. else
  19000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19001. $as_echo "no" >&6; }
  19002. fi
  19003. if test x$PKG_CONFIG != xno; then
  19004. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  19005. save_CFLAGS="$CFLAGS"
  19006. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19007. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19008. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19009. have_ibus_ibus_h_hdr=yes
  19010. else
  19011. have_ibus_ibus_h_hdr=no
  19012. fi
  19013. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19014. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19015. have_inotify_inotify_h_hdr=yes
  19016. else
  19017. have_inotify_inotify_h_hdr=no
  19018. fi
  19019. CFLAGS="$save_CFLAGS"
  19020. if test x$have_ibus_ibus_h_hdr = xyes; then
  19021. if test x$enable_ime != xyes; then
  19022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19023. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19024. have_ibus_ibus_h_hdr=no
  19025. elif test x$enable_dbus != xyes; then
  19026. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19027. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19028. have_ibus_ibus_h_hdr=no
  19029. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19030. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19031. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19032. have_ibus_ibus_h_hdr=no
  19033. else
  19034. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19035. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19036. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19037. fi
  19038. fi
  19039. fi
  19040. fi
  19041. }
  19042. CheckFcitx()
  19043. {
  19044. # Check whether --enable-fcitx was given.
  19045. if test "${enable_fcitx+set}" = set; then :
  19046. enableval=$enable_fcitx;
  19047. else
  19048. enable_fcitx=yes
  19049. fi
  19050. if test x$enable_fcitx = xyes; then
  19051. # Extract the first word of "pkg-config", so it can be a program name with args.
  19052. set dummy pkg-config; ac_word=$2
  19053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19054. $as_echo_n "checking for $ac_word... " >&6; }
  19055. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19056. $as_echo_n "(cached) " >&6
  19057. else
  19058. case $PKG_CONFIG in
  19059. [\\/]* | ?:[\\/]*)
  19060. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19061. ;;
  19062. *)
  19063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19064. for as_dir in $PATH
  19065. do
  19066. IFS=$as_save_IFS
  19067. test -z "$as_dir" && as_dir=.
  19068. for ac_exec_ext in '' $ac_executable_extensions; do
  19069. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19070. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19071. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19072. break 2
  19073. fi
  19074. done
  19075. done
  19076. IFS=$as_save_IFS
  19077. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19078. ;;
  19079. esac
  19080. fi
  19081. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19082. if test -n "$PKG_CONFIG"; then
  19083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19084. $as_echo "$PKG_CONFIG" >&6; }
  19085. else
  19086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19087. $as_echo "no" >&6; }
  19088. fi
  19089. if test x$PKG_CONFIG != xno; then
  19090. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  19091. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19092. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19093. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19094. have_fcitx_frontend_h_hdr=yes
  19095. else
  19096. have_fcitx_frontend_h_hdr=no
  19097. fi
  19098. CFLAGS="$save_CFLAGS"
  19099. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19100. if test x$enable_ime != xyes; then
  19101. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19102. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19103. have_fcitx_frontend_h_hdr=no
  19104. elif test x$enable_dbus != xyes; then
  19105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19106. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19107. have_fcitx_frontend_h_hdr=no
  19108. else
  19109. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19110. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19111. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19112. fi
  19113. fi
  19114. fi
  19115. fi
  19116. }
  19117. CheckTslib()
  19118. {
  19119. # Check whether --enable-input-tslib was given.
  19120. if test "${enable_input_tslib+set}" = set; then :
  19121. enableval=$enable_input_tslib;
  19122. else
  19123. enable_input_tslib=yes
  19124. fi
  19125. if test x$enable_input_tslib = xyes; then
  19126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19127. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19128. enable_input_tslib=no
  19129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19130. /* end confdefs.h. */
  19131. #include "tslib.h"
  19132. int
  19133. main ()
  19134. {
  19135. ;
  19136. return 0;
  19137. }
  19138. _ACEOF
  19139. if ac_fn_c_try_compile "$LINENO"; then :
  19140. enable_input_tslib=yes
  19141. fi
  19142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19144. $as_echo "$enable_input_tslib" >&6; }
  19145. if test x$enable_input_tslib = xyes; then
  19146. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19147. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19148. SUMMARY_input="${SUMMARY_input} ts"
  19149. fi
  19150. fi
  19151. }
  19152. CheckPTHREAD()
  19153. {
  19154. # Check whether --enable-pthreads was given.
  19155. if test "${enable_pthreads+set}" = set; then :
  19156. enableval=$enable_pthreads;
  19157. else
  19158. enable_pthreads=yes
  19159. fi
  19160. # Check whether --enable-pthread-sem was given.
  19161. if test "${enable_pthread_sem+set}" = set; then :
  19162. enableval=$enable_pthread_sem;
  19163. else
  19164. enable_pthread_sem=yes
  19165. fi
  19166. case "$host" in
  19167. *-*-androideabi*)
  19168. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19169. pthread_lib=""
  19170. ;;
  19171. *-*-linux*|*-*-uclinux*)
  19172. pthread_cflags="-D_REENTRANT"
  19173. pthread_lib="-lpthread"
  19174. ;;
  19175. *-*-bsdi*)
  19176. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19177. pthread_lib=""
  19178. ;;
  19179. *-*-darwin*)
  19180. pthread_cflags="-D_THREAD_SAFE"
  19181. # causes Carbon.p complaints?
  19182. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19183. ;;
  19184. *-*-freebsd*|*-*-dragonfly*)
  19185. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19186. pthread_lib="-pthread"
  19187. ;;
  19188. *-*-netbsd*)
  19189. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19190. pthread_lib="-lpthread"
  19191. ;;
  19192. *-*-openbsd*)
  19193. pthread_cflags="-D_REENTRANT"
  19194. pthread_lib="-pthread"
  19195. ;;
  19196. *-*-solaris2.9)
  19197. # From Solaris 9+, posix4's preferred name is rt.
  19198. pthread_cflags="-D_REENTRANT"
  19199. pthread_lib="-lpthread -lrt"
  19200. ;;
  19201. *-*-solaris2.10)
  19202. # Solaris 10+ merged pthread into libc.
  19203. pthread_cflags="-D_REENTRANT"
  19204. pthread_lib="-lrt"
  19205. ;;
  19206. *-*-solaris*)
  19207. # Solaris 11+ merged rt into libc.
  19208. pthread_cflags="-D_REENTRANT"
  19209. pthread_lib=""
  19210. ;;
  19211. *-*-sysv5*)
  19212. pthread_cflags="-D_REENTRANT -Kthread"
  19213. pthread_lib=""
  19214. ;;
  19215. *-*-aix*)
  19216. pthread_cflags="-D_REENTRANT -mthreads"
  19217. pthread_lib="-lpthread"
  19218. ;;
  19219. *-*-hpux11*)
  19220. pthread_cflags="-D_REENTRANT"
  19221. pthread_lib="-L/usr/lib -lpthread"
  19222. ;;
  19223. *-*-haiku*)
  19224. pthread_cflags="-D_REENTRANT"
  19225. pthread_lib=""
  19226. ;;
  19227. *-*-nto*)
  19228. pthread_cflags="-D_REENTRANT"
  19229. pthread_lib=""
  19230. ;;
  19231. *)
  19232. pthread_cflags="-D_REENTRANT"
  19233. pthread_lib="-lpthread"
  19234. ;;
  19235. esac
  19236. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19237. # Save the original compiler flags and libraries
  19238. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19239. # Add the pthread compiler flags and libraries
  19240. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19241. # Check to see if we have pthread support on this system
  19242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19243. $as_echo_n "checking for pthreads... " >&6; }
  19244. use_pthreads=no
  19245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19246. /* end confdefs.h. */
  19247. #include <pthread.h>
  19248. int
  19249. main ()
  19250. {
  19251. pthread_attr_t type;
  19252. pthread_attr_init(&type);
  19253. ;
  19254. return 0;
  19255. }
  19256. _ACEOF
  19257. if ac_fn_c_try_link "$LINENO"; then :
  19258. use_pthreads=yes
  19259. fi
  19260. rm -f core conftest.err conftest.$ac_objext \
  19261. conftest$ac_exeext conftest.$ac_ext
  19262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19263. $as_echo "$use_pthreads" >&6; }
  19264. # Restore the compiler flags and libraries
  19265. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19266. # Do futher testing if we have pthread support...
  19267. if test x$use_pthreads = xyes; then
  19268. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19269. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19270. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19271. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19272. # Save the original compiler flags and libraries
  19273. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19274. # Add the pthread compiler flags and libraries
  19275. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19276. # Check to see if recursive mutexes are available
  19277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19278. $as_echo_n "checking for recursive mutexes... " >&6; }
  19279. has_recursive_mutexes=no
  19280. if test x$has_recursive_mutexes = xno; then
  19281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19282. /* end confdefs.h. */
  19283. #define _GNU_SOURCE 1
  19284. #include <pthread.h>
  19285. int
  19286. main ()
  19287. {
  19288. pthread_mutexattr_t attr;
  19289. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19290. ;
  19291. return 0;
  19292. }
  19293. _ACEOF
  19294. if ac_fn_c_try_link "$LINENO"; then :
  19295. has_recursive_mutexes=yes
  19296. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19297. fi
  19298. rm -f core conftest.err conftest.$ac_objext \
  19299. conftest$ac_exeext conftest.$ac_ext
  19300. fi
  19301. if test x$has_recursive_mutexes = xno; then
  19302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19303. /* end confdefs.h. */
  19304. #define _GNU_SOURCE 1
  19305. #include <pthread.h>
  19306. int
  19307. main ()
  19308. {
  19309. pthread_mutexattr_t attr;
  19310. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19311. ;
  19312. return 0;
  19313. }
  19314. _ACEOF
  19315. if ac_fn_c_try_link "$LINENO"; then :
  19316. has_recursive_mutexes=yes
  19317. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19318. fi
  19319. rm -f core conftest.err conftest.$ac_objext \
  19320. conftest$ac_exeext conftest.$ac_ext
  19321. fi
  19322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19323. $as_echo "$has_recursive_mutexes" >&6; }
  19324. # Check to see if pthread semaphore support is missing
  19325. if test x$enable_pthread_sem = xyes; then
  19326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19327. $as_echo_n "checking for pthread semaphores... " >&6; }
  19328. have_pthread_sem=no
  19329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19330. /* end confdefs.h. */
  19331. #include <pthread.h>
  19332. #include <semaphore.h>
  19333. int
  19334. main ()
  19335. {
  19336. ;
  19337. return 0;
  19338. }
  19339. _ACEOF
  19340. if ac_fn_c_try_compile "$LINENO"; then :
  19341. have_pthread_sem=yes
  19342. fi
  19343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19345. $as_echo "$have_pthread_sem" >&6; }
  19346. fi
  19347. if test x$have_pthread_sem = xyes; then
  19348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19349. $as_echo_n "checking for sem_timedwait... " >&6; }
  19350. have_sem_timedwait=no
  19351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19352. /* end confdefs.h. */
  19353. #include <pthread.h>
  19354. #include <semaphore.h>
  19355. int
  19356. main ()
  19357. {
  19358. sem_timedwait(NULL, NULL);
  19359. ;
  19360. return 0;
  19361. }
  19362. _ACEOF
  19363. if ac_fn_c_try_link "$LINENO"; then :
  19364. have_sem_timedwait=yes
  19365. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19366. fi
  19367. rm -f core conftest.err conftest.$ac_objext \
  19368. conftest$ac_exeext conftest.$ac_ext
  19369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19370. $as_echo "$have_sem_timedwait" >&6; }
  19371. fi
  19372. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19373. "
  19374. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19375. have_pthread_np_h=yes
  19376. else
  19377. have_pthread_np_h=no
  19378. fi
  19379. if test x$have_pthread_np_h = xyes; then
  19380. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19381. fi
  19382. # Check to see if pthread naming is available
  19383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19384. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19386. /* end confdefs.h. */
  19387. /* Override any GCC internal prototype to avoid an error.
  19388. Use char because int might match the return type of a GCC
  19389. builtin and then its argument prototype would still apply. */
  19390. #ifdef __cplusplus
  19391. extern "C"
  19392. #endif
  19393. char pthread_setname_np ();
  19394. int
  19395. main ()
  19396. {
  19397. return pthread_setname_np ();
  19398. ;
  19399. return 0;
  19400. }
  19401. _ACEOF
  19402. if ac_fn_c_try_link "$LINENO"; then :
  19403. has_pthread_setname_np=yes
  19404. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19405. else
  19406. has_pthread_setname_np=no
  19407. fi
  19408. rm -f core conftest.err conftest.$ac_objext \
  19409. conftest$ac_exeext conftest.$ac_ext
  19410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19411. $as_echo "$has_pthread_setname_np" >&6; }
  19412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19413. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19415. /* end confdefs.h. */
  19416. /* Override any GCC internal prototype to avoid an error.
  19417. Use char because int might match the return type of a GCC
  19418. builtin and then its argument prototype would still apply. */
  19419. #ifdef __cplusplus
  19420. extern "C"
  19421. #endif
  19422. char pthread_set_name_np ();
  19423. int
  19424. main ()
  19425. {
  19426. return pthread_set_name_np ();
  19427. ;
  19428. return 0;
  19429. }
  19430. _ACEOF
  19431. if ac_fn_c_try_link "$LINENO"; then :
  19432. has_pthread_set_name_np=yes
  19433. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19434. else
  19435. has_pthread_set_name_np=no
  19436. fi
  19437. rm -f core conftest.err conftest.$ac_objext \
  19438. conftest$ac_exeext conftest.$ac_ext
  19439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19440. $as_echo "$has_pthread_set_name_np" >&6; }
  19441. # Restore the compiler flags and libraries
  19442. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19443. # Basic thread creation functions
  19444. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19445. # Semaphores
  19446. # We can fake these with mutexes and condition variables if necessary
  19447. if test x$have_pthread_sem = xyes; then
  19448. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19449. else
  19450. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19451. fi
  19452. # Mutexes
  19453. # We can fake these with semaphores if necessary
  19454. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19455. # Condition variables
  19456. # We can fake these with semaphores and mutexes if necessary
  19457. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19458. # Thread local storage
  19459. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19460. have_threads=yes
  19461. fi
  19462. fi
  19463. }
  19464. CheckWINDOWS()
  19465. {
  19466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19467. $as_echo_n "checking Windows compiler... " >&6; }
  19468. have_win32_gcc=no
  19469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19470. /* end confdefs.h. */
  19471. #include <windows.h>
  19472. int
  19473. main ()
  19474. {
  19475. ;
  19476. return 0;
  19477. }
  19478. _ACEOF
  19479. if ac_fn_c_try_compile "$LINENO"; then :
  19480. have_win32_gcc=yes
  19481. fi
  19482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19484. $as_echo "$have_win32_gcc" >&6; }
  19485. if test x$have_win32_gcc != xyes; then
  19486. as_fn_error $? "
  19487. *** Your compiler ($CC) does not produce Windows executables!
  19488. " "$LINENO" 5
  19489. fi
  19490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19491. $as_echo_n "checking Windows CE... " >&6; }
  19492. have_wince=no
  19493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19494. /* end confdefs.h. */
  19495. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19496. #error This is not Windows CE
  19497. #endif
  19498. int
  19499. main ()
  19500. {
  19501. ;
  19502. return 0;
  19503. }
  19504. _ACEOF
  19505. if ac_fn_c_try_compile "$LINENO"; then :
  19506. have_wince=yes
  19507. as_fn_error $? "
  19508. *** Sorry, Windows CE is no longer supported.
  19509. " "$LINENO" 5
  19510. fi
  19511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19513. $as_echo "$have_wince" >&6; }
  19514. # This fixes Windows stack alignment with newer GCC
  19515. CheckStackBoundary
  19516. }
  19517. CheckDIRECTX()
  19518. {
  19519. # Check whether --enable-directx was given.
  19520. if test "${enable_directx+set}" = set; then :
  19521. enableval=$enable_directx;
  19522. else
  19523. enable_directx=yes
  19524. fi
  19525. if test x$enable_directx = xyes; then
  19526. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19527. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19528. have_d3d=yes
  19529. fi
  19530. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19531. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19532. have_d3d11=yes
  19533. fi
  19534. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19535. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19536. have_ddraw=yes
  19537. fi
  19538. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19539. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19540. have_dsound=yes
  19541. fi
  19542. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19543. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19544. have_dinput=yes
  19545. fi
  19546. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19547. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19548. have_dxgi=yes
  19549. fi
  19550. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19551. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19552. have_xaudio2=yes
  19553. fi
  19554. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19555. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19556. have_xinput=yes
  19557. fi
  19558. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  19559. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  19560. have_wasapi=yes
  19561. fi
  19562. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  19563. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  19564. else
  19565. have_wasapi=no
  19566. fi
  19567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19568. /* end confdefs.h. */
  19569. #include <windows.h>
  19570. #include <xinput.h>
  19571. XINPUT_GAMEPAD_EX x1;
  19572. int
  19573. main ()
  19574. {
  19575. ;
  19576. return 0;
  19577. }
  19578. _ACEOF
  19579. if ac_fn_c_try_compile "$LINENO"; then :
  19580. have_xinput_gamepadex=yes
  19581. fi
  19582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19584. /* end confdefs.h. */
  19585. #include <windows.h>
  19586. #include <xinput.h>
  19587. XINPUT_STATE_EX s1;
  19588. int
  19589. main ()
  19590. {
  19591. ;
  19592. return 0;
  19593. }
  19594. _ACEOF
  19595. if ac_fn_c_try_compile "$LINENO"; then :
  19596. have_xinput_stateex=yes
  19597. fi
  19598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19599. if test x$have_ddraw = xyes; then
  19600. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19601. fi
  19602. if test x$have_dinput = xyes; then
  19603. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19604. fi
  19605. if test x$have_dsound = xyes; then
  19606. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19607. fi
  19608. if test x$have_dxgi = xyes; then
  19609. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19610. fi
  19611. if test x$have_xinput = xyes; then
  19612. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19613. fi
  19614. if test x$have_xinput_gamepadex = xyes; then
  19615. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  19616. fi
  19617. if test x$have_xinput_stateex = xyes; then
  19618. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  19619. fi
  19620. SUMMARY_video="${SUMMARY_video} directx"
  19621. SUMMARY_audio="${SUMMARY_audio} directx"
  19622. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19623. # FIXME: ...so force it off for now.
  19624. case "$host" in
  19625. *-*-cygwin*)
  19626. have_dinput=false
  19627. ;;
  19628. esac
  19629. fi
  19630. }
  19631. CheckDLOPEN()
  19632. {
  19633. # Check whether --enable-sdl-dlopen was given.
  19634. if test "${enable_sdl_dlopen+set}" = set; then :
  19635. enableval=$enable_sdl_dlopen;
  19636. else
  19637. enable_sdl_dlopen=yes
  19638. fi
  19639. if test x$enable_sdl_dlopen = xyes; then
  19640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19641. $as_echo_n "checking for dlopen... " >&6; }
  19642. have_dlopen=no
  19643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19644. /* end confdefs.h. */
  19645. #include <dlfcn.h>
  19646. int
  19647. main ()
  19648. {
  19649. void *handle = dlopen("", RTLD_NOW);
  19650. const char *loaderror = (char *) dlerror();
  19651. ;
  19652. return 0;
  19653. }
  19654. _ACEOF
  19655. if ac_fn_c_try_compile "$LINENO"; then :
  19656. have_dlopen=yes
  19657. fi
  19658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19660. $as_echo "$have_dlopen" >&6; }
  19661. if test x$have_dlopen = xyes; then
  19662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19663. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19664. if ${ac_cv_lib_c_dlopen+:} false; then :
  19665. $as_echo_n "(cached) " >&6
  19666. else
  19667. ac_check_lib_save_LIBS=$LIBS
  19668. LIBS="-lc $LIBS"
  19669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19670. /* end confdefs.h. */
  19671. /* Override any GCC internal prototype to avoid an error.
  19672. Use char because int might match the return type of a GCC
  19673. builtin and then its argument prototype would still apply. */
  19674. #ifdef __cplusplus
  19675. extern "C"
  19676. #endif
  19677. char dlopen ();
  19678. int
  19679. main ()
  19680. {
  19681. return dlopen ();
  19682. ;
  19683. return 0;
  19684. }
  19685. _ACEOF
  19686. if ac_fn_c_try_link "$LINENO"; then :
  19687. ac_cv_lib_c_dlopen=yes
  19688. else
  19689. ac_cv_lib_c_dlopen=no
  19690. fi
  19691. rm -f core conftest.err conftest.$ac_objext \
  19692. conftest$ac_exeext conftest.$ac_ext
  19693. LIBS=$ac_check_lib_save_LIBS
  19694. fi
  19695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19696. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19697. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19698. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19699. else
  19700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19701. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19702. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19703. $as_echo_n "(cached) " >&6
  19704. else
  19705. ac_check_lib_save_LIBS=$LIBS
  19706. LIBS="-ldl $LIBS"
  19707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19708. /* end confdefs.h. */
  19709. /* Override any GCC internal prototype to avoid an error.
  19710. Use char because int might match the return type of a GCC
  19711. builtin and then its argument prototype would still apply. */
  19712. #ifdef __cplusplus
  19713. extern "C"
  19714. #endif
  19715. char dlopen ();
  19716. int
  19717. main ()
  19718. {
  19719. return dlopen ();
  19720. ;
  19721. return 0;
  19722. }
  19723. _ACEOF
  19724. if ac_fn_c_try_link "$LINENO"; then :
  19725. ac_cv_lib_dl_dlopen=yes
  19726. else
  19727. ac_cv_lib_dl_dlopen=no
  19728. fi
  19729. rm -f core conftest.err conftest.$ac_objext \
  19730. conftest$ac_exeext conftest.$ac_ext
  19731. LIBS=$ac_check_lib_save_LIBS
  19732. fi
  19733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19734. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19735. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19736. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19737. else
  19738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19739. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19740. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19741. $as_echo_n "(cached) " >&6
  19742. else
  19743. ac_check_lib_save_LIBS=$LIBS
  19744. LIBS="-lltdl $LIBS"
  19745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19746. /* end confdefs.h. */
  19747. /* Override any GCC internal prototype to avoid an error.
  19748. Use char because int might match the return type of a GCC
  19749. builtin and then its argument prototype would still apply. */
  19750. #ifdef __cplusplus
  19751. extern "C"
  19752. #endif
  19753. char dlopen ();
  19754. int
  19755. main ()
  19756. {
  19757. return dlopen ();
  19758. ;
  19759. return 0;
  19760. }
  19761. _ACEOF
  19762. if ac_fn_c_try_link "$LINENO"; then :
  19763. ac_cv_lib_ltdl_dlopen=yes
  19764. else
  19765. ac_cv_lib_ltdl_dlopen=no
  19766. fi
  19767. rm -f core conftest.err conftest.$ac_objext \
  19768. conftest$ac_exeext conftest.$ac_ext
  19769. LIBS=$ac_check_lib_save_LIBS
  19770. fi
  19771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19772. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19773. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19774. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19775. fi
  19776. fi
  19777. fi
  19778. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19779. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19780. have_loadso=yes
  19781. fi
  19782. fi
  19783. }
  19784. CheckUSBHID()
  19785. {
  19786. case "$host" in
  19787. *-*-*bsd*)
  19788. if test x$enable_joystick = xyes; then
  19789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19790. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19791. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19792. $as_echo_n "(cached) " >&6
  19793. else
  19794. ac_check_lib_save_LIBS=$LIBS
  19795. LIBS="-lusbhid $LIBS"
  19796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19797. /* end confdefs.h. */
  19798. /* Override any GCC internal prototype to avoid an error.
  19799. Use char because int might match the return type of a GCC
  19800. builtin and then its argument prototype would still apply. */
  19801. #ifdef __cplusplus
  19802. extern "C"
  19803. #endif
  19804. char hid_init ();
  19805. int
  19806. main ()
  19807. {
  19808. return hid_init ();
  19809. ;
  19810. return 0;
  19811. }
  19812. _ACEOF
  19813. if ac_fn_c_try_link "$LINENO"; then :
  19814. ac_cv_lib_usbhid_hid_init=yes
  19815. else
  19816. ac_cv_lib_usbhid_hid_init=no
  19817. fi
  19818. rm -f core conftest.err conftest.$ac_objext \
  19819. conftest$ac_exeext conftest.$ac_ext
  19820. LIBS=$ac_check_lib_save_LIBS
  19821. fi
  19822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19823. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19824. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19825. have_libusbhid=yes
  19826. fi
  19827. if test x$have_libusbhid = xyes; then
  19828. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19829. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19830. USB_CFLAGS="-DHAVE_USBHID_H"
  19831. fi
  19832. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19833. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19834. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19835. fi
  19836. USB_LIBS="$USB_LIBS -lusbhid"
  19837. else
  19838. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19839. if test "x$ac_cv_header_usb_h" = xyes; then :
  19840. USB_CFLAGS="-DHAVE_USB_H"
  19841. fi
  19842. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19843. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19844. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19845. fi
  19846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19847. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19848. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19849. $as_echo_n "(cached) " >&6
  19850. else
  19851. ac_check_lib_save_LIBS=$LIBS
  19852. LIBS="-lusb $LIBS"
  19853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19854. /* end confdefs.h. */
  19855. /* Override any GCC internal prototype to avoid an error.
  19856. Use char because int might match the return type of a GCC
  19857. builtin and then its argument prototype would still apply. */
  19858. #ifdef __cplusplus
  19859. extern "C"
  19860. #endif
  19861. char hid_init ();
  19862. int
  19863. main ()
  19864. {
  19865. return hid_init ();
  19866. ;
  19867. return 0;
  19868. }
  19869. _ACEOF
  19870. if ac_fn_c_try_link "$LINENO"; then :
  19871. ac_cv_lib_usb_hid_init=yes
  19872. else
  19873. ac_cv_lib_usb_hid_init=no
  19874. fi
  19875. rm -f core conftest.err conftest.$ac_objext \
  19876. conftest$ac_exeext conftest.$ac_ext
  19877. LIBS=$ac_check_lib_save_LIBS
  19878. fi
  19879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19880. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19881. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19882. USB_LIBS="$USB_LIBS -lusb"
  19883. fi
  19884. fi
  19885. save_CFLAGS="$CFLAGS"
  19886. CFLAGS="$CFLAGS $USB_CFLAGS"
  19887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19888. $as_echo_n "checking for usbhid... " >&6; }
  19889. have_usbhid=no
  19890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19891. /* end confdefs.h. */
  19892. #include <sys/types.h>
  19893. #if defined(HAVE_USB_H)
  19894. #include <usb.h>
  19895. #endif
  19896. #ifdef __DragonFly__
  19897. # include <bus/usb/usb.h>
  19898. # include <bus/usb/usbhid.h>
  19899. #else
  19900. # include <dev/usb/usb.h>
  19901. # include <dev/usb/usbhid.h>
  19902. #endif
  19903. #if defined(HAVE_USBHID_H)
  19904. #include <usbhid.h>
  19905. #elif defined(HAVE_LIBUSB_H)
  19906. #include <libusb.h>
  19907. #elif defined(HAVE_LIBUSBHID_H)
  19908. #include <libusbhid.h>
  19909. #endif
  19910. int
  19911. main ()
  19912. {
  19913. struct report_desc *repdesc;
  19914. struct usb_ctl_report *repbuf;
  19915. hid_kind_t hidkind;
  19916. ;
  19917. return 0;
  19918. }
  19919. _ACEOF
  19920. if ac_fn_c_try_compile "$LINENO"; then :
  19921. have_usbhid=yes
  19922. fi
  19923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19925. $as_echo "$have_usbhid" >&6; }
  19926. if test x$have_usbhid = xyes; then
  19927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19928. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19929. have_usbhid_ucr_data=no
  19930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19931. /* end confdefs.h. */
  19932. #include <sys/types.h>
  19933. #if defined(HAVE_USB_H)
  19934. #include <usb.h>
  19935. #endif
  19936. #ifdef __DragonFly__
  19937. # include <bus/usb/usb.h>
  19938. # include <bus/usb/usbhid.h>
  19939. #else
  19940. # include <dev/usb/usb.h>
  19941. # include <dev/usb/usbhid.h>
  19942. #endif
  19943. #if defined(HAVE_USBHID_H)
  19944. #include <usbhid.h>
  19945. #elif defined(HAVE_LIBUSB_H)
  19946. #include <libusb.h>
  19947. #elif defined(HAVE_LIBUSBHID_H)
  19948. #include <libusbhid.h>
  19949. #endif
  19950. int
  19951. main ()
  19952. {
  19953. struct usb_ctl_report buf;
  19954. if (buf.ucr_data) { }
  19955. ;
  19956. return 0;
  19957. }
  19958. _ACEOF
  19959. if ac_fn_c_try_compile "$LINENO"; then :
  19960. have_usbhid_ucr_data=yes
  19961. fi
  19962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19963. if test x$have_usbhid_ucr_data = xyes; then
  19964. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19965. fi
  19966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19967. $as_echo "$have_usbhid_ucr_data" >&6; }
  19968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19969. $as_echo_n "checking for new usbhid API... " >&6; }
  19970. have_usbhid_new=no
  19971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19972. /* end confdefs.h. */
  19973. #include <sys/types.h>
  19974. #if defined(HAVE_USB_H)
  19975. #include <usb.h>
  19976. #endif
  19977. #ifdef __DragonFly__
  19978. #include <bus/usb/usb.h>
  19979. #include <bus/usb/usbhid.h>
  19980. #else
  19981. #include <dev/usb/usb.h>
  19982. #include <dev/usb/usbhid.h>
  19983. #endif
  19984. #if defined(HAVE_USBHID_H)
  19985. #include <usbhid.h>
  19986. #elif defined(HAVE_LIBUSB_H)
  19987. #include <libusb.h>
  19988. #elif defined(HAVE_LIBUSBHID_H)
  19989. #include <libusbhid.h>
  19990. #endif
  19991. int
  19992. main ()
  19993. {
  19994. report_desc_t d;
  19995. hid_start_parse(d, 1, 1);
  19996. ;
  19997. return 0;
  19998. }
  19999. _ACEOF
  20000. if ac_fn_c_try_compile "$LINENO"; then :
  20001. have_usbhid_new=yes
  20002. fi
  20003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20004. if test x$have_usbhid_new = xyes; then
  20005. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20006. fi
  20007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20008. $as_echo "$have_usbhid_new" >&6; }
  20009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20010. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20011. have_machine_joystick=no
  20012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20013. /* end confdefs.h. */
  20014. #include <machine/joystick.h>
  20015. int
  20016. main ()
  20017. {
  20018. struct joystick t;
  20019. ;
  20020. return 0;
  20021. }
  20022. _ACEOF
  20023. if ac_fn_c_try_compile "$LINENO"; then :
  20024. have_machine_joystick=yes
  20025. fi
  20026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20027. if test x$have_machine_joystick = xyes; then
  20028. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20029. fi
  20030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20031. $as_echo "$have_machine_joystick" >&6; }
  20032. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20033. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20034. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20035. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20036. have_joystick=yes
  20037. fi
  20038. CFLAGS="$save_CFLAGS"
  20039. fi
  20040. ;;
  20041. esac
  20042. }
  20043. CheckClockGettime()
  20044. {
  20045. # Check whether --enable-clock_gettime was given.
  20046. if test "${enable_clock_gettime+set}" = set; then :
  20047. enableval=$enable_clock_gettime;
  20048. else
  20049. enable_clock_gettime=yes
  20050. fi
  20051. if test x$enable_clock_gettime = xyes; then
  20052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20053. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20054. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20055. $as_echo_n "(cached) " >&6
  20056. else
  20057. ac_check_lib_save_LIBS=$LIBS
  20058. LIBS="-lrt $LIBS"
  20059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20060. /* end confdefs.h. */
  20061. /* Override any GCC internal prototype to avoid an error.
  20062. Use char because int might match the return type of a GCC
  20063. builtin and then its argument prototype would still apply. */
  20064. #ifdef __cplusplus
  20065. extern "C"
  20066. #endif
  20067. char clock_gettime ();
  20068. int
  20069. main ()
  20070. {
  20071. return clock_gettime ();
  20072. ;
  20073. return 0;
  20074. }
  20075. _ACEOF
  20076. if ac_fn_c_try_link "$LINENO"; then :
  20077. ac_cv_lib_rt_clock_gettime=yes
  20078. else
  20079. ac_cv_lib_rt_clock_gettime=no
  20080. fi
  20081. rm -f core conftest.err conftest.$ac_objext \
  20082. conftest$ac_exeext conftest.$ac_ext
  20083. LIBS=$ac_check_lib_save_LIBS
  20084. fi
  20085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20086. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20087. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20088. have_clock_gettime=yes
  20089. fi
  20090. if test x$have_clock_gettime = xyes; then
  20091. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20092. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20093. else
  20094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20095. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20096. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20097. $as_echo_n "(cached) " >&6
  20098. else
  20099. ac_check_lib_save_LIBS=$LIBS
  20100. LIBS="-lc $LIBS"
  20101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20102. /* end confdefs.h. */
  20103. /* Override any GCC internal prototype to avoid an error.
  20104. Use char because int might match the return type of a GCC
  20105. builtin and then its argument prototype would still apply. */
  20106. #ifdef __cplusplus
  20107. extern "C"
  20108. #endif
  20109. char clock_gettime ();
  20110. int
  20111. main ()
  20112. {
  20113. return clock_gettime ();
  20114. ;
  20115. return 0;
  20116. }
  20117. _ACEOF
  20118. if ac_fn_c_try_link "$LINENO"; then :
  20119. ac_cv_lib_c_clock_gettime=yes
  20120. else
  20121. ac_cv_lib_c_clock_gettime=no
  20122. fi
  20123. rm -f core conftest.err conftest.$ac_objext \
  20124. conftest$ac_exeext conftest.$ac_ext
  20125. LIBS=$ac_check_lib_save_LIBS
  20126. fi
  20127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20128. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20129. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20130. have_clock_gettime=yes
  20131. fi
  20132. if test x$have_clock_gettime = xyes; then
  20133. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20134. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20135. fi
  20136. fi
  20137. fi
  20138. }
  20139. CheckLinuxVersion()
  20140. {
  20141. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20142. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20143. have_linux_version_h=yes
  20144. fi
  20145. if test x$have_linux_version_h = xyes; then
  20146. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20147. fi
  20148. }
  20149. CheckRPATH()
  20150. {
  20151. # Check whether --enable-rpath was given.
  20152. if test "${enable_rpath+set}" = set; then :
  20153. enableval=$enable_rpath;
  20154. else
  20155. enable_rpath=yes
  20156. fi
  20157. }
  20158. CheckWarnAll
  20159. case "$host" in
  20160. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20161. case "$host" in
  20162. *-raspberry-linux*)
  20163. # Raspberry Pi
  20164. ARCH=linux
  20165. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20166. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20167. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20168. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20169. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  20170. if test x$enable_video = xyes; then
  20171. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20172. # FIXME: confdefs? Not AC_DEFINE?
  20173. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20174. SUMMARY_video="${SUMMARY_video} rpi"
  20175. fi
  20176. ;;
  20177. *-*-androideabi*)
  20178. # Android
  20179. ARCH=android
  20180. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20181. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20182. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20183. SDL_LIBS="$SDL_LIBS -lSDL2main -Wl,-u,SDL_main_dummy"
  20184. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20185. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20186. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20187. if test x$enable_video = xyes; then
  20188. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20189. # FIXME: confdefs? Not AC_DEFINE?
  20190. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20191. SUMMARY_video="${SUMMARY_video} android"
  20192. fi
  20193. ;;
  20194. *-*-linux*) ARCH=linux ;;
  20195. *-*-uclinux*) ARCH=linux ;;
  20196. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20197. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20198. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20199. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20200. *-*-bsdi*) ARCH=bsdi ;;
  20201. *-*-freebsd*) ARCH=freebsd ;;
  20202. *-*-dragonfly*) ARCH=freebsd ;;
  20203. *-raspberry-netbsd*)
  20204. # Raspberry Pi
  20205. ARCH=netbsd
  20206. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20207. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20208. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20209. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20210. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
  20211. if test x$enable_video = xyes; then
  20212. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20213. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20214. SUMMARY_video="${SUMMARY_video} raspberry"
  20215. fi
  20216. ;;
  20217. *-*-netbsd*) ARCH=netbsd ;;
  20218. *-*-openbsd*) ARCH=openbsd ;;
  20219. *-*-sysv5*) ARCH=sysv5 ;;
  20220. *-*-solaris*) ARCH=solaris ;;
  20221. *-*-hpux*) ARCH=hpux ;;
  20222. *-*-aix*) ARCH=aix ;;
  20223. *-*-minix*) ARCH=minix ;;
  20224. *-*-nto*) ARCH=nto
  20225. CheckQNXVideo
  20226. ;;
  20227. esac
  20228. CheckVisibilityHidden
  20229. CheckDeclarationAfterStatement
  20230. CheckDummyVideo
  20231. CheckDiskAudio
  20232. CheckDummyAudio
  20233. CheckDLOPEN
  20234. CheckOSS
  20235. CheckALSA
  20236. CheckPulseAudio
  20237. CheckJACK
  20238. CheckARTSC
  20239. CheckESD
  20240. CheckNAS
  20241. CheckSNDIO
  20242. CheckFusionSound
  20243. CheckLibSampleRate
  20244. CheckX11
  20245. CheckDirectFB
  20246. CheckKMSDRM
  20247. CheckOpenGLX11
  20248. CheckOpenGLESX11
  20249. CheckVulkan
  20250. CheckMir
  20251. CheckWayland
  20252. CheckLibUDev
  20253. CheckDBus
  20254. CheckIME
  20255. CheckIBus
  20256. CheckFcitx
  20257. case $ARCH in
  20258. linux)
  20259. CheckInputEvents
  20260. CheckInputKD
  20261. ;;
  20262. esac
  20263. CheckTslib
  20264. CheckUSBHID
  20265. CheckPTHREAD
  20266. CheckClockGettime
  20267. CheckLinuxVersion
  20268. CheckRPATH
  20269. CheckVivanteVideo
  20270. # Set up files for the audio library
  20271. if test x$enable_audio = xyes; then
  20272. case $ARCH in
  20273. sysv5|solaris|hpux)
  20274. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20275. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20276. SUMMARY_audio="${SUMMARY_audio} sun"
  20277. have_audio=yes
  20278. ;;
  20279. netbsd) # Don't use this on OpenBSD, it's busted.
  20280. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20281. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20282. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20283. have_audio=yes
  20284. ;;
  20285. aix)
  20286. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20287. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20288. SUMMARY_audio="${SUMMARY_audio} paudio"
  20289. have_audio=yes
  20290. ;;
  20291. android)
  20292. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20293. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20294. SUMMARY_audio="${SUMMARY_audio} android"
  20295. have_audio=yes
  20296. ;;
  20297. nto)
  20298. CheckQNXAudio
  20299. ;;
  20300. esac
  20301. fi
  20302. # Set up files for the joystick library
  20303. if test x$enable_joystick = xyes; then
  20304. case $ARCH in
  20305. linux)
  20306. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20307. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20308. have_joystick=yes
  20309. ;;
  20310. android)
  20311. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20312. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20313. have_joystick=yes
  20314. ;;
  20315. esac
  20316. fi
  20317. # Set up files for the haptic library
  20318. if test x$enable_haptic = xyes; then
  20319. if test x$use_input_events = xyes; then
  20320. case $ARCH in
  20321. linux)
  20322. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20323. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20324. have_haptic=yes
  20325. ;;
  20326. esac
  20327. fi
  20328. fi
  20329. # Set up files for the power library
  20330. if test x$enable_power = xyes; then
  20331. case $ARCH in
  20332. linux)
  20333. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20334. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20335. have_power=yes
  20336. ;;
  20337. android)
  20338. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20339. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20340. have_power=yes
  20341. ;;
  20342. esac
  20343. fi
  20344. # Set up files for the filesystem library
  20345. if test x$enable_filesystem = xyes; then
  20346. case $ARCH in
  20347. android)
  20348. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20349. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20350. have_filesystem=yes
  20351. ;;
  20352. *)
  20353. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20354. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20355. have_filesystem=yes
  20356. ;;
  20357. esac
  20358. fi
  20359. # Set up files for the timer library
  20360. if test x$enable_timers = xyes; then
  20361. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20362. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20363. have_timers=yes
  20364. fi
  20365. # Set up files for udev hotplugging support
  20366. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20367. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20368. fi
  20369. # Set up files for evdev input
  20370. if test x$use_input_events = xyes; then
  20371. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20372. fi
  20373. # Set up other core UNIX files
  20374. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20375. ;;
  20376. *-*-cygwin* | *-*-mingw32*)
  20377. ARCH=win32
  20378. if test "$build" != "$host"; then # cross-compiling
  20379. # Default cross-compile location
  20380. ac_default_prefix=/usr/local/cross-tools/$host
  20381. else
  20382. # Look for the location of the tools and install there
  20383. if test "$BUILD_PREFIX" != ""; then
  20384. ac_default_prefix=$BUILD_PREFIX
  20385. fi
  20386. fi
  20387. CheckDeclarationAfterStatement
  20388. CheckDummyVideo
  20389. CheckDiskAudio
  20390. CheckDummyAudio
  20391. CheckWINDOWS
  20392. CheckWINDOWSGL
  20393. CheckWINDOWSGLES
  20394. CheckVulkan
  20395. CheckDIRECTX
  20396. # Set up the core platform files
  20397. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20398. # Set up files for the video library
  20399. if test x$enable_video = xyes; then
  20400. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20401. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20402. have_video=yes
  20403. # Check whether --enable-render-d3d was given.
  20404. if test "${enable_render_d3d+set}" = set; then :
  20405. enableval=$enable_render_d3d;
  20406. else
  20407. enable_render_d3d=yes
  20408. fi
  20409. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20410. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20411. fi
  20412. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20413. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20414. fi
  20415. fi
  20416. # Set up files for the audio library
  20417. if test x$enable_audio = xyes; then
  20418. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20419. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20420. if test x$have_dsound = xyes; then
  20421. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20422. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20423. fi
  20424. if test x$have_xaudio2 = xyes; then
  20425. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  20426. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  20427. fi
  20428. if test x$have_wasapi = xyes; then
  20429. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  20430. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  20431. fi
  20432. have_audio=yes
  20433. fi
  20434. # Set up files for the joystick library
  20435. if test x$enable_joystick = xyes; then
  20436. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20437. if test x$have_xinput = xyes; then
  20438. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20439. fi
  20440. if test x$have_dinput = xyes; then
  20441. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20442. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20443. fi
  20444. else
  20445. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20446. fi
  20447. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20448. have_joystick=yes
  20449. fi
  20450. if test x$enable_haptic = xyes; then
  20451. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20452. if test x$have_xinput = xyes; then
  20453. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20454. fi
  20455. if test x$have_dinput = xyes; then
  20456. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20457. fi
  20458. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20459. have_haptic=yes
  20460. fi
  20461. fi
  20462. if test x$enable_power = xyes; then
  20463. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20464. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20465. have_power=yes
  20466. fi
  20467. if test x$enable_filesystem = xyes; then
  20468. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20469. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20470. have_filesystem=yes
  20471. fi
  20472. # Set up files for the thread library
  20473. if test x$enable_threads = xyes; then
  20474. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20475. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20476. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20477. have_threads=yes
  20478. fi
  20479. # Set up files for the timer library
  20480. if test x$enable_timers = xyes; then
  20481. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20482. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20483. have_timers=yes
  20484. fi
  20485. # Set up files for the shared object loading library
  20486. if test x$enable_loadso = xyes; then
  20487. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20488. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20489. have_loadso=yes
  20490. fi
  20491. # Set up the system libraries we need
  20492. if test -f /lib/w32api/libuuid.a; then
  20493. LIBUUID=/lib/w32api/libuuid.a
  20494. else
  20495. LIBUUID=-luuid
  20496. fi
  20497. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20498. # The Windows platform requires special setup
  20499. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20500. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20501. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20502. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20503. # Check to see if this is a mingw or cygwin build
  20504. have_mingw32=
  20505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20506. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20507. if ${ac_cv_lib_mingw32_main+:} false; then :
  20508. $as_echo_n "(cached) " >&6
  20509. else
  20510. ac_check_lib_save_LIBS=$LIBS
  20511. LIBS="-lmingw32 $LIBS"
  20512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20513. /* end confdefs.h. */
  20514. int
  20515. main ()
  20516. {
  20517. return main ();
  20518. ;
  20519. return 0;
  20520. }
  20521. _ACEOF
  20522. if ac_fn_c_try_link "$LINENO"; then :
  20523. ac_cv_lib_mingw32_main=yes
  20524. else
  20525. ac_cv_lib_mingw32_main=no
  20526. fi
  20527. rm -f core conftest.err conftest.$ac_objext \
  20528. conftest$ac_exeext conftest.$ac_ext
  20529. LIBS=$ac_check_lib_save_LIBS
  20530. fi
  20531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20532. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20533. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20534. have_mingw32=yes
  20535. fi
  20536. if test x$have_mingw32 = xyes; then
  20537. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20538. else
  20539. SDL_LIBS="-lcygwin $SDL_LIBS"
  20540. fi
  20541. ;;
  20542. *-*-beos*)
  20543. as_fn_error $? "
  20544. *** BeOS support has been removed as of SDL 2.0.2.
  20545. " "$LINENO" 5
  20546. ;;
  20547. *-*-haiku*)
  20548. ARCH=haiku
  20549. ac_default_prefix=/boot/system
  20550. CheckDummyVideo
  20551. CheckDiskAudio
  20552. CheckDummyAudio
  20553. CheckDLOPEN
  20554. CheckHaikuVideo
  20555. CheckHaikuGL
  20556. CheckPTHREAD
  20557. # Set up files for the audio library
  20558. if test x$enable_audio = xyes; then
  20559. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20560. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20561. SUMMARY_audio="${SUMMARY_audio} haiku"
  20562. have_audio=yes
  20563. fi
  20564. # Set up files for the joystick library
  20565. if test x$enable_joystick = xyes; then
  20566. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20567. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20568. have_joystick=yes
  20569. fi
  20570. # Set up files for the timer library
  20571. if test x$enable_timers = xyes; then
  20572. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20573. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20574. have_timers=yes
  20575. fi
  20576. # Set up files for the system power library
  20577. if test x$enable_power = xyes; then
  20578. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20579. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20580. have_power=yes
  20581. fi
  20582. # Set up files for the system filesystem library
  20583. if test x$enable_filesystem = xyes; then
  20584. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20585. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20586. have_filesystem=yes
  20587. fi
  20588. # The Haiku platform requires special setup.
  20589. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20590. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20591. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  20592. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  20593. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  20594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  20595. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  20596. if eval \${$as_ac_File+:} false; then :
  20597. $as_echo_n "(cached) " >&6
  20598. else
  20599. test "$cross_compiling" = yes &&
  20600. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  20601. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  20602. eval "$as_ac_File=yes"
  20603. else
  20604. eval "$as_ac_File=no"
  20605. fi
  20606. fi
  20607. eval ac_res=\$$as_ac_File
  20608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20609. $as_echo "$ac_res" >&6; }
  20610. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  20611. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  20612. else
  20613. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  20614. fi
  20615. ;;
  20616. arm*-apple-darwin*|*-ios-*)
  20617. ARCH=ios
  20618. CheckVisibilityHidden
  20619. CheckDeclarationAfterStatement
  20620. CheckDummyVideo
  20621. CheckDiskAudio
  20622. CheckDummyAudio
  20623. CheckDLOPEN
  20624. CheckPTHREAD
  20625. CheckVulkan
  20626. # Set up files for the audio library
  20627. if test x$enable_audio = xyes; then
  20628. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20629. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20630. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20631. have_audio=yes
  20632. fi
  20633. # Set up files for the joystick library
  20634. if test x$enable_joystick = xyes; then
  20635. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20636. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20637. have_joystick=yes
  20638. fi
  20639. # Set up files for the haptic library
  20640. #if test x$enable_haptic = xyes; then
  20641. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20642. # have_haptic=yes
  20643. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20644. #fi
  20645. # Set up files for the power library
  20646. if test x$enable_power = xyes; then
  20647. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20648. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20649. have_power=yes
  20650. fi
  20651. # Set up files for the filesystem library
  20652. if test x$enable_filesystem = xyes; then
  20653. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20654. have_filesystem=yes
  20655. fi
  20656. # Set up additional files for the file library
  20657. if test x$enable_file = xyes; then
  20658. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20659. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20660. fi
  20661. # Set up files for the timer library
  20662. if test x$enable_timers = xyes; then
  20663. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20664. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20665. have_timers=yes
  20666. fi
  20667. # Set up other core UNIX files
  20668. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20669. # The iOS platform requires special setup.
  20670. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20671. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20672. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20673. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20674. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20675. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20676. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20677. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20678. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20679. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20680. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20681. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20682. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20683. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20684. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20685. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20686. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20687. if test x$enable_video_vulkan = xyes; then
  20688. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20689. fi
  20690. ;;
  20691. *-*-darwin* )
  20692. # This could be either full "Mac OS X", or plain "Darwin" which is
  20693. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20694. # Next line is broken, and a few files below require Mac OS X (full)
  20695. ARCH=macosx
  20696. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20697. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20698. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20699. CheckVisibilityHidden
  20700. CheckDeclarationAfterStatement
  20701. CheckDummyVideo
  20702. CheckDiskAudio
  20703. CheckDummyAudio
  20704. CheckDLOPEN
  20705. CheckCOCOA
  20706. CheckX11
  20707. CheckMacGL
  20708. CheckOpenGLX11
  20709. CheckVulkan
  20710. CheckPTHREAD
  20711. # Set up files for the audio library
  20712. if test x$enable_audio = xyes; then
  20713. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20714. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20715. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20716. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20717. have_audio=yes
  20718. fi
  20719. # Set up files for the joystick library
  20720. if test x$enable_joystick = xyes; then
  20721. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20722. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20723. have_joystick=yes
  20724. fi
  20725. # Set up files for the haptic library
  20726. if test x$enable_haptic = xyes; then
  20727. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20728. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20729. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20730. have_haptic=yes
  20731. fi
  20732. # Set up files for the power library
  20733. if test x$enable_power = xyes; then
  20734. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20735. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20736. have_power=yes
  20737. fi
  20738. # Set up files for the filesystem library
  20739. if test x$enable_filesystem = xyes; then
  20740. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20741. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20742. have_filesystem=yes
  20743. fi
  20744. # Set up files for the timer library
  20745. if test x$enable_timers = xyes; then
  20746. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20747. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20748. have_timers=yes
  20749. fi
  20750. # Set up additional files for the file library
  20751. if test x$enable_file = xyes; then
  20752. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20753. fi
  20754. # Set up other core UNIX files
  20755. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20756. # The Mac OS X platform requires special setup.
  20757. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20758. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20759. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20760. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20761. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20762. if test x$enable_video_vulkan = xyes; then
  20763. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20764. fi
  20765. ;;
  20766. *-nacl|*-pnacl)
  20767. ARCH=nacl
  20768. CheckNativeClient
  20769. CheckDummyAudio
  20770. CheckDummyVideo
  20771. CheckInputEvents
  20772. CheckPTHREAD
  20773. # Set up files for the timer library
  20774. if test x$enable_timers = xyes; then
  20775. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20776. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20777. have_timers=yes
  20778. fi
  20779. if test x$enable_filesystem = xyes; then
  20780. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20781. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20782. have_filesystem=yes
  20783. fi
  20784. ;;
  20785. *-*-emscripten* )
  20786. if test x$enable_video = xyes; then
  20787. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20788. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20789. have_video=yes
  20790. SUMMARY_video="${SUMMARY_video} emscripten"
  20791. fi
  20792. if test x$enable_audio = xyes; then
  20793. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20794. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20795. have_audio=yes
  20796. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20797. fi
  20798. CheckVisibilityHidden
  20799. CheckDeclarationAfterStatement
  20800. CheckDummyVideo
  20801. CheckDiskAudio
  20802. CheckDummyAudio
  20803. CheckDLOPEN
  20804. CheckClockGettime
  20805. CheckEmscriptenGLES
  20806. # Set up files for the power library
  20807. if test x$enable_power = xyes; then
  20808. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20809. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20810. have_power=yes
  20811. fi
  20812. # Set up files for the power library
  20813. if test x$enable_joystick = xyes; then
  20814. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20815. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20816. have_joystick=yes
  20817. fi
  20818. # Set up files for the filesystem library
  20819. if test x$enable_filesystem = xyes; then
  20820. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20821. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20822. have_filesystem=yes
  20823. fi
  20824. # Set up files for the timer library
  20825. if test x$enable_timers = xyes; then
  20826. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20827. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20828. have_timers=yes
  20829. fi
  20830. ;;
  20831. *)
  20832. as_fn_error $? "
  20833. *** Unsupported host: Please add to configure.in
  20834. " "$LINENO" 5
  20835. ;;
  20836. esac
  20837. # Verify that we have all the platform specific files we need
  20838. if test x$have_joystick != xyes; then
  20839. if test x$enable_joystick = xyes; then
  20840. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20841. fi
  20842. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20843. fi
  20844. if test x$have_haptic != xyes; then
  20845. if test x$enable_haptic = xyes; then
  20846. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20847. fi
  20848. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20849. fi
  20850. if test x$have_threads != xyes; then
  20851. if test x$enable_threads = xyes; then
  20852. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20853. fi
  20854. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20855. fi
  20856. if test x$have_timers != xyes; then
  20857. if test x$enable_timers = xyes; then
  20858. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20859. fi
  20860. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20861. fi
  20862. if test x$have_filesystem != xyes; then
  20863. if test x$enable_filesystem = xyes; then
  20864. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20865. fi
  20866. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20867. fi
  20868. if test x$have_loadso != xyes; then
  20869. if test x$enable_loadso = xyes; then
  20870. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20871. fi
  20872. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20873. fi
  20874. if test x$SDLMAIN_SOURCES = x; then
  20875. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20876. fi
  20877. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20878. if test x$video_wayland = xyes; then
  20879. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  20880. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  20881. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20882. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  20883. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20884. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  20885. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  20886. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  20887. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  20888. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20889. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20890. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  20891. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  20892. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20893. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20894. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  20895. WAYLAND_CORE_PROTOCOL_OBJECT="
  20896. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  20897. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  20898. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20899. do echo ; echo \$p | sed\
  20900. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20901. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20902. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  20903. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20904. do echo ; echo \$p | sed\
  20905. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20906. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20907. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  20908. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20909. do echo ; echo \$p | sed\
  20910. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  20911. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  20912. WAYLAND_PROTOCOLS_DEPENDS="
  20913. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  20914. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  20915. $WAYLAND_CORE_PROTOCOL_OBJECT
  20916. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  20917. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  20918. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  20919. "
  20920. fi
  20921. OBJECTS=`echo $SOURCES`
  20922. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20923. for EXT in asm cc m c S; do
  20924. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20925. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20926. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20927. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20928. done
  20929. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20930. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20931. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20932. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20933. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20934. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20935. \\$(WINDRES) \\$< \\$@,g"`
  20936. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20937. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20938. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20939. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20940. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  20941. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20942. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20943. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20944. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20945. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20946. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  20947. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20948. # Set runtime shared library paths as needed
  20949. if test "x$enable_rpath" = "xyes"; then
  20950. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20951. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  20953. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  20954. have_enable_new_dtags=no
  20955. save_LDFLAGS="$LDFLAGS"
  20956. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  20957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20958. /* end confdefs.h. */
  20959. int
  20960. main ()
  20961. {
  20962. ;
  20963. return 0;
  20964. }
  20965. _ACEOF
  20966. if ac_fn_c_try_link "$LINENO"; then :
  20967. have_enable_new_dtags=yes
  20968. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  20969. fi
  20970. rm -f core conftest.err conftest.$ac_objext \
  20971. conftest$ac_exeext conftest.$ac_ext
  20972. LDFLAGS="$save_LDFLAGS"
  20973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  20974. $as_echo "$have_enable_new_dtags" >&6; }
  20975. fi
  20976. if test $ARCH = solaris; then
  20977. SDL_RLD_FLAGS="-R\${libdir}"
  20978. fi
  20979. else
  20980. SDL_RLD_FLAGS=""
  20981. fi
  20982. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20983. if test x$enable_shared = xyes; then
  20984. ENABLE_SHARED_TRUE=
  20985. ENABLE_SHARED_FALSE="#"
  20986. else
  20987. ENABLE_SHARED_TRUE="#"
  20988. ENABLE_SHARED_FALSE=
  20989. fi
  20990. if test x$enable_static = xyes; then
  20991. ENABLE_STATIC_TRUE=
  20992. ENABLE_STATIC_FALSE="#"
  20993. else
  20994. ENABLE_STATIC_TRUE="#"
  20995. ENABLE_STATIC_FALSE=
  20996. fi
  20997. cat >Makefile.rules <<__EOF__
  20998. # Build rules for objects
  20999. -include \$(OBJECTS:.lo=.d)
  21000. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21001. $srcdir/src/SDL.c: update-revision
  21002. $DEPENDS
  21003. $VERSION_DEPENDS
  21004. $SDLMAIN_DEPENDS
  21005. $SDLTEST_DEPENDS
  21006. $WAYLAND_PROTOCOLS_DEPENDS
  21007. __EOF__
  21008. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21009. ac_config_commands="$ac_config_commands sdl2_config"
  21010. SUMMARY="SDL2 Configure Summary:\n"
  21011. if test x$enable_shared = xyes; then
  21012. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21013. fi
  21014. if test x$enable_static = xyes; then
  21015. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21016. fi
  21017. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21018. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21019. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21020. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21021. if test x$have_x = xyes; then
  21022. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21023. fi
  21024. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21025. if test x$have_samplerate_h_hdr = xyes; then
  21026. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21027. else
  21028. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21029. fi
  21030. if test x$have_libudev_h_hdr = xyes; then
  21031. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21032. else
  21033. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21034. fi
  21035. if test x$have_dbus_dbus_h_hdr = xyes; then
  21036. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21037. else
  21038. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21039. fi
  21040. if test x$enable_ime = xyes; then
  21041. SUMMARY="${SUMMARY}Using ime : YES\n"
  21042. else
  21043. SUMMARY="${SUMMARY}Using ime : NO\n"
  21044. fi
  21045. if test x$have_ibus_ibus_h_hdr = xyes; then
  21046. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21047. else
  21048. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21049. fi
  21050. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21051. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21052. else
  21053. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21054. fi
  21055. ac_config_commands="$ac_config_commands summary"
  21056. cat >confcache <<\_ACEOF
  21057. # This file is a shell script that caches the results of configure
  21058. # tests run on this system so they can be shared between configure
  21059. # scripts and configure runs, see configure's option --config-cache.
  21060. # It is not useful on other systems. If it contains results you don't
  21061. # want to keep, you may remove or edit it.
  21062. #
  21063. # config.status only pays attention to the cache file if you give it
  21064. # the --recheck option to rerun configure.
  21065. #
  21066. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21067. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21068. # following values.
  21069. _ACEOF
  21070. # The following way of writing the cache mishandles newlines in values,
  21071. # but we know of no workaround that is simple, portable, and efficient.
  21072. # So, we kill variables containing newlines.
  21073. # Ultrix sh set writes to stderr and can't be redirected directly,
  21074. # and sets the high bit in the cache file unless we assign to the vars.
  21075. (
  21076. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21077. eval ac_val=\$$ac_var
  21078. case $ac_val in #(
  21079. *${as_nl}*)
  21080. case $ac_var in #(
  21081. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21082. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21083. esac
  21084. case $ac_var in #(
  21085. _ | IFS | as_nl) ;; #(
  21086. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21087. *) { eval $ac_var=; unset $ac_var;} ;;
  21088. esac ;;
  21089. esac
  21090. done
  21091. (set) 2>&1 |
  21092. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21093. *${as_nl}ac_space=\ *)
  21094. # `set' does not quote correctly, so add quotes: double-quote
  21095. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21096. sed -n \
  21097. "s/'/'\\\\''/g;
  21098. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21099. ;; #(
  21100. *)
  21101. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21102. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21103. ;;
  21104. esac |
  21105. sort
  21106. ) |
  21107. sed '
  21108. /^ac_cv_env_/b end
  21109. t clear
  21110. :clear
  21111. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21112. t end
  21113. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21114. :end' >>confcache
  21115. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21116. if test -w "$cache_file"; then
  21117. if test "x$cache_file" != "x/dev/null"; then
  21118. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21119. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21120. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21121. cat confcache >"$cache_file"
  21122. else
  21123. case $cache_file in #(
  21124. */* | ?:*)
  21125. mv -f confcache "$cache_file"$$ &&
  21126. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21127. *)
  21128. mv -f confcache "$cache_file" ;;
  21129. esac
  21130. fi
  21131. fi
  21132. else
  21133. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21134. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21135. fi
  21136. fi
  21137. rm -f confcache
  21138. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21139. # Let make expand exec_prefix.
  21140. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21141. DEFS=-DHAVE_CONFIG_H
  21142. ac_libobjs=
  21143. ac_ltlibobjs=
  21144. U=
  21145. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21146. # 1. Remove the extension, and $U if already installed.
  21147. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21148. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21149. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21150. # will be set to the directory where LIBOBJS objects are built.
  21151. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21152. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21153. done
  21154. LIBOBJS=$ac_libobjs
  21155. LTLIBOBJS=$ac_ltlibobjs
  21156. : "${CONFIG_STATUS=./config.status}"
  21157. ac_write_fail=0
  21158. ac_clean_files_save=$ac_clean_files
  21159. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21160. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21161. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21162. as_write_fail=0
  21163. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21164. #! $SHELL
  21165. # Generated by $as_me.
  21166. # Run this file to recreate the current configuration.
  21167. # Compiler output produced by configure, useful for debugging
  21168. # configure, is in config.log if it exists.
  21169. debug=false
  21170. ac_cs_recheck=false
  21171. ac_cs_silent=false
  21172. SHELL=\${CONFIG_SHELL-$SHELL}
  21173. export SHELL
  21174. _ASEOF
  21175. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21176. ## -------------------- ##
  21177. ## M4sh Initialization. ##
  21178. ## -------------------- ##
  21179. # Be more Bourne compatible
  21180. DUALCASE=1; export DUALCASE # for MKS sh
  21181. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21182. emulate sh
  21183. NULLCMD=:
  21184. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21185. # is contrary to our usage. Disable this feature.
  21186. alias -g '${1+"$@"}'='"$@"'
  21187. setopt NO_GLOB_SUBST
  21188. else
  21189. case `(set -o) 2>/dev/null` in #(
  21190. *posix*) :
  21191. set -o posix ;; #(
  21192. *) :
  21193. ;;
  21194. esac
  21195. fi
  21196. as_nl='
  21197. '
  21198. export as_nl
  21199. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21200. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21201. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21202. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21203. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21204. # but without wasting forks for bash or zsh.
  21205. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21206. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21207. as_echo='print -r --'
  21208. as_echo_n='print -rn --'
  21209. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21210. as_echo='printf %s\n'
  21211. as_echo_n='printf %s'
  21212. else
  21213. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21214. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21215. as_echo_n='/usr/ucb/echo -n'
  21216. else
  21217. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21218. as_echo_n_body='eval
  21219. arg=$1;
  21220. case $arg in #(
  21221. *"$as_nl"*)
  21222. expr "X$arg" : "X\\(.*\\)$as_nl";
  21223. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21224. esac;
  21225. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21226. '
  21227. export as_echo_n_body
  21228. as_echo_n='sh -c $as_echo_n_body as_echo'
  21229. fi
  21230. export as_echo_body
  21231. as_echo='sh -c $as_echo_body as_echo'
  21232. fi
  21233. # The user is always right.
  21234. if test "${PATH_SEPARATOR+set}" != set; then
  21235. PATH_SEPARATOR=:
  21236. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21237. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21238. PATH_SEPARATOR=';'
  21239. }
  21240. fi
  21241. # IFS
  21242. # We need space, tab and new line, in precisely that order. Quoting is
  21243. # there to prevent editors from complaining about space-tab.
  21244. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21245. # splitting by setting IFS to empty value.)
  21246. IFS=" "" $as_nl"
  21247. # Find who we are. Look in the path if we contain no directory separator.
  21248. as_myself=
  21249. case $0 in #((
  21250. *[\\/]* ) as_myself=$0 ;;
  21251. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21252. for as_dir in $PATH
  21253. do
  21254. IFS=$as_save_IFS
  21255. test -z "$as_dir" && as_dir=.
  21256. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21257. done
  21258. IFS=$as_save_IFS
  21259. ;;
  21260. esac
  21261. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21262. # in which case we are not to be found in the path.
  21263. if test "x$as_myself" = x; then
  21264. as_myself=$0
  21265. fi
  21266. if test ! -f "$as_myself"; then
  21267. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21268. exit 1
  21269. fi
  21270. # Unset variables that we do not need and which cause bugs (e.g. in
  21271. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21272. # suppresses any "Segmentation fault" message there. '((' could
  21273. # trigger a bug in pdksh 5.2.14.
  21274. for as_var in BASH_ENV ENV MAIL MAILPATH
  21275. do eval test x\${$as_var+set} = xset \
  21276. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21277. done
  21278. PS1='$ '
  21279. PS2='> '
  21280. PS4='+ '
  21281. # NLS nuisances.
  21282. LC_ALL=C
  21283. export LC_ALL
  21284. LANGUAGE=C
  21285. export LANGUAGE
  21286. # CDPATH.
  21287. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21288. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21289. # ----------------------------------------
  21290. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21291. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21292. # script with STATUS, using 1 if that was 0.
  21293. as_fn_error ()
  21294. {
  21295. as_status=$1; test $as_status -eq 0 && as_status=1
  21296. if test "$4"; then
  21297. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21298. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21299. fi
  21300. $as_echo "$as_me: error: $2" >&2
  21301. as_fn_exit $as_status
  21302. } # as_fn_error
  21303. # as_fn_set_status STATUS
  21304. # -----------------------
  21305. # Set $? to STATUS, without forking.
  21306. as_fn_set_status ()
  21307. {
  21308. return $1
  21309. } # as_fn_set_status
  21310. # as_fn_exit STATUS
  21311. # -----------------
  21312. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21313. as_fn_exit ()
  21314. {
  21315. set +e
  21316. as_fn_set_status $1
  21317. exit $1
  21318. } # as_fn_exit
  21319. # as_fn_unset VAR
  21320. # ---------------
  21321. # Portably unset VAR.
  21322. as_fn_unset ()
  21323. {
  21324. { eval $1=; unset $1;}
  21325. }
  21326. as_unset=as_fn_unset
  21327. # as_fn_append VAR VALUE
  21328. # ----------------------
  21329. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21330. # advantage of any shell optimizations that allow amortized linear growth over
  21331. # repeated appends, instead of the typical quadratic growth present in naive
  21332. # implementations.
  21333. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21334. eval 'as_fn_append ()
  21335. {
  21336. eval $1+=\$2
  21337. }'
  21338. else
  21339. as_fn_append ()
  21340. {
  21341. eval $1=\$$1\$2
  21342. }
  21343. fi # as_fn_append
  21344. # as_fn_arith ARG...
  21345. # ------------------
  21346. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21347. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21348. # must be portable across $(()) and expr.
  21349. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21350. eval 'as_fn_arith ()
  21351. {
  21352. as_val=$(( $* ))
  21353. }'
  21354. else
  21355. as_fn_arith ()
  21356. {
  21357. as_val=`expr "$@" || test $? -eq 1`
  21358. }
  21359. fi # as_fn_arith
  21360. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21361. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21362. as_expr=expr
  21363. else
  21364. as_expr=false
  21365. fi
  21366. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21367. as_basename=basename
  21368. else
  21369. as_basename=false
  21370. fi
  21371. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21372. as_dirname=dirname
  21373. else
  21374. as_dirname=false
  21375. fi
  21376. as_me=`$as_basename -- "$0" ||
  21377. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21378. X"$0" : 'X\(//\)$' \| \
  21379. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21380. $as_echo X/"$0" |
  21381. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21382. s//\1/
  21383. q
  21384. }
  21385. /^X\/\(\/\/\)$/{
  21386. s//\1/
  21387. q
  21388. }
  21389. /^X\/\(\/\).*/{
  21390. s//\1/
  21391. q
  21392. }
  21393. s/.*/./; q'`
  21394. # Avoid depending upon Character Ranges.
  21395. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21396. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21397. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21398. as_cr_digits='0123456789'
  21399. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21400. ECHO_C= ECHO_N= ECHO_T=
  21401. case `echo -n x` in #(((((
  21402. -n*)
  21403. case `echo 'xy\c'` in
  21404. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21405. xy) ECHO_C='\c';;
  21406. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21407. ECHO_T=' ';;
  21408. esac;;
  21409. *)
  21410. ECHO_N='-n';;
  21411. esac
  21412. rm -f conf$$ conf$$.exe conf$$.file
  21413. if test -d conf$$.dir; then
  21414. rm -f conf$$.dir/conf$$.file
  21415. else
  21416. rm -f conf$$.dir
  21417. mkdir conf$$.dir 2>/dev/null
  21418. fi
  21419. if (echo >conf$$.file) 2>/dev/null; then
  21420. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21421. as_ln_s='ln -s'
  21422. # ... but there are two gotchas:
  21423. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21424. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21425. # In both cases, we have to default to `cp -pR'.
  21426. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21427. as_ln_s='cp -pR'
  21428. elif ln conf$$.file conf$$ 2>/dev/null; then
  21429. as_ln_s=ln
  21430. else
  21431. as_ln_s='cp -pR'
  21432. fi
  21433. else
  21434. as_ln_s='cp -pR'
  21435. fi
  21436. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21437. rmdir conf$$.dir 2>/dev/null
  21438. # as_fn_mkdir_p
  21439. # -------------
  21440. # Create "$as_dir" as a directory, including parents if necessary.
  21441. as_fn_mkdir_p ()
  21442. {
  21443. case $as_dir in #(
  21444. -*) as_dir=./$as_dir;;
  21445. esac
  21446. test -d "$as_dir" || eval $as_mkdir_p || {
  21447. as_dirs=
  21448. while :; do
  21449. case $as_dir in #(
  21450. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21451. *) as_qdir=$as_dir;;
  21452. esac
  21453. as_dirs="'$as_qdir' $as_dirs"
  21454. as_dir=`$as_dirname -- "$as_dir" ||
  21455. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21456. X"$as_dir" : 'X\(//\)[^/]' \| \
  21457. X"$as_dir" : 'X\(//\)$' \| \
  21458. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21459. $as_echo X"$as_dir" |
  21460. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21461. s//\1/
  21462. q
  21463. }
  21464. /^X\(\/\/\)[^/].*/{
  21465. s//\1/
  21466. q
  21467. }
  21468. /^X\(\/\/\)$/{
  21469. s//\1/
  21470. q
  21471. }
  21472. /^X\(\/\).*/{
  21473. s//\1/
  21474. q
  21475. }
  21476. s/.*/./; q'`
  21477. test -d "$as_dir" && break
  21478. done
  21479. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21480. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21481. } # as_fn_mkdir_p
  21482. if mkdir -p . 2>/dev/null; then
  21483. as_mkdir_p='mkdir -p "$as_dir"'
  21484. else
  21485. test -d ./-p && rmdir ./-p
  21486. as_mkdir_p=false
  21487. fi
  21488. # as_fn_executable_p FILE
  21489. # -----------------------
  21490. # Test if FILE is an executable regular file.
  21491. as_fn_executable_p ()
  21492. {
  21493. test -f "$1" && test -x "$1"
  21494. } # as_fn_executable_p
  21495. as_test_x='test -x'
  21496. as_executable_p=as_fn_executable_p
  21497. # Sed expression to map a string onto a valid CPP name.
  21498. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21499. # Sed expression to map a string onto a valid variable name.
  21500. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21501. exec 6>&1
  21502. ## ----------------------------------- ##
  21503. ## Main body of $CONFIG_STATUS script. ##
  21504. ## ----------------------------------- ##
  21505. _ASEOF
  21506. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21507. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21508. # Save the log message, to keep $0 and so on meaningful, and to
  21509. # report actual input values of CONFIG_FILES etc. instead of their
  21510. # values after options handling.
  21511. ac_log="
  21512. This file was extended by $as_me, which was
  21513. generated by GNU Autoconf 2.69. Invocation command line was
  21514. CONFIG_FILES = $CONFIG_FILES
  21515. CONFIG_HEADERS = $CONFIG_HEADERS
  21516. CONFIG_LINKS = $CONFIG_LINKS
  21517. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21518. $ $0 $@
  21519. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21520. "
  21521. _ACEOF
  21522. case $ac_config_files in *"
  21523. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21524. esac
  21525. case $ac_config_headers in *"
  21526. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21527. esac
  21528. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21529. # Files that config.status was made for.
  21530. config_files="$ac_config_files"
  21531. config_headers="$ac_config_headers"
  21532. config_commands="$ac_config_commands"
  21533. _ACEOF
  21534. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21535. ac_cs_usage="\
  21536. \`$as_me' instantiates files and other configuration actions
  21537. from templates according to the current configuration. Unless the files
  21538. and actions are specified as TAGs, all are instantiated by default.
  21539. Usage: $0 [OPTION]... [TAG]...
  21540. -h, --help print this help, then exit
  21541. -V, --version print version number and configuration settings, then exit
  21542. --config print configuration, then exit
  21543. -q, --quiet, --silent
  21544. do not print progress messages
  21545. -d, --debug don't remove temporary files
  21546. --recheck update $as_me by reconfiguring in the same conditions
  21547. --file=FILE[:TEMPLATE]
  21548. instantiate the configuration file FILE
  21549. --header=FILE[:TEMPLATE]
  21550. instantiate the configuration header FILE
  21551. Configuration files:
  21552. $config_files
  21553. Configuration headers:
  21554. $config_headers
  21555. Configuration commands:
  21556. $config_commands
  21557. Report bugs to the package provider."
  21558. _ACEOF
  21559. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21560. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21561. ac_cs_version="\\
  21562. config.status
  21563. configured by $0, generated by GNU Autoconf 2.69,
  21564. with options \\"\$ac_cs_config\\"
  21565. Copyright (C) 2012 Free Software Foundation, Inc.
  21566. This config.status script is free software; the Free Software Foundation
  21567. gives unlimited permission to copy, distribute and modify it."
  21568. ac_pwd='$ac_pwd'
  21569. srcdir='$srcdir'
  21570. INSTALL='$INSTALL'
  21571. AWK='$AWK'
  21572. test -n "\$AWK" || AWK=awk
  21573. _ACEOF
  21574. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21575. # The default lists apply if the user does not specify any file.
  21576. ac_need_defaults=:
  21577. while test $# != 0
  21578. do
  21579. case $1 in
  21580. --*=?*)
  21581. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21582. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21583. ac_shift=:
  21584. ;;
  21585. --*=)
  21586. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21587. ac_optarg=
  21588. ac_shift=:
  21589. ;;
  21590. *)
  21591. ac_option=$1
  21592. ac_optarg=$2
  21593. ac_shift=shift
  21594. ;;
  21595. esac
  21596. case $ac_option in
  21597. # Handling of the options.
  21598. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21599. ac_cs_recheck=: ;;
  21600. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21601. $as_echo "$ac_cs_version"; exit ;;
  21602. --config | --confi | --conf | --con | --co | --c )
  21603. $as_echo "$ac_cs_config"; exit ;;
  21604. --debug | --debu | --deb | --de | --d | -d )
  21605. debug=: ;;
  21606. --file | --fil | --fi | --f )
  21607. $ac_shift
  21608. case $ac_optarg in
  21609. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21610. '') as_fn_error $? "missing file argument" ;;
  21611. esac
  21612. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21613. ac_need_defaults=false;;
  21614. --header | --heade | --head | --hea )
  21615. $ac_shift
  21616. case $ac_optarg in
  21617. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21618. esac
  21619. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21620. ac_need_defaults=false;;
  21621. --he | --h)
  21622. # Conflict between --help and --header
  21623. as_fn_error $? "ambiguous option: \`$1'
  21624. Try \`$0 --help' for more information.";;
  21625. --help | --hel | -h )
  21626. $as_echo "$ac_cs_usage"; exit ;;
  21627. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21628. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21629. ac_cs_silent=: ;;
  21630. # This is an error.
  21631. -*) as_fn_error $? "unrecognized option: \`$1'
  21632. Try \`$0 --help' for more information." ;;
  21633. *) as_fn_append ac_config_targets " $1"
  21634. ac_need_defaults=false ;;
  21635. esac
  21636. shift
  21637. done
  21638. ac_configure_extra_args=
  21639. if $ac_cs_silent; then
  21640. exec 6>/dev/null
  21641. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21642. fi
  21643. _ACEOF
  21644. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21645. if \$ac_cs_recheck; then
  21646. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21647. shift
  21648. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21649. CONFIG_SHELL='$SHELL'
  21650. export CONFIG_SHELL
  21651. exec "\$@"
  21652. fi
  21653. _ACEOF
  21654. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21655. exec 5>>config.log
  21656. {
  21657. echo
  21658. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21659. ## Running $as_me. ##
  21660. _ASBOX
  21661. $as_echo "$ac_log"
  21662. } >&5
  21663. _ACEOF
  21664. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21665. #
  21666. # INIT-COMMANDS
  21667. #
  21668. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21669. # if CDPATH is set.
  21670. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21671. sed_quote_subst='$sed_quote_subst'
  21672. double_quote_subst='$double_quote_subst'
  21673. delay_variable_subst='$delay_variable_subst'
  21674. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21675. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21676. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21677. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21678. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21679. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21680. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21681. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21682. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21683. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21684. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21685. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21686. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21687. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21688. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21689. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21690. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21691. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21692. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21693. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21694. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21695. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21696. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21697. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21698. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21699. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21700. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21701. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21702. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21703. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21704. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21705. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21706. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21707. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21708. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21709. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21710. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21711. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21712. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21713. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21714. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21715. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21716. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21717. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21718. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21719. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21720. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21721. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21722. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21723. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21724. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21725. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21726. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21727. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21728. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21729. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21730. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21731. 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"`'
  21732. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21733. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21734. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21735. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21736. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21737. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21738. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21739. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21740. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21741. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21742. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21743. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21744. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21745. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21746. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21747. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21748. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21749. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21750. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21751. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21752. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21753. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21754. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21755. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21756. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21757. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21758. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21759. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21760. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21761. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21762. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21763. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21764. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21765. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21766. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21767. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21768. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21769. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21770. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21771. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21772. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21773. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21774. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21775. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21776. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21777. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21778. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21779. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21780. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21781. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21782. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21783. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21784. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21785. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21786. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21787. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21788. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21789. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21790. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21791. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21792. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21793. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21794. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21795. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21796. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21797. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21798. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21799. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21800. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21801. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21802. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21803. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21804. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21805. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21806. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21807. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21808. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21809. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21810. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21811. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21812. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21813. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21814. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21815. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21816. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21817. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21818. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21819. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21820. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21821. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21822. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21823. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21824. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21825. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21826. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21827. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21828. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21829. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21830. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21831. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21832. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21833. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21834. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21835. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21836. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21837. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21838. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21839. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21840. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21841. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21842. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21843. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21844. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21845. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21846. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21847. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21848. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21849. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21850. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21851. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21852. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21853. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21854. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21855. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21856. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21857. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21858. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21859. LTCC='$LTCC'
  21860. LTCFLAGS='$LTCFLAGS'
  21861. compiler='$compiler_DEFAULT'
  21862. # A function that is used when there is no print builtin or printf.
  21863. func_fallback_echo ()
  21864. {
  21865. eval 'cat <<_LTECHO_EOF
  21866. \$1
  21867. _LTECHO_EOF'
  21868. }
  21869. # Quote evaled strings.
  21870. for var in AS \
  21871. DLLTOOL \
  21872. OBJDUMP \
  21873. SHELL \
  21874. ECHO \
  21875. PATH_SEPARATOR \
  21876. SED \
  21877. GREP \
  21878. EGREP \
  21879. FGREP \
  21880. LD \
  21881. NM \
  21882. LN_S \
  21883. lt_SP2NL \
  21884. lt_NL2SP \
  21885. reload_flag \
  21886. deplibs_check_method \
  21887. file_magic_cmd \
  21888. file_magic_glob \
  21889. want_nocaseglob \
  21890. sharedlib_from_linklib_cmd \
  21891. AR \
  21892. AR_FLAGS \
  21893. archiver_list_spec \
  21894. STRIP \
  21895. RANLIB \
  21896. CC \
  21897. CFLAGS \
  21898. compiler \
  21899. lt_cv_sys_global_symbol_pipe \
  21900. lt_cv_sys_global_symbol_to_cdecl \
  21901. lt_cv_sys_global_symbol_to_c_name_address \
  21902. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21903. nm_file_list_spec \
  21904. lt_prog_compiler_no_builtin_flag \
  21905. lt_prog_compiler_pic \
  21906. lt_prog_compiler_wl \
  21907. lt_prog_compiler_static \
  21908. lt_cv_prog_compiler_c_o \
  21909. need_locks \
  21910. MANIFEST_TOOL \
  21911. DSYMUTIL \
  21912. NMEDIT \
  21913. LIPO \
  21914. OTOOL \
  21915. OTOOL64 \
  21916. shrext_cmds \
  21917. export_dynamic_flag_spec \
  21918. whole_archive_flag_spec \
  21919. compiler_needs_object \
  21920. with_gnu_ld \
  21921. allow_undefined_flag \
  21922. no_undefined_flag \
  21923. hardcode_libdir_flag_spec \
  21924. hardcode_libdir_separator \
  21925. exclude_expsyms \
  21926. include_expsyms \
  21927. file_list_spec \
  21928. variables_saved_for_relink \
  21929. libname_spec \
  21930. library_names_spec \
  21931. soname_spec \
  21932. install_override_mode \
  21933. finish_eval \
  21934. old_striplib \
  21935. striplib \
  21936. compiler_lib_search_dirs \
  21937. predep_objects \
  21938. postdep_objects \
  21939. predeps \
  21940. postdeps \
  21941. compiler_lib_search_path \
  21942. LD_CXX \
  21943. reload_flag_CXX \
  21944. compiler_CXX \
  21945. lt_prog_compiler_no_builtin_flag_CXX \
  21946. lt_prog_compiler_pic_CXX \
  21947. lt_prog_compiler_wl_CXX \
  21948. lt_prog_compiler_static_CXX \
  21949. lt_cv_prog_compiler_c_o_CXX \
  21950. export_dynamic_flag_spec_CXX \
  21951. whole_archive_flag_spec_CXX \
  21952. compiler_needs_object_CXX \
  21953. with_gnu_ld_CXX \
  21954. allow_undefined_flag_CXX \
  21955. no_undefined_flag_CXX \
  21956. hardcode_libdir_flag_spec_CXX \
  21957. hardcode_libdir_separator_CXX \
  21958. exclude_expsyms_CXX \
  21959. include_expsyms_CXX \
  21960. file_list_spec_CXX \
  21961. compiler_lib_search_dirs_CXX \
  21962. predep_objects_CXX \
  21963. postdep_objects_CXX \
  21964. predeps_CXX \
  21965. postdeps_CXX \
  21966. compiler_lib_search_path_CXX; do
  21967. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21968. *[\\\\\\\`\\"\\\$]*)
  21969. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21970. ;;
  21971. *)
  21972. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21973. ;;
  21974. esac
  21975. done
  21976. # Double-quote double-evaled strings.
  21977. for var in reload_cmds \
  21978. old_postinstall_cmds \
  21979. old_postuninstall_cmds \
  21980. old_archive_cmds \
  21981. extract_expsyms_cmds \
  21982. old_archive_from_new_cmds \
  21983. old_archive_from_expsyms_cmds \
  21984. archive_cmds \
  21985. archive_expsym_cmds \
  21986. module_cmds \
  21987. module_expsym_cmds \
  21988. export_symbols_cmds \
  21989. prelink_cmds \
  21990. postlink_cmds \
  21991. postinstall_cmds \
  21992. postuninstall_cmds \
  21993. finish_cmds \
  21994. sys_lib_search_path_spec \
  21995. sys_lib_dlsearch_path_spec \
  21996. reload_cmds_CXX \
  21997. old_archive_cmds_CXX \
  21998. old_archive_from_new_cmds_CXX \
  21999. old_archive_from_expsyms_cmds_CXX \
  22000. archive_cmds_CXX \
  22001. archive_expsym_cmds_CXX \
  22002. module_cmds_CXX \
  22003. module_expsym_cmds_CXX \
  22004. export_symbols_cmds_CXX \
  22005. prelink_cmds_CXX \
  22006. postlink_cmds_CXX; do
  22007. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22008. *[\\\\\\\`\\"\\\$]*)
  22009. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22010. ;;
  22011. *)
  22012. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22013. ;;
  22014. esac
  22015. done
  22016. ac_aux_dir='$ac_aux_dir'
  22017. xsi_shell='$xsi_shell'
  22018. lt_shell_append='$lt_shell_append'
  22019. # See if we are running on zsh, and set the options which allow our
  22020. # commands through without removal of \ escapes INIT.
  22021. if test -n "\${ZSH_VERSION+set}" ; then
  22022. setopt NO_GLOB_SUBST
  22023. fi
  22024. PACKAGE='$PACKAGE'
  22025. VERSION='$VERSION'
  22026. TIMESTAMP='$TIMESTAMP'
  22027. RM='$RM'
  22028. ofile='$ofile'
  22029. SUMMARY="$SUMMARY"
  22030. _ACEOF
  22031. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22032. # Handling of arguments.
  22033. for ac_config_target in $ac_config_targets
  22034. do
  22035. case $ac_config_target in
  22036. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22037. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22038. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22039. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22040. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22041. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22042. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22043. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22044. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22045. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22046. esac
  22047. done
  22048. # If the user did not use the arguments to specify the items to instantiate,
  22049. # then the envvar interface is used. Set only those that are not.
  22050. # We use the long form for the default assignment because of an extremely
  22051. # bizarre bug on SunOS 4.1.3.
  22052. if $ac_need_defaults; then
  22053. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22054. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22055. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22056. fi
  22057. # Have a temporary directory for convenience. Make it in the build tree
  22058. # simply because there is no reason against having it here, and in addition,
  22059. # creating and moving files from /tmp can sometimes cause problems.
  22060. # Hook for its removal unless debugging.
  22061. # Note that there is a small window in which the directory will not be cleaned:
  22062. # after its creation but before its name has been assigned to `$tmp'.
  22063. $debug ||
  22064. {
  22065. tmp= ac_tmp=
  22066. trap 'exit_status=$?
  22067. : "${ac_tmp:=$tmp}"
  22068. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22069. ' 0
  22070. trap 'as_fn_exit 1' 1 2 13 15
  22071. }
  22072. # Create a (secure) tmp directory for tmp files.
  22073. {
  22074. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22075. test -d "$tmp"
  22076. } ||
  22077. {
  22078. tmp=./conf$$-$RANDOM
  22079. (umask 077 && mkdir "$tmp")
  22080. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22081. ac_tmp=$tmp
  22082. # Set up the scripts for CONFIG_FILES section.
  22083. # No need to generate them if there are no CONFIG_FILES.
  22084. # This happens for instance with `./config.status config.h'.
  22085. if test -n "$CONFIG_FILES"; then
  22086. ac_cr=`echo X | tr X '\015'`
  22087. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22088. # But we know of no other shell where ac_cr would be empty at this
  22089. # point, so we can use a bashism as a fallback.
  22090. if test "x$ac_cr" = x; then
  22091. eval ac_cr=\$\'\\r\'
  22092. fi
  22093. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22094. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22095. ac_cs_awk_cr='\\r'
  22096. else
  22097. ac_cs_awk_cr=$ac_cr
  22098. fi
  22099. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22100. _ACEOF
  22101. {
  22102. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22103. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22104. echo "_ACEOF"
  22105. } >conf$$subs.sh ||
  22106. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22107. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22108. ac_delim='%!_!# '
  22109. for ac_last_try in false false false false false :; do
  22110. . ./conf$$subs.sh ||
  22111. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22112. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22113. if test $ac_delim_n = $ac_delim_num; then
  22114. break
  22115. elif $ac_last_try; then
  22116. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22117. else
  22118. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22119. fi
  22120. done
  22121. rm -f conf$$subs.sh
  22122. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22123. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22124. _ACEOF
  22125. sed -n '
  22126. h
  22127. s/^/S["/; s/!.*/"]=/
  22128. p
  22129. g
  22130. s/^[^!]*!//
  22131. :repl
  22132. t repl
  22133. s/'"$ac_delim"'$//
  22134. t delim
  22135. :nl
  22136. h
  22137. s/\(.\{148\}\)..*/\1/
  22138. t more1
  22139. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22140. p
  22141. n
  22142. b repl
  22143. :more1
  22144. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22145. p
  22146. g
  22147. s/.\{148\}//
  22148. t nl
  22149. :delim
  22150. h
  22151. s/\(.\{148\}\)..*/\1/
  22152. t more2
  22153. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22154. p
  22155. b
  22156. :more2
  22157. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22158. p
  22159. g
  22160. s/.\{148\}//
  22161. t delim
  22162. ' <conf$$subs.awk | sed '
  22163. /^[^""]/{
  22164. N
  22165. s/\n//
  22166. }
  22167. ' >>$CONFIG_STATUS || ac_write_fail=1
  22168. rm -f conf$$subs.awk
  22169. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22170. _ACAWK
  22171. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22172. for (key in S) S_is_set[key] = 1
  22173. FS = ""
  22174. }
  22175. {
  22176. line = $ 0
  22177. nfields = split(line, field, "@")
  22178. substed = 0
  22179. len = length(field[1])
  22180. for (i = 2; i < nfields; i++) {
  22181. key = field[i]
  22182. keylen = length(key)
  22183. if (S_is_set[key]) {
  22184. value = S[key]
  22185. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22186. len += length(value) + length(field[++i])
  22187. substed = 1
  22188. } else
  22189. len += 1 + keylen
  22190. }
  22191. print line
  22192. }
  22193. _ACAWK
  22194. _ACEOF
  22195. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22196. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22197. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22198. else
  22199. cat
  22200. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22201. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22202. _ACEOF
  22203. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22204. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22205. # trailing colons and then remove the whole line if VPATH becomes empty
  22206. # (actually we leave an empty line to preserve line numbers).
  22207. if test "x$srcdir" = x.; then
  22208. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22209. h
  22210. s///
  22211. s/^/:/
  22212. s/[ ]*$/:/
  22213. s/:\$(srcdir):/:/g
  22214. s/:\${srcdir}:/:/g
  22215. s/:@srcdir@:/:/g
  22216. s/^:*//
  22217. s/:*$//
  22218. x
  22219. s/\(=[ ]*\).*/\1/
  22220. G
  22221. s/\n//
  22222. s/^[^=]*=[ ]*$//
  22223. }'
  22224. fi
  22225. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22226. fi # test -n "$CONFIG_FILES"
  22227. # Set up the scripts for CONFIG_HEADERS section.
  22228. # No need to generate them if there are no CONFIG_HEADERS.
  22229. # This happens for instance with `./config.status Makefile'.
  22230. if test -n "$CONFIG_HEADERS"; then
  22231. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22232. BEGIN {
  22233. _ACEOF
  22234. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22235. # here-document in config.status, that substitutes the proper values into
  22236. # config.h.in to produce config.h.
  22237. # Create a delimiter string that does not exist in confdefs.h, to ease
  22238. # handling of long lines.
  22239. ac_delim='%!_!# '
  22240. for ac_last_try in false false :; do
  22241. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22242. if test -z "$ac_tt"; then
  22243. break
  22244. elif $ac_last_try; then
  22245. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22246. else
  22247. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22248. fi
  22249. done
  22250. # For the awk script, D is an array of macro values keyed by name,
  22251. # likewise P contains macro parameters if any. Preserve backslash
  22252. # newline sequences.
  22253. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22254. sed -n '
  22255. s/.\{148\}/&'"$ac_delim"'/g
  22256. t rset
  22257. :rset
  22258. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22259. t def
  22260. d
  22261. :def
  22262. s/\\$//
  22263. t bsnl
  22264. s/["\\]/\\&/g
  22265. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22266. D["\1"]=" \3"/p
  22267. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22268. d
  22269. :bsnl
  22270. s/["\\]/\\&/g
  22271. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22272. D["\1"]=" \3\\\\\\n"\\/p
  22273. t cont
  22274. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22275. t cont
  22276. d
  22277. :cont
  22278. n
  22279. s/.\{148\}/&'"$ac_delim"'/g
  22280. t clear
  22281. :clear
  22282. s/\\$//
  22283. t bsnlc
  22284. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22285. d
  22286. :bsnlc
  22287. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22288. b cont
  22289. ' <confdefs.h | sed '
  22290. s/'"$ac_delim"'/"\\\
  22291. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22292. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22293. for (key in D) D_is_set[key] = 1
  22294. FS = ""
  22295. }
  22296. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22297. line = \$ 0
  22298. split(line, arg, " ")
  22299. if (arg[1] == "#") {
  22300. defundef = arg[2]
  22301. mac1 = arg[3]
  22302. } else {
  22303. defundef = substr(arg[1], 2)
  22304. mac1 = arg[2]
  22305. }
  22306. split(mac1, mac2, "(") #)
  22307. macro = mac2[1]
  22308. prefix = substr(line, 1, index(line, defundef) - 1)
  22309. if (D_is_set[macro]) {
  22310. # Preserve the white space surrounding the "#".
  22311. print prefix "define", macro P[macro] D[macro]
  22312. next
  22313. } else {
  22314. # Replace #undef with comments. This is necessary, for example,
  22315. # in the case of _POSIX_SOURCE, which is predefined and required
  22316. # on some systems where configure will not decide to define it.
  22317. if (defundef == "undef") {
  22318. print "/*", prefix defundef, macro, "*/"
  22319. next
  22320. }
  22321. }
  22322. }
  22323. { print }
  22324. _ACAWK
  22325. _ACEOF
  22326. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22327. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22328. fi # test -n "$CONFIG_HEADERS"
  22329. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22330. shift
  22331. for ac_tag
  22332. do
  22333. case $ac_tag in
  22334. :[FHLC]) ac_mode=$ac_tag; continue;;
  22335. esac
  22336. case $ac_mode$ac_tag in
  22337. :[FHL]*:*);;
  22338. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22339. :[FH]-) ac_tag=-:-;;
  22340. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22341. esac
  22342. ac_save_IFS=$IFS
  22343. IFS=:
  22344. set x $ac_tag
  22345. IFS=$ac_save_IFS
  22346. shift
  22347. ac_file=$1
  22348. shift
  22349. case $ac_mode in
  22350. :L) ac_source=$1;;
  22351. :[FH])
  22352. ac_file_inputs=
  22353. for ac_f
  22354. do
  22355. case $ac_f in
  22356. -) ac_f="$ac_tmp/stdin";;
  22357. *) # Look for the file first in the build tree, then in the source tree
  22358. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22359. # because $ac_f cannot contain `:'.
  22360. test -f "$ac_f" ||
  22361. case $ac_f in
  22362. [\\/$]*) false;;
  22363. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22364. esac ||
  22365. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22366. esac
  22367. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22368. as_fn_append ac_file_inputs " '$ac_f'"
  22369. done
  22370. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22371. # use $as_me), people would be surprised to read:
  22372. # /* config.h. Generated by config.status. */
  22373. configure_input='Generated from '`
  22374. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22375. `' by configure.'
  22376. if test x"$ac_file" != x-; then
  22377. configure_input="$ac_file. $configure_input"
  22378. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22379. $as_echo "$as_me: creating $ac_file" >&6;}
  22380. fi
  22381. # Neutralize special characters interpreted by sed in replacement strings.
  22382. case $configure_input in #(
  22383. *\&* | *\|* | *\\* )
  22384. ac_sed_conf_input=`$as_echo "$configure_input" |
  22385. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22386. *) ac_sed_conf_input=$configure_input;;
  22387. esac
  22388. case $ac_tag in
  22389. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22390. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22391. esac
  22392. ;;
  22393. esac
  22394. ac_dir=`$as_dirname -- "$ac_file" ||
  22395. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22396. X"$ac_file" : 'X\(//\)[^/]' \| \
  22397. X"$ac_file" : 'X\(//\)$' \| \
  22398. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22399. $as_echo X"$ac_file" |
  22400. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22401. s//\1/
  22402. q
  22403. }
  22404. /^X\(\/\/\)[^/].*/{
  22405. s//\1/
  22406. q
  22407. }
  22408. /^X\(\/\/\)$/{
  22409. s//\1/
  22410. q
  22411. }
  22412. /^X\(\/\).*/{
  22413. s//\1/
  22414. q
  22415. }
  22416. s/.*/./; q'`
  22417. as_dir="$ac_dir"; as_fn_mkdir_p
  22418. ac_builddir=.
  22419. case "$ac_dir" in
  22420. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22421. *)
  22422. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22423. # A ".." for each directory in $ac_dir_suffix.
  22424. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22425. case $ac_top_builddir_sub in
  22426. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22427. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22428. esac ;;
  22429. esac
  22430. ac_abs_top_builddir=$ac_pwd
  22431. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22432. # for backward compatibility:
  22433. ac_top_builddir=$ac_top_build_prefix
  22434. case $srcdir in
  22435. .) # We are building in place.
  22436. ac_srcdir=.
  22437. ac_top_srcdir=$ac_top_builddir_sub
  22438. ac_abs_top_srcdir=$ac_pwd ;;
  22439. [\\/]* | ?:[\\/]* ) # Absolute name.
  22440. ac_srcdir=$srcdir$ac_dir_suffix;
  22441. ac_top_srcdir=$srcdir
  22442. ac_abs_top_srcdir=$srcdir ;;
  22443. *) # Relative name.
  22444. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22445. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22446. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22447. esac
  22448. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22449. case $ac_mode in
  22450. :F)
  22451. #
  22452. # CONFIG_FILE
  22453. #
  22454. case $INSTALL in
  22455. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22456. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22457. esac
  22458. _ACEOF
  22459. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22460. # If the template does not know about datarootdir, expand it.
  22461. # FIXME: This hack should be removed a few years after 2.60.
  22462. ac_datarootdir_hack=; ac_datarootdir_seen=
  22463. ac_sed_dataroot='
  22464. /datarootdir/ {
  22465. p
  22466. q
  22467. }
  22468. /@datadir@/p
  22469. /@docdir@/p
  22470. /@infodir@/p
  22471. /@localedir@/p
  22472. /@mandir@/p'
  22473. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22474. *datarootdir*) ac_datarootdir_seen=yes;;
  22475. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22477. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22478. _ACEOF
  22479. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22480. ac_datarootdir_hack='
  22481. s&@datadir@&$datadir&g
  22482. s&@docdir@&$docdir&g
  22483. s&@infodir@&$infodir&g
  22484. s&@localedir@&$localedir&g
  22485. s&@mandir@&$mandir&g
  22486. s&\\\${datarootdir}&$datarootdir&g' ;;
  22487. esac
  22488. _ACEOF
  22489. # Neutralize VPATH when `$srcdir' = `.'.
  22490. # Shell code in configure.ac might set extrasub.
  22491. # FIXME: do we really want to maintain this feature?
  22492. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22493. ac_sed_extra="$ac_vpsub
  22494. $extrasub
  22495. _ACEOF
  22496. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22497. :t
  22498. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22499. s|@configure_input@|$ac_sed_conf_input|;t t
  22500. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22501. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22502. s&@srcdir@&$ac_srcdir&;t t
  22503. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22504. s&@top_srcdir@&$ac_top_srcdir&;t t
  22505. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22506. s&@builddir@&$ac_builddir&;t t
  22507. s&@abs_builddir@&$ac_abs_builddir&;t t
  22508. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22509. s&@INSTALL@&$ac_INSTALL&;t t
  22510. $ac_datarootdir_hack
  22511. "
  22512. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22513. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22514. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22515. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22516. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22517. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22519. which seems to be undefined. Please make sure it is defined" >&5
  22520. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22521. which seems to be undefined. Please make sure it is defined" >&2;}
  22522. rm -f "$ac_tmp/stdin"
  22523. case $ac_file in
  22524. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22525. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22526. esac \
  22527. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22528. ;;
  22529. :H)
  22530. #
  22531. # CONFIG_HEADER
  22532. #
  22533. if test x"$ac_file" != x-; then
  22534. {
  22535. $as_echo "/* $configure_input */" \
  22536. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22537. } >"$ac_tmp/config.h" \
  22538. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22539. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22540. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22541. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22542. else
  22543. rm -f "$ac_file"
  22544. mv "$ac_tmp/config.h" "$ac_file" \
  22545. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22546. fi
  22547. else
  22548. $as_echo "/* $configure_input */" \
  22549. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22550. || as_fn_error $? "could not create -" "$LINENO" 5
  22551. fi
  22552. ;;
  22553. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22554. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22555. ;;
  22556. esac
  22557. case $ac_file$ac_mode in
  22558. "libtool":C)
  22559. # See if we are running on zsh, and set the options which allow our
  22560. # commands through without removal of \ escapes.
  22561. if test -n "${ZSH_VERSION+set}" ; then
  22562. setopt NO_GLOB_SUBST
  22563. fi
  22564. cfgfile="${ofile}T"
  22565. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22566. $RM "$cfgfile"
  22567. cat <<_LT_EOF >> "$cfgfile"
  22568. #! $SHELL
  22569. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22570. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22571. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22572. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22573. #
  22574. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22575. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22576. # Foundation, Inc.
  22577. # Written by Gordon Matzigkeit, 1996
  22578. #
  22579. # This file is part of GNU Libtool.
  22580. #
  22581. # GNU Libtool is free software; you can redistribute it and/or
  22582. # modify it under the terms of the GNU General Public License as
  22583. # published by the Free Software Foundation; either version 2 of
  22584. # the License, or (at your option) any later version.
  22585. #
  22586. # As a special exception to the GNU General Public License,
  22587. # if you distribute this file as part of a program or library that
  22588. # is built using GNU Libtool, you may include this file under the
  22589. # same distribution terms that you use for the rest of that program.
  22590. #
  22591. # GNU Libtool is distributed in the hope that it will be useful,
  22592. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22593. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22594. # GNU General Public License for more details.
  22595. #
  22596. # You should have received a copy of the GNU General Public License
  22597. # along with GNU Libtool; see the file COPYING. If not, a copy
  22598. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22599. # obtained by writing to the Free Software Foundation, Inc.,
  22600. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22601. # The names of the tagged configurations supported by this script.
  22602. available_tags="CXX "
  22603. # ### BEGIN LIBTOOL CONFIG
  22604. # Which release of libtool.m4 was used?
  22605. macro_version=$macro_version
  22606. macro_revision=$macro_revision
  22607. # Assembler program.
  22608. AS=$lt_AS
  22609. # DLL creation program.
  22610. DLLTOOL=$lt_DLLTOOL
  22611. # Object dumper program.
  22612. OBJDUMP=$lt_OBJDUMP
  22613. # Whether or not to build shared libraries.
  22614. build_libtool_libs=$enable_shared
  22615. # Whether or not to build static libraries.
  22616. build_old_libs=$enable_static
  22617. # What type of objects to build.
  22618. pic_mode=$pic_mode
  22619. # Whether or not to optimize for fast installation.
  22620. fast_install=$enable_fast_install
  22621. # Shell to use when invoking shell scripts.
  22622. SHELL=$lt_SHELL
  22623. # An echo program that protects backslashes.
  22624. ECHO=$lt_ECHO
  22625. # The PATH separator for the build system.
  22626. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22627. # The host system.
  22628. host_alias=$host_alias
  22629. host=$host
  22630. host_os=$host_os
  22631. # The build system.
  22632. build_alias=$build_alias
  22633. build=$build
  22634. build_os=$build_os
  22635. # A sed program that does not truncate output.
  22636. SED=$lt_SED
  22637. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22638. Xsed="\$SED -e 1s/^X//"
  22639. # A grep program that handles long lines.
  22640. GREP=$lt_GREP
  22641. # An ERE matcher.
  22642. EGREP=$lt_EGREP
  22643. # A literal string matcher.
  22644. FGREP=$lt_FGREP
  22645. # A BSD- or MS-compatible name lister.
  22646. NM=$lt_NM
  22647. # Whether we need soft or hard links.
  22648. LN_S=$lt_LN_S
  22649. # What is the maximum length of a command?
  22650. max_cmd_len=$max_cmd_len
  22651. # Object file suffix (normally "o").
  22652. objext=$ac_objext
  22653. # Executable file suffix (normally "").
  22654. exeext=$exeext
  22655. # whether the shell understands "unset".
  22656. lt_unset=$lt_unset
  22657. # turn spaces into newlines.
  22658. SP2NL=$lt_lt_SP2NL
  22659. # turn newlines into spaces.
  22660. NL2SP=$lt_lt_NL2SP
  22661. # convert \$build file names to \$host format.
  22662. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22663. # convert \$build files to toolchain format.
  22664. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22665. # Method to check whether dependent libraries are shared objects.
  22666. deplibs_check_method=$lt_deplibs_check_method
  22667. # Command to use when deplibs_check_method = "file_magic".
  22668. file_magic_cmd=$lt_file_magic_cmd
  22669. # How to find potential files when deplibs_check_method = "file_magic".
  22670. file_magic_glob=$lt_file_magic_glob
  22671. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22672. want_nocaseglob=$lt_want_nocaseglob
  22673. # Command to associate shared and link libraries.
  22674. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22675. # The archiver.
  22676. AR=$lt_AR
  22677. # Flags to create an archive.
  22678. AR_FLAGS=$lt_AR_FLAGS
  22679. # How to feed a file listing to the archiver.
  22680. archiver_list_spec=$lt_archiver_list_spec
  22681. # A symbol stripping program.
  22682. STRIP=$lt_STRIP
  22683. # Commands used to install an old-style archive.
  22684. RANLIB=$lt_RANLIB
  22685. old_postinstall_cmds=$lt_old_postinstall_cmds
  22686. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22687. # Whether to use a lock for old archive extraction.
  22688. lock_old_archive_extraction=$lock_old_archive_extraction
  22689. # A C compiler.
  22690. LTCC=$lt_CC
  22691. # LTCC compiler flags.
  22692. LTCFLAGS=$lt_CFLAGS
  22693. # Take the output of nm and produce a listing of raw symbols and C names.
  22694. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22695. # Transform the output of nm in a proper C declaration.
  22696. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22697. # Transform the output of nm in a C name address pair.
  22698. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22699. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22700. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22701. # Specify filename containing input files for \$NM.
  22702. nm_file_list_spec=$lt_nm_file_list_spec
  22703. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22704. lt_sysroot=$lt_sysroot
  22705. # The name of the directory that contains temporary libtool files.
  22706. objdir=$objdir
  22707. # Used to examine libraries when file_magic_cmd begins with "file".
  22708. MAGIC_CMD=$MAGIC_CMD
  22709. # Must we lock files when doing compilation?
  22710. need_locks=$lt_need_locks
  22711. # Manifest tool.
  22712. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22713. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22714. DSYMUTIL=$lt_DSYMUTIL
  22715. # Tool to change global to local symbols on Mac OS X.
  22716. NMEDIT=$lt_NMEDIT
  22717. # Tool to manipulate fat objects and archives on Mac OS X.
  22718. LIPO=$lt_LIPO
  22719. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22720. OTOOL=$lt_OTOOL
  22721. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22722. OTOOL64=$lt_OTOOL64
  22723. # Old archive suffix (normally "a").
  22724. libext=$libext
  22725. # Shared library suffix (normally ".so").
  22726. shrext_cmds=$lt_shrext_cmds
  22727. # The commands to extract the exported symbol list from a shared archive.
  22728. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22729. # Variables whose values should be saved in libtool wrapper scripts and
  22730. # restored at link time.
  22731. variables_saved_for_relink=$lt_variables_saved_for_relink
  22732. # Do we need the "lib" prefix for modules?
  22733. need_lib_prefix=$need_lib_prefix
  22734. # Do we need a version for libraries?
  22735. need_version=$need_version
  22736. # Library versioning type.
  22737. version_type=$version_type
  22738. # Shared library runtime path variable.
  22739. runpath_var=$runpath_var
  22740. # Shared library path variable.
  22741. shlibpath_var=$shlibpath_var
  22742. # Is shlibpath searched before the hard-coded library search path?
  22743. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22744. # Format of library name prefix.
  22745. libname_spec=$lt_libname_spec
  22746. # List of archive names. First name is the real one, the rest are links.
  22747. # The last name is the one that the linker finds with -lNAME
  22748. library_names_spec=$lt_library_names_spec
  22749. # The coded name of the library, if different from the real name.
  22750. soname_spec=$lt_soname_spec
  22751. # Permission mode override for installation of shared libraries.
  22752. install_override_mode=$lt_install_override_mode
  22753. # Command to use after installation of a shared archive.
  22754. postinstall_cmds=$lt_postinstall_cmds
  22755. # Command to use after uninstallation of a shared archive.
  22756. postuninstall_cmds=$lt_postuninstall_cmds
  22757. # Commands used to finish a libtool library installation in a directory.
  22758. finish_cmds=$lt_finish_cmds
  22759. # As "finish_cmds", except a single script fragment to be evaled but
  22760. # not shown.
  22761. finish_eval=$lt_finish_eval
  22762. # Whether we should hardcode library paths into libraries.
  22763. hardcode_into_libs=$hardcode_into_libs
  22764. # Compile-time system search path for libraries.
  22765. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22766. # Run-time system search path for libraries.
  22767. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22768. # Whether dlopen is supported.
  22769. dlopen_support=$enable_dlopen
  22770. # Whether dlopen of programs is supported.
  22771. dlopen_self=$enable_dlopen_self
  22772. # Whether dlopen of statically linked programs is supported.
  22773. dlopen_self_static=$enable_dlopen_self_static
  22774. # Commands to strip libraries.
  22775. old_striplib=$lt_old_striplib
  22776. striplib=$lt_striplib
  22777. # The linker used to build libraries.
  22778. LD=$lt_LD
  22779. # How to create reloadable object files.
  22780. reload_flag=$lt_reload_flag
  22781. reload_cmds=$lt_reload_cmds
  22782. # Commands used to build an old-style archive.
  22783. old_archive_cmds=$lt_old_archive_cmds
  22784. # A language specific compiler.
  22785. CC=$lt_compiler
  22786. # Is the compiler the GNU compiler?
  22787. with_gcc=$GCC
  22788. # Compiler flag to turn off builtin functions.
  22789. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22790. # Additional compiler flags for building library objects.
  22791. pic_flag=$lt_lt_prog_compiler_pic
  22792. # How to pass a linker flag through the compiler.
  22793. wl=$lt_lt_prog_compiler_wl
  22794. # Compiler flag to prevent dynamic linking.
  22795. link_static_flag=$lt_lt_prog_compiler_static
  22796. # Does compiler simultaneously support -c and -o options?
  22797. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22798. # Whether or not to add -lc for building shared libraries.
  22799. build_libtool_need_lc=$archive_cmds_need_lc
  22800. # Whether or not to disallow shared libs when runtime libs are static.
  22801. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22802. # Compiler flag to allow reflexive dlopens.
  22803. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22804. # Compiler flag to generate shared objects directly from archives.
  22805. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22806. # Whether the compiler copes with passing no objects directly.
  22807. compiler_needs_object=$lt_compiler_needs_object
  22808. # Create an old-style archive from a shared archive.
  22809. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22810. # Create a temporary old-style archive to link instead of a shared archive.
  22811. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22812. # Commands used to build a shared archive.
  22813. archive_cmds=$lt_archive_cmds
  22814. archive_expsym_cmds=$lt_archive_expsym_cmds
  22815. # Commands used to build a loadable module if different from building
  22816. # a shared archive.
  22817. module_cmds=$lt_module_cmds
  22818. module_expsym_cmds=$lt_module_expsym_cmds
  22819. # Whether we are building with GNU ld or not.
  22820. with_gnu_ld=$lt_with_gnu_ld
  22821. # Flag that allows shared libraries with undefined symbols to be built.
  22822. allow_undefined_flag=$lt_allow_undefined_flag
  22823. # Flag that enforces no undefined symbols.
  22824. no_undefined_flag=$lt_no_undefined_flag
  22825. # Flag to hardcode \$libdir into a binary during linking.
  22826. # This must work even if \$libdir does not exist
  22827. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22828. # Whether we need a single "-rpath" flag with a separated argument.
  22829. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22830. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22831. # DIR into the resulting binary.
  22832. hardcode_direct=$hardcode_direct
  22833. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22834. # DIR into the resulting binary and the resulting library dependency is
  22835. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22836. # library is relocated.
  22837. hardcode_direct_absolute=$hardcode_direct_absolute
  22838. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22839. # into the resulting binary.
  22840. hardcode_minus_L=$hardcode_minus_L
  22841. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22842. # into the resulting binary.
  22843. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22844. # Set to "yes" if building a shared library automatically hardcodes DIR
  22845. # into the library and all subsequent libraries and executables linked
  22846. # against it.
  22847. hardcode_automatic=$hardcode_automatic
  22848. # Set to yes if linker adds runtime paths of dependent libraries
  22849. # to runtime path list.
  22850. inherit_rpath=$inherit_rpath
  22851. # Whether libtool must link a program against all its dependency libraries.
  22852. link_all_deplibs=$link_all_deplibs
  22853. # Set to "yes" if exported symbols are required.
  22854. always_export_symbols=$always_export_symbols
  22855. # The commands to list exported symbols.
  22856. export_symbols_cmds=$lt_export_symbols_cmds
  22857. # Symbols that should not be listed in the preloaded symbols.
  22858. exclude_expsyms=$lt_exclude_expsyms
  22859. # Symbols that must always be exported.
  22860. include_expsyms=$lt_include_expsyms
  22861. # Commands necessary for linking programs (against libraries) with templates.
  22862. prelink_cmds=$lt_prelink_cmds
  22863. # Commands necessary for finishing linking programs.
  22864. postlink_cmds=$lt_postlink_cmds
  22865. # Specify filename containing input files.
  22866. file_list_spec=$lt_file_list_spec
  22867. # How to hardcode a shared library path into an executable.
  22868. hardcode_action=$hardcode_action
  22869. # The directories searched by this compiler when creating a shared library.
  22870. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22871. # Dependencies to place before and after the objects being linked to
  22872. # create a shared library.
  22873. predep_objects=$lt_predep_objects
  22874. postdep_objects=$lt_postdep_objects
  22875. predeps=$lt_predeps
  22876. postdeps=$lt_postdeps
  22877. # The library search path used internally by the compiler when linking
  22878. # a shared library.
  22879. compiler_lib_search_path=$lt_compiler_lib_search_path
  22880. # ### END LIBTOOL CONFIG
  22881. _LT_EOF
  22882. case $host_os in
  22883. aix3*)
  22884. cat <<\_LT_EOF >> "$cfgfile"
  22885. # AIX sometimes has problems with the GCC collect2 program. For some
  22886. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22887. # vanish in a puff of smoke.
  22888. if test "X${COLLECT_NAMES+set}" != Xset; then
  22889. COLLECT_NAMES=
  22890. export COLLECT_NAMES
  22891. fi
  22892. _LT_EOF
  22893. ;;
  22894. esac
  22895. ltmain="$ac_aux_dir/ltmain.sh"
  22896. # We use sed instead of cat because bash on DJGPP gets confused if
  22897. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22898. # text mode, it properly converts lines to CR/LF. This bash problem
  22899. # is reportedly fixed, but why not run on old versions too?
  22900. sed '$q' "$ltmain" >> "$cfgfile" \
  22901. || (rm -f "$cfgfile"; exit 1)
  22902. if test x"$xsi_shell" = xyes; then
  22903. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22904. func_dirname ()\
  22905. {\
  22906. \ case ${1} in\
  22907. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22908. \ * ) func_dirname_result="${3}" ;;\
  22909. \ esac\
  22910. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22911. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22912. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22913. test 0 -eq $? || _lt_function_replace_fail=:
  22914. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22915. func_basename ()\
  22916. {\
  22917. \ func_basename_result="${1##*/}"\
  22918. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22919. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22920. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22921. test 0 -eq $? || _lt_function_replace_fail=:
  22922. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22923. func_dirname_and_basename ()\
  22924. {\
  22925. \ case ${1} in\
  22926. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22927. \ * ) func_dirname_result="${3}" ;;\
  22928. \ esac\
  22929. \ func_basename_result="${1##*/}"\
  22930. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22931. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22932. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22933. test 0 -eq $? || _lt_function_replace_fail=:
  22934. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22935. func_stripname ()\
  22936. {\
  22937. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22938. \ # positional parameters, so assign one to ordinary parameter first.\
  22939. \ func_stripname_result=${3}\
  22940. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22941. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22942. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22943. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22944. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22945. test 0 -eq $? || _lt_function_replace_fail=:
  22946. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22947. func_split_long_opt ()\
  22948. {\
  22949. \ func_split_long_opt_name=${1%%=*}\
  22950. \ func_split_long_opt_arg=${1#*=}\
  22951. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22952. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22953. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22954. test 0 -eq $? || _lt_function_replace_fail=:
  22955. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22956. func_split_short_opt ()\
  22957. {\
  22958. \ func_split_short_opt_arg=${1#??}\
  22959. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22960. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22961. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22962. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22963. test 0 -eq $? || _lt_function_replace_fail=:
  22964. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22965. func_lo2o ()\
  22966. {\
  22967. \ case ${1} in\
  22968. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22969. \ *) func_lo2o_result=${1} ;;\
  22970. \ esac\
  22971. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22972. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22973. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22974. test 0 -eq $? || _lt_function_replace_fail=:
  22975. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22976. func_xform ()\
  22977. {\
  22978. func_xform_result=${1%.*}.lo\
  22979. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22980. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22981. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22982. test 0 -eq $? || _lt_function_replace_fail=:
  22983. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22984. func_arith ()\
  22985. {\
  22986. func_arith_result=$(( $* ))\
  22987. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22988. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22989. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22990. test 0 -eq $? || _lt_function_replace_fail=:
  22991. sed -e '/^func_len ()$/,/^} # func_len /c\
  22992. func_len ()\
  22993. {\
  22994. func_len_result=${#1}\
  22995. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22996. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22997. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22998. test 0 -eq $? || _lt_function_replace_fail=:
  22999. fi
  23000. if test x"$lt_shell_append" = xyes; then
  23001. sed -e '/^func_append ()$/,/^} # func_append /c\
  23002. func_append ()\
  23003. {\
  23004. eval "${1}+=\\${2}"\
  23005. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23006. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23007. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23008. test 0 -eq $? || _lt_function_replace_fail=:
  23009. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23010. func_append_quoted ()\
  23011. {\
  23012. \ func_quote_for_eval "${2}"\
  23013. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23014. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23015. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23016. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23017. test 0 -eq $? || _lt_function_replace_fail=:
  23018. # Save a `func_append' function call where possible by direct use of '+='
  23019. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23020. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23021. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23022. test 0 -eq $? || _lt_function_replace_fail=:
  23023. else
  23024. # Save a `func_append' function call even when '+=' is not available
  23025. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23026. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23027. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23028. test 0 -eq $? || _lt_function_replace_fail=:
  23029. fi
  23030. if test x"$_lt_function_replace_fail" = x":"; then
  23031. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23032. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23033. fi
  23034. mv -f "$cfgfile" "$ofile" ||
  23035. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23036. chmod +x "$ofile"
  23037. cat <<_LT_EOF >> "$ofile"
  23038. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23039. # The linker used to build libraries.
  23040. LD=$lt_LD_CXX
  23041. # How to create reloadable object files.
  23042. reload_flag=$lt_reload_flag_CXX
  23043. reload_cmds=$lt_reload_cmds_CXX
  23044. # Commands used to build an old-style archive.
  23045. old_archive_cmds=$lt_old_archive_cmds_CXX
  23046. # A language specific compiler.
  23047. CC=$lt_compiler_CXX
  23048. # Is the compiler the GNU compiler?
  23049. with_gcc=$GCC_CXX
  23050. # Compiler flag to turn off builtin functions.
  23051. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23052. # Additional compiler flags for building library objects.
  23053. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23054. # How to pass a linker flag through the compiler.
  23055. wl=$lt_lt_prog_compiler_wl_CXX
  23056. # Compiler flag to prevent dynamic linking.
  23057. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23058. # Does compiler simultaneously support -c and -o options?
  23059. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23060. # Whether or not to add -lc for building shared libraries.
  23061. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23062. # Whether or not to disallow shared libs when runtime libs are static.
  23063. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23064. # Compiler flag to allow reflexive dlopens.
  23065. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23066. # Compiler flag to generate shared objects directly from archives.
  23067. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23068. # Whether the compiler copes with passing no objects directly.
  23069. compiler_needs_object=$lt_compiler_needs_object_CXX
  23070. # Create an old-style archive from a shared archive.
  23071. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23072. # Create a temporary old-style archive to link instead of a shared archive.
  23073. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23074. # Commands used to build a shared archive.
  23075. archive_cmds=$lt_archive_cmds_CXX
  23076. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23077. # Commands used to build a loadable module if different from building
  23078. # a shared archive.
  23079. module_cmds=$lt_module_cmds_CXX
  23080. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23081. # Whether we are building with GNU ld or not.
  23082. with_gnu_ld=$lt_with_gnu_ld_CXX
  23083. # Flag that allows shared libraries with undefined symbols to be built.
  23084. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23085. # Flag that enforces no undefined symbols.
  23086. no_undefined_flag=$lt_no_undefined_flag_CXX
  23087. # Flag to hardcode \$libdir into a binary during linking.
  23088. # This must work even if \$libdir does not exist
  23089. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23090. # Whether we need a single "-rpath" flag with a separated argument.
  23091. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23092. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23093. # DIR into the resulting binary.
  23094. hardcode_direct=$hardcode_direct_CXX
  23095. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23096. # DIR into the resulting binary and the resulting library dependency is
  23097. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23098. # library is relocated.
  23099. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23100. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23101. # into the resulting binary.
  23102. hardcode_minus_L=$hardcode_minus_L_CXX
  23103. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23104. # into the resulting binary.
  23105. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23106. # Set to "yes" if building a shared library automatically hardcodes DIR
  23107. # into the library and all subsequent libraries and executables linked
  23108. # against it.
  23109. hardcode_automatic=$hardcode_automatic_CXX
  23110. # Set to yes if linker adds runtime paths of dependent libraries
  23111. # to runtime path list.
  23112. inherit_rpath=$inherit_rpath_CXX
  23113. # Whether libtool must link a program against all its dependency libraries.
  23114. link_all_deplibs=$link_all_deplibs_CXX
  23115. # Set to "yes" if exported symbols are required.
  23116. always_export_symbols=$always_export_symbols_CXX
  23117. # The commands to list exported symbols.
  23118. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23119. # Symbols that should not be listed in the preloaded symbols.
  23120. exclude_expsyms=$lt_exclude_expsyms_CXX
  23121. # Symbols that must always be exported.
  23122. include_expsyms=$lt_include_expsyms_CXX
  23123. # Commands necessary for linking programs (against libraries) with templates.
  23124. prelink_cmds=$lt_prelink_cmds_CXX
  23125. # Commands necessary for finishing linking programs.
  23126. postlink_cmds=$lt_postlink_cmds_CXX
  23127. # Specify filename containing input files.
  23128. file_list_spec=$lt_file_list_spec_CXX
  23129. # How to hardcode a shared library path into an executable.
  23130. hardcode_action=$hardcode_action_CXX
  23131. # The directories searched by this compiler when creating a shared library.
  23132. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23133. # Dependencies to place before and after the objects being linked to
  23134. # create a shared library.
  23135. predep_objects=$lt_predep_objects_CXX
  23136. postdep_objects=$lt_postdep_objects_CXX
  23137. predeps=$lt_predeps_CXX
  23138. postdeps=$lt_postdeps_CXX
  23139. # The library search path used internally by the compiler when linking
  23140. # a shared library.
  23141. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23142. # ### END LIBTOOL TAG CONFIG: CXX
  23143. _LT_EOF
  23144. ;;
  23145. "sdl2_config":C) chmod a+x sdl2-config ;;
  23146. "summary":C) echo -en "$SUMMARY" ;;
  23147. esac
  23148. done # for ac_tag
  23149. as_fn_exit 0
  23150. _ACEOF
  23151. ac_clean_files=$ac_clean_files_save
  23152. test $ac_write_fail = 0 ||
  23153. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23154. # configure is writing to config.log, and then calls config.status.
  23155. # config.status does its own redirection, appending to config.log.
  23156. # Unfortunately, on DOS this fails, as config.log is still kept open
  23157. # by configure, so config.status won't be able to write to it; its
  23158. # output is simply discarded. So we exec the FD to /dev/null,
  23159. # effectively closing config.log, so it can be properly (re)opened and
  23160. # appended to by config.status. When coming back to configure, we
  23161. # need to make the FD available again.
  23162. if test "$no_create" != yes; then
  23163. ac_cs_success=:
  23164. ac_config_status_args=
  23165. test "$silent" = yes &&
  23166. ac_config_status_args="$ac_config_status_args --quiet"
  23167. exec 5>/dev/null
  23168. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23169. exec 5>>config.log
  23170. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23171. # would make configure fail if this is the last instruction.
  23172. $ac_cs_success || as_fn_exit 1
  23173. fi
  23174. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23175. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23176. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23177. fi