configure 750 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607
  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. EXTRA_LDFLAGS
  582. BUILD_LDFLAGS
  583. EXTRA_CFLAGS
  584. BUILD_CFLAGS
  585. SDLTEST_OBJECTS
  586. SDLMAIN_OBJECTS
  587. VERSION_OBJECTS
  588. OBJECTS
  589. INCLUDE
  590. ac_aux_dir
  591. ENABLE_STATIC_FALSE
  592. ENABLE_STATIC_TRUE
  593. ENABLE_SHARED_FALSE
  594. ENABLE_SHARED_TRUE
  595. SDL_RLD_FLAGS
  596. SDL_STATIC_LIBS
  597. SDL_LIBS
  598. SDL_CFLAGS
  599. DIRECTFBCONFIG
  600. X_EXTRA_LIBS
  601. X_LIBS
  602. X_PRE_LIBS
  603. X_CFLAGS
  604. XMKMF
  605. ARTSCONFIG
  606. PKG_CONFIG
  607. ESD_LIBS
  608. ESD_CFLAGS
  609. ESD_CONFIG
  610. ALSA_LIBS
  611. ALSA_CFLAGS
  612. POW_LIB
  613. LIBOBJS
  614. ALLOCA
  615. WINDRES
  616. SET_MAKE
  617. INSTALL_DATA
  618. INSTALL_SCRIPT
  619. INSTALL_PROGRAM
  620. CXXCPP
  621. ac_ct_CXX
  622. CXXFLAGS
  623. CXX
  624. LT_AGE
  625. LT_REVISION
  626. LT_CURRENT
  627. LT_RELEASE
  628. CPP
  629. OTOOL64
  630. OTOOL
  631. LIPO
  632. NMEDIT
  633. DSYMUTIL
  634. MANIFEST_TOOL
  635. AWK
  636. RANLIB
  637. STRIP
  638. ac_ct_AR
  639. AR
  640. LN_S
  641. NM
  642. ac_ct_DUMPBIN
  643. DUMPBIN
  644. LD
  645. FGREP
  646. EGREP
  647. GREP
  648. SED
  649. OBJEXT
  650. EXEEXT
  651. ac_ct_CC
  652. CPPFLAGS
  653. LDFLAGS
  654. CFLAGS
  655. CC
  656. host_os
  657. host_vendor
  658. host_cpu
  659. host
  660. build_os
  661. build_vendor
  662. build_cpu
  663. build
  664. LIBTOOL
  665. OBJDUMP
  666. DLLTOOL
  667. AS
  668. SDL_VERSION
  669. SDL_BINARY_AGE
  670. SDL_INTERFACE_AGE
  671. SDL_MICRO_VERSION
  672. SDL_MINOR_VERSION
  673. SDL_MAJOR_VERSION
  674. target_alias
  675. host_alias
  676. build_alias
  677. LIBS
  678. ECHO_T
  679. ECHO_N
  680. ECHO_C
  681. DEFS
  682. mandir
  683. localedir
  684. libdir
  685. psdir
  686. pdfdir
  687. dvidir
  688. htmldir
  689. infodir
  690. docdir
  691. oldincludedir
  692. includedir
  693. localstatedir
  694. sharedstatedir
  695. sysconfdir
  696. datadir
  697. datarootdir
  698. libexecdir
  699. sbindir
  700. bindir
  701. program_transform_name
  702. prefix
  703. exec_prefix
  704. PACKAGE_URL
  705. PACKAGE_BUGREPORT
  706. PACKAGE_STRING
  707. PACKAGE_VERSION
  708. PACKAGE_TARNAME
  709. PACKAGE_NAME
  710. PATH_SEPARATOR
  711. SHELL'
  712. ac_subst_files=''
  713. ac_user_opts='
  714. enable_option_checking
  715. enable_shared
  716. enable_static
  717. with_pic
  718. enable_fast_install
  719. with_gnu_ld
  720. with_sysroot
  721. enable_libtool_lock
  722. enable_assertions
  723. enable_dependency_tracking
  724. enable_libc
  725. enable_gcc_atomics
  726. enable_atomic
  727. enable_audio
  728. enable_video
  729. enable_render
  730. enable_events
  731. enable_joystick
  732. enable_haptic
  733. enable_power
  734. enable_filesystem
  735. enable_threads
  736. enable_timers
  737. enable_file
  738. enable_loadso
  739. enable_cpuinfo
  740. enable_assembly
  741. enable_ssemath
  742. enable_mmx
  743. enable_3dnow
  744. enable_sse
  745. enable_sse2
  746. enable_altivec
  747. enable_oss
  748. enable_alsa
  749. with_alsa_prefix
  750. with_alsa_inc_prefix
  751. enable_alsatest
  752. enable_alsa_shared
  753. enable_esd
  754. with_esd_prefix
  755. with_esd_exec_prefix
  756. enable_esdtest
  757. enable_esd_shared
  758. enable_pulseaudio
  759. enable_pulseaudio_shared
  760. enable_arts
  761. enable_arts_shared
  762. enable_nas
  763. enable_nas_shared
  764. enable_sndio
  765. enable_sndio_shared
  766. enable_diskaudio
  767. enable_dummyaudio
  768. enable_video_wayland
  769. enable_video_wayland_qt_touch
  770. enable_wayland_shared
  771. enable_video_x11
  772. with_x
  773. enable_x11_shared
  774. enable_video_x11_xcursor
  775. enable_video_x11_xinerama
  776. enable_video_x11_xinput
  777. enable_video_x11_xrandr
  778. enable_video_x11_scrnsaver
  779. enable_video_x11_xshape
  780. enable_video_x11_vm
  781. enable_video_cocoa
  782. enable_video_directfb
  783. enable_directfb_shared
  784. enable_fusionsound
  785. enable_fusionsound_shared
  786. enable_video_dummy
  787. enable_video_opengl
  788. enable_video_opengles
  789. enable_libudev
  790. enable_dbus
  791. enable_input_tslib
  792. enable_pthreads
  793. enable_pthread_sem
  794. enable_directx
  795. enable_sdl_dlopen
  796. enable_clock_gettime
  797. enable_rpath
  798. enable_render_d3d
  799. '
  800. ac_precious_vars='build_alias
  801. host_alias
  802. target_alias
  803. CC
  804. CFLAGS
  805. LDFLAGS
  806. LIBS
  807. CPPFLAGS
  808. CPP
  809. CXX
  810. CXXFLAGS
  811. CCC
  812. CXXCPP
  813. XMKMF'
  814. # Initialize some variables set by options.
  815. ac_init_help=
  816. ac_init_version=false
  817. ac_unrecognized_opts=
  818. ac_unrecognized_sep=
  819. # The variables have the same names as the options, with
  820. # dashes changed to underlines.
  821. cache_file=/dev/null
  822. exec_prefix=NONE
  823. no_create=
  824. no_recursion=
  825. prefix=NONE
  826. program_prefix=NONE
  827. program_suffix=NONE
  828. program_transform_name=s,x,x,
  829. silent=
  830. site=
  831. srcdir=
  832. verbose=
  833. x_includes=NONE
  834. x_libraries=NONE
  835. # Installation directory options.
  836. # These are left unexpanded so users can "make install exec_prefix=/foo"
  837. # and all the variables that are supposed to be based on exec_prefix
  838. # by default will actually change.
  839. # Use braces instead of parens because sh, perl, etc. also accept them.
  840. # (The list follows the same order as the GNU Coding Standards.)
  841. bindir='${exec_prefix}/bin'
  842. sbindir='${exec_prefix}/sbin'
  843. libexecdir='${exec_prefix}/libexec'
  844. datarootdir='${prefix}/share'
  845. datadir='${datarootdir}'
  846. sysconfdir='${prefix}/etc'
  847. sharedstatedir='${prefix}/com'
  848. localstatedir='${prefix}/var'
  849. includedir='${prefix}/include'
  850. oldincludedir='/usr/include'
  851. docdir='${datarootdir}/doc/${PACKAGE}'
  852. infodir='${datarootdir}/info'
  853. htmldir='${docdir}'
  854. dvidir='${docdir}'
  855. pdfdir='${docdir}'
  856. psdir='${docdir}'
  857. libdir='${exec_prefix}/lib'
  858. localedir='${datarootdir}/locale'
  859. mandir='${datarootdir}/man'
  860. ac_prev=
  861. ac_dashdash=
  862. for ac_option
  863. do
  864. # If the previous option needs an argument, assign it.
  865. if test -n "$ac_prev"; then
  866. eval $ac_prev=\$ac_option
  867. ac_prev=
  868. continue
  869. fi
  870. case $ac_option in
  871. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  872. *=) ac_optarg= ;;
  873. *) ac_optarg=yes ;;
  874. esac
  875. # Accept the important Cygnus configure options, so we can diagnose typos.
  876. case $ac_dashdash$ac_option in
  877. --)
  878. ac_dashdash=yes ;;
  879. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  880. ac_prev=bindir ;;
  881. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  882. bindir=$ac_optarg ;;
  883. -build | --build | --buil | --bui | --bu)
  884. ac_prev=build_alias ;;
  885. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  886. build_alias=$ac_optarg ;;
  887. -cache-file | --cache-file | --cache-fil | --cache-fi \
  888. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  889. ac_prev=cache_file ;;
  890. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  891. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  892. cache_file=$ac_optarg ;;
  893. --config-cache | -C)
  894. cache_file=config.cache ;;
  895. -datadir | --datadir | --datadi | --datad)
  896. ac_prev=datadir ;;
  897. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  898. datadir=$ac_optarg ;;
  899. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  900. | --dataroo | --dataro | --datar)
  901. ac_prev=datarootdir ;;
  902. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  903. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  904. datarootdir=$ac_optarg ;;
  905. -disable-* | --disable-*)
  906. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  907. # Reject names that are not valid shell variable names.
  908. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  909. as_fn_error $? "invalid feature name: $ac_useropt"
  910. ac_useropt_orig=$ac_useropt
  911. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  912. case $ac_user_opts in
  913. *"
  914. "enable_$ac_useropt"
  915. "*) ;;
  916. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  917. ac_unrecognized_sep=', ';;
  918. esac
  919. eval enable_$ac_useropt=no ;;
  920. -docdir | --docdir | --docdi | --doc | --do)
  921. ac_prev=docdir ;;
  922. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  923. docdir=$ac_optarg ;;
  924. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  925. ac_prev=dvidir ;;
  926. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  927. dvidir=$ac_optarg ;;
  928. -enable-* | --enable-*)
  929. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  930. # Reject names that are not valid shell variable names.
  931. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  932. as_fn_error $? "invalid feature name: $ac_useropt"
  933. ac_useropt_orig=$ac_useropt
  934. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  935. case $ac_user_opts in
  936. *"
  937. "enable_$ac_useropt"
  938. "*) ;;
  939. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  940. ac_unrecognized_sep=', ';;
  941. esac
  942. eval enable_$ac_useropt=\$ac_optarg ;;
  943. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  944. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  945. | --exec | --exe | --ex)
  946. ac_prev=exec_prefix ;;
  947. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  948. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  949. | --exec=* | --exe=* | --ex=*)
  950. exec_prefix=$ac_optarg ;;
  951. -gas | --gas | --ga | --g)
  952. # Obsolete; use --with-gas.
  953. with_gas=yes ;;
  954. -help | --help | --hel | --he | -h)
  955. ac_init_help=long ;;
  956. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  957. ac_init_help=recursive ;;
  958. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  959. ac_init_help=short ;;
  960. -host | --host | --hos | --ho)
  961. ac_prev=host_alias ;;
  962. -host=* | --host=* | --hos=* | --ho=*)
  963. host_alias=$ac_optarg ;;
  964. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  965. ac_prev=htmldir ;;
  966. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  967. | --ht=*)
  968. htmldir=$ac_optarg ;;
  969. -includedir | --includedir | --includedi | --included | --include \
  970. | --includ | --inclu | --incl | --inc)
  971. ac_prev=includedir ;;
  972. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  973. | --includ=* | --inclu=* | --incl=* | --inc=*)
  974. includedir=$ac_optarg ;;
  975. -infodir | --infodir | --infodi | --infod | --info | --inf)
  976. ac_prev=infodir ;;
  977. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  978. infodir=$ac_optarg ;;
  979. -libdir | --libdir | --libdi | --libd)
  980. ac_prev=libdir ;;
  981. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  982. libdir=$ac_optarg ;;
  983. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  984. | --libexe | --libex | --libe)
  985. ac_prev=libexecdir ;;
  986. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  987. | --libexe=* | --libex=* | --libe=*)
  988. libexecdir=$ac_optarg ;;
  989. -localedir | --localedir | --localedi | --localed | --locale)
  990. ac_prev=localedir ;;
  991. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  992. localedir=$ac_optarg ;;
  993. -localstatedir | --localstatedir | --localstatedi | --localstated \
  994. | --localstate | --localstat | --localsta | --localst | --locals)
  995. ac_prev=localstatedir ;;
  996. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  997. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  998. localstatedir=$ac_optarg ;;
  999. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1000. ac_prev=mandir ;;
  1001. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1002. mandir=$ac_optarg ;;
  1003. -nfp | --nfp | --nf)
  1004. # Obsolete; use --without-fp.
  1005. with_fp=no ;;
  1006. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1007. | --no-cr | --no-c | -n)
  1008. no_create=yes ;;
  1009. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1010. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1011. no_recursion=yes ;;
  1012. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1013. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1014. | --oldin | --oldi | --old | --ol | --o)
  1015. ac_prev=oldincludedir ;;
  1016. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1017. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1018. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1019. oldincludedir=$ac_optarg ;;
  1020. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1021. ac_prev=prefix ;;
  1022. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1023. prefix=$ac_optarg ;;
  1024. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1025. | --program-pre | --program-pr | --program-p)
  1026. ac_prev=program_prefix ;;
  1027. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1028. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1029. program_prefix=$ac_optarg ;;
  1030. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1031. | --program-suf | --program-su | --program-s)
  1032. ac_prev=program_suffix ;;
  1033. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1034. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1035. program_suffix=$ac_optarg ;;
  1036. -program-transform-name | --program-transform-name \
  1037. | --program-transform-nam | --program-transform-na \
  1038. | --program-transform-n | --program-transform- \
  1039. | --program-transform | --program-transfor \
  1040. | --program-transfo | --program-transf \
  1041. | --program-trans | --program-tran \
  1042. | --progr-tra | --program-tr | --program-t)
  1043. ac_prev=program_transform_name ;;
  1044. -program-transform-name=* | --program-transform-name=* \
  1045. | --program-transform-nam=* | --program-transform-na=* \
  1046. | --program-transform-n=* | --program-transform-=* \
  1047. | --program-transform=* | --program-transfor=* \
  1048. | --program-transfo=* | --program-transf=* \
  1049. | --program-trans=* | --program-tran=* \
  1050. | --progr-tra=* | --program-tr=* | --program-t=*)
  1051. program_transform_name=$ac_optarg ;;
  1052. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1053. ac_prev=pdfdir ;;
  1054. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1055. pdfdir=$ac_optarg ;;
  1056. -psdir | --psdir | --psdi | --psd | --ps)
  1057. ac_prev=psdir ;;
  1058. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1059. psdir=$ac_optarg ;;
  1060. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1061. | -silent | --silent | --silen | --sile | --sil)
  1062. silent=yes ;;
  1063. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1064. ac_prev=sbindir ;;
  1065. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1066. | --sbi=* | --sb=*)
  1067. sbindir=$ac_optarg ;;
  1068. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1069. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1070. | --sharedst | --shareds | --shared | --share | --shar \
  1071. | --sha | --sh)
  1072. ac_prev=sharedstatedir ;;
  1073. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1074. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1075. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1076. | --sha=* | --sh=*)
  1077. sharedstatedir=$ac_optarg ;;
  1078. -site | --site | --sit)
  1079. ac_prev=site ;;
  1080. -site=* | --site=* | --sit=*)
  1081. site=$ac_optarg ;;
  1082. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1083. ac_prev=srcdir ;;
  1084. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1085. srcdir=$ac_optarg ;;
  1086. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1087. | --syscon | --sysco | --sysc | --sys | --sy)
  1088. ac_prev=sysconfdir ;;
  1089. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1090. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1091. sysconfdir=$ac_optarg ;;
  1092. -target | --target | --targe | --targ | --tar | --ta | --t)
  1093. ac_prev=target_alias ;;
  1094. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1095. target_alias=$ac_optarg ;;
  1096. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1097. verbose=yes ;;
  1098. -version | --version | --versio | --versi | --vers | -V)
  1099. ac_init_version=: ;;
  1100. -with-* | --with-*)
  1101. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1102. # Reject names that are not valid shell variable names.
  1103. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1104. as_fn_error $? "invalid package name: $ac_useropt"
  1105. ac_useropt_orig=$ac_useropt
  1106. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1107. case $ac_user_opts in
  1108. *"
  1109. "with_$ac_useropt"
  1110. "*) ;;
  1111. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1112. ac_unrecognized_sep=', ';;
  1113. esac
  1114. eval with_$ac_useropt=\$ac_optarg ;;
  1115. -without-* | --without-*)
  1116. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1117. # Reject names that are not valid shell variable names.
  1118. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1119. as_fn_error $? "invalid package name: $ac_useropt"
  1120. ac_useropt_orig=$ac_useropt
  1121. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1122. case $ac_user_opts in
  1123. *"
  1124. "with_$ac_useropt"
  1125. "*) ;;
  1126. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1127. ac_unrecognized_sep=', ';;
  1128. esac
  1129. eval with_$ac_useropt=no ;;
  1130. --x)
  1131. # Obsolete; use --with-x.
  1132. with_x=yes ;;
  1133. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1134. | --x-incl | --x-inc | --x-in | --x-i)
  1135. ac_prev=x_includes ;;
  1136. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1137. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1138. x_includes=$ac_optarg ;;
  1139. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1140. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1141. ac_prev=x_libraries ;;
  1142. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1143. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1144. x_libraries=$ac_optarg ;;
  1145. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1146. Try \`$0 --help' for more information"
  1147. ;;
  1148. *=*)
  1149. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1150. # Reject names that are not valid shell variable names.
  1151. case $ac_envvar in #(
  1152. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1153. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1154. esac
  1155. eval $ac_envvar=\$ac_optarg
  1156. export $ac_envvar ;;
  1157. *)
  1158. # FIXME: should be removed in autoconf 3.0.
  1159. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1160. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1161. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1162. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1163. ;;
  1164. esac
  1165. done
  1166. if test -n "$ac_prev"; then
  1167. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1168. as_fn_error $? "missing argument to $ac_option"
  1169. fi
  1170. if test -n "$ac_unrecognized_opts"; then
  1171. case $enable_option_checking in
  1172. no) ;;
  1173. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1174. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1175. esac
  1176. fi
  1177. # Check all directory arguments for consistency.
  1178. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1179. datadir sysconfdir sharedstatedir localstatedir includedir \
  1180. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1181. libdir localedir mandir
  1182. do
  1183. eval ac_val=\$$ac_var
  1184. # Remove trailing slashes.
  1185. case $ac_val in
  1186. */ )
  1187. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1188. eval $ac_var=\$ac_val;;
  1189. esac
  1190. # Be sure to have absolute directory names.
  1191. case $ac_val in
  1192. [\\/$]* | ?:[\\/]* ) continue;;
  1193. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1194. esac
  1195. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1196. done
  1197. # There might be people who depend on the old broken behavior: `$host'
  1198. # used to hold the argument of --host etc.
  1199. # FIXME: To remove some day.
  1200. build=$build_alias
  1201. host=$host_alias
  1202. target=$target_alias
  1203. # FIXME: To remove some day.
  1204. if test "x$host_alias" != x; then
  1205. if test "x$build_alias" = x; then
  1206. cross_compiling=maybe
  1207. elif test "x$build_alias" != "x$host_alias"; then
  1208. cross_compiling=yes
  1209. fi
  1210. fi
  1211. ac_tool_prefix=
  1212. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1213. test "$silent" = yes && exec 6>/dev/null
  1214. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1215. ac_ls_di=`ls -di .` &&
  1216. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1217. as_fn_error $? "working directory cannot be determined"
  1218. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1219. as_fn_error $? "pwd does not report name of working directory"
  1220. # Find the source files, if location was not specified.
  1221. if test -z "$srcdir"; then
  1222. ac_srcdir_defaulted=yes
  1223. # Try the directory containing this script, then the parent directory.
  1224. ac_confdir=`$as_dirname -- "$as_myself" ||
  1225. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1226. X"$as_myself" : 'X\(//\)[^/]' \| \
  1227. X"$as_myself" : 'X\(//\)$' \| \
  1228. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1229. $as_echo X"$as_myself" |
  1230. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1231. s//\1/
  1232. q
  1233. }
  1234. /^X\(\/\/\)[^/].*/{
  1235. s//\1/
  1236. q
  1237. }
  1238. /^X\(\/\/\)$/{
  1239. s//\1/
  1240. q
  1241. }
  1242. /^X\(\/\).*/{
  1243. s//\1/
  1244. q
  1245. }
  1246. s/.*/./; q'`
  1247. srcdir=$ac_confdir
  1248. if test ! -r "$srcdir/$ac_unique_file"; then
  1249. srcdir=..
  1250. fi
  1251. else
  1252. ac_srcdir_defaulted=no
  1253. fi
  1254. if test ! -r "$srcdir/$ac_unique_file"; then
  1255. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1256. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1257. fi
  1258. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1259. ac_abs_confdir=`(
  1260. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1261. pwd)`
  1262. # When building in place, set srcdir=.
  1263. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1264. srcdir=.
  1265. fi
  1266. # Remove unnecessary trailing slashes from srcdir.
  1267. # Double slashes in file names in object file debugging info
  1268. # mess up M-x gdb in Emacs.
  1269. case $srcdir in
  1270. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1271. esac
  1272. for ac_var in $ac_precious_vars; do
  1273. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1274. eval ac_env_${ac_var}_value=\$${ac_var}
  1275. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1276. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1277. done
  1278. #
  1279. # Report the --help message.
  1280. #
  1281. if test "$ac_init_help" = "long"; then
  1282. # Omit some internal or obsolete options to make the list less imposing.
  1283. # This message is too long to be a string in the A/UX 3.1 sh.
  1284. cat <<_ACEOF
  1285. \`configure' configures this package to adapt to many kinds of systems.
  1286. Usage: $0 [OPTION]... [VAR=VALUE]...
  1287. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1288. VAR=VALUE. See below for descriptions of some of the useful variables.
  1289. Defaults for the options are specified in brackets.
  1290. Configuration:
  1291. -h, --help display this help and exit
  1292. --help=short display options specific to this package
  1293. --help=recursive display the short help of all the included packages
  1294. -V, --version display version information and exit
  1295. -q, --quiet, --silent do not print \`checking ...' messages
  1296. --cache-file=FILE cache test results in FILE [disabled]
  1297. -C, --config-cache alias for \`--cache-file=config.cache'
  1298. -n, --no-create do not create output files
  1299. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1300. Installation directories:
  1301. --prefix=PREFIX install architecture-independent files in PREFIX
  1302. [$ac_default_prefix]
  1303. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1304. [PREFIX]
  1305. By default, \`make install' will install all the files in
  1306. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1307. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1308. for instance \`--prefix=\$HOME'.
  1309. For better control, use the options below.
  1310. Fine tuning of the installation directories:
  1311. --bindir=DIR user executables [EPREFIX/bin]
  1312. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1313. --libexecdir=DIR program executables [EPREFIX/libexec]
  1314. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1315. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1316. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1317. --libdir=DIR object code libraries [EPREFIX/lib]
  1318. --includedir=DIR C header files [PREFIX/include]
  1319. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1320. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1321. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1322. --infodir=DIR info documentation [DATAROOTDIR/info]
  1323. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1324. --mandir=DIR man documentation [DATAROOTDIR/man]
  1325. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1326. --htmldir=DIR html documentation [DOCDIR]
  1327. --dvidir=DIR dvi documentation [DOCDIR]
  1328. --pdfdir=DIR pdf documentation [DOCDIR]
  1329. --psdir=DIR ps documentation [DOCDIR]
  1330. _ACEOF
  1331. cat <<\_ACEOF
  1332. X features:
  1333. --x-includes=DIR X include files are in DIR
  1334. --x-libraries=DIR X library files are in DIR
  1335. System types:
  1336. --build=BUILD configure for building on BUILD [guessed]
  1337. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1338. _ACEOF
  1339. fi
  1340. if test -n "$ac_init_help"; then
  1341. cat <<\_ACEOF
  1342. Optional Features:
  1343. --disable-option-checking ignore unrecognized --enable/--with options
  1344. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1345. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1346. --enable-shared[=PKGS] build shared libraries [default=yes]
  1347. --enable-static[=PKGS] build static libraries [default=yes]
  1348. --enable-fast-install[=PKGS]
  1349. optimize for fast installation [default=yes]
  1350. --disable-libtool-lock avoid locking (might break parallel builds)
  1351. --enable-assertions Enable internal sanity checks
  1352. (auto/disabled/release/enabled/paranoid)
  1353. [[default=auto]]
  1354. --enable-dependency-tracking
  1355. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1356. --enable-libc Use the system C library [[default=yes]]
  1357. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1358. --enable-atomic Enable the atomic operations subsystem
  1359. [[default=yes]]
  1360. --enable-audio Enable the audio subsystem [[default=yes]]
  1361. --enable-video Enable the video subsystem [[default=yes]]
  1362. --enable-render Enable the render subsystem [[default=yes]]
  1363. --enable-events Enable the events subsystem [[default=yes]]
  1364. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1365. --enable-haptic Enable the haptic (force feedback) subsystem
  1366. [[default=yes]]
  1367. --enable-power Enable the power subsystem [[default=yes]]
  1368. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1369. --enable-threads Enable the threading subsystem [[default=yes]]
  1370. --enable-timers Enable the timer subsystem [[default=yes]]
  1371. --enable-file Enable the file subsystem [[default=yes]]
  1372. --enable-loadso Enable the shared object loading subsystem
  1373. [[default=yes]]
  1374. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1375. --enable-assembly Enable assembly routines [[default=yes]]
  1376. --enable-ssemath Allow GCC to use SSE floating point math
  1377. [[default=no]]
  1378. --enable-mmx use MMX assembly routines [[default=yes]]
  1379. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1380. --enable-sse use SSE assembly routines [[default=yes]]
  1381. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1382. --enable-altivec use Altivec assembly routines [[default=yes]]
  1383. --enable-oss support the OSS audio API [[default=maybe]]
  1384. --enable-alsa support the ALSA audio API [[default=yes]]
  1385. --disable-alsatest Do not try to compile and run a test Alsa program
  1386. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1387. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1388. --disable-esdtest Do not try to compile and run a test ESD program
  1389. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1390. --enable-pulseaudio use PulseAudio [[default=yes]]
  1391. --enable-pulseaudio-shared
  1392. dynamically load PulseAudio support [[default=yes]]
  1393. --enable-arts support the Analog Real Time Synthesizer
  1394. [[default=yes]]
  1395. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1396. --enable-nas support the NAS audio API [[default=yes]]
  1397. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1398. --enable-sndio support the sndio audio API [[default=yes]]
  1399. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1400. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1401. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1402. --enable-video-wayland use Wayland video driver [[default=yes]]
  1403. --enable-video-wayland-qt-touch
  1404. QtWayland server support for Wayland video driver
  1405. [[default=yes]]
  1406. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1407. --enable-video-x11 use X11 video driver [[default=yes]]
  1408. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1409. --enable-video-x11-xcursor
  1410. enable X11 Xcursor support [[default=yes]]
  1411. --enable-video-x11-xinerama
  1412. enable X11 Xinerama support [[default=yes]]
  1413. --enable-video-x11-xinput
  1414. enable X11 XInput extension for manymouse, tablets,
  1415. etc [[default=yes]]
  1416. --enable-video-x11-xrandr
  1417. enable X11 Xrandr extension for fullscreen
  1418. [[default=yes]]
  1419. --enable-video-x11-scrnsaver
  1420. enable X11 screensaver extension [[default=yes]]
  1421. --enable-video-x11-xshape
  1422. enable X11 XShape support [[default=yes]]
  1423. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1424. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1425. --enable-video-directfb use DirectFB video driver [[default=no]]
  1426. --enable-directfb-shared
  1427. dynamically load directfb support [[default=yes]]
  1428. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1429. --enable-fusionsound-shared
  1430. dynamically load fusionsound audio support
  1431. [[default=yes]]
  1432. --enable-video-dummy use dummy video driver [[default=yes]]
  1433. --enable-video-opengl include OpenGL support [[default=yes]]
  1434. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1435. --enable-libudev enable libudev support [[default=yes]]
  1436. --enable-dbus enable D-Bus support [[default=yes]]
  1437. --enable-input-tslib use the Touchscreen library for input
  1438. [[default=yes]]
  1439. --enable-pthreads use POSIX threads for multi-threading
  1440. [[default=yes]]
  1441. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1442. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1443. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1444. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1445. UNIX [[default=yes]]
  1446. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1447. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1448. Optional Packages:
  1449. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1450. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1451. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1452. both]
  1453. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1454. --with-sysroot=DIR Search for dependent libraries within DIR
  1455. (or the compiler's sysroot if not specified).
  1456. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1457. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1458. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1459. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1460. --with-x use the X Window System
  1461. Some influential environment variables:
  1462. CC C compiler command
  1463. CFLAGS C compiler flags
  1464. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1465. nonstandard directory <lib dir>
  1466. LIBS libraries to pass to the linker, e.g. -l<library>
  1467. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1468. you have headers in a nonstandard directory <include dir>
  1469. CPP C preprocessor
  1470. CXX C++ compiler command
  1471. CXXFLAGS C++ compiler flags
  1472. CXXCPP C++ preprocessor
  1473. XMKMF Path to xmkmf, Makefile generator for X Window System
  1474. Use these variables to override the choices made by `configure' or to help
  1475. it to find libraries and programs with nonstandard names/locations.
  1476. Report bugs to the package provider.
  1477. _ACEOF
  1478. ac_status=$?
  1479. fi
  1480. if test "$ac_init_help" = "recursive"; then
  1481. # If there are subdirs, report their specific --help.
  1482. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1483. test -d "$ac_dir" ||
  1484. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1485. continue
  1486. ac_builddir=.
  1487. case "$ac_dir" in
  1488. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1489. *)
  1490. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1491. # A ".." for each directory in $ac_dir_suffix.
  1492. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1493. case $ac_top_builddir_sub in
  1494. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1495. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1496. esac ;;
  1497. esac
  1498. ac_abs_top_builddir=$ac_pwd
  1499. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1500. # for backward compatibility:
  1501. ac_top_builddir=$ac_top_build_prefix
  1502. case $srcdir in
  1503. .) # We are building in place.
  1504. ac_srcdir=.
  1505. ac_top_srcdir=$ac_top_builddir_sub
  1506. ac_abs_top_srcdir=$ac_pwd ;;
  1507. [\\/]* | ?:[\\/]* ) # Absolute name.
  1508. ac_srcdir=$srcdir$ac_dir_suffix;
  1509. ac_top_srcdir=$srcdir
  1510. ac_abs_top_srcdir=$srcdir ;;
  1511. *) # Relative name.
  1512. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1513. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1514. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1515. esac
  1516. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1517. cd "$ac_dir" || { ac_status=$?; continue; }
  1518. # Check for guested configure.
  1519. if test -f "$ac_srcdir/configure.gnu"; then
  1520. echo &&
  1521. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1522. elif test -f "$ac_srcdir/configure"; then
  1523. echo &&
  1524. $SHELL "$ac_srcdir/configure" --help=recursive
  1525. else
  1526. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1527. fi || ac_status=$?
  1528. cd "$ac_pwd" || { ac_status=$?; break; }
  1529. done
  1530. fi
  1531. test -n "$ac_init_help" && exit $ac_status
  1532. if $ac_init_version; then
  1533. cat <<\_ACEOF
  1534. configure
  1535. generated by GNU Autoconf 2.69
  1536. Copyright (C) 2012 Free Software Foundation, Inc.
  1537. This configure script is free software; the Free Software Foundation
  1538. gives unlimited permission to copy, distribute and modify it.
  1539. _ACEOF
  1540. exit
  1541. fi
  1542. ## ------------------------ ##
  1543. ## Autoconf initialization. ##
  1544. ## ------------------------ ##
  1545. # ac_fn_c_try_compile LINENO
  1546. # --------------------------
  1547. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1548. ac_fn_c_try_compile ()
  1549. {
  1550. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1551. rm -f conftest.$ac_objext
  1552. if { { ac_try="$ac_compile"
  1553. case "(($ac_try" in
  1554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1555. *) ac_try_echo=$ac_try;;
  1556. esac
  1557. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1558. $as_echo "$ac_try_echo"; } >&5
  1559. (eval "$ac_compile") 2>conftest.err
  1560. ac_status=$?
  1561. if test -s conftest.err; then
  1562. grep -v '^ *+' conftest.err >conftest.er1
  1563. cat conftest.er1 >&5
  1564. mv -f conftest.er1 conftest.err
  1565. fi
  1566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1567. test $ac_status = 0; } && {
  1568. test -z "$ac_c_werror_flag" ||
  1569. test ! -s conftest.err
  1570. } && test -s conftest.$ac_objext; then :
  1571. ac_retval=0
  1572. else
  1573. $as_echo "$as_me: failed program was:" >&5
  1574. sed 's/^/| /' conftest.$ac_ext >&5
  1575. ac_retval=1
  1576. fi
  1577. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1578. as_fn_set_status $ac_retval
  1579. } # ac_fn_c_try_compile
  1580. # ac_fn_c_try_link LINENO
  1581. # -----------------------
  1582. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1583. ac_fn_c_try_link ()
  1584. {
  1585. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1586. rm -f conftest.$ac_objext conftest$ac_exeext
  1587. if { { ac_try="$ac_link"
  1588. case "(($ac_try" in
  1589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1590. *) ac_try_echo=$ac_try;;
  1591. esac
  1592. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1593. $as_echo "$ac_try_echo"; } >&5
  1594. (eval "$ac_link") 2>conftest.err
  1595. ac_status=$?
  1596. if test -s conftest.err; then
  1597. grep -v '^ *+' conftest.err >conftest.er1
  1598. cat conftest.er1 >&5
  1599. mv -f conftest.er1 conftest.err
  1600. fi
  1601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1602. test $ac_status = 0; } && {
  1603. test -z "$ac_c_werror_flag" ||
  1604. test ! -s conftest.err
  1605. } && test -s conftest$ac_exeext && {
  1606. test "$cross_compiling" = yes ||
  1607. test -x conftest$ac_exeext
  1608. }; then :
  1609. ac_retval=0
  1610. else
  1611. $as_echo "$as_me: failed program was:" >&5
  1612. sed 's/^/| /' conftest.$ac_ext >&5
  1613. ac_retval=1
  1614. fi
  1615. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1616. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1617. # interfere with the next link command; also delete a directory that is
  1618. # left behind by Apple's compiler. We do this before executing the actions.
  1619. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1620. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1621. as_fn_set_status $ac_retval
  1622. } # ac_fn_c_try_link
  1623. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1624. # -------------------------------------------------------
  1625. # Tests whether HEADER exists and can be compiled using the include files in
  1626. # INCLUDES, setting the cache variable VAR accordingly.
  1627. ac_fn_c_check_header_compile ()
  1628. {
  1629. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1631. $as_echo_n "checking for $2... " >&6; }
  1632. if eval \${$3+:} false; then :
  1633. $as_echo_n "(cached) " >&6
  1634. else
  1635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1636. /* end confdefs.h. */
  1637. $4
  1638. #include <$2>
  1639. _ACEOF
  1640. if ac_fn_c_try_compile "$LINENO"; then :
  1641. eval "$3=yes"
  1642. else
  1643. eval "$3=no"
  1644. fi
  1645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1646. fi
  1647. eval ac_res=\$$3
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1649. $as_echo "$ac_res" >&6; }
  1650. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1651. } # ac_fn_c_check_header_compile
  1652. # ac_fn_c_try_cpp LINENO
  1653. # ----------------------
  1654. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1655. ac_fn_c_try_cpp ()
  1656. {
  1657. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1658. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1659. case "(($ac_try" in
  1660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1661. *) ac_try_echo=$ac_try;;
  1662. esac
  1663. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1664. $as_echo "$ac_try_echo"; } >&5
  1665. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1666. ac_status=$?
  1667. if test -s conftest.err; then
  1668. grep -v '^ *+' conftest.err >conftest.er1
  1669. cat conftest.er1 >&5
  1670. mv -f conftest.er1 conftest.err
  1671. fi
  1672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1673. test $ac_status = 0; } > conftest.i && {
  1674. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1675. test ! -s conftest.err
  1676. }; then :
  1677. ac_retval=0
  1678. else
  1679. $as_echo "$as_me: failed program was:" >&5
  1680. sed 's/^/| /' conftest.$ac_ext >&5
  1681. ac_retval=1
  1682. fi
  1683. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1684. as_fn_set_status $ac_retval
  1685. } # ac_fn_c_try_cpp
  1686. # ac_fn_c_try_run LINENO
  1687. # ----------------------
  1688. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1689. # that executables *can* be run.
  1690. ac_fn_c_try_run ()
  1691. {
  1692. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1693. if { { ac_try="$ac_link"
  1694. case "(($ac_try" in
  1695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1696. *) ac_try_echo=$ac_try;;
  1697. esac
  1698. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1699. $as_echo "$ac_try_echo"; } >&5
  1700. (eval "$ac_link") 2>&5
  1701. ac_status=$?
  1702. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1703. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1704. { { case "(($ac_try" in
  1705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1706. *) ac_try_echo=$ac_try;;
  1707. esac
  1708. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1709. $as_echo "$ac_try_echo"; } >&5
  1710. (eval "$ac_try") 2>&5
  1711. ac_status=$?
  1712. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1713. test $ac_status = 0; }; }; then :
  1714. ac_retval=0
  1715. else
  1716. $as_echo "$as_me: program exited with status $ac_status" >&5
  1717. $as_echo "$as_me: failed program was:" >&5
  1718. sed 's/^/| /' conftest.$ac_ext >&5
  1719. ac_retval=$ac_status
  1720. fi
  1721. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1722. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1723. as_fn_set_status $ac_retval
  1724. } # ac_fn_c_try_run
  1725. # ac_fn_c_check_func LINENO FUNC VAR
  1726. # ----------------------------------
  1727. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1728. ac_fn_c_check_func ()
  1729. {
  1730. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1732. $as_echo_n "checking for $2... " >&6; }
  1733. if eval \${$3+:} false; then :
  1734. $as_echo_n "(cached) " >&6
  1735. else
  1736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1737. /* end confdefs.h. */
  1738. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1739. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1740. #define $2 innocuous_$2
  1741. /* System header to define __stub macros and hopefully few prototypes,
  1742. which can conflict with char $2 (); below.
  1743. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1744. <limits.h> exists even on freestanding compilers. */
  1745. #ifdef __STDC__
  1746. # include <limits.h>
  1747. #else
  1748. # include <assert.h>
  1749. #endif
  1750. #undef $2
  1751. /* Override any GCC internal prototype to avoid an error.
  1752. Use char because int might match the return type of a GCC
  1753. builtin and then its argument prototype would still apply. */
  1754. #ifdef __cplusplus
  1755. extern "C"
  1756. #endif
  1757. char $2 ();
  1758. /* The GNU C library defines this for functions which it implements
  1759. to always fail with ENOSYS. Some functions are actually named
  1760. something starting with __ and the normal name is an alias. */
  1761. #if defined __stub_$2 || defined __stub___$2
  1762. choke me
  1763. #endif
  1764. int
  1765. main ()
  1766. {
  1767. return $2 ();
  1768. ;
  1769. return 0;
  1770. }
  1771. _ACEOF
  1772. if ac_fn_c_try_link "$LINENO"; then :
  1773. eval "$3=yes"
  1774. else
  1775. eval "$3=no"
  1776. fi
  1777. rm -f core conftest.err conftest.$ac_objext \
  1778. conftest$ac_exeext conftest.$ac_ext
  1779. fi
  1780. eval ac_res=\$$3
  1781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1782. $as_echo "$ac_res" >&6; }
  1783. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1784. } # ac_fn_c_check_func
  1785. # ac_fn_cxx_try_compile LINENO
  1786. # ----------------------------
  1787. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1788. ac_fn_cxx_try_compile ()
  1789. {
  1790. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1791. rm -f conftest.$ac_objext
  1792. if { { ac_try="$ac_compile"
  1793. case "(($ac_try" in
  1794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1795. *) ac_try_echo=$ac_try;;
  1796. esac
  1797. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1798. $as_echo "$ac_try_echo"; } >&5
  1799. (eval "$ac_compile") 2>conftest.err
  1800. ac_status=$?
  1801. if test -s conftest.err; then
  1802. grep -v '^ *+' conftest.err >conftest.er1
  1803. cat conftest.er1 >&5
  1804. mv -f conftest.er1 conftest.err
  1805. fi
  1806. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1807. test $ac_status = 0; } && {
  1808. test -z "$ac_cxx_werror_flag" ||
  1809. test ! -s conftest.err
  1810. } && test -s conftest.$ac_objext; then :
  1811. ac_retval=0
  1812. else
  1813. $as_echo "$as_me: failed program was:" >&5
  1814. sed 's/^/| /' conftest.$ac_ext >&5
  1815. ac_retval=1
  1816. fi
  1817. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1818. as_fn_set_status $ac_retval
  1819. } # ac_fn_cxx_try_compile
  1820. # ac_fn_cxx_try_cpp LINENO
  1821. # ------------------------
  1822. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1823. ac_fn_cxx_try_cpp ()
  1824. {
  1825. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1826. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1827. case "(($ac_try" in
  1828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1829. *) ac_try_echo=$ac_try;;
  1830. esac
  1831. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1832. $as_echo "$ac_try_echo"; } >&5
  1833. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1834. ac_status=$?
  1835. if test -s conftest.err; then
  1836. grep -v '^ *+' conftest.err >conftest.er1
  1837. cat conftest.er1 >&5
  1838. mv -f conftest.er1 conftest.err
  1839. fi
  1840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1841. test $ac_status = 0; } > conftest.i && {
  1842. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1843. test ! -s conftest.err
  1844. }; then :
  1845. ac_retval=0
  1846. else
  1847. $as_echo "$as_me: failed program was:" >&5
  1848. sed 's/^/| /' conftest.$ac_ext >&5
  1849. ac_retval=1
  1850. fi
  1851. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1852. as_fn_set_status $ac_retval
  1853. } # ac_fn_cxx_try_cpp
  1854. # ac_fn_cxx_try_link LINENO
  1855. # -------------------------
  1856. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1857. ac_fn_cxx_try_link ()
  1858. {
  1859. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1860. rm -f conftest.$ac_objext conftest$ac_exeext
  1861. if { { ac_try="$ac_link"
  1862. case "(($ac_try" in
  1863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1864. *) ac_try_echo=$ac_try;;
  1865. esac
  1866. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1867. $as_echo "$ac_try_echo"; } >&5
  1868. (eval "$ac_link") 2>conftest.err
  1869. ac_status=$?
  1870. if test -s conftest.err; then
  1871. grep -v '^ *+' conftest.err >conftest.er1
  1872. cat conftest.er1 >&5
  1873. mv -f conftest.er1 conftest.err
  1874. fi
  1875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1876. test $ac_status = 0; } && {
  1877. test -z "$ac_cxx_werror_flag" ||
  1878. test ! -s conftest.err
  1879. } && test -s conftest$ac_exeext && {
  1880. test "$cross_compiling" = yes ||
  1881. test -x conftest$ac_exeext
  1882. }; then :
  1883. ac_retval=0
  1884. else
  1885. $as_echo "$as_me: failed program was:" >&5
  1886. sed 's/^/| /' conftest.$ac_ext >&5
  1887. ac_retval=1
  1888. fi
  1889. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1890. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1891. # interfere with the next link command; also delete a directory that is
  1892. # left behind by Apple's compiler. We do this before executing the actions.
  1893. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1894. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1895. as_fn_set_status $ac_retval
  1896. } # ac_fn_cxx_try_link
  1897. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1898. # -------------------------------------------------------
  1899. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1900. # the include files in INCLUDES and setting the cache variable VAR
  1901. # accordingly.
  1902. ac_fn_c_check_header_mongrel ()
  1903. {
  1904. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1905. if eval \${$3+:} false; then :
  1906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1907. $as_echo_n "checking for $2... " >&6; }
  1908. if eval \${$3+:} false; then :
  1909. $as_echo_n "(cached) " >&6
  1910. fi
  1911. eval ac_res=\$$3
  1912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1913. $as_echo "$ac_res" >&6; }
  1914. else
  1915. # Is the header compilable?
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1917. $as_echo_n "checking $2 usability... " >&6; }
  1918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1919. /* end confdefs.h. */
  1920. $4
  1921. #include <$2>
  1922. _ACEOF
  1923. if ac_fn_c_try_compile "$LINENO"; then :
  1924. ac_header_compiler=yes
  1925. else
  1926. ac_header_compiler=no
  1927. fi
  1928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1930. $as_echo "$ac_header_compiler" >&6; }
  1931. # Is the header present?
  1932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1933. $as_echo_n "checking $2 presence... " >&6; }
  1934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1935. /* end confdefs.h. */
  1936. #include <$2>
  1937. _ACEOF
  1938. if ac_fn_c_try_cpp "$LINENO"; then :
  1939. ac_header_preproc=yes
  1940. else
  1941. ac_header_preproc=no
  1942. fi
  1943. rm -f conftest.err conftest.i conftest.$ac_ext
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1945. $as_echo "$ac_header_preproc" >&6; }
  1946. # So? What about this header?
  1947. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1948. yes:no: )
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1950. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1952. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1953. ;;
  1954. no:yes:* )
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1956. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1958. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1960. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1962. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1964. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1965. ;;
  1966. esac
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1968. $as_echo_n "checking for $2... " >&6; }
  1969. if eval \${$3+:} false; then :
  1970. $as_echo_n "(cached) " >&6
  1971. else
  1972. eval "$3=\$ac_header_compiler"
  1973. fi
  1974. eval ac_res=\$$3
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1976. $as_echo "$ac_res" >&6; }
  1977. fi
  1978. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1979. } # ac_fn_c_check_header_mongrel
  1980. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1981. # -------------------------------------------
  1982. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1983. # variable VAR accordingly.
  1984. ac_fn_c_check_type ()
  1985. {
  1986. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1988. $as_echo_n "checking for $2... " >&6; }
  1989. if eval \${$3+:} false; then :
  1990. $as_echo_n "(cached) " >&6
  1991. else
  1992. eval "$3=no"
  1993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1994. /* end confdefs.h. */
  1995. $4
  1996. int
  1997. main ()
  1998. {
  1999. if (sizeof ($2))
  2000. return 0;
  2001. ;
  2002. return 0;
  2003. }
  2004. _ACEOF
  2005. if ac_fn_c_try_compile "$LINENO"; then :
  2006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2007. /* end confdefs.h. */
  2008. $4
  2009. int
  2010. main ()
  2011. {
  2012. if (sizeof (($2)))
  2013. return 0;
  2014. ;
  2015. return 0;
  2016. }
  2017. _ACEOF
  2018. if ac_fn_c_try_compile "$LINENO"; then :
  2019. else
  2020. eval "$3=yes"
  2021. fi
  2022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2023. fi
  2024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2030. } # ac_fn_c_check_type
  2031. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2032. # ----------------------------------------------------
  2033. # Tries to find if the field MEMBER exists in type AGGR, after including
  2034. # INCLUDES, setting cache variable VAR accordingly.
  2035. ac_fn_c_check_member ()
  2036. {
  2037. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2039. $as_echo_n "checking for $2.$3... " >&6; }
  2040. if eval \${$4+:} false; then :
  2041. $as_echo_n "(cached) " >&6
  2042. else
  2043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2044. /* end confdefs.h. */
  2045. $5
  2046. int
  2047. main ()
  2048. {
  2049. static $2 ac_aggr;
  2050. if (ac_aggr.$3)
  2051. return 0;
  2052. ;
  2053. return 0;
  2054. }
  2055. _ACEOF
  2056. if ac_fn_c_try_compile "$LINENO"; then :
  2057. eval "$4=yes"
  2058. else
  2059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2060. /* end confdefs.h. */
  2061. $5
  2062. int
  2063. main ()
  2064. {
  2065. static $2 ac_aggr;
  2066. if (sizeof ac_aggr.$3)
  2067. return 0;
  2068. ;
  2069. return 0;
  2070. }
  2071. _ACEOF
  2072. if ac_fn_c_try_compile "$LINENO"; then :
  2073. eval "$4=yes"
  2074. else
  2075. eval "$4=no"
  2076. fi
  2077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2078. fi
  2079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2080. fi
  2081. eval ac_res=\$$4
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2083. $as_echo "$ac_res" >&6; }
  2084. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2085. } # ac_fn_c_check_member
  2086. cat >config.log <<_ACEOF
  2087. This file contains any messages produced by compilers while
  2088. running configure, to aid debugging if configure makes a mistake.
  2089. It was created by $as_me, which was
  2090. generated by GNU Autoconf 2.69. Invocation command line was
  2091. $ $0 $@
  2092. _ACEOF
  2093. exec 5>>config.log
  2094. {
  2095. cat <<_ASUNAME
  2096. ## --------- ##
  2097. ## Platform. ##
  2098. ## --------- ##
  2099. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2100. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2101. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2102. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2103. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2104. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2105. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2106. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2107. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2108. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2109. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2110. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2111. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2112. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2113. _ASUNAME
  2114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2115. for as_dir in $PATH
  2116. do
  2117. IFS=$as_save_IFS
  2118. test -z "$as_dir" && as_dir=.
  2119. $as_echo "PATH: $as_dir"
  2120. done
  2121. IFS=$as_save_IFS
  2122. } >&5
  2123. cat >&5 <<_ACEOF
  2124. ## ----------- ##
  2125. ## Core tests. ##
  2126. ## ----------- ##
  2127. _ACEOF
  2128. # Keep a trace of the command line.
  2129. # Strip out --no-create and --no-recursion so they do not pile up.
  2130. # Strip out --silent because we don't want to record it for future runs.
  2131. # Also quote any args containing shell meta-characters.
  2132. # Make two passes to allow for proper duplicate-argument suppression.
  2133. ac_configure_args=
  2134. ac_configure_args0=
  2135. ac_configure_args1=
  2136. ac_must_keep_next=false
  2137. for ac_pass in 1 2
  2138. do
  2139. for ac_arg
  2140. do
  2141. case $ac_arg in
  2142. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2143. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2144. | -silent | --silent | --silen | --sile | --sil)
  2145. continue ;;
  2146. *\'*)
  2147. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2148. esac
  2149. case $ac_pass in
  2150. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2151. 2)
  2152. as_fn_append ac_configure_args1 " '$ac_arg'"
  2153. if test $ac_must_keep_next = true; then
  2154. ac_must_keep_next=false # Got value, back to normal.
  2155. else
  2156. case $ac_arg in
  2157. *=* | --config-cache | -C | -disable-* | --disable-* \
  2158. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2159. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2160. | -with-* | --with-* | -without-* | --without-* | --x)
  2161. case "$ac_configure_args0 " in
  2162. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2163. esac
  2164. ;;
  2165. -* ) ac_must_keep_next=true ;;
  2166. esac
  2167. fi
  2168. as_fn_append ac_configure_args " '$ac_arg'"
  2169. ;;
  2170. esac
  2171. done
  2172. done
  2173. { ac_configure_args0=; unset ac_configure_args0;}
  2174. { ac_configure_args1=; unset ac_configure_args1;}
  2175. # When interrupted or exit'd, cleanup temporary files, and complete
  2176. # config.log. We remove comments because anyway the quotes in there
  2177. # would cause problems or look ugly.
  2178. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2179. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2180. trap 'exit_status=$?
  2181. # Save into config.log some information that might help in debugging.
  2182. {
  2183. echo
  2184. $as_echo "## ---------------- ##
  2185. ## Cache variables. ##
  2186. ## ---------------- ##"
  2187. echo
  2188. # The following way of writing the cache mishandles newlines in values,
  2189. (
  2190. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2191. eval ac_val=\$$ac_var
  2192. case $ac_val in #(
  2193. *${as_nl}*)
  2194. case $ac_var in #(
  2195. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2196. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2197. esac
  2198. case $ac_var in #(
  2199. _ | IFS | as_nl) ;; #(
  2200. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2201. *) { eval $ac_var=; unset $ac_var;} ;;
  2202. esac ;;
  2203. esac
  2204. done
  2205. (set) 2>&1 |
  2206. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2207. *${as_nl}ac_space=\ *)
  2208. sed -n \
  2209. "s/'\''/'\''\\\\'\'''\''/g;
  2210. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2211. ;; #(
  2212. *)
  2213. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2214. ;;
  2215. esac |
  2216. sort
  2217. )
  2218. echo
  2219. $as_echo "## ----------------- ##
  2220. ## Output variables. ##
  2221. ## ----------------- ##"
  2222. echo
  2223. for ac_var in $ac_subst_vars
  2224. do
  2225. eval ac_val=\$$ac_var
  2226. case $ac_val in
  2227. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2228. esac
  2229. $as_echo "$ac_var='\''$ac_val'\''"
  2230. done | sort
  2231. echo
  2232. if test -n "$ac_subst_files"; then
  2233. $as_echo "## ------------------- ##
  2234. ## File substitutions. ##
  2235. ## ------------------- ##"
  2236. echo
  2237. for ac_var in $ac_subst_files
  2238. do
  2239. eval ac_val=\$$ac_var
  2240. case $ac_val in
  2241. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2242. esac
  2243. $as_echo "$ac_var='\''$ac_val'\''"
  2244. done | sort
  2245. echo
  2246. fi
  2247. if test -s confdefs.h; then
  2248. $as_echo "## ----------- ##
  2249. ## confdefs.h. ##
  2250. ## ----------- ##"
  2251. echo
  2252. cat confdefs.h
  2253. echo
  2254. fi
  2255. test "$ac_signal" != 0 &&
  2256. $as_echo "$as_me: caught signal $ac_signal"
  2257. $as_echo "$as_me: exit $exit_status"
  2258. } >&5
  2259. rm -f core *.core core.conftest.* &&
  2260. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2261. exit $exit_status
  2262. ' 0
  2263. for ac_signal in 1 2 13 15; do
  2264. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2265. done
  2266. ac_signal=0
  2267. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2268. rm -f -r conftest* confdefs.h
  2269. $as_echo "/* confdefs.h */" > confdefs.h
  2270. # Predefined preprocessor variables.
  2271. cat >>confdefs.h <<_ACEOF
  2272. #define PACKAGE_NAME "$PACKAGE_NAME"
  2273. _ACEOF
  2274. cat >>confdefs.h <<_ACEOF
  2275. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2276. _ACEOF
  2277. cat >>confdefs.h <<_ACEOF
  2278. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2279. _ACEOF
  2280. cat >>confdefs.h <<_ACEOF
  2281. #define PACKAGE_STRING "$PACKAGE_STRING"
  2282. _ACEOF
  2283. cat >>confdefs.h <<_ACEOF
  2284. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2285. _ACEOF
  2286. cat >>confdefs.h <<_ACEOF
  2287. #define PACKAGE_URL "$PACKAGE_URL"
  2288. _ACEOF
  2289. # Let the site file select an alternate cache file if it wants to.
  2290. # Prefer an explicitly selected file to automatically selected ones.
  2291. ac_site_file1=NONE
  2292. ac_site_file2=NONE
  2293. if test -n "$CONFIG_SITE"; then
  2294. # We do not want a PATH search for config.site.
  2295. case $CONFIG_SITE in #((
  2296. -*) ac_site_file1=./$CONFIG_SITE;;
  2297. */*) ac_site_file1=$CONFIG_SITE;;
  2298. *) ac_site_file1=./$CONFIG_SITE;;
  2299. esac
  2300. elif test "x$prefix" != xNONE; then
  2301. ac_site_file1=$prefix/share/config.site
  2302. ac_site_file2=$prefix/etc/config.site
  2303. else
  2304. ac_site_file1=$ac_default_prefix/share/config.site
  2305. ac_site_file2=$ac_default_prefix/etc/config.site
  2306. fi
  2307. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2308. do
  2309. test "x$ac_site_file" = xNONE && continue
  2310. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2311. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2312. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2313. sed 's/^/| /' "$ac_site_file" >&5
  2314. . "$ac_site_file" \
  2315. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2316. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2317. as_fn_error $? "failed to load site script $ac_site_file
  2318. See \`config.log' for more details" "$LINENO" 5; }
  2319. fi
  2320. done
  2321. if test -r "$cache_file"; then
  2322. # Some versions of bash will fail to source /dev/null (special files
  2323. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2324. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2326. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2327. case $cache_file in
  2328. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2329. *) . "./$cache_file";;
  2330. esac
  2331. fi
  2332. else
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2334. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2335. >$cache_file
  2336. fi
  2337. # Check that the precious variables saved in the cache have kept the same
  2338. # value.
  2339. ac_cache_corrupted=false
  2340. for ac_var in $ac_precious_vars; do
  2341. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2342. eval ac_new_set=\$ac_env_${ac_var}_set
  2343. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2344. eval ac_new_val=\$ac_env_${ac_var}_value
  2345. case $ac_old_set,$ac_new_set in
  2346. set,)
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2348. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2349. ac_cache_corrupted=: ;;
  2350. ,set)
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2352. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2353. ac_cache_corrupted=: ;;
  2354. ,);;
  2355. *)
  2356. if test "x$ac_old_val" != "x$ac_new_val"; then
  2357. # differences in whitespace do not lead to failure.
  2358. ac_old_val_w=`echo x $ac_old_val`
  2359. ac_new_val_w=`echo x $ac_new_val`
  2360. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2362. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2363. ac_cache_corrupted=:
  2364. else
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2366. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2367. eval $ac_var=\$ac_old_val
  2368. fi
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2370. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2372. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2373. fi;;
  2374. esac
  2375. # Pass precious variables to config.status.
  2376. if test "$ac_new_set" = set; then
  2377. case $ac_new_val in
  2378. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2379. *) ac_arg=$ac_var=$ac_new_val ;;
  2380. esac
  2381. case " $ac_configure_args " in
  2382. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2383. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2384. esac
  2385. fi
  2386. done
  2387. if $ac_cache_corrupted; then
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2389. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2391. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2392. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2393. fi
  2394. ## -------------------- ##
  2395. ## Main body of script. ##
  2396. ## -------------------- ##
  2397. ac_ext=c
  2398. ac_cpp='$CPP $CPPFLAGS'
  2399. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2400. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2401. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2402. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2403. ac_aux_dir=
  2404. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2405. if test -f "$ac_dir/install-sh"; then
  2406. ac_aux_dir=$ac_dir
  2407. ac_install_sh="$ac_aux_dir/install-sh -c"
  2408. break
  2409. elif test -f "$ac_dir/install.sh"; then
  2410. ac_aux_dir=$ac_dir
  2411. ac_install_sh="$ac_aux_dir/install.sh -c"
  2412. break
  2413. elif test -f "$ac_dir/shtool"; then
  2414. ac_aux_dir=$ac_dir
  2415. ac_install_sh="$ac_aux_dir/shtool install -c"
  2416. break
  2417. fi
  2418. done
  2419. if test -z "$ac_aux_dir"; then
  2420. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2421. fi
  2422. # These three variables are undocumented and unsupported,
  2423. # and are intended to be withdrawn in a future Autoconf release.
  2424. # They can cause serious problems if a builder's source tree is in a directory
  2425. # whose full name contains unusual characters.
  2426. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2427. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2428. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2429. orig_CFLAGS="$CFLAGS"
  2430. #
  2431. # Making releases:
  2432. # Edit include/SDL_version.h and change the version, then:
  2433. # SDL_MICRO_VERSION += 1;
  2434. # SDL_INTERFACE_AGE += 1;
  2435. # SDL_BINARY_AGE += 1;
  2436. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2437. # if backwards compatibility has been broken,
  2438. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2439. #
  2440. SDL_MAJOR_VERSION=2
  2441. SDL_MINOR_VERSION=0
  2442. SDL_MICRO_VERSION=1
  2443. SDL_INTERFACE_AGE=0
  2444. SDL_BINARY_AGE=1
  2445. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2446. # libtool versioning
  2447. case `pwd` in
  2448. *\ * | *\ *)
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2450. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2451. esac
  2452. macro_version='2.4.2'
  2453. macro_revision='1.3337'
  2454. ltmain="$ac_aux_dir/ltmain.sh"
  2455. # Make sure we can run config.sub.
  2456. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2457. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2459. $as_echo_n "checking build system type... " >&6; }
  2460. if ${ac_cv_build+:} false; then :
  2461. $as_echo_n "(cached) " >&6
  2462. else
  2463. ac_build_alias=$build_alias
  2464. test "x$ac_build_alias" = x &&
  2465. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2466. test "x$ac_build_alias" = x &&
  2467. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2468. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2469. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2470. fi
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2472. $as_echo "$ac_cv_build" >&6; }
  2473. case $ac_cv_build in
  2474. *-*-*) ;;
  2475. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2476. esac
  2477. build=$ac_cv_build
  2478. ac_save_IFS=$IFS; IFS='-'
  2479. set x $ac_cv_build
  2480. shift
  2481. build_cpu=$1
  2482. build_vendor=$2
  2483. shift; shift
  2484. # Remember, the first character of IFS is used to create $*,
  2485. # except with old shells:
  2486. build_os=$*
  2487. IFS=$ac_save_IFS
  2488. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2490. $as_echo_n "checking host system type... " >&6; }
  2491. if ${ac_cv_host+:} false; then :
  2492. $as_echo_n "(cached) " >&6
  2493. else
  2494. if test "x$host_alias" = x; then
  2495. ac_cv_host=$ac_cv_build
  2496. else
  2497. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2498. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2499. fi
  2500. fi
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2502. $as_echo "$ac_cv_host" >&6; }
  2503. case $ac_cv_host in
  2504. *-*-*) ;;
  2505. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2506. esac
  2507. host=$ac_cv_host
  2508. ac_save_IFS=$IFS; IFS='-'
  2509. set x $ac_cv_host
  2510. shift
  2511. host_cpu=$1
  2512. host_vendor=$2
  2513. shift; shift
  2514. # Remember, the first character of IFS is used to create $*,
  2515. # except with old shells:
  2516. host_os=$*
  2517. IFS=$ac_save_IFS
  2518. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2519. # Backslashify metacharacters that are still active within
  2520. # double-quoted strings.
  2521. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2522. # Same as above, but do not quote variable references.
  2523. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2524. # Sed substitution to delay expansion of an escaped shell variable in a
  2525. # double_quote_subst'ed string.
  2526. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2527. # Sed substitution to delay expansion of an escaped single quote.
  2528. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2529. # Sed substitution to avoid accidental globbing in evaled expressions
  2530. no_glob_subst='s/\*/\\\*/g'
  2531. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2532. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2533. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2535. $as_echo_n "checking how to print strings... " >&6; }
  2536. # Test print first, because it will be a builtin if present.
  2537. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2538. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2539. ECHO='print -r --'
  2540. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2541. ECHO='printf %s\n'
  2542. else
  2543. # Use this function as a fallback that always works.
  2544. func_fallback_echo ()
  2545. {
  2546. eval 'cat <<_LTECHO_EOF
  2547. $1
  2548. _LTECHO_EOF'
  2549. }
  2550. ECHO='func_fallback_echo'
  2551. fi
  2552. # func_echo_all arg...
  2553. # Invoke $ECHO with all args, space-separated.
  2554. func_echo_all ()
  2555. {
  2556. $ECHO ""
  2557. }
  2558. case "$ECHO" in
  2559. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2560. $as_echo "printf" >&6; } ;;
  2561. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2562. $as_echo "print -r" >&6; } ;;
  2563. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2564. $as_echo "cat" >&6; } ;;
  2565. esac
  2566. ac_ext=c
  2567. ac_cpp='$CPP $CPPFLAGS'
  2568. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2569. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2570. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2571. if test -n "$ac_tool_prefix"; then
  2572. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2573. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2575. $as_echo_n "checking for $ac_word... " >&6; }
  2576. if ${ac_cv_prog_CC+:} false; then :
  2577. $as_echo_n "(cached) " >&6
  2578. else
  2579. if test -n "$CC"; then
  2580. ac_cv_prog_CC="$CC" # Let the user override the test.
  2581. else
  2582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2583. for as_dir in $PATH
  2584. do
  2585. IFS=$as_save_IFS
  2586. test -z "$as_dir" && as_dir=.
  2587. for ac_exec_ext in '' $ac_executable_extensions; do
  2588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2589. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2591. break 2
  2592. fi
  2593. done
  2594. done
  2595. IFS=$as_save_IFS
  2596. fi
  2597. fi
  2598. CC=$ac_cv_prog_CC
  2599. if test -n "$CC"; then
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2601. $as_echo "$CC" >&6; }
  2602. else
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2604. $as_echo "no" >&6; }
  2605. fi
  2606. fi
  2607. if test -z "$ac_cv_prog_CC"; then
  2608. ac_ct_CC=$CC
  2609. # Extract the first word of "gcc", so it can be a program name with args.
  2610. set dummy gcc; ac_word=$2
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2612. $as_echo_n "checking for $ac_word... " >&6; }
  2613. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2614. $as_echo_n "(cached) " >&6
  2615. else
  2616. if test -n "$ac_ct_CC"; then
  2617. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2618. else
  2619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2620. for as_dir in $PATH
  2621. do
  2622. IFS=$as_save_IFS
  2623. test -z "$as_dir" && as_dir=.
  2624. for ac_exec_ext in '' $ac_executable_extensions; do
  2625. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2626. ac_cv_prog_ac_ct_CC="gcc"
  2627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2628. break 2
  2629. fi
  2630. done
  2631. done
  2632. IFS=$as_save_IFS
  2633. fi
  2634. fi
  2635. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2636. if test -n "$ac_ct_CC"; then
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2638. $as_echo "$ac_ct_CC" >&6; }
  2639. else
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2641. $as_echo "no" >&6; }
  2642. fi
  2643. if test "x$ac_ct_CC" = x; then
  2644. CC=""
  2645. else
  2646. case $cross_compiling:$ac_tool_warned in
  2647. yes:)
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2649. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2650. ac_tool_warned=yes ;;
  2651. esac
  2652. CC=$ac_ct_CC
  2653. fi
  2654. else
  2655. CC="$ac_cv_prog_CC"
  2656. fi
  2657. if test -z "$CC"; then
  2658. if test -n "$ac_tool_prefix"; then
  2659. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2660. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2662. $as_echo_n "checking for $ac_word... " >&6; }
  2663. if ${ac_cv_prog_CC+:} false; then :
  2664. $as_echo_n "(cached) " >&6
  2665. else
  2666. if test -n "$CC"; then
  2667. ac_cv_prog_CC="$CC" # Let the user override the test.
  2668. else
  2669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2670. for as_dir in $PATH
  2671. do
  2672. IFS=$as_save_IFS
  2673. test -z "$as_dir" && as_dir=.
  2674. for ac_exec_ext in '' $ac_executable_extensions; do
  2675. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2676. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2678. break 2
  2679. fi
  2680. done
  2681. done
  2682. IFS=$as_save_IFS
  2683. fi
  2684. fi
  2685. CC=$ac_cv_prog_CC
  2686. if test -n "$CC"; then
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2688. $as_echo "$CC" >&6; }
  2689. else
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2691. $as_echo "no" >&6; }
  2692. fi
  2693. fi
  2694. fi
  2695. if test -z "$CC"; then
  2696. # Extract the first word of "cc", so it can be a program name with args.
  2697. set dummy cc; ac_word=$2
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2699. $as_echo_n "checking for $ac_word... " >&6; }
  2700. if ${ac_cv_prog_CC+:} false; then :
  2701. $as_echo_n "(cached) " >&6
  2702. else
  2703. if test -n "$CC"; then
  2704. ac_cv_prog_CC="$CC" # Let the user override the test.
  2705. else
  2706. ac_prog_rejected=no
  2707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2708. for as_dir in $PATH
  2709. do
  2710. IFS=$as_save_IFS
  2711. test -z "$as_dir" && as_dir=.
  2712. for ac_exec_ext in '' $ac_executable_extensions; do
  2713. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2714. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2715. ac_prog_rejected=yes
  2716. continue
  2717. fi
  2718. ac_cv_prog_CC="cc"
  2719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2720. break 2
  2721. fi
  2722. done
  2723. done
  2724. IFS=$as_save_IFS
  2725. if test $ac_prog_rejected = yes; then
  2726. # We found a bogon in the path, so make sure we never use it.
  2727. set dummy $ac_cv_prog_CC
  2728. shift
  2729. if test $# != 0; then
  2730. # We chose a different compiler from the bogus one.
  2731. # However, it has the same basename, so the bogon will be chosen
  2732. # first if we set CC to just the basename; use the full file name.
  2733. shift
  2734. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2735. fi
  2736. fi
  2737. fi
  2738. fi
  2739. CC=$ac_cv_prog_CC
  2740. if test -n "$CC"; then
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2742. $as_echo "$CC" >&6; }
  2743. else
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2745. $as_echo "no" >&6; }
  2746. fi
  2747. fi
  2748. if test -z "$CC"; then
  2749. if test -n "$ac_tool_prefix"; then
  2750. for ac_prog in cl.exe
  2751. do
  2752. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2753. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2755. $as_echo_n "checking for $ac_word... " >&6; }
  2756. if ${ac_cv_prog_CC+:} false; then :
  2757. $as_echo_n "(cached) " >&6
  2758. else
  2759. if test -n "$CC"; then
  2760. ac_cv_prog_CC="$CC" # Let the user override the test.
  2761. else
  2762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2763. for as_dir in $PATH
  2764. do
  2765. IFS=$as_save_IFS
  2766. test -z "$as_dir" && as_dir=.
  2767. for ac_exec_ext in '' $ac_executable_extensions; do
  2768. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2769. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2770. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2771. break 2
  2772. fi
  2773. done
  2774. done
  2775. IFS=$as_save_IFS
  2776. fi
  2777. fi
  2778. CC=$ac_cv_prog_CC
  2779. if test -n "$CC"; then
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2781. $as_echo "$CC" >&6; }
  2782. else
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2784. $as_echo "no" >&6; }
  2785. fi
  2786. test -n "$CC" && break
  2787. done
  2788. fi
  2789. if test -z "$CC"; then
  2790. ac_ct_CC=$CC
  2791. for ac_prog in cl.exe
  2792. do
  2793. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2794. set dummy $ac_prog; ac_word=$2
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2796. $as_echo_n "checking for $ac_word... " >&6; }
  2797. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2798. $as_echo_n "(cached) " >&6
  2799. else
  2800. if test -n "$ac_ct_CC"; then
  2801. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2802. else
  2803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2804. for as_dir in $PATH
  2805. do
  2806. IFS=$as_save_IFS
  2807. test -z "$as_dir" && as_dir=.
  2808. for ac_exec_ext in '' $ac_executable_extensions; do
  2809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2810. ac_cv_prog_ac_ct_CC="$ac_prog"
  2811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2812. break 2
  2813. fi
  2814. done
  2815. done
  2816. IFS=$as_save_IFS
  2817. fi
  2818. fi
  2819. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2820. if test -n "$ac_ct_CC"; then
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2822. $as_echo "$ac_ct_CC" >&6; }
  2823. else
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2825. $as_echo "no" >&6; }
  2826. fi
  2827. test -n "$ac_ct_CC" && break
  2828. done
  2829. if test "x$ac_ct_CC" = x; then
  2830. CC=""
  2831. else
  2832. case $cross_compiling:$ac_tool_warned in
  2833. yes:)
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2835. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2836. ac_tool_warned=yes ;;
  2837. esac
  2838. CC=$ac_ct_CC
  2839. fi
  2840. fi
  2841. fi
  2842. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2843. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2844. as_fn_error $? "no acceptable C compiler found in \$PATH
  2845. See \`config.log' for more details" "$LINENO" 5; }
  2846. # Provide some information about the compiler.
  2847. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2848. set X $ac_compile
  2849. ac_compiler=$2
  2850. for ac_option in --version -v -V -qversion; do
  2851. { { ac_try="$ac_compiler $ac_option >&5"
  2852. case "(($ac_try" in
  2853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2854. *) ac_try_echo=$ac_try;;
  2855. esac
  2856. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2857. $as_echo "$ac_try_echo"; } >&5
  2858. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2859. ac_status=$?
  2860. if test -s conftest.err; then
  2861. sed '10a\
  2862. ... rest of stderr output deleted ...
  2863. 10q' conftest.err >conftest.er1
  2864. cat conftest.er1 >&5
  2865. fi
  2866. rm -f conftest.er1 conftest.err
  2867. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2868. test $ac_status = 0; }
  2869. done
  2870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2871. /* end confdefs.h. */
  2872. int
  2873. main ()
  2874. {
  2875. ;
  2876. return 0;
  2877. }
  2878. _ACEOF
  2879. ac_clean_files_save=$ac_clean_files
  2880. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2881. # Try to create an executable without -o first, disregard a.out.
  2882. # It will help us diagnose broken compilers, and finding out an intuition
  2883. # of exeext.
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2885. $as_echo_n "checking whether the C compiler works... " >&6; }
  2886. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2887. # The possible output files:
  2888. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2889. ac_rmfiles=
  2890. for ac_file in $ac_files
  2891. do
  2892. case $ac_file in
  2893. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2894. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2895. esac
  2896. done
  2897. rm -f $ac_rmfiles
  2898. if { { ac_try="$ac_link_default"
  2899. case "(($ac_try" in
  2900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2901. *) ac_try_echo=$ac_try;;
  2902. esac
  2903. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2904. $as_echo "$ac_try_echo"; } >&5
  2905. (eval "$ac_link_default") 2>&5
  2906. ac_status=$?
  2907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2908. test $ac_status = 0; }; then :
  2909. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2910. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2911. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2912. # so that the user can short-circuit this test for compilers unknown to
  2913. # Autoconf.
  2914. for ac_file in $ac_files ''
  2915. do
  2916. test -f "$ac_file" || continue
  2917. case $ac_file in
  2918. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2919. ;;
  2920. [ab].out )
  2921. # We found the default executable, but exeext='' is most
  2922. # certainly right.
  2923. break;;
  2924. *.* )
  2925. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2926. then :; else
  2927. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2928. fi
  2929. # We set ac_cv_exeext here because the later test for it is not
  2930. # safe: cross compilers may not add the suffix if given an `-o'
  2931. # argument, so we may need to know it at that point already.
  2932. # Even if this section looks crufty: it has the advantage of
  2933. # actually working.
  2934. break;;
  2935. * )
  2936. break;;
  2937. esac
  2938. done
  2939. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2940. else
  2941. ac_file=''
  2942. fi
  2943. if test -z "$ac_file"; then :
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2945. $as_echo "no" >&6; }
  2946. $as_echo "$as_me: failed program was:" >&5
  2947. sed 's/^/| /' conftest.$ac_ext >&5
  2948. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2949. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2950. as_fn_error 77 "C compiler cannot create executables
  2951. See \`config.log' for more details" "$LINENO" 5; }
  2952. else
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2954. $as_echo "yes" >&6; }
  2955. fi
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2957. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2959. $as_echo "$ac_file" >&6; }
  2960. ac_exeext=$ac_cv_exeext
  2961. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2962. ac_clean_files=$ac_clean_files_save
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2964. $as_echo_n "checking for suffix of executables... " >&6; }
  2965. if { { ac_try="$ac_link"
  2966. case "(($ac_try" in
  2967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2968. *) ac_try_echo=$ac_try;;
  2969. esac
  2970. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2971. $as_echo "$ac_try_echo"; } >&5
  2972. (eval "$ac_link") 2>&5
  2973. ac_status=$?
  2974. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2975. test $ac_status = 0; }; then :
  2976. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2977. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2978. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2979. # `rm'.
  2980. for ac_file in conftest.exe conftest conftest.*; do
  2981. test -f "$ac_file" || continue
  2982. case $ac_file in
  2983. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2984. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2985. break;;
  2986. * ) break;;
  2987. esac
  2988. done
  2989. else
  2990. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2991. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2992. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2993. See \`config.log' for more details" "$LINENO" 5; }
  2994. fi
  2995. rm -f conftest conftest$ac_cv_exeext
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2997. $as_echo "$ac_cv_exeext" >&6; }
  2998. rm -f conftest.$ac_ext
  2999. EXEEXT=$ac_cv_exeext
  3000. ac_exeext=$EXEEXT
  3001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3002. /* end confdefs.h. */
  3003. #include <stdio.h>
  3004. int
  3005. main ()
  3006. {
  3007. FILE *f = fopen ("conftest.out", "w");
  3008. return ferror (f) || fclose (f) != 0;
  3009. ;
  3010. return 0;
  3011. }
  3012. _ACEOF
  3013. ac_clean_files="$ac_clean_files conftest.out"
  3014. # Check that the compiler produces executables we can run. If not, either
  3015. # the compiler is broken, or we cross compile.
  3016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3017. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3018. if test "$cross_compiling" != yes; then
  3019. { { ac_try="$ac_link"
  3020. case "(($ac_try" in
  3021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3022. *) ac_try_echo=$ac_try;;
  3023. esac
  3024. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3025. $as_echo "$ac_try_echo"; } >&5
  3026. (eval "$ac_link") 2>&5
  3027. ac_status=$?
  3028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3029. test $ac_status = 0; }
  3030. if { ac_try='./conftest$ac_cv_exeext'
  3031. { { case "(($ac_try" in
  3032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3033. *) ac_try_echo=$ac_try;;
  3034. esac
  3035. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3036. $as_echo "$ac_try_echo"; } >&5
  3037. (eval "$ac_try") 2>&5
  3038. ac_status=$?
  3039. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3040. test $ac_status = 0; }; }; then
  3041. cross_compiling=no
  3042. else
  3043. if test "$cross_compiling" = maybe; then
  3044. cross_compiling=yes
  3045. else
  3046. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3047. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3048. as_fn_error $? "cannot run C compiled programs.
  3049. If you meant to cross compile, use \`--host'.
  3050. See \`config.log' for more details" "$LINENO" 5; }
  3051. fi
  3052. fi
  3053. fi
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3055. $as_echo "$cross_compiling" >&6; }
  3056. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3057. ac_clean_files=$ac_clean_files_save
  3058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3059. $as_echo_n "checking for suffix of object files... " >&6; }
  3060. if ${ac_cv_objext+:} false; then :
  3061. $as_echo_n "(cached) " >&6
  3062. else
  3063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3064. /* end confdefs.h. */
  3065. int
  3066. main ()
  3067. {
  3068. ;
  3069. return 0;
  3070. }
  3071. _ACEOF
  3072. rm -f conftest.o conftest.obj
  3073. if { { ac_try="$ac_compile"
  3074. case "(($ac_try" in
  3075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3076. *) ac_try_echo=$ac_try;;
  3077. esac
  3078. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3079. $as_echo "$ac_try_echo"; } >&5
  3080. (eval "$ac_compile") 2>&5
  3081. ac_status=$?
  3082. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3083. test $ac_status = 0; }; then :
  3084. for ac_file in conftest.o conftest.obj conftest.*; do
  3085. test -f "$ac_file" || continue;
  3086. case $ac_file in
  3087. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3088. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3089. break;;
  3090. esac
  3091. done
  3092. else
  3093. $as_echo "$as_me: failed program was:" >&5
  3094. sed 's/^/| /' conftest.$ac_ext >&5
  3095. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3096. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3097. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3098. See \`config.log' for more details" "$LINENO" 5; }
  3099. fi
  3100. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3101. fi
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3103. $as_echo "$ac_cv_objext" >&6; }
  3104. OBJEXT=$ac_cv_objext
  3105. ac_objext=$OBJEXT
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3107. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3108. if ${ac_cv_c_compiler_gnu+:} false; then :
  3109. $as_echo_n "(cached) " >&6
  3110. else
  3111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3112. /* end confdefs.h. */
  3113. int
  3114. main ()
  3115. {
  3116. #ifndef __GNUC__
  3117. choke me
  3118. #endif
  3119. ;
  3120. return 0;
  3121. }
  3122. _ACEOF
  3123. if ac_fn_c_try_compile "$LINENO"; then :
  3124. ac_compiler_gnu=yes
  3125. else
  3126. ac_compiler_gnu=no
  3127. fi
  3128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3129. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3130. fi
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3132. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3133. if test $ac_compiler_gnu = yes; then
  3134. GCC=yes
  3135. else
  3136. GCC=
  3137. fi
  3138. ac_test_CFLAGS=${CFLAGS+set}
  3139. ac_save_CFLAGS=$CFLAGS
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3141. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3142. if ${ac_cv_prog_cc_g+:} false; then :
  3143. $as_echo_n "(cached) " >&6
  3144. else
  3145. ac_save_c_werror_flag=$ac_c_werror_flag
  3146. ac_c_werror_flag=yes
  3147. ac_cv_prog_cc_g=no
  3148. CFLAGS="-g"
  3149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3150. /* end confdefs.h. */
  3151. int
  3152. main ()
  3153. {
  3154. ;
  3155. return 0;
  3156. }
  3157. _ACEOF
  3158. if ac_fn_c_try_compile "$LINENO"; then :
  3159. ac_cv_prog_cc_g=yes
  3160. else
  3161. CFLAGS=""
  3162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3163. /* end confdefs.h. */
  3164. int
  3165. main ()
  3166. {
  3167. ;
  3168. return 0;
  3169. }
  3170. _ACEOF
  3171. if ac_fn_c_try_compile "$LINENO"; then :
  3172. else
  3173. ac_c_werror_flag=$ac_save_c_werror_flag
  3174. CFLAGS="-g"
  3175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3176. /* end confdefs.h. */
  3177. int
  3178. main ()
  3179. {
  3180. ;
  3181. return 0;
  3182. }
  3183. _ACEOF
  3184. if ac_fn_c_try_compile "$LINENO"; then :
  3185. ac_cv_prog_cc_g=yes
  3186. fi
  3187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3188. fi
  3189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3190. fi
  3191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3192. ac_c_werror_flag=$ac_save_c_werror_flag
  3193. fi
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3195. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3196. if test "$ac_test_CFLAGS" = set; then
  3197. CFLAGS=$ac_save_CFLAGS
  3198. elif test $ac_cv_prog_cc_g = yes; then
  3199. if test "$GCC" = yes; then
  3200. CFLAGS="-g -O2"
  3201. else
  3202. CFLAGS="-g"
  3203. fi
  3204. else
  3205. if test "$GCC" = yes; then
  3206. CFLAGS="-O2"
  3207. else
  3208. CFLAGS=
  3209. fi
  3210. fi
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3212. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3213. if ${ac_cv_prog_cc_c89+:} false; then :
  3214. $as_echo_n "(cached) " >&6
  3215. else
  3216. ac_cv_prog_cc_c89=no
  3217. ac_save_CC=$CC
  3218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3219. /* end confdefs.h. */
  3220. #include <stdarg.h>
  3221. #include <stdio.h>
  3222. struct stat;
  3223. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3224. struct buf { int x; };
  3225. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3226. static char *e (p, i)
  3227. char **p;
  3228. int i;
  3229. {
  3230. return p[i];
  3231. }
  3232. static char *f (char * (*g) (char **, int), char **p, ...)
  3233. {
  3234. char *s;
  3235. va_list v;
  3236. va_start (v,p);
  3237. s = g (p, va_arg (v,int));
  3238. va_end (v);
  3239. return s;
  3240. }
  3241. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3242. function prototypes and stuff, but not '\xHH' hex character constants.
  3243. These don't provoke an error unfortunately, instead are silently treated
  3244. as 'x'. The following induces an error, until -std is added to get
  3245. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3246. array size at least. It's necessary to write '\x00'==0 to get something
  3247. that's true only with -std. */
  3248. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3249. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3250. inside strings and character constants. */
  3251. #define FOO(x) 'x'
  3252. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3253. int test (int i, double x);
  3254. struct s1 {int (*f) (int a);};
  3255. struct s2 {int (*f) (double a);};
  3256. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3257. int argc;
  3258. char **argv;
  3259. int
  3260. main ()
  3261. {
  3262. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3263. ;
  3264. return 0;
  3265. }
  3266. _ACEOF
  3267. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3268. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3269. do
  3270. CC="$ac_save_CC $ac_arg"
  3271. if ac_fn_c_try_compile "$LINENO"; then :
  3272. ac_cv_prog_cc_c89=$ac_arg
  3273. fi
  3274. rm -f core conftest.err conftest.$ac_objext
  3275. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3276. done
  3277. rm -f conftest.$ac_ext
  3278. CC=$ac_save_CC
  3279. fi
  3280. # AC_CACHE_VAL
  3281. case "x$ac_cv_prog_cc_c89" in
  3282. x)
  3283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3284. $as_echo "none needed" >&6; } ;;
  3285. xno)
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3287. $as_echo "unsupported" >&6; } ;;
  3288. *)
  3289. CC="$CC $ac_cv_prog_cc_c89"
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3291. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3292. esac
  3293. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3294. fi
  3295. ac_ext=c
  3296. ac_cpp='$CPP $CPPFLAGS'
  3297. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3298. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3299. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3301. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3302. if ${ac_cv_path_SED+:} false; then :
  3303. $as_echo_n "(cached) " >&6
  3304. else
  3305. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3306. for ac_i in 1 2 3 4 5 6 7; do
  3307. ac_script="$ac_script$as_nl$ac_script"
  3308. done
  3309. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3310. { ac_script=; unset ac_script;}
  3311. if test -z "$SED"; then
  3312. ac_path_SED_found=false
  3313. # Loop through the user's path and test for each of PROGNAME-LIST
  3314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3315. for as_dir in $PATH
  3316. do
  3317. IFS=$as_save_IFS
  3318. test -z "$as_dir" && as_dir=.
  3319. for ac_prog in sed gsed; do
  3320. for ac_exec_ext in '' $ac_executable_extensions; do
  3321. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3322. as_fn_executable_p "$ac_path_SED" || continue
  3323. # Check for GNU ac_path_SED and select it if it is found.
  3324. # Check for GNU $ac_path_SED
  3325. case `"$ac_path_SED" --version 2>&1` in
  3326. *GNU*)
  3327. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3328. *)
  3329. ac_count=0
  3330. $as_echo_n 0123456789 >"conftest.in"
  3331. while :
  3332. do
  3333. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3334. mv "conftest.tmp" "conftest.in"
  3335. cp "conftest.in" "conftest.nl"
  3336. $as_echo '' >> "conftest.nl"
  3337. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3338. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3339. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3340. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3341. # Best one so far, save it but keep looking for a better one
  3342. ac_cv_path_SED="$ac_path_SED"
  3343. ac_path_SED_max=$ac_count
  3344. fi
  3345. # 10*(2^10) chars as input seems more than enough
  3346. test $ac_count -gt 10 && break
  3347. done
  3348. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3349. esac
  3350. $ac_path_SED_found && break 3
  3351. done
  3352. done
  3353. done
  3354. IFS=$as_save_IFS
  3355. if test -z "$ac_cv_path_SED"; then
  3356. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3357. fi
  3358. else
  3359. ac_cv_path_SED=$SED
  3360. fi
  3361. fi
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3363. $as_echo "$ac_cv_path_SED" >&6; }
  3364. SED="$ac_cv_path_SED"
  3365. rm -f conftest.sed
  3366. test -z "$SED" && SED=sed
  3367. Xsed="$SED -e 1s/^X//"
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3369. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3370. if ${ac_cv_path_GREP+:} false; then :
  3371. $as_echo_n "(cached) " >&6
  3372. else
  3373. if test -z "$GREP"; then
  3374. ac_path_GREP_found=false
  3375. # Loop through the user's path and test for each of PROGNAME-LIST
  3376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3377. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3378. do
  3379. IFS=$as_save_IFS
  3380. test -z "$as_dir" && as_dir=.
  3381. for ac_prog in grep ggrep; do
  3382. for ac_exec_ext in '' $ac_executable_extensions; do
  3383. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3384. as_fn_executable_p "$ac_path_GREP" || continue
  3385. # Check for GNU ac_path_GREP and select it if it is found.
  3386. # Check for GNU $ac_path_GREP
  3387. case `"$ac_path_GREP" --version 2>&1` in
  3388. *GNU*)
  3389. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3390. *)
  3391. ac_count=0
  3392. $as_echo_n 0123456789 >"conftest.in"
  3393. while :
  3394. do
  3395. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3396. mv "conftest.tmp" "conftest.in"
  3397. cp "conftest.in" "conftest.nl"
  3398. $as_echo 'GREP' >> "conftest.nl"
  3399. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3400. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3401. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3402. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3403. # Best one so far, save it but keep looking for a better one
  3404. ac_cv_path_GREP="$ac_path_GREP"
  3405. ac_path_GREP_max=$ac_count
  3406. fi
  3407. # 10*(2^10) chars as input seems more than enough
  3408. test $ac_count -gt 10 && break
  3409. done
  3410. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3411. esac
  3412. $ac_path_GREP_found && break 3
  3413. done
  3414. done
  3415. done
  3416. IFS=$as_save_IFS
  3417. if test -z "$ac_cv_path_GREP"; then
  3418. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3419. fi
  3420. else
  3421. ac_cv_path_GREP=$GREP
  3422. fi
  3423. fi
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3425. $as_echo "$ac_cv_path_GREP" >&6; }
  3426. GREP="$ac_cv_path_GREP"
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3428. $as_echo_n "checking for egrep... " >&6; }
  3429. if ${ac_cv_path_EGREP+:} false; then :
  3430. $as_echo_n "(cached) " >&6
  3431. else
  3432. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3433. then ac_cv_path_EGREP="$GREP -E"
  3434. else
  3435. if test -z "$EGREP"; then
  3436. ac_path_EGREP_found=false
  3437. # Loop through the user's path and test for each of PROGNAME-LIST
  3438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3439. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3440. do
  3441. IFS=$as_save_IFS
  3442. test -z "$as_dir" && as_dir=.
  3443. for ac_prog in egrep; do
  3444. for ac_exec_ext in '' $ac_executable_extensions; do
  3445. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3446. as_fn_executable_p "$ac_path_EGREP" || continue
  3447. # Check for GNU ac_path_EGREP and select it if it is found.
  3448. # Check for GNU $ac_path_EGREP
  3449. case `"$ac_path_EGREP" --version 2>&1` in
  3450. *GNU*)
  3451. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3452. *)
  3453. ac_count=0
  3454. $as_echo_n 0123456789 >"conftest.in"
  3455. while :
  3456. do
  3457. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3458. mv "conftest.tmp" "conftest.in"
  3459. cp "conftest.in" "conftest.nl"
  3460. $as_echo 'EGREP' >> "conftest.nl"
  3461. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3462. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3463. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3464. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3465. # Best one so far, save it but keep looking for a better one
  3466. ac_cv_path_EGREP="$ac_path_EGREP"
  3467. ac_path_EGREP_max=$ac_count
  3468. fi
  3469. # 10*(2^10) chars as input seems more than enough
  3470. test $ac_count -gt 10 && break
  3471. done
  3472. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3473. esac
  3474. $ac_path_EGREP_found && break 3
  3475. done
  3476. done
  3477. done
  3478. IFS=$as_save_IFS
  3479. if test -z "$ac_cv_path_EGREP"; then
  3480. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3481. fi
  3482. else
  3483. ac_cv_path_EGREP=$EGREP
  3484. fi
  3485. fi
  3486. fi
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3488. $as_echo "$ac_cv_path_EGREP" >&6; }
  3489. EGREP="$ac_cv_path_EGREP"
  3490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3491. $as_echo_n "checking for fgrep... " >&6; }
  3492. if ${ac_cv_path_FGREP+:} false; then :
  3493. $as_echo_n "(cached) " >&6
  3494. else
  3495. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3496. then ac_cv_path_FGREP="$GREP -F"
  3497. else
  3498. if test -z "$FGREP"; then
  3499. ac_path_FGREP_found=false
  3500. # Loop through the user's path and test for each of PROGNAME-LIST
  3501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3502. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3503. do
  3504. IFS=$as_save_IFS
  3505. test -z "$as_dir" && as_dir=.
  3506. for ac_prog in fgrep; do
  3507. for ac_exec_ext in '' $ac_executable_extensions; do
  3508. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3509. as_fn_executable_p "$ac_path_FGREP" || continue
  3510. # Check for GNU ac_path_FGREP and select it if it is found.
  3511. # Check for GNU $ac_path_FGREP
  3512. case `"$ac_path_FGREP" --version 2>&1` in
  3513. *GNU*)
  3514. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3515. *)
  3516. ac_count=0
  3517. $as_echo_n 0123456789 >"conftest.in"
  3518. while :
  3519. do
  3520. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3521. mv "conftest.tmp" "conftest.in"
  3522. cp "conftest.in" "conftest.nl"
  3523. $as_echo 'FGREP' >> "conftest.nl"
  3524. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3525. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3526. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3527. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3528. # Best one so far, save it but keep looking for a better one
  3529. ac_cv_path_FGREP="$ac_path_FGREP"
  3530. ac_path_FGREP_max=$ac_count
  3531. fi
  3532. # 10*(2^10) chars as input seems more than enough
  3533. test $ac_count -gt 10 && break
  3534. done
  3535. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3536. esac
  3537. $ac_path_FGREP_found && break 3
  3538. done
  3539. done
  3540. done
  3541. IFS=$as_save_IFS
  3542. if test -z "$ac_cv_path_FGREP"; then
  3543. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3544. fi
  3545. else
  3546. ac_cv_path_FGREP=$FGREP
  3547. fi
  3548. fi
  3549. fi
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3551. $as_echo "$ac_cv_path_FGREP" >&6; }
  3552. FGREP="$ac_cv_path_FGREP"
  3553. test -z "$GREP" && GREP=grep
  3554. # Check whether --with-gnu-ld was given.
  3555. if test "${with_gnu_ld+set}" = set; then :
  3556. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3557. else
  3558. with_gnu_ld=no
  3559. fi
  3560. ac_prog=ld
  3561. if test "$GCC" = yes; then
  3562. # Check if gcc -print-prog-name=ld gives a path.
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3564. $as_echo_n "checking for ld used by $CC... " >&6; }
  3565. case $host in
  3566. *-*-mingw*)
  3567. # gcc leaves a trailing carriage return which upsets mingw
  3568. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3569. *)
  3570. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3571. esac
  3572. case $ac_prog in
  3573. # Accept absolute paths.
  3574. [\\/]* | ?:[\\/]*)
  3575. re_direlt='/[^/][^/]*/\.\./'
  3576. # Canonicalize the pathname of ld
  3577. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3578. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3579. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3580. done
  3581. test -z "$LD" && LD="$ac_prog"
  3582. ;;
  3583. "")
  3584. # If it fails, then pretend we aren't using GCC.
  3585. ac_prog=ld
  3586. ;;
  3587. *)
  3588. # If it is relative, then search for the first ld in PATH.
  3589. with_gnu_ld=unknown
  3590. ;;
  3591. esac
  3592. elif test "$with_gnu_ld" = yes; then
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3594. $as_echo_n "checking for GNU ld... " >&6; }
  3595. else
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3597. $as_echo_n "checking for non-GNU ld... " >&6; }
  3598. fi
  3599. if ${lt_cv_path_LD+:} false; then :
  3600. $as_echo_n "(cached) " >&6
  3601. else
  3602. if test -z "$LD"; then
  3603. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3604. for ac_dir in $PATH; do
  3605. IFS="$lt_save_ifs"
  3606. test -z "$ac_dir" && ac_dir=.
  3607. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3608. lt_cv_path_LD="$ac_dir/$ac_prog"
  3609. # Check to see if the program is GNU ld. I'd rather use --version,
  3610. # but apparently some variants of GNU ld only accept -v.
  3611. # Break only if it was the GNU/non-GNU ld that we prefer.
  3612. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3613. *GNU* | *'with BFD'*)
  3614. test "$with_gnu_ld" != no && break
  3615. ;;
  3616. *)
  3617. test "$with_gnu_ld" != yes && break
  3618. ;;
  3619. esac
  3620. fi
  3621. done
  3622. IFS="$lt_save_ifs"
  3623. else
  3624. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3625. fi
  3626. fi
  3627. LD="$lt_cv_path_LD"
  3628. if test -n "$LD"; then
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3630. $as_echo "$LD" >&6; }
  3631. else
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3633. $as_echo "no" >&6; }
  3634. fi
  3635. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3637. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3638. if ${lt_cv_prog_gnu_ld+:} false; then :
  3639. $as_echo_n "(cached) " >&6
  3640. else
  3641. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3642. case `$LD -v 2>&1 </dev/null` in
  3643. *GNU* | *'with BFD'*)
  3644. lt_cv_prog_gnu_ld=yes
  3645. ;;
  3646. *)
  3647. lt_cv_prog_gnu_ld=no
  3648. ;;
  3649. esac
  3650. fi
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3652. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3653. with_gnu_ld=$lt_cv_prog_gnu_ld
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3655. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3656. if ${lt_cv_path_NM+:} false; then :
  3657. $as_echo_n "(cached) " >&6
  3658. else
  3659. if test -n "$NM"; then
  3660. # Let the user override the test.
  3661. lt_cv_path_NM="$NM"
  3662. else
  3663. lt_nm_to_check="${ac_tool_prefix}nm"
  3664. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3665. lt_nm_to_check="$lt_nm_to_check nm"
  3666. fi
  3667. for lt_tmp_nm in $lt_nm_to_check; do
  3668. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3669. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3670. IFS="$lt_save_ifs"
  3671. test -z "$ac_dir" && ac_dir=.
  3672. tmp_nm="$ac_dir/$lt_tmp_nm"
  3673. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3674. # Check to see if the nm accepts a BSD-compat flag.
  3675. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3676. # nm: unknown option "B" ignored
  3677. # Tru64's nm complains that /dev/null is an invalid object file
  3678. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3679. */dev/null* | *'Invalid file or object type'*)
  3680. lt_cv_path_NM="$tmp_nm -B"
  3681. break
  3682. ;;
  3683. *)
  3684. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3685. */dev/null*)
  3686. lt_cv_path_NM="$tmp_nm -p"
  3687. break
  3688. ;;
  3689. *)
  3690. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3691. continue # so that we can try to find one that supports BSD flags
  3692. ;;
  3693. esac
  3694. ;;
  3695. esac
  3696. fi
  3697. done
  3698. IFS="$lt_save_ifs"
  3699. done
  3700. : ${lt_cv_path_NM=no}
  3701. fi
  3702. fi
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3704. $as_echo "$lt_cv_path_NM" >&6; }
  3705. if test "$lt_cv_path_NM" != "no"; then
  3706. NM="$lt_cv_path_NM"
  3707. else
  3708. # Didn't find any BSD compatible name lister, look for dumpbin.
  3709. if test -n "$DUMPBIN"; then :
  3710. # Let the user override the test.
  3711. else
  3712. if test -n "$ac_tool_prefix"; then
  3713. for ac_prog in dumpbin "link -dump"
  3714. do
  3715. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3716. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3718. $as_echo_n "checking for $ac_word... " >&6; }
  3719. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3720. $as_echo_n "(cached) " >&6
  3721. else
  3722. if test -n "$DUMPBIN"; then
  3723. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3724. else
  3725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3726. for as_dir in $PATH
  3727. do
  3728. IFS=$as_save_IFS
  3729. test -z "$as_dir" && as_dir=.
  3730. for ac_exec_ext in '' $ac_executable_extensions; do
  3731. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3732. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3734. break 2
  3735. fi
  3736. done
  3737. done
  3738. IFS=$as_save_IFS
  3739. fi
  3740. fi
  3741. DUMPBIN=$ac_cv_prog_DUMPBIN
  3742. if test -n "$DUMPBIN"; then
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3744. $as_echo "$DUMPBIN" >&6; }
  3745. else
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3747. $as_echo "no" >&6; }
  3748. fi
  3749. test -n "$DUMPBIN" && break
  3750. done
  3751. fi
  3752. if test -z "$DUMPBIN"; then
  3753. ac_ct_DUMPBIN=$DUMPBIN
  3754. for ac_prog in dumpbin "link -dump"
  3755. do
  3756. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3757. set dummy $ac_prog; ac_word=$2
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3759. $as_echo_n "checking for $ac_word... " >&6; }
  3760. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3761. $as_echo_n "(cached) " >&6
  3762. else
  3763. if test -n "$ac_ct_DUMPBIN"; then
  3764. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3765. else
  3766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3767. for as_dir in $PATH
  3768. do
  3769. IFS=$as_save_IFS
  3770. test -z "$as_dir" && as_dir=.
  3771. for ac_exec_ext in '' $ac_executable_extensions; do
  3772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3773. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3775. break 2
  3776. fi
  3777. done
  3778. done
  3779. IFS=$as_save_IFS
  3780. fi
  3781. fi
  3782. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3783. if test -n "$ac_ct_DUMPBIN"; then
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3785. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3786. else
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3788. $as_echo "no" >&6; }
  3789. fi
  3790. test -n "$ac_ct_DUMPBIN" && break
  3791. done
  3792. if test "x$ac_ct_DUMPBIN" = x; then
  3793. DUMPBIN=":"
  3794. else
  3795. case $cross_compiling:$ac_tool_warned in
  3796. yes:)
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3798. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3799. ac_tool_warned=yes ;;
  3800. esac
  3801. DUMPBIN=$ac_ct_DUMPBIN
  3802. fi
  3803. fi
  3804. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3805. *COFF*)
  3806. DUMPBIN="$DUMPBIN -symbols"
  3807. ;;
  3808. *)
  3809. DUMPBIN=:
  3810. ;;
  3811. esac
  3812. fi
  3813. if test "$DUMPBIN" != ":"; then
  3814. NM="$DUMPBIN"
  3815. fi
  3816. fi
  3817. test -z "$NM" && NM=nm
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3819. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3820. if ${lt_cv_nm_interface+:} false; then :
  3821. $as_echo_n "(cached) " >&6
  3822. else
  3823. lt_cv_nm_interface="BSD nm"
  3824. echo "int some_variable = 0;" > conftest.$ac_ext
  3825. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3826. (eval "$ac_compile" 2>conftest.err)
  3827. cat conftest.err >&5
  3828. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3829. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3830. cat conftest.err >&5
  3831. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3832. cat conftest.out >&5
  3833. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3834. lt_cv_nm_interface="MS dumpbin"
  3835. fi
  3836. rm -f conftest*
  3837. fi
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3839. $as_echo "$lt_cv_nm_interface" >&6; }
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3841. $as_echo_n "checking whether ln -s works... " >&6; }
  3842. LN_S=$as_ln_s
  3843. if test "$LN_S" = "ln -s"; then
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3845. $as_echo "yes" >&6; }
  3846. else
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3848. $as_echo "no, using $LN_S" >&6; }
  3849. fi
  3850. # find the maximum length of command line arguments
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3852. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3853. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3854. $as_echo_n "(cached) " >&6
  3855. else
  3856. i=0
  3857. teststring="ABCD"
  3858. case $build_os in
  3859. msdosdjgpp*)
  3860. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3861. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3862. # during glob expansion). Even if it were fixed, the result of this
  3863. # check would be larger than it should be.
  3864. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3865. ;;
  3866. gnu*)
  3867. # Under GNU Hurd, this test is not required because there is
  3868. # no limit to the length of command line arguments.
  3869. # Libtool will interpret -1 as no limit whatsoever
  3870. lt_cv_sys_max_cmd_len=-1;
  3871. ;;
  3872. cygwin* | mingw* | cegcc*)
  3873. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3874. # about 5 minutes as the teststring grows exponentially.
  3875. # Worse, since 9x/ME are not pre-emptively multitasking,
  3876. # you end up with a "frozen" computer, even though with patience
  3877. # the test eventually succeeds (with a max line length of 256k).
  3878. # Instead, let's just punt: use the minimum linelength reported by
  3879. # all of the supported platforms: 8192 (on NT/2K/XP).
  3880. lt_cv_sys_max_cmd_len=8192;
  3881. ;;
  3882. mint*)
  3883. # On MiNT this can take a long time and run out of memory.
  3884. lt_cv_sys_max_cmd_len=8192;
  3885. ;;
  3886. amigaos*)
  3887. # On AmigaOS with pdksh, this test takes hours, literally.
  3888. # So we just punt and use a minimum line length of 8192.
  3889. lt_cv_sys_max_cmd_len=8192;
  3890. ;;
  3891. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3892. # This has been around since 386BSD, at least. Likely further.
  3893. if test -x /sbin/sysctl; then
  3894. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3895. elif test -x /usr/sbin/sysctl; then
  3896. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3897. else
  3898. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3899. fi
  3900. # And add a safety zone
  3901. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3902. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3903. ;;
  3904. interix*)
  3905. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3906. lt_cv_sys_max_cmd_len=196608
  3907. ;;
  3908. os2*)
  3909. # The test takes a long time on OS/2.
  3910. lt_cv_sys_max_cmd_len=8192
  3911. ;;
  3912. osf*)
  3913. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3914. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3915. # nice to cause kernel panics so lets avoid the loop below.
  3916. # First set a reasonable default.
  3917. lt_cv_sys_max_cmd_len=16384
  3918. #
  3919. if test -x /sbin/sysconfig; then
  3920. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3921. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3922. esac
  3923. fi
  3924. ;;
  3925. sco3.2v5*)
  3926. lt_cv_sys_max_cmd_len=102400
  3927. ;;
  3928. sysv5* | sco5v6* | sysv4.2uw2*)
  3929. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3930. if test -n "$kargmax"; then
  3931. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3932. else
  3933. lt_cv_sys_max_cmd_len=32768
  3934. fi
  3935. ;;
  3936. *)
  3937. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3938. if test -n "$lt_cv_sys_max_cmd_len"; then
  3939. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3940. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3941. else
  3942. # Make teststring a little bigger before we do anything with it.
  3943. # a 1K string should be a reasonable start.
  3944. for i in 1 2 3 4 5 6 7 8 ; do
  3945. teststring=$teststring$teststring
  3946. done
  3947. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3948. # If test is not a shell built-in, we'll probably end up computing a
  3949. # maximum length that is only half of the actual maximum length, but
  3950. # we can't tell.
  3951. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3952. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3953. test $i != 17 # 1/2 MB should be enough
  3954. do
  3955. i=`expr $i + 1`
  3956. teststring=$teststring$teststring
  3957. done
  3958. # Only check the string length outside the loop.
  3959. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3960. teststring=
  3961. # Add a significant safety factor because C++ compilers can tack on
  3962. # massive amounts of additional arguments before passing them to the
  3963. # linker. It appears as though 1/2 is a usable value.
  3964. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3965. fi
  3966. ;;
  3967. esac
  3968. fi
  3969. if test -n $lt_cv_sys_max_cmd_len ; then
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3971. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3972. else
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3974. $as_echo "none" >&6; }
  3975. fi
  3976. max_cmd_len=$lt_cv_sys_max_cmd_len
  3977. : ${CP="cp -f"}
  3978. : ${MV="mv -f"}
  3979. : ${RM="rm -f"}
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3981. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3982. # Try some XSI features
  3983. xsi_shell=no
  3984. ( _lt_dummy="a/b/c"
  3985. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  3986. = c,a/b,b/c, \
  3987. && eval 'test $(( 1 + 1 )) -eq 2 \
  3988. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3989. && xsi_shell=yes
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  3991. $as_echo "$xsi_shell" >&6; }
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  3993. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  3994. lt_shell_append=no
  3995. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  3996. >/dev/null 2>&1 \
  3997. && lt_shell_append=yes
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  3999. $as_echo "$lt_shell_append" >&6; }
  4000. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4001. lt_unset=unset
  4002. else
  4003. lt_unset=false
  4004. fi
  4005. # test EBCDIC or ASCII
  4006. case `echo X|tr X '\101'` in
  4007. A) # ASCII based system
  4008. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4009. lt_SP2NL='tr \040 \012'
  4010. lt_NL2SP='tr \015\012 \040\040'
  4011. ;;
  4012. *) # EBCDIC based system
  4013. lt_SP2NL='tr \100 \n'
  4014. lt_NL2SP='tr \r\n \100\100'
  4015. ;;
  4016. esac
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4018. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4019. if ${lt_cv_to_host_file_cmd+:} false; then :
  4020. $as_echo_n "(cached) " >&6
  4021. else
  4022. case $host in
  4023. *-*-mingw* )
  4024. case $build in
  4025. *-*-mingw* ) # actually msys
  4026. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4027. ;;
  4028. *-*-cygwin* )
  4029. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4030. ;;
  4031. * ) # otherwise, assume *nix
  4032. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4033. ;;
  4034. esac
  4035. ;;
  4036. *-*-cygwin* )
  4037. case $build in
  4038. *-*-mingw* ) # actually msys
  4039. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4040. ;;
  4041. *-*-cygwin* )
  4042. lt_cv_to_host_file_cmd=func_convert_file_noop
  4043. ;;
  4044. * ) # otherwise, assume *nix
  4045. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4046. ;;
  4047. esac
  4048. ;;
  4049. * ) # unhandled hosts (and "normal" native builds)
  4050. lt_cv_to_host_file_cmd=func_convert_file_noop
  4051. ;;
  4052. esac
  4053. fi
  4054. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4056. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4058. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4059. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4060. $as_echo_n "(cached) " >&6
  4061. else
  4062. #assume ordinary cross tools, or native build.
  4063. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4064. case $host in
  4065. *-*-mingw* )
  4066. case $build in
  4067. *-*-mingw* ) # actually msys
  4068. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4069. ;;
  4070. esac
  4071. ;;
  4072. esac
  4073. fi
  4074. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4076. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4078. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4079. if ${lt_cv_ld_reload_flag+:} false; then :
  4080. $as_echo_n "(cached) " >&6
  4081. else
  4082. lt_cv_ld_reload_flag='-r'
  4083. fi
  4084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4085. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4086. reload_flag=$lt_cv_ld_reload_flag
  4087. case $reload_flag in
  4088. "" | " "*) ;;
  4089. *) reload_flag=" $reload_flag" ;;
  4090. esac
  4091. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4092. case $host_os in
  4093. cygwin* | mingw* | pw32* | cegcc*)
  4094. if test "$GCC" != yes; then
  4095. reload_cmds=false
  4096. fi
  4097. ;;
  4098. darwin*)
  4099. if test "$GCC" = yes; then
  4100. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4101. else
  4102. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4103. fi
  4104. ;;
  4105. esac
  4106. if test -n "$ac_tool_prefix"; then
  4107. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4108. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4110. $as_echo_n "checking for $ac_word... " >&6; }
  4111. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4112. $as_echo_n "(cached) " >&6
  4113. else
  4114. if test -n "$OBJDUMP"; then
  4115. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4116. else
  4117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4118. for as_dir in $PATH
  4119. do
  4120. IFS=$as_save_IFS
  4121. test -z "$as_dir" && as_dir=.
  4122. for ac_exec_ext in '' $ac_executable_extensions; do
  4123. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4124. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4125. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4126. break 2
  4127. fi
  4128. done
  4129. done
  4130. IFS=$as_save_IFS
  4131. fi
  4132. fi
  4133. OBJDUMP=$ac_cv_prog_OBJDUMP
  4134. if test -n "$OBJDUMP"; then
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4136. $as_echo "$OBJDUMP" >&6; }
  4137. else
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4139. $as_echo "no" >&6; }
  4140. fi
  4141. fi
  4142. if test -z "$ac_cv_prog_OBJDUMP"; then
  4143. ac_ct_OBJDUMP=$OBJDUMP
  4144. # Extract the first word of "objdump", so it can be a program name with args.
  4145. set dummy objdump; ac_word=$2
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4147. $as_echo_n "checking for $ac_word... " >&6; }
  4148. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4149. $as_echo_n "(cached) " >&6
  4150. else
  4151. if test -n "$ac_ct_OBJDUMP"; then
  4152. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4153. else
  4154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4155. for as_dir in $PATH
  4156. do
  4157. IFS=$as_save_IFS
  4158. test -z "$as_dir" && as_dir=.
  4159. for ac_exec_ext in '' $ac_executable_extensions; do
  4160. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4161. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4163. break 2
  4164. fi
  4165. done
  4166. done
  4167. IFS=$as_save_IFS
  4168. fi
  4169. fi
  4170. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4171. if test -n "$ac_ct_OBJDUMP"; then
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4173. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4174. else
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4176. $as_echo "no" >&6; }
  4177. fi
  4178. if test "x$ac_ct_OBJDUMP" = x; then
  4179. OBJDUMP="false"
  4180. else
  4181. case $cross_compiling:$ac_tool_warned in
  4182. yes:)
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4184. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4185. ac_tool_warned=yes ;;
  4186. esac
  4187. OBJDUMP=$ac_ct_OBJDUMP
  4188. fi
  4189. else
  4190. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4191. fi
  4192. test -z "$OBJDUMP" && OBJDUMP=objdump
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4194. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4195. if ${lt_cv_deplibs_check_method+:} false; then :
  4196. $as_echo_n "(cached) " >&6
  4197. else
  4198. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4199. lt_cv_file_magic_test_file=
  4200. lt_cv_deplibs_check_method='unknown'
  4201. # Need to set the preceding variable on all platforms that support
  4202. # interlibrary dependencies.
  4203. # 'none' -- dependencies not supported.
  4204. # `unknown' -- same as none, but documents that we really don't know.
  4205. # 'pass_all' -- all dependencies passed with no checks.
  4206. # 'test_compile' -- check by making test program.
  4207. # 'file_magic [[regex]]' -- check by looking for files in library path
  4208. # which responds to the $file_magic_cmd with a given extended regex.
  4209. # If you have `file' or equivalent on your system and you're not sure
  4210. # whether `pass_all' will *always* work, you probably want this one.
  4211. case $host_os in
  4212. aix[4-9]*)
  4213. lt_cv_deplibs_check_method=pass_all
  4214. ;;
  4215. beos*)
  4216. lt_cv_deplibs_check_method=pass_all
  4217. ;;
  4218. bsdi[45]*)
  4219. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4220. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4221. lt_cv_file_magic_test_file=/shlib/libc.so
  4222. ;;
  4223. cygwin*)
  4224. # func_win32_libid is a shell function defined in ltmain.sh
  4225. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4226. lt_cv_file_magic_cmd='func_win32_libid'
  4227. lt_cv_deplibs_check_method=pass_all
  4228. ;;
  4229. mingw* | pw32*)
  4230. # Base MSYS/MinGW do not provide the 'file' command needed by
  4231. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4232. # unless we find 'file', for example because we are cross-compiling.
  4233. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4234. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4235. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4236. lt_cv_file_magic_cmd='func_win32_libid'
  4237. else
  4238. # Keep this pattern in sync with the one in func_win32_libid.
  4239. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4240. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4241. fi
  4242. lt_cv_deplibs_check_method=pass_all
  4243. ;;
  4244. cegcc*)
  4245. # use the weaker test based on 'objdump'. See mingw*.
  4246. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4247. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4248. ;;
  4249. darwin* | rhapsody*)
  4250. lt_cv_deplibs_check_method=pass_all
  4251. ;;
  4252. freebsd* | dragonfly*)
  4253. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4254. case $host_cpu in
  4255. i*86 )
  4256. # Not sure whether the presence of OpenBSD here was a mistake.
  4257. # Let's accept both of them until this is cleared up.
  4258. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4259. lt_cv_file_magic_cmd=/usr/bin/file
  4260. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4261. ;;
  4262. esac
  4263. else
  4264. lt_cv_deplibs_check_method=pass_all
  4265. fi
  4266. ;;
  4267. gnu*)
  4268. lt_cv_deplibs_check_method=pass_all
  4269. ;;
  4270. haiku*)
  4271. lt_cv_deplibs_check_method=pass_all
  4272. ;;
  4273. hpux10.20* | hpux11*)
  4274. lt_cv_file_magic_cmd=/usr/bin/file
  4275. case $host_cpu in
  4276. ia64*)
  4277. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4278. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4279. ;;
  4280. hppa*64*)
  4281. 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]'
  4282. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4283. ;;
  4284. *)
  4285. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4286. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4287. ;;
  4288. esac
  4289. ;;
  4290. interix[3-9]*)
  4291. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4292. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4293. ;;
  4294. irix5* | irix6* | nonstopux*)
  4295. case $LD in
  4296. *-32|*"-32 ") libmagic=32-bit;;
  4297. *-n32|*"-n32 ") libmagic=N32;;
  4298. *-64|*"-64 ") libmagic=64-bit;;
  4299. *) libmagic=never-match;;
  4300. esac
  4301. lt_cv_deplibs_check_method=pass_all
  4302. ;;
  4303. # This must be glibc/ELF.
  4304. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4305. lt_cv_deplibs_check_method=pass_all
  4306. ;;
  4307. netbsd*)
  4308. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4309. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4310. else
  4311. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4312. fi
  4313. ;;
  4314. newos6*)
  4315. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4316. lt_cv_file_magic_cmd=/usr/bin/file
  4317. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4318. ;;
  4319. *nto* | *qnx*)
  4320. lt_cv_deplibs_check_method=pass_all
  4321. ;;
  4322. openbsd*)
  4323. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4324. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4325. else
  4326. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4327. fi
  4328. ;;
  4329. osf3* | osf4* | osf5*)
  4330. lt_cv_deplibs_check_method=pass_all
  4331. ;;
  4332. rdos*)
  4333. lt_cv_deplibs_check_method=pass_all
  4334. ;;
  4335. solaris*)
  4336. lt_cv_deplibs_check_method=pass_all
  4337. ;;
  4338. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4339. lt_cv_deplibs_check_method=pass_all
  4340. ;;
  4341. sysv4 | sysv4.3*)
  4342. case $host_vendor in
  4343. motorola)
  4344. 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]'
  4345. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4346. ;;
  4347. ncr)
  4348. lt_cv_deplibs_check_method=pass_all
  4349. ;;
  4350. sequent)
  4351. lt_cv_file_magic_cmd='/bin/file'
  4352. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4353. ;;
  4354. sni)
  4355. lt_cv_file_magic_cmd='/bin/file'
  4356. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4357. lt_cv_file_magic_test_file=/lib/libc.so
  4358. ;;
  4359. siemens)
  4360. lt_cv_deplibs_check_method=pass_all
  4361. ;;
  4362. pc)
  4363. lt_cv_deplibs_check_method=pass_all
  4364. ;;
  4365. esac
  4366. ;;
  4367. tpf*)
  4368. lt_cv_deplibs_check_method=pass_all
  4369. ;;
  4370. esac
  4371. fi
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4373. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4374. file_magic_glob=
  4375. want_nocaseglob=no
  4376. if test "$build" = "$host"; then
  4377. case $host_os in
  4378. mingw* | pw32*)
  4379. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4380. want_nocaseglob=yes
  4381. else
  4382. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4383. fi
  4384. ;;
  4385. esac
  4386. fi
  4387. file_magic_cmd=$lt_cv_file_magic_cmd
  4388. deplibs_check_method=$lt_cv_deplibs_check_method
  4389. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4390. if test -n "$ac_tool_prefix"; then
  4391. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4392. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4394. $as_echo_n "checking for $ac_word... " >&6; }
  4395. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4396. $as_echo_n "(cached) " >&6
  4397. else
  4398. if test -n "$DLLTOOL"; then
  4399. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4400. else
  4401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4402. for as_dir in $PATH
  4403. do
  4404. IFS=$as_save_IFS
  4405. test -z "$as_dir" && as_dir=.
  4406. for ac_exec_ext in '' $ac_executable_extensions; do
  4407. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4408. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4409. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4410. break 2
  4411. fi
  4412. done
  4413. done
  4414. IFS=$as_save_IFS
  4415. fi
  4416. fi
  4417. DLLTOOL=$ac_cv_prog_DLLTOOL
  4418. if test -n "$DLLTOOL"; then
  4419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4420. $as_echo "$DLLTOOL" >&6; }
  4421. else
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4423. $as_echo "no" >&6; }
  4424. fi
  4425. fi
  4426. if test -z "$ac_cv_prog_DLLTOOL"; then
  4427. ac_ct_DLLTOOL=$DLLTOOL
  4428. # Extract the first word of "dlltool", so it can be a program name with args.
  4429. set dummy dlltool; ac_word=$2
  4430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4431. $as_echo_n "checking for $ac_word... " >&6; }
  4432. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4433. $as_echo_n "(cached) " >&6
  4434. else
  4435. if test -n "$ac_ct_DLLTOOL"; then
  4436. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4437. else
  4438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4439. for as_dir in $PATH
  4440. do
  4441. IFS=$as_save_IFS
  4442. test -z "$as_dir" && as_dir=.
  4443. for ac_exec_ext in '' $ac_executable_extensions; do
  4444. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4445. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4446. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4447. break 2
  4448. fi
  4449. done
  4450. done
  4451. IFS=$as_save_IFS
  4452. fi
  4453. fi
  4454. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4455. if test -n "$ac_ct_DLLTOOL"; then
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4457. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4458. else
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4460. $as_echo "no" >&6; }
  4461. fi
  4462. if test "x$ac_ct_DLLTOOL" = x; then
  4463. DLLTOOL="false"
  4464. else
  4465. case $cross_compiling:$ac_tool_warned in
  4466. yes:)
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4468. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4469. ac_tool_warned=yes ;;
  4470. esac
  4471. DLLTOOL=$ac_ct_DLLTOOL
  4472. fi
  4473. else
  4474. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4475. fi
  4476. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4478. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4479. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4480. $as_echo_n "(cached) " >&6
  4481. else
  4482. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4483. case $host_os in
  4484. cygwin* | mingw* | pw32* | cegcc*)
  4485. # two different shell functions defined in ltmain.sh
  4486. # decide which to use based on capabilities of $DLLTOOL
  4487. case `$DLLTOOL --help 2>&1` in
  4488. *--identify-strict*)
  4489. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4490. ;;
  4491. *)
  4492. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4493. ;;
  4494. esac
  4495. ;;
  4496. *)
  4497. # fallback: assume linklib IS sharedlib
  4498. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4499. ;;
  4500. esac
  4501. fi
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4503. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4504. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4505. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4506. if test -n "$ac_tool_prefix"; then
  4507. for ac_prog in ar
  4508. do
  4509. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4510. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4512. $as_echo_n "checking for $ac_word... " >&6; }
  4513. if ${ac_cv_prog_AR+:} false; then :
  4514. $as_echo_n "(cached) " >&6
  4515. else
  4516. if test -n "$AR"; then
  4517. ac_cv_prog_AR="$AR" # Let the user override the test.
  4518. else
  4519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4520. for as_dir in $PATH
  4521. do
  4522. IFS=$as_save_IFS
  4523. test -z "$as_dir" && as_dir=.
  4524. for ac_exec_ext in '' $ac_executable_extensions; do
  4525. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4526. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4527. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4528. break 2
  4529. fi
  4530. done
  4531. done
  4532. IFS=$as_save_IFS
  4533. fi
  4534. fi
  4535. AR=$ac_cv_prog_AR
  4536. if test -n "$AR"; then
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4538. $as_echo "$AR" >&6; }
  4539. else
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4541. $as_echo "no" >&6; }
  4542. fi
  4543. test -n "$AR" && break
  4544. done
  4545. fi
  4546. if test -z "$AR"; then
  4547. ac_ct_AR=$AR
  4548. for ac_prog in ar
  4549. do
  4550. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4551. set dummy $ac_prog; ac_word=$2
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4553. $as_echo_n "checking for $ac_word... " >&6; }
  4554. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4555. $as_echo_n "(cached) " >&6
  4556. else
  4557. if test -n "$ac_ct_AR"; then
  4558. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4559. else
  4560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4561. for as_dir in $PATH
  4562. do
  4563. IFS=$as_save_IFS
  4564. test -z "$as_dir" && as_dir=.
  4565. for ac_exec_ext in '' $ac_executable_extensions; do
  4566. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4567. ac_cv_prog_ac_ct_AR="$ac_prog"
  4568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4569. break 2
  4570. fi
  4571. done
  4572. done
  4573. IFS=$as_save_IFS
  4574. fi
  4575. fi
  4576. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4577. if test -n "$ac_ct_AR"; then
  4578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4579. $as_echo "$ac_ct_AR" >&6; }
  4580. else
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4582. $as_echo "no" >&6; }
  4583. fi
  4584. test -n "$ac_ct_AR" && break
  4585. done
  4586. if test "x$ac_ct_AR" = x; then
  4587. AR="false"
  4588. else
  4589. case $cross_compiling:$ac_tool_warned in
  4590. yes:)
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4592. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4593. ac_tool_warned=yes ;;
  4594. esac
  4595. AR=$ac_ct_AR
  4596. fi
  4597. fi
  4598. : ${AR=ar}
  4599. : ${AR_FLAGS=cru}
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4601. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4602. if ${lt_cv_ar_at_file+:} false; then :
  4603. $as_echo_n "(cached) " >&6
  4604. else
  4605. lt_cv_ar_at_file=no
  4606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4607. /* end confdefs.h. */
  4608. int
  4609. main ()
  4610. {
  4611. ;
  4612. return 0;
  4613. }
  4614. _ACEOF
  4615. if ac_fn_c_try_compile "$LINENO"; then :
  4616. echo conftest.$ac_objext > conftest.lst
  4617. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4618. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4619. (eval $lt_ar_try) 2>&5
  4620. ac_status=$?
  4621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4622. test $ac_status = 0; }
  4623. if test "$ac_status" -eq 0; then
  4624. # Ensure the archiver fails upon bogus file names.
  4625. rm -f conftest.$ac_objext libconftest.a
  4626. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4627. (eval $lt_ar_try) 2>&5
  4628. ac_status=$?
  4629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4630. test $ac_status = 0; }
  4631. if test "$ac_status" -ne 0; then
  4632. lt_cv_ar_at_file=@
  4633. fi
  4634. fi
  4635. rm -f conftest.* libconftest.a
  4636. fi
  4637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4638. fi
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4640. $as_echo "$lt_cv_ar_at_file" >&6; }
  4641. if test "x$lt_cv_ar_at_file" = xno; then
  4642. archiver_list_spec=
  4643. else
  4644. archiver_list_spec=$lt_cv_ar_at_file
  4645. fi
  4646. if test -n "$ac_tool_prefix"; then
  4647. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4648. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4650. $as_echo_n "checking for $ac_word... " >&6; }
  4651. if ${ac_cv_prog_STRIP+:} false; then :
  4652. $as_echo_n "(cached) " >&6
  4653. else
  4654. if test -n "$STRIP"; then
  4655. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4656. else
  4657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4658. for as_dir in $PATH
  4659. do
  4660. IFS=$as_save_IFS
  4661. test -z "$as_dir" && as_dir=.
  4662. for ac_exec_ext in '' $ac_executable_extensions; do
  4663. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4664. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4666. break 2
  4667. fi
  4668. done
  4669. done
  4670. IFS=$as_save_IFS
  4671. fi
  4672. fi
  4673. STRIP=$ac_cv_prog_STRIP
  4674. if test -n "$STRIP"; then
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4676. $as_echo "$STRIP" >&6; }
  4677. else
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4679. $as_echo "no" >&6; }
  4680. fi
  4681. fi
  4682. if test -z "$ac_cv_prog_STRIP"; then
  4683. ac_ct_STRIP=$STRIP
  4684. # Extract the first word of "strip", so it can be a program name with args.
  4685. set dummy strip; ac_word=$2
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4687. $as_echo_n "checking for $ac_word... " >&6; }
  4688. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4689. $as_echo_n "(cached) " >&6
  4690. else
  4691. if test -n "$ac_ct_STRIP"; then
  4692. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4693. else
  4694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4695. for as_dir in $PATH
  4696. do
  4697. IFS=$as_save_IFS
  4698. test -z "$as_dir" && as_dir=.
  4699. for ac_exec_ext in '' $ac_executable_extensions; do
  4700. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4701. ac_cv_prog_ac_ct_STRIP="strip"
  4702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4703. break 2
  4704. fi
  4705. done
  4706. done
  4707. IFS=$as_save_IFS
  4708. fi
  4709. fi
  4710. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4711. if test -n "$ac_ct_STRIP"; then
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4713. $as_echo "$ac_ct_STRIP" >&6; }
  4714. else
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4716. $as_echo "no" >&6; }
  4717. fi
  4718. if test "x$ac_ct_STRIP" = x; then
  4719. STRIP=":"
  4720. else
  4721. case $cross_compiling:$ac_tool_warned in
  4722. yes:)
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4724. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4725. ac_tool_warned=yes ;;
  4726. esac
  4727. STRIP=$ac_ct_STRIP
  4728. fi
  4729. else
  4730. STRIP="$ac_cv_prog_STRIP"
  4731. fi
  4732. test -z "$STRIP" && STRIP=:
  4733. if test -n "$ac_tool_prefix"; then
  4734. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4735. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4737. $as_echo_n "checking for $ac_word... " >&6; }
  4738. if ${ac_cv_prog_RANLIB+:} false; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. if test -n "$RANLIB"; then
  4742. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4743. else
  4744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4745. for as_dir in $PATH
  4746. do
  4747. IFS=$as_save_IFS
  4748. test -z "$as_dir" && as_dir=.
  4749. for ac_exec_ext in '' $ac_executable_extensions; do
  4750. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4751. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4753. break 2
  4754. fi
  4755. done
  4756. done
  4757. IFS=$as_save_IFS
  4758. fi
  4759. fi
  4760. RANLIB=$ac_cv_prog_RANLIB
  4761. if test -n "$RANLIB"; then
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4763. $as_echo "$RANLIB" >&6; }
  4764. else
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4766. $as_echo "no" >&6; }
  4767. fi
  4768. fi
  4769. if test -z "$ac_cv_prog_RANLIB"; then
  4770. ac_ct_RANLIB=$RANLIB
  4771. # Extract the first word of "ranlib", so it can be a program name with args.
  4772. set dummy ranlib; ac_word=$2
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4774. $as_echo_n "checking for $ac_word... " >&6; }
  4775. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4776. $as_echo_n "(cached) " >&6
  4777. else
  4778. if test -n "$ac_ct_RANLIB"; then
  4779. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4780. else
  4781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4782. for as_dir in $PATH
  4783. do
  4784. IFS=$as_save_IFS
  4785. test -z "$as_dir" && as_dir=.
  4786. for ac_exec_ext in '' $ac_executable_extensions; do
  4787. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4788. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4790. break 2
  4791. fi
  4792. done
  4793. done
  4794. IFS=$as_save_IFS
  4795. fi
  4796. fi
  4797. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4798. if test -n "$ac_ct_RANLIB"; then
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4800. $as_echo "$ac_ct_RANLIB" >&6; }
  4801. else
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4803. $as_echo "no" >&6; }
  4804. fi
  4805. if test "x$ac_ct_RANLIB" = x; then
  4806. RANLIB=":"
  4807. else
  4808. case $cross_compiling:$ac_tool_warned in
  4809. yes:)
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4811. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4812. ac_tool_warned=yes ;;
  4813. esac
  4814. RANLIB=$ac_ct_RANLIB
  4815. fi
  4816. else
  4817. RANLIB="$ac_cv_prog_RANLIB"
  4818. fi
  4819. test -z "$RANLIB" && RANLIB=:
  4820. # Determine commands to create old-style static archives.
  4821. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4822. old_postinstall_cmds='chmod 644 $oldlib'
  4823. old_postuninstall_cmds=
  4824. if test -n "$RANLIB"; then
  4825. case $host_os in
  4826. openbsd*)
  4827. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4828. ;;
  4829. *)
  4830. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4831. ;;
  4832. esac
  4833. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4834. fi
  4835. case $host_os in
  4836. darwin*)
  4837. lock_old_archive_extraction=yes ;;
  4838. *)
  4839. lock_old_archive_extraction=no ;;
  4840. esac
  4841. for ac_prog in gawk mawk nawk awk
  4842. do
  4843. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4844. set dummy $ac_prog; ac_word=$2
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4846. $as_echo_n "checking for $ac_word... " >&6; }
  4847. if ${ac_cv_prog_AWK+:} false; then :
  4848. $as_echo_n "(cached) " >&6
  4849. else
  4850. if test -n "$AWK"; then
  4851. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4852. else
  4853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4854. for as_dir in $PATH
  4855. do
  4856. IFS=$as_save_IFS
  4857. test -z "$as_dir" && as_dir=.
  4858. for ac_exec_ext in '' $ac_executable_extensions; do
  4859. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4860. ac_cv_prog_AWK="$ac_prog"
  4861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4862. break 2
  4863. fi
  4864. done
  4865. done
  4866. IFS=$as_save_IFS
  4867. fi
  4868. fi
  4869. AWK=$ac_cv_prog_AWK
  4870. if test -n "$AWK"; then
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4872. $as_echo "$AWK" >&6; }
  4873. else
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4875. $as_echo "no" >&6; }
  4876. fi
  4877. test -n "$AWK" && break
  4878. done
  4879. # If no C compiler was specified, use CC.
  4880. LTCC=${LTCC-"$CC"}
  4881. # If no C compiler flags were specified, use CFLAGS.
  4882. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4883. # Allow CC to be a program name with arguments.
  4884. compiler=$CC
  4885. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4887. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4888. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4889. $as_echo_n "(cached) " >&6
  4890. else
  4891. # These are sane defaults that work on at least a few old systems.
  4892. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4893. # Character class describing NM global symbol codes.
  4894. symcode='[BCDEGRST]'
  4895. # Regexp to match symbols that can be accessed directly from C.
  4896. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4897. # Define system-specific variables.
  4898. case $host_os in
  4899. aix*)
  4900. symcode='[BCDT]'
  4901. ;;
  4902. cygwin* | mingw* | pw32* | cegcc*)
  4903. symcode='[ABCDGISTW]'
  4904. ;;
  4905. hpux*)
  4906. if test "$host_cpu" = ia64; then
  4907. symcode='[ABCDEGRST]'
  4908. fi
  4909. ;;
  4910. irix* | nonstopux*)
  4911. symcode='[BCDEGRST]'
  4912. ;;
  4913. osf*)
  4914. symcode='[BCDEGQRST]'
  4915. ;;
  4916. solaris*)
  4917. symcode='[BDRT]'
  4918. ;;
  4919. sco3.2v5*)
  4920. symcode='[DT]'
  4921. ;;
  4922. sysv4.2uw2*)
  4923. symcode='[DT]'
  4924. ;;
  4925. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4926. symcode='[ABDT]'
  4927. ;;
  4928. sysv4)
  4929. symcode='[DFNSTU]'
  4930. ;;
  4931. esac
  4932. # If we're using GNU nm, then use its standard symbol codes.
  4933. case `$NM -V 2>&1` in
  4934. *GNU* | *'with BFD'*)
  4935. symcode='[ABCDGIRSTW]' ;;
  4936. esac
  4937. # Transform an extracted symbol line into a proper C declaration.
  4938. # Some systems (esp. on ia64) link data and code symbols differently,
  4939. # so use this general approach.
  4940. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4941. # Transform an extracted symbol line into symbol name and symbol address
  4942. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4943. 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'"
  4944. # Handle CRLF in mingw tool chain
  4945. opt_cr=
  4946. case $build_os in
  4947. mingw*)
  4948. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4949. ;;
  4950. esac
  4951. # Try without a prefix underscore, then with it.
  4952. for ac_symprfx in "" "_"; do
  4953. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4954. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4955. # Write the raw and C identifiers.
  4956. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4957. # Fake it for dumpbin and say T for any non-static function
  4958. # and D for any global variable.
  4959. # Also find C++ and __fastcall symbols from MSVC++,
  4960. # which start with @ or ?.
  4961. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4962. " {last_section=section; section=\$ 3};"\
  4963. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4964. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4965. " \$ 0!~/External *\|/{next};"\
  4966. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4967. " {if(hide[section]) next};"\
  4968. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4969. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4970. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4971. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4972. " ' prfx=^$ac_symprfx"
  4973. else
  4974. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4975. fi
  4976. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4977. # Check to see that the pipe works correctly.
  4978. pipe_works=no
  4979. rm -f conftest*
  4980. cat > conftest.$ac_ext <<_LT_EOF
  4981. #ifdef __cplusplus
  4982. extern "C" {
  4983. #endif
  4984. char nm_test_var;
  4985. void nm_test_func(void);
  4986. void nm_test_func(void){}
  4987. #ifdef __cplusplus
  4988. }
  4989. #endif
  4990. int main(){nm_test_var='a';nm_test_func();return(0);}
  4991. _LT_EOF
  4992. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4993. (eval $ac_compile) 2>&5
  4994. ac_status=$?
  4995. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4996. test $ac_status = 0; }; then
  4997. # Now try to grab the symbols.
  4998. nlist=conftest.nm
  4999. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5000. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5001. ac_status=$?
  5002. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5003. test $ac_status = 0; } && test -s "$nlist"; then
  5004. # Try sorting and uniquifying the output.
  5005. if sort "$nlist" | uniq > "$nlist"T; then
  5006. mv -f "$nlist"T "$nlist"
  5007. else
  5008. rm -f "$nlist"T
  5009. fi
  5010. # Make sure that we snagged all the symbols we need.
  5011. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5012. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5013. cat <<_LT_EOF > conftest.$ac_ext
  5014. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5015. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5016. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5017. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5018. # define LT_DLSYM_CONST
  5019. #elif defined(__osf__)
  5020. /* This system does not cope well with relocations in const data. */
  5021. # define LT_DLSYM_CONST
  5022. #else
  5023. # define LT_DLSYM_CONST const
  5024. #endif
  5025. #ifdef __cplusplus
  5026. extern "C" {
  5027. #endif
  5028. _LT_EOF
  5029. # Now generate the symbol file.
  5030. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5031. cat <<_LT_EOF >> conftest.$ac_ext
  5032. /* The mapping between symbol names and symbols. */
  5033. LT_DLSYM_CONST struct {
  5034. const char *name;
  5035. void *address;
  5036. }
  5037. lt__PROGRAM__LTX_preloaded_symbols[] =
  5038. {
  5039. { "@PROGRAM@", (void *) 0 },
  5040. _LT_EOF
  5041. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5042. cat <<\_LT_EOF >> conftest.$ac_ext
  5043. {0, (void *) 0}
  5044. };
  5045. /* This works around a problem in FreeBSD linker */
  5046. #ifdef FREEBSD_WORKAROUND
  5047. static const void *lt_preloaded_setup() {
  5048. return lt__PROGRAM__LTX_preloaded_symbols;
  5049. }
  5050. #endif
  5051. #ifdef __cplusplus
  5052. }
  5053. #endif
  5054. _LT_EOF
  5055. # Now try linking the two files.
  5056. mv conftest.$ac_objext conftstm.$ac_objext
  5057. lt_globsym_save_LIBS=$LIBS
  5058. lt_globsym_save_CFLAGS=$CFLAGS
  5059. LIBS="conftstm.$ac_objext"
  5060. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5061. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5062. (eval $ac_link) 2>&5
  5063. ac_status=$?
  5064. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5065. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5066. pipe_works=yes
  5067. fi
  5068. LIBS=$lt_globsym_save_LIBS
  5069. CFLAGS=$lt_globsym_save_CFLAGS
  5070. else
  5071. echo "cannot find nm_test_func in $nlist" >&5
  5072. fi
  5073. else
  5074. echo "cannot find nm_test_var in $nlist" >&5
  5075. fi
  5076. else
  5077. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5078. fi
  5079. else
  5080. echo "$progname: failed program was:" >&5
  5081. cat conftest.$ac_ext >&5
  5082. fi
  5083. rm -rf conftest* conftst*
  5084. # Do not use the global_symbol_pipe unless it works.
  5085. if test "$pipe_works" = yes; then
  5086. break
  5087. else
  5088. lt_cv_sys_global_symbol_pipe=
  5089. fi
  5090. done
  5091. fi
  5092. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5093. lt_cv_sys_global_symbol_to_cdecl=
  5094. fi
  5095. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5097. $as_echo "failed" >&6; }
  5098. else
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5100. $as_echo "ok" >&6; }
  5101. fi
  5102. # Response file support.
  5103. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5104. nm_file_list_spec='@'
  5105. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5106. nm_file_list_spec='@'
  5107. fi
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5109. $as_echo_n "checking for sysroot... " >&6; }
  5110. # Check whether --with-sysroot was given.
  5111. if test "${with_sysroot+set}" = set; then :
  5112. withval=$with_sysroot;
  5113. else
  5114. with_sysroot=no
  5115. fi
  5116. lt_sysroot=
  5117. case ${with_sysroot} in #(
  5118. yes)
  5119. if test "$GCC" = yes; then
  5120. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5121. fi
  5122. ;; #(
  5123. /*)
  5124. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5125. ;; #(
  5126. no|'')
  5127. ;; #(
  5128. *)
  5129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5130. $as_echo "${with_sysroot}" >&6; }
  5131. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5132. ;;
  5133. esac
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5135. $as_echo "${lt_sysroot:-no}" >&6; }
  5136. # Check whether --enable-libtool-lock was given.
  5137. if test "${enable_libtool_lock+set}" = set; then :
  5138. enableval=$enable_libtool_lock;
  5139. fi
  5140. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5141. # Some flags need to be propagated to the compiler or linker for good
  5142. # libtool support.
  5143. case $host in
  5144. ia64-*-hpux*)
  5145. # Find out which ABI we are using.
  5146. echo 'int i;' > conftest.$ac_ext
  5147. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5148. (eval $ac_compile) 2>&5
  5149. ac_status=$?
  5150. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5151. test $ac_status = 0; }; then
  5152. case `/usr/bin/file conftest.$ac_objext` in
  5153. *ELF-32*)
  5154. HPUX_IA64_MODE="32"
  5155. ;;
  5156. *ELF-64*)
  5157. HPUX_IA64_MODE="64"
  5158. ;;
  5159. esac
  5160. fi
  5161. rm -rf conftest*
  5162. ;;
  5163. *-*-irix6*)
  5164. # Find out which ABI we are using.
  5165. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5166. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5167. (eval $ac_compile) 2>&5
  5168. ac_status=$?
  5169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5170. test $ac_status = 0; }; then
  5171. if test "$lt_cv_prog_gnu_ld" = yes; then
  5172. case `/usr/bin/file conftest.$ac_objext` in
  5173. *32-bit*)
  5174. LD="${LD-ld} -melf32bsmip"
  5175. ;;
  5176. *N32*)
  5177. LD="${LD-ld} -melf32bmipn32"
  5178. ;;
  5179. *64-bit*)
  5180. LD="${LD-ld} -melf64bmip"
  5181. ;;
  5182. esac
  5183. else
  5184. case `/usr/bin/file conftest.$ac_objext` in
  5185. *32-bit*)
  5186. LD="${LD-ld} -32"
  5187. ;;
  5188. *N32*)
  5189. LD="${LD-ld} -n32"
  5190. ;;
  5191. *64-bit*)
  5192. LD="${LD-ld} -64"
  5193. ;;
  5194. esac
  5195. fi
  5196. fi
  5197. rm -rf conftest*
  5198. ;;
  5199. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5200. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5201. # Find out which ABI we are using.
  5202. echo 'int i;' > conftest.$ac_ext
  5203. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5204. (eval $ac_compile) 2>&5
  5205. ac_status=$?
  5206. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5207. test $ac_status = 0; }; then
  5208. case `/usr/bin/file conftest.o` in
  5209. *32-bit*)
  5210. case $host in
  5211. x86_64-*kfreebsd*-gnu)
  5212. LD="${LD-ld} -m elf_i386_fbsd"
  5213. ;;
  5214. x86_64-*linux*)
  5215. LD="${LD-ld} -m elf_i386"
  5216. ;;
  5217. ppc64-*linux*|powerpc64-*linux*)
  5218. LD="${LD-ld} -m elf32ppclinux"
  5219. ;;
  5220. s390x-*linux*)
  5221. LD="${LD-ld} -m elf_s390"
  5222. ;;
  5223. sparc64-*linux*)
  5224. LD="${LD-ld} -m elf32_sparc"
  5225. ;;
  5226. esac
  5227. ;;
  5228. *64-bit*)
  5229. case $host in
  5230. x86_64-*kfreebsd*-gnu)
  5231. LD="${LD-ld} -m elf_x86_64_fbsd"
  5232. ;;
  5233. x86_64-*linux*)
  5234. LD="${LD-ld} -m elf_x86_64"
  5235. ;;
  5236. ppc*-*linux*|powerpc*-*linux*)
  5237. LD="${LD-ld} -m elf64ppc"
  5238. ;;
  5239. s390*-*linux*|s390*-*tpf*)
  5240. LD="${LD-ld} -m elf64_s390"
  5241. ;;
  5242. sparc*-*linux*)
  5243. LD="${LD-ld} -m elf64_sparc"
  5244. ;;
  5245. esac
  5246. ;;
  5247. esac
  5248. fi
  5249. rm -rf conftest*
  5250. ;;
  5251. *-*-sco3.2v5*)
  5252. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5253. SAVE_CFLAGS="$CFLAGS"
  5254. CFLAGS="$CFLAGS -belf"
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5256. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5257. if ${lt_cv_cc_needs_belf+:} false; then :
  5258. $as_echo_n "(cached) " >&6
  5259. else
  5260. ac_ext=c
  5261. ac_cpp='$CPP $CPPFLAGS'
  5262. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5263. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5264. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5266. /* end confdefs.h. */
  5267. int
  5268. main ()
  5269. {
  5270. ;
  5271. return 0;
  5272. }
  5273. _ACEOF
  5274. if ac_fn_c_try_link "$LINENO"; then :
  5275. lt_cv_cc_needs_belf=yes
  5276. else
  5277. lt_cv_cc_needs_belf=no
  5278. fi
  5279. rm -f core conftest.err conftest.$ac_objext \
  5280. conftest$ac_exeext conftest.$ac_ext
  5281. ac_ext=c
  5282. ac_cpp='$CPP $CPPFLAGS'
  5283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5286. fi
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5288. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5289. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5290. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5291. CFLAGS="$SAVE_CFLAGS"
  5292. fi
  5293. ;;
  5294. *-*solaris*)
  5295. # Find out which ABI we are using.
  5296. echo 'int i;' > conftest.$ac_ext
  5297. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5298. (eval $ac_compile) 2>&5
  5299. ac_status=$?
  5300. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5301. test $ac_status = 0; }; then
  5302. case `/usr/bin/file conftest.o` in
  5303. *64-bit*)
  5304. case $lt_cv_prog_gnu_ld in
  5305. yes*)
  5306. case $host in
  5307. i?86-*-solaris*)
  5308. LD="${LD-ld} -m elf_x86_64"
  5309. ;;
  5310. sparc*-*-solaris*)
  5311. LD="${LD-ld} -m elf64_sparc"
  5312. ;;
  5313. esac
  5314. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5315. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5316. LD="${LD-ld}_sol2"
  5317. fi
  5318. ;;
  5319. *)
  5320. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5321. LD="${LD-ld} -64"
  5322. fi
  5323. ;;
  5324. esac
  5325. ;;
  5326. esac
  5327. fi
  5328. rm -rf conftest*
  5329. ;;
  5330. esac
  5331. need_locks="$enable_libtool_lock"
  5332. if test -n "$ac_tool_prefix"; then
  5333. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5334. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5336. $as_echo_n "checking for $ac_word... " >&6; }
  5337. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5338. $as_echo_n "(cached) " >&6
  5339. else
  5340. if test -n "$MANIFEST_TOOL"; then
  5341. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5342. else
  5343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5344. for as_dir in $PATH
  5345. do
  5346. IFS=$as_save_IFS
  5347. test -z "$as_dir" && as_dir=.
  5348. for ac_exec_ext in '' $ac_executable_extensions; do
  5349. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5350. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5352. break 2
  5353. fi
  5354. done
  5355. done
  5356. IFS=$as_save_IFS
  5357. fi
  5358. fi
  5359. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5360. if test -n "$MANIFEST_TOOL"; then
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5362. $as_echo "$MANIFEST_TOOL" >&6; }
  5363. else
  5364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5365. $as_echo "no" >&6; }
  5366. fi
  5367. fi
  5368. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5369. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5370. # Extract the first word of "mt", so it can be a program name with args.
  5371. set dummy mt; ac_word=$2
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5373. $as_echo_n "checking for $ac_word... " >&6; }
  5374. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5375. $as_echo_n "(cached) " >&6
  5376. else
  5377. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5378. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5379. else
  5380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5381. for as_dir in $PATH
  5382. do
  5383. IFS=$as_save_IFS
  5384. test -z "$as_dir" && as_dir=.
  5385. for ac_exec_ext in '' $ac_executable_extensions; do
  5386. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5387. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5389. break 2
  5390. fi
  5391. done
  5392. done
  5393. IFS=$as_save_IFS
  5394. fi
  5395. fi
  5396. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5397. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5399. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5400. else
  5401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5402. $as_echo "no" >&6; }
  5403. fi
  5404. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5405. MANIFEST_TOOL=":"
  5406. else
  5407. case $cross_compiling:$ac_tool_warned in
  5408. yes:)
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5410. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5411. ac_tool_warned=yes ;;
  5412. esac
  5413. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5414. fi
  5415. else
  5416. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5417. fi
  5418. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5420. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5421. if ${lt_cv_path_mainfest_tool+:} false; then :
  5422. $as_echo_n "(cached) " >&6
  5423. else
  5424. lt_cv_path_mainfest_tool=no
  5425. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5426. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5427. cat conftest.err >&5
  5428. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5429. lt_cv_path_mainfest_tool=yes
  5430. fi
  5431. rm -f conftest*
  5432. fi
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5434. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5435. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5436. MANIFEST_TOOL=:
  5437. fi
  5438. case $host_os in
  5439. rhapsody* | darwin*)
  5440. if test -n "$ac_tool_prefix"; then
  5441. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5442. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5444. $as_echo_n "checking for $ac_word... " >&6; }
  5445. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5446. $as_echo_n "(cached) " >&6
  5447. else
  5448. if test -n "$DSYMUTIL"; then
  5449. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5450. else
  5451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5452. for as_dir in $PATH
  5453. do
  5454. IFS=$as_save_IFS
  5455. test -z "$as_dir" && as_dir=.
  5456. for ac_exec_ext in '' $ac_executable_extensions; do
  5457. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5458. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5460. break 2
  5461. fi
  5462. done
  5463. done
  5464. IFS=$as_save_IFS
  5465. fi
  5466. fi
  5467. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5468. if test -n "$DSYMUTIL"; then
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5470. $as_echo "$DSYMUTIL" >&6; }
  5471. else
  5472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5473. $as_echo "no" >&6; }
  5474. fi
  5475. fi
  5476. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5477. ac_ct_DSYMUTIL=$DSYMUTIL
  5478. # Extract the first word of "dsymutil", so it can be a program name with args.
  5479. set dummy dsymutil; ac_word=$2
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5481. $as_echo_n "checking for $ac_word... " >&6; }
  5482. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5483. $as_echo_n "(cached) " >&6
  5484. else
  5485. if test -n "$ac_ct_DSYMUTIL"; then
  5486. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5487. else
  5488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5489. for as_dir in $PATH
  5490. do
  5491. IFS=$as_save_IFS
  5492. test -z "$as_dir" && as_dir=.
  5493. for ac_exec_ext in '' $ac_executable_extensions; do
  5494. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5495. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5497. break 2
  5498. fi
  5499. done
  5500. done
  5501. IFS=$as_save_IFS
  5502. fi
  5503. fi
  5504. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5505. if test -n "$ac_ct_DSYMUTIL"; then
  5506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5507. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5508. else
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5510. $as_echo "no" >&6; }
  5511. fi
  5512. if test "x$ac_ct_DSYMUTIL" = x; then
  5513. DSYMUTIL=":"
  5514. else
  5515. case $cross_compiling:$ac_tool_warned in
  5516. yes:)
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5518. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5519. ac_tool_warned=yes ;;
  5520. esac
  5521. DSYMUTIL=$ac_ct_DSYMUTIL
  5522. fi
  5523. else
  5524. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5525. fi
  5526. if test -n "$ac_tool_prefix"; then
  5527. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5528. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5530. $as_echo_n "checking for $ac_word... " >&6; }
  5531. if ${ac_cv_prog_NMEDIT+:} false; then :
  5532. $as_echo_n "(cached) " >&6
  5533. else
  5534. if test -n "$NMEDIT"; then
  5535. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5536. else
  5537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5538. for as_dir in $PATH
  5539. do
  5540. IFS=$as_save_IFS
  5541. test -z "$as_dir" && as_dir=.
  5542. for ac_exec_ext in '' $ac_executable_extensions; do
  5543. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5544. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5546. break 2
  5547. fi
  5548. done
  5549. done
  5550. IFS=$as_save_IFS
  5551. fi
  5552. fi
  5553. NMEDIT=$ac_cv_prog_NMEDIT
  5554. if test -n "$NMEDIT"; then
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5556. $as_echo "$NMEDIT" >&6; }
  5557. else
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5559. $as_echo "no" >&6; }
  5560. fi
  5561. fi
  5562. if test -z "$ac_cv_prog_NMEDIT"; then
  5563. ac_ct_NMEDIT=$NMEDIT
  5564. # Extract the first word of "nmedit", so it can be a program name with args.
  5565. set dummy nmedit; ac_word=$2
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5567. $as_echo_n "checking for $ac_word... " >&6; }
  5568. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5569. $as_echo_n "(cached) " >&6
  5570. else
  5571. if test -n "$ac_ct_NMEDIT"; then
  5572. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5573. else
  5574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5575. for as_dir in $PATH
  5576. do
  5577. IFS=$as_save_IFS
  5578. test -z "$as_dir" && as_dir=.
  5579. for ac_exec_ext in '' $ac_executable_extensions; do
  5580. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5581. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5583. break 2
  5584. fi
  5585. done
  5586. done
  5587. IFS=$as_save_IFS
  5588. fi
  5589. fi
  5590. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5591. if test -n "$ac_ct_NMEDIT"; then
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5593. $as_echo "$ac_ct_NMEDIT" >&6; }
  5594. else
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5596. $as_echo "no" >&6; }
  5597. fi
  5598. if test "x$ac_ct_NMEDIT" = x; then
  5599. NMEDIT=":"
  5600. else
  5601. case $cross_compiling:$ac_tool_warned in
  5602. yes:)
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5604. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5605. ac_tool_warned=yes ;;
  5606. esac
  5607. NMEDIT=$ac_ct_NMEDIT
  5608. fi
  5609. else
  5610. NMEDIT="$ac_cv_prog_NMEDIT"
  5611. fi
  5612. if test -n "$ac_tool_prefix"; then
  5613. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5614. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5616. $as_echo_n "checking for $ac_word... " >&6; }
  5617. if ${ac_cv_prog_LIPO+:} false; then :
  5618. $as_echo_n "(cached) " >&6
  5619. else
  5620. if test -n "$LIPO"; then
  5621. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5622. else
  5623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5624. for as_dir in $PATH
  5625. do
  5626. IFS=$as_save_IFS
  5627. test -z "$as_dir" && as_dir=.
  5628. for ac_exec_ext in '' $ac_executable_extensions; do
  5629. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5630. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5632. break 2
  5633. fi
  5634. done
  5635. done
  5636. IFS=$as_save_IFS
  5637. fi
  5638. fi
  5639. LIPO=$ac_cv_prog_LIPO
  5640. if test -n "$LIPO"; then
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5642. $as_echo "$LIPO" >&6; }
  5643. else
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5645. $as_echo "no" >&6; }
  5646. fi
  5647. fi
  5648. if test -z "$ac_cv_prog_LIPO"; then
  5649. ac_ct_LIPO=$LIPO
  5650. # Extract the first word of "lipo", so it can be a program name with args.
  5651. set dummy lipo; ac_word=$2
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5653. $as_echo_n "checking for $ac_word... " >&6; }
  5654. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5655. $as_echo_n "(cached) " >&6
  5656. else
  5657. if test -n "$ac_ct_LIPO"; then
  5658. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5659. else
  5660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5661. for as_dir in $PATH
  5662. do
  5663. IFS=$as_save_IFS
  5664. test -z "$as_dir" && as_dir=.
  5665. for ac_exec_ext in '' $ac_executable_extensions; do
  5666. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5667. ac_cv_prog_ac_ct_LIPO="lipo"
  5668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5669. break 2
  5670. fi
  5671. done
  5672. done
  5673. IFS=$as_save_IFS
  5674. fi
  5675. fi
  5676. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5677. if test -n "$ac_ct_LIPO"; then
  5678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5679. $as_echo "$ac_ct_LIPO" >&6; }
  5680. else
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5682. $as_echo "no" >&6; }
  5683. fi
  5684. if test "x$ac_ct_LIPO" = x; then
  5685. LIPO=":"
  5686. else
  5687. case $cross_compiling:$ac_tool_warned in
  5688. yes:)
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5690. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5691. ac_tool_warned=yes ;;
  5692. esac
  5693. LIPO=$ac_ct_LIPO
  5694. fi
  5695. else
  5696. LIPO="$ac_cv_prog_LIPO"
  5697. fi
  5698. if test -n "$ac_tool_prefix"; then
  5699. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5700. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5702. $as_echo_n "checking for $ac_word... " >&6; }
  5703. if ${ac_cv_prog_OTOOL+:} false; then :
  5704. $as_echo_n "(cached) " >&6
  5705. else
  5706. if test -n "$OTOOL"; then
  5707. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5708. else
  5709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5710. for as_dir in $PATH
  5711. do
  5712. IFS=$as_save_IFS
  5713. test -z "$as_dir" && as_dir=.
  5714. for ac_exec_ext in '' $ac_executable_extensions; do
  5715. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5716. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5717. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5718. break 2
  5719. fi
  5720. done
  5721. done
  5722. IFS=$as_save_IFS
  5723. fi
  5724. fi
  5725. OTOOL=$ac_cv_prog_OTOOL
  5726. if test -n "$OTOOL"; then
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5728. $as_echo "$OTOOL" >&6; }
  5729. else
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5731. $as_echo "no" >&6; }
  5732. fi
  5733. fi
  5734. if test -z "$ac_cv_prog_OTOOL"; then
  5735. ac_ct_OTOOL=$OTOOL
  5736. # Extract the first word of "otool", so it can be a program name with args.
  5737. set dummy otool; ac_word=$2
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5739. $as_echo_n "checking for $ac_word... " >&6; }
  5740. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5741. $as_echo_n "(cached) " >&6
  5742. else
  5743. if test -n "$ac_ct_OTOOL"; then
  5744. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5745. else
  5746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5747. for as_dir in $PATH
  5748. do
  5749. IFS=$as_save_IFS
  5750. test -z "$as_dir" && as_dir=.
  5751. for ac_exec_ext in '' $ac_executable_extensions; do
  5752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5753. ac_cv_prog_ac_ct_OTOOL="otool"
  5754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5755. break 2
  5756. fi
  5757. done
  5758. done
  5759. IFS=$as_save_IFS
  5760. fi
  5761. fi
  5762. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5763. if test -n "$ac_ct_OTOOL"; then
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5765. $as_echo "$ac_ct_OTOOL" >&6; }
  5766. else
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5768. $as_echo "no" >&6; }
  5769. fi
  5770. if test "x$ac_ct_OTOOL" = x; then
  5771. OTOOL=":"
  5772. else
  5773. case $cross_compiling:$ac_tool_warned in
  5774. yes:)
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5776. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5777. ac_tool_warned=yes ;;
  5778. esac
  5779. OTOOL=$ac_ct_OTOOL
  5780. fi
  5781. else
  5782. OTOOL="$ac_cv_prog_OTOOL"
  5783. fi
  5784. if test -n "$ac_tool_prefix"; then
  5785. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5786. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5788. $as_echo_n "checking for $ac_word... " >&6; }
  5789. if ${ac_cv_prog_OTOOL64+:} false; then :
  5790. $as_echo_n "(cached) " >&6
  5791. else
  5792. if test -n "$OTOOL64"; then
  5793. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5794. else
  5795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5796. for as_dir in $PATH
  5797. do
  5798. IFS=$as_save_IFS
  5799. test -z "$as_dir" && as_dir=.
  5800. for ac_exec_ext in '' $ac_executable_extensions; do
  5801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5802. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5804. break 2
  5805. fi
  5806. done
  5807. done
  5808. IFS=$as_save_IFS
  5809. fi
  5810. fi
  5811. OTOOL64=$ac_cv_prog_OTOOL64
  5812. if test -n "$OTOOL64"; then
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5814. $as_echo "$OTOOL64" >&6; }
  5815. else
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5817. $as_echo "no" >&6; }
  5818. fi
  5819. fi
  5820. if test -z "$ac_cv_prog_OTOOL64"; then
  5821. ac_ct_OTOOL64=$OTOOL64
  5822. # Extract the first word of "otool64", so it can be a program name with args.
  5823. set dummy otool64; ac_word=$2
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5825. $as_echo_n "checking for $ac_word... " >&6; }
  5826. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5827. $as_echo_n "(cached) " >&6
  5828. else
  5829. if test -n "$ac_ct_OTOOL64"; then
  5830. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5831. else
  5832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5833. for as_dir in $PATH
  5834. do
  5835. IFS=$as_save_IFS
  5836. test -z "$as_dir" && as_dir=.
  5837. for ac_exec_ext in '' $ac_executable_extensions; do
  5838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5839. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5841. break 2
  5842. fi
  5843. done
  5844. done
  5845. IFS=$as_save_IFS
  5846. fi
  5847. fi
  5848. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5849. if test -n "$ac_ct_OTOOL64"; then
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5851. $as_echo "$ac_ct_OTOOL64" >&6; }
  5852. else
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5854. $as_echo "no" >&6; }
  5855. fi
  5856. if test "x$ac_ct_OTOOL64" = x; then
  5857. OTOOL64=":"
  5858. else
  5859. case $cross_compiling:$ac_tool_warned in
  5860. yes:)
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5862. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5863. ac_tool_warned=yes ;;
  5864. esac
  5865. OTOOL64=$ac_ct_OTOOL64
  5866. fi
  5867. else
  5868. OTOOL64="$ac_cv_prog_OTOOL64"
  5869. fi
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5871. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5872. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5873. $as_echo_n "(cached) " >&6
  5874. else
  5875. lt_cv_apple_cc_single_mod=no
  5876. if test -z "${LT_MULTI_MODULE}"; then
  5877. # By default we will add the -single_module flag. You can override
  5878. # by either setting the environment variable LT_MULTI_MODULE
  5879. # non-empty at configure time, or by adding -multi_module to the
  5880. # link flags.
  5881. rm -rf libconftest.dylib*
  5882. echo "int foo(void){return 1;}" > conftest.c
  5883. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5884. -dynamiclib -Wl,-single_module conftest.c" >&5
  5885. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5886. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5887. _lt_result=$?
  5888. # If there is a non-empty error log, and "single_module"
  5889. # appears in it, assume the flag caused a linker warning
  5890. if test -s conftest.err && $GREP single_module conftest.err; then
  5891. cat conftest.err >&5
  5892. # Otherwise, if the output was created with a 0 exit code from
  5893. # the compiler, it worked.
  5894. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5895. lt_cv_apple_cc_single_mod=yes
  5896. else
  5897. cat conftest.err >&5
  5898. fi
  5899. rm -rf libconftest.dylib*
  5900. rm -f conftest.*
  5901. fi
  5902. fi
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5904. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5906. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5907. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5908. $as_echo_n "(cached) " >&6
  5909. else
  5910. lt_cv_ld_exported_symbols_list=no
  5911. save_LDFLAGS=$LDFLAGS
  5912. echo "_main" > conftest.sym
  5913. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5915. /* end confdefs.h. */
  5916. int
  5917. main ()
  5918. {
  5919. ;
  5920. return 0;
  5921. }
  5922. _ACEOF
  5923. if ac_fn_c_try_link "$LINENO"; then :
  5924. lt_cv_ld_exported_symbols_list=yes
  5925. else
  5926. lt_cv_ld_exported_symbols_list=no
  5927. fi
  5928. rm -f core conftest.err conftest.$ac_objext \
  5929. conftest$ac_exeext conftest.$ac_ext
  5930. LDFLAGS="$save_LDFLAGS"
  5931. fi
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5933. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5935. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5936. if ${lt_cv_ld_force_load+:} false; then :
  5937. $as_echo_n "(cached) " >&6
  5938. else
  5939. lt_cv_ld_force_load=no
  5940. cat > conftest.c << _LT_EOF
  5941. int forced_loaded() { return 2;}
  5942. _LT_EOF
  5943. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5944. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5945. echo "$AR cru libconftest.a conftest.o" >&5
  5946. $AR cru libconftest.a conftest.o 2>&5
  5947. echo "$RANLIB libconftest.a" >&5
  5948. $RANLIB libconftest.a 2>&5
  5949. cat > conftest.c << _LT_EOF
  5950. int main() { return 0;}
  5951. _LT_EOF
  5952. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5953. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5954. _lt_result=$?
  5955. if test -s conftest.err && $GREP force_load conftest.err; then
  5956. cat conftest.err >&5
  5957. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5958. lt_cv_ld_force_load=yes
  5959. else
  5960. cat conftest.err >&5
  5961. fi
  5962. rm -f conftest.err libconftest.a conftest conftest.c
  5963. rm -rf conftest.dSYM
  5964. fi
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5966. $as_echo "$lt_cv_ld_force_load" >&6; }
  5967. case $host_os in
  5968. rhapsody* | darwin1.[012])
  5969. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5970. darwin1.*)
  5971. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5972. darwin*) # darwin 5.x on
  5973. # if running on 10.5 or later, the deployment target defaults
  5974. # to the OS version, if on x86, and 10.4, the deployment
  5975. # target defaults to 10.4. Don't you love it?
  5976. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5977. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5978. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5979. 10.[012]*)
  5980. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5981. 10.*)
  5982. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5983. esac
  5984. ;;
  5985. esac
  5986. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5987. _lt_dar_single_mod='$single_module'
  5988. fi
  5989. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5990. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5991. else
  5992. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5993. fi
  5994. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  5995. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5996. else
  5997. _lt_dsymutil=
  5998. fi
  5999. ;;
  6000. esac
  6001. ac_ext=c
  6002. ac_cpp='$CPP $CPPFLAGS'
  6003. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6004. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6005. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6007. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6008. # On Suns, sometimes $CPP names a directory.
  6009. if test -n "$CPP" && test -d "$CPP"; then
  6010. CPP=
  6011. fi
  6012. if test -z "$CPP"; then
  6013. if ${ac_cv_prog_CPP+:} false; then :
  6014. $as_echo_n "(cached) " >&6
  6015. else
  6016. # Double quotes because CPP needs to be expanded
  6017. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6018. do
  6019. ac_preproc_ok=false
  6020. for ac_c_preproc_warn_flag in '' yes
  6021. do
  6022. # Use a header file that comes with gcc, so configuring glibc
  6023. # with a fresh cross-compiler works.
  6024. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6025. # <limits.h> exists even on freestanding compilers.
  6026. # On the NeXT, cc -E runs the code through the compiler's parser,
  6027. # not just through cpp. "Syntax error" is here to catch this case.
  6028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6029. /* end confdefs.h. */
  6030. #ifdef __STDC__
  6031. # include <limits.h>
  6032. #else
  6033. # include <assert.h>
  6034. #endif
  6035. Syntax error
  6036. _ACEOF
  6037. if ac_fn_c_try_cpp "$LINENO"; then :
  6038. else
  6039. # Broken: fails on valid input.
  6040. continue
  6041. fi
  6042. rm -f conftest.err conftest.i conftest.$ac_ext
  6043. # OK, works on sane cases. Now check whether nonexistent headers
  6044. # can be detected and how.
  6045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6046. /* end confdefs.h. */
  6047. #include <ac_nonexistent.h>
  6048. _ACEOF
  6049. if ac_fn_c_try_cpp "$LINENO"; then :
  6050. # Broken: success on invalid input.
  6051. continue
  6052. else
  6053. # Passes both tests.
  6054. ac_preproc_ok=:
  6055. break
  6056. fi
  6057. rm -f conftest.err conftest.i conftest.$ac_ext
  6058. done
  6059. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6060. rm -f conftest.i conftest.err conftest.$ac_ext
  6061. if $ac_preproc_ok; then :
  6062. break
  6063. fi
  6064. done
  6065. ac_cv_prog_CPP=$CPP
  6066. fi
  6067. CPP=$ac_cv_prog_CPP
  6068. else
  6069. ac_cv_prog_CPP=$CPP
  6070. fi
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6072. $as_echo "$CPP" >&6; }
  6073. ac_preproc_ok=false
  6074. for ac_c_preproc_warn_flag in '' yes
  6075. do
  6076. # Use a header file that comes with gcc, so configuring glibc
  6077. # with a fresh cross-compiler works.
  6078. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6079. # <limits.h> exists even on freestanding compilers.
  6080. # On the NeXT, cc -E runs the code through the compiler's parser,
  6081. # not just through cpp. "Syntax error" is here to catch this case.
  6082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6083. /* end confdefs.h. */
  6084. #ifdef __STDC__
  6085. # include <limits.h>
  6086. #else
  6087. # include <assert.h>
  6088. #endif
  6089. Syntax error
  6090. _ACEOF
  6091. if ac_fn_c_try_cpp "$LINENO"; then :
  6092. else
  6093. # Broken: fails on valid input.
  6094. continue
  6095. fi
  6096. rm -f conftest.err conftest.i conftest.$ac_ext
  6097. # OK, works on sane cases. Now check whether nonexistent headers
  6098. # can be detected and how.
  6099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6100. /* end confdefs.h. */
  6101. #include <ac_nonexistent.h>
  6102. _ACEOF
  6103. if ac_fn_c_try_cpp "$LINENO"; then :
  6104. # Broken: success on invalid input.
  6105. continue
  6106. else
  6107. # Passes both tests.
  6108. ac_preproc_ok=:
  6109. break
  6110. fi
  6111. rm -f conftest.err conftest.i conftest.$ac_ext
  6112. done
  6113. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6114. rm -f conftest.i conftest.err conftest.$ac_ext
  6115. if $ac_preproc_ok; then :
  6116. else
  6117. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6118. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6119. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6120. See \`config.log' for more details" "$LINENO" 5; }
  6121. fi
  6122. ac_ext=c
  6123. ac_cpp='$CPP $CPPFLAGS'
  6124. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6125. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6126. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6128. $as_echo_n "checking for ANSI C header files... " >&6; }
  6129. if ${ac_cv_header_stdc+:} false; then :
  6130. $as_echo_n "(cached) " >&6
  6131. else
  6132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6133. /* end confdefs.h. */
  6134. #include <stdlib.h>
  6135. #include <stdarg.h>
  6136. #include <string.h>
  6137. #include <float.h>
  6138. int
  6139. main ()
  6140. {
  6141. ;
  6142. return 0;
  6143. }
  6144. _ACEOF
  6145. if ac_fn_c_try_compile "$LINENO"; then :
  6146. ac_cv_header_stdc=yes
  6147. else
  6148. ac_cv_header_stdc=no
  6149. fi
  6150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6151. if test $ac_cv_header_stdc = yes; then
  6152. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6154. /* end confdefs.h. */
  6155. #include <string.h>
  6156. _ACEOF
  6157. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6158. $EGREP "memchr" >/dev/null 2>&1; then :
  6159. else
  6160. ac_cv_header_stdc=no
  6161. fi
  6162. rm -f conftest*
  6163. fi
  6164. if test $ac_cv_header_stdc = yes; then
  6165. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6167. /* end confdefs.h. */
  6168. #include <stdlib.h>
  6169. _ACEOF
  6170. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6171. $EGREP "free" >/dev/null 2>&1; then :
  6172. else
  6173. ac_cv_header_stdc=no
  6174. fi
  6175. rm -f conftest*
  6176. fi
  6177. if test $ac_cv_header_stdc = yes; then
  6178. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6179. if test "$cross_compiling" = yes; then :
  6180. :
  6181. else
  6182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6183. /* end confdefs.h. */
  6184. #include <ctype.h>
  6185. #include <stdlib.h>
  6186. #if ((' ' & 0x0FF) == 0x020)
  6187. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6188. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6189. #else
  6190. # define ISLOWER(c) \
  6191. (('a' <= (c) && (c) <= 'i') \
  6192. || ('j' <= (c) && (c) <= 'r') \
  6193. || ('s' <= (c) && (c) <= 'z'))
  6194. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6195. #endif
  6196. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6197. int
  6198. main ()
  6199. {
  6200. int i;
  6201. for (i = 0; i < 256; i++)
  6202. if (XOR (islower (i), ISLOWER (i))
  6203. || toupper (i) != TOUPPER (i))
  6204. return 2;
  6205. return 0;
  6206. }
  6207. _ACEOF
  6208. if ac_fn_c_try_run "$LINENO"; then :
  6209. else
  6210. ac_cv_header_stdc=no
  6211. fi
  6212. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6213. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6214. fi
  6215. fi
  6216. fi
  6217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6218. $as_echo "$ac_cv_header_stdc" >&6; }
  6219. if test $ac_cv_header_stdc = yes; then
  6220. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6221. fi
  6222. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6223. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6224. inttypes.h stdint.h unistd.h
  6225. do :
  6226. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6227. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6228. "
  6229. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6230. cat >>confdefs.h <<_ACEOF
  6231. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6232. _ACEOF
  6233. fi
  6234. done
  6235. for ac_header in dlfcn.h
  6236. do :
  6237. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6238. "
  6239. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6240. cat >>confdefs.h <<_ACEOF
  6241. #define HAVE_DLFCN_H 1
  6242. _ACEOF
  6243. fi
  6244. done
  6245. # Set options
  6246. enable_win32_dll=yes
  6247. case $host in
  6248. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6249. if test -n "$ac_tool_prefix"; then
  6250. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6251. set dummy ${ac_tool_prefix}as; ac_word=$2
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6253. $as_echo_n "checking for $ac_word... " >&6; }
  6254. if ${ac_cv_prog_AS+:} false; then :
  6255. $as_echo_n "(cached) " >&6
  6256. else
  6257. if test -n "$AS"; then
  6258. ac_cv_prog_AS="$AS" # Let the user override the test.
  6259. else
  6260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6261. for as_dir in $PATH
  6262. do
  6263. IFS=$as_save_IFS
  6264. test -z "$as_dir" && as_dir=.
  6265. for ac_exec_ext in '' $ac_executable_extensions; do
  6266. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6267. ac_cv_prog_AS="${ac_tool_prefix}as"
  6268. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6269. break 2
  6270. fi
  6271. done
  6272. done
  6273. IFS=$as_save_IFS
  6274. fi
  6275. fi
  6276. AS=$ac_cv_prog_AS
  6277. if test -n "$AS"; then
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6279. $as_echo "$AS" >&6; }
  6280. else
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6282. $as_echo "no" >&6; }
  6283. fi
  6284. fi
  6285. if test -z "$ac_cv_prog_AS"; then
  6286. ac_ct_AS=$AS
  6287. # Extract the first word of "as", so it can be a program name with args.
  6288. set dummy as; ac_word=$2
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6290. $as_echo_n "checking for $ac_word... " >&6; }
  6291. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6292. $as_echo_n "(cached) " >&6
  6293. else
  6294. if test -n "$ac_ct_AS"; then
  6295. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6296. else
  6297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6298. for as_dir in $PATH
  6299. do
  6300. IFS=$as_save_IFS
  6301. test -z "$as_dir" && as_dir=.
  6302. for ac_exec_ext in '' $ac_executable_extensions; do
  6303. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6304. ac_cv_prog_ac_ct_AS="as"
  6305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6306. break 2
  6307. fi
  6308. done
  6309. done
  6310. IFS=$as_save_IFS
  6311. fi
  6312. fi
  6313. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6314. if test -n "$ac_ct_AS"; then
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6316. $as_echo "$ac_ct_AS" >&6; }
  6317. else
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6319. $as_echo "no" >&6; }
  6320. fi
  6321. if test "x$ac_ct_AS" = x; then
  6322. AS="false"
  6323. else
  6324. case $cross_compiling:$ac_tool_warned in
  6325. yes:)
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6327. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6328. ac_tool_warned=yes ;;
  6329. esac
  6330. AS=$ac_ct_AS
  6331. fi
  6332. else
  6333. AS="$ac_cv_prog_AS"
  6334. fi
  6335. if test -n "$ac_tool_prefix"; then
  6336. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6337. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6339. $as_echo_n "checking for $ac_word... " >&6; }
  6340. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6341. $as_echo_n "(cached) " >&6
  6342. else
  6343. if test -n "$DLLTOOL"; then
  6344. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6345. else
  6346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6347. for as_dir in $PATH
  6348. do
  6349. IFS=$as_save_IFS
  6350. test -z "$as_dir" && as_dir=.
  6351. for ac_exec_ext in '' $ac_executable_extensions; do
  6352. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6353. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6355. break 2
  6356. fi
  6357. done
  6358. done
  6359. IFS=$as_save_IFS
  6360. fi
  6361. fi
  6362. DLLTOOL=$ac_cv_prog_DLLTOOL
  6363. if test -n "$DLLTOOL"; then
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6365. $as_echo "$DLLTOOL" >&6; }
  6366. else
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6368. $as_echo "no" >&6; }
  6369. fi
  6370. fi
  6371. if test -z "$ac_cv_prog_DLLTOOL"; then
  6372. ac_ct_DLLTOOL=$DLLTOOL
  6373. # Extract the first word of "dlltool", so it can be a program name with args.
  6374. set dummy dlltool; ac_word=$2
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6376. $as_echo_n "checking for $ac_word... " >&6; }
  6377. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6378. $as_echo_n "(cached) " >&6
  6379. else
  6380. if test -n "$ac_ct_DLLTOOL"; then
  6381. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6382. else
  6383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6384. for as_dir in $PATH
  6385. do
  6386. IFS=$as_save_IFS
  6387. test -z "$as_dir" && as_dir=.
  6388. for ac_exec_ext in '' $ac_executable_extensions; do
  6389. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6390. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6392. break 2
  6393. fi
  6394. done
  6395. done
  6396. IFS=$as_save_IFS
  6397. fi
  6398. fi
  6399. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6400. if test -n "$ac_ct_DLLTOOL"; then
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6402. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6403. else
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6405. $as_echo "no" >&6; }
  6406. fi
  6407. if test "x$ac_ct_DLLTOOL" = x; then
  6408. DLLTOOL="false"
  6409. else
  6410. case $cross_compiling:$ac_tool_warned in
  6411. yes:)
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6413. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6414. ac_tool_warned=yes ;;
  6415. esac
  6416. DLLTOOL=$ac_ct_DLLTOOL
  6417. fi
  6418. else
  6419. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6420. fi
  6421. if test -n "$ac_tool_prefix"; then
  6422. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6423. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6425. $as_echo_n "checking for $ac_word... " >&6; }
  6426. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6427. $as_echo_n "(cached) " >&6
  6428. else
  6429. if test -n "$OBJDUMP"; then
  6430. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6431. else
  6432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6433. for as_dir in $PATH
  6434. do
  6435. IFS=$as_save_IFS
  6436. test -z "$as_dir" && as_dir=.
  6437. for ac_exec_ext in '' $ac_executable_extensions; do
  6438. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6439. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6441. break 2
  6442. fi
  6443. done
  6444. done
  6445. IFS=$as_save_IFS
  6446. fi
  6447. fi
  6448. OBJDUMP=$ac_cv_prog_OBJDUMP
  6449. if test -n "$OBJDUMP"; then
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6451. $as_echo "$OBJDUMP" >&6; }
  6452. else
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6454. $as_echo "no" >&6; }
  6455. fi
  6456. fi
  6457. if test -z "$ac_cv_prog_OBJDUMP"; then
  6458. ac_ct_OBJDUMP=$OBJDUMP
  6459. # Extract the first word of "objdump", so it can be a program name with args.
  6460. set dummy objdump; ac_word=$2
  6461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6462. $as_echo_n "checking for $ac_word... " >&6; }
  6463. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6464. $as_echo_n "(cached) " >&6
  6465. else
  6466. if test -n "$ac_ct_OBJDUMP"; then
  6467. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6468. else
  6469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6470. for as_dir in $PATH
  6471. do
  6472. IFS=$as_save_IFS
  6473. test -z "$as_dir" && as_dir=.
  6474. for ac_exec_ext in '' $ac_executable_extensions; do
  6475. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6476. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6478. break 2
  6479. fi
  6480. done
  6481. done
  6482. IFS=$as_save_IFS
  6483. fi
  6484. fi
  6485. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6486. if test -n "$ac_ct_OBJDUMP"; then
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6488. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6489. else
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6491. $as_echo "no" >&6; }
  6492. fi
  6493. if test "x$ac_ct_OBJDUMP" = x; then
  6494. OBJDUMP="false"
  6495. else
  6496. case $cross_compiling:$ac_tool_warned in
  6497. yes:)
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6499. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6500. ac_tool_warned=yes ;;
  6501. esac
  6502. OBJDUMP=$ac_ct_OBJDUMP
  6503. fi
  6504. else
  6505. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6506. fi
  6507. ;;
  6508. esac
  6509. test -z "$AS" && AS=as
  6510. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6511. test -z "$OBJDUMP" && OBJDUMP=objdump
  6512. enable_dlopen=no
  6513. # Check whether --enable-shared was given.
  6514. if test "${enable_shared+set}" = set; then :
  6515. enableval=$enable_shared; p=${PACKAGE-default}
  6516. case $enableval in
  6517. yes) enable_shared=yes ;;
  6518. no) enable_shared=no ;;
  6519. *)
  6520. enable_shared=no
  6521. # Look at the argument we got. We use all the common list separators.
  6522. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6523. for pkg in $enableval; do
  6524. IFS="$lt_save_ifs"
  6525. if test "X$pkg" = "X$p"; then
  6526. enable_shared=yes
  6527. fi
  6528. done
  6529. IFS="$lt_save_ifs"
  6530. ;;
  6531. esac
  6532. else
  6533. enable_shared=yes
  6534. fi
  6535. # Check whether --enable-static was given.
  6536. if test "${enable_static+set}" = set; then :
  6537. enableval=$enable_static; p=${PACKAGE-default}
  6538. case $enableval in
  6539. yes) enable_static=yes ;;
  6540. no) enable_static=no ;;
  6541. *)
  6542. enable_static=no
  6543. # Look at the argument we got. We use all the common list separators.
  6544. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6545. for pkg in $enableval; do
  6546. IFS="$lt_save_ifs"
  6547. if test "X$pkg" = "X$p"; then
  6548. enable_static=yes
  6549. fi
  6550. done
  6551. IFS="$lt_save_ifs"
  6552. ;;
  6553. esac
  6554. else
  6555. enable_static=yes
  6556. fi
  6557. # Check whether --with-pic was given.
  6558. if test "${with_pic+set}" = set; then :
  6559. withval=$with_pic; lt_p=${PACKAGE-default}
  6560. case $withval in
  6561. yes|no) pic_mode=$withval ;;
  6562. *)
  6563. pic_mode=default
  6564. # Look at the argument we got. We use all the common list separators.
  6565. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6566. for lt_pkg in $withval; do
  6567. IFS="$lt_save_ifs"
  6568. if test "X$lt_pkg" = "X$lt_p"; then
  6569. pic_mode=yes
  6570. fi
  6571. done
  6572. IFS="$lt_save_ifs"
  6573. ;;
  6574. esac
  6575. else
  6576. pic_mode=default
  6577. fi
  6578. test -z "$pic_mode" && pic_mode=default
  6579. # Check whether --enable-fast-install was given.
  6580. if test "${enable_fast_install+set}" = set; then :
  6581. enableval=$enable_fast_install; p=${PACKAGE-default}
  6582. case $enableval in
  6583. yes) enable_fast_install=yes ;;
  6584. no) enable_fast_install=no ;;
  6585. *)
  6586. enable_fast_install=no
  6587. # Look at the argument we got. We use all the common list separators.
  6588. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6589. for pkg in $enableval; do
  6590. IFS="$lt_save_ifs"
  6591. if test "X$pkg" = "X$p"; then
  6592. enable_fast_install=yes
  6593. fi
  6594. done
  6595. IFS="$lt_save_ifs"
  6596. ;;
  6597. esac
  6598. else
  6599. enable_fast_install=yes
  6600. fi
  6601. # This can be used to rebuild libtool when needed
  6602. LIBTOOL_DEPS="$ltmain"
  6603. # Always use our own libtool.
  6604. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6605. test -z "$LN_S" && LN_S="ln -s"
  6606. if test -n "${ZSH_VERSION+set}" ; then
  6607. setopt NO_GLOB_SUBST
  6608. fi
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6610. $as_echo_n "checking for objdir... " >&6; }
  6611. if ${lt_cv_objdir+:} false; then :
  6612. $as_echo_n "(cached) " >&6
  6613. else
  6614. rm -f .libs 2>/dev/null
  6615. mkdir .libs 2>/dev/null
  6616. if test -d .libs; then
  6617. lt_cv_objdir=.libs
  6618. else
  6619. # MS-DOS does not allow filenames that begin with a dot.
  6620. lt_cv_objdir=_libs
  6621. fi
  6622. rmdir .libs 2>/dev/null
  6623. fi
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6625. $as_echo "$lt_cv_objdir" >&6; }
  6626. objdir=$lt_cv_objdir
  6627. cat >>confdefs.h <<_ACEOF
  6628. #define LT_OBJDIR "$lt_cv_objdir/"
  6629. _ACEOF
  6630. case $host_os in
  6631. aix3*)
  6632. # AIX sometimes has problems with the GCC collect2 program. For some
  6633. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6634. # vanish in a puff of smoke.
  6635. if test "X${COLLECT_NAMES+set}" != Xset; then
  6636. COLLECT_NAMES=
  6637. export COLLECT_NAMES
  6638. fi
  6639. ;;
  6640. esac
  6641. # Global variables:
  6642. ofile=libtool
  6643. can_build_shared=yes
  6644. # All known linkers require a `.a' archive for static linking (except MSVC,
  6645. # which needs '.lib').
  6646. libext=a
  6647. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6648. old_CC="$CC"
  6649. old_CFLAGS="$CFLAGS"
  6650. # Set sane defaults for various variables
  6651. test -z "$CC" && CC=cc
  6652. test -z "$LTCC" && LTCC=$CC
  6653. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6654. test -z "$LD" && LD=ld
  6655. test -z "$ac_objext" && ac_objext=o
  6656. for cc_temp in $compiler""; do
  6657. case $cc_temp in
  6658. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6659. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6660. \-*) ;;
  6661. *) break;;
  6662. esac
  6663. done
  6664. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6665. # Only perform the check for file, if the check method requires it
  6666. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6667. case $deplibs_check_method in
  6668. file_magic*)
  6669. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6671. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6672. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6673. $as_echo_n "(cached) " >&6
  6674. else
  6675. case $MAGIC_CMD in
  6676. [\\/*] | ?:[\\/]*)
  6677. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6678. ;;
  6679. *)
  6680. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6681. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6682. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6683. for ac_dir in $ac_dummy; do
  6684. IFS="$lt_save_ifs"
  6685. test -z "$ac_dir" && ac_dir=.
  6686. if test -f $ac_dir/${ac_tool_prefix}file; then
  6687. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6688. if test -n "$file_magic_test_file"; then
  6689. case $deplibs_check_method in
  6690. "file_magic "*)
  6691. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6692. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6693. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6694. $EGREP "$file_magic_regex" > /dev/null; then
  6695. :
  6696. else
  6697. cat <<_LT_EOF 1>&2
  6698. *** Warning: the command libtool uses to detect shared libraries,
  6699. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6700. *** The result is that libtool may fail to recognize shared libraries
  6701. *** as such. This will affect the creation of libtool libraries that
  6702. *** depend on shared libraries, but programs linked with such libtool
  6703. *** libraries will work regardless of this problem. Nevertheless, you
  6704. *** may want to report the problem to your system manager and/or to
  6705. *** bug-libtool@gnu.org
  6706. _LT_EOF
  6707. fi ;;
  6708. esac
  6709. fi
  6710. break
  6711. fi
  6712. done
  6713. IFS="$lt_save_ifs"
  6714. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6715. ;;
  6716. esac
  6717. fi
  6718. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6719. if test -n "$MAGIC_CMD"; then
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6721. $as_echo "$MAGIC_CMD" >&6; }
  6722. else
  6723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6724. $as_echo "no" >&6; }
  6725. fi
  6726. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6727. if test -n "$ac_tool_prefix"; then
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6729. $as_echo_n "checking for file... " >&6; }
  6730. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6731. $as_echo_n "(cached) " >&6
  6732. else
  6733. case $MAGIC_CMD in
  6734. [\\/*] | ?:[\\/]*)
  6735. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6736. ;;
  6737. *)
  6738. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6739. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6740. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6741. for ac_dir in $ac_dummy; do
  6742. IFS="$lt_save_ifs"
  6743. test -z "$ac_dir" && ac_dir=.
  6744. if test -f $ac_dir/file; then
  6745. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6746. if test -n "$file_magic_test_file"; then
  6747. case $deplibs_check_method in
  6748. "file_magic "*)
  6749. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6750. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6751. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6752. $EGREP "$file_magic_regex" > /dev/null; then
  6753. :
  6754. else
  6755. cat <<_LT_EOF 1>&2
  6756. *** Warning: the command libtool uses to detect shared libraries,
  6757. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6758. *** The result is that libtool may fail to recognize shared libraries
  6759. *** as such. This will affect the creation of libtool libraries that
  6760. *** depend on shared libraries, but programs linked with such libtool
  6761. *** libraries will work regardless of this problem. Nevertheless, you
  6762. *** may want to report the problem to your system manager and/or to
  6763. *** bug-libtool@gnu.org
  6764. _LT_EOF
  6765. fi ;;
  6766. esac
  6767. fi
  6768. break
  6769. fi
  6770. done
  6771. IFS="$lt_save_ifs"
  6772. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6773. ;;
  6774. esac
  6775. fi
  6776. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6777. if test -n "$MAGIC_CMD"; then
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6779. $as_echo "$MAGIC_CMD" >&6; }
  6780. else
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6782. $as_echo "no" >&6; }
  6783. fi
  6784. else
  6785. MAGIC_CMD=:
  6786. fi
  6787. fi
  6788. fi
  6789. ;;
  6790. esac
  6791. # Use C for the default configuration in the libtool script
  6792. lt_save_CC="$CC"
  6793. ac_ext=c
  6794. ac_cpp='$CPP $CPPFLAGS'
  6795. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6796. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6797. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6798. # Source file extension for C test sources.
  6799. ac_ext=c
  6800. # Object file extension for compiled C test sources.
  6801. objext=o
  6802. objext=$objext
  6803. # Code to be used in simple compile tests
  6804. lt_simple_compile_test_code="int some_variable = 0;"
  6805. # Code to be used in simple link tests
  6806. lt_simple_link_test_code='int main(){return(0);}'
  6807. # If no C compiler was specified, use CC.
  6808. LTCC=${LTCC-"$CC"}
  6809. # If no C compiler flags were specified, use CFLAGS.
  6810. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6811. # Allow CC to be a program name with arguments.
  6812. compiler=$CC
  6813. # Save the default compiler, since it gets overwritten when the other
  6814. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6815. compiler_DEFAULT=$CC
  6816. # save warnings/boilerplate of simple test code
  6817. ac_outfile=conftest.$ac_objext
  6818. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6819. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6820. _lt_compiler_boilerplate=`cat conftest.err`
  6821. $RM conftest*
  6822. ac_outfile=conftest.$ac_objext
  6823. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6824. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6825. _lt_linker_boilerplate=`cat conftest.err`
  6826. $RM -r conftest*
  6827. ## CAVEAT EMPTOR:
  6828. ## There is no encapsulation within the following macros, do not change
  6829. ## the running order or otherwise move them around unless you know exactly
  6830. ## what you are doing...
  6831. if test -n "$compiler"; then
  6832. lt_prog_compiler_no_builtin_flag=
  6833. if test "$GCC" = yes; then
  6834. case $cc_basename in
  6835. nvcc*)
  6836. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6837. *)
  6838. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6839. esac
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6841. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6842. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6843. $as_echo_n "(cached) " >&6
  6844. else
  6845. lt_cv_prog_compiler_rtti_exceptions=no
  6846. ac_outfile=conftest.$ac_objext
  6847. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6848. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6849. # Insert the option either (1) after the last *FLAGS variable, or
  6850. # (2) before a word containing "conftest.", or (3) at the end.
  6851. # Note that $ac_compile itself does not contain backslashes and begins
  6852. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6853. # The option is referenced via a variable to avoid confusing sed.
  6854. lt_compile=`echo "$ac_compile" | $SED \
  6855. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6856. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6857. -e 's:$: $lt_compiler_flag:'`
  6858. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6859. (eval "$lt_compile" 2>conftest.err)
  6860. ac_status=$?
  6861. cat conftest.err >&5
  6862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6863. if (exit $ac_status) && test -s "$ac_outfile"; then
  6864. # The compiler can only warn and ignore the option if not recognized
  6865. # So say no if there are warnings other than the usual output.
  6866. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6867. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6868. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6869. lt_cv_prog_compiler_rtti_exceptions=yes
  6870. fi
  6871. fi
  6872. $RM conftest*
  6873. fi
  6874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6875. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6876. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6877. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6878. else
  6879. :
  6880. fi
  6881. fi
  6882. lt_prog_compiler_wl=
  6883. lt_prog_compiler_pic=
  6884. lt_prog_compiler_static=
  6885. if test "$GCC" = yes; then
  6886. lt_prog_compiler_wl='-Wl,'
  6887. lt_prog_compiler_static='-static'
  6888. case $host_os in
  6889. aix*)
  6890. # All AIX code is PIC.
  6891. if test "$host_cpu" = ia64; then
  6892. # AIX 5 now supports IA64 processor
  6893. lt_prog_compiler_static='-Bstatic'
  6894. fi
  6895. ;;
  6896. amigaos*)
  6897. case $host_cpu in
  6898. powerpc)
  6899. # see comment about AmigaOS4 .so support
  6900. lt_prog_compiler_pic='-fPIC'
  6901. ;;
  6902. m68k)
  6903. # FIXME: we need at least 68020 code to build shared libraries, but
  6904. # adding the `-m68020' flag to GCC prevents building anything better,
  6905. # like `-m68040'.
  6906. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6907. ;;
  6908. esac
  6909. ;;
  6910. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6911. # PIC is the default for these OSes.
  6912. ;;
  6913. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6914. # This hack is so that the source file can tell whether it is being
  6915. # built for inclusion in a dll (and should export symbols for example).
  6916. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6917. # (--disable-auto-import) libraries
  6918. lt_prog_compiler_pic='-DDLL_EXPORT'
  6919. ;;
  6920. darwin* | rhapsody*)
  6921. # PIC is the default on this platform
  6922. # Common symbols not allowed in MH_DYLIB files
  6923. lt_prog_compiler_pic='-fno-common'
  6924. ;;
  6925. haiku*)
  6926. # PIC is the default for Haiku.
  6927. # The "-static" flag exists, but is broken.
  6928. lt_prog_compiler_static=
  6929. ;;
  6930. hpux*)
  6931. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6932. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6933. # sets the default TLS model and affects inlining.
  6934. case $host_cpu in
  6935. hppa*64*)
  6936. # +Z the default
  6937. ;;
  6938. *)
  6939. lt_prog_compiler_pic='-fPIC'
  6940. ;;
  6941. esac
  6942. ;;
  6943. interix[3-9]*)
  6944. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6945. # Instead, we relocate shared libraries at runtime.
  6946. ;;
  6947. msdosdjgpp*)
  6948. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6949. # on systems that don't support them.
  6950. lt_prog_compiler_can_build_shared=no
  6951. enable_shared=no
  6952. ;;
  6953. *nto* | *qnx*)
  6954. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6955. # it will coredump.
  6956. lt_prog_compiler_pic='-fPIC -shared'
  6957. ;;
  6958. sysv4*MP*)
  6959. if test -d /usr/nec; then
  6960. lt_prog_compiler_pic=-Kconform_pic
  6961. fi
  6962. ;;
  6963. *)
  6964. lt_prog_compiler_pic='-fPIC'
  6965. ;;
  6966. esac
  6967. case $cc_basename in
  6968. nvcc*) # Cuda Compiler Driver 2.2
  6969. lt_prog_compiler_wl='-Xlinker '
  6970. if test -n "$lt_prog_compiler_pic"; then
  6971. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6972. fi
  6973. ;;
  6974. esac
  6975. else
  6976. # PORTME Check for flag to pass linker flags through the system compiler.
  6977. case $host_os in
  6978. aix*)
  6979. lt_prog_compiler_wl='-Wl,'
  6980. if test "$host_cpu" = ia64; then
  6981. # AIX 5 now supports IA64 processor
  6982. lt_prog_compiler_static='-Bstatic'
  6983. else
  6984. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6985. fi
  6986. ;;
  6987. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6988. # This hack is so that the source file can tell whether it is being
  6989. # built for inclusion in a dll (and should export symbols for example).
  6990. lt_prog_compiler_pic='-DDLL_EXPORT'
  6991. ;;
  6992. hpux9* | hpux10* | hpux11*)
  6993. lt_prog_compiler_wl='-Wl,'
  6994. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6995. # not for PA HP-UX.
  6996. case $host_cpu in
  6997. hppa*64*|ia64*)
  6998. # +Z the default
  6999. ;;
  7000. *)
  7001. lt_prog_compiler_pic='+Z'
  7002. ;;
  7003. esac
  7004. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7005. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7006. ;;
  7007. irix5* | irix6* | nonstopux*)
  7008. lt_prog_compiler_wl='-Wl,'
  7009. # PIC (with -KPIC) is the default.
  7010. lt_prog_compiler_static='-non_shared'
  7011. ;;
  7012. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7013. case $cc_basename in
  7014. # old Intel for x86_64 which still supported -KPIC.
  7015. ecc*)
  7016. lt_prog_compiler_wl='-Wl,'
  7017. lt_prog_compiler_pic='-KPIC'
  7018. lt_prog_compiler_static='-static'
  7019. ;;
  7020. # icc used to be incompatible with GCC.
  7021. # ICC 10 doesn't accept -KPIC any more.
  7022. icc* | ifort*)
  7023. lt_prog_compiler_wl='-Wl,'
  7024. lt_prog_compiler_pic='-fPIC'
  7025. lt_prog_compiler_static='-static'
  7026. ;;
  7027. # Lahey Fortran 8.1.
  7028. lf95*)
  7029. lt_prog_compiler_wl='-Wl,'
  7030. lt_prog_compiler_pic='--shared'
  7031. lt_prog_compiler_static='--static'
  7032. ;;
  7033. nagfor*)
  7034. # NAG Fortran compiler
  7035. lt_prog_compiler_wl='-Wl,-Wl,,'
  7036. lt_prog_compiler_pic='-PIC'
  7037. lt_prog_compiler_static='-Bstatic'
  7038. ;;
  7039. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7040. # Portland Group compilers (*not* the Pentium gcc compiler,
  7041. # which looks to be a dead project)
  7042. lt_prog_compiler_wl='-Wl,'
  7043. lt_prog_compiler_pic='-fpic'
  7044. lt_prog_compiler_static='-Bstatic'
  7045. ;;
  7046. ccc*)
  7047. lt_prog_compiler_wl='-Wl,'
  7048. # All Alpha code is PIC.
  7049. lt_prog_compiler_static='-non_shared'
  7050. ;;
  7051. xl* | bgxl* | bgf* | mpixl*)
  7052. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7053. lt_prog_compiler_wl='-Wl,'
  7054. lt_prog_compiler_pic='-qpic'
  7055. lt_prog_compiler_static='-qstaticlink'
  7056. ;;
  7057. *)
  7058. case `$CC -V 2>&1 | sed 5q` in
  7059. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7060. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7061. lt_prog_compiler_pic='-KPIC'
  7062. lt_prog_compiler_static='-Bstatic'
  7063. lt_prog_compiler_wl=''
  7064. ;;
  7065. *Sun\ F* | *Sun*Fortran*)
  7066. lt_prog_compiler_pic='-KPIC'
  7067. lt_prog_compiler_static='-Bstatic'
  7068. lt_prog_compiler_wl='-Qoption ld '
  7069. ;;
  7070. *Sun\ C*)
  7071. # Sun C 5.9
  7072. lt_prog_compiler_pic='-KPIC'
  7073. lt_prog_compiler_static='-Bstatic'
  7074. lt_prog_compiler_wl='-Wl,'
  7075. ;;
  7076. *Intel*\ [CF]*Compiler*)
  7077. lt_prog_compiler_wl='-Wl,'
  7078. lt_prog_compiler_pic='-fPIC'
  7079. lt_prog_compiler_static='-static'
  7080. ;;
  7081. *Portland\ Group*)
  7082. lt_prog_compiler_wl='-Wl,'
  7083. lt_prog_compiler_pic='-fpic'
  7084. lt_prog_compiler_static='-Bstatic'
  7085. ;;
  7086. esac
  7087. ;;
  7088. esac
  7089. ;;
  7090. newsos6)
  7091. lt_prog_compiler_pic='-KPIC'
  7092. lt_prog_compiler_static='-Bstatic'
  7093. ;;
  7094. *nto* | *qnx*)
  7095. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7096. # it will coredump.
  7097. lt_prog_compiler_pic='-fPIC -shared'
  7098. ;;
  7099. osf3* | osf4* | osf5*)
  7100. lt_prog_compiler_wl='-Wl,'
  7101. # All OSF/1 code is PIC.
  7102. lt_prog_compiler_static='-non_shared'
  7103. ;;
  7104. rdos*)
  7105. lt_prog_compiler_static='-non_shared'
  7106. ;;
  7107. solaris*)
  7108. lt_prog_compiler_pic='-KPIC'
  7109. lt_prog_compiler_static='-Bstatic'
  7110. case $cc_basename in
  7111. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7112. lt_prog_compiler_wl='-Qoption ld ';;
  7113. *)
  7114. lt_prog_compiler_wl='-Wl,';;
  7115. esac
  7116. ;;
  7117. sunos4*)
  7118. lt_prog_compiler_wl='-Qoption ld '
  7119. lt_prog_compiler_pic='-PIC'
  7120. lt_prog_compiler_static='-Bstatic'
  7121. ;;
  7122. sysv4 | sysv4.2uw2* | sysv4.3*)
  7123. lt_prog_compiler_wl='-Wl,'
  7124. lt_prog_compiler_pic='-KPIC'
  7125. lt_prog_compiler_static='-Bstatic'
  7126. ;;
  7127. sysv4*MP*)
  7128. if test -d /usr/nec ;then
  7129. lt_prog_compiler_pic='-Kconform_pic'
  7130. lt_prog_compiler_static='-Bstatic'
  7131. fi
  7132. ;;
  7133. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7134. lt_prog_compiler_wl='-Wl,'
  7135. lt_prog_compiler_pic='-KPIC'
  7136. lt_prog_compiler_static='-Bstatic'
  7137. ;;
  7138. unicos*)
  7139. lt_prog_compiler_wl='-Wl,'
  7140. lt_prog_compiler_can_build_shared=no
  7141. ;;
  7142. uts4*)
  7143. lt_prog_compiler_pic='-pic'
  7144. lt_prog_compiler_static='-Bstatic'
  7145. ;;
  7146. *)
  7147. lt_prog_compiler_can_build_shared=no
  7148. ;;
  7149. esac
  7150. fi
  7151. case $host_os in
  7152. # For platforms which do not support PIC, -DPIC is meaningless:
  7153. *djgpp*)
  7154. lt_prog_compiler_pic=
  7155. ;;
  7156. *)
  7157. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7158. ;;
  7159. esac
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7161. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7162. if ${lt_cv_prog_compiler_pic+:} false; then :
  7163. $as_echo_n "(cached) " >&6
  7164. else
  7165. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7166. fi
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7168. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7169. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7170. #
  7171. # Check to make sure the PIC flag actually works.
  7172. #
  7173. if test -n "$lt_prog_compiler_pic"; then
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7175. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7176. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7177. $as_echo_n "(cached) " >&6
  7178. else
  7179. lt_cv_prog_compiler_pic_works=no
  7180. ac_outfile=conftest.$ac_objext
  7181. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7182. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7183. # Insert the option either (1) after the last *FLAGS variable, or
  7184. # (2) before a word containing "conftest.", or (3) at the end.
  7185. # Note that $ac_compile itself does not contain backslashes and begins
  7186. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7187. # The option is referenced via a variable to avoid confusing sed.
  7188. lt_compile=`echo "$ac_compile" | $SED \
  7189. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7190. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7191. -e 's:$: $lt_compiler_flag:'`
  7192. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7193. (eval "$lt_compile" 2>conftest.err)
  7194. ac_status=$?
  7195. cat conftest.err >&5
  7196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7197. if (exit $ac_status) && test -s "$ac_outfile"; then
  7198. # The compiler can only warn and ignore the option if not recognized
  7199. # So say no if there are warnings other than the usual output.
  7200. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7201. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7202. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7203. lt_cv_prog_compiler_pic_works=yes
  7204. fi
  7205. fi
  7206. $RM conftest*
  7207. fi
  7208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7209. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7210. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7211. case $lt_prog_compiler_pic in
  7212. "" | " "*) ;;
  7213. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7214. esac
  7215. else
  7216. lt_prog_compiler_pic=
  7217. lt_prog_compiler_can_build_shared=no
  7218. fi
  7219. fi
  7220. #
  7221. # Check to make sure the static flag actually works.
  7222. #
  7223. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7225. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7226. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7227. $as_echo_n "(cached) " >&6
  7228. else
  7229. lt_cv_prog_compiler_static_works=no
  7230. save_LDFLAGS="$LDFLAGS"
  7231. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7232. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7233. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7234. # The linker can only warn and ignore the option if not recognized
  7235. # So say no if there are warnings
  7236. if test -s conftest.err; then
  7237. # Append any errors to the config.log.
  7238. cat conftest.err 1>&5
  7239. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7240. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7241. if diff conftest.exp conftest.er2 >/dev/null; then
  7242. lt_cv_prog_compiler_static_works=yes
  7243. fi
  7244. else
  7245. lt_cv_prog_compiler_static_works=yes
  7246. fi
  7247. fi
  7248. $RM -r conftest*
  7249. LDFLAGS="$save_LDFLAGS"
  7250. fi
  7251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7252. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7253. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7254. :
  7255. else
  7256. lt_prog_compiler_static=
  7257. fi
  7258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7259. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7260. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7261. $as_echo_n "(cached) " >&6
  7262. else
  7263. lt_cv_prog_compiler_c_o=no
  7264. $RM -r conftest 2>/dev/null
  7265. mkdir conftest
  7266. cd conftest
  7267. mkdir out
  7268. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7269. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7270. # Insert the option either (1) after the last *FLAGS variable, or
  7271. # (2) before a word containing "conftest.", or (3) at the end.
  7272. # Note that $ac_compile itself does not contain backslashes and begins
  7273. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7274. lt_compile=`echo "$ac_compile" | $SED \
  7275. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7276. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7277. -e 's:$: $lt_compiler_flag:'`
  7278. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7279. (eval "$lt_compile" 2>out/conftest.err)
  7280. ac_status=$?
  7281. cat out/conftest.err >&5
  7282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7283. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7284. then
  7285. # The compiler can only warn and ignore the option if not recognized
  7286. # So say no if there are warnings
  7287. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7288. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7289. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7290. lt_cv_prog_compiler_c_o=yes
  7291. fi
  7292. fi
  7293. chmod u+w . 2>&5
  7294. $RM conftest*
  7295. # SGI C++ compiler will create directory out/ii_files/ for
  7296. # template instantiation
  7297. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7298. $RM out/* && rmdir out
  7299. cd ..
  7300. $RM -r conftest
  7301. $RM conftest*
  7302. fi
  7303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7304. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7306. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7307. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7308. $as_echo_n "(cached) " >&6
  7309. else
  7310. lt_cv_prog_compiler_c_o=no
  7311. $RM -r conftest 2>/dev/null
  7312. mkdir conftest
  7313. cd conftest
  7314. mkdir out
  7315. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7316. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7317. # Insert the option either (1) after the last *FLAGS variable, or
  7318. # (2) before a word containing "conftest.", or (3) at the end.
  7319. # Note that $ac_compile itself does not contain backslashes and begins
  7320. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7321. lt_compile=`echo "$ac_compile" | $SED \
  7322. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7323. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7324. -e 's:$: $lt_compiler_flag:'`
  7325. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7326. (eval "$lt_compile" 2>out/conftest.err)
  7327. ac_status=$?
  7328. cat out/conftest.err >&5
  7329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7330. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7331. then
  7332. # The compiler can only warn and ignore the option if not recognized
  7333. # So say no if there are warnings
  7334. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7335. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7336. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7337. lt_cv_prog_compiler_c_o=yes
  7338. fi
  7339. fi
  7340. chmod u+w . 2>&5
  7341. $RM conftest*
  7342. # SGI C++ compiler will create directory out/ii_files/ for
  7343. # template instantiation
  7344. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7345. $RM out/* && rmdir out
  7346. cd ..
  7347. $RM -r conftest
  7348. $RM conftest*
  7349. fi
  7350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7351. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7352. hard_links="nottested"
  7353. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7354. # do not overwrite the value of need_locks provided by the user
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7356. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7357. hard_links=yes
  7358. $RM conftest*
  7359. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7360. touch conftest.a
  7361. ln conftest.a conftest.b 2>&5 || hard_links=no
  7362. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7364. $as_echo "$hard_links" >&6; }
  7365. if test "$hard_links" = no; then
  7366. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7367. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7368. need_locks=warn
  7369. fi
  7370. else
  7371. need_locks=no
  7372. fi
  7373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7374. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7375. runpath_var=
  7376. allow_undefined_flag=
  7377. always_export_symbols=no
  7378. archive_cmds=
  7379. archive_expsym_cmds=
  7380. compiler_needs_object=no
  7381. enable_shared_with_static_runtimes=no
  7382. export_dynamic_flag_spec=
  7383. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7384. hardcode_automatic=no
  7385. hardcode_direct=no
  7386. hardcode_direct_absolute=no
  7387. hardcode_libdir_flag_spec=
  7388. hardcode_libdir_separator=
  7389. hardcode_minus_L=no
  7390. hardcode_shlibpath_var=unsupported
  7391. inherit_rpath=no
  7392. link_all_deplibs=unknown
  7393. module_cmds=
  7394. module_expsym_cmds=
  7395. old_archive_from_new_cmds=
  7396. old_archive_from_expsyms_cmds=
  7397. thread_safe_flag_spec=
  7398. whole_archive_flag_spec=
  7399. # include_expsyms should be a list of space-separated symbols to be *always*
  7400. # included in the symbol list
  7401. include_expsyms=
  7402. # exclude_expsyms can be an extended regexp of symbols to exclude
  7403. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7404. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7405. # as well as any symbol that contains `d'.
  7406. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7407. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7408. # platforms (ab)use it in PIC code, but their linkers get confused if
  7409. # the symbol is explicitly referenced. Since portable code cannot
  7410. # rely on this symbol name, it's probably fine to never include it in
  7411. # preloaded symbol tables.
  7412. # Exclude shared library initialization/finalization symbols.
  7413. extract_expsyms_cmds=
  7414. case $host_os in
  7415. cygwin* | mingw* | pw32* | cegcc*)
  7416. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7417. # When not using gcc, we currently assume that we are using
  7418. # Microsoft Visual C++.
  7419. if test "$GCC" != yes; then
  7420. with_gnu_ld=no
  7421. fi
  7422. ;;
  7423. interix*)
  7424. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7425. with_gnu_ld=yes
  7426. ;;
  7427. openbsd*)
  7428. with_gnu_ld=no
  7429. ;;
  7430. esac
  7431. ld_shlibs=yes
  7432. # On some targets, GNU ld is compatible enough with the native linker
  7433. # that we're better off using the native interface for both.
  7434. lt_use_gnu_ld_interface=no
  7435. if test "$with_gnu_ld" = yes; then
  7436. case $host_os in
  7437. aix*)
  7438. # The AIX port of GNU ld has always aspired to compatibility
  7439. # with the native linker. However, as the warning in the GNU ld
  7440. # block says, versions before 2.19.5* couldn't really create working
  7441. # shared libraries, regardless of the interface used.
  7442. case `$LD -v 2>&1` in
  7443. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7444. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7445. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7446. *)
  7447. lt_use_gnu_ld_interface=yes
  7448. ;;
  7449. esac
  7450. ;;
  7451. *)
  7452. lt_use_gnu_ld_interface=yes
  7453. ;;
  7454. esac
  7455. fi
  7456. if test "$lt_use_gnu_ld_interface" = yes; then
  7457. # If archive_cmds runs LD, not CC, wlarc should be empty
  7458. wlarc='${wl}'
  7459. # Set some defaults for GNU ld with shared library support. These
  7460. # are reset later if shared libraries are not supported. Putting them
  7461. # here allows them to be overridden if necessary.
  7462. runpath_var=LD_RUN_PATH
  7463. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7464. export_dynamic_flag_spec='${wl}--export-dynamic'
  7465. # ancient GNU ld didn't support --whole-archive et. al.
  7466. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7467. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7468. else
  7469. whole_archive_flag_spec=
  7470. fi
  7471. supports_anon_versioning=no
  7472. case `$LD -v 2>&1` in
  7473. *GNU\ gold*) supports_anon_versioning=yes ;;
  7474. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7475. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7476. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7477. *\ 2.11.*) ;; # other 2.11 versions
  7478. *) supports_anon_versioning=yes ;;
  7479. esac
  7480. # See if GNU ld supports shared libraries.
  7481. case $host_os in
  7482. aix[3-9]*)
  7483. # On AIX/PPC, the GNU linker is very broken
  7484. if test "$host_cpu" != ia64; then
  7485. ld_shlibs=no
  7486. cat <<_LT_EOF 1>&2
  7487. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7488. *** to be unable to reliably create shared libraries on AIX.
  7489. *** Therefore, libtool is disabling shared libraries support. If you
  7490. *** really care for shared libraries, you may want to install binutils
  7491. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7492. *** You will then need to restart the configuration process.
  7493. _LT_EOF
  7494. fi
  7495. ;;
  7496. amigaos*)
  7497. case $host_cpu in
  7498. powerpc)
  7499. # see comment about AmigaOS4 .so support
  7500. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7501. archive_expsym_cmds=''
  7502. ;;
  7503. m68k)
  7504. 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)'
  7505. hardcode_libdir_flag_spec='-L$libdir'
  7506. hardcode_minus_L=yes
  7507. ;;
  7508. esac
  7509. ;;
  7510. beos*)
  7511. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7512. allow_undefined_flag=unsupported
  7513. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7514. # support --undefined. This deserves some investigation. FIXME
  7515. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7516. else
  7517. ld_shlibs=no
  7518. fi
  7519. ;;
  7520. cygwin* | mingw* | pw32* | cegcc*)
  7521. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7522. # as there is no search path for DLLs.
  7523. hardcode_libdir_flag_spec='-L$libdir'
  7524. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7525. allow_undefined_flag=unsupported
  7526. always_export_symbols=no
  7527. enable_shared_with_static_runtimes=yes
  7528. 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'
  7529. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7530. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7531. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7532. # If the export-symbols file already is a .def file (1st line
  7533. # is EXPORTS), use it as is; otherwise, prepend...
  7534. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7535. cp $export_symbols $output_objdir/$soname.def;
  7536. else
  7537. echo EXPORTS > $output_objdir/$soname.def;
  7538. cat $export_symbols >> $output_objdir/$soname.def;
  7539. fi~
  7540. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7541. else
  7542. ld_shlibs=no
  7543. fi
  7544. ;;
  7545. haiku*)
  7546. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7547. link_all_deplibs=yes
  7548. ;;
  7549. interix[3-9]*)
  7550. hardcode_direct=no
  7551. hardcode_shlibpath_var=no
  7552. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7553. export_dynamic_flag_spec='${wl}-E'
  7554. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7555. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7556. # default) and relocated if they conflict, which is a slow very memory
  7557. # consuming and fragmenting process. To avoid this, we pick a random,
  7558. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7559. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7560. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7561. 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'
  7562. ;;
  7563. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7564. tmp_diet=no
  7565. if test "$host_os" = linux-dietlibc; then
  7566. case $cc_basename in
  7567. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7568. esac
  7569. fi
  7570. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7571. && test "$tmp_diet" = no
  7572. then
  7573. tmp_addflag=' $pic_flag'
  7574. tmp_sharedflag='-shared'
  7575. case $cc_basename,$host_cpu in
  7576. pgcc*) # Portland Group C compiler
  7577. 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'
  7578. tmp_addflag=' $pic_flag'
  7579. ;;
  7580. pgf77* | pgf90* | pgf95* | pgfortran*)
  7581. # Portland Group f77 and f90 compilers
  7582. 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'
  7583. tmp_addflag=' $pic_flag -Mnomain' ;;
  7584. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7585. tmp_addflag=' -i_dynamic' ;;
  7586. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7587. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7588. ifc* | ifort*) # Intel Fortran compiler
  7589. tmp_addflag=' -nofor_main' ;;
  7590. lf95*) # Lahey Fortran 8.1
  7591. whole_archive_flag_spec=
  7592. tmp_sharedflag='--shared' ;;
  7593. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7594. tmp_sharedflag='-qmkshrobj'
  7595. tmp_addflag= ;;
  7596. nvcc*) # Cuda Compiler Driver 2.2
  7597. 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'
  7598. compiler_needs_object=yes
  7599. ;;
  7600. esac
  7601. case `$CC -V 2>&1 | sed 5q` in
  7602. *Sun\ C*) # Sun C 5.9
  7603. 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'
  7604. compiler_needs_object=yes
  7605. tmp_sharedflag='-G' ;;
  7606. *Sun\ F*) # Sun Fortran 8.3
  7607. tmp_sharedflag='-G' ;;
  7608. esac
  7609. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7610. if test "x$supports_anon_versioning" = xyes; then
  7611. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7612. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7613. echo "local: *; };" >> $output_objdir/$libname.ver~
  7614. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7615. fi
  7616. case $cc_basename in
  7617. xlf* | bgf* | bgxlf* | mpixlf*)
  7618. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7619. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7620. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7621. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7622. if test "x$supports_anon_versioning" = xyes; then
  7623. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7624. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7625. echo "local: *; };" >> $output_objdir/$libname.ver~
  7626. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7627. fi
  7628. ;;
  7629. esac
  7630. else
  7631. ld_shlibs=no
  7632. fi
  7633. ;;
  7634. netbsd*)
  7635. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7636. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7637. wlarc=
  7638. else
  7639. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7640. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7641. fi
  7642. ;;
  7643. solaris*)
  7644. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7645. ld_shlibs=no
  7646. cat <<_LT_EOF 1>&2
  7647. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7648. *** create shared libraries on Solaris systems. Therefore, libtool
  7649. *** is disabling shared libraries support. We urge you to upgrade GNU
  7650. *** binutils to release 2.9.1 or newer. Another option is to modify
  7651. *** your PATH or compiler configuration so that the native linker is
  7652. *** used, and then restart.
  7653. _LT_EOF
  7654. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7655. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7656. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7657. else
  7658. ld_shlibs=no
  7659. fi
  7660. ;;
  7661. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7662. case `$LD -v 2>&1` in
  7663. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7664. ld_shlibs=no
  7665. cat <<_LT_EOF 1>&2
  7666. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7667. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7668. *** is disabling shared libraries support. We urge you to upgrade GNU
  7669. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7670. *** your PATH or compiler configuration so that the native linker is
  7671. *** used, and then restart.
  7672. _LT_EOF
  7673. ;;
  7674. *)
  7675. # For security reasons, it is highly recommended that you always
  7676. # use absolute paths for naming shared libraries, and exclude the
  7677. # DT_RUNPATH tag from executables and libraries. But doing so
  7678. # requires that you compile everything twice, which is a pain.
  7679. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7680. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7681. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7682. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7683. else
  7684. ld_shlibs=no
  7685. fi
  7686. ;;
  7687. esac
  7688. ;;
  7689. sunos4*)
  7690. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7691. wlarc=
  7692. hardcode_direct=yes
  7693. hardcode_shlibpath_var=no
  7694. ;;
  7695. *)
  7696. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7697. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7698. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7699. else
  7700. ld_shlibs=no
  7701. fi
  7702. ;;
  7703. esac
  7704. if test "$ld_shlibs" = no; then
  7705. runpath_var=
  7706. hardcode_libdir_flag_spec=
  7707. export_dynamic_flag_spec=
  7708. whole_archive_flag_spec=
  7709. fi
  7710. else
  7711. # PORTME fill in a description of your system's linker (not GNU ld)
  7712. case $host_os in
  7713. aix3*)
  7714. allow_undefined_flag=unsupported
  7715. always_export_symbols=yes
  7716. 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'
  7717. # Note: this linker hardcodes the directories in LIBPATH if there
  7718. # are no directories specified by -L.
  7719. hardcode_minus_L=yes
  7720. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7721. # Neither direct hardcoding nor static linking is supported with a
  7722. # broken collect2.
  7723. hardcode_direct=unsupported
  7724. fi
  7725. ;;
  7726. aix[4-9]*)
  7727. if test "$host_cpu" = ia64; then
  7728. # On IA64, the linker does run time linking by default, so we don't
  7729. # have to do anything special.
  7730. aix_use_runtimelinking=no
  7731. exp_sym_flag='-Bexport'
  7732. no_entry_flag=""
  7733. else
  7734. # If we're using GNU nm, then we don't want the "-C" option.
  7735. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7736. # Also, AIX nm treats weak defined symbols like other global
  7737. # defined symbols, whereas GNU nm marks them as "W".
  7738. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7739. 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'
  7740. else
  7741. 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'
  7742. fi
  7743. aix_use_runtimelinking=no
  7744. # Test if we are trying to use run time linking or normal
  7745. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7746. # need to do runtime linking.
  7747. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7748. for ld_flag in $LDFLAGS; do
  7749. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7750. aix_use_runtimelinking=yes
  7751. break
  7752. fi
  7753. done
  7754. ;;
  7755. esac
  7756. exp_sym_flag='-bexport'
  7757. no_entry_flag='-bnoentry'
  7758. fi
  7759. # When large executables or shared objects are built, AIX ld can
  7760. # have problems creating the table of contents. If linking a library
  7761. # or program results in "error TOC overflow" add -mminimal-toc to
  7762. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7763. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7764. archive_cmds=''
  7765. hardcode_direct=yes
  7766. hardcode_direct_absolute=yes
  7767. hardcode_libdir_separator=':'
  7768. link_all_deplibs=yes
  7769. file_list_spec='${wl}-f,'
  7770. if test "$GCC" = yes; then
  7771. case $host_os in aix4.[012]|aix4.[012].*)
  7772. # We only want to do this on AIX 4.2 and lower, the check
  7773. # below for broken collect2 doesn't work under 4.3+
  7774. collect2name=`${CC} -print-prog-name=collect2`
  7775. if test -f "$collect2name" &&
  7776. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7777. then
  7778. # We have reworked collect2
  7779. :
  7780. else
  7781. # We have old collect2
  7782. hardcode_direct=unsupported
  7783. # It fails to find uninstalled libraries when the uninstalled
  7784. # path is not listed in the libpath. Setting hardcode_minus_L
  7785. # to unsupported forces relinking
  7786. hardcode_minus_L=yes
  7787. hardcode_libdir_flag_spec='-L$libdir'
  7788. hardcode_libdir_separator=
  7789. fi
  7790. ;;
  7791. esac
  7792. shared_flag='-shared'
  7793. if test "$aix_use_runtimelinking" = yes; then
  7794. shared_flag="$shared_flag "'${wl}-G'
  7795. fi
  7796. else
  7797. # not using gcc
  7798. if test "$host_cpu" = ia64; then
  7799. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7800. # chokes on -Wl,-G. The following line is correct:
  7801. shared_flag='-G'
  7802. else
  7803. if test "$aix_use_runtimelinking" = yes; then
  7804. shared_flag='${wl}-G'
  7805. else
  7806. shared_flag='${wl}-bM:SRE'
  7807. fi
  7808. fi
  7809. fi
  7810. export_dynamic_flag_spec='${wl}-bexpall'
  7811. # It seems that -bexpall does not export symbols beginning with
  7812. # underscore (_), so it is better to generate a list of symbols to export.
  7813. always_export_symbols=yes
  7814. if test "$aix_use_runtimelinking" = yes; then
  7815. # Warning - without using the other runtime loading flags (-brtl),
  7816. # -berok will link without error, but may produce a broken library.
  7817. allow_undefined_flag='-berok'
  7818. # Determine the default libpath from the value encoded in an
  7819. # empty executable.
  7820. if test "${lt_cv_aix_libpath+set}" = set; then
  7821. aix_libpath=$lt_cv_aix_libpath
  7822. else
  7823. if ${lt_cv_aix_libpath_+:} false; then :
  7824. $as_echo_n "(cached) " >&6
  7825. else
  7826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7827. /* end confdefs.h. */
  7828. int
  7829. main ()
  7830. {
  7831. ;
  7832. return 0;
  7833. }
  7834. _ACEOF
  7835. if ac_fn_c_try_link "$LINENO"; then :
  7836. lt_aix_libpath_sed='
  7837. /Import File Strings/,/^$/ {
  7838. /^0/ {
  7839. s/^0 *\([^ ]*\) *$/\1/
  7840. p
  7841. }
  7842. }'
  7843. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7844. # Check for a 64-bit object if we didn't find anything.
  7845. if test -z "$lt_cv_aix_libpath_"; then
  7846. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7847. fi
  7848. fi
  7849. rm -f core conftest.err conftest.$ac_objext \
  7850. conftest$ac_exeext conftest.$ac_ext
  7851. if test -z "$lt_cv_aix_libpath_"; then
  7852. lt_cv_aix_libpath_="/usr/lib:/lib"
  7853. fi
  7854. fi
  7855. aix_libpath=$lt_cv_aix_libpath_
  7856. fi
  7857. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7858. 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"
  7859. else
  7860. if test "$host_cpu" = ia64; then
  7861. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7862. allow_undefined_flag="-z nodefs"
  7863. 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"
  7864. else
  7865. # Determine the default libpath from the value encoded in an
  7866. # empty executable.
  7867. if test "${lt_cv_aix_libpath+set}" = set; then
  7868. aix_libpath=$lt_cv_aix_libpath
  7869. else
  7870. if ${lt_cv_aix_libpath_+:} false; then :
  7871. $as_echo_n "(cached) " >&6
  7872. else
  7873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7874. /* end confdefs.h. */
  7875. int
  7876. main ()
  7877. {
  7878. ;
  7879. return 0;
  7880. }
  7881. _ACEOF
  7882. if ac_fn_c_try_link "$LINENO"; then :
  7883. lt_aix_libpath_sed='
  7884. /Import File Strings/,/^$/ {
  7885. /^0/ {
  7886. s/^0 *\([^ ]*\) *$/\1/
  7887. p
  7888. }
  7889. }'
  7890. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7891. # Check for a 64-bit object if we didn't find anything.
  7892. if test -z "$lt_cv_aix_libpath_"; then
  7893. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7894. fi
  7895. fi
  7896. rm -f core conftest.err conftest.$ac_objext \
  7897. conftest$ac_exeext conftest.$ac_ext
  7898. if test -z "$lt_cv_aix_libpath_"; then
  7899. lt_cv_aix_libpath_="/usr/lib:/lib"
  7900. fi
  7901. fi
  7902. aix_libpath=$lt_cv_aix_libpath_
  7903. fi
  7904. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7905. # Warning - without using the other run time loading flags,
  7906. # -berok will link without error, but may produce a broken library.
  7907. no_undefined_flag=' ${wl}-bernotok'
  7908. allow_undefined_flag=' ${wl}-berok'
  7909. if test "$with_gnu_ld" = yes; then
  7910. # We only use this code for GNU lds that support --whole-archive.
  7911. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7912. else
  7913. # Exported symbols can be pulled into shared objects from archives
  7914. whole_archive_flag_spec='$convenience'
  7915. fi
  7916. archive_cmds_need_lc=yes
  7917. # This is similar to how AIX traditionally builds its shared libraries.
  7918. 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'
  7919. fi
  7920. fi
  7921. ;;
  7922. amigaos*)
  7923. case $host_cpu in
  7924. powerpc)
  7925. # see comment about AmigaOS4 .so support
  7926. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7927. archive_expsym_cmds=''
  7928. ;;
  7929. m68k)
  7930. 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)'
  7931. hardcode_libdir_flag_spec='-L$libdir'
  7932. hardcode_minus_L=yes
  7933. ;;
  7934. esac
  7935. ;;
  7936. bsdi[45]*)
  7937. export_dynamic_flag_spec=-rdynamic
  7938. ;;
  7939. cygwin* | mingw* | pw32* | cegcc*)
  7940. # When not using gcc, we currently assume that we are using
  7941. # Microsoft Visual C++.
  7942. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7943. # no search path for DLLs.
  7944. case $cc_basename in
  7945. cl*)
  7946. # Native MSVC
  7947. hardcode_libdir_flag_spec=' '
  7948. allow_undefined_flag=unsupported
  7949. always_export_symbols=yes
  7950. file_list_spec='@'
  7951. # Tell ltmain to make .lib files, not .a files.
  7952. libext=lib
  7953. # Tell ltmain to make .dll files, not .so files.
  7954. shrext_cmds=".dll"
  7955. # FIXME: Setting linknames here is a bad hack.
  7956. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7957. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7958. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7959. else
  7960. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7961. fi~
  7962. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7963. linknames='
  7964. # The linker will not automatically build a static lib if we build a DLL.
  7965. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7966. enable_shared_with_static_runtimes=yes
  7967. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7968. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7969. # Don't use ranlib
  7970. old_postinstall_cmds='chmod 644 $oldlib'
  7971. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7972. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7973. case $lt_outputfile in
  7974. *.exe|*.EXE) ;;
  7975. *)
  7976. lt_outputfile="$lt_outputfile.exe"
  7977. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7978. ;;
  7979. esac~
  7980. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7981. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7982. $RM "$lt_outputfile.manifest";
  7983. fi'
  7984. ;;
  7985. *)
  7986. # Assume MSVC wrapper
  7987. hardcode_libdir_flag_spec=' '
  7988. allow_undefined_flag=unsupported
  7989. # Tell ltmain to make .lib files, not .a files.
  7990. libext=lib
  7991. # Tell ltmain to make .dll files, not .so files.
  7992. shrext_cmds=".dll"
  7993. # FIXME: Setting linknames here is a bad hack.
  7994. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7995. # The linker will automatically build a .lib file if we build a DLL.
  7996. old_archive_from_new_cmds='true'
  7997. # FIXME: Should let the user specify the lib program.
  7998. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7999. enable_shared_with_static_runtimes=yes
  8000. ;;
  8001. esac
  8002. ;;
  8003. darwin* | rhapsody*)
  8004. archive_cmds_need_lc=no
  8005. hardcode_direct=no
  8006. hardcode_automatic=yes
  8007. hardcode_shlibpath_var=unsupported
  8008. if test "$lt_cv_ld_force_load" = "yes"; then
  8009. 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\"`'
  8010. else
  8011. whole_archive_flag_spec=''
  8012. fi
  8013. link_all_deplibs=yes
  8014. allow_undefined_flag="$_lt_dar_allow_undefined"
  8015. case $cc_basename in
  8016. ifort*) _lt_dar_can_shared=yes ;;
  8017. *) _lt_dar_can_shared=$GCC ;;
  8018. esac
  8019. if test "$_lt_dar_can_shared" = "yes"; then
  8020. output_verbose_link_cmd=func_echo_all
  8021. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8022. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8023. 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}"
  8024. 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}"
  8025. else
  8026. ld_shlibs=no
  8027. fi
  8028. ;;
  8029. dgux*)
  8030. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8031. hardcode_libdir_flag_spec='-L$libdir'
  8032. hardcode_shlibpath_var=no
  8033. ;;
  8034. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8035. # support. Future versions do this automatically, but an explicit c++rt0.o
  8036. # does not break anything, and helps significantly (at the cost of a little
  8037. # extra space).
  8038. freebsd2.2*)
  8039. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8040. hardcode_libdir_flag_spec='-R$libdir'
  8041. hardcode_direct=yes
  8042. hardcode_shlibpath_var=no
  8043. ;;
  8044. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8045. freebsd2.*)
  8046. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8047. hardcode_direct=yes
  8048. hardcode_minus_L=yes
  8049. hardcode_shlibpath_var=no
  8050. ;;
  8051. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8052. freebsd* | dragonfly*)
  8053. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8054. hardcode_libdir_flag_spec='-R$libdir'
  8055. hardcode_direct=yes
  8056. hardcode_shlibpath_var=no
  8057. ;;
  8058. hpux9*)
  8059. if test "$GCC" = yes; then
  8060. 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'
  8061. else
  8062. 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'
  8063. fi
  8064. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8065. hardcode_libdir_separator=:
  8066. hardcode_direct=yes
  8067. # hardcode_minus_L: Not really in the search PATH,
  8068. # but as the default location of the library.
  8069. hardcode_minus_L=yes
  8070. export_dynamic_flag_spec='${wl}-E'
  8071. ;;
  8072. hpux10*)
  8073. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8074. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8075. else
  8076. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8077. fi
  8078. if test "$with_gnu_ld" = no; then
  8079. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8080. hardcode_libdir_separator=:
  8081. hardcode_direct=yes
  8082. hardcode_direct_absolute=yes
  8083. export_dynamic_flag_spec='${wl}-E'
  8084. # hardcode_minus_L: Not really in the search PATH,
  8085. # but as the default location of the library.
  8086. hardcode_minus_L=yes
  8087. fi
  8088. ;;
  8089. hpux11*)
  8090. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8091. case $host_cpu in
  8092. hppa*64*)
  8093. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8094. ;;
  8095. ia64*)
  8096. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8097. ;;
  8098. *)
  8099. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8100. ;;
  8101. esac
  8102. else
  8103. case $host_cpu in
  8104. hppa*64*)
  8105. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8106. ;;
  8107. ia64*)
  8108. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8109. ;;
  8110. *)
  8111. # Older versions of the 11.00 compiler do not understand -b yet
  8112. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8114. $as_echo_n "checking if $CC understands -b... " >&6; }
  8115. if ${lt_cv_prog_compiler__b+:} false; then :
  8116. $as_echo_n "(cached) " >&6
  8117. else
  8118. lt_cv_prog_compiler__b=no
  8119. save_LDFLAGS="$LDFLAGS"
  8120. LDFLAGS="$LDFLAGS -b"
  8121. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8122. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8123. # The linker can only warn and ignore the option if not recognized
  8124. # So say no if there are warnings
  8125. if test -s conftest.err; then
  8126. # Append any errors to the config.log.
  8127. cat conftest.err 1>&5
  8128. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8129. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8130. if diff conftest.exp conftest.er2 >/dev/null; then
  8131. lt_cv_prog_compiler__b=yes
  8132. fi
  8133. else
  8134. lt_cv_prog_compiler__b=yes
  8135. fi
  8136. fi
  8137. $RM -r conftest*
  8138. LDFLAGS="$save_LDFLAGS"
  8139. fi
  8140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8141. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8142. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8143. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8144. else
  8145. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8146. fi
  8147. ;;
  8148. esac
  8149. fi
  8150. if test "$with_gnu_ld" = no; then
  8151. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8152. hardcode_libdir_separator=:
  8153. case $host_cpu in
  8154. hppa*64*|ia64*)
  8155. hardcode_direct=no
  8156. hardcode_shlibpath_var=no
  8157. ;;
  8158. *)
  8159. hardcode_direct=yes
  8160. hardcode_direct_absolute=yes
  8161. export_dynamic_flag_spec='${wl}-E'
  8162. # hardcode_minus_L: Not really in the search PATH,
  8163. # but as the default location of the library.
  8164. hardcode_minus_L=yes
  8165. ;;
  8166. esac
  8167. fi
  8168. ;;
  8169. irix5* | irix6* | nonstopux*)
  8170. if test "$GCC" = yes; then
  8171. 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'
  8172. # Try to use the -exported_symbol ld option, if it does not
  8173. # work, assume that -exports_file does not work either and
  8174. # implicitly export all symbols.
  8175. # This should be the same for all languages, so no per-tag cache variable.
  8176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8177. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8178. if ${lt_cv_irix_exported_symbol+:} false; then :
  8179. $as_echo_n "(cached) " >&6
  8180. else
  8181. save_LDFLAGS="$LDFLAGS"
  8182. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8184. /* end confdefs.h. */
  8185. int foo (void) { return 0; }
  8186. _ACEOF
  8187. if ac_fn_c_try_link "$LINENO"; then :
  8188. lt_cv_irix_exported_symbol=yes
  8189. else
  8190. lt_cv_irix_exported_symbol=no
  8191. fi
  8192. rm -f core conftest.err conftest.$ac_objext \
  8193. conftest$ac_exeext conftest.$ac_ext
  8194. LDFLAGS="$save_LDFLAGS"
  8195. fi
  8196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8197. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8198. if test "$lt_cv_irix_exported_symbol" = yes; then
  8199. 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'
  8200. fi
  8201. else
  8202. 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'
  8203. 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'
  8204. fi
  8205. archive_cmds_need_lc='no'
  8206. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8207. hardcode_libdir_separator=:
  8208. inherit_rpath=yes
  8209. link_all_deplibs=yes
  8210. ;;
  8211. netbsd*)
  8212. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8213. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8214. else
  8215. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8216. fi
  8217. hardcode_libdir_flag_spec='-R$libdir'
  8218. hardcode_direct=yes
  8219. hardcode_shlibpath_var=no
  8220. ;;
  8221. newsos6)
  8222. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8223. hardcode_direct=yes
  8224. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8225. hardcode_libdir_separator=:
  8226. hardcode_shlibpath_var=no
  8227. ;;
  8228. *nto* | *qnx*)
  8229. ;;
  8230. openbsd*)
  8231. if test -f /usr/libexec/ld.so; then
  8232. hardcode_direct=yes
  8233. hardcode_shlibpath_var=no
  8234. hardcode_direct_absolute=yes
  8235. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8236. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8237. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8238. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8239. export_dynamic_flag_spec='${wl}-E'
  8240. else
  8241. case $host_os in
  8242. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8243. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8244. hardcode_libdir_flag_spec='-R$libdir'
  8245. ;;
  8246. *)
  8247. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8248. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8249. ;;
  8250. esac
  8251. fi
  8252. else
  8253. ld_shlibs=no
  8254. fi
  8255. ;;
  8256. os2*)
  8257. hardcode_libdir_flag_spec='-L$libdir'
  8258. hardcode_minus_L=yes
  8259. allow_undefined_flag=unsupported
  8260. 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'
  8261. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8262. ;;
  8263. osf3*)
  8264. if test "$GCC" = yes; then
  8265. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8266. 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'
  8267. else
  8268. allow_undefined_flag=' -expect_unresolved \*'
  8269. 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'
  8270. fi
  8271. archive_cmds_need_lc='no'
  8272. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8273. hardcode_libdir_separator=:
  8274. ;;
  8275. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8276. if test "$GCC" = yes; then
  8277. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8278. 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'
  8279. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8280. else
  8281. allow_undefined_flag=' -expect_unresolved \*'
  8282. 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'
  8283. 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~
  8284. $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'
  8285. # Both c and cxx compiler support -rpath directly
  8286. hardcode_libdir_flag_spec='-rpath $libdir'
  8287. fi
  8288. archive_cmds_need_lc='no'
  8289. hardcode_libdir_separator=:
  8290. ;;
  8291. solaris*)
  8292. no_undefined_flag=' -z defs'
  8293. if test "$GCC" = yes; then
  8294. wlarc='${wl}'
  8295. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8296. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8297. $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'
  8298. else
  8299. case `$CC -V 2>&1` in
  8300. *"Compilers 5.0"*)
  8301. wlarc=''
  8302. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8303. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8304. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8305. ;;
  8306. *)
  8307. wlarc='${wl}'
  8308. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8309. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8310. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8311. ;;
  8312. esac
  8313. fi
  8314. hardcode_libdir_flag_spec='-R$libdir'
  8315. hardcode_shlibpath_var=no
  8316. case $host_os in
  8317. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8318. *)
  8319. # The compiler driver will combine and reorder linker options,
  8320. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8321. # but is careful enough not to reorder.
  8322. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8323. if test "$GCC" = yes; then
  8324. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8325. else
  8326. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8327. fi
  8328. ;;
  8329. esac
  8330. link_all_deplibs=yes
  8331. ;;
  8332. sunos4*)
  8333. if test "x$host_vendor" = xsequent; then
  8334. # Use $CC to link under sequent, because it throws in some extra .o
  8335. # files that make .init and .fini sections work.
  8336. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8337. else
  8338. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8339. fi
  8340. hardcode_libdir_flag_spec='-L$libdir'
  8341. hardcode_direct=yes
  8342. hardcode_minus_L=yes
  8343. hardcode_shlibpath_var=no
  8344. ;;
  8345. sysv4)
  8346. case $host_vendor in
  8347. sni)
  8348. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8349. hardcode_direct=yes # is this really true???
  8350. ;;
  8351. siemens)
  8352. ## LD is ld it makes a PLAMLIB
  8353. ## CC just makes a GrossModule.
  8354. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8355. reload_cmds='$CC -r -o $output$reload_objs'
  8356. hardcode_direct=no
  8357. ;;
  8358. motorola)
  8359. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8360. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8361. ;;
  8362. esac
  8363. runpath_var='LD_RUN_PATH'
  8364. hardcode_shlibpath_var=no
  8365. ;;
  8366. sysv4.3*)
  8367. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8368. hardcode_shlibpath_var=no
  8369. export_dynamic_flag_spec='-Bexport'
  8370. ;;
  8371. sysv4*MP*)
  8372. if test -d /usr/nec; then
  8373. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8374. hardcode_shlibpath_var=no
  8375. runpath_var=LD_RUN_PATH
  8376. hardcode_runpath_var=yes
  8377. ld_shlibs=yes
  8378. fi
  8379. ;;
  8380. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8381. no_undefined_flag='${wl}-z,text'
  8382. archive_cmds_need_lc=no
  8383. hardcode_shlibpath_var=no
  8384. runpath_var='LD_RUN_PATH'
  8385. if test "$GCC" = yes; then
  8386. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8387. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8388. else
  8389. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8390. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8391. fi
  8392. ;;
  8393. sysv5* | sco3.2v5* | sco5v6*)
  8394. # Note: We can NOT use -z defs as we might desire, because we do not
  8395. # link with -lc, and that would cause any symbols used from libc to
  8396. # always be unresolved, which means just about no library would
  8397. # ever link correctly. If we're not using GNU ld we use -z text
  8398. # though, which does catch some bad symbols but isn't as heavy-handed
  8399. # as -z defs.
  8400. no_undefined_flag='${wl}-z,text'
  8401. allow_undefined_flag='${wl}-z,nodefs'
  8402. archive_cmds_need_lc=no
  8403. hardcode_shlibpath_var=no
  8404. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8405. hardcode_libdir_separator=':'
  8406. link_all_deplibs=yes
  8407. export_dynamic_flag_spec='${wl}-Bexport'
  8408. runpath_var='LD_RUN_PATH'
  8409. if test "$GCC" = yes; then
  8410. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8411. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8412. else
  8413. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8414. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8415. fi
  8416. ;;
  8417. uts4*)
  8418. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8419. hardcode_libdir_flag_spec='-L$libdir'
  8420. hardcode_shlibpath_var=no
  8421. ;;
  8422. *)
  8423. ld_shlibs=no
  8424. ;;
  8425. esac
  8426. if test x$host_vendor = xsni; then
  8427. case $host in
  8428. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8429. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8430. ;;
  8431. esac
  8432. fi
  8433. fi
  8434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8435. $as_echo "$ld_shlibs" >&6; }
  8436. test "$ld_shlibs" = no && can_build_shared=no
  8437. with_gnu_ld=$with_gnu_ld
  8438. #
  8439. # Do we need to explicitly link libc?
  8440. #
  8441. case "x$archive_cmds_need_lc" in
  8442. x|xyes)
  8443. # Assume -lc should be added
  8444. archive_cmds_need_lc=yes
  8445. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8446. case $archive_cmds in
  8447. *'~'*)
  8448. # FIXME: we may have to deal with multi-command sequences.
  8449. ;;
  8450. '$CC '*)
  8451. # Test whether the compiler implicitly links with -lc since on some
  8452. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8453. # to ld, don't add -lc before -lgcc.
  8454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8455. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8456. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8457. $as_echo_n "(cached) " >&6
  8458. else
  8459. $RM conftest*
  8460. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8461. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8462. (eval $ac_compile) 2>&5
  8463. ac_status=$?
  8464. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8465. test $ac_status = 0; } 2>conftest.err; then
  8466. soname=conftest
  8467. lib=conftest
  8468. libobjs=conftest.$ac_objext
  8469. deplibs=
  8470. wl=$lt_prog_compiler_wl
  8471. pic_flag=$lt_prog_compiler_pic
  8472. compiler_flags=-v
  8473. linker_flags=-v
  8474. verstring=
  8475. output_objdir=.
  8476. libname=conftest
  8477. lt_save_allow_undefined_flag=$allow_undefined_flag
  8478. allow_undefined_flag=
  8479. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8480. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8481. ac_status=$?
  8482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8483. test $ac_status = 0; }
  8484. then
  8485. lt_cv_archive_cmds_need_lc=no
  8486. else
  8487. lt_cv_archive_cmds_need_lc=yes
  8488. fi
  8489. allow_undefined_flag=$lt_save_allow_undefined_flag
  8490. else
  8491. cat conftest.err 1>&5
  8492. fi
  8493. $RM conftest*
  8494. fi
  8495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8496. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8497. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8498. ;;
  8499. esac
  8500. fi
  8501. ;;
  8502. esac
  8503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8504. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8505. if test "$GCC" = yes; then
  8506. case $host_os in
  8507. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8508. *) lt_awk_arg="/^libraries:/" ;;
  8509. esac
  8510. case $host_os in
  8511. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8512. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8513. esac
  8514. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8515. case $lt_search_path_spec in
  8516. *\;*)
  8517. # if the path contains ";" then we assume it to be the separator
  8518. # otherwise default to the standard path separator (i.e. ":") - it is
  8519. # assumed that no part of a normal pathname contains ";" but that should
  8520. # okay in the real world where ";" in dirpaths is itself problematic.
  8521. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8522. ;;
  8523. *)
  8524. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8525. ;;
  8526. esac
  8527. # Ok, now we have the path, separated by spaces, we can step through it
  8528. # and add multilib dir if necessary.
  8529. lt_tmp_lt_search_path_spec=
  8530. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8531. for lt_sys_path in $lt_search_path_spec; do
  8532. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8533. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8534. else
  8535. test -d "$lt_sys_path" && \
  8536. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8537. fi
  8538. done
  8539. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8540. BEGIN {RS=" "; FS="/|\n";} {
  8541. lt_foo="";
  8542. lt_count=0;
  8543. for (lt_i = NF; lt_i > 0; lt_i--) {
  8544. if ($lt_i != "" && $lt_i != ".") {
  8545. if ($lt_i == "..") {
  8546. lt_count++;
  8547. } else {
  8548. if (lt_count == 0) {
  8549. lt_foo="/" $lt_i lt_foo;
  8550. } else {
  8551. lt_count--;
  8552. }
  8553. }
  8554. }
  8555. }
  8556. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8557. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8558. }'`
  8559. # AWK program above erroneously prepends '/' to C:/dos/paths
  8560. # for these hosts.
  8561. case $host_os in
  8562. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8563. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8564. esac
  8565. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8566. else
  8567. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8568. fi
  8569. library_names_spec=
  8570. libname_spec='lib$name'
  8571. soname_spec=
  8572. shrext_cmds=".so"
  8573. postinstall_cmds=
  8574. postuninstall_cmds=
  8575. finish_cmds=
  8576. finish_eval=
  8577. shlibpath_var=
  8578. shlibpath_overrides_runpath=unknown
  8579. version_type=none
  8580. dynamic_linker="$host_os ld.so"
  8581. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8582. need_lib_prefix=unknown
  8583. hardcode_into_libs=no
  8584. # when you set need_version to no, make sure it does not cause -set_version
  8585. # flags to be left without arguments
  8586. need_version=unknown
  8587. case $host_os in
  8588. aix3*)
  8589. version_type=linux # correct to gnu/linux during the next big refactor
  8590. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8591. shlibpath_var=LIBPATH
  8592. # AIX 3 has no versioning support, so we append a major version to the name.
  8593. soname_spec='${libname}${release}${shared_ext}$major'
  8594. ;;
  8595. aix[4-9]*)
  8596. version_type=linux # correct to gnu/linux during the next big refactor
  8597. need_lib_prefix=no
  8598. need_version=no
  8599. hardcode_into_libs=yes
  8600. if test "$host_cpu" = ia64; then
  8601. # AIX 5 supports IA64
  8602. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8603. shlibpath_var=LD_LIBRARY_PATH
  8604. else
  8605. # With GCC up to 2.95.x, collect2 would create an import file
  8606. # for dependence libraries. The import file would start with
  8607. # the line `#! .'. This would cause the generated library to
  8608. # depend on `.', always an invalid library. This was fixed in
  8609. # development snapshots of GCC prior to 3.0.
  8610. case $host_os in
  8611. aix4 | aix4.[01] | aix4.[01].*)
  8612. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8613. echo ' yes '
  8614. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8615. :
  8616. else
  8617. can_build_shared=no
  8618. fi
  8619. ;;
  8620. esac
  8621. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8622. # soname into executable. Probably we can add versioning support to
  8623. # collect2, so additional links can be useful in future.
  8624. if test "$aix_use_runtimelinking" = yes; then
  8625. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8626. # instead of lib<name>.a to let people know that these are not
  8627. # typical AIX shared libraries.
  8628. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8629. else
  8630. # We preserve .a as extension for shared libraries through AIX4.2
  8631. # and later when we are not doing run time linking.
  8632. library_names_spec='${libname}${release}.a $libname.a'
  8633. soname_spec='${libname}${release}${shared_ext}$major'
  8634. fi
  8635. shlibpath_var=LIBPATH
  8636. fi
  8637. ;;
  8638. amigaos*)
  8639. case $host_cpu in
  8640. powerpc)
  8641. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8642. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8643. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8644. ;;
  8645. m68k)
  8646. library_names_spec='$libname.ixlibrary $libname.a'
  8647. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8648. 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'
  8649. ;;
  8650. esac
  8651. ;;
  8652. beos*)
  8653. library_names_spec='${libname}${shared_ext}'
  8654. dynamic_linker="$host_os ld.so"
  8655. shlibpath_var=LIBRARY_PATH
  8656. ;;
  8657. bsdi[45]*)
  8658. version_type=linux # correct to gnu/linux during the next big refactor
  8659. need_version=no
  8660. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8661. soname_spec='${libname}${release}${shared_ext}$major'
  8662. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8663. shlibpath_var=LD_LIBRARY_PATH
  8664. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8665. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8666. # the default ld.so.conf also contains /usr/contrib/lib and
  8667. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8668. # libtool to hard-code these into programs
  8669. ;;
  8670. cygwin* | mingw* | pw32* | cegcc*)
  8671. version_type=windows
  8672. shrext_cmds=".dll"
  8673. need_version=no
  8674. need_lib_prefix=no
  8675. case $GCC,$cc_basename in
  8676. yes,*)
  8677. # gcc
  8678. library_names_spec='$libname.dll.a'
  8679. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8680. postinstall_cmds='base_file=`basename \${file}`~
  8681. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8682. dldir=$destdir/`dirname \$dlpath`~
  8683. test -d \$dldir || mkdir -p \$dldir~
  8684. $install_prog $dir/$dlname \$dldir/$dlname~
  8685. chmod a+x \$dldir/$dlname~
  8686. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8687. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8688. fi'
  8689. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8690. dlpath=$dir/\$dldll~
  8691. $RM \$dlpath'
  8692. shlibpath_overrides_runpath=yes
  8693. case $host_os in
  8694. cygwin*)
  8695. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8696. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8697. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8698. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8699. ;;
  8700. mingw* | cegcc*)
  8701. # MinGW DLLs use traditional 'lib' prefix
  8702. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8703. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8704. ;;
  8705. pw32*)
  8706. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8707. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8708. ;;
  8709. esac
  8710. dynamic_linker='Win32 ld.exe'
  8711. ;;
  8712. *,cl*)
  8713. # Native MSVC
  8714. libname_spec='$name'
  8715. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8716. library_names_spec='${libname}.dll.lib'
  8717. case $build_os in
  8718. mingw*)
  8719. sys_lib_search_path_spec=
  8720. lt_save_ifs=$IFS
  8721. IFS=';'
  8722. for lt_path in $LIB
  8723. do
  8724. IFS=$lt_save_ifs
  8725. # Let DOS variable expansion print the short 8.3 style file name.
  8726. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8727. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8728. done
  8729. IFS=$lt_save_ifs
  8730. # Convert to MSYS style.
  8731. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8732. ;;
  8733. cygwin*)
  8734. # Convert to unix form, then to dos form, then back to unix form
  8735. # but this time dos style (no spaces!) so that the unix form looks
  8736. # like /cygdrive/c/PROGRA~1:/cygdr...
  8737. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8738. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8739. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8740. ;;
  8741. *)
  8742. sys_lib_search_path_spec="$LIB"
  8743. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8744. # It is most probably a Windows format PATH.
  8745. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8746. else
  8747. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8748. fi
  8749. # FIXME: find the short name or the path components, as spaces are
  8750. # common. (e.g. "Program Files" -> "PROGRA~1")
  8751. ;;
  8752. esac
  8753. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8754. postinstall_cmds='base_file=`basename \${file}`~
  8755. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8756. dldir=$destdir/`dirname \$dlpath`~
  8757. test -d \$dldir || mkdir -p \$dldir~
  8758. $install_prog $dir/$dlname \$dldir/$dlname'
  8759. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8760. dlpath=$dir/\$dldll~
  8761. $RM \$dlpath'
  8762. shlibpath_overrides_runpath=yes
  8763. dynamic_linker='Win32 link.exe'
  8764. ;;
  8765. *)
  8766. # Assume MSVC wrapper
  8767. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8768. dynamic_linker='Win32 ld.exe'
  8769. ;;
  8770. esac
  8771. # FIXME: first we should search . and the directory the executable is in
  8772. shlibpath_var=PATH
  8773. ;;
  8774. darwin* | rhapsody*)
  8775. dynamic_linker="$host_os dyld"
  8776. version_type=darwin
  8777. need_lib_prefix=no
  8778. need_version=no
  8779. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8780. soname_spec='${libname}${release}${major}$shared_ext'
  8781. shlibpath_overrides_runpath=yes
  8782. shlibpath_var=DYLD_LIBRARY_PATH
  8783. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8784. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8785. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8786. ;;
  8787. dgux*)
  8788. version_type=linux # correct to gnu/linux during the next big refactor
  8789. need_lib_prefix=no
  8790. need_version=no
  8791. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8792. soname_spec='${libname}${release}${shared_ext}$major'
  8793. shlibpath_var=LD_LIBRARY_PATH
  8794. ;;
  8795. freebsd* | dragonfly*)
  8796. # DragonFly does not have aout. When/if they implement a new
  8797. # versioning mechanism, adjust this.
  8798. if test -x /usr/bin/objformat; then
  8799. objformat=`/usr/bin/objformat`
  8800. else
  8801. case $host_os in
  8802. freebsd[23].*) objformat=aout ;;
  8803. *) objformat=elf ;;
  8804. esac
  8805. fi
  8806. version_type=freebsd-$objformat
  8807. case $version_type in
  8808. freebsd-elf*)
  8809. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8810. need_version=no
  8811. need_lib_prefix=no
  8812. ;;
  8813. freebsd-*)
  8814. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8815. need_version=yes
  8816. ;;
  8817. esac
  8818. shlibpath_var=LD_LIBRARY_PATH
  8819. case $host_os in
  8820. freebsd2.*)
  8821. shlibpath_overrides_runpath=yes
  8822. ;;
  8823. freebsd3.[01]* | freebsdelf3.[01]*)
  8824. shlibpath_overrides_runpath=yes
  8825. hardcode_into_libs=yes
  8826. ;;
  8827. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8828. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8829. shlibpath_overrides_runpath=no
  8830. hardcode_into_libs=yes
  8831. ;;
  8832. *) # from 4.6 on, and DragonFly
  8833. shlibpath_overrides_runpath=yes
  8834. hardcode_into_libs=yes
  8835. ;;
  8836. esac
  8837. ;;
  8838. gnu*)
  8839. version_type=linux # correct to gnu/linux during the next big refactor
  8840. need_lib_prefix=no
  8841. need_version=no
  8842. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8843. soname_spec='${libname}${release}${shared_ext}$major'
  8844. shlibpath_var=LD_LIBRARY_PATH
  8845. shlibpath_overrides_runpath=no
  8846. hardcode_into_libs=yes
  8847. ;;
  8848. haiku*)
  8849. version_type=linux # correct to gnu/linux during the next big refactor
  8850. need_lib_prefix=no
  8851. need_version=no
  8852. dynamic_linker="$host_os runtime_loader"
  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=LIBRARY_PATH
  8856. shlibpath_overrides_runpath=yes
  8857. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8858. hardcode_into_libs=yes
  8859. ;;
  8860. hpux9* | hpux10* | hpux11*)
  8861. # Give a soname corresponding to the major version so that dld.sl refuses to
  8862. # link against other versions.
  8863. version_type=sunos
  8864. need_lib_prefix=no
  8865. need_version=no
  8866. case $host_cpu in
  8867. ia64*)
  8868. shrext_cmds='.so'
  8869. hardcode_into_libs=yes
  8870. dynamic_linker="$host_os dld.so"
  8871. shlibpath_var=LD_LIBRARY_PATH
  8872. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8873. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8874. soname_spec='${libname}${release}${shared_ext}$major'
  8875. if test "X$HPUX_IA64_MODE" = X32; then
  8876. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8877. else
  8878. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8879. fi
  8880. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8881. ;;
  8882. hppa*64*)
  8883. shrext_cmds='.sl'
  8884. hardcode_into_libs=yes
  8885. dynamic_linker="$host_os dld.sl"
  8886. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8887. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8888. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8889. soname_spec='${libname}${release}${shared_ext}$major'
  8890. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8891. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8892. ;;
  8893. *)
  8894. shrext_cmds='.sl'
  8895. dynamic_linker="$host_os dld.sl"
  8896. shlibpath_var=SHLIB_PATH
  8897. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8898. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8899. soname_spec='${libname}${release}${shared_ext}$major'
  8900. ;;
  8901. esac
  8902. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8903. postinstall_cmds='chmod 555 $lib'
  8904. # or fails outright, so override atomically:
  8905. install_override_mode=555
  8906. ;;
  8907. interix[3-9]*)
  8908. version_type=linux # correct to gnu/linux during the next big refactor
  8909. need_lib_prefix=no
  8910. need_version=no
  8911. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8912. soname_spec='${libname}${release}${shared_ext}$major'
  8913. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8914. shlibpath_var=LD_LIBRARY_PATH
  8915. shlibpath_overrides_runpath=no
  8916. hardcode_into_libs=yes
  8917. ;;
  8918. irix5* | irix6* | nonstopux*)
  8919. case $host_os in
  8920. nonstopux*) version_type=nonstopux ;;
  8921. *)
  8922. if test "$lt_cv_prog_gnu_ld" = yes; then
  8923. version_type=linux # correct to gnu/linux during the next big refactor
  8924. else
  8925. version_type=irix
  8926. fi ;;
  8927. esac
  8928. need_lib_prefix=no
  8929. need_version=no
  8930. soname_spec='${libname}${release}${shared_ext}$major'
  8931. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8932. case $host_os in
  8933. irix5* | nonstopux*)
  8934. libsuff= shlibsuff=
  8935. ;;
  8936. *)
  8937. case $LD in # libtool.m4 will add one of these switches to LD
  8938. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8939. libsuff= shlibsuff= libmagic=32-bit;;
  8940. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8941. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8942. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8943. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8944. *) libsuff= shlibsuff= libmagic=never-match;;
  8945. esac
  8946. ;;
  8947. esac
  8948. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8949. shlibpath_overrides_runpath=no
  8950. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8951. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8952. hardcode_into_libs=yes
  8953. ;;
  8954. # No shared lib support for Linux oldld, aout, or coff.
  8955. linux*oldld* | linux*aout* | linux*coff*)
  8956. dynamic_linker=no
  8957. ;;
  8958. # This must be glibc/ELF.
  8959. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8960. version_type=linux # correct to gnu/linux during the next big refactor
  8961. need_lib_prefix=no
  8962. need_version=no
  8963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8964. soname_spec='${libname}${release}${shared_ext}$major'
  8965. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8966. shlibpath_var=LD_LIBRARY_PATH
  8967. shlibpath_overrides_runpath=no
  8968. # Some binutils ld are patched to set DT_RUNPATH
  8969. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8970. $as_echo_n "(cached) " >&6
  8971. else
  8972. lt_cv_shlibpath_overrides_runpath=no
  8973. save_LDFLAGS=$LDFLAGS
  8974. save_libdir=$libdir
  8975. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8976. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8978. /* end confdefs.h. */
  8979. int
  8980. main ()
  8981. {
  8982. ;
  8983. return 0;
  8984. }
  8985. _ACEOF
  8986. if ac_fn_c_try_link "$LINENO"; then :
  8987. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8988. lt_cv_shlibpath_overrides_runpath=yes
  8989. fi
  8990. fi
  8991. rm -f core conftest.err conftest.$ac_objext \
  8992. conftest$ac_exeext conftest.$ac_ext
  8993. LDFLAGS=$save_LDFLAGS
  8994. libdir=$save_libdir
  8995. fi
  8996. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8997. # This implies no fast_install, which is unacceptable.
  8998. # Some rework will be needed to allow for fast_install
  8999. # before this can be enabled.
  9000. hardcode_into_libs=yes
  9001. # Append ld.so.conf contents to the search path
  9002. if test -f /etc/ld.so.conf; then
  9003. 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' ' '`
  9004. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9005. fi
  9006. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9007. # powerpc, because MkLinux only supported shared libraries with the
  9008. # GNU dynamic linker. Since this was broken with cross compilers,
  9009. # most powerpc-linux boxes support dynamic linking these days and
  9010. # people can always --disable-shared, the test was removed, and we
  9011. # assume the GNU/Linux dynamic linker is in use.
  9012. dynamic_linker='GNU/Linux ld.so'
  9013. ;;
  9014. netbsd*)
  9015. version_type=sunos
  9016. need_lib_prefix=no
  9017. need_version=no
  9018. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9020. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9021. dynamic_linker='NetBSD (a.out) ld.so'
  9022. else
  9023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9024. soname_spec='${libname}${release}${shared_ext}$major'
  9025. dynamic_linker='NetBSD ld.elf_so'
  9026. fi
  9027. shlibpath_var=LD_LIBRARY_PATH
  9028. shlibpath_overrides_runpath=yes
  9029. hardcode_into_libs=yes
  9030. ;;
  9031. newsos6)
  9032. version_type=linux # correct to gnu/linux during the next big refactor
  9033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9034. shlibpath_var=LD_LIBRARY_PATH
  9035. shlibpath_overrides_runpath=yes
  9036. ;;
  9037. *nto* | *qnx*)
  9038. version_type=qnx
  9039. need_lib_prefix=no
  9040. need_version=no
  9041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9042. soname_spec='${libname}${release}${shared_ext}$major'
  9043. shlibpath_var=LD_LIBRARY_PATH
  9044. shlibpath_overrides_runpath=no
  9045. hardcode_into_libs=yes
  9046. dynamic_linker='ldqnx.so'
  9047. ;;
  9048. openbsd*)
  9049. version_type=sunos
  9050. sys_lib_dlsearch_path_spec="/usr/lib"
  9051. need_lib_prefix=no
  9052. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9053. case $host_os in
  9054. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9055. *) need_version=no ;;
  9056. esac
  9057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9058. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9059. shlibpath_var=LD_LIBRARY_PATH
  9060. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9061. case $host_os in
  9062. openbsd2.[89] | openbsd2.[89].*)
  9063. shlibpath_overrides_runpath=no
  9064. ;;
  9065. *)
  9066. shlibpath_overrides_runpath=yes
  9067. ;;
  9068. esac
  9069. else
  9070. shlibpath_overrides_runpath=yes
  9071. fi
  9072. ;;
  9073. os2*)
  9074. libname_spec='$name'
  9075. shrext_cmds=".dll"
  9076. need_lib_prefix=no
  9077. library_names_spec='$libname${shared_ext} $libname.a'
  9078. dynamic_linker='OS/2 ld.exe'
  9079. shlibpath_var=LIBPATH
  9080. ;;
  9081. osf3* | osf4* | osf5*)
  9082. version_type=osf
  9083. need_lib_prefix=no
  9084. need_version=no
  9085. soname_spec='${libname}${release}${shared_ext}$major'
  9086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9087. shlibpath_var=LD_LIBRARY_PATH
  9088. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9089. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9090. ;;
  9091. rdos*)
  9092. dynamic_linker=no
  9093. ;;
  9094. solaris*)
  9095. version_type=linux # correct to gnu/linux during the next big refactor
  9096. need_lib_prefix=no
  9097. need_version=no
  9098. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9099. soname_spec='${libname}${release}${shared_ext}$major'
  9100. shlibpath_var=LD_LIBRARY_PATH
  9101. shlibpath_overrides_runpath=yes
  9102. hardcode_into_libs=yes
  9103. # ldd complains unless libraries are executable
  9104. postinstall_cmds='chmod +x $lib'
  9105. ;;
  9106. sunos4*)
  9107. version_type=sunos
  9108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9109. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9110. shlibpath_var=LD_LIBRARY_PATH
  9111. shlibpath_overrides_runpath=yes
  9112. if test "$with_gnu_ld" = yes; then
  9113. need_lib_prefix=no
  9114. fi
  9115. need_version=yes
  9116. ;;
  9117. sysv4 | sysv4.3*)
  9118. version_type=linux # correct to gnu/linux during the next big refactor
  9119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9120. soname_spec='${libname}${release}${shared_ext}$major'
  9121. shlibpath_var=LD_LIBRARY_PATH
  9122. case $host_vendor in
  9123. sni)
  9124. shlibpath_overrides_runpath=no
  9125. need_lib_prefix=no
  9126. runpath_var=LD_RUN_PATH
  9127. ;;
  9128. siemens)
  9129. need_lib_prefix=no
  9130. ;;
  9131. motorola)
  9132. need_lib_prefix=no
  9133. need_version=no
  9134. shlibpath_overrides_runpath=no
  9135. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9136. ;;
  9137. esac
  9138. ;;
  9139. sysv4*MP*)
  9140. if test -d /usr/nec ;then
  9141. version_type=linux # correct to gnu/linux during the next big refactor
  9142. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9143. soname_spec='$libname${shared_ext}.$major'
  9144. shlibpath_var=LD_LIBRARY_PATH
  9145. fi
  9146. ;;
  9147. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9148. version_type=freebsd-elf
  9149. need_lib_prefix=no
  9150. need_version=no
  9151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9152. soname_spec='${libname}${release}${shared_ext}$major'
  9153. shlibpath_var=LD_LIBRARY_PATH
  9154. shlibpath_overrides_runpath=yes
  9155. hardcode_into_libs=yes
  9156. if test "$with_gnu_ld" = yes; then
  9157. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9158. else
  9159. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9160. case $host_os in
  9161. sco3.2v5*)
  9162. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9163. ;;
  9164. esac
  9165. fi
  9166. sys_lib_dlsearch_path_spec='/usr/lib'
  9167. ;;
  9168. tpf*)
  9169. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9170. version_type=linux # correct to gnu/linux during the next big refactor
  9171. need_lib_prefix=no
  9172. need_version=no
  9173. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9174. shlibpath_var=LD_LIBRARY_PATH
  9175. shlibpath_overrides_runpath=no
  9176. hardcode_into_libs=yes
  9177. ;;
  9178. uts4*)
  9179. version_type=linux # correct to gnu/linux during the next big refactor
  9180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9181. soname_spec='${libname}${release}${shared_ext}$major'
  9182. shlibpath_var=LD_LIBRARY_PATH
  9183. ;;
  9184. *)
  9185. dynamic_linker=no
  9186. ;;
  9187. esac
  9188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9189. $as_echo "$dynamic_linker" >&6; }
  9190. test "$dynamic_linker" = no && can_build_shared=no
  9191. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9192. if test "$GCC" = yes; then
  9193. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9194. fi
  9195. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9196. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9197. fi
  9198. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9199. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9200. fi
  9201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9202. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9203. hardcode_action=
  9204. if test -n "$hardcode_libdir_flag_spec" ||
  9205. test -n "$runpath_var" ||
  9206. test "X$hardcode_automatic" = "Xyes" ; then
  9207. # We can hardcode non-existent directories.
  9208. if test "$hardcode_direct" != no &&
  9209. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9210. # have to relink, otherwise we might link with an installed library
  9211. # when we should be linking with a yet-to-be-installed one
  9212. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9213. test "$hardcode_minus_L" != no; then
  9214. # Linking always hardcodes the temporary library directory.
  9215. hardcode_action=relink
  9216. else
  9217. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9218. hardcode_action=immediate
  9219. fi
  9220. else
  9221. # We cannot hardcode anything, or else we can only hardcode existing
  9222. # directories.
  9223. hardcode_action=unsupported
  9224. fi
  9225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9226. $as_echo "$hardcode_action" >&6; }
  9227. if test "$hardcode_action" = relink ||
  9228. test "$inherit_rpath" = yes; then
  9229. # Fast installation is not supported
  9230. enable_fast_install=no
  9231. elif test "$shlibpath_overrides_runpath" = yes ||
  9232. test "$enable_shared" = no; then
  9233. # Fast installation is not necessary
  9234. enable_fast_install=needless
  9235. fi
  9236. if test "x$enable_dlopen" != xyes; then
  9237. enable_dlopen=unknown
  9238. enable_dlopen_self=unknown
  9239. enable_dlopen_self_static=unknown
  9240. else
  9241. lt_cv_dlopen=no
  9242. lt_cv_dlopen_libs=
  9243. case $host_os in
  9244. beos*)
  9245. lt_cv_dlopen="load_add_on"
  9246. lt_cv_dlopen_libs=
  9247. lt_cv_dlopen_self=yes
  9248. ;;
  9249. mingw* | pw32* | cegcc*)
  9250. lt_cv_dlopen="LoadLibrary"
  9251. lt_cv_dlopen_libs=
  9252. ;;
  9253. cygwin*)
  9254. lt_cv_dlopen="dlopen"
  9255. lt_cv_dlopen_libs=
  9256. ;;
  9257. darwin*)
  9258. # if libdl is installed we need to link against it
  9259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9260. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9261. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9262. $as_echo_n "(cached) " >&6
  9263. else
  9264. ac_check_lib_save_LIBS=$LIBS
  9265. LIBS="-ldl $LIBS"
  9266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9267. /* end confdefs.h. */
  9268. /* Override any GCC internal prototype to avoid an error.
  9269. Use char because int might match the return type of a GCC
  9270. builtin and then its argument prototype would still apply. */
  9271. #ifdef __cplusplus
  9272. extern "C"
  9273. #endif
  9274. char dlopen ();
  9275. int
  9276. main ()
  9277. {
  9278. return dlopen ();
  9279. ;
  9280. return 0;
  9281. }
  9282. _ACEOF
  9283. if ac_fn_c_try_link "$LINENO"; then :
  9284. ac_cv_lib_dl_dlopen=yes
  9285. else
  9286. ac_cv_lib_dl_dlopen=no
  9287. fi
  9288. rm -f core conftest.err conftest.$ac_objext \
  9289. conftest$ac_exeext conftest.$ac_ext
  9290. LIBS=$ac_check_lib_save_LIBS
  9291. fi
  9292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9293. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9294. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9295. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9296. else
  9297. lt_cv_dlopen="dyld"
  9298. lt_cv_dlopen_libs=
  9299. lt_cv_dlopen_self=yes
  9300. fi
  9301. ;;
  9302. *)
  9303. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9304. if test "x$ac_cv_func_shl_load" = xyes; then :
  9305. lt_cv_dlopen="shl_load"
  9306. else
  9307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9308. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9309. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9310. $as_echo_n "(cached) " >&6
  9311. else
  9312. ac_check_lib_save_LIBS=$LIBS
  9313. LIBS="-ldld $LIBS"
  9314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9315. /* end confdefs.h. */
  9316. /* Override any GCC internal prototype to avoid an error.
  9317. Use char because int might match the return type of a GCC
  9318. builtin and then its argument prototype would still apply. */
  9319. #ifdef __cplusplus
  9320. extern "C"
  9321. #endif
  9322. char shl_load ();
  9323. int
  9324. main ()
  9325. {
  9326. return shl_load ();
  9327. ;
  9328. return 0;
  9329. }
  9330. _ACEOF
  9331. if ac_fn_c_try_link "$LINENO"; then :
  9332. ac_cv_lib_dld_shl_load=yes
  9333. else
  9334. ac_cv_lib_dld_shl_load=no
  9335. fi
  9336. rm -f core conftest.err conftest.$ac_objext \
  9337. conftest$ac_exeext conftest.$ac_ext
  9338. LIBS=$ac_check_lib_save_LIBS
  9339. fi
  9340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9341. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9342. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9343. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9344. else
  9345. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9346. if test "x$ac_cv_func_dlopen" = xyes; then :
  9347. lt_cv_dlopen="dlopen"
  9348. else
  9349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9350. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9351. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9352. $as_echo_n "(cached) " >&6
  9353. else
  9354. ac_check_lib_save_LIBS=$LIBS
  9355. LIBS="-ldl $LIBS"
  9356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9357. /* end confdefs.h. */
  9358. /* Override any GCC internal prototype to avoid an error.
  9359. Use char because int might match the return type of a GCC
  9360. builtin and then its argument prototype would still apply. */
  9361. #ifdef __cplusplus
  9362. extern "C"
  9363. #endif
  9364. char dlopen ();
  9365. int
  9366. main ()
  9367. {
  9368. return dlopen ();
  9369. ;
  9370. return 0;
  9371. }
  9372. _ACEOF
  9373. if ac_fn_c_try_link "$LINENO"; then :
  9374. ac_cv_lib_dl_dlopen=yes
  9375. else
  9376. ac_cv_lib_dl_dlopen=no
  9377. fi
  9378. rm -f core conftest.err conftest.$ac_objext \
  9379. conftest$ac_exeext conftest.$ac_ext
  9380. LIBS=$ac_check_lib_save_LIBS
  9381. fi
  9382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9383. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9384. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9385. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9386. else
  9387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9388. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9389. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9390. $as_echo_n "(cached) " >&6
  9391. else
  9392. ac_check_lib_save_LIBS=$LIBS
  9393. LIBS="-lsvld $LIBS"
  9394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9395. /* end confdefs.h. */
  9396. /* Override any GCC internal prototype to avoid an error.
  9397. Use char because int might match the return type of a GCC
  9398. builtin and then its argument prototype would still apply. */
  9399. #ifdef __cplusplus
  9400. extern "C"
  9401. #endif
  9402. char dlopen ();
  9403. int
  9404. main ()
  9405. {
  9406. return dlopen ();
  9407. ;
  9408. return 0;
  9409. }
  9410. _ACEOF
  9411. if ac_fn_c_try_link "$LINENO"; then :
  9412. ac_cv_lib_svld_dlopen=yes
  9413. else
  9414. ac_cv_lib_svld_dlopen=no
  9415. fi
  9416. rm -f core conftest.err conftest.$ac_objext \
  9417. conftest$ac_exeext conftest.$ac_ext
  9418. LIBS=$ac_check_lib_save_LIBS
  9419. fi
  9420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9421. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9422. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9423. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9424. else
  9425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9426. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9427. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9428. $as_echo_n "(cached) " >&6
  9429. else
  9430. ac_check_lib_save_LIBS=$LIBS
  9431. LIBS="-ldld $LIBS"
  9432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9433. /* end confdefs.h. */
  9434. /* Override any GCC internal prototype to avoid an error.
  9435. Use char because int might match the return type of a GCC
  9436. builtin and then its argument prototype would still apply. */
  9437. #ifdef __cplusplus
  9438. extern "C"
  9439. #endif
  9440. char dld_link ();
  9441. int
  9442. main ()
  9443. {
  9444. return dld_link ();
  9445. ;
  9446. return 0;
  9447. }
  9448. _ACEOF
  9449. if ac_fn_c_try_link "$LINENO"; then :
  9450. ac_cv_lib_dld_dld_link=yes
  9451. else
  9452. ac_cv_lib_dld_dld_link=no
  9453. fi
  9454. rm -f core conftest.err conftest.$ac_objext \
  9455. conftest$ac_exeext conftest.$ac_ext
  9456. LIBS=$ac_check_lib_save_LIBS
  9457. fi
  9458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9459. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9460. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9461. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9462. fi
  9463. fi
  9464. fi
  9465. fi
  9466. fi
  9467. fi
  9468. ;;
  9469. esac
  9470. if test "x$lt_cv_dlopen" != xno; then
  9471. enable_dlopen=yes
  9472. else
  9473. enable_dlopen=no
  9474. fi
  9475. case $lt_cv_dlopen in
  9476. dlopen)
  9477. save_CPPFLAGS="$CPPFLAGS"
  9478. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9479. save_LDFLAGS="$LDFLAGS"
  9480. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9481. save_LIBS="$LIBS"
  9482. LIBS="$lt_cv_dlopen_libs $LIBS"
  9483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9484. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9485. if ${lt_cv_dlopen_self+:} false; then :
  9486. $as_echo_n "(cached) " >&6
  9487. else
  9488. if test "$cross_compiling" = yes; then :
  9489. lt_cv_dlopen_self=cross
  9490. else
  9491. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9492. lt_status=$lt_dlunknown
  9493. cat > conftest.$ac_ext <<_LT_EOF
  9494. #line $LINENO "configure"
  9495. #include "confdefs.h"
  9496. #if HAVE_DLFCN_H
  9497. #include <dlfcn.h>
  9498. #endif
  9499. #include <stdio.h>
  9500. #ifdef RTLD_GLOBAL
  9501. # define LT_DLGLOBAL RTLD_GLOBAL
  9502. #else
  9503. # ifdef DL_GLOBAL
  9504. # define LT_DLGLOBAL DL_GLOBAL
  9505. # else
  9506. # define LT_DLGLOBAL 0
  9507. # endif
  9508. #endif
  9509. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9510. find out it does not work in some platform. */
  9511. #ifndef LT_DLLAZY_OR_NOW
  9512. # ifdef RTLD_LAZY
  9513. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9514. # else
  9515. # ifdef DL_LAZY
  9516. # define LT_DLLAZY_OR_NOW DL_LAZY
  9517. # else
  9518. # ifdef RTLD_NOW
  9519. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9520. # else
  9521. # ifdef DL_NOW
  9522. # define LT_DLLAZY_OR_NOW DL_NOW
  9523. # else
  9524. # define LT_DLLAZY_OR_NOW 0
  9525. # endif
  9526. # endif
  9527. # endif
  9528. # endif
  9529. #endif
  9530. /* When -fvisbility=hidden is used, assume the code has been annotated
  9531. correspondingly for the symbols needed. */
  9532. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9533. int fnord () __attribute__((visibility("default")));
  9534. #endif
  9535. int fnord () { return 42; }
  9536. int main ()
  9537. {
  9538. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9539. int status = $lt_dlunknown;
  9540. if (self)
  9541. {
  9542. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9543. else
  9544. {
  9545. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9546. else puts (dlerror ());
  9547. }
  9548. /* dlclose (self); */
  9549. }
  9550. else
  9551. puts (dlerror ());
  9552. return status;
  9553. }
  9554. _LT_EOF
  9555. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9556. (eval $ac_link) 2>&5
  9557. ac_status=$?
  9558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9559. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9560. (./conftest; exit; ) >&5 2>/dev/null
  9561. lt_status=$?
  9562. case x$lt_status in
  9563. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9564. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9565. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9566. esac
  9567. else :
  9568. # compilation failed
  9569. lt_cv_dlopen_self=no
  9570. fi
  9571. fi
  9572. rm -fr conftest*
  9573. fi
  9574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9575. $as_echo "$lt_cv_dlopen_self" >&6; }
  9576. if test "x$lt_cv_dlopen_self" = xyes; then
  9577. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9579. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9580. if ${lt_cv_dlopen_self_static+:} false; then :
  9581. $as_echo_n "(cached) " >&6
  9582. else
  9583. if test "$cross_compiling" = yes; then :
  9584. lt_cv_dlopen_self_static=cross
  9585. else
  9586. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9587. lt_status=$lt_dlunknown
  9588. cat > conftest.$ac_ext <<_LT_EOF
  9589. #line $LINENO "configure"
  9590. #include "confdefs.h"
  9591. #if HAVE_DLFCN_H
  9592. #include <dlfcn.h>
  9593. #endif
  9594. #include <stdio.h>
  9595. #ifdef RTLD_GLOBAL
  9596. # define LT_DLGLOBAL RTLD_GLOBAL
  9597. #else
  9598. # ifdef DL_GLOBAL
  9599. # define LT_DLGLOBAL DL_GLOBAL
  9600. # else
  9601. # define LT_DLGLOBAL 0
  9602. # endif
  9603. #endif
  9604. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9605. find out it does not work in some platform. */
  9606. #ifndef LT_DLLAZY_OR_NOW
  9607. # ifdef RTLD_LAZY
  9608. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9609. # else
  9610. # ifdef DL_LAZY
  9611. # define LT_DLLAZY_OR_NOW DL_LAZY
  9612. # else
  9613. # ifdef RTLD_NOW
  9614. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9615. # else
  9616. # ifdef DL_NOW
  9617. # define LT_DLLAZY_OR_NOW DL_NOW
  9618. # else
  9619. # define LT_DLLAZY_OR_NOW 0
  9620. # endif
  9621. # endif
  9622. # endif
  9623. # endif
  9624. #endif
  9625. /* When -fvisbility=hidden is used, assume the code has been annotated
  9626. correspondingly for the symbols needed. */
  9627. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9628. int fnord () __attribute__((visibility("default")));
  9629. #endif
  9630. int fnord () { return 42; }
  9631. int main ()
  9632. {
  9633. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9634. int status = $lt_dlunknown;
  9635. if (self)
  9636. {
  9637. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9638. else
  9639. {
  9640. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9641. else puts (dlerror ());
  9642. }
  9643. /* dlclose (self); */
  9644. }
  9645. else
  9646. puts (dlerror ());
  9647. return status;
  9648. }
  9649. _LT_EOF
  9650. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9651. (eval $ac_link) 2>&5
  9652. ac_status=$?
  9653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9654. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9655. (./conftest; exit; ) >&5 2>/dev/null
  9656. lt_status=$?
  9657. case x$lt_status in
  9658. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9659. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9660. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9661. esac
  9662. else :
  9663. # compilation failed
  9664. lt_cv_dlopen_self_static=no
  9665. fi
  9666. fi
  9667. rm -fr conftest*
  9668. fi
  9669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9670. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9671. fi
  9672. CPPFLAGS="$save_CPPFLAGS"
  9673. LDFLAGS="$save_LDFLAGS"
  9674. LIBS="$save_LIBS"
  9675. ;;
  9676. esac
  9677. case $lt_cv_dlopen_self in
  9678. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9679. *) enable_dlopen_self=unknown ;;
  9680. esac
  9681. case $lt_cv_dlopen_self_static in
  9682. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9683. *) enable_dlopen_self_static=unknown ;;
  9684. esac
  9685. fi
  9686. striplib=
  9687. old_striplib=
  9688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9689. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9690. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9691. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9692. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9694. $as_echo "yes" >&6; }
  9695. else
  9696. # FIXME - insert some real tests, host_os isn't really good enough
  9697. case $host_os in
  9698. darwin*)
  9699. if test -n "$STRIP" ; then
  9700. striplib="$STRIP -x"
  9701. old_striplib="$STRIP -S"
  9702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9703. $as_echo "yes" >&6; }
  9704. else
  9705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9706. $as_echo "no" >&6; }
  9707. fi
  9708. ;;
  9709. *)
  9710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9711. $as_echo "no" >&6; }
  9712. ;;
  9713. esac
  9714. fi
  9715. # Report which library types will actually be built
  9716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9717. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9719. $as_echo "$can_build_shared" >&6; }
  9720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9721. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9722. test "$can_build_shared" = "no" && enable_shared=no
  9723. # On AIX, shared libraries and static libraries use the same namespace, and
  9724. # are all built from PIC.
  9725. case $host_os in
  9726. aix3*)
  9727. test "$enable_shared" = yes && enable_static=no
  9728. if test -n "$RANLIB"; then
  9729. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9730. postinstall_cmds='$RANLIB $lib'
  9731. fi
  9732. ;;
  9733. aix[4-9]*)
  9734. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9735. test "$enable_shared" = yes && enable_static=no
  9736. fi
  9737. ;;
  9738. esac
  9739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9740. $as_echo "$enable_shared" >&6; }
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9742. $as_echo_n "checking whether to build static libraries... " >&6; }
  9743. # Make sure either enable_shared or enable_static is yes.
  9744. test "$enable_shared" = yes || enable_static=yes
  9745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9746. $as_echo "$enable_static" >&6; }
  9747. fi
  9748. ac_ext=c
  9749. ac_cpp='$CPP $CPPFLAGS'
  9750. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9751. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9752. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9753. CC="$lt_save_CC"
  9754. ac_config_commands="$ac_config_commands libtool"
  9755. # Only expand once:
  9756. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9757. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9758. LT_REVISION=$SDL_INTERFACE_AGE
  9759. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9760. ac_ext=c
  9761. ac_cpp='$CPP $CPPFLAGS'
  9762. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9763. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9764. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9765. if test -n "$ac_tool_prefix"; then
  9766. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9767. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9769. $as_echo_n "checking for $ac_word... " >&6; }
  9770. if ${ac_cv_prog_CC+:} false; then :
  9771. $as_echo_n "(cached) " >&6
  9772. else
  9773. if test -n "$CC"; then
  9774. ac_cv_prog_CC="$CC" # Let the user override the test.
  9775. else
  9776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9777. for as_dir in $PATH
  9778. do
  9779. IFS=$as_save_IFS
  9780. test -z "$as_dir" && as_dir=.
  9781. for ac_exec_ext in '' $ac_executable_extensions; do
  9782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9783. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9785. break 2
  9786. fi
  9787. done
  9788. done
  9789. IFS=$as_save_IFS
  9790. fi
  9791. fi
  9792. CC=$ac_cv_prog_CC
  9793. if test -n "$CC"; then
  9794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9795. $as_echo "$CC" >&6; }
  9796. else
  9797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9798. $as_echo "no" >&6; }
  9799. fi
  9800. fi
  9801. if test -z "$ac_cv_prog_CC"; then
  9802. ac_ct_CC=$CC
  9803. # Extract the first word of "gcc", so it can be a program name with args.
  9804. set dummy gcc; ac_word=$2
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9806. $as_echo_n "checking for $ac_word... " >&6; }
  9807. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9808. $as_echo_n "(cached) " >&6
  9809. else
  9810. if test -n "$ac_ct_CC"; then
  9811. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9812. else
  9813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9814. for as_dir in $PATH
  9815. do
  9816. IFS=$as_save_IFS
  9817. test -z "$as_dir" && as_dir=.
  9818. for ac_exec_ext in '' $ac_executable_extensions; do
  9819. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9820. ac_cv_prog_ac_ct_CC="gcc"
  9821. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9822. break 2
  9823. fi
  9824. done
  9825. done
  9826. IFS=$as_save_IFS
  9827. fi
  9828. fi
  9829. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9830. if test -n "$ac_ct_CC"; then
  9831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9832. $as_echo "$ac_ct_CC" >&6; }
  9833. else
  9834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9835. $as_echo "no" >&6; }
  9836. fi
  9837. if test "x$ac_ct_CC" = x; then
  9838. CC=""
  9839. else
  9840. case $cross_compiling:$ac_tool_warned in
  9841. yes:)
  9842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9843. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9844. ac_tool_warned=yes ;;
  9845. esac
  9846. CC=$ac_ct_CC
  9847. fi
  9848. else
  9849. CC="$ac_cv_prog_CC"
  9850. fi
  9851. if test -z "$CC"; then
  9852. if test -n "$ac_tool_prefix"; then
  9853. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9854. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9856. $as_echo_n "checking for $ac_word... " >&6; }
  9857. if ${ac_cv_prog_CC+:} false; then :
  9858. $as_echo_n "(cached) " >&6
  9859. else
  9860. if test -n "$CC"; then
  9861. ac_cv_prog_CC="$CC" # Let the user override the test.
  9862. else
  9863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9864. for as_dir in $PATH
  9865. do
  9866. IFS=$as_save_IFS
  9867. test -z "$as_dir" && as_dir=.
  9868. for ac_exec_ext in '' $ac_executable_extensions; do
  9869. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9870. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9872. break 2
  9873. fi
  9874. done
  9875. done
  9876. IFS=$as_save_IFS
  9877. fi
  9878. fi
  9879. CC=$ac_cv_prog_CC
  9880. if test -n "$CC"; then
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9882. $as_echo "$CC" >&6; }
  9883. else
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9885. $as_echo "no" >&6; }
  9886. fi
  9887. fi
  9888. fi
  9889. if test -z "$CC"; then
  9890. # Extract the first word of "cc", so it can be a program name with args.
  9891. set dummy cc; ac_word=$2
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9893. $as_echo_n "checking for $ac_word... " >&6; }
  9894. if ${ac_cv_prog_CC+:} false; then :
  9895. $as_echo_n "(cached) " >&6
  9896. else
  9897. if test -n "$CC"; then
  9898. ac_cv_prog_CC="$CC" # Let the user override the test.
  9899. else
  9900. ac_prog_rejected=no
  9901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9902. for as_dir in $PATH
  9903. do
  9904. IFS=$as_save_IFS
  9905. test -z "$as_dir" && as_dir=.
  9906. for ac_exec_ext in '' $ac_executable_extensions; do
  9907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9908. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9909. ac_prog_rejected=yes
  9910. continue
  9911. fi
  9912. ac_cv_prog_CC="cc"
  9913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9914. break 2
  9915. fi
  9916. done
  9917. done
  9918. IFS=$as_save_IFS
  9919. if test $ac_prog_rejected = yes; then
  9920. # We found a bogon in the path, so make sure we never use it.
  9921. set dummy $ac_cv_prog_CC
  9922. shift
  9923. if test $# != 0; then
  9924. # We chose a different compiler from the bogus one.
  9925. # However, it has the same basename, so the bogon will be chosen
  9926. # first if we set CC to just the basename; use the full file name.
  9927. shift
  9928. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9929. fi
  9930. fi
  9931. fi
  9932. fi
  9933. CC=$ac_cv_prog_CC
  9934. if test -n "$CC"; then
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9936. $as_echo "$CC" >&6; }
  9937. else
  9938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9939. $as_echo "no" >&6; }
  9940. fi
  9941. fi
  9942. if test -z "$CC"; then
  9943. if test -n "$ac_tool_prefix"; then
  9944. for ac_prog in cl.exe
  9945. do
  9946. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9947. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9949. $as_echo_n "checking for $ac_word... " >&6; }
  9950. if ${ac_cv_prog_CC+:} false; then :
  9951. $as_echo_n "(cached) " >&6
  9952. else
  9953. if test -n "$CC"; then
  9954. ac_cv_prog_CC="$CC" # Let the user override the test.
  9955. else
  9956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9957. for as_dir in $PATH
  9958. do
  9959. IFS=$as_save_IFS
  9960. test -z "$as_dir" && as_dir=.
  9961. for ac_exec_ext in '' $ac_executable_extensions; do
  9962. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9963. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9965. break 2
  9966. fi
  9967. done
  9968. done
  9969. IFS=$as_save_IFS
  9970. fi
  9971. fi
  9972. CC=$ac_cv_prog_CC
  9973. if test -n "$CC"; then
  9974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9975. $as_echo "$CC" >&6; }
  9976. else
  9977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9978. $as_echo "no" >&6; }
  9979. fi
  9980. test -n "$CC" && break
  9981. done
  9982. fi
  9983. if test -z "$CC"; then
  9984. ac_ct_CC=$CC
  9985. for ac_prog in cl.exe
  9986. do
  9987. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9988. set dummy $ac_prog; ac_word=$2
  9989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9990. $as_echo_n "checking for $ac_word... " >&6; }
  9991. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9992. $as_echo_n "(cached) " >&6
  9993. else
  9994. if test -n "$ac_ct_CC"; then
  9995. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9996. else
  9997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9998. for as_dir in $PATH
  9999. do
  10000. IFS=$as_save_IFS
  10001. test -z "$as_dir" && as_dir=.
  10002. for ac_exec_ext in '' $ac_executable_extensions; do
  10003. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10004. ac_cv_prog_ac_ct_CC="$ac_prog"
  10005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10006. break 2
  10007. fi
  10008. done
  10009. done
  10010. IFS=$as_save_IFS
  10011. fi
  10012. fi
  10013. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10014. if test -n "$ac_ct_CC"; then
  10015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10016. $as_echo "$ac_ct_CC" >&6; }
  10017. else
  10018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10019. $as_echo "no" >&6; }
  10020. fi
  10021. test -n "$ac_ct_CC" && break
  10022. done
  10023. if test "x$ac_ct_CC" = x; then
  10024. CC=""
  10025. else
  10026. case $cross_compiling:$ac_tool_warned in
  10027. yes:)
  10028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10029. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10030. ac_tool_warned=yes ;;
  10031. esac
  10032. CC=$ac_ct_CC
  10033. fi
  10034. fi
  10035. fi
  10036. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10037. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10038. as_fn_error $? "no acceptable C compiler found in \$PATH
  10039. See \`config.log' for more details" "$LINENO" 5; }
  10040. # Provide some information about the compiler.
  10041. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10042. set X $ac_compile
  10043. ac_compiler=$2
  10044. for ac_option in --version -v -V -qversion; do
  10045. { { ac_try="$ac_compiler $ac_option >&5"
  10046. case "(($ac_try" in
  10047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10048. *) ac_try_echo=$ac_try;;
  10049. esac
  10050. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10051. $as_echo "$ac_try_echo"; } >&5
  10052. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10053. ac_status=$?
  10054. if test -s conftest.err; then
  10055. sed '10a\
  10056. ... rest of stderr output deleted ...
  10057. 10q' conftest.err >conftest.er1
  10058. cat conftest.er1 >&5
  10059. fi
  10060. rm -f conftest.er1 conftest.err
  10061. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10062. test $ac_status = 0; }
  10063. done
  10064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10065. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10066. if ${ac_cv_c_compiler_gnu+:} false; then :
  10067. $as_echo_n "(cached) " >&6
  10068. else
  10069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10070. /* end confdefs.h. */
  10071. int
  10072. main ()
  10073. {
  10074. #ifndef __GNUC__
  10075. choke me
  10076. #endif
  10077. ;
  10078. return 0;
  10079. }
  10080. _ACEOF
  10081. if ac_fn_c_try_compile "$LINENO"; then :
  10082. ac_compiler_gnu=yes
  10083. else
  10084. ac_compiler_gnu=no
  10085. fi
  10086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10087. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10088. fi
  10089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10090. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10091. if test $ac_compiler_gnu = yes; then
  10092. GCC=yes
  10093. else
  10094. GCC=
  10095. fi
  10096. ac_test_CFLAGS=${CFLAGS+set}
  10097. ac_save_CFLAGS=$CFLAGS
  10098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10099. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10100. if ${ac_cv_prog_cc_g+:} false; then :
  10101. $as_echo_n "(cached) " >&6
  10102. else
  10103. ac_save_c_werror_flag=$ac_c_werror_flag
  10104. ac_c_werror_flag=yes
  10105. ac_cv_prog_cc_g=no
  10106. CFLAGS="-g"
  10107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10108. /* end confdefs.h. */
  10109. int
  10110. main ()
  10111. {
  10112. ;
  10113. return 0;
  10114. }
  10115. _ACEOF
  10116. if ac_fn_c_try_compile "$LINENO"; then :
  10117. ac_cv_prog_cc_g=yes
  10118. else
  10119. CFLAGS=""
  10120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10121. /* end confdefs.h. */
  10122. int
  10123. main ()
  10124. {
  10125. ;
  10126. return 0;
  10127. }
  10128. _ACEOF
  10129. if ac_fn_c_try_compile "$LINENO"; then :
  10130. else
  10131. ac_c_werror_flag=$ac_save_c_werror_flag
  10132. CFLAGS="-g"
  10133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10134. /* end confdefs.h. */
  10135. int
  10136. main ()
  10137. {
  10138. ;
  10139. return 0;
  10140. }
  10141. _ACEOF
  10142. if ac_fn_c_try_compile "$LINENO"; then :
  10143. ac_cv_prog_cc_g=yes
  10144. fi
  10145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10146. fi
  10147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10148. fi
  10149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10150. ac_c_werror_flag=$ac_save_c_werror_flag
  10151. fi
  10152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10153. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10154. if test "$ac_test_CFLAGS" = set; then
  10155. CFLAGS=$ac_save_CFLAGS
  10156. elif test $ac_cv_prog_cc_g = yes; then
  10157. if test "$GCC" = yes; then
  10158. CFLAGS="-g -O2"
  10159. else
  10160. CFLAGS="-g"
  10161. fi
  10162. else
  10163. if test "$GCC" = yes; then
  10164. CFLAGS="-O2"
  10165. else
  10166. CFLAGS=
  10167. fi
  10168. fi
  10169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10170. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10171. if ${ac_cv_prog_cc_c89+:} false; then :
  10172. $as_echo_n "(cached) " >&6
  10173. else
  10174. ac_cv_prog_cc_c89=no
  10175. ac_save_CC=$CC
  10176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10177. /* end confdefs.h. */
  10178. #include <stdarg.h>
  10179. #include <stdio.h>
  10180. struct stat;
  10181. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10182. struct buf { int x; };
  10183. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10184. static char *e (p, i)
  10185. char **p;
  10186. int i;
  10187. {
  10188. return p[i];
  10189. }
  10190. static char *f (char * (*g) (char **, int), char **p, ...)
  10191. {
  10192. char *s;
  10193. va_list v;
  10194. va_start (v,p);
  10195. s = g (p, va_arg (v,int));
  10196. va_end (v);
  10197. return s;
  10198. }
  10199. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10200. function prototypes and stuff, but not '\xHH' hex character constants.
  10201. These don't provoke an error unfortunately, instead are silently treated
  10202. as 'x'. The following induces an error, until -std is added to get
  10203. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10204. array size at least. It's necessary to write '\x00'==0 to get something
  10205. that's true only with -std. */
  10206. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10207. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10208. inside strings and character constants. */
  10209. #define FOO(x) 'x'
  10210. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10211. int test (int i, double x);
  10212. struct s1 {int (*f) (int a);};
  10213. struct s2 {int (*f) (double a);};
  10214. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10215. int argc;
  10216. char **argv;
  10217. int
  10218. main ()
  10219. {
  10220. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10221. ;
  10222. return 0;
  10223. }
  10224. _ACEOF
  10225. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10226. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10227. do
  10228. CC="$ac_save_CC $ac_arg"
  10229. if ac_fn_c_try_compile "$LINENO"; then :
  10230. ac_cv_prog_cc_c89=$ac_arg
  10231. fi
  10232. rm -f core conftest.err conftest.$ac_objext
  10233. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10234. done
  10235. rm -f conftest.$ac_ext
  10236. CC=$ac_save_CC
  10237. fi
  10238. # AC_CACHE_VAL
  10239. case "x$ac_cv_prog_cc_c89" in
  10240. x)
  10241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10242. $as_echo "none needed" >&6; } ;;
  10243. xno)
  10244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10245. $as_echo "unsupported" >&6; } ;;
  10246. *)
  10247. CC="$CC $ac_cv_prog_cc_c89"
  10248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10249. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10250. esac
  10251. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10252. fi
  10253. ac_ext=c
  10254. ac_cpp='$CPP $CPPFLAGS'
  10255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10258. ac_ext=cpp
  10259. ac_cpp='$CXXCPP $CPPFLAGS'
  10260. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10261. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10262. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10263. if test -z "$CXX"; then
  10264. if test -n "$CCC"; then
  10265. CXX=$CCC
  10266. else
  10267. if test -n "$ac_tool_prefix"; then
  10268. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10269. do
  10270. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10271. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10273. $as_echo_n "checking for $ac_word... " >&6; }
  10274. if ${ac_cv_prog_CXX+:} false; then :
  10275. $as_echo_n "(cached) " >&6
  10276. else
  10277. if test -n "$CXX"; then
  10278. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10279. else
  10280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10281. for as_dir in $PATH
  10282. do
  10283. IFS=$as_save_IFS
  10284. test -z "$as_dir" && as_dir=.
  10285. for ac_exec_ext in '' $ac_executable_extensions; do
  10286. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10287. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10288. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10289. break 2
  10290. fi
  10291. done
  10292. done
  10293. IFS=$as_save_IFS
  10294. fi
  10295. fi
  10296. CXX=$ac_cv_prog_CXX
  10297. if test -n "$CXX"; then
  10298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10299. $as_echo "$CXX" >&6; }
  10300. else
  10301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10302. $as_echo "no" >&6; }
  10303. fi
  10304. test -n "$CXX" && break
  10305. done
  10306. fi
  10307. if test -z "$CXX"; then
  10308. ac_ct_CXX=$CXX
  10309. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10310. do
  10311. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10312. set dummy $ac_prog; ac_word=$2
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10314. $as_echo_n "checking for $ac_word... " >&6; }
  10315. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10316. $as_echo_n "(cached) " >&6
  10317. else
  10318. if test -n "$ac_ct_CXX"; then
  10319. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10320. else
  10321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10322. for as_dir in $PATH
  10323. do
  10324. IFS=$as_save_IFS
  10325. test -z "$as_dir" && as_dir=.
  10326. for ac_exec_ext in '' $ac_executable_extensions; do
  10327. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10328. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10329. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10330. break 2
  10331. fi
  10332. done
  10333. done
  10334. IFS=$as_save_IFS
  10335. fi
  10336. fi
  10337. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10338. if test -n "$ac_ct_CXX"; then
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10340. $as_echo "$ac_ct_CXX" >&6; }
  10341. else
  10342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10343. $as_echo "no" >&6; }
  10344. fi
  10345. test -n "$ac_ct_CXX" && break
  10346. done
  10347. if test "x$ac_ct_CXX" = x; then
  10348. CXX="g++"
  10349. else
  10350. case $cross_compiling:$ac_tool_warned in
  10351. yes:)
  10352. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10353. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10354. ac_tool_warned=yes ;;
  10355. esac
  10356. CXX=$ac_ct_CXX
  10357. fi
  10358. fi
  10359. fi
  10360. fi
  10361. # Provide some information about the compiler.
  10362. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10363. set X $ac_compile
  10364. ac_compiler=$2
  10365. for ac_option in --version -v -V -qversion; do
  10366. { { ac_try="$ac_compiler $ac_option >&5"
  10367. case "(($ac_try" in
  10368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10369. *) ac_try_echo=$ac_try;;
  10370. esac
  10371. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10372. $as_echo "$ac_try_echo"; } >&5
  10373. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10374. ac_status=$?
  10375. if test -s conftest.err; then
  10376. sed '10a\
  10377. ... rest of stderr output deleted ...
  10378. 10q' conftest.err >conftest.er1
  10379. cat conftest.er1 >&5
  10380. fi
  10381. rm -f conftest.er1 conftest.err
  10382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10383. test $ac_status = 0; }
  10384. done
  10385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10386. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10387. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10388. $as_echo_n "(cached) " >&6
  10389. else
  10390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10391. /* end confdefs.h. */
  10392. int
  10393. main ()
  10394. {
  10395. #ifndef __GNUC__
  10396. choke me
  10397. #endif
  10398. ;
  10399. return 0;
  10400. }
  10401. _ACEOF
  10402. if ac_fn_cxx_try_compile "$LINENO"; then :
  10403. ac_compiler_gnu=yes
  10404. else
  10405. ac_compiler_gnu=no
  10406. fi
  10407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10408. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10409. fi
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10411. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10412. if test $ac_compiler_gnu = yes; then
  10413. GXX=yes
  10414. else
  10415. GXX=
  10416. fi
  10417. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10418. ac_save_CXXFLAGS=$CXXFLAGS
  10419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10420. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10421. if ${ac_cv_prog_cxx_g+:} false; then :
  10422. $as_echo_n "(cached) " >&6
  10423. else
  10424. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10425. ac_cxx_werror_flag=yes
  10426. ac_cv_prog_cxx_g=no
  10427. CXXFLAGS="-g"
  10428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10429. /* end confdefs.h. */
  10430. int
  10431. main ()
  10432. {
  10433. ;
  10434. return 0;
  10435. }
  10436. _ACEOF
  10437. if ac_fn_cxx_try_compile "$LINENO"; then :
  10438. ac_cv_prog_cxx_g=yes
  10439. else
  10440. CXXFLAGS=""
  10441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10442. /* end confdefs.h. */
  10443. int
  10444. main ()
  10445. {
  10446. ;
  10447. return 0;
  10448. }
  10449. _ACEOF
  10450. if ac_fn_cxx_try_compile "$LINENO"; then :
  10451. else
  10452. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10453. CXXFLAGS="-g"
  10454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10455. /* end confdefs.h. */
  10456. int
  10457. main ()
  10458. {
  10459. ;
  10460. return 0;
  10461. }
  10462. _ACEOF
  10463. if ac_fn_cxx_try_compile "$LINENO"; then :
  10464. ac_cv_prog_cxx_g=yes
  10465. fi
  10466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10467. fi
  10468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10469. fi
  10470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10471. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10472. fi
  10473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10474. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10475. if test "$ac_test_CXXFLAGS" = set; then
  10476. CXXFLAGS=$ac_save_CXXFLAGS
  10477. elif test $ac_cv_prog_cxx_g = yes; then
  10478. if test "$GXX" = yes; then
  10479. CXXFLAGS="-g -O2"
  10480. else
  10481. CXXFLAGS="-g"
  10482. fi
  10483. else
  10484. if test "$GXX" = yes; then
  10485. CXXFLAGS="-O2"
  10486. else
  10487. CXXFLAGS=
  10488. fi
  10489. fi
  10490. ac_ext=c
  10491. ac_cpp='$CPP $CPPFLAGS'
  10492. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10493. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10494. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10495. func_stripname_cnf ()
  10496. {
  10497. case ${2} in
  10498. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10499. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10500. esac
  10501. } # func_stripname_cnf
  10502. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10503. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10504. (test "X$CXX" != "Xg++"))) ; then
  10505. ac_ext=cpp
  10506. ac_cpp='$CXXCPP $CPPFLAGS'
  10507. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10508. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10509. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10511. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10512. if test -z "$CXXCPP"; then
  10513. if ${ac_cv_prog_CXXCPP+:} false; then :
  10514. $as_echo_n "(cached) " >&6
  10515. else
  10516. # Double quotes because CXXCPP needs to be expanded
  10517. for CXXCPP in "$CXX -E" "/lib/cpp"
  10518. do
  10519. ac_preproc_ok=false
  10520. for ac_cxx_preproc_warn_flag in '' yes
  10521. do
  10522. # Use a header file that comes with gcc, so configuring glibc
  10523. # with a fresh cross-compiler works.
  10524. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10525. # <limits.h> exists even on freestanding compilers.
  10526. # On the NeXT, cc -E runs the code through the compiler's parser,
  10527. # not just through cpp. "Syntax error" is here to catch this case.
  10528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10529. /* end confdefs.h. */
  10530. #ifdef __STDC__
  10531. # include <limits.h>
  10532. #else
  10533. # include <assert.h>
  10534. #endif
  10535. Syntax error
  10536. _ACEOF
  10537. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10538. else
  10539. # Broken: fails on valid input.
  10540. continue
  10541. fi
  10542. rm -f conftest.err conftest.i conftest.$ac_ext
  10543. # OK, works on sane cases. Now check whether nonexistent headers
  10544. # can be detected and how.
  10545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10546. /* end confdefs.h. */
  10547. #include <ac_nonexistent.h>
  10548. _ACEOF
  10549. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10550. # Broken: success on invalid input.
  10551. continue
  10552. else
  10553. # Passes both tests.
  10554. ac_preproc_ok=:
  10555. break
  10556. fi
  10557. rm -f conftest.err conftest.i conftest.$ac_ext
  10558. done
  10559. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10560. rm -f conftest.i conftest.err conftest.$ac_ext
  10561. if $ac_preproc_ok; then :
  10562. break
  10563. fi
  10564. done
  10565. ac_cv_prog_CXXCPP=$CXXCPP
  10566. fi
  10567. CXXCPP=$ac_cv_prog_CXXCPP
  10568. else
  10569. ac_cv_prog_CXXCPP=$CXXCPP
  10570. fi
  10571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10572. $as_echo "$CXXCPP" >&6; }
  10573. ac_preproc_ok=false
  10574. for ac_cxx_preproc_warn_flag in '' yes
  10575. do
  10576. # Use a header file that comes with gcc, so configuring glibc
  10577. # with a fresh cross-compiler works.
  10578. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10579. # <limits.h> exists even on freestanding compilers.
  10580. # On the NeXT, cc -E runs the code through the compiler's parser,
  10581. # not just through cpp. "Syntax error" is here to catch this case.
  10582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10583. /* end confdefs.h. */
  10584. #ifdef __STDC__
  10585. # include <limits.h>
  10586. #else
  10587. # include <assert.h>
  10588. #endif
  10589. Syntax error
  10590. _ACEOF
  10591. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10592. else
  10593. # Broken: fails on valid input.
  10594. continue
  10595. fi
  10596. rm -f conftest.err conftest.i conftest.$ac_ext
  10597. # OK, works on sane cases. Now check whether nonexistent headers
  10598. # can be detected and how.
  10599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10600. /* end confdefs.h. */
  10601. #include <ac_nonexistent.h>
  10602. _ACEOF
  10603. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10604. # Broken: success on invalid input.
  10605. continue
  10606. else
  10607. # Passes both tests.
  10608. ac_preproc_ok=:
  10609. break
  10610. fi
  10611. rm -f conftest.err conftest.i conftest.$ac_ext
  10612. done
  10613. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10614. rm -f conftest.i conftest.err conftest.$ac_ext
  10615. if $ac_preproc_ok; then :
  10616. else
  10617. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10618. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10619. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10620. See \`config.log' for more details" "$LINENO" 5; }
  10621. fi
  10622. ac_ext=c
  10623. ac_cpp='$CPP $CPPFLAGS'
  10624. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10625. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10626. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10627. else
  10628. _lt_caught_CXX_error=yes
  10629. fi
  10630. ac_ext=cpp
  10631. ac_cpp='$CXXCPP $CPPFLAGS'
  10632. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10633. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10634. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10635. archive_cmds_need_lc_CXX=no
  10636. allow_undefined_flag_CXX=
  10637. always_export_symbols_CXX=no
  10638. archive_expsym_cmds_CXX=
  10639. compiler_needs_object_CXX=no
  10640. export_dynamic_flag_spec_CXX=
  10641. hardcode_direct_CXX=no
  10642. hardcode_direct_absolute_CXX=no
  10643. hardcode_libdir_flag_spec_CXX=
  10644. hardcode_libdir_separator_CXX=
  10645. hardcode_minus_L_CXX=no
  10646. hardcode_shlibpath_var_CXX=unsupported
  10647. hardcode_automatic_CXX=no
  10648. inherit_rpath_CXX=no
  10649. module_cmds_CXX=
  10650. module_expsym_cmds_CXX=
  10651. link_all_deplibs_CXX=unknown
  10652. old_archive_cmds_CXX=$old_archive_cmds
  10653. reload_flag_CXX=$reload_flag
  10654. reload_cmds_CXX=$reload_cmds
  10655. no_undefined_flag_CXX=
  10656. whole_archive_flag_spec_CXX=
  10657. enable_shared_with_static_runtimes_CXX=no
  10658. # Source file extension for C++ test sources.
  10659. ac_ext=cpp
  10660. # Object file extension for compiled C++ test sources.
  10661. objext=o
  10662. objext_CXX=$objext
  10663. # No sense in running all these tests if we already determined that
  10664. # the CXX compiler isn't working. Some variables (like enable_shared)
  10665. # are currently assumed to apply to all compilers on this platform,
  10666. # and will be corrupted by setting them based on a non-working compiler.
  10667. if test "$_lt_caught_CXX_error" != yes; then
  10668. # Code to be used in simple compile tests
  10669. lt_simple_compile_test_code="int some_variable = 0;"
  10670. # Code to be used in simple link tests
  10671. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10672. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10673. # If no C compiler was specified, use CC.
  10674. LTCC=${LTCC-"$CC"}
  10675. # If no C compiler flags were specified, use CFLAGS.
  10676. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10677. # Allow CC to be a program name with arguments.
  10678. compiler=$CC
  10679. # save warnings/boilerplate of simple test code
  10680. ac_outfile=conftest.$ac_objext
  10681. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10682. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10683. _lt_compiler_boilerplate=`cat conftest.err`
  10684. $RM conftest*
  10685. ac_outfile=conftest.$ac_objext
  10686. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10687. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10688. _lt_linker_boilerplate=`cat conftest.err`
  10689. $RM -r conftest*
  10690. # Allow CC to be a program name with arguments.
  10691. lt_save_CC=$CC
  10692. lt_save_CFLAGS=$CFLAGS
  10693. lt_save_LD=$LD
  10694. lt_save_GCC=$GCC
  10695. GCC=$GXX
  10696. lt_save_with_gnu_ld=$with_gnu_ld
  10697. lt_save_path_LD=$lt_cv_path_LD
  10698. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10699. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10700. else
  10701. $as_unset lt_cv_prog_gnu_ld
  10702. fi
  10703. if test -n "${lt_cv_path_LDCXX+set}"; then
  10704. lt_cv_path_LD=$lt_cv_path_LDCXX
  10705. else
  10706. $as_unset lt_cv_path_LD
  10707. fi
  10708. test -z "${LDCXX+set}" || LD=$LDCXX
  10709. CC=${CXX-"c++"}
  10710. CFLAGS=$CXXFLAGS
  10711. compiler=$CC
  10712. compiler_CXX=$CC
  10713. for cc_temp in $compiler""; do
  10714. case $cc_temp in
  10715. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10716. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10717. \-*) ;;
  10718. *) break;;
  10719. esac
  10720. done
  10721. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10722. if test -n "$compiler"; then
  10723. # We don't want -fno-exception when compiling C++ code, so set the
  10724. # no_builtin_flag separately
  10725. if test "$GXX" = yes; then
  10726. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10727. else
  10728. lt_prog_compiler_no_builtin_flag_CXX=
  10729. fi
  10730. if test "$GXX" = yes; then
  10731. # Set up default GNU C++ configuration
  10732. # Check whether --with-gnu-ld was given.
  10733. if test "${with_gnu_ld+set}" = set; then :
  10734. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10735. else
  10736. with_gnu_ld=no
  10737. fi
  10738. ac_prog=ld
  10739. if test "$GCC" = yes; then
  10740. # Check if gcc -print-prog-name=ld gives a path.
  10741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10742. $as_echo_n "checking for ld used by $CC... " >&6; }
  10743. case $host in
  10744. *-*-mingw*)
  10745. # gcc leaves a trailing carriage return which upsets mingw
  10746. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10747. *)
  10748. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10749. esac
  10750. case $ac_prog in
  10751. # Accept absolute paths.
  10752. [\\/]* | ?:[\\/]*)
  10753. re_direlt='/[^/][^/]*/\.\./'
  10754. # Canonicalize the pathname of ld
  10755. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10756. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10757. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10758. done
  10759. test -z "$LD" && LD="$ac_prog"
  10760. ;;
  10761. "")
  10762. # If it fails, then pretend we aren't using GCC.
  10763. ac_prog=ld
  10764. ;;
  10765. *)
  10766. # If it is relative, then search for the first ld in PATH.
  10767. with_gnu_ld=unknown
  10768. ;;
  10769. esac
  10770. elif test "$with_gnu_ld" = yes; then
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10772. $as_echo_n "checking for GNU ld... " >&6; }
  10773. else
  10774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10775. $as_echo_n "checking for non-GNU ld... " >&6; }
  10776. fi
  10777. if ${lt_cv_path_LD+:} false; then :
  10778. $as_echo_n "(cached) " >&6
  10779. else
  10780. if test -z "$LD"; then
  10781. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10782. for ac_dir in $PATH; do
  10783. IFS="$lt_save_ifs"
  10784. test -z "$ac_dir" && ac_dir=.
  10785. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10786. lt_cv_path_LD="$ac_dir/$ac_prog"
  10787. # Check to see if the program is GNU ld. I'd rather use --version,
  10788. # but apparently some variants of GNU ld only accept -v.
  10789. # Break only if it was the GNU/non-GNU ld that we prefer.
  10790. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10791. *GNU* | *'with BFD'*)
  10792. test "$with_gnu_ld" != no && break
  10793. ;;
  10794. *)
  10795. test "$with_gnu_ld" != yes && break
  10796. ;;
  10797. esac
  10798. fi
  10799. done
  10800. IFS="$lt_save_ifs"
  10801. else
  10802. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10803. fi
  10804. fi
  10805. LD="$lt_cv_path_LD"
  10806. if test -n "$LD"; then
  10807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10808. $as_echo "$LD" >&6; }
  10809. else
  10810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10811. $as_echo "no" >&6; }
  10812. fi
  10813. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10815. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10816. if ${lt_cv_prog_gnu_ld+:} false; then :
  10817. $as_echo_n "(cached) " >&6
  10818. else
  10819. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10820. case `$LD -v 2>&1 </dev/null` in
  10821. *GNU* | *'with BFD'*)
  10822. lt_cv_prog_gnu_ld=yes
  10823. ;;
  10824. *)
  10825. lt_cv_prog_gnu_ld=no
  10826. ;;
  10827. esac
  10828. fi
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10830. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10831. with_gnu_ld=$lt_cv_prog_gnu_ld
  10832. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10833. # archiving commands below assume that GNU ld is being used.
  10834. if test "$with_gnu_ld" = yes; then
  10835. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10836. 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'
  10837. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10838. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10839. # If archive_cmds runs LD, not CC, wlarc should be empty
  10840. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10841. # investigate it a little bit more. (MM)
  10842. wlarc='${wl}'
  10843. # ancient GNU ld didn't support --whole-archive et. al.
  10844. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10845. $GREP 'no-whole-archive' > /dev/null; then
  10846. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10847. else
  10848. whole_archive_flag_spec_CXX=
  10849. fi
  10850. else
  10851. with_gnu_ld=no
  10852. wlarc=
  10853. # A generic and very simple default shared library creation
  10854. # command for GNU C++ for the case where it uses the native
  10855. # linker, instead of GNU ld. If possible, this setting should
  10856. # overridden to take advantage of the native linker features on
  10857. # the platform it is being used on.
  10858. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10859. fi
  10860. # Commands to make compiler produce verbose output that lists
  10861. # what "hidden" libraries, object files and flags are used when
  10862. # linking a shared library.
  10863. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10864. else
  10865. GXX=no
  10866. with_gnu_ld=no
  10867. wlarc=
  10868. fi
  10869. # PORTME: fill in a description of your system's C++ link characteristics
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10871. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10872. ld_shlibs_CXX=yes
  10873. case $host_os in
  10874. aix3*)
  10875. # FIXME: insert proper C++ library support
  10876. ld_shlibs_CXX=no
  10877. ;;
  10878. aix[4-9]*)
  10879. if test "$host_cpu" = ia64; then
  10880. # On IA64, the linker does run time linking by default, so we don't
  10881. # have to do anything special.
  10882. aix_use_runtimelinking=no
  10883. exp_sym_flag='-Bexport'
  10884. no_entry_flag=""
  10885. else
  10886. aix_use_runtimelinking=no
  10887. # Test if we are trying to use run time linking or normal
  10888. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10889. # need to do runtime linking.
  10890. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10891. for ld_flag in $LDFLAGS; do
  10892. case $ld_flag in
  10893. *-brtl*)
  10894. aix_use_runtimelinking=yes
  10895. break
  10896. ;;
  10897. esac
  10898. done
  10899. ;;
  10900. esac
  10901. exp_sym_flag='-bexport'
  10902. no_entry_flag='-bnoentry'
  10903. fi
  10904. # When large executables or shared objects are built, AIX ld can
  10905. # have problems creating the table of contents. If linking a library
  10906. # or program results in "error TOC overflow" add -mminimal-toc to
  10907. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10908. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10909. archive_cmds_CXX=''
  10910. hardcode_direct_CXX=yes
  10911. hardcode_direct_absolute_CXX=yes
  10912. hardcode_libdir_separator_CXX=':'
  10913. link_all_deplibs_CXX=yes
  10914. file_list_spec_CXX='${wl}-f,'
  10915. if test "$GXX" = yes; then
  10916. case $host_os in aix4.[012]|aix4.[012].*)
  10917. # We only want to do this on AIX 4.2 and lower, the check
  10918. # below for broken collect2 doesn't work under 4.3+
  10919. collect2name=`${CC} -print-prog-name=collect2`
  10920. if test -f "$collect2name" &&
  10921. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10922. then
  10923. # We have reworked collect2
  10924. :
  10925. else
  10926. # We have old collect2
  10927. hardcode_direct_CXX=unsupported
  10928. # It fails to find uninstalled libraries when the uninstalled
  10929. # path is not listed in the libpath. Setting hardcode_minus_L
  10930. # to unsupported forces relinking
  10931. hardcode_minus_L_CXX=yes
  10932. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10933. hardcode_libdir_separator_CXX=
  10934. fi
  10935. esac
  10936. shared_flag='-shared'
  10937. if test "$aix_use_runtimelinking" = yes; then
  10938. shared_flag="$shared_flag "'${wl}-G'
  10939. fi
  10940. else
  10941. # not using gcc
  10942. if test "$host_cpu" = ia64; then
  10943. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10944. # chokes on -Wl,-G. The following line is correct:
  10945. shared_flag='-G'
  10946. else
  10947. if test "$aix_use_runtimelinking" = yes; then
  10948. shared_flag='${wl}-G'
  10949. else
  10950. shared_flag='${wl}-bM:SRE'
  10951. fi
  10952. fi
  10953. fi
  10954. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10955. # It seems that -bexpall does not export symbols beginning with
  10956. # underscore (_), so it is better to generate a list of symbols to
  10957. # export.
  10958. always_export_symbols_CXX=yes
  10959. if test "$aix_use_runtimelinking" = yes; then
  10960. # Warning - without using the other runtime loading flags (-brtl),
  10961. # -berok will link without error, but may produce a broken library.
  10962. allow_undefined_flag_CXX='-berok'
  10963. # Determine the default libpath from the value encoded in an empty
  10964. # executable.
  10965. if test "${lt_cv_aix_libpath+set}" = set; then
  10966. aix_libpath=$lt_cv_aix_libpath
  10967. else
  10968. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10969. $as_echo_n "(cached) " >&6
  10970. else
  10971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10972. /* end confdefs.h. */
  10973. int
  10974. main ()
  10975. {
  10976. ;
  10977. return 0;
  10978. }
  10979. _ACEOF
  10980. if ac_fn_cxx_try_link "$LINENO"; then :
  10981. lt_aix_libpath_sed='
  10982. /Import File Strings/,/^$/ {
  10983. /^0/ {
  10984. s/^0 *\([^ ]*\) *$/\1/
  10985. p
  10986. }
  10987. }'
  10988. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10989. # Check for a 64-bit object if we didn't find anything.
  10990. if test -z "$lt_cv_aix_libpath__CXX"; then
  10991. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10992. fi
  10993. fi
  10994. rm -f core conftest.err conftest.$ac_objext \
  10995. conftest$ac_exeext conftest.$ac_ext
  10996. if test -z "$lt_cv_aix_libpath__CXX"; then
  10997. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10998. fi
  10999. fi
  11000. aix_libpath=$lt_cv_aix_libpath__CXX
  11001. fi
  11002. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11003. 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"
  11004. else
  11005. if test "$host_cpu" = ia64; then
  11006. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11007. allow_undefined_flag_CXX="-z nodefs"
  11008. 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"
  11009. else
  11010. # Determine the default libpath from the value encoded in an
  11011. # empty executable.
  11012. if test "${lt_cv_aix_libpath+set}" = set; then
  11013. aix_libpath=$lt_cv_aix_libpath
  11014. else
  11015. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11016. $as_echo_n "(cached) " >&6
  11017. else
  11018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11019. /* end confdefs.h. */
  11020. int
  11021. main ()
  11022. {
  11023. ;
  11024. return 0;
  11025. }
  11026. _ACEOF
  11027. if ac_fn_cxx_try_link "$LINENO"; then :
  11028. lt_aix_libpath_sed='
  11029. /Import File Strings/,/^$/ {
  11030. /^0/ {
  11031. s/^0 *\([^ ]*\) *$/\1/
  11032. p
  11033. }
  11034. }'
  11035. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11036. # Check for a 64-bit object if we didn't find anything.
  11037. if test -z "$lt_cv_aix_libpath__CXX"; then
  11038. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11039. fi
  11040. fi
  11041. rm -f core conftest.err conftest.$ac_objext \
  11042. conftest$ac_exeext conftest.$ac_ext
  11043. if test -z "$lt_cv_aix_libpath__CXX"; then
  11044. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11045. fi
  11046. fi
  11047. aix_libpath=$lt_cv_aix_libpath__CXX
  11048. fi
  11049. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11050. # Warning - without using the other run time loading flags,
  11051. # -berok will link without error, but may produce a broken library.
  11052. no_undefined_flag_CXX=' ${wl}-bernotok'
  11053. allow_undefined_flag_CXX=' ${wl}-berok'
  11054. if test "$with_gnu_ld" = yes; then
  11055. # We only use this code for GNU lds that support --whole-archive.
  11056. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11057. else
  11058. # Exported symbols can be pulled into shared objects from archives
  11059. whole_archive_flag_spec_CXX='$convenience'
  11060. fi
  11061. archive_cmds_need_lc_CXX=yes
  11062. # This is similar to how AIX traditionally builds its shared
  11063. # libraries.
  11064. 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'
  11065. fi
  11066. fi
  11067. ;;
  11068. beos*)
  11069. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11070. allow_undefined_flag_CXX=unsupported
  11071. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11072. # support --undefined. This deserves some investigation. FIXME
  11073. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11074. else
  11075. ld_shlibs_CXX=no
  11076. fi
  11077. ;;
  11078. chorus*)
  11079. case $cc_basename in
  11080. *)
  11081. # FIXME: insert proper C++ library support
  11082. ld_shlibs_CXX=no
  11083. ;;
  11084. esac
  11085. ;;
  11086. cygwin* | mingw* | pw32* | cegcc*)
  11087. case $GXX,$cc_basename in
  11088. ,cl* | no,cl*)
  11089. # Native MSVC
  11090. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11091. # no search path for DLLs.
  11092. hardcode_libdir_flag_spec_CXX=' '
  11093. allow_undefined_flag_CXX=unsupported
  11094. always_export_symbols_CXX=yes
  11095. file_list_spec_CXX='@'
  11096. # Tell ltmain to make .lib files, not .a files.
  11097. libext=lib
  11098. # Tell ltmain to make .dll files, not .so files.
  11099. shrext_cmds=".dll"
  11100. # FIXME: Setting linknames here is a bad hack.
  11101. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11102. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11103. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11104. else
  11105. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11106. fi~
  11107. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11108. linknames='
  11109. # The linker will not automatically build a static lib if we build a DLL.
  11110. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11111. enable_shared_with_static_runtimes_CXX=yes
  11112. # Don't use ranlib
  11113. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11114. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11115. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11116. case $lt_outputfile in
  11117. *.exe|*.EXE) ;;
  11118. *)
  11119. lt_outputfile="$lt_outputfile.exe"
  11120. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11121. ;;
  11122. esac~
  11123. func_to_tool_file "$lt_outputfile"~
  11124. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11125. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11126. $RM "$lt_outputfile.manifest";
  11127. fi'
  11128. ;;
  11129. *)
  11130. # g++
  11131. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11132. # as there is no search path for DLLs.
  11133. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11134. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11135. allow_undefined_flag_CXX=unsupported
  11136. always_export_symbols_CXX=no
  11137. enable_shared_with_static_runtimes_CXX=yes
  11138. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11139. 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'
  11140. # If the export-symbols file already is a .def file (1st line
  11141. # is EXPORTS), use it as is; otherwise, prepend...
  11142. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11143. cp $export_symbols $output_objdir/$soname.def;
  11144. else
  11145. echo EXPORTS > $output_objdir/$soname.def;
  11146. cat $export_symbols >> $output_objdir/$soname.def;
  11147. fi~
  11148. $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'
  11149. else
  11150. ld_shlibs_CXX=no
  11151. fi
  11152. ;;
  11153. esac
  11154. ;;
  11155. darwin* | rhapsody*)
  11156. archive_cmds_need_lc_CXX=no
  11157. hardcode_direct_CXX=no
  11158. hardcode_automatic_CXX=yes
  11159. hardcode_shlibpath_var_CXX=unsupported
  11160. if test "$lt_cv_ld_force_load" = "yes"; then
  11161. 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\"`'
  11162. else
  11163. whole_archive_flag_spec_CXX=''
  11164. fi
  11165. link_all_deplibs_CXX=yes
  11166. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11167. case $cc_basename in
  11168. ifort*) _lt_dar_can_shared=yes ;;
  11169. *) _lt_dar_can_shared=$GCC ;;
  11170. esac
  11171. if test "$_lt_dar_can_shared" = "yes"; then
  11172. output_verbose_link_cmd=func_echo_all
  11173. 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}"
  11174. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11175. 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}"
  11176. 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}"
  11177. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11178. 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}"
  11179. 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}"
  11180. fi
  11181. else
  11182. ld_shlibs_CXX=no
  11183. fi
  11184. ;;
  11185. dgux*)
  11186. case $cc_basename in
  11187. ec++*)
  11188. # FIXME: insert proper C++ library support
  11189. ld_shlibs_CXX=no
  11190. ;;
  11191. ghcx*)
  11192. # Green Hills C++ Compiler
  11193. # FIXME: insert proper C++ library support
  11194. ld_shlibs_CXX=no
  11195. ;;
  11196. *)
  11197. # FIXME: insert proper C++ library support
  11198. ld_shlibs_CXX=no
  11199. ;;
  11200. esac
  11201. ;;
  11202. freebsd2.*)
  11203. # C++ shared libraries reported to be fairly broken before
  11204. # switch to ELF
  11205. ld_shlibs_CXX=no
  11206. ;;
  11207. freebsd-elf*)
  11208. archive_cmds_need_lc_CXX=no
  11209. ;;
  11210. freebsd* | dragonfly*)
  11211. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11212. # conventions
  11213. ld_shlibs_CXX=yes
  11214. ;;
  11215. gnu*)
  11216. ;;
  11217. haiku*)
  11218. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11219. link_all_deplibs_CXX=yes
  11220. ;;
  11221. hpux9*)
  11222. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11223. hardcode_libdir_separator_CXX=:
  11224. export_dynamic_flag_spec_CXX='${wl}-E'
  11225. hardcode_direct_CXX=yes
  11226. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11227. # but as the default
  11228. # location of the library.
  11229. case $cc_basename in
  11230. CC*)
  11231. # FIXME: insert proper C++ library support
  11232. ld_shlibs_CXX=no
  11233. ;;
  11234. aCC*)
  11235. 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'
  11236. # Commands to make compiler produce verbose output that lists
  11237. # what "hidden" libraries, object files and flags are used when
  11238. # linking a shared library.
  11239. #
  11240. # There doesn't appear to be a way to prevent this compiler from
  11241. # explicitly linking system object files so we need to strip them
  11242. # from the output so that they don't get included in the library
  11243. # dependencies.
  11244. 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"'
  11245. ;;
  11246. *)
  11247. if test "$GXX" = yes; then
  11248. 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'
  11249. else
  11250. # FIXME: insert proper C++ library support
  11251. ld_shlibs_CXX=no
  11252. fi
  11253. ;;
  11254. esac
  11255. ;;
  11256. hpux10*|hpux11*)
  11257. if test $with_gnu_ld = no; then
  11258. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11259. hardcode_libdir_separator_CXX=:
  11260. case $host_cpu in
  11261. hppa*64*|ia64*)
  11262. ;;
  11263. *)
  11264. export_dynamic_flag_spec_CXX='${wl}-E'
  11265. ;;
  11266. esac
  11267. fi
  11268. case $host_cpu in
  11269. hppa*64*|ia64*)
  11270. hardcode_direct_CXX=no
  11271. hardcode_shlibpath_var_CXX=no
  11272. ;;
  11273. *)
  11274. hardcode_direct_CXX=yes
  11275. hardcode_direct_absolute_CXX=yes
  11276. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11277. # but as the default
  11278. # location of the library.
  11279. ;;
  11280. esac
  11281. case $cc_basename in
  11282. CC*)
  11283. # FIXME: insert proper C++ library support
  11284. ld_shlibs_CXX=no
  11285. ;;
  11286. aCC*)
  11287. case $host_cpu in
  11288. hppa*64*)
  11289. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11290. ;;
  11291. ia64*)
  11292. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11293. ;;
  11294. *)
  11295. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11296. ;;
  11297. esac
  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) | $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"'
  11307. ;;
  11308. *)
  11309. if test "$GXX" = yes; then
  11310. if test $with_gnu_ld = no; then
  11311. case $host_cpu in
  11312. hppa*64*)
  11313. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11314. ;;
  11315. ia64*)
  11316. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11317. ;;
  11318. *)
  11319. 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'
  11320. ;;
  11321. esac
  11322. fi
  11323. else
  11324. # FIXME: insert proper C++ library support
  11325. ld_shlibs_CXX=no
  11326. fi
  11327. ;;
  11328. esac
  11329. ;;
  11330. interix[3-9]*)
  11331. hardcode_direct_CXX=no
  11332. hardcode_shlibpath_var_CXX=no
  11333. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11334. export_dynamic_flag_spec_CXX='${wl}-E'
  11335. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11336. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11337. # default) and relocated if they conflict, which is a slow very memory
  11338. # consuming and fragmenting process. To avoid this, we pick a random,
  11339. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11340. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11341. 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'
  11342. 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'
  11343. ;;
  11344. irix5* | irix6*)
  11345. case $cc_basename in
  11346. CC*)
  11347. # SGI C++
  11348. 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'
  11349. # Archives containing C++ object files must be created using
  11350. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11351. # necessary to make sure instantiated templates are included
  11352. # in the archive.
  11353. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11354. ;;
  11355. *)
  11356. if test "$GXX" = yes; then
  11357. if test "$with_gnu_ld" = no; then
  11358. 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'
  11359. else
  11360. 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'
  11361. fi
  11362. fi
  11363. link_all_deplibs_CXX=yes
  11364. ;;
  11365. esac
  11366. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11367. hardcode_libdir_separator_CXX=:
  11368. inherit_rpath_CXX=yes
  11369. ;;
  11370. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11371. case $cc_basename in
  11372. KCC*)
  11373. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11374. # KCC will only create a shared library if the output file
  11375. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11376. # to its proper name (with version) after linking.
  11377. 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'
  11378. 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'
  11379. # Commands to make compiler produce verbose output that lists
  11380. # what "hidden" libraries, object files and flags are used when
  11381. # linking a shared library.
  11382. #
  11383. # There doesn't appear to be a way to prevent this compiler from
  11384. # explicitly linking system object files so we need to strip them
  11385. # from the output so that they don't get included in the library
  11386. # dependencies.
  11387. 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"'
  11388. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11389. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11390. # Archives containing C++ object files must be created using
  11391. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11392. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11393. ;;
  11394. icpc* | ecpc* )
  11395. # Intel C++
  11396. with_gnu_ld=yes
  11397. # version 8.0 and above of icpc choke on multiply defined symbols
  11398. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11399. # earlier do not add the objects themselves.
  11400. case `$CC -V 2>&1` in
  11401. *"Version 7."*)
  11402. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11403. 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'
  11404. ;;
  11405. *) # Version 8.0 or newer
  11406. tmp_idyn=
  11407. case $host_cpu in
  11408. ia64*) tmp_idyn=' -i_dynamic';;
  11409. esac
  11410. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11411. 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'
  11412. ;;
  11413. esac
  11414. archive_cmds_need_lc_CXX=no
  11415. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11416. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11417. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11418. ;;
  11419. pgCC* | pgcpp*)
  11420. # Portland Group C++ compiler
  11421. case `$CC -V` in
  11422. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11423. prelink_cmds_CXX='tpldir=Template.dir~
  11424. rm -rf $tpldir~
  11425. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11426. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11427. old_archive_cmds_CXX='tpldir=Template.dir~
  11428. rm -rf $tpldir~
  11429. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11430. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11431. $RANLIB $oldlib'
  11432. archive_cmds_CXX='tpldir=Template.dir~
  11433. rm -rf $tpldir~
  11434. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11435. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11436. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11437. rm -rf $tpldir~
  11438. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11439. $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'
  11440. ;;
  11441. *) # Version 6 and above use weak symbols
  11442. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11443. 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'
  11444. ;;
  11445. esac
  11446. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11447. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11448. 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'
  11449. ;;
  11450. cxx*)
  11451. # Compaq C++
  11452. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11453. 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'
  11454. runpath_var=LD_RUN_PATH
  11455. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11456. hardcode_libdir_separator_CXX=:
  11457. # Commands to make compiler produce verbose output that lists
  11458. # what "hidden" libraries, object files and flags are used when
  11459. # linking a shared library.
  11460. #
  11461. # There doesn't appear to be a way to prevent this compiler from
  11462. # explicitly linking system object files so we need to strip them
  11463. # from the output so that they don't get included in the library
  11464. # dependencies.
  11465. 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'
  11466. ;;
  11467. xl* | mpixl* | bgxl*)
  11468. # IBM XL 8.0 on PPC, with GNU ld
  11469. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11470. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11471. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11472. if test "x$supports_anon_versioning" = xyes; then
  11473. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11474. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11475. echo "local: *; };" >> $output_objdir/$libname.ver~
  11476. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11477. fi
  11478. ;;
  11479. *)
  11480. case `$CC -V 2>&1 | sed 5q` in
  11481. *Sun\ C*)
  11482. # Sun C++ 5.9
  11483. no_undefined_flag_CXX=' -zdefs'
  11484. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11485. 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'
  11486. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11487. 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'
  11488. compiler_needs_object_CXX=yes
  11489. # Not sure whether something based on
  11490. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11491. # would be better.
  11492. output_verbose_link_cmd='func_echo_all'
  11493. # Archives containing C++ object files must be created using
  11494. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11495. # necessary to make sure instantiated templates are included
  11496. # in the archive.
  11497. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11498. ;;
  11499. esac
  11500. ;;
  11501. esac
  11502. ;;
  11503. lynxos*)
  11504. # FIXME: insert proper C++ library support
  11505. ld_shlibs_CXX=no
  11506. ;;
  11507. m88k*)
  11508. # FIXME: insert proper C++ library support
  11509. ld_shlibs_CXX=no
  11510. ;;
  11511. mvs*)
  11512. case $cc_basename in
  11513. cxx*)
  11514. # FIXME: insert proper C++ library support
  11515. ld_shlibs_CXX=no
  11516. ;;
  11517. *)
  11518. # FIXME: insert proper C++ library support
  11519. ld_shlibs_CXX=no
  11520. ;;
  11521. esac
  11522. ;;
  11523. netbsd*)
  11524. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11525. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11526. wlarc=
  11527. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11528. hardcode_direct_CXX=yes
  11529. hardcode_shlibpath_var_CXX=no
  11530. fi
  11531. # Workaround some broken pre-1.5 toolchains
  11532. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11533. ;;
  11534. *nto* | *qnx*)
  11535. ld_shlibs_CXX=yes
  11536. ;;
  11537. openbsd2*)
  11538. # C++ shared libraries are fairly broken
  11539. ld_shlibs_CXX=no
  11540. ;;
  11541. openbsd*)
  11542. if test -f /usr/libexec/ld.so; then
  11543. hardcode_direct_CXX=yes
  11544. hardcode_shlibpath_var_CXX=no
  11545. hardcode_direct_absolute_CXX=yes
  11546. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11547. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11548. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11549. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11550. export_dynamic_flag_spec_CXX='${wl}-E'
  11551. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11552. fi
  11553. output_verbose_link_cmd=func_echo_all
  11554. else
  11555. ld_shlibs_CXX=no
  11556. fi
  11557. ;;
  11558. osf3* | osf4* | osf5*)
  11559. case $cc_basename in
  11560. KCC*)
  11561. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11562. # KCC will only create a shared library if the output file
  11563. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11564. # to its proper name (with version) after linking.
  11565. 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'
  11566. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11567. hardcode_libdir_separator_CXX=:
  11568. # Archives containing C++ object files must be created using
  11569. # the KAI C++ compiler.
  11570. case $host in
  11571. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11572. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11573. esac
  11574. ;;
  11575. RCC*)
  11576. # Rational C++ 2.4.1
  11577. # FIXME: insert proper C++ library support
  11578. ld_shlibs_CXX=no
  11579. ;;
  11580. cxx*)
  11581. case $host in
  11582. osf3*)
  11583. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11584. 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'
  11585. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11586. ;;
  11587. *)
  11588. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11589. 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'
  11590. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11591. echo "-hidden">> $lib.exp~
  11592. $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~
  11593. $RM $lib.exp'
  11594. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11595. ;;
  11596. esac
  11597. hardcode_libdir_separator_CXX=:
  11598. # Commands to make compiler produce verbose output that lists
  11599. # what "hidden" libraries, object files and flags are used when
  11600. # linking a shared library.
  11601. #
  11602. # There doesn't appear to be a way to prevent this compiler from
  11603. # explicitly linking system object files so we need to strip them
  11604. # from the output so that they don't get included in the library
  11605. # dependencies.
  11606. output_verbose_link_cmd='templist=`$CC -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"'
  11607. ;;
  11608. *)
  11609. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11610. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11611. case $host in
  11612. osf3*)
  11613. 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'
  11614. ;;
  11615. *)
  11616. 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'
  11617. ;;
  11618. esac
  11619. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11620. hardcode_libdir_separator_CXX=:
  11621. # Commands to make compiler produce verbose output that lists
  11622. # what "hidden" libraries, object files and flags are used when
  11623. # linking a shared library.
  11624. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11625. else
  11626. # FIXME: insert proper C++ library support
  11627. ld_shlibs_CXX=no
  11628. fi
  11629. ;;
  11630. esac
  11631. ;;
  11632. psos*)
  11633. # FIXME: insert proper C++ library support
  11634. ld_shlibs_CXX=no
  11635. ;;
  11636. sunos4*)
  11637. case $cc_basename in
  11638. CC*)
  11639. # Sun C++ 4.x
  11640. # FIXME: insert proper C++ library support
  11641. ld_shlibs_CXX=no
  11642. ;;
  11643. lcc*)
  11644. # Lucid
  11645. # FIXME: insert proper C++ library support
  11646. ld_shlibs_CXX=no
  11647. ;;
  11648. *)
  11649. # FIXME: insert proper C++ library support
  11650. ld_shlibs_CXX=no
  11651. ;;
  11652. esac
  11653. ;;
  11654. solaris*)
  11655. case $cc_basename in
  11656. CC* | sunCC*)
  11657. # Sun C++ 4.2, 5.x and Centerline C++
  11658. archive_cmds_need_lc_CXX=yes
  11659. no_undefined_flag_CXX=' -zdefs'
  11660. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11661. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11662. $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'
  11663. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11664. hardcode_shlibpath_var_CXX=no
  11665. case $host_os in
  11666. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11667. *)
  11668. # The compiler driver will combine and reorder linker options,
  11669. # but understands `-z linker_flag'.
  11670. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11671. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11672. ;;
  11673. esac
  11674. link_all_deplibs_CXX=yes
  11675. output_verbose_link_cmd='func_echo_all'
  11676. # Archives containing C++ object files must be created using
  11677. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11678. # necessary to make sure instantiated templates are included
  11679. # in the archive.
  11680. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11681. ;;
  11682. gcx*)
  11683. # Green Hills C++ Compiler
  11684. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11685. # The C++ compiler must be used to create the archive.
  11686. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11687. ;;
  11688. *)
  11689. # GNU C++ compiler with Solaris linker
  11690. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11691. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11692. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11693. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11694. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11695. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11696. # Commands to make compiler produce verbose output that lists
  11697. # what "hidden" libraries, object files and flags are used when
  11698. # linking a shared library.
  11699. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11700. else
  11701. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11702. # platform.
  11703. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11704. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11705. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11706. # Commands to make compiler produce verbose output that lists
  11707. # what "hidden" libraries, object files and flags are used when
  11708. # linking a shared library.
  11709. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11710. fi
  11711. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11712. case $host_os in
  11713. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11714. *)
  11715. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11716. ;;
  11717. esac
  11718. fi
  11719. ;;
  11720. esac
  11721. ;;
  11722. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11723. no_undefined_flag_CXX='${wl}-z,text'
  11724. archive_cmds_need_lc_CXX=no
  11725. hardcode_shlibpath_var_CXX=no
  11726. runpath_var='LD_RUN_PATH'
  11727. case $cc_basename in
  11728. CC*)
  11729. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11730. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11731. ;;
  11732. *)
  11733. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11734. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11735. ;;
  11736. esac
  11737. ;;
  11738. sysv5* | sco3.2v5* | sco5v6*)
  11739. # Note: We can NOT use -z defs as we might desire, because we do not
  11740. # link with -lc, and that would cause any symbols used from libc to
  11741. # always be unresolved, which means just about no library would
  11742. # ever link correctly. If we're not using GNU ld we use -z text
  11743. # though, which does catch some bad symbols but isn't as heavy-handed
  11744. # as -z defs.
  11745. no_undefined_flag_CXX='${wl}-z,text'
  11746. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11747. archive_cmds_need_lc_CXX=no
  11748. hardcode_shlibpath_var_CXX=no
  11749. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11750. hardcode_libdir_separator_CXX=':'
  11751. link_all_deplibs_CXX=yes
  11752. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11753. runpath_var='LD_RUN_PATH'
  11754. case $cc_basename in
  11755. CC*)
  11756. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11757. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11758. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11759. '"$old_archive_cmds_CXX"
  11760. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11761. '"$reload_cmds_CXX"
  11762. ;;
  11763. *)
  11764. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11765. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11766. ;;
  11767. esac
  11768. ;;
  11769. tandem*)
  11770. case $cc_basename in
  11771. NCC*)
  11772. # NonStop-UX NCC 3.20
  11773. # FIXME: insert proper C++ library support
  11774. ld_shlibs_CXX=no
  11775. ;;
  11776. *)
  11777. # FIXME: insert proper C++ library support
  11778. ld_shlibs_CXX=no
  11779. ;;
  11780. esac
  11781. ;;
  11782. vxworks*)
  11783. # FIXME: insert proper C++ library support
  11784. ld_shlibs_CXX=no
  11785. ;;
  11786. *)
  11787. # FIXME: insert proper C++ library support
  11788. ld_shlibs_CXX=no
  11789. ;;
  11790. esac
  11791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11792. $as_echo "$ld_shlibs_CXX" >&6; }
  11793. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11794. GCC_CXX="$GXX"
  11795. LD_CXX="$LD"
  11796. ## CAVEAT EMPTOR:
  11797. ## There is no encapsulation within the following macros, do not change
  11798. ## the running order or otherwise move them around unless you know exactly
  11799. ## what you are doing...
  11800. # Dependencies to place before and after the object being linked:
  11801. predep_objects_CXX=
  11802. postdep_objects_CXX=
  11803. predeps_CXX=
  11804. postdeps_CXX=
  11805. compiler_lib_search_path_CXX=
  11806. cat > conftest.$ac_ext <<_LT_EOF
  11807. class Foo
  11808. {
  11809. public:
  11810. Foo (void) { a = 0; }
  11811. private:
  11812. int a;
  11813. };
  11814. _LT_EOF
  11815. _lt_libdeps_save_CFLAGS=$CFLAGS
  11816. case "$CC $CFLAGS " in #(
  11817. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11818. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11819. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11820. esac
  11821. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11822. (eval $ac_compile) 2>&5
  11823. ac_status=$?
  11824. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11825. test $ac_status = 0; }; then
  11826. # Parse the compiler output and extract the necessary
  11827. # objects, libraries and library flags.
  11828. # Sentinel used to keep track of whether or not we are before
  11829. # the conftest object file.
  11830. pre_test_object_deps_done=no
  11831. for p in `eval "$output_verbose_link_cmd"`; do
  11832. case ${prev}${p} in
  11833. -L* | -R* | -l*)
  11834. # Some compilers place space between "-{L,R}" and the path.
  11835. # Remove the space.
  11836. if test $p = "-L" ||
  11837. test $p = "-R"; then
  11838. prev=$p
  11839. continue
  11840. fi
  11841. # Expand the sysroot to ease extracting the directories later.
  11842. if test -z "$prev"; then
  11843. case $p in
  11844. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11845. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11846. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11847. esac
  11848. fi
  11849. case $p in
  11850. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11851. esac
  11852. if test "$pre_test_object_deps_done" = no; then
  11853. case ${prev} in
  11854. -L | -R)
  11855. # Internal compiler library paths should come after those
  11856. # provided the user. The postdeps already come after the
  11857. # user supplied libs so there is no need to process them.
  11858. if test -z "$compiler_lib_search_path_CXX"; then
  11859. compiler_lib_search_path_CXX="${prev}${p}"
  11860. else
  11861. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11862. fi
  11863. ;;
  11864. # The "-l" case would never come before the object being
  11865. # linked, so don't bother handling this case.
  11866. esac
  11867. else
  11868. if test -z "$postdeps_CXX"; then
  11869. postdeps_CXX="${prev}${p}"
  11870. else
  11871. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11872. fi
  11873. fi
  11874. prev=
  11875. ;;
  11876. *.lto.$objext) ;; # Ignore GCC LTO objects
  11877. *.$objext)
  11878. # This assumes that the test object file only shows up
  11879. # once in the compiler output.
  11880. if test "$p" = "conftest.$objext"; then
  11881. pre_test_object_deps_done=yes
  11882. continue
  11883. fi
  11884. if test "$pre_test_object_deps_done" = no; then
  11885. if test -z "$predep_objects_CXX"; then
  11886. predep_objects_CXX="$p"
  11887. else
  11888. predep_objects_CXX="$predep_objects_CXX $p"
  11889. fi
  11890. else
  11891. if test -z "$postdep_objects_CXX"; then
  11892. postdep_objects_CXX="$p"
  11893. else
  11894. postdep_objects_CXX="$postdep_objects_CXX $p"
  11895. fi
  11896. fi
  11897. ;;
  11898. *) ;; # Ignore the rest.
  11899. esac
  11900. done
  11901. # Clean up.
  11902. rm -f a.out a.exe
  11903. else
  11904. echo "libtool.m4: error: problem compiling CXX test program"
  11905. fi
  11906. $RM -f confest.$objext
  11907. CFLAGS=$_lt_libdeps_save_CFLAGS
  11908. # PORTME: override above test on systems where it is broken
  11909. case $host_os in
  11910. interix[3-9]*)
  11911. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11912. # hack all around it, let's just trust "g++" to DTRT.
  11913. predep_objects_CXX=
  11914. postdep_objects_CXX=
  11915. postdeps_CXX=
  11916. ;;
  11917. linux*)
  11918. case `$CC -V 2>&1 | sed 5q` in
  11919. *Sun\ C*)
  11920. # Sun C++ 5.9
  11921. # The more standards-conforming stlport4 library is
  11922. # incompatible with the Cstd library. Avoid specifying
  11923. # it if it's in CXXFLAGS. Ignore libCrun as
  11924. # -library=stlport4 depends on it.
  11925. case " $CXX $CXXFLAGS " in
  11926. *" -library=stlport4 "*)
  11927. solaris_use_stlport4=yes
  11928. ;;
  11929. esac
  11930. if test "$solaris_use_stlport4" != yes; then
  11931. postdeps_CXX='-library=Cstd -library=Crun'
  11932. fi
  11933. ;;
  11934. esac
  11935. ;;
  11936. solaris*)
  11937. case $cc_basename in
  11938. CC* | sunCC*)
  11939. # The more standards-conforming stlport4 library is
  11940. # incompatible with the Cstd library. Avoid specifying
  11941. # it if it's in CXXFLAGS. Ignore libCrun as
  11942. # -library=stlport4 depends on it.
  11943. case " $CXX $CXXFLAGS " in
  11944. *" -library=stlport4 "*)
  11945. solaris_use_stlport4=yes
  11946. ;;
  11947. esac
  11948. # Adding this requires a known-good setup of shared libraries for
  11949. # Sun compiler versions before 5.6, else PIC objects from an old
  11950. # archive will be linked into the output, leading to subtle bugs.
  11951. if test "$solaris_use_stlport4" != yes; then
  11952. postdeps_CXX='-library=Cstd -library=Crun'
  11953. fi
  11954. ;;
  11955. esac
  11956. ;;
  11957. esac
  11958. case " $postdeps_CXX " in
  11959. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11960. esac
  11961. compiler_lib_search_dirs_CXX=
  11962. if test -n "${compiler_lib_search_path_CXX}"; then
  11963. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11964. fi
  11965. lt_prog_compiler_wl_CXX=
  11966. lt_prog_compiler_pic_CXX=
  11967. lt_prog_compiler_static_CXX=
  11968. # C++ specific cases for pic, static, wl, etc.
  11969. if test "$GXX" = yes; then
  11970. lt_prog_compiler_wl_CXX='-Wl,'
  11971. lt_prog_compiler_static_CXX='-static'
  11972. case $host_os in
  11973. aix*)
  11974. # All AIX code is PIC.
  11975. if test "$host_cpu" = ia64; then
  11976. # AIX 5 now supports IA64 processor
  11977. lt_prog_compiler_static_CXX='-Bstatic'
  11978. fi
  11979. ;;
  11980. amigaos*)
  11981. case $host_cpu in
  11982. powerpc)
  11983. # see comment about AmigaOS4 .so support
  11984. lt_prog_compiler_pic_CXX='-fPIC'
  11985. ;;
  11986. m68k)
  11987. # FIXME: we need at least 68020 code to build shared libraries, but
  11988. # adding the `-m68020' flag to GCC prevents building anything better,
  11989. # like `-m68040'.
  11990. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11991. ;;
  11992. esac
  11993. ;;
  11994. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11995. # PIC is the default for these OSes.
  11996. ;;
  11997. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11998. # This hack is so that the source file can tell whether it is being
  11999. # built for inclusion in a dll (and should export symbols for example).
  12000. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12001. # (--disable-auto-import) libraries
  12002. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12003. ;;
  12004. darwin* | rhapsody*)
  12005. # PIC is the default on this platform
  12006. # Common symbols not allowed in MH_DYLIB files
  12007. lt_prog_compiler_pic_CXX='-fno-common'
  12008. ;;
  12009. *djgpp*)
  12010. # DJGPP does not support shared libraries at all
  12011. lt_prog_compiler_pic_CXX=
  12012. ;;
  12013. haiku*)
  12014. # PIC is the default for Haiku.
  12015. # The "-static" flag exists, but is broken.
  12016. lt_prog_compiler_static_CXX=
  12017. ;;
  12018. interix[3-9]*)
  12019. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12020. # Instead, we relocate shared libraries at runtime.
  12021. ;;
  12022. sysv4*MP*)
  12023. if test -d /usr/nec; then
  12024. lt_prog_compiler_pic_CXX=-Kconform_pic
  12025. fi
  12026. ;;
  12027. hpux*)
  12028. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12029. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12030. # sets the default TLS model and affects inlining.
  12031. case $host_cpu in
  12032. hppa*64*)
  12033. ;;
  12034. *)
  12035. lt_prog_compiler_pic_CXX='-fPIC'
  12036. ;;
  12037. esac
  12038. ;;
  12039. *qnx* | *nto*)
  12040. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12041. # it will coredump.
  12042. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12043. ;;
  12044. *)
  12045. lt_prog_compiler_pic_CXX='-fPIC'
  12046. ;;
  12047. esac
  12048. else
  12049. case $host_os in
  12050. aix[4-9]*)
  12051. # All AIX code is PIC.
  12052. if test "$host_cpu" = ia64; then
  12053. # AIX 5 now supports IA64 processor
  12054. lt_prog_compiler_static_CXX='-Bstatic'
  12055. else
  12056. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12057. fi
  12058. ;;
  12059. chorus*)
  12060. case $cc_basename in
  12061. cxch68*)
  12062. # Green Hills C++ Compiler
  12063. # _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"
  12064. ;;
  12065. esac
  12066. ;;
  12067. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12068. # This hack is so that the source file can tell whether it is being
  12069. # built for inclusion in a dll (and should export symbols for example).
  12070. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12071. ;;
  12072. dgux*)
  12073. case $cc_basename in
  12074. ec++*)
  12075. lt_prog_compiler_pic_CXX='-KPIC'
  12076. ;;
  12077. ghcx*)
  12078. # Green Hills C++ Compiler
  12079. lt_prog_compiler_pic_CXX='-pic'
  12080. ;;
  12081. *)
  12082. ;;
  12083. esac
  12084. ;;
  12085. freebsd* | dragonfly*)
  12086. # FreeBSD uses GNU C++
  12087. ;;
  12088. hpux9* | hpux10* | hpux11*)
  12089. case $cc_basename in
  12090. CC*)
  12091. lt_prog_compiler_wl_CXX='-Wl,'
  12092. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12093. if test "$host_cpu" != ia64; then
  12094. lt_prog_compiler_pic_CXX='+Z'
  12095. fi
  12096. ;;
  12097. aCC*)
  12098. lt_prog_compiler_wl_CXX='-Wl,'
  12099. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12100. case $host_cpu in
  12101. hppa*64*|ia64*)
  12102. # +Z the default
  12103. ;;
  12104. *)
  12105. lt_prog_compiler_pic_CXX='+Z'
  12106. ;;
  12107. esac
  12108. ;;
  12109. *)
  12110. ;;
  12111. esac
  12112. ;;
  12113. interix*)
  12114. # This is c89, which is MS Visual C++ (no shared libs)
  12115. # Anyone wants to do a port?
  12116. ;;
  12117. irix5* | irix6* | nonstopux*)
  12118. case $cc_basename in
  12119. CC*)
  12120. lt_prog_compiler_wl_CXX='-Wl,'
  12121. lt_prog_compiler_static_CXX='-non_shared'
  12122. # CC pic flag -KPIC is the default.
  12123. ;;
  12124. *)
  12125. ;;
  12126. esac
  12127. ;;
  12128. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12129. case $cc_basename in
  12130. KCC*)
  12131. # KAI C++ Compiler
  12132. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12133. lt_prog_compiler_pic_CXX='-fPIC'
  12134. ;;
  12135. ecpc* )
  12136. # old Intel C++ for x86_64 which still supported -KPIC.
  12137. lt_prog_compiler_wl_CXX='-Wl,'
  12138. lt_prog_compiler_pic_CXX='-KPIC'
  12139. lt_prog_compiler_static_CXX='-static'
  12140. ;;
  12141. icpc* )
  12142. # Intel C++, used to be incompatible with GCC.
  12143. # ICC 10 doesn't accept -KPIC any more.
  12144. lt_prog_compiler_wl_CXX='-Wl,'
  12145. lt_prog_compiler_pic_CXX='-fPIC'
  12146. lt_prog_compiler_static_CXX='-static'
  12147. ;;
  12148. pgCC* | pgcpp*)
  12149. # Portland Group C++ compiler
  12150. lt_prog_compiler_wl_CXX='-Wl,'
  12151. lt_prog_compiler_pic_CXX='-fpic'
  12152. lt_prog_compiler_static_CXX='-Bstatic'
  12153. ;;
  12154. cxx*)
  12155. # Compaq C++
  12156. # Make sure the PIC flag is empty. It appears that all Alpha
  12157. # Linux and Compaq Tru64 Unix objects are PIC.
  12158. lt_prog_compiler_pic_CXX=
  12159. lt_prog_compiler_static_CXX='-non_shared'
  12160. ;;
  12161. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12162. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12163. lt_prog_compiler_wl_CXX='-Wl,'
  12164. lt_prog_compiler_pic_CXX='-qpic'
  12165. lt_prog_compiler_static_CXX='-qstaticlink'
  12166. ;;
  12167. *)
  12168. case `$CC -V 2>&1 | sed 5q` in
  12169. *Sun\ C*)
  12170. # Sun C++ 5.9
  12171. lt_prog_compiler_pic_CXX='-KPIC'
  12172. lt_prog_compiler_static_CXX='-Bstatic'
  12173. lt_prog_compiler_wl_CXX='-Qoption ld '
  12174. ;;
  12175. esac
  12176. ;;
  12177. esac
  12178. ;;
  12179. lynxos*)
  12180. ;;
  12181. m88k*)
  12182. ;;
  12183. mvs*)
  12184. case $cc_basename in
  12185. cxx*)
  12186. lt_prog_compiler_pic_CXX='-W c,exportall'
  12187. ;;
  12188. *)
  12189. ;;
  12190. esac
  12191. ;;
  12192. netbsd*)
  12193. ;;
  12194. *qnx* | *nto*)
  12195. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12196. # it will coredump.
  12197. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12198. ;;
  12199. osf3* | osf4* | osf5*)
  12200. case $cc_basename in
  12201. KCC*)
  12202. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12203. ;;
  12204. RCC*)
  12205. # Rational C++ 2.4.1
  12206. lt_prog_compiler_pic_CXX='-pic'
  12207. ;;
  12208. cxx*)
  12209. # Digital/Compaq C++
  12210. lt_prog_compiler_wl_CXX='-Wl,'
  12211. # Make sure the PIC flag is empty. It appears that all Alpha
  12212. # Linux and Compaq Tru64 Unix objects are PIC.
  12213. lt_prog_compiler_pic_CXX=
  12214. lt_prog_compiler_static_CXX='-non_shared'
  12215. ;;
  12216. *)
  12217. ;;
  12218. esac
  12219. ;;
  12220. psos*)
  12221. ;;
  12222. solaris*)
  12223. case $cc_basename in
  12224. CC* | sunCC*)
  12225. # Sun C++ 4.2, 5.x and Centerline C++
  12226. lt_prog_compiler_pic_CXX='-KPIC'
  12227. lt_prog_compiler_static_CXX='-Bstatic'
  12228. lt_prog_compiler_wl_CXX='-Qoption ld '
  12229. ;;
  12230. gcx*)
  12231. # Green Hills C++ Compiler
  12232. lt_prog_compiler_pic_CXX='-PIC'
  12233. ;;
  12234. *)
  12235. ;;
  12236. esac
  12237. ;;
  12238. sunos4*)
  12239. case $cc_basename in
  12240. CC*)
  12241. # Sun C++ 4.x
  12242. lt_prog_compiler_pic_CXX='-pic'
  12243. lt_prog_compiler_static_CXX='-Bstatic'
  12244. ;;
  12245. lcc*)
  12246. # Lucid
  12247. lt_prog_compiler_pic_CXX='-pic'
  12248. ;;
  12249. *)
  12250. ;;
  12251. esac
  12252. ;;
  12253. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12254. case $cc_basename in
  12255. CC*)
  12256. lt_prog_compiler_wl_CXX='-Wl,'
  12257. lt_prog_compiler_pic_CXX='-KPIC'
  12258. lt_prog_compiler_static_CXX='-Bstatic'
  12259. ;;
  12260. esac
  12261. ;;
  12262. tandem*)
  12263. case $cc_basename in
  12264. NCC*)
  12265. # NonStop-UX NCC 3.20
  12266. lt_prog_compiler_pic_CXX='-KPIC'
  12267. ;;
  12268. *)
  12269. ;;
  12270. esac
  12271. ;;
  12272. vxworks*)
  12273. ;;
  12274. *)
  12275. lt_prog_compiler_can_build_shared_CXX=no
  12276. ;;
  12277. esac
  12278. fi
  12279. case $host_os in
  12280. # For platforms which do not support PIC, -DPIC is meaningless:
  12281. *djgpp*)
  12282. lt_prog_compiler_pic_CXX=
  12283. ;;
  12284. *)
  12285. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12286. ;;
  12287. esac
  12288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12289. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12290. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12291. $as_echo_n "(cached) " >&6
  12292. else
  12293. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12294. fi
  12295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12296. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12297. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12298. #
  12299. # Check to make sure the PIC flag actually works.
  12300. #
  12301. if test -n "$lt_prog_compiler_pic_CXX"; then
  12302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12303. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12304. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12305. $as_echo_n "(cached) " >&6
  12306. else
  12307. lt_cv_prog_compiler_pic_works_CXX=no
  12308. ac_outfile=conftest.$ac_objext
  12309. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12310. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12311. # Insert the option either (1) after the last *FLAGS variable, or
  12312. # (2) before a word containing "conftest.", or (3) at the end.
  12313. # Note that $ac_compile itself does not contain backslashes and begins
  12314. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12315. # The option is referenced via a variable to avoid confusing sed.
  12316. lt_compile=`echo "$ac_compile" | $SED \
  12317. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12318. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12319. -e 's:$: $lt_compiler_flag:'`
  12320. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12321. (eval "$lt_compile" 2>conftest.err)
  12322. ac_status=$?
  12323. cat conftest.err >&5
  12324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12325. if (exit $ac_status) && test -s "$ac_outfile"; then
  12326. # The compiler can only warn and ignore the option if not recognized
  12327. # So say no if there are warnings other than the usual output.
  12328. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12329. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12330. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12331. lt_cv_prog_compiler_pic_works_CXX=yes
  12332. fi
  12333. fi
  12334. $RM conftest*
  12335. fi
  12336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12337. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12338. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12339. case $lt_prog_compiler_pic_CXX in
  12340. "" | " "*) ;;
  12341. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12342. esac
  12343. else
  12344. lt_prog_compiler_pic_CXX=
  12345. lt_prog_compiler_can_build_shared_CXX=no
  12346. fi
  12347. fi
  12348. #
  12349. # Check to make sure the static flag actually works.
  12350. #
  12351. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12353. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12354. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12355. $as_echo_n "(cached) " >&6
  12356. else
  12357. lt_cv_prog_compiler_static_works_CXX=no
  12358. save_LDFLAGS="$LDFLAGS"
  12359. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12360. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12361. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12362. # The linker can only warn and ignore the option if not recognized
  12363. # So say no if there are warnings
  12364. if test -s conftest.err; then
  12365. # Append any errors to the config.log.
  12366. cat conftest.err 1>&5
  12367. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12368. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12369. if diff conftest.exp conftest.er2 >/dev/null; then
  12370. lt_cv_prog_compiler_static_works_CXX=yes
  12371. fi
  12372. else
  12373. lt_cv_prog_compiler_static_works_CXX=yes
  12374. fi
  12375. fi
  12376. $RM -r conftest*
  12377. LDFLAGS="$save_LDFLAGS"
  12378. fi
  12379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12380. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12381. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12382. :
  12383. else
  12384. lt_prog_compiler_static_CXX=
  12385. fi
  12386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12387. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12388. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12389. $as_echo_n "(cached) " >&6
  12390. else
  12391. lt_cv_prog_compiler_c_o_CXX=no
  12392. $RM -r conftest 2>/dev/null
  12393. mkdir conftest
  12394. cd conftest
  12395. mkdir out
  12396. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12397. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12398. # Insert the option either (1) after the last *FLAGS variable, or
  12399. # (2) before a word containing "conftest.", or (3) at the end.
  12400. # Note that $ac_compile itself does not contain backslashes and begins
  12401. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12402. lt_compile=`echo "$ac_compile" | $SED \
  12403. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12404. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12405. -e 's:$: $lt_compiler_flag:'`
  12406. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12407. (eval "$lt_compile" 2>out/conftest.err)
  12408. ac_status=$?
  12409. cat out/conftest.err >&5
  12410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12411. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12412. then
  12413. # The compiler can only warn and ignore the option if not recognized
  12414. # So say no if there are warnings
  12415. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12416. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12417. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12418. lt_cv_prog_compiler_c_o_CXX=yes
  12419. fi
  12420. fi
  12421. chmod u+w . 2>&5
  12422. $RM conftest*
  12423. # SGI C++ compiler will create directory out/ii_files/ for
  12424. # template instantiation
  12425. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12426. $RM out/* && rmdir out
  12427. cd ..
  12428. $RM -r conftest
  12429. $RM conftest*
  12430. fi
  12431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12432. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12434. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12435. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12436. $as_echo_n "(cached) " >&6
  12437. else
  12438. lt_cv_prog_compiler_c_o_CXX=no
  12439. $RM -r conftest 2>/dev/null
  12440. mkdir conftest
  12441. cd conftest
  12442. mkdir out
  12443. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12444. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12445. # Insert the option either (1) after the last *FLAGS variable, or
  12446. # (2) before a word containing "conftest.", or (3) at the end.
  12447. # Note that $ac_compile itself does not contain backslashes and begins
  12448. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12449. lt_compile=`echo "$ac_compile" | $SED \
  12450. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12451. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12452. -e 's:$: $lt_compiler_flag:'`
  12453. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12454. (eval "$lt_compile" 2>out/conftest.err)
  12455. ac_status=$?
  12456. cat out/conftest.err >&5
  12457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12458. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12459. then
  12460. # The compiler can only warn and ignore the option if not recognized
  12461. # So say no if there are warnings
  12462. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12463. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12464. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12465. lt_cv_prog_compiler_c_o_CXX=yes
  12466. fi
  12467. fi
  12468. chmod u+w . 2>&5
  12469. $RM conftest*
  12470. # SGI C++ compiler will create directory out/ii_files/ for
  12471. # template instantiation
  12472. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12473. $RM out/* && rmdir out
  12474. cd ..
  12475. $RM -r conftest
  12476. $RM conftest*
  12477. fi
  12478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12479. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12480. hard_links="nottested"
  12481. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12482. # do not overwrite the value of need_locks provided by the user
  12483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12484. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12485. hard_links=yes
  12486. $RM conftest*
  12487. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12488. touch conftest.a
  12489. ln conftest.a conftest.b 2>&5 || hard_links=no
  12490. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12492. $as_echo "$hard_links" >&6; }
  12493. if test "$hard_links" = no; then
  12494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12495. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12496. need_locks=warn
  12497. fi
  12498. else
  12499. need_locks=no
  12500. fi
  12501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12502. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12503. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12504. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12505. case $host_os in
  12506. aix[4-9]*)
  12507. # If we're using GNU nm, then we don't want the "-C" option.
  12508. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12509. # Also, AIX nm treats weak defined symbols like other global defined
  12510. # symbols, whereas GNU nm marks them as "W".
  12511. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12512. 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'
  12513. else
  12514. 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'
  12515. fi
  12516. ;;
  12517. pw32*)
  12518. export_symbols_cmds_CXX="$ltdll_cmds"
  12519. ;;
  12520. cygwin* | mingw* | cegcc*)
  12521. case $cc_basename in
  12522. cl*)
  12523. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12524. ;;
  12525. *)
  12526. 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'
  12527. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12528. ;;
  12529. esac
  12530. ;;
  12531. *)
  12532. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12533. ;;
  12534. esac
  12535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12536. $as_echo "$ld_shlibs_CXX" >&6; }
  12537. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12538. with_gnu_ld_CXX=$with_gnu_ld
  12539. #
  12540. # Do we need to explicitly link libc?
  12541. #
  12542. case "x$archive_cmds_need_lc_CXX" in
  12543. x|xyes)
  12544. # Assume -lc should be added
  12545. archive_cmds_need_lc_CXX=yes
  12546. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12547. case $archive_cmds_CXX in
  12548. *'~'*)
  12549. # FIXME: we may have to deal with multi-command sequences.
  12550. ;;
  12551. '$CC '*)
  12552. # Test whether the compiler implicitly links with -lc since on some
  12553. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12554. # to ld, don't add -lc before -lgcc.
  12555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12556. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12557. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12558. $as_echo_n "(cached) " >&6
  12559. else
  12560. $RM conftest*
  12561. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12562. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12563. (eval $ac_compile) 2>&5
  12564. ac_status=$?
  12565. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12566. test $ac_status = 0; } 2>conftest.err; then
  12567. soname=conftest
  12568. lib=conftest
  12569. libobjs=conftest.$ac_objext
  12570. deplibs=
  12571. wl=$lt_prog_compiler_wl_CXX
  12572. pic_flag=$lt_prog_compiler_pic_CXX
  12573. compiler_flags=-v
  12574. linker_flags=-v
  12575. verstring=
  12576. output_objdir=.
  12577. libname=conftest
  12578. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12579. allow_undefined_flag_CXX=
  12580. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12581. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12582. ac_status=$?
  12583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12584. test $ac_status = 0; }
  12585. then
  12586. lt_cv_archive_cmds_need_lc_CXX=no
  12587. else
  12588. lt_cv_archive_cmds_need_lc_CXX=yes
  12589. fi
  12590. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12591. else
  12592. cat conftest.err 1>&5
  12593. fi
  12594. $RM conftest*
  12595. fi
  12596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12597. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12598. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12599. ;;
  12600. esac
  12601. fi
  12602. ;;
  12603. esac
  12604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12605. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12606. library_names_spec=
  12607. libname_spec='lib$name'
  12608. soname_spec=
  12609. shrext_cmds=".so"
  12610. postinstall_cmds=
  12611. postuninstall_cmds=
  12612. finish_cmds=
  12613. finish_eval=
  12614. shlibpath_var=
  12615. shlibpath_overrides_runpath=unknown
  12616. version_type=none
  12617. dynamic_linker="$host_os ld.so"
  12618. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12619. need_lib_prefix=unknown
  12620. hardcode_into_libs=no
  12621. # when you set need_version to no, make sure it does not cause -set_version
  12622. # flags to be left without arguments
  12623. need_version=unknown
  12624. case $host_os in
  12625. aix3*)
  12626. version_type=linux # correct to gnu/linux during the next big refactor
  12627. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12628. shlibpath_var=LIBPATH
  12629. # AIX 3 has no versioning support, so we append a major version to the name.
  12630. soname_spec='${libname}${release}${shared_ext}$major'
  12631. ;;
  12632. aix[4-9]*)
  12633. version_type=linux # correct to gnu/linux during the next big refactor
  12634. need_lib_prefix=no
  12635. need_version=no
  12636. hardcode_into_libs=yes
  12637. if test "$host_cpu" = ia64; then
  12638. # AIX 5 supports IA64
  12639. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12640. shlibpath_var=LD_LIBRARY_PATH
  12641. else
  12642. # With GCC up to 2.95.x, collect2 would create an import file
  12643. # for dependence libraries. The import file would start with
  12644. # the line `#! .'. This would cause the generated library to
  12645. # depend on `.', always an invalid library. This was fixed in
  12646. # development snapshots of GCC prior to 3.0.
  12647. case $host_os in
  12648. aix4 | aix4.[01] | aix4.[01].*)
  12649. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12650. echo ' yes '
  12651. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12652. :
  12653. else
  12654. can_build_shared=no
  12655. fi
  12656. ;;
  12657. esac
  12658. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12659. # soname into executable. Probably we can add versioning support to
  12660. # collect2, so additional links can be useful in future.
  12661. if test "$aix_use_runtimelinking" = yes; then
  12662. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12663. # instead of lib<name>.a to let people know that these are not
  12664. # typical AIX shared libraries.
  12665. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12666. else
  12667. # We preserve .a as extension for shared libraries through AIX4.2
  12668. # and later when we are not doing run time linking.
  12669. library_names_spec='${libname}${release}.a $libname.a'
  12670. soname_spec='${libname}${release}${shared_ext}$major'
  12671. fi
  12672. shlibpath_var=LIBPATH
  12673. fi
  12674. ;;
  12675. amigaos*)
  12676. case $host_cpu in
  12677. powerpc)
  12678. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12679. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12680. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12681. ;;
  12682. m68k)
  12683. library_names_spec='$libname.ixlibrary $libname.a'
  12684. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12685. 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'
  12686. ;;
  12687. esac
  12688. ;;
  12689. beos*)
  12690. library_names_spec='${libname}${shared_ext}'
  12691. dynamic_linker="$host_os ld.so"
  12692. shlibpath_var=LIBRARY_PATH
  12693. ;;
  12694. bsdi[45]*)
  12695. version_type=linux # correct to gnu/linux during the next big refactor
  12696. need_version=no
  12697. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12698. soname_spec='${libname}${release}${shared_ext}$major'
  12699. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12700. shlibpath_var=LD_LIBRARY_PATH
  12701. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12702. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12703. # the default ld.so.conf also contains /usr/contrib/lib and
  12704. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12705. # libtool to hard-code these into programs
  12706. ;;
  12707. cygwin* | mingw* | pw32* | cegcc*)
  12708. version_type=windows
  12709. shrext_cmds=".dll"
  12710. need_version=no
  12711. need_lib_prefix=no
  12712. case $GCC,$cc_basename in
  12713. yes,*)
  12714. # gcc
  12715. library_names_spec='$libname.dll.a'
  12716. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12717. postinstall_cmds='base_file=`basename \${file}`~
  12718. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12719. dldir=$destdir/`dirname \$dlpath`~
  12720. test -d \$dldir || mkdir -p \$dldir~
  12721. $install_prog $dir/$dlname \$dldir/$dlname~
  12722. chmod a+x \$dldir/$dlname~
  12723. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12724. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12725. fi'
  12726. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12727. dlpath=$dir/\$dldll~
  12728. $RM \$dlpath'
  12729. shlibpath_overrides_runpath=yes
  12730. case $host_os in
  12731. cygwin*)
  12732. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12733. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12734. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12735. ;;
  12736. mingw* | cegcc*)
  12737. # MinGW DLLs use traditional 'lib' prefix
  12738. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12739. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12740. ;;
  12741. pw32*)
  12742. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12743. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12744. ;;
  12745. esac
  12746. dynamic_linker='Win32 ld.exe'
  12747. ;;
  12748. *,cl*)
  12749. # Native MSVC
  12750. libname_spec='$name'
  12751. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12752. library_names_spec='${libname}.dll.lib'
  12753. case $build_os in
  12754. mingw*)
  12755. sys_lib_search_path_spec=
  12756. lt_save_ifs=$IFS
  12757. IFS=';'
  12758. for lt_path in $LIB
  12759. do
  12760. IFS=$lt_save_ifs
  12761. # Let DOS variable expansion print the short 8.3 style file name.
  12762. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12763. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12764. done
  12765. IFS=$lt_save_ifs
  12766. # Convert to MSYS style.
  12767. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12768. ;;
  12769. cygwin*)
  12770. # Convert to unix form, then to dos form, then back to unix form
  12771. # but this time dos style (no spaces!) so that the unix form looks
  12772. # like /cygdrive/c/PROGRA~1:/cygdr...
  12773. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12774. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12775. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12776. ;;
  12777. *)
  12778. sys_lib_search_path_spec="$LIB"
  12779. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12780. # It is most probably a Windows format PATH.
  12781. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12782. else
  12783. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12784. fi
  12785. # FIXME: find the short name or the path components, as spaces are
  12786. # common. (e.g. "Program Files" -> "PROGRA~1")
  12787. ;;
  12788. esac
  12789. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12790. postinstall_cmds='base_file=`basename \${file}`~
  12791. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12792. dldir=$destdir/`dirname \$dlpath`~
  12793. test -d \$dldir || mkdir -p \$dldir~
  12794. $install_prog $dir/$dlname \$dldir/$dlname'
  12795. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12796. dlpath=$dir/\$dldll~
  12797. $RM \$dlpath'
  12798. shlibpath_overrides_runpath=yes
  12799. dynamic_linker='Win32 link.exe'
  12800. ;;
  12801. *)
  12802. # Assume MSVC wrapper
  12803. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12804. dynamic_linker='Win32 ld.exe'
  12805. ;;
  12806. esac
  12807. # FIXME: first we should search . and the directory the executable is in
  12808. shlibpath_var=PATH
  12809. ;;
  12810. darwin* | rhapsody*)
  12811. dynamic_linker="$host_os dyld"
  12812. version_type=darwin
  12813. need_lib_prefix=no
  12814. need_version=no
  12815. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12816. soname_spec='${libname}${release}${major}$shared_ext'
  12817. shlibpath_overrides_runpath=yes
  12818. shlibpath_var=DYLD_LIBRARY_PATH
  12819. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12820. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12821. ;;
  12822. dgux*)
  12823. version_type=linux # correct to gnu/linux during the next big refactor
  12824. need_lib_prefix=no
  12825. need_version=no
  12826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12827. soname_spec='${libname}${release}${shared_ext}$major'
  12828. shlibpath_var=LD_LIBRARY_PATH
  12829. ;;
  12830. freebsd* | dragonfly*)
  12831. # DragonFly does not have aout. When/if they implement a new
  12832. # versioning mechanism, adjust this.
  12833. if test -x /usr/bin/objformat; then
  12834. objformat=`/usr/bin/objformat`
  12835. else
  12836. case $host_os in
  12837. freebsd[23].*) objformat=aout ;;
  12838. *) objformat=elf ;;
  12839. esac
  12840. fi
  12841. version_type=freebsd-$objformat
  12842. case $version_type in
  12843. freebsd-elf*)
  12844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12845. need_version=no
  12846. need_lib_prefix=no
  12847. ;;
  12848. freebsd-*)
  12849. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12850. need_version=yes
  12851. ;;
  12852. esac
  12853. shlibpath_var=LD_LIBRARY_PATH
  12854. case $host_os in
  12855. freebsd2.*)
  12856. shlibpath_overrides_runpath=yes
  12857. ;;
  12858. freebsd3.[01]* | freebsdelf3.[01]*)
  12859. shlibpath_overrides_runpath=yes
  12860. hardcode_into_libs=yes
  12861. ;;
  12862. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12863. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12864. shlibpath_overrides_runpath=no
  12865. hardcode_into_libs=yes
  12866. ;;
  12867. *) # from 4.6 on, and DragonFly
  12868. shlibpath_overrides_runpath=yes
  12869. hardcode_into_libs=yes
  12870. ;;
  12871. esac
  12872. ;;
  12873. gnu*)
  12874. version_type=linux # correct to gnu/linux during the next big refactor
  12875. need_lib_prefix=no
  12876. need_version=no
  12877. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12878. soname_spec='${libname}${release}${shared_ext}$major'
  12879. shlibpath_var=LD_LIBRARY_PATH
  12880. shlibpath_overrides_runpath=no
  12881. hardcode_into_libs=yes
  12882. ;;
  12883. haiku*)
  12884. version_type=linux # correct to gnu/linux during the next big refactor
  12885. need_lib_prefix=no
  12886. need_version=no
  12887. dynamic_linker="$host_os runtime_loader"
  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=LIBRARY_PATH
  12891. shlibpath_overrides_runpath=yes
  12892. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12893. hardcode_into_libs=yes
  12894. ;;
  12895. hpux9* | hpux10* | hpux11*)
  12896. # Give a soname corresponding to the major version so that dld.sl refuses to
  12897. # link against other versions.
  12898. version_type=sunos
  12899. need_lib_prefix=no
  12900. need_version=no
  12901. case $host_cpu in
  12902. ia64*)
  12903. shrext_cmds='.so'
  12904. hardcode_into_libs=yes
  12905. dynamic_linker="$host_os dld.so"
  12906. shlibpath_var=LD_LIBRARY_PATH
  12907. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12909. soname_spec='${libname}${release}${shared_ext}$major'
  12910. if test "X$HPUX_IA64_MODE" = X32; then
  12911. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12912. else
  12913. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12914. fi
  12915. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12916. ;;
  12917. hppa*64*)
  12918. shrext_cmds='.sl'
  12919. hardcode_into_libs=yes
  12920. dynamic_linker="$host_os dld.sl"
  12921. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12922. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12923. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12924. soname_spec='${libname}${release}${shared_ext}$major'
  12925. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12926. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12927. ;;
  12928. *)
  12929. shrext_cmds='.sl'
  12930. dynamic_linker="$host_os dld.sl"
  12931. shlibpath_var=SHLIB_PATH
  12932. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12934. soname_spec='${libname}${release}${shared_ext}$major'
  12935. ;;
  12936. esac
  12937. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12938. postinstall_cmds='chmod 555 $lib'
  12939. # or fails outright, so override atomically:
  12940. install_override_mode=555
  12941. ;;
  12942. interix[3-9]*)
  12943. version_type=linux # correct to gnu/linux during the next big refactor
  12944. need_lib_prefix=no
  12945. need_version=no
  12946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12947. soname_spec='${libname}${release}${shared_ext}$major'
  12948. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12949. shlibpath_var=LD_LIBRARY_PATH
  12950. shlibpath_overrides_runpath=no
  12951. hardcode_into_libs=yes
  12952. ;;
  12953. irix5* | irix6* | nonstopux*)
  12954. case $host_os in
  12955. nonstopux*) version_type=nonstopux ;;
  12956. *)
  12957. if test "$lt_cv_prog_gnu_ld" = yes; then
  12958. version_type=linux # correct to gnu/linux during the next big refactor
  12959. else
  12960. version_type=irix
  12961. fi ;;
  12962. esac
  12963. need_lib_prefix=no
  12964. need_version=no
  12965. soname_spec='${libname}${release}${shared_ext}$major'
  12966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12967. case $host_os in
  12968. irix5* | nonstopux*)
  12969. libsuff= shlibsuff=
  12970. ;;
  12971. *)
  12972. case $LD in # libtool.m4 will add one of these switches to LD
  12973. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12974. libsuff= shlibsuff= libmagic=32-bit;;
  12975. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12976. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12977. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12978. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12979. *) libsuff= shlibsuff= libmagic=never-match;;
  12980. esac
  12981. ;;
  12982. esac
  12983. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12984. shlibpath_overrides_runpath=no
  12985. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12986. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12987. hardcode_into_libs=yes
  12988. ;;
  12989. # No shared lib support for Linux oldld, aout, or coff.
  12990. linux*oldld* | linux*aout* | linux*coff*)
  12991. dynamic_linker=no
  12992. ;;
  12993. # This must be glibc/ELF.
  12994. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12995. version_type=linux # correct to gnu/linux during the next big refactor
  12996. need_lib_prefix=no
  12997. need_version=no
  12998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12999. soname_spec='${libname}${release}${shared_ext}$major'
  13000. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13001. shlibpath_var=LD_LIBRARY_PATH
  13002. shlibpath_overrides_runpath=no
  13003. # Some binutils ld are patched to set DT_RUNPATH
  13004. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13005. $as_echo_n "(cached) " >&6
  13006. else
  13007. lt_cv_shlibpath_overrides_runpath=no
  13008. save_LDFLAGS=$LDFLAGS
  13009. save_libdir=$libdir
  13010. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13011. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13013. /* end confdefs.h. */
  13014. int
  13015. main ()
  13016. {
  13017. ;
  13018. return 0;
  13019. }
  13020. _ACEOF
  13021. if ac_fn_cxx_try_link "$LINENO"; then :
  13022. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13023. lt_cv_shlibpath_overrides_runpath=yes
  13024. fi
  13025. fi
  13026. rm -f core conftest.err conftest.$ac_objext \
  13027. conftest$ac_exeext conftest.$ac_ext
  13028. LDFLAGS=$save_LDFLAGS
  13029. libdir=$save_libdir
  13030. fi
  13031. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13032. # This implies no fast_install, which is unacceptable.
  13033. # Some rework will be needed to allow for fast_install
  13034. # before this can be enabled.
  13035. hardcode_into_libs=yes
  13036. # Append ld.so.conf contents to the search path
  13037. if test -f /etc/ld.so.conf; then
  13038. 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' ' '`
  13039. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13040. fi
  13041. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13042. # powerpc, because MkLinux only supported shared libraries with the
  13043. # GNU dynamic linker. Since this was broken with cross compilers,
  13044. # most powerpc-linux boxes support dynamic linking these days and
  13045. # people can always --disable-shared, the test was removed, and we
  13046. # assume the GNU/Linux dynamic linker is in use.
  13047. dynamic_linker='GNU/Linux ld.so'
  13048. ;;
  13049. netbsd*)
  13050. version_type=sunos
  13051. need_lib_prefix=no
  13052. need_version=no
  13053. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13054. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13055. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13056. dynamic_linker='NetBSD (a.out) ld.so'
  13057. else
  13058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13059. soname_spec='${libname}${release}${shared_ext}$major'
  13060. dynamic_linker='NetBSD ld.elf_so'
  13061. fi
  13062. shlibpath_var=LD_LIBRARY_PATH
  13063. shlibpath_overrides_runpath=yes
  13064. hardcode_into_libs=yes
  13065. ;;
  13066. newsos6)
  13067. version_type=linux # correct to gnu/linux during the next big refactor
  13068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13069. shlibpath_var=LD_LIBRARY_PATH
  13070. shlibpath_overrides_runpath=yes
  13071. ;;
  13072. *nto* | *qnx*)
  13073. version_type=qnx
  13074. need_lib_prefix=no
  13075. need_version=no
  13076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13077. soname_spec='${libname}${release}${shared_ext}$major'
  13078. shlibpath_var=LD_LIBRARY_PATH
  13079. shlibpath_overrides_runpath=no
  13080. hardcode_into_libs=yes
  13081. dynamic_linker='ldqnx.so'
  13082. ;;
  13083. openbsd*)
  13084. version_type=sunos
  13085. sys_lib_dlsearch_path_spec="/usr/lib"
  13086. need_lib_prefix=no
  13087. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13088. case $host_os in
  13089. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13090. *) need_version=no ;;
  13091. esac
  13092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13093. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13094. shlibpath_var=LD_LIBRARY_PATH
  13095. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13096. case $host_os in
  13097. openbsd2.[89] | openbsd2.[89].*)
  13098. shlibpath_overrides_runpath=no
  13099. ;;
  13100. *)
  13101. shlibpath_overrides_runpath=yes
  13102. ;;
  13103. esac
  13104. else
  13105. shlibpath_overrides_runpath=yes
  13106. fi
  13107. ;;
  13108. os2*)
  13109. libname_spec='$name'
  13110. shrext_cmds=".dll"
  13111. need_lib_prefix=no
  13112. library_names_spec='$libname${shared_ext} $libname.a'
  13113. dynamic_linker='OS/2 ld.exe'
  13114. shlibpath_var=LIBPATH
  13115. ;;
  13116. osf3* | osf4* | osf5*)
  13117. version_type=osf
  13118. need_lib_prefix=no
  13119. need_version=no
  13120. soname_spec='${libname}${release}${shared_ext}$major'
  13121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13122. shlibpath_var=LD_LIBRARY_PATH
  13123. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13124. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13125. ;;
  13126. rdos*)
  13127. dynamic_linker=no
  13128. ;;
  13129. solaris*)
  13130. version_type=linux # correct to gnu/linux during the next big refactor
  13131. need_lib_prefix=no
  13132. need_version=no
  13133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13134. soname_spec='${libname}${release}${shared_ext}$major'
  13135. shlibpath_var=LD_LIBRARY_PATH
  13136. shlibpath_overrides_runpath=yes
  13137. hardcode_into_libs=yes
  13138. # ldd complains unless libraries are executable
  13139. postinstall_cmds='chmod +x $lib'
  13140. ;;
  13141. sunos4*)
  13142. version_type=sunos
  13143. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13144. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13145. shlibpath_var=LD_LIBRARY_PATH
  13146. shlibpath_overrides_runpath=yes
  13147. if test "$with_gnu_ld" = yes; then
  13148. need_lib_prefix=no
  13149. fi
  13150. need_version=yes
  13151. ;;
  13152. sysv4 | sysv4.3*)
  13153. version_type=linux # correct to gnu/linux during the next big refactor
  13154. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13155. soname_spec='${libname}${release}${shared_ext}$major'
  13156. shlibpath_var=LD_LIBRARY_PATH
  13157. case $host_vendor in
  13158. sni)
  13159. shlibpath_overrides_runpath=no
  13160. need_lib_prefix=no
  13161. runpath_var=LD_RUN_PATH
  13162. ;;
  13163. siemens)
  13164. need_lib_prefix=no
  13165. ;;
  13166. motorola)
  13167. need_lib_prefix=no
  13168. need_version=no
  13169. shlibpath_overrides_runpath=no
  13170. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13171. ;;
  13172. esac
  13173. ;;
  13174. sysv4*MP*)
  13175. if test -d /usr/nec ;then
  13176. version_type=linux # correct to gnu/linux during the next big refactor
  13177. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13178. soname_spec='$libname${shared_ext}.$major'
  13179. shlibpath_var=LD_LIBRARY_PATH
  13180. fi
  13181. ;;
  13182. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13183. version_type=freebsd-elf
  13184. need_lib_prefix=no
  13185. need_version=no
  13186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13187. soname_spec='${libname}${release}${shared_ext}$major'
  13188. shlibpath_var=LD_LIBRARY_PATH
  13189. shlibpath_overrides_runpath=yes
  13190. hardcode_into_libs=yes
  13191. if test "$with_gnu_ld" = yes; then
  13192. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13193. else
  13194. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13195. case $host_os in
  13196. sco3.2v5*)
  13197. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13198. ;;
  13199. esac
  13200. fi
  13201. sys_lib_dlsearch_path_spec='/usr/lib'
  13202. ;;
  13203. tpf*)
  13204. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13205. version_type=linux # correct to gnu/linux during the next big refactor
  13206. need_lib_prefix=no
  13207. need_version=no
  13208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13209. shlibpath_var=LD_LIBRARY_PATH
  13210. shlibpath_overrides_runpath=no
  13211. hardcode_into_libs=yes
  13212. ;;
  13213. uts4*)
  13214. version_type=linux # correct to gnu/linux during the next big refactor
  13215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13216. soname_spec='${libname}${release}${shared_ext}$major'
  13217. shlibpath_var=LD_LIBRARY_PATH
  13218. ;;
  13219. *)
  13220. dynamic_linker=no
  13221. ;;
  13222. esac
  13223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13224. $as_echo "$dynamic_linker" >&6; }
  13225. test "$dynamic_linker" = no && can_build_shared=no
  13226. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13227. if test "$GCC" = yes; then
  13228. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13229. fi
  13230. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13231. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13232. fi
  13233. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13234. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13235. fi
  13236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13237. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13238. hardcode_action_CXX=
  13239. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13240. test -n "$runpath_var_CXX" ||
  13241. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13242. # We can hardcode non-existent directories.
  13243. if test "$hardcode_direct_CXX" != no &&
  13244. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13245. # have to relink, otherwise we might link with an installed library
  13246. # when we should be linking with a yet-to-be-installed one
  13247. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13248. test "$hardcode_minus_L_CXX" != no; then
  13249. # Linking always hardcodes the temporary library directory.
  13250. hardcode_action_CXX=relink
  13251. else
  13252. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13253. hardcode_action_CXX=immediate
  13254. fi
  13255. else
  13256. # We cannot hardcode anything, or else we can only hardcode existing
  13257. # directories.
  13258. hardcode_action_CXX=unsupported
  13259. fi
  13260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13261. $as_echo "$hardcode_action_CXX" >&6; }
  13262. if test "$hardcode_action_CXX" = relink ||
  13263. test "$inherit_rpath_CXX" = yes; then
  13264. # Fast installation is not supported
  13265. enable_fast_install=no
  13266. elif test "$shlibpath_overrides_runpath" = yes ||
  13267. test "$enable_shared" = no; then
  13268. # Fast installation is not necessary
  13269. enable_fast_install=needless
  13270. fi
  13271. fi # test -n "$compiler"
  13272. CC=$lt_save_CC
  13273. CFLAGS=$lt_save_CFLAGS
  13274. LDCXX=$LD
  13275. LD=$lt_save_LD
  13276. GCC=$lt_save_GCC
  13277. with_gnu_ld=$lt_save_with_gnu_ld
  13278. lt_cv_path_LDCXX=$lt_cv_path_LD
  13279. lt_cv_path_LD=$lt_save_path_LD
  13280. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13281. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13282. fi # test "$_lt_caught_CXX_error" != yes
  13283. ac_ext=c
  13284. ac_cpp='$CPP $CPPFLAGS'
  13285. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13286. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13287. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13288. # Find a good install program. We prefer a C program (faster),
  13289. # so one script is as good as another. But avoid the broken or
  13290. # incompatible versions:
  13291. # SysV /etc/install, /usr/sbin/install
  13292. # SunOS /usr/etc/install
  13293. # IRIX /sbin/install
  13294. # AIX /bin/install
  13295. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13296. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13297. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13298. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13299. # OS/2's system install, which has a completely different semantic
  13300. # ./install, which can be erroneously created by make from ./install.sh.
  13301. # Reject install programs that cannot install multiple files.
  13302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13303. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13304. if test -z "$INSTALL"; then
  13305. if ${ac_cv_path_install+:} false; then :
  13306. $as_echo_n "(cached) " >&6
  13307. else
  13308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13309. for as_dir in $PATH
  13310. do
  13311. IFS=$as_save_IFS
  13312. test -z "$as_dir" && as_dir=.
  13313. # Account for people who put trailing slashes in PATH elements.
  13314. case $as_dir/ in #((
  13315. ./ | .// | /[cC]/* | \
  13316. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13317. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13318. /usr/ucb/* ) ;;
  13319. *)
  13320. # OSF1 and SCO ODT 3.0 have their own names for install.
  13321. # Don't use installbsd from OSF since it installs stuff as root
  13322. # by default.
  13323. for ac_prog in ginstall scoinst install; do
  13324. for ac_exec_ext in '' $ac_executable_extensions; do
  13325. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13326. if test $ac_prog = install &&
  13327. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13328. # AIX install. It has an incompatible calling convention.
  13329. :
  13330. elif test $ac_prog = install &&
  13331. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13332. # program-specific install script used by HP pwplus--don't use.
  13333. :
  13334. else
  13335. rm -rf conftest.one conftest.two conftest.dir
  13336. echo one > conftest.one
  13337. echo two > conftest.two
  13338. mkdir conftest.dir
  13339. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13340. test -s conftest.one && test -s conftest.two &&
  13341. test -s conftest.dir/conftest.one &&
  13342. test -s conftest.dir/conftest.two
  13343. then
  13344. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13345. break 3
  13346. fi
  13347. fi
  13348. fi
  13349. done
  13350. done
  13351. ;;
  13352. esac
  13353. done
  13354. IFS=$as_save_IFS
  13355. rm -rf conftest.one conftest.two conftest.dir
  13356. fi
  13357. if test "${ac_cv_path_install+set}" = set; then
  13358. INSTALL=$ac_cv_path_install
  13359. else
  13360. # As a last resort, use the slow shell script. Don't cache a
  13361. # value for INSTALL within a source directory, because that will
  13362. # break other packages using the cache if that directory is
  13363. # removed, or if the value is a relative name.
  13364. INSTALL=$ac_install_sh
  13365. fi
  13366. fi
  13367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13368. $as_echo "$INSTALL" >&6; }
  13369. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13370. # It thinks the first close brace ends the variable substitution.
  13371. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13372. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13373. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13375. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13376. set x ${MAKE-make}
  13377. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13378. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13379. $as_echo_n "(cached) " >&6
  13380. else
  13381. cat >conftest.make <<\_ACEOF
  13382. SHELL = /bin/sh
  13383. all:
  13384. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13385. _ACEOF
  13386. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13387. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13388. *@@@%%%=?*=@@@%%%*)
  13389. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13390. *)
  13391. eval ac_cv_prog_make_${ac_make}_set=no;;
  13392. esac
  13393. rm -f conftest.make
  13394. fi
  13395. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13397. $as_echo "yes" >&6; }
  13398. SET_MAKE=
  13399. else
  13400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13401. $as_echo "no" >&6; }
  13402. SET_MAKE="MAKE=${MAKE-make}"
  13403. fi
  13404. if test -n "$ac_tool_prefix"; then
  13405. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13406. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13408. $as_echo_n "checking for $ac_word... " >&6; }
  13409. if ${ac_cv_prog_WINDRES+:} false; then :
  13410. $as_echo_n "(cached) " >&6
  13411. else
  13412. if test -n "$WINDRES"; then
  13413. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13414. else
  13415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13416. for as_dir in $PATH
  13417. do
  13418. IFS=$as_save_IFS
  13419. test -z "$as_dir" && as_dir=.
  13420. for ac_exec_ext in '' $ac_executable_extensions; do
  13421. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13422. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13423. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13424. break 2
  13425. fi
  13426. done
  13427. done
  13428. IFS=$as_save_IFS
  13429. fi
  13430. fi
  13431. WINDRES=$ac_cv_prog_WINDRES
  13432. if test -n "$WINDRES"; then
  13433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13434. $as_echo "$WINDRES" >&6; }
  13435. else
  13436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13437. $as_echo "no" >&6; }
  13438. fi
  13439. fi
  13440. if test -z "$ac_cv_prog_WINDRES"; then
  13441. ac_ct_WINDRES=$WINDRES
  13442. # Extract the first word of "windres", so it can be a program name with args.
  13443. set dummy windres; ac_word=$2
  13444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13445. $as_echo_n "checking for $ac_word... " >&6; }
  13446. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13447. $as_echo_n "(cached) " >&6
  13448. else
  13449. if test -n "$ac_ct_WINDRES"; then
  13450. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13451. else
  13452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13453. for as_dir in $PATH
  13454. do
  13455. IFS=$as_save_IFS
  13456. test -z "$as_dir" && as_dir=.
  13457. for ac_exec_ext in '' $ac_executable_extensions; do
  13458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13459. ac_cv_prog_ac_ct_WINDRES="windres"
  13460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13461. break 2
  13462. fi
  13463. done
  13464. done
  13465. IFS=$as_save_IFS
  13466. fi
  13467. fi
  13468. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13469. if test -n "$ac_ct_WINDRES"; then
  13470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13471. $as_echo "$ac_ct_WINDRES" >&6; }
  13472. else
  13473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13474. $as_echo "no" >&6; }
  13475. fi
  13476. if test "x$ac_ct_WINDRES" = x; then
  13477. WINDRES=":"
  13478. else
  13479. case $cross_compiling:$ac_tool_warned in
  13480. yes:)
  13481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13482. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13483. ac_tool_warned=yes ;;
  13484. esac
  13485. WINDRES=$ac_ct_WINDRES
  13486. fi
  13487. else
  13488. WINDRES="$ac_cv_prog_WINDRES"
  13489. fi
  13490. case "$host" in
  13491. *-*-mingw32*)
  13492. # Except on msys, where make can't handle full pathnames (bug 1972)
  13493. ;;
  13494. *)
  13495. srcdir=`cd $srcdir && pwd`
  13496. ;;
  13497. esac
  13498. INCLUDE="-I$srcdir/include"
  13499. if test x$srcdir != x.; then
  13500. INCLUDE="-Iinclude $INCLUDE"
  13501. elif test -d .hg; then
  13502. as_fn_error $? "
  13503. *** When building from Mercurial you should configure and build in a
  13504. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13505. " "$LINENO" 5
  13506. fi
  13507. BASE_CFLAGS=""
  13508. BASE_LDFLAGS=""
  13509. case "$host" in
  13510. *-*-cygwin*)
  13511. # We build SDL on cygwin without the UNIX emulation layer
  13512. save_CFLAGS="$CFLAGS"
  13513. have_no_cygwin=no
  13514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13515. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13516. CFLAGS="$save_CFLAGS -mno-cygwin"
  13517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13518. /* end confdefs.h. */
  13519. int
  13520. main ()
  13521. {
  13522. ;
  13523. return 0;
  13524. }
  13525. _ACEOF
  13526. if ac_fn_c_try_compile "$LINENO"; then :
  13527. have_no_cygwin=yes
  13528. fi
  13529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13531. $as_echo "$have_no_cygwin" >&6; }
  13532. CFLAGS="$save_CFLAGS"
  13533. if test x$have_no_cygwin = xyes; then
  13534. BASE_CFLAGS="-mno-cygwin"
  13535. BASE_LDFLAGS="-mno-cygwin"
  13536. fi
  13537. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13538. ;;
  13539. esac
  13540. # Uncomment the following line if you want to force SDL and applications
  13541. # built with it to be compiled for a particular architecture.
  13542. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13543. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13544. # The default optimization for SDL is -O3 (Bug #31)
  13545. if test "x$orig_CFLAGS" = x; then
  13546. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13547. fi
  13548. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13549. BUILD_LDFLAGS="$LDFLAGS"
  13550. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13551. ## These are common directories to find software packages
  13552. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13553. # if test -d $path/include; then
  13554. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13555. # fi
  13556. # if test -d $path/lib; then
  13557. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13558. # fi
  13559. #done
  13560. SDL_CFLAGS="$BASE_CFLAGS"
  13561. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13562. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13563. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13564. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13565. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13566. find_lib()
  13567. {
  13568. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13569. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13570. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13571. if test "$cross_compiling" = yes; then
  13572. host_lib_path=""
  13573. else
  13574. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13575. fi
  13576. for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
  13577. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13578. if test x$lib != x; then
  13579. echo $lib
  13580. return
  13581. fi
  13582. done
  13583. }
  13584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13585. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13586. if ${ac_cv_c_const+:} false; then :
  13587. $as_echo_n "(cached) " >&6
  13588. else
  13589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13590. /* end confdefs.h. */
  13591. int
  13592. main ()
  13593. {
  13594. #ifndef __cplusplus
  13595. /* Ultrix mips cc rejects this sort of thing. */
  13596. typedef int charset[2];
  13597. const charset cs = { 0, 0 };
  13598. /* SunOS 4.1.1 cc rejects this. */
  13599. char const *const *pcpcc;
  13600. char **ppc;
  13601. /* NEC SVR4.0.2 mips cc rejects this. */
  13602. struct point {int x, y;};
  13603. static struct point const zero = {0,0};
  13604. /* AIX XL C 1.02.0.0 rejects this.
  13605. It does not let you subtract one const X* pointer from another in
  13606. an arm of an if-expression whose if-part is not a constant
  13607. expression */
  13608. const char *g = "string";
  13609. pcpcc = &g + (g ? g-g : 0);
  13610. /* HPUX 7.0 cc rejects these. */
  13611. ++pcpcc;
  13612. ppc = (char**) pcpcc;
  13613. pcpcc = (char const *const *) ppc;
  13614. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13615. char tx;
  13616. char *t = &tx;
  13617. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13618. *t++ = 0;
  13619. if (s) return 0;
  13620. }
  13621. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13622. int x[] = {25, 17};
  13623. const int *foo = &x[0];
  13624. ++foo;
  13625. }
  13626. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13627. typedef const int *iptr;
  13628. iptr p = 0;
  13629. ++p;
  13630. }
  13631. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13632. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13633. struct s { int j; const int *ap[3]; } bx;
  13634. struct s *b = &bx; b->j = 5;
  13635. }
  13636. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13637. const int foo = 10;
  13638. if (!foo) return 0;
  13639. }
  13640. return !cs[0] && !zero.x;
  13641. #endif
  13642. ;
  13643. return 0;
  13644. }
  13645. _ACEOF
  13646. if ac_fn_c_try_compile "$LINENO"; then :
  13647. ac_cv_c_const=yes
  13648. else
  13649. ac_cv_c_const=no
  13650. fi
  13651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13652. fi
  13653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13654. $as_echo "$ac_cv_c_const" >&6; }
  13655. if test $ac_cv_c_const = no; then
  13656. $as_echo "#define const /**/" >>confdefs.h
  13657. fi
  13658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13659. $as_echo_n "checking for inline... " >&6; }
  13660. if ${ac_cv_c_inline+:} false; then :
  13661. $as_echo_n "(cached) " >&6
  13662. else
  13663. ac_cv_c_inline=no
  13664. for ac_kw in inline __inline__ __inline; do
  13665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13666. /* end confdefs.h. */
  13667. #ifndef __cplusplus
  13668. typedef int foo_t;
  13669. static $ac_kw foo_t static_foo () {return 0; }
  13670. $ac_kw foo_t foo () {return 0; }
  13671. #endif
  13672. _ACEOF
  13673. if ac_fn_c_try_compile "$LINENO"; then :
  13674. ac_cv_c_inline=$ac_kw
  13675. fi
  13676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13677. test "$ac_cv_c_inline" != no && break
  13678. done
  13679. fi
  13680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13681. $as_echo "$ac_cv_c_inline" >&6; }
  13682. case $ac_cv_c_inline in
  13683. inline | yes) ;;
  13684. *)
  13685. case $ac_cv_c_inline in
  13686. no) ac_val=;;
  13687. *) ac_val=$ac_cv_c_inline;;
  13688. esac
  13689. cat >>confdefs.h <<_ACEOF
  13690. #ifndef __cplusplus
  13691. #define inline $ac_val
  13692. #endif
  13693. _ACEOF
  13694. ;;
  13695. esac
  13696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13697. $as_echo_n "checking for working volatile... " >&6; }
  13698. if ${ac_cv_c_volatile+:} false; then :
  13699. $as_echo_n "(cached) " >&6
  13700. else
  13701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13702. /* end confdefs.h. */
  13703. int
  13704. main ()
  13705. {
  13706. volatile int x;
  13707. int * volatile y = (int *) 0;
  13708. return !x && !y;
  13709. ;
  13710. return 0;
  13711. }
  13712. _ACEOF
  13713. if ac_fn_c_try_compile "$LINENO"; then :
  13714. ac_cv_c_volatile=yes
  13715. else
  13716. ac_cv_c_volatile=no
  13717. fi
  13718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13719. fi
  13720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13721. $as_echo "$ac_cv_c_volatile" >&6; }
  13722. if test $ac_cv_c_volatile = no; then
  13723. $as_echo "#define volatile /**/" >>confdefs.h
  13724. fi
  13725. # Check whether --enable-assertions was given.
  13726. if test "${enable_assertions+set}" = set; then :
  13727. enableval=$enable_assertions;
  13728. else
  13729. enable_assertions=auto
  13730. fi
  13731. case "$enable_assertions" in
  13732. auto) # Use optimization settings to determine assertion level
  13733. ;;
  13734. disabled)
  13735. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13736. ;;
  13737. release)
  13738. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13739. ;;
  13740. enabled)
  13741. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13742. ;;
  13743. paranoid)
  13744. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13745. ;;
  13746. *)
  13747. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13748. ;;
  13749. esac
  13750. # Check whether --enable-dependency-tracking was given.
  13751. if test "${enable_dependency_tracking+set}" = set; then :
  13752. enableval=$enable_dependency_tracking;
  13753. else
  13754. enable_dependency_tracking=yes
  13755. fi
  13756. if test x$enable_dependency_tracking = xyes; then
  13757. have_gcc_mmd_mt=no
  13758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13759. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13761. /* end confdefs.h. */
  13762. #if !defined(__GNUC__) || __GNUC__ < 3
  13763. #error Dependency tracking requires GCC 3.0 or newer
  13764. #endif
  13765. int
  13766. main ()
  13767. {
  13768. ;
  13769. return 0;
  13770. }
  13771. _ACEOF
  13772. if ac_fn_c_try_compile "$LINENO"; then :
  13773. have_gcc_mmd_mt=yes
  13774. fi
  13775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13777. $as_echo "$have_gcc_mmd_mt" >&6; }
  13778. if test x$have_gcc_mmd_mt = xyes; then
  13779. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13780. fi
  13781. fi
  13782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13783. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13784. have_no_undefined=no
  13785. case "$host" in
  13786. *-*-openbsd*)
  13787. ;;
  13788. *)
  13789. save_LDFLAGS="$LDFLAGS"
  13790. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13792. /* end confdefs.h. */
  13793. int
  13794. main ()
  13795. {
  13796. ;
  13797. return 0;
  13798. }
  13799. _ACEOF
  13800. if ac_fn_c_try_link "$LINENO"; then :
  13801. have_no_undefined=yes
  13802. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13803. fi
  13804. rm -f core conftest.err conftest.$ac_objext \
  13805. conftest$ac_exeext conftest.$ac_ext
  13806. LDFLAGS="$save_LDFLAGS"
  13807. ;;
  13808. esac
  13809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13810. $as_echo "$have_no_undefined" >&6; }
  13811. # Check whether --enable-libc was given.
  13812. if test "${enable_libc+set}" = set; then :
  13813. enableval=$enable_libc;
  13814. else
  13815. enable_libc=yes
  13816. fi
  13817. if test x$enable_libc = xyes; then
  13818. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13820. $as_echo_n "checking for ANSI C header files... " >&6; }
  13821. if ${ac_cv_header_stdc+:} false; then :
  13822. $as_echo_n "(cached) " >&6
  13823. else
  13824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13825. /* end confdefs.h. */
  13826. #include <stdlib.h>
  13827. #include <stdarg.h>
  13828. #include <string.h>
  13829. #include <float.h>
  13830. int
  13831. main ()
  13832. {
  13833. ;
  13834. return 0;
  13835. }
  13836. _ACEOF
  13837. if ac_fn_c_try_compile "$LINENO"; then :
  13838. ac_cv_header_stdc=yes
  13839. else
  13840. ac_cv_header_stdc=no
  13841. fi
  13842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13843. if test $ac_cv_header_stdc = yes; then
  13844. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13846. /* end confdefs.h. */
  13847. #include <string.h>
  13848. _ACEOF
  13849. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13850. $EGREP "memchr" >/dev/null 2>&1; then :
  13851. else
  13852. ac_cv_header_stdc=no
  13853. fi
  13854. rm -f conftest*
  13855. fi
  13856. if test $ac_cv_header_stdc = yes; then
  13857. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13859. /* end confdefs.h. */
  13860. #include <stdlib.h>
  13861. _ACEOF
  13862. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13863. $EGREP "free" >/dev/null 2>&1; then :
  13864. else
  13865. ac_cv_header_stdc=no
  13866. fi
  13867. rm -f conftest*
  13868. fi
  13869. if test $ac_cv_header_stdc = yes; then
  13870. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13871. if test "$cross_compiling" = yes; then :
  13872. :
  13873. else
  13874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13875. /* end confdefs.h. */
  13876. #include <ctype.h>
  13877. #include <stdlib.h>
  13878. #if ((' ' & 0x0FF) == 0x020)
  13879. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13880. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13881. #else
  13882. # define ISLOWER(c) \
  13883. (('a' <= (c) && (c) <= 'i') \
  13884. || ('j' <= (c) && (c) <= 'r') \
  13885. || ('s' <= (c) && (c) <= 'z'))
  13886. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13887. #endif
  13888. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13889. int
  13890. main ()
  13891. {
  13892. int i;
  13893. for (i = 0; i < 256; i++)
  13894. if (XOR (islower (i), ISLOWER (i))
  13895. || toupper (i) != TOUPPER (i))
  13896. return 2;
  13897. return 0;
  13898. }
  13899. _ACEOF
  13900. if ac_fn_c_try_run "$LINENO"; then :
  13901. else
  13902. ac_cv_header_stdc=no
  13903. fi
  13904. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13905. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13906. fi
  13907. fi
  13908. fi
  13909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13910. $as_echo "$ac_cv_header_stdc" >&6; }
  13911. if test $ac_cv_header_stdc = yes; then
  13912. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13913. fi
  13914. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
  13915. do :
  13916. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13917. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13918. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13919. cat >>confdefs.h <<_ACEOF
  13920. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13921. _ACEOF
  13922. fi
  13923. done
  13924. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13925. if test "x$ac_cv_type_size_t" = xyes; then :
  13926. else
  13927. cat >>confdefs.h <<_ACEOF
  13928. #define size_t unsigned int
  13929. _ACEOF
  13930. fi
  13931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13932. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13933. if ${ac_cv_define_M_PI+:} false; then :
  13934. $as_echo_n "(cached) " >&6
  13935. else
  13936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13937. /* end confdefs.h. */
  13938. #include <math.h>
  13939. #ifdef M_PI
  13940. YES_IS_DEFINED
  13941. #endif
  13942. _ACEOF
  13943. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13944. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13945. ac_cv_define_M_PI=yes
  13946. else
  13947. ac_cv_define_M_PI=no
  13948. fi
  13949. rm -f conftest*
  13950. fi
  13951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13952. $as_echo "$ac_cv_define_M_PI" >&6; }
  13953. if test "$ac_cv_define_M_PI" = "yes" ; then
  13954. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13955. fi
  13956. case "$host" in
  13957. *-*-cygwin* | *-*-mingw32*)
  13958. ;;
  13959. *)
  13960. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13961. # for constant arguments. Useless!
  13962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13963. $as_echo_n "checking for working alloca.h... " >&6; }
  13964. if ${ac_cv_working_alloca_h+:} false; then :
  13965. $as_echo_n "(cached) " >&6
  13966. else
  13967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13968. /* end confdefs.h. */
  13969. #include <alloca.h>
  13970. int
  13971. main ()
  13972. {
  13973. char *p = (char *) alloca (2 * sizeof (int));
  13974. if (p) return 0;
  13975. ;
  13976. return 0;
  13977. }
  13978. _ACEOF
  13979. if ac_fn_c_try_link "$LINENO"; then :
  13980. ac_cv_working_alloca_h=yes
  13981. else
  13982. ac_cv_working_alloca_h=no
  13983. fi
  13984. rm -f core conftest.err conftest.$ac_objext \
  13985. conftest$ac_exeext conftest.$ac_ext
  13986. fi
  13987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13988. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13989. if test $ac_cv_working_alloca_h = yes; then
  13990. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  13991. fi
  13992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13993. $as_echo_n "checking for alloca... " >&6; }
  13994. if ${ac_cv_func_alloca_works+:} false; then :
  13995. $as_echo_n "(cached) " >&6
  13996. else
  13997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13998. /* end confdefs.h. */
  13999. #ifdef __GNUC__
  14000. # define alloca __builtin_alloca
  14001. #else
  14002. # ifdef _MSC_VER
  14003. # include <malloc.h>
  14004. # define alloca _alloca
  14005. # else
  14006. # ifdef HAVE_ALLOCA_H
  14007. # include <alloca.h>
  14008. # else
  14009. # ifdef _AIX
  14010. #pragma alloca
  14011. # else
  14012. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14013. void *alloca (size_t);
  14014. # endif
  14015. # endif
  14016. # endif
  14017. # endif
  14018. #endif
  14019. int
  14020. main ()
  14021. {
  14022. char *p = (char *) alloca (1);
  14023. if (p) return 0;
  14024. ;
  14025. return 0;
  14026. }
  14027. _ACEOF
  14028. if ac_fn_c_try_link "$LINENO"; then :
  14029. ac_cv_func_alloca_works=yes
  14030. else
  14031. ac_cv_func_alloca_works=no
  14032. fi
  14033. rm -f core conftest.err conftest.$ac_objext \
  14034. conftest$ac_exeext conftest.$ac_ext
  14035. fi
  14036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14037. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14038. if test $ac_cv_func_alloca_works = yes; then
  14039. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14040. else
  14041. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14042. # that cause trouble. Some versions do not even contain alloca or
  14043. # contain a buggy version. If you still want to use their alloca,
  14044. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14045. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14046. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14048. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14049. if ${ac_cv_os_cray+:} false; then :
  14050. $as_echo_n "(cached) " >&6
  14051. else
  14052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14053. /* end confdefs.h. */
  14054. #if defined CRAY && ! defined CRAY2
  14055. webecray
  14056. #else
  14057. wenotbecray
  14058. #endif
  14059. _ACEOF
  14060. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14061. $EGREP "webecray" >/dev/null 2>&1; then :
  14062. ac_cv_os_cray=yes
  14063. else
  14064. ac_cv_os_cray=no
  14065. fi
  14066. rm -f conftest*
  14067. fi
  14068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14069. $as_echo "$ac_cv_os_cray" >&6; }
  14070. if test $ac_cv_os_cray = yes; then
  14071. for ac_func in _getb67 GETB67 getb67; do
  14072. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14073. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14074. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14075. cat >>confdefs.h <<_ACEOF
  14076. #define CRAY_STACKSEG_END $ac_func
  14077. _ACEOF
  14078. break
  14079. fi
  14080. done
  14081. fi
  14082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14083. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14084. if ${ac_cv_c_stack_direction+:} false; then :
  14085. $as_echo_n "(cached) " >&6
  14086. else
  14087. if test "$cross_compiling" = yes; then :
  14088. ac_cv_c_stack_direction=0
  14089. else
  14090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14091. /* end confdefs.h. */
  14092. $ac_includes_default
  14093. int
  14094. find_stack_direction (int *addr, int depth)
  14095. {
  14096. int dir, dummy = 0;
  14097. if (! addr)
  14098. addr = &dummy;
  14099. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14100. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14101. return dir + dummy;
  14102. }
  14103. int
  14104. main (int argc, char **argv)
  14105. {
  14106. return find_stack_direction (0, argc + !argv + 20) < 0;
  14107. }
  14108. _ACEOF
  14109. if ac_fn_c_try_run "$LINENO"; then :
  14110. ac_cv_c_stack_direction=1
  14111. else
  14112. ac_cv_c_stack_direction=-1
  14113. fi
  14114. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14115. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14116. fi
  14117. fi
  14118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14119. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14120. cat >>confdefs.h <<_ACEOF
  14121. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14122. _ACEOF
  14123. fi
  14124. ;;
  14125. esac
  14126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14127. $as_echo_n "checking for working memcmp... " >&6; }
  14128. if ${ac_cv_func_memcmp_working+:} false; then :
  14129. $as_echo_n "(cached) " >&6
  14130. else
  14131. if test "$cross_compiling" = yes; then :
  14132. ac_cv_func_memcmp_working=no
  14133. else
  14134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14135. /* end confdefs.h. */
  14136. $ac_includes_default
  14137. int
  14138. main ()
  14139. {
  14140. /* Some versions of memcmp are not 8-bit clean. */
  14141. char c0 = '\100', c1 = '\200', c2 = '\201';
  14142. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14143. return 1;
  14144. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14145. or more and with at least one buffer not starting on a 4-byte boundary.
  14146. William Lewis provided this test program. */
  14147. {
  14148. char foo[21];
  14149. char bar[21];
  14150. int i;
  14151. for (i = 0; i < 4; i++)
  14152. {
  14153. char *a = foo + i;
  14154. char *b = bar + i;
  14155. strcpy (a, "--------01111111");
  14156. strcpy (b, "--------10000000");
  14157. if (memcmp (a, b, 16) >= 0)
  14158. return 1;
  14159. }
  14160. return 0;
  14161. }
  14162. ;
  14163. return 0;
  14164. }
  14165. _ACEOF
  14166. if ac_fn_c_try_run "$LINENO"; then :
  14167. ac_cv_func_memcmp_working=yes
  14168. else
  14169. ac_cv_func_memcmp_working=no
  14170. fi
  14171. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14172. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14173. fi
  14174. fi
  14175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14176. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14177. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14178. *" memcmp.$ac_objext "* ) ;;
  14179. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14180. ;;
  14181. esac
  14182. if test x$ac_cv_func_memcmp_working = xyes; then
  14183. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14184. fi
  14185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14186. $as_echo_n "checking for working strtod... " >&6; }
  14187. if ${ac_cv_func_strtod+:} false; then :
  14188. $as_echo_n "(cached) " >&6
  14189. else
  14190. if test "$cross_compiling" = yes; then :
  14191. ac_cv_func_strtod=no
  14192. else
  14193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14194. /* end confdefs.h. */
  14195. $ac_includes_default
  14196. #ifndef strtod
  14197. double strtod ();
  14198. #endif
  14199. int
  14200. main()
  14201. {
  14202. {
  14203. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14204. char *string = " +69";
  14205. char *term;
  14206. double value;
  14207. value = strtod (string, &term);
  14208. if (value != 69 || term != (string + 4))
  14209. return 1;
  14210. }
  14211. {
  14212. /* Under Solaris 2.4, strtod returns the wrong value for the
  14213. terminating character under some conditions. */
  14214. char *string = "NaN";
  14215. char *term;
  14216. strtod (string, &term);
  14217. if (term != string && *(term - 1) == 0)
  14218. return 1;
  14219. }
  14220. return 0;
  14221. }
  14222. _ACEOF
  14223. if ac_fn_c_try_run "$LINENO"; then :
  14224. ac_cv_func_strtod=yes
  14225. else
  14226. ac_cv_func_strtod=no
  14227. fi
  14228. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14229. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14230. fi
  14231. fi
  14232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14233. $as_echo "$ac_cv_func_strtod" >&6; }
  14234. if test $ac_cv_func_strtod = no; then
  14235. case " $LIBOBJS " in
  14236. *" strtod.$ac_objext "* ) ;;
  14237. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14238. ;;
  14239. esac
  14240. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14241. if test "x$ac_cv_func_pow" = xyes; then :
  14242. fi
  14243. if test $ac_cv_func_pow = no; then
  14244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14245. $as_echo_n "checking for pow in -lm... " >&6; }
  14246. if ${ac_cv_lib_m_pow+:} false; then :
  14247. $as_echo_n "(cached) " >&6
  14248. else
  14249. ac_check_lib_save_LIBS=$LIBS
  14250. LIBS="-lm $LIBS"
  14251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14252. /* end confdefs.h. */
  14253. /* Override any GCC internal prototype to avoid an error.
  14254. Use char because int might match the return type of a GCC
  14255. builtin and then its argument prototype would still apply. */
  14256. #ifdef __cplusplus
  14257. extern "C"
  14258. #endif
  14259. char pow ();
  14260. int
  14261. main ()
  14262. {
  14263. return pow ();
  14264. ;
  14265. return 0;
  14266. }
  14267. _ACEOF
  14268. if ac_fn_c_try_link "$LINENO"; then :
  14269. ac_cv_lib_m_pow=yes
  14270. else
  14271. ac_cv_lib_m_pow=no
  14272. fi
  14273. rm -f core conftest.err conftest.$ac_objext \
  14274. conftest$ac_exeext conftest.$ac_ext
  14275. LIBS=$ac_check_lib_save_LIBS
  14276. fi
  14277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14278. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14279. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14280. POW_LIB=-lm
  14281. else
  14282. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14283. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14284. fi
  14285. fi
  14286. fi
  14287. if test x$ac_cv_func_strtod = xyes; then
  14288. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14289. fi
  14290. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14291. if test "x$ac_cv_func_mprotect" = xyes; then :
  14292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14293. /* end confdefs.h. */
  14294. #include <sys/types.h>
  14295. #include <sys/mman.h>
  14296. int
  14297. main ()
  14298. {
  14299. ;
  14300. return 0;
  14301. }
  14302. _ACEOF
  14303. if ac_fn_c_try_compile "$LINENO"; then :
  14304. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14305. fi
  14306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14307. fi
  14308. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname
  14309. do :
  14310. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14311. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14312. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14313. cat >>confdefs.h <<_ACEOF
  14314. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14315. _ACEOF
  14316. fi
  14317. done
  14318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14319. $as_echo_n "checking for pow in -lm... " >&6; }
  14320. if ${ac_cv_lib_m_pow+:} false; then :
  14321. $as_echo_n "(cached) " >&6
  14322. else
  14323. ac_check_lib_save_LIBS=$LIBS
  14324. LIBS="-lm $LIBS"
  14325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14326. /* end confdefs.h. */
  14327. /* Override any GCC internal prototype to avoid an error.
  14328. Use char because int might match the return type of a GCC
  14329. builtin and then its argument prototype would still apply. */
  14330. #ifdef __cplusplus
  14331. extern "C"
  14332. #endif
  14333. char pow ();
  14334. int
  14335. main ()
  14336. {
  14337. return pow ();
  14338. ;
  14339. return 0;
  14340. }
  14341. _ACEOF
  14342. if ac_fn_c_try_link "$LINENO"; then :
  14343. ac_cv_lib_m_pow=yes
  14344. else
  14345. ac_cv_lib_m_pow=no
  14346. fi
  14347. rm -f core conftest.err conftest.$ac_objext \
  14348. conftest$ac_exeext conftest.$ac_ext
  14349. LIBS=$ac_check_lib_save_LIBS
  14350. fi
  14351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14352. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14353. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14354. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14355. fi
  14356. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt
  14357. do :
  14358. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14359. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14360. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14361. cat >>confdefs.h <<_ACEOF
  14362. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14363. _ACEOF
  14364. fi
  14365. done
  14366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14367. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14368. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14369. $as_echo_n "(cached) " >&6
  14370. else
  14371. ac_check_lib_save_LIBS=$LIBS
  14372. LIBS="-liconv $LIBS"
  14373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14374. /* end confdefs.h. */
  14375. /* Override any GCC internal prototype to avoid an error.
  14376. Use char because int might match the return type of a GCC
  14377. builtin and then its argument prototype would still apply. */
  14378. #ifdef __cplusplus
  14379. extern "C"
  14380. #endif
  14381. char iconv_open ();
  14382. int
  14383. main ()
  14384. {
  14385. return iconv_open ();
  14386. ;
  14387. return 0;
  14388. }
  14389. _ACEOF
  14390. if ac_fn_c_try_link "$LINENO"; then :
  14391. ac_cv_lib_iconv_iconv_open=yes
  14392. else
  14393. ac_cv_lib_iconv_iconv_open=no
  14394. fi
  14395. rm -f core conftest.err conftest.$ac_objext \
  14396. conftest$ac_exeext conftest.$ac_ext
  14397. LIBS=$ac_check_lib_save_LIBS
  14398. fi
  14399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14400. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14401. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14402. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14403. fi
  14404. for ac_func in iconv
  14405. do :
  14406. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14407. if test "x$ac_cv_func_iconv" = xyes; then :
  14408. cat >>confdefs.h <<_ACEOF
  14409. #define HAVE_ICONV 1
  14410. _ACEOF
  14411. fi
  14412. done
  14413. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14414. "
  14415. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14416. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14417. fi
  14418. fi
  14419. # Check whether --enable-gcc-atomics was given.
  14420. if test "${enable_gcc_atomics+set}" = set; then :
  14421. enableval=$enable_gcc_atomics;
  14422. else
  14423. enable_gcc_atomics=yes
  14424. fi
  14425. if test x$enable_gcc_atomics = xyes; then
  14426. have_gcc_atomics=no
  14427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14428. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14430. /* end confdefs.h. */
  14431. int
  14432. main ()
  14433. {
  14434. int a;
  14435. void *x, *y, *z;
  14436. __sync_lock_test_and_set(&a, 4);
  14437. __sync_lock_test_and_set(&x, y);
  14438. __sync_fetch_and_add(&a, 1);
  14439. __sync_bool_compare_and_swap(&a, 5, 10);
  14440. __sync_bool_compare_and_swap(&x, y, z);
  14441. ;
  14442. return 0;
  14443. }
  14444. _ACEOF
  14445. if ac_fn_c_try_link "$LINENO"; then :
  14446. have_gcc_atomics=yes
  14447. fi
  14448. rm -f core conftest.err conftest.$ac_objext \
  14449. conftest$ac_exeext conftest.$ac_ext
  14450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14451. $as_echo "$have_gcc_atomics" >&6; }
  14452. if test x$have_gcc_atomics = xyes; then
  14453. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14454. else
  14455. # See if we have the minimum operation needed for GCC atomics
  14456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14457. /* end confdefs.h. */
  14458. int
  14459. main ()
  14460. {
  14461. int a;
  14462. __sync_lock_test_and_set(&a, 1);
  14463. __sync_lock_release(&a);
  14464. ;
  14465. return 0;
  14466. }
  14467. _ACEOF
  14468. if ac_fn_c_try_link "$LINENO"; then :
  14469. have_gcc_sync_lock_test_and_set=yes
  14470. fi
  14471. rm -f core conftest.err conftest.$ac_objext \
  14472. conftest$ac_exeext conftest.$ac_ext
  14473. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14474. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14475. fi
  14476. fi
  14477. fi
  14478. # Standard C sources
  14479. SOURCES="$SOURCES $srcdir/src/*.c"
  14480. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14481. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14482. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14483. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14484. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14485. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14486. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14487. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14488. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14489. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14490. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14491. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14492. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14493. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14494. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14495. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14496. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14497. # Check whether --enable-atomic was given.
  14498. if test "${enable_atomic+set}" = set; then :
  14499. enableval=$enable_atomic;
  14500. else
  14501. enable_atomic=yes
  14502. fi
  14503. if test x$enable_atomic != xyes; then
  14504. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14505. else
  14506. SUMMARY_modules="${SUMMARY_modules} atomic"
  14507. fi
  14508. # Check whether --enable-audio was given.
  14509. if test "${enable_audio+set}" = set; then :
  14510. enableval=$enable_audio;
  14511. else
  14512. enable_audio=yes
  14513. fi
  14514. if test x$enable_audio != xyes; then
  14515. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14516. else
  14517. SUMMARY_modules="${SUMMARY_modules} audio"
  14518. fi
  14519. # Check whether --enable-video was given.
  14520. if test "${enable_video+set}" = set; then :
  14521. enableval=$enable_video;
  14522. else
  14523. enable_video=yes
  14524. fi
  14525. if test x$enable_video != xyes; then
  14526. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14527. else
  14528. SUMMARY_modules="${SUMMARY_modules} video"
  14529. fi
  14530. # Check whether --enable-render was given.
  14531. if test "${enable_render+set}" = set; then :
  14532. enableval=$enable_render;
  14533. else
  14534. enable_render=yes
  14535. fi
  14536. if test x$enable_render != xyes; then
  14537. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14538. else
  14539. SUMMARY_modules="${SUMMARY_modules} render"
  14540. fi
  14541. # Check whether --enable-events was given.
  14542. if test "${enable_events+set}" = set; then :
  14543. enableval=$enable_events;
  14544. else
  14545. enable_events=yes
  14546. fi
  14547. if test x$enable_events != xyes; then
  14548. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14549. else
  14550. SUMMARY_modules="${SUMMARY_modules} events"
  14551. fi
  14552. # Check whether --enable-joystick was given.
  14553. if test "${enable_joystick+set}" = set; then :
  14554. enableval=$enable_joystick;
  14555. else
  14556. enable_joystick=yes
  14557. fi
  14558. if test x$enable_joystick != xyes; then
  14559. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14560. else
  14561. SUMMARY_modules="${SUMMARY_modules} joystick"
  14562. fi
  14563. # Check whether --enable-haptic was given.
  14564. if test "${enable_haptic+set}" = set; then :
  14565. enableval=$enable_haptic;
  14566. else
  14567. enable_haptic=yes
  14568. fi
  14569. if test x$enable_haptic != xyes; then
  14570. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14571. else
  14572. SUMMARY_modules="${SUMMARY_modules} haptic"
  14573. fi
  14574. # Check whether --enable-power was given.
  14575. if test "${enable_power+set}" = set; then :
  14576. enableval=$enable_power;
  14577. else
  14578. enable_power=yes
  14579. fi
  14580. if test x$enable_power != xyes; then
  14581. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14582. else
  14583. SUMMARY_modules="${SUMMARY_modules} power"
  14584. fi
  14585. # Check whether --enable-filesystem was given.
  14586. if test "${enable_filesystem+set}" = set; then :
  14587. enableval=$enable_filesystem;
  14588. else
  14589. enable_filesystem=yes
  14590. fi
  14591. if test x$enable_filesystem != xyes; then
  14592. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14593. else
  14594. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14595. fi
  14596. # Check whether --enable-threads was given.
  14597. if test "${enable_threads+set}" = set; then :
  14598. enableval=$enable_threads;
  14599. else
  14600. enable_threads=yes
  14601. fi
  14602. if test x$enable_threads != xyes; then
  14603. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14604. else
  14605. SUMMARY_modules="${SUMMARY_modules} threads"
  14606. fi
  14607. # Check whether --enable-timers was given.
  14608. if test "${enable_timers+set}" = set; then :
  14609. enableval=$enable_timers;
  14610. else
  14611. enable_timers=yes
  14612. fi
  14613. if test x$enable_timers != xyes; then
  14614. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14615. else
  14616. SUMMARY_modules="${SUMMARY_modules} timers"
  14617. fi
  14618. # Check whether --enable-file was given.
  14619. if test "${enable_file+set}" = set; then :
  14620. enableval=$enable_file;
  14621. else
  14622. enable_file=yes
  14623. fi
  14624. if test x$enable_file != xyes; then
  14625. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14626. else
  14627. SUMMARY_modules="${SUMMARY_modules} file"
  14628. fi
  14629. # Check whether --enable-loadso was given.
  14630. if test "${enable_loadso+set}" = set; then :
  14631. enableval=$enable_loadso;
  14632. else
  14633. enable_loadso=yes
  14634. fi
  14635. if test x$enable_loadso != xyes; then
  14636. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14637. else
  14638. SUMMARY_modules="${SUMMARY_modules} loadso"
  14639. fi
  14640. # Check whether --enable-cpuinfo was given.
  14641. if test "${enable_cpuinfo+set}" = set; then :
  14642. enableval=$enable_cpuinfo;
  14643. else
  14644. enable_cpuinfo=yes
  14645. fi
  14646. if test x$enable_cpuinfo != xyes; then
  14647. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14648. else
  14649. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14650. fi
  14651. # Check whether --enable-assembly was given.
  14652. if test "${enable_assembly+set}" = set; then :
  14653. enableval=$enable_assembly;
  14654. else
  14655. enable_assembly=yes
  14656. fi
  14657. if test x$enable_assembly = xyes; then
  14658. SUMMARY_modules="${SUMMARY_modules} assembly"
  14659. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14660. # Make sure that we don't generate floating point code that would
  14661. # cause illegal instruction exceptions on older processors
  14662. case "$host" in
  14663. *-*-darwin*)
  14664. # Don't need to worry about Apple hardware, it's all SSE capable
  14665. default_ssemath=yes
  14666. ;;
  14667. *64-*-*)
  14668. # x86 64-bit architectures all have SSE instructions
  14669. default_ssemath=yes
  14670. ;;
  14671. *)
  14672. default_ssemath=no
  14673. ;;
  14674. esac
  14675. # Check whether --enable-ssemath was given.
  14676. if test "${enable_ssemath+set}" = set; then :
  14677. enableval=$enable_ssemath;
  14678. else
  14679. enable_ssemath=$default_ssemath
  14680. fi
  14681. if test x$enable_ssemath = xno; then
  14682. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14683. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14684. fi
  14685. fi
  14686. # Check whether --enable-mmx was given.
  14687. if test "${enable_mmx+set}" = set; then :
  14688. enableval=$enable_mmx;
  14689. else
  14690. enable_mmx=yes
  14691. fi
  14692. if test x$enable_mmx = xyes; then
  14693. save_CFLAGS="$CFLAGS"
  14694. have_gcc_mmx=no
  14695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14696. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14697. mmx_CFLAGS="-mmmx"
  14698. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14700. /* end confdefs.h. */
  14701. #ifdef __MINGW32__
  14702. #include <_mingw.h>
  14703. #ifdef __MINGW64_VERSION_MAJOR
  14704. #include <intrin.h>
  14705. #else
  14706. #include <mmintrin.h>
  14707. #endif
  14708. #else
  14709. #include <mmintrin.h>
  14710. #endif
  14711. #ifndef __MMX__
  14712. #error Assembler CPP flag not enabled
  14713. #endif
  14714. int
  14715. main ()
  14716. {
  14717. ;
  14718. return 0;
  14719. }
  14720. _ACEOF
  14721. if ac_fn_c_try_compile "$LINENO"; then :
  14722. have_gcc_mmx=yes
  14723. fi
  14724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14726. $as_echo "$have_gcc_mmx" >&6; }
  14727. CFLAGS="$save_CFLAGS"
  14728. if test x$have_gcc_mmx = xyes; then
  14729. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14730. SUMMARY_math="${SUMMARY_math} mmx"
  14731. fi
  14732. fi
  14733. # Check whether --enable-3dnow was given.
  14734. if test "${enable_3dnow+set}" = set; then :
  14735. enableval=$enable_3dnow;
  14736. else
  14737. enable_3dnow=yes
  14738. fi
  14739. if test x$enable_3dnow = xyes; then
  14740. save_CFLAGS="$CFLAGS"
  14741. have_gcc_3dnow=no
  14742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14743. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14744. amd3dnow_CFLAGS="-m3dnow"
  14745. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14747. /* end confdefs.h. */
  14748. #include <mm3dnow.h>
  14749. #ifndef __3dNOW__
  14750. #error Assembler CPP flag not enabled
  14751. #endif
  14752. int
  14753. main ()
  14754. {
  14755. void *p = 0;
  14756. _m_prefetch(p);
  14757. ;
  14758. return 0;
  14759. }
  14760. _ACEOF
  14761. if ac_fn_c_try_link "$LINENO"; then :
  14762. have_gcc_3dnow=yes
  14763. fi
  14764. rm -f core conftest.err conftest.$ac_objext \
  14765. conftest$ac_exeext conftest.$ac_ext
  14766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14767. $as_echo "$have_gcc_3dnow" >&6; }
  14768. CFLAGS="$save_CFLAGS"
  14769. if test x$have_gcc_3dnow = xyes; then
  14770. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14771. SUMMARY_math="${SUMMARY_math} 3dnow"
  14772. fi
  14773. fi
  14774. # Check whether --enable-sse was given.
  14775. if test "${enable_sse+set}" = set; then :
  14776. enableval=$enable_sse;
  14777. else
  14778. enable_sse=yes
  14779. fi
  14780. if test x$enable_sse = xyes; then
  14781. save_CFLAGS="$CFLAGS"
  14782. have_gcc_sse=no
  14783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14784. $as_echo_n "checking for GCC -msse option... " >&6; }
  14785. sse_CFLAGS="-msse"
  14786. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14788. /* end confdefs.h. */
  14789. #ifdef __MINGW32__
  14790. #include <_mingw.h>
  14791. #ifdef __MINGW64_VERSION_MAJOR
  14792. #include <intrin.h>
  14793. #else
  14794. #include <xmmintrin.h>
  14795. #endif
  14796. #else
  14797. #include <xmmintrin.h>
  14798. #endif
  14799. #ifndef __SSE__
  14800. #error Assembler CPP flag not enabled
  14801. #endif
  14802. int
  14803. main ()
  14804. {
  14805. ;
  14806. return 0;
  14807. }
  14808. _ACEOF
  14809. if ac_fn_c_try_compile "$LINENO"; then :
  14810. have_gcc_sse=yes
  14811. fi
  14812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14814. $as_echo "$have_gcc_sse" >&6; }
  14815. CFLAGS="$save_CFLAGS"
  14816. if test x$have_gcc_sse = xyes; then
  14817. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14818. SUMMARY_math="${SUMMARY_math} sse"
  14819. fi
  14820. fi
  14821. # Check whether --enable-sse2 was given.
  14822. if test "${enable_sse2+set}" = set; then :
  14823. enableval=$enable_sse2;
  14824. else
  14825. enable_sse2=$default_ssemath
  14826. fi
  14827. if test x$enable_sse2 = xyes; then
  14828. save_CFLAGS="$CFLAGS"
  14829. have_gcc_sse2=no
  14830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14831. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14832. sse2_CFLAGS="-msse2"
  14833. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14835. /* end confdefs.h. */
  14836. #ifdef __MINGW32__
  14837. #include <_mingw.h>
  14838. #ifdef __MINGW64_VERSION_MAJOR
  14839. #include <intrin.h>
  14840. #else
  14841. #include <emmintrin.h>
  14842. #endif
  14843. #else
  14844. #include <emmintrin.h>
  14845. #endif
  14846. #ifndef __SSE2__
  14847. #error Assembler CPP flag not enabled
  14848. #endif
  14849. int
  14850. main ()
  14851. {
  14852. ;
  14853. return 0;
  14854. }
  14855. _ACEOF
  14856. if ac_fn_c_try_compile "$LINENO"; then :
  14857. have_gcc_sse2=yes
  14858. fi
  14859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14861. $as_echo "$have_gcc_sse2" >&6; }
  14862. CFLAGS="$save_CFLAGS"
  14863. if test x$have_gcc_sse2 = xyes; then
  14864. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14865. SUMMARY_math="${SUMMARY_math} sse2"
  14866. fi
  14867. fi
  14868. # Check whether --enable-altivec was given.
  14869. if test "${enable_altivec+set}" = set; then :
  14870. enableval=$enable_altivec;
  14871. else
  14872. enable_altivec=yes
  14873. fi
  14874. if test x$enable_altivec = xyes; then
  14875. save_CFLAGS="$CFLAGS"
  14876. have_gcc_altivec=no
  14877. have_altivec_h_hdr=no
  14878. altivec_CFLAGS="-maltivec"
  14879. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14881. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14883. /* end confdefs.h. */
  14884. #include <altivec.h>
  14885. vector unsigned int vzero() {
  14886. return vec_splat_u32(0);
  14887. }
  14888. int
  14889. main ()
  14890. {
  14891. ;
  14892. return 0;
  14893. }
  14894. _ACEOF
  14895. if ac_fn_c_try_compile "$LINENO"; then :
  14896. have_gcc_altivec=yes
  14897. have_altivec_h_hdr=yes
  14898. fi
  14899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14901. $as_echo "$have_gcc_altivec" >&6; }
  14902. if test x$have_gcc_altivec = xno; then
  14903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14904. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14906. /* end confdefs.h. */
  14907. vector unsigned int vzero() {
  14908. return vec_splat_u32(0);
  14909. }
  14910. int
  14911. main ()
  14912. {
  14913. ;
  14914. return 0;
  14915. }
  14916. _ACEOF
  14917. if ac_fn_c_try_compile "$LINENO"; then :
  14918. have_gcc_altivec=yes
  14919. fi
  14920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14922. $as_echo "$have_gcc_altivec" >&6; }
  14923. fi
  14924. if test x$have_gcc_altivec = xno; then
  14925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14926. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14927. altivec_CFLAGS="-faltivec"
  14928. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14930. /* end confdefs.h. */
  14931. #include <altivec.h>
  14932. vector unsigned int vzero() {
  14933. return vec_splat_u32(0);
  14934. }
  14935. int
  14936. main ()
  14937. {
  14938. ;
  14939. return 0;
  14940. }
  14941. _ACEOF
  14942. if ac_fn_c_try_compile "$LINENO"; then :
  14943. have_gcc_altivec=yes
  14944. have_altivec_h_hdr=yes
  14945. fi
  14946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14948. $as_echo "$have_gcc_altivec" >&6; }
  14949. fi
  14950. if test x$have_gcc_altivec = xno; then
  14951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14952. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14954. /* end confdefs.h. */
  14955. vector unsigned int vzero() {
  14956. return vec_splat_u32(0);
  14957. }
  14958. int
  14959. main ()
  14960. {
  14961. ;
  14962. return 0;
  14963. }
  14964. _ACEOF
  14965. if ac_fn_c_try_compile "$LINENO"; then :
  14966. have_gcc_altivec=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_altivec" >&5
  14970. $as_echo "$have_gcc_altivec" >&6; }
  14971. fi
  14972. CFLAGS="$save_CFLAGS"
  14973. if test x$have_gcc_altivec = xyes; then
  14974. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  14975. if test x$have_altivec_h_hdr = xyes; then
  14976. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  14977. fi
  14978. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  14979. SUMMARY_math="${SUMMARY_math} altivec"
  14980. fi
  14981. fi
  14982. fi
  14983. CheckOSS()
  14984. {
  14985. # Check whether --enable-oss was given.
  14986. if test "${enable_oss+set}" = set; then :
  14987. enableval=$enable_oss;
  14988. else
  14989. enable_oss=maybe
  14990. fi
  14991. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  14992. # use sndio instead. So on there, we default to disabled. You can force
  14993. # it on if you really want, though.
  14994. if test x$enable_oss = xmaybe; then
  14995. enable_oss=yes
  14996. case "$host" in
  14997. *-*-openbsd*)
  14998. enable_oss=no;;
  14999. esac
  15000. fi
  15001. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15003. $as_echo_n "checking for OSS audio support... " >&6; }
  15004. have_oss=no
  15005. if test x$have_oss != xyes; then
  15006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15007. /* end confdefs.h. */
  15008. #include <sys/soundcard.h>
  15009. int
  15010. main ()
  15011. {
  15012. int arg = SNDCTL_DSP_SETFRAGMENT;
  15013. ;
  15014. return 0;
  15015. }
  15016. _ACEOF
  15017. if ac_fn_c_try_compile "$LINENO"; then :
  15018. have_oss=yes
  15019. fi
  15020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15021. fi
  15022. if test x$have_oss != xyes; then
  15023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15024. /* end confdefs.h. */
  15025. #include <soundcard.h>
  15026. int
  15027. main ()
  15028. {
  15029. int arg = SNDCTL_DSP_SETFRAGMENT;
  15030. ;
  15031. return 0;
  15032. }
  15033. _ACEOF
  15034. if ac_fn_c_try_compile "$LINENO"; then :
  15035. have_oss=yes
  15036. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15037. fi
  15038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15039. fi
  15040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15041. $as_echo "$have_oss" >&6; }
  15042. if test x$have_oss = xyes; then
  15043. SUMMARY_audio="${SUMMARY_audio} oss"
  15044. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15045. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15046. have_audio=yes
  15047. # We may need to link with ossaudio emulation library
  15048. case "$host" in
  15049. *-*-openbsd*|*-*-netbsd*)
  15050. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15051. esac
  15052. fi
  15053. fi
  15054. }
  15055. CheckALSA()
  15056. {
  15057. # Check whether --enable-alsa was given.
  15058. if test "${enable_alsa+set}" = set; then :
  15059. enableval=$enable_alsa;
  15060. else
  15061. enable_alsa=yes
  15062. fi
  15063. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15064. alsa_save_CFLAGS="$CFLAGS"
  15065. alsa_save_LDFLAGS="$LDFLAGS"
  15066. alsa_save_LIBS="$LIBS"
  15067. alsa_found=yes
  15068. # Check whether --with-alsa-prefix was given.
  15069. if test "${with_alsa_prefix+set}" = set; then :
  15070. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15071. else
  15072. alsa_prefix=""
  15073. fi
  15074. # Check whether --with-alsa-inc-prefix was given.
  15075. if test "${with_alsa_inc_prefix+set}" = set; then :
  15076. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15077. else
  15078. alsa_inc_prefix=""
  15079. fi
  15080. # Check whether --enable-alsatest was given.
  15081. if test "${enable_alsatest+set}" = set; then :
  15082. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15083. else
  15084. enable_alsatest=yes
  15085. fi
  15086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15087. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15088. if test "$alsa_inc_prefix" != "" ; then
  15089. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15090. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15091. fi
  15092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15093. $as_echo "$ALSA_CFLAGS" >&6; }
  15094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15095. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15096. if test "$alsa_prefix" != "" ; then
  15097. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15098. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15099. fi
  15100. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15101. LIBS=`echo $LIBS | sed 's/-lm//'`
  15102. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15103. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15104. LIBS=`echo $LIBS | sed 's/ //'`
  15105. LIBS="$ALSA_LIBS $LIBS"
  15106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15107. $as_echo "$ALSA_LIBS" >&6; }
  15108. min_alsa_version=0.9.0
  15109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15110. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15111. no_alsa=""
  15112. alsa_min_major_version=`echo $min_alsa_version | \
  15113. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15114. alsa_min_minor_version=`echo $min_alsa_version | \
  15115. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15116. alsa_min_micro_version=`echo $min_alsa_version | \
  15117. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15118. ac_ext=c
  15119. ac_cpp='$CPP $CPPFLAGS'
  15120. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15121. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15122. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15124. /* end confdefs.h. */
  15125. #include <alsa/asoundlib.h>
  15126. int
  15127. main ()
  15128. {
  15129. /* ensure backward compatibility */
  15130. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15131. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15132. #endif
  15133. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15134. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15135. #endif
  15136. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15137. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15138. #endif
  15139. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15140. exit(0);
  15141. # else
  15142. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15143. # error not present
  15144. # endif
  15145. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15146. exit(0);
  15147. # else
  15148. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15149. # error not present
  15150. # endif
  15151. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15152. # error not present
  15153. # endif
  15154. # endif
  15155. # endif
  15156. exit(0);
  15157. ;
  15158. return 0;
  15159. }
  15160. _ACEOF
  15161. if ac_fn_c_try_compile "$LINENO"; then :
  15162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15163. $as_echo "found." >&6; }
  15164. else
  15165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15166. $as_echo "not present." >&6; }
  15167. alsa_found=no
  15168. fi
  15169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15170. ac_ext=c
  15171. ac_cpp='$CPP $CPPFLAGS'
  15172. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15173. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15174. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15175. if test "x$enable_alsatest" = "xyes"; then
  15176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15177. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15178. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15179. $as_echo_n "(cached) " >&6
  15180. else
  15181. ac_check_lib_save_LIBS=$LIBS
  15182. LIBS="-lasound $LIBS"
  15183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15184. /* end confdefs.h. */
  15185. /* Override any GCC internal prototype to avoid an error.
  15186. Use char because int might match the return type of a GCC
  15187. builtin and then its argument prototype would still apply. */
  15188. #ifdef __cplusplus
  15189. extern "C"
  15190. #endif
  15191. char snd_ctl_open ();
  15192. int
  15193. main ()
  15194. {
  15195. return snd_ctl_open ();
  15196. ;
  15197. return 0;
  15198. }
  15199. _ACEOF
  15200. if ac_fn_c_try_link "$LINENO"; then :
  15201. ac_cv_lib_asound_snd_ctl_open=yes
  15202. else
  15203. ac_cv_lib_asound_snd_ctl_open=no
  15204. fi
  15205. rm -f core conftest.err conftest.$ac_objext \
  15206. conftest$ac_exeext conftest.$ac_ext
  15207. LIBS=$ac_check_lib_save_LIBS
  15208. fi
  15209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15210. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15211. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15212. cat >>confdefs.h <<_ACEOF
  15213. #define HAVE_LIBASOUND 1
  15214. _ACEOF
  15215. LIBS="-lasound $LIBS"
  15216. else
  15217. alsa_found=no
  15218. fi
  15219. fi
  15220. if test "x$alsa_found" = "xyes" ; then
  15221. have_alsa=yes
  15222. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15223. LIBS=`echo $LIBS | sed 's/ //'`
  15224. LIBS="-lasound $LIBS"
  15225. fi
  15226. if test "x$alsa_found" = "xno" ; then
  15227. have_alsa=no
  15228. CFLAGS="$alsa_save_CFLAGS"
  15229. LDFLAGS="$alsa_save_LDFLAGS"
  15230. LIBS="$alsa_save_LIBS"
  15231. ALSA_CFLAGS=""
  15232. ALSA_LIBS=""
  15233. fi
  15234. # Restore all flags from before the ALSA detection runs
  15235. CFLAGS="$alsa_save_CFLAGS"
  15236. LDFLAGS="$alsa_save_LDFLAGS"
  15237. LIBS="$alsa_save_LIBS"
  15238. if test x$have_alsa = xyes; then
  15239. # Check whether --enable-alsa-shared was given.
  15240. if test "${enable_alsa_shared+set}" = set; then :
  15241. enableval=$enable_alsa_shared;
  15242. else
  15243. enable_alsa_shared=yes
  15244. fi
  15245. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15246. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15247. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15248. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15249. if test x$have_loadso != xyes && \
  15250. test x$enable_alsa_shared = xyes; then
  15251. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15252. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15253. fi
  15254. if test x$have_loadso = xyes && \
  15255. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15256. echo "-- dynamic libasound -> $alsa_lib"
  15257. cat >>confdefs.h <<_ACEOF
  15258. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15259. _ACEOF
  15260. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15261. else
  15262. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15263. SUMMARY_audio="${SUMMARY_audio} alsa"
  15264. fi
  15265. have_audio=yes
  15266. fi
  15267. fi
  15268. }
  15269. CheckESD()
  15270. {
  15271. # Check whether --enable-esd was given.
  15272. if test "${enable_esd+set}" = set; then :
  15273. enableval=$enable_esd;
  15274. else
  15275. enable_esd=yes
  15276. fi
  15277. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15278. # Check whether --with-esd-prefix was given.
  15279. if test "${with_esd_prefix+set}" = set; then :
  15280. withval=$with_esd_prefix; esd_prefix="$withval"
  15281. else
  15282. esd_prefix=""
  15283. fi
  15284. # Check whether --with-esd-exec-prefix was given.
  15285. if test "${with_esd_exec_prefix+set}" = set; then :
  15286. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15287. else
  15288. esd_exec_prefix=""
  15289. fi
  15290. # Check whether --enable-esdtest was given.
  15291. if test "${enable_esdtest+set}" = set; then :
  15292. enableval=$enable_esdtest;
  15293. else
  15294. enable_esdtest=yes
  15295. fi
  15296. if test x$esd_exec_prefix != x ; then
  15297. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15298. if test x${ESD_CONFIG+set} != xset ; then
  15299. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15300. fi
  15301. fi
  15302. if test x$esd_prefix != x ; then
  15303. esd_args="$esd_args --prefix=$esd_prefix"
  15304. if test x${ESD_CONFIG+set} != xset ; then
  15305. ESD_CONFIG=$esd_prefix/bin/esd-config
  15306. fi
  15307. fi
  15308. # Extract the first word of "esd-config", so it can be a program name with args.
  15309. set dummy esd-config; ac_word=$2
  15310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15311. $as_echo_n "checking for $ac_word... " >&6; }
  15312. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15313. $as_echo_n "(cached) " >&6
  15314. else
  15315. case $ESD_CONFIG in
  15316. [\\/]* | ?:[\\/]*)
  15317. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15318. ;;
  15319. *)
  15320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15321. for as_dir in $PATH
  15322. do
  15323. IFS=$as_save_IFS
  15324. test -z "$as_dir" && as_dir=.
  15325. for ac_exec_ext in '' $ac_executable_extensions; do
  15326. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15327. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15328. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15329. break 2
  15330. fi
  15331. done
  15332. done
  15333. IFS=$as_save_IFS
  15334. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15335. ;;
  15336. esac
  15337. fi
  15338. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15339. if test -n "$ESD_CONFIG"; then
  15340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15341. $as_echo "$ESD_CONFIG" >&6; }
  15342. else
  15343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15344. $as_echo "no" >&6; }
  15345. fi
  15346. min_esd_version=0.2.8
  15347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15348. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15349. no_esd=""
  15350. if test "$ESD_CONFIG" = "no" ; then
  15351. no_esd=yes
  15352. else
  15353. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15354. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15355. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15356. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15357. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15358. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15359. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15360. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15361. if test "x$enable_esdtest" = "xyes" ; then
  15362. ac_save_CFLAGS="$CFLAGS"
  15363. ac_save_LIBS="$LIBS"
  15364. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15365. LIBS="$LIBS $ESD_LIBS"
  15366. rm -f conf.esdtest
  15367. if test "$cross_compiling" = yes; then :
  15368. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15369. else
  15370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15371. /* end confdefs.h. */
  15372. #include <stdio.h>
  15373. #include <stdlib.h>
  15374. #include <string.h>
  15375. #include <esd.h>
  15376. char*
  15377. my_strdup (char *str)
  15378. {
  15379. char *new_str;
  15380. if (str)
  15381. {
  15382. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15383. strcpy (new_str, str);
  15384. }
  15385. else
  15386. new_str = NULL;
  15387. return new_str;
  15388. }
  15389. int main ()
  15390. {
  15391. int major, minor, micro;
  15392. char *tmp_version;
  15393. system ("touch conf.esdtest");
  15394. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15395. tmp_version = my_strdup("$min_esd_version");
  15396. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15397. printf("%s, bad version string\n", "$min_esd_version");
  15398. exit(1);
  15399. }
  15400. if (($esd_major_version > major) ||
  15401. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15402. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15403. {
  15404. return 0;
  15405. }
  15406. else
  15407. {
  15408. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15409. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15410. printf("*** best to upgrade to the required version.\n");
  15411. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15412. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15413. printf("*** config.cache before re-running configure\n");
  15414. return 1;
  15415. }
  15416. }
  15417. _ACEOF
  15418. if ac_fn_c_try_run "$LINENO"; then :
  15419. else
  15420. no_esd=yes
  15421. fi
  15422. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15423. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15424. fi
  15425. CFLAGS="$ac_save_CFLAGS"
  15426. LIBS="$ac_save_LIBS"
  15427. fi
  15428. fi
  15429. if test "x$no_esd" = x ; then
  15430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15431. $as_echo "yes" >&6; }
  15432. have_esd=yes
  15433. else
  15434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15435. $as_echo "no" >&6; }
  15436. if test "$ESD_CONFIG" = "no" ; then
  15437. echo "*** The esd-config script installed by ESD could not be found"
  15438. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15439. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15440. echo "*** full path to esd-config."
  15441. else
  15442. if test -f conf.esdtest ; then
  15443. :
  15444. else
  15445. echo "*** Could not run ESD test program, checking why..."
  15446. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15447. LIBS="$LIBS $ESD_LIBS"
  15448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15449. /* end confdefs.h. */
  15450. #include <stdio.h>
  15451. #include <esd.h>
  15452. int
  15453. main ()
  15454. {
  15455. return 0;
  15456. ;
  15457. return 0;
  15458. }
  15459. _ACEOF
  15460. if ac_fn_c_try_link "$LINENO"; then :
  15461. echo "*** The test program compiled, but did not run. This usually means"
  15462. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15463. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15464. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15465. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15466. echo "*** is required on your system"
  15467. echo "***"
  15468. echo "*** If you have an old version installed, it is best to remove it, although"
  15469. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15470. else
  15471. echo "*** The test program failed to compile or link. See the file config.log for the"
  15472. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15473. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15474. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15475. fi
  15476. rm -f core conftest.err conftest.$ac_objext \
  15477. conftest$ac_exeext conftest.$ac_ext
  15478. CFLAGS="$ac_save_CFLAGS"
  15479. LIBS="$ac_save_LIBS"
  15480. fi
  15481. fi
  15482. ESD_CFLAGS=""
  15483. ESD_LIBS=""
  15484. have_esd=no
  15485. fi
  15486. rm -f conf.esdtest
  15487. if test x$have_esd = xyes; then
  15488. # Check whether --enable-esd-shared was given.
  15489. if test "${enable_esd_shared+set}" = set; then :
  15490. enableval=$enable_esd_shared;
  15491. else
  15492. enable_esd_shared=yes
  15493. fi
  15494. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15495. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15496. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15497. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15498. if test x$have_loadso != xyes && \
  15499. test x$enable_esd_shared = xyes; then
  15500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15501. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15502. fi
  15503. if test x$have_loadso = xyes && \
  15504. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15505. echo "-- dynamic libesd -> $esd_lib"
  15506. cat >>confdefs.h <<_ACEOF
  15507. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15508. _ACEOF
  15509. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15510. else
  15511. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15512. SUMMARY_audio="${SUMMARY_audio} esd"
  15513. fi
  15514. have_audio=yes
  15515. fi
  15516. fi
  15517. }
  15518. CheckPulseAudio()
  15519. {
  15520. # Check whether --enable-pulseaudio was given.
  15521. if test "${enable_pulseaudio+set}" = set; then :
  15522. enableval=$enable_pulseaudio;
  15523. else
  15524. enable_pulseaudio=yes
  15525. fi
  15526. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15527. audio_pulseaudio=no
  15528. PULSEAUDIO_REQUIRED_VERSION=0.9
  15529. # Extract the first word of "pkg-config", so it can be a program name with args.
  15530. set dummy pkg-config; ac_word=$2
  15531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15532. $as_echo_n "checking for $ac_word... " >&6; }
  15533. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15534. $as_echo_n "(cached) " >&6
  15535. else
  15536. case $PKG_CONFIG in
  15537. [\\/]* | ?:[\\/]*)
  15538. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15539. ;;
  15540. *)
  15541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15542. for as_dir in $PATH
  15543. do
  15544. IFS=$as_save_IFS
  15545. test -z "$as_dir" && as_dir=.
  15546. for ac_exec_ext in '' $ac_executable_extensions; do
  15547. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15548. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15550. break 2
  15551. fi
  15552. done
  15553. done
  15554. IFS=$as_save_IFS
  15555. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15556. ;;
  15557. esac
  15558. fi
  15559. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15560. if test -n "$PKG_CONFIG"; then
  15561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15562. $as_echo "$PKG_CONFIG" >&6; }
  15563. else
  15564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15565. $as_echo "no" >&6; }
  15566. fi
  15567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15568. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15569. if test x$PKG_CONFIG != xno; then
  15570. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15571. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15572. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15573. audio_pulseaudio=yes
  15574. fi
  15575. fi
  15576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15577. $as_echo "$audio_pulseaudio" >&6; }
  15578. if test x$audio_pulseaudio = xyes; then
  15579. # Check whether --enable-pulseaudio-shared was given.
  15580. if test "${enable_pulseaudio_shared+set}" = set; then :
  15581. enableval=$enable_pulseaudio_shared;
  15582. else
  15583. enable_pulseaudio_shared=yes
  15584. fi
  15585. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15586. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15587. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15588. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15589. if test x$have_loadso != xyes && \
  15590. test x$enable_pulseaudio_shared = xyes; then
  15591. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15592. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15593. fi
  15594. if test x$have_loadso = xyes && \
  15595. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15596. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15597. cat >>confdefs.h <<_ACEOF
  15598. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15599. _ACEOF
  15600. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15601. case "$host" in
  15602. # On Solaris, pulseaudio must be linked deferred explicitly
  15603. # to prevent undefined symbol failures.
  15604. *-*-solaris*)
  15605. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15606. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15607. esac
  15608. else
  15609. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15610. SUMMARY_audio="${SUMMARY_audio} pulse"
  15611. fi
  15612. have_audio=yes
  15613. fi
  15614. fi
  15615. }
  15616. CheckARTSC()
  15617. {
  15618. # Check whether --enable-arts was given.
  15619. if test "${enable_arts+set}" = set; then :
  15620. enableval=$enable_arts;
  15621. else
  15622. enable_arts=yes
  15623. fi
  15624. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15625. # Extract the first word of "artsc-config", so it can be a program name with args.
  15626. set dummy artsc-config; ac_word=$2
  15627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15628. $as_echo_n "checking for $ac_word... " >&6; }
  15629. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15630. $as_echo_n "(cached) " >&6
  15631. else
  15632. case $ARTSCONFIG in
  15633. [\\/]* | ?:[\\/]*)
  15634. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15635. ;;
  15636. *)
  15637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15638. for as_dir in $PATH
  15639. do
  15640. IFS=$as_save_IFS
  15641. test -z "$as_dir" && as_dir=.
  15642. for ac_exec_ext in '' $ac_executable_extensions; do
  15643. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15644. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15646. break 2
  15647. fi
  15648. done
  15649. done
  15650. IFS=$as_save_IFS
  15651. ;;
  15652. esac
  15653. fi
  15654. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15655. if test -n "$ARTSCONFIG"; then
  15656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15657. $as_echo "$ARTSCONFIG" >&6; }
  15658. else
  15659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15660. $as_echo "no" >&6; }
  15661. fi
  15662. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15663. : # arts isn't installed
  15664. else
  15665. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15666. ARTS_LIBS=`$ARTSCONFIG --libs`
  15667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15668. $as_echo_n "checking for aRts development environment... " >&6; }
  15669. audio_arts=no
  15670. save_CFLAGS="$CFLAGS"
  15671. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15673. /* end confdefs.h. */
  15674. #include <artsc.h>
  15675. int
  15676. main ()
  15677. {
  15678. arts_stream_t stream;
  15679. ;
  15680. return 0;
  15681. }
  15682. _ACEOF
  15683. if ac_fn_c_try_compile "$LINENO"; then :
  15684. audio_arts=yes
  15685. fi
  15686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15687. CFLAGS="$save_CFLAGS"
  15688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15689. $as_echo "$audio_arts" >&6; }
  15690. if test x$audio_arts = xyes; then
  15691. # Check whether --enable-arts-shared was given.
  15692. if test "${enable_arts_shared+set}" = set; then :
  15693. enableval=$enable_arts_shared;
  15694. else
  15695. enable_arts_shared=yes
  15696. fi
  15697. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15698. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15699. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15700. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15701. if test x$have_loadso != xyes && \
  15702. test x$enable_arts_shared = xyes; then
  15703. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15704. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15705. fi
  15706. if test x$have_loadso = xyes && \
  15707. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15708. echo "-- dynamic libartsc -> $arts_lib"
  15709. cat >>confdefs.h <<_ACEOF
  15710. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15711. _ACEOF
  15712. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15713. else
  15714. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15715. SUMMARY_audio="${SUMMARY_audio} arts"
  15716. fi
  15717. have_audio=yes
  15718. fi
  15719. fi
  15720. fi
  15721. }
  15722. CheckNAS()
  15723. {
  15724. # Check whether --enable-nas was given.
  15725. if test "${enable_nas+set}" = set; then :
  15726. enableval=$enable_nas;
  15727. else
  15728. enable_nas=yes
  15729. fi
  15730. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15731. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15732. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15733. have_nas_hdr=yes
  15734. fi
  15735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15736. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15737. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15738. $as_echo_n "(cached) " >&6
  15739. else
  15740. ac_check_lib_save_LIBS=$LIBS
  15741. LIBS="-laudio $LIBS"
  15742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15743. /* end confdefs.h. */
  15744. /* Override any GCC internal prototype to avoid an error.
  15745. Use char because int might match the return type of a GCC
  15746. builtin and then its argument prototype would still apply. */
  15747. #ifdef __cplusplus
  15748. extern "C"
  15749. #endif
  15750. char AuOpenServer ();
  15751. int
  15752. main ()
  15753. {
  15754. return AuOpenServer ();
  15755. ;
  15756. return 0;
  15757. }
  15758. _ACEOF
  15759. if ac_fn_c_try_link "$LINENO"; then :
  15760. ac_cv_lib_audio_AuOpenServer=yes
  15761. else
  15762. ac_cv_lib_audio_AuOpenServer=no
  15763. fi
  15764. rm -f core conftest.err conftest.$ac_objext \
  15765. conftest$ac_exeext conftest.$ac_ext
  15766. LIBS=$ac_check_lib_save_LIBS
  15767. fi
  15768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15769. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15770. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15771. have_nas_lib=yes
  15772. fi
  15773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15774. $as_echo_n "checking for NAS audio support... " >&6; }
  15775. have_nas=no
  15776. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15777. have_nas=yes
  15778. NAS_LIBS="-laudio"
  15779. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15780. have_nas=yes
  15781. NAS_CFLAGS="-I/usr/X11R6/include/"
  15782. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15783. fi
  15784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15785. $as_echo "$have_nas" >&6; }
  15786. if test x$have_nas = xyes; then
  15787. # Check whether --enable-nas-shared was given.
  15788. if test "${enable_nas_shared+set}" = set; then :
  15789. enableval=$enable_nas_shared;
  15790. else
  15791. enable_nas_shared=yes
  15792. fi
  15793. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15794. if test x$have_loadso != xyes && \
  15795. test x$enable_nas_shared = xyes; then
  15796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15797. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15798. fi
  15799. if test x$have_loadso = xyes && \
  15800. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15801. echo "-- dynamic libaudio -> $nas_lib"
  15802. cat >>confdefs.h <<_ACEOF
  15803. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15804. _ACEOF
  15805. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15806. else
  15807. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15808. SUMMARY_audio="${SUMMARY_audio} nas"
  15809. fi
  15810. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15811. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15812. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15813. have_audio=yes
  15814. fi
  15815. fi
  15816. }
  15817. CheckSNDIO()
  15818. {
  15819. # Check whether --enable-sndio was given.
  15820. if test "${enable_sndio+set}" = set; then :
  15821. enableval=$enable_sndio;
  15822. else
  15823. enable_sndio=yes
  15824. fi
  15825. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15826. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15827. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15828. have_sndio_hdr=yes
  15829. fi
  15830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15831. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15832. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15833. $as_echo_n "(cached) " >&6
  15834. else
  15835. ac_check_lib_save_LIBS=$LIBS
  15836. LIBS="-lsndio $LIBS"
  15837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15838. /* end confdefs.h. */
  15839. /* Override any GCC internal prototype to avoid an error.
  15840. Use char because int might match the return type of a GCC
  15841. builtin and then its argument prototype would still apply. */
  15842. #ifdef __cplusplus
  15843. extern "C"
  15844. #endif
  15845. char sio_open ();
  15846. int
  15847. main ()
  15848. {
  15849. return sio_open ();
  15850. ;
  15851. return 0;
  15852. }
  15853. _ACEOF
  15854. if ac_fn_c_try_link "$LINENO"; then :
  15855. ac_cv_lib_sndio_sio_open=yes
  15856. else
  15857. ac_cv_lib_sndio_sio_open=no
  15858. fi
  15859. rm -f core conftest.err conftest.$ac_objext \
  15860. conftest$ac_exeext conftest.$ac_ext
  15861. LIBS=$ac_check_lib_save_LIBS
  15862. fi
  15863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15864. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15865. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15866. have_sndio_lib=yes
  15867. fi
  15868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15869. $as_echo_n "checking for sndio audio support... " >&6; }
  15870. have_sndio=no
  15871. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15872. have_sndio=yes
  15873. SNDIO_LIBS="-lsndio"
  15874. fi
  15875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15876. $as_echo "$have_sndio" >&6; }
  15877. if test x$have_sndio = xyes; then
  15878. # Check whether --enable-sndio-shared was given.
  15879. if test "${enable_sndio_shared+set}" = set; then :
  15880. enableval=$enable_sndio_shared;
  15881. else
  15882. enable_sndio_shared=yes
  15883. fi
  15884. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15885. if test x$have_loadso != xyes && \
  15886. test x$enable_sndio_shared = xyes; then
  15887. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15888. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15889. fi
  15890. if test x$have_loadso = xyes && \
  15891. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15892. echo "-- dynamic libsndio -> $sndio_lib"
  15893. cat >>confdefs.h <<_ACEOF
  15894. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15895. _ACEOF
  15896. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  15897. else
  15898. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15899. SUMMARY_audio="${SUMMARY_audio} sndio"
  15900. fi
  15901. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15902. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15903. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15904. have_audio=yes
  15905. fi
  15906. fi
  15907. }
  15908. CheckDiskAudio()
  15909. {
  15910. # Check whether --enable-diskaudio was given.
  15911. if test "${enable_diskaudio+set}" = set; then :
  15912. enableval=$enable_diskaudio;
  15913. else
  15914. enable_diskaudio=yes
  15915. fi
  15916. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15917. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15918. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15919. SUMMARY_audio="${SUMMARY_audio} disk"
  15920. fi
  15921. }
  15922. CheckDummyAudio()
  15923. {
  15924. # Check whether --enable-dummyaudio was given.
  15925. if test "${enable_dummyaudio+set}" = set; then :
  15926. enableval=$enable_dummyaudio;
  15927. else
  15928. enable_dummyaudio=yes
  15929. fi
  15930. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15931. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15932. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15933. SUMMARY_audio="${SUMMARY_audio} dummy"
  15934. fi
  15935. }
  15936. CheckVisibilityHidden()
  15937. {
  15938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15939. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15940. have_gcc_fvisibility=no
  15941. visibility_CFLAGS="-fvisibility=hidden"
  15942. save_CFLAGS="$CFLAGS"
  15943. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15945. /* end confdefs.h. */
  15946. #if !defined(__GNUC__) || __GNUC__ < 4
  15947. #error SDL only uses visibility attributes in GCC 4 or newer
  15948. #endif
  15949. int
  15950. main ()
  15951. {
  15952. ;
  15953. return 0;
  15954. }
  15955. _ACEOF
  15956. if ac_fn_c_try_compile "$LINENO"; then :
  15957. have_gcc_fvisibility=yes
  15958. fi
  15959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15961. $as_echo "$have_gcc_fvisibility" >&6; }
  15962. CFLAGS="$save_CFLAGS"
  15963. if test x$have_gcc_fvisibility = xyes; then
  15964. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15965. fi
  15966. }
  15967. CheckStackBoundary()
  15968. {
  15969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  15970. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  15971. have_gcc_preferred_stack_boundary=no
  15972. save_CFLAGS="$CFLAGS"
  15973. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  15974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15975. /* end confdefs.h. */
  15976. int x = 0;
  15977. int
  15978. main ()
  15979. {
  15980. ;
  15981. return 0;
  15982. }
  15983. _ACEOF
  15984. if ac_fn_c_try_compile "$LINENO"; then :
  15985. have_gcc_preferred_stack_boundary=yes
  15986. fi
  15987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  15989. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  15990. CFLAGS="$save_CFLAGS"
  15991. if test x$have_gcc_preferred_stack_boundary = xyes; then
  15992. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  15993. fi
  15994. }
  15995. CheckWarnAll()
  15996. {
  15997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  15998. $as_echo_n "checking for GCC -Wall option... " >&6; }
  15999. have_gcc_Wall=no
  16000. save_CFLAGS="$CFLAGS"
  16001. CFLAGS="$save_CFLAGS -Wall"
  16002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16003. /* end confdefs.h. */
  16004. int x = 0;
  16005. int
  16006. main ()
  16007. {
  16008. ;
  16009. return 0;
  16010. }
  16011. _ACEOF
  16012. if ac_fn_c_try_compile "$LINENO"; then :
  16013. have_gcc_Wall=yes
  16014. fi
  16015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16017. $as_echo "$have_gcc_Wall" >&6; }
  16018. CFLAGS="$save_CFLAGS"
  16019. if test x$have_gcc_Wall = xyes; then
  16020. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16022. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16023. need_gcc_Wno_multichar=no
  16024. case "$host" in
  16025. *-*-haiku*)
  16026. need_gcc_Wno_multichar=yes
  16027. ;;
  16028. esac
  16029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16030. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16031. if test x$need_gcc_Wno_multichar = xyes; then
  16032. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16033. fi
  16034. fi
  16035. }
  16036. CheckWayland()
  16037. {
  16038. # Check whether --enable-video-wayland was given.
  16039. if test "${enable_video_wayland+set}" = set; then :
  16040. enableval=$enable_video_wayland;
  16041. else
  16042. enable_video_wayland=yes
  16043. fi
  16044. # Check whether --enable-video-wayland-qt-touch was given.
  16045. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16046. enableval=$enable_video_wayland_qt_touch;
  16047. else
  16048. enable_video_wayland_qt_touch=yes
  16049. fi
  16050. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16051. # Extract the first word of "pkg-config", so it can be a program name with args.
  16052. set dummy pkg-config; ac_word=$2
  16053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16054. $as_echo_n "checking for $ac_word... " >&6; }
  16055. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16056. $as_echo_n "(cached) " >&6
  16057. else
  16058. case $PKG_CONFIG in
  16059. [\\/]* | ?:[\\/]*)
  16060. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16061. ;;
  16062. *)
  16063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16064. for as_dir in $PATH
  16065. do
  16066. IFS=$as_save_IFS
  16067. test -z "$as_dir" && as_dir=.
  16068. for ac_exec_ext in '' $ac_executable_extensions; do
  16069. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16070. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16071. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16072. break 2
  16073. fi
  16074. done
  16075. done
  16076. IFS=$as_save_IFS
  16077. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16078. ;;
  16079. esac
  16080. fi
  16081. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16082. if test -n "$PKG_CONFIG"; then
  16083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16084. $as_echo "$PKG_CONFIG" >&6; }
  16085. else
  16086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16087. $as_echo "no" >&6; }
  16088. fi
  16089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16090. $as_echo_n "checking for Wayland support... " >&6; }
  16091. video_wayland=no
  16092. if test x$PKG_CONFIG != xno; then
  16093. if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
  16094. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16095. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16096. video_wayland=yes
  16097. fi
  16098. fi
  16099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16100. $as_echo "$video_wayland" >&6; }
  16101. if test x$video_wayland = xyes; then
  16102. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16103. if test x$enable_video_wayland_qt_touch = xyes; then
  16104. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16105. fi
  16106. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16107. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
  16108. # Check whether --enable-wayland-shared was given.
  16109. if test "${enable_wayland_shared+set}" = set; then :
  16110. enableval=$enable_wayland_shared;
  16111. else
  16112. enable_wayland_shared=maybe
  16113. fi
  16114. case "$host" in
  16115. *)
  16116. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16117. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16118. if test x$wayland_egl_lib = x; then
  16119. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16120. fi
  16121. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16122. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16123. ;;
  16124. esac
  16125. if test x$enable_wayland_shared = xmaybe; then
  16126. enable_wayland_shared=yes
  16127. fi
  16128. if test x$have_loadso != xyes && \
  16129. test x$enable_wayland_shared = xyes; then
  16130. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic WAYLAND loading" >&5
  16131. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic WAYLAND loading" >&2;}
  16132. enable_wayland_shared=no
  16133. fi
  16134. if test x$have_loadso = xyes && \
  16135. test x$enable_wayland_shared = xyes && \
  16136. test x$wayland_client_lib != x && \
  16137. test x$wayland_egl_lib != x && \
  16138. test x$wayland_cursor_lib != x && \
  16139. test x$xkbcommon_lib != x; then
  16140. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16141. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16142. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16143. echo "-- dynamic xkbcommon -> $xkbcommon_lib"
  16144. cat >>confdefs.h <<_ACEOF
  16145. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16146. _ACEOF
  16147. cat >>confdefs.h <<_ACEOF
  16148. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16149. _ACEOF
  16150. cat >>confdefs.h <<_ACEOF
  16151. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16152. _ACEOF
  16153. cat >>confdefs.h <<_ACEOF
  16154. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16155. _ACEOF
  16156. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16157. else
  16158. enable_wayland_shared=no
  16159. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16160. SUMMARY_video="${SUMMARY_video} wayland"
  16161. fi
  16162. have_video=yes
  16163. fi
  16164. fi
  16165. }
  16166. CheckX11()
  16167. {
  16168. # Check whether --enable-video-x11 was given.
  16169. if test "${enable_video_x11+set}" = set; then :
  16170. enableval=$enable_video_x11;
  16171. else
  16172. enable_video_x11=yes
  16173. fi
  16174. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16175. case "$host" in
  16176. *-*-darwin*)
  16177. # This isn't necessary for X11, but fixes GLX detection
  16178. if test "x$x_includes" = xNONE && \
  16179. test "x$x_libraries" = xNONE && \
  16180. test -d /usr/X11R6/include && \
  16181. test -d /usr/X11R6/lib; then
  16182. x_includes="/usr/X11R6/include"
  16183. x_libraries="/usr/X11R6/lib"
  16184. fi
  16185. ;;
  16186. esac
  16187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16188. $as_echo_n "checking for X... " >&6; }
  16189. # Check whether --with-x was given.
  16190. if test "${with_x+set}" = set; then :
  16191. withval=$with_x;
  16192. fi
  16193. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16194. if test "x$with_x" = xno; then
  16195. # The user explicitly disabled X.
  16196. have_x=disabled
  16197. else
  16198. case $x_includes,$x_libraries in #(
  16199. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16200. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16201. $as_echo_n "(cached) " >&6
  16202. else
  16203. # One or both of the vars are not set, and there is no cached value.
  16204. ac_x_includes=no ac_x_libraries=no
  16205. rm -f -r conftest.dir
  16206. if mkdir conftest.dir; then
  16207. cd conftest.dir
  16208. cat >Imakefile <<'_ACEOF'
  16209. incroot:
  16210. @echo incroot='${INCROOT}'
  16211. usrlibdir:
  16212. @echo usrlibdir='${USRLIBDIR}'
  16213. libdir:
  16214. @echo libdir='${LIBDIR}'
  16215. _ACEOF
  16216. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16217. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16218. for ac_var in incroot usrlibdir libdir; do
  16219. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16220. done
  16221. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16222. for ac_extension in a so sl dylib la dll; do
  16223. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16224. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16225. ac_im_usrlibdir=$ac_im_libdir; break
  16226. fi
  16227. done
  16228. # Screen out bogus values from the imake configuration. They are
  16229. # bogus both because they are the default anyway, and because
  16230. # using them would break gcc on systems where it needs fixed includes.
  16231. case $ac_im_incroot in
  16232. /usr/include) ac_x_includes= ;;
  16233. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16234. esac
  16235. case $ac_im_usrlibdir in
  16236. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16237. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16238. esac
  16239. fi
  16240. cd ..
  16241. rm -f -r conftest.dir
  16242. fi
  16243. # Standard set of common directories for X headers.
  16244. # Check X11 before X11Rn because it is often a symlink to the current release.
  16245. ac_x_header_dirs='
  16246. /usr/X11/include
  16247. /usr/X11R7/include
  16248. /usr/X11R6/include
  16249. /usr/X11R5/include
  16250. /usr/X11R4/include
  16251. /usr/include/X11
  16252. /usr/include/X11R7
  16253. /usr/include/X11R6
  16254. /usr/include/X11R5
  16255. /usr/include/X11R4
  16256. /usr/local/X11/include
  16257. /usr/local/X11R7/include
  16258. /usr/local/X11R6/include
  16259. /usr/local/X11R5/include
  16260. /usr/local/X11R4/include
  16261. /usr/local/include/X11
  16262. /usr/local/include/X11R7
  16263. /usr/local/include/X11R6
  16264. /usr/local/include/X11R5
  16265. /usr/local/include/X11R4
  16266. /usr/X386/include
  16267. /usr/x386/include
  16268. /usr/XFree86/include/X11
  16269. /usr/include
  16270. /usr/local/include
  16271. /usr/unsupported/include
  16272. /usr/athena/include
  16273. /usr/local/x11r5/include
  16274. /usr/lpp/Xamples/include
  16275. /usr/openwin/include
  16276. /usr/openwin/share/include'
  16277. if test "$ac_x_includes" = no; then
  16278. # Guess where to find include files, by looking for Xlib.h.
  16279. # First, try using that file with no special directory specified.
  16280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16281. /* end confdefs.h. */
  16282. #include <X11/Xlib.h>
  16283. _ACEOF
  16284. if ac_fn_c_try_cpp "$LINENO"; then :
  16285. # We can compile using X headers with no special include directory.
  16286. ac_x_includes=
  16287. else
  16288. for ac_dir in $ac_x_header_dirs; do
  16289. if test -r "$ac_dir/X11/Xlib.h"; then
  16290. ac_x_includes=$ac_dir
  16291. break
  16292. fi
  16293. done
  16294. fi
  16295. rm -f conftest.err conftest.i conftest.$ac_ext
  16296. fi # $ac_x_includes = no
  16297. if test "$ac_x_libraries" = no; then
  16298. # Check for the libraries.
  16299. # See if we find them without any special options.
  16300. # Don't add to $LIBS permanently.
  16301. ac_save_LIBS=$LIBS
  16302. LIBS="-lX11 $LIBS"
  16303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16304. /* end confdefs.h. */
  16305. #include <X11/Xlib.h>
  16306. int
  16307. main ()
  16308. {
  16309. XrmInitialize ()
  16310. ;
  16311. return 0;
  16312. }
  16313. _ACEOF
  16314. if ac_fn_c_try_link "$LINENO"; then :
  16315. LIBS=$ac_save_LIBS
  16316. # We can link X programs with no special library path.
  16317. ac_x_libraries=
  16318. else
  16319. LIBS=$ac_save_LIBS
  16320. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16321. do
  16322. # Don't even attempt the hair of trying to link an X program!
  16323. for ac_extension in a so sl dylib la dll; do
  16324. if test -r "$ac_dir/libX11.$ac_extension"; then
  16325. ac_x_libraries=$ac_dir
  16326. break 2
  16327. fi
  16328. done
  16329. done
  16330. fi
  16331. rm -f core conftest.err conftest.$ac_objext \
  16332. conftest$ac_exeext conftest.$ac_ext
  16333. fi # $ac_x_libraries = no
  16334. case $ac_x_includes,$ac_x_libraries in #(
  16335. no,* | *,no | *\'*)
  16336. # Didn't find X, or a directory has "'" in its name.
  16337. ac_cv_have_x="have_x=no";; #(
  16338. *)
  16339. # Record where we found X for the cache.
  16340. ac_cv_have_x="have_x=yes\
  16341. ac_x_includes='$ac_x_includes'\
  16342. ac_x_libraries='$ac_x_libraries'"
  16343. esac
  16344. fi
  16345. ;; #(
  16346. *) have_x=yes;;
  16347. esac
  16348. eval "$ac_cv_have_x"
  16349. fi # $with_x != no
  16350. if test "$have_x" != yes; then
  16351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16352. $as_echo "$have_x" >&6; }
  16353. no_x=yes
  16354. else
  16355. # If each of the values was on the command line, it overrides each guess.
  16356. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16357. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16358. # Update the cache value to reflect the command line values.
  16359. ac_cv_have_x="have_x=yes\
  16360. ac_x_includes='$x_includes'\
  16361. ac_x_libraries='$x_libraries'"
  16362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16363. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16364. fi
  16365. if test "$no_x" = yes; then
  16366. # Not all programs may use this symbol, but it does not hurt to define it.
  16367. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16368. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16369. else
  16370. if test -n "$x_includes"; then
  16371. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16372. fi
  16373. # It would also be nice to do this for all -L options, not just this one.
  16374. if test -n "$x_libraries"; then
  16375. X_LIBS="$X_LIBS -L$x_libraries"
  16376. # For Solaris; some versions of Sun CC require a space after -R and
  16377. # others require no space. Words are not sufficient . . . .
  16378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16379. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16380. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16381. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16382. ac_c_werror_flag=yes
  16383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16384. /* end confdefs.h. */
  16385. int
  16386. main ()
  16387. {
  16388. ;
  16389. return 0;
  16390. }
  16391. _ACEOF
  16392. if ac_fn_c_try_link "$LINENO"; then :
  16393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16394. $as_echo "no" >&6; }
  16395. X_LIBS="$X_LIBS -R$x_libraries"
  16396. else
  16397. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16399. /* end confdefs.h. */
  16400. int
  16401. main ()
  16402. {
  16403. ;
  16404. return 0;
  16405. }
  16406. _ACEOF
  16407. if ac_fn_c_try_link "$LINENO"; then :
  16408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16409. $as_echo "yes" >&6; }
  16410. X_LIBS="$X_LIBS -R $x_libraries"
  16411. else
  16412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16413. $as_echo "neither works" >&6; }
  16414. fi
  16415. rm -f core conftest.err conftest.$ac_objext \
  16416. conftest$ac_exeext conftest.$ac_ext
  16417. fi
  16418. rm -f core conftest.err conftest.$ac_objext \
  16419. conftest$ac_exeext conftest.$ac_ext
  16420. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16421. LIBS=$ac_xsave_LIBS
  16422. fi
  16423. # Check for system-dependent libraries X programs must link with.
  16424. # Do this before checking for the system-independent R6 libraries
  16425. # (-lICE), since we may need -lsocket or whatever for X linking.
  16426. if test "$ISC" = yes; then
  16427. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16428. else
  16429. # Martyn Johnson says this is needed for Ultrix, if the X
  16430. # libraries were built with DECnet support. And Karl Berry says
  16431. # the Alpha needs dnet_stub (dnet does not exist).
  16432. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16434. /* end confdefs.h. */
  16435. /* Override any GCC internal prototype to avoid an error.
  16436. Use char because int might match the return type of a GCC
  16437. builtin and then its argument prototype would still apply. */
  16438. #ifdef __cplusplus
  16439. extern "C"
  16440. #endif
  16441. char XOpenDisplay ();
  16442. int
  16443. main ()
  16444. {
  16445. return XOpenDisplay ();
  16446. ;
  16447. return 0;
  16448. }
  16449. _ACEOF
  16450. if ac_fn_c_try_link "$LINENO"; then :
  16451. else
  16452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16453. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16454. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16455. $as_echo_n "(cached) " >&6
  16456. else
  16457. ac_check_lib_save_LIBS=$LIBS
  16458. LIBS="-ldnet $LIBS"
  16459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16460. /* end confdefs.h. */
  16461. /* Override any GCC internal prototype to avoid an error.
  16462. Use char because int might match the return type of a GCC
  16463. builtin and then its argument prototype would still apply. */
  16464. #ifdef __cplusplus
  16465. extern "C"
  16466. #endif
  16467. char dnet_ntoa ();
  16468. int
  16469. main ()
  16470. {
  16471. return dnet_ntoa ();
  16472. ;
  16473. return 0;
  16474. }
  16475. _ACEOF
  16476. if ac_fn_c_try_link "$LINENO"; then :
  16477. ac_cv_lib_dnet_dnet_ntoa=yes
  16478. else
  16479. ac_cv_lib_dnet_dnet_ntoa=no
  16480. fi
  16481. rm -f core conftest.err conftest.$ac_objext \
  16482. conftest$ac_exeext conftest.$ac_ext
  16483. LIBS=$ac_check_lib_save_LIBS
  16484. fi
  16485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16486. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16487. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16488. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16489. fi
  16490. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16492. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16493. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16494. $as_echo_n "(cached) " >&6
  16495. else
  16496. ac_check_lib_save_LIBS=$LIBS
  16497. LIBS="-ldnet_stub $LIBS"
  16498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16499. /* end confdefs.h. */
  16500. /* Override any GCC internal prototype to avoid an error.
  16501. Use char because int might match the return type of a GCC
  16502. builtin and then its argument prototype would still apply. */
  16503. #ifdef __cplusplus
  16504. extern "C"
  16505. #endif
  16506. char dnet_ntoa ();
  16507. int
  16508. main ()
  16509. {
  16510. return dnet_ntoa ();
  16511. ;
  16512. return 0;
  16513. }
  16514. _ACEOF
  16515. if ac_fn_c_try_link "$LINENO"; then :
  16516. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16517. else
  16518. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16519. fi
  16520. rm -f core conftest.err conftest.$ac_objext \
  16521. conftest$ac_exeext conftest.$ac_ext
  16522. LIBS=$ac_check_lib_save_LIBS
  16523. fi
  16524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16525. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16526. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16527. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16528. fi
  16529. fi
  16530. fi
  16531. rm -f core conftest.err conftest.$ac_objext \
  16532. conftest$ac_exeext conftest.$ac_ext
  16533. LIBS="$ac_xsave_LIBS"
  16534. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16535. # to get the SysV transport functions.
  16536. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16537. # needs -lnsl.
  16538. # The nsl library prevents programs from opening the X display
  16539. # on Irix 5.2, according to T.E. Dickey.
  16540. # The functions gethostbyname, getservbyname, and inet_addr are
  16541. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16542. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16543. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16544. fi
  16545. if test $ac_cv_func_gethostbyname = no; then
  16546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16547. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16548. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16549. $as_echo_n "(cached) " >&6
  16550. else
  16551. ac_check_lib_save_LIBS=$LIBS
  16552. LIBS="-lnsl $LIBS"
  16553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16554. /* end confdefs.h. */
  16555. /* Override any GCC internal prototype to avoid an error.
  16556. Use char because int might match the return type of a GCC
  16557. builtin and then its argument prototype would still apply. */
  16558. #ifdef __cplusplus
  16559. extern "C"
  16560. #endif
  16561. char gethostbyname ();
  16562. int
  16563. main ()
  16564. {
  16565. return gethostbyname ();
  16566. ;
  16567. return 0;
  16568. }
  16569. _ACEOF
  16570. if ac_fn_c_try_link "$LINENO"; then :
  16571. ac_cv_lib_nsl_gethostbyname=yes
  16572. else
  16573. ac_cv_lib_nsl_gethostbyname=no
  16574. fi
  16575. rm -f core conftest.err conftest.$ac_objext \
  16576. conftest$ac_exeext conftest.$ac_ext
  16577. LIBS=$ac_check_lib_save_LIBS
  16578. fi
  16579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16580. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16581. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16582. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16583. fi
  16584. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16586. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16587. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16588. $as_echo_n "(cached) " >&6
  16589. else
  16590. ac_check_lib_save_LIBS=$LIBS
  16591. LIBS="-lbsd $LIBS"
  16592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16593. /* end confdefs.h. */
  16594. /* Override any GCC internal prototype to avoid an error.
  16595. Use char because int might match the return type of a GCC
  16596. builtin and then its argument prototype would still apply. */
  16597. #ifdef __cplusplus
  16598. extern "C"
  16599. #endif
  16600. char gethostbyname ();
  16601. int
  16602. main ()
  16603. {
  16604. return gethostbyname ();
  16605. ;
  16606. return 0;
  16607. }
  16608. _ACEOF
  16609. if ac_fn_c_try_link "$LINENO"; then :
  16610. ac_cv_lib_bsd_gethostbyname=yes
  16611. else
  16612. ac_cv_lib_bsd_gethostbyname=no
  16613. fi
  16614. rm -f core conftest.err conftest.$ac_objext \
  16615. conftest$ac_exeext conftest.$ac_ext
  16616. LIBS=$ac_check_lib_save_LIBS
  16617. fi
  16618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16619. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16620. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16621. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16622. fi
  16623. fi
  16624. fi
  16625. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16626. # socket/setsockopt and other routines are undefined under SCO ODT
  16627. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16628. # on later versions), says Simon Leinen: it contains gethostby*
  16629. # variants that don't use the name server (or something). -lsocket
  16630. # must be given before -lnsl if both are needed. We assume that
  16631. # if connect needs -lnsl, so does gethostbyname.
  16632. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16633. if test "x$ac_cv_func_connect" = xyes; then :
  16634. fi
  16635. if test $ac_cv_func_connect = no; then
  16636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16637. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16638. if ${ac_cv_lib_socket_connect+:} false; then :
  16639. $as_echo_n "(cached) " >&6
  16640. else
  16641. ac_check_lib_save_LIBS=$LIBS
  16642. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16644. /* end confdefs.h. */
  16645. /* Override any GCC internal prototype to avoid an error.
  16646. Use char because int might match the return type of a GCC
  16647. builtin and then its argument prototype would still apply. */
  16648. #ifdef __cplusplus
  16649. extern "C"
  16650. #endif
  16651. char connect ();
  16652. int
  16653. main ()
  16654. {
  16655. return connect ();
  16656. ;
  16657. return 0;
  16658. }
  16659. _ACEOF
  16660. if ac_fn_c_try_link "$LINENO"; then :
  16661. ac_cv_lib_socket_connect=yes
  16662. else
  16663. ac_cv_lib_socket_connect=no
  16664. fi
  16665. rm -f core conftest.err conftest.$ac_objext \
  16666. conftest$ac_exeext conftest.$ac_ext
  16667. LIBS=$ac_check_lib_save_LIBS
  16668. fi
  16669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16670. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16671. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16672. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16673. fi
  16674. fi
  16675. # Guillermo Gomez says -lposix is necessary on A/UX.
  16676. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16677. if test "x$ac_cv_func_remove" = xyes; then :
  16678. fi
  16679. if test $ac_cv_func_remove = no; then
  16680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16681. $as_echo_n "checking for remove in -lposix... " >&6; }
  16682. if ${ac_cv_lib_posix_remove+:} false; then :
  16683. $as_echo_n "(cached) " >&6
  16684. else
  16685. ac_check_lib_save_LIBS=$LIBS
  16686. LIBS="-lposix $LIBS"
  16687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16688. /* end confdefs.h. */
  16689. /* Override any GCC internal prototype to avoid an error.
  16690. Use char because int might match the return type of a GCC
  16691. builtin and then its argument prototype would still apply. */
  16692. #ifdef __cplusplus
  16693. extern "C"
  16694. #endif
  16695. char remove ();
  16696. int
  16697. main ()
  16698. {
  16699. return remove ();
  16700. ;
  16701. return 0;
  16702. }
  16703. _ACEOF
  16704. if ac_fn_c_try_link "$LINENO"; then :
  16705. ac_cv_lib_posix_remove=yes
  16706. else
  16707. ac_cv_lib_posix_remove=no
  16708. fi
  16709. rm -f core conftest.err conftest.$ac_objext \
  16710. conftest$ac_exeext conftest.$ac_ext
  16711. LIBS=$ac_check_lib_save_LIBS
  16712. fi
  16713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16714. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16715. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16716. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16717. fi
  16718. fi
  16719. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16720. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16721. if test "x$ac_cv_func_shmat" = xyes; then :
  16722. fi
  16723. if test $ac_cv_func_shmat = no; then
  16724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16725. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16726. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16727. $as_echo_n "(cached) " >&6
  16728. else
  16729. ac_check_lib_save_LIBS=$LIBS
  16730. LIBS="-lipc $LIBS"
  16731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16732. /* end confdefs.h. */
  16733. /* Override any GCC internal prototype to avoid an error.
  16734. Use char because int might match the return type of a GCC
  16735. builtin and then its argument prototype would still apply. */
  16736. #ifdef __cplusplus
  16737. extern "C"
  16738. #endif
  16739. char shmat ();
  16740. int
  16741. main ()
  16742. {
  16743. return shmat ();
  16744. ;
  16745. return 0;
  16746. }
  16747. _ACEOF
  16748. if ac_fn_c_try_link "$LINENO"; then :
  16749. ac_cv_lib_ipc_shmat=yes
  16750. else
  16751. ac_cv_lib_ipc_shmat=no
  16752. fi
  16753. rm -f core conftest.err conftest.$ac_objext \
  16754. conftest$ac_exeext conftest.$ac_ext
  16755. LIBS=$ac_check_lib_save_LIBS
  16756. fi
  16757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16758. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16759. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16760. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16761. fi
  16762. fi
  16763. fi
  16764. # Check for libraries that X11R6 Xt/Xaw programs need.
  16765. ac_save_LDFLAGS=$LDFLAGS
  16766. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16767. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16768. # check for ICE first), but we must link in the order -lSM -lICE or
  16769. # we get undefined symbols. So assume we have SM if we have ICE.
  16770. # These have to be linked with before -lX11, unlike the other
  16771. # libraries we check for below, so use a different variable.
  16772. # John Interrante, Karl Berry
  16773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16774. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16775. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16776. $as_echo_n "(cached) " >&6
  16777. else
  16778. ac_check_lib_save_LIBS=$LIBS
  16779. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  16780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16781. /* end confdefs.h. */
  16782. /* Override any GCC internal prototype to avoid an error.
  16783. Use char because int might match the return type of a GCC
  16784. builtin and then its argument prototype would still apply. */
  16785. #ifdef __cplusplus
  16786. extern "C"
  16787. #endif
  16788. char IceConnectionNumber ();
  16789. int
  16790. main ()
  16791. {
  16792. return IceConnectionNumber ();
  16793. ;
  16794. return 0;
  16795. }
  16796. _ACEOF
  16797. if ac_fn_c_try_link "$LINENO"; then :
  16798. ac_cv_lib_ICE_IceConnectionNumber=yes
  16799. else
  16800. ac_cv_lib_ICE_IceConnectionNumber=no
  16801. fi
  16802. rm -f core conftest.err conftest.$ac_objext \
  16803. conftest$ac_exeext conftest.$ac_ext
  16804. LIBS=$ac_check_lib_save_LIBS
  16805. fi
  16806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  16807. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  16808. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  16809. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  16810. fi
  16811. LDFLAGS=$ac_save_LDFLAGS
  16812. fi
  16813. if test x$have_x = xyes; then
  16814. # Check whether --enable-x11-shared was given.
  16815. if test "${enable_x11_shared+set}" = set; then :
  16816. enableval=$enable_x11_shared;
  16817. else
  16818. enable_x11_shared=maybe
  16819. fi
  16820. case "$host" in
  16821. *-*-darwin*)
  16822. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  16823. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  16824. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  16825. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  16826. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  16827. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  16828. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  16829. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  16830. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  16831. ;;
  16832. *-*-openbsd*)
  16833. x11_lib='libX11.so'
  16834. x11ext_lib='libXext.so'
  16835. xcursor_lib='libXcursor.so'
  16836. xinerama_lib='libXinerama.so'
  16837. xinput_lib='libXi.so'
  16838. xrandr_lib='libXrandr.so'
  16839. xrender_lib='libXrender.so'
  16840. xss_lib='libXss.so'
  16841. xvidmode_lib='libXxf86vm.so'
  16842. ;;
  16843. *)
  16844. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16845. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16846. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16847. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16848. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16849. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16850. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16851. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16852. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16853. ;;
  16854. esac
  16855. if test x$ac_cv_func_shmat != xyes; then
  16856. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  16857. fi
  16858. CFLAGS="$CFLAGS $X_CFLAGS"
  16859. LDFLAGS="$LDFLAGS $X_LIBS"
  16860. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  16861. #include <X11/Xproto.h>
  16862. "
  16863. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  16864. have_xext_h_hdr=yes
  16865. else
  16866. have_xext_h_hdr=no
  16867. fi
  16868. if test x$have_xext_h_hdr != xyes; then
  16869. as_fn_error $? "
  16870. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  16871. " "$LINENO" 5
  16872. fi
  16873. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  16874. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  16875. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  16876. # Needed so SDL applications can include SDL_syswm.h
  16877. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  16878. if test x$enable_x11_shared = xmaybe; then
  16879. enable_x11_shared=yes
  16880. fi
  16881. if test x$have_loadso != xyes && \
  16882. test x$enable_x11_shared = xyes; then
  16883. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  16884. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  16885. enable_x11_shared=no
  16886. fi
  16887. if test x$have_loadso = xyes && \
  16888. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  16889. echo "-- dynamic libX11 -> $x11_lib"
  16890. echo "-- dynamic libX11ext -> $x11ext_lib"
  16891. cat >>confdefs.h <<_ACEOF
  16892. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  16893. _ACEOF
  16894. cat >>confdefs.h <<_ACEOF
  16895. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  16896. _ACEOF
  16897. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  16898. else
  16899. enable_x11_shared=no
  16900. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  16901. SUMMARY_video="${SUMMARY_video} x11"
  16902. fi
  16903. have_video=yes
  16904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  16905. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  16906. have_const_param_XextAddDisplay=no
  16907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16908. /* end confdefs.h. */
  16909. #include <X11/Xlib.h>
  16910. #include <X11/Xproto.h>
  16911. #include <X11/extensions/Xext.h>
  16912. #include <X11/extensions/extutil.h>
  16913. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  16914. int
  16915. main ()
  16916. {
  16917. ;
  16918. return 0;
  16919. }
  16920. _ACEOF
  16921. if ac_fn_c_try_compile "$LINENO"; then :
  16922. have_const_param_XextAddDisplay=yes
  16923. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  16924. fi
  16925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  16927. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  16928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to _XData32" >&5
  16929. $as_echo_n "checking for const parameter to _XData32... " >&6; }
  16930. have_const_param_xdata32=no
  16931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16932. /* end confdefs.h. */
  16933. #include <X11/Xlibint.h>
  16934. extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
  16935. int
  16936. main ()
  16937. {
  16938. ;
  16939. return 0;
  16940. }
  16941. _ACEOF
  16942. if ac_fn_c_try_compile "$LINENO"; then :
  16943. have_const_param_xdata32=yes
  16944. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1" >>confdefs.h
  16945. fi
  16946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_xdata32" >&5
  16948. $as_echo "$have_const_param_xdata32" >&6; }
  16949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  16950. $as_echo_n "checking for XGenericEvent... " >&6; }
  16951. have_XGenericEvent=no
  16952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16953. /* end confdefs.h. */
  16954. #include <X11/Xlib.h>
  16955. int
  16956. main ()
  16957. {
  16958. Display *display;
  16959. XEvent event;
  16960. XGenericEventCookie *cookie = &event.xcookie;
  16961. XNextEvent(display, &event);
  16962. XGetEventData(display, cookie);
  16963. XFreeEventData(display, cookie);
  16964. ;
  16965. return 0;
  16966. }
  16967. _ACEOF
  16968. if ac_fn_c_try_compile "$LINENO"; then :
  16969. have_XGenericEvent=yes
  16970. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  16971. fi
  16972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  16974. $as_echo "$have_XGenericEvent" >&6; }
  16975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  16976. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  16977. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  16978. $as_echo_n "(cached) " >&6
  16979. else
  16980. ac_check_lib_save_LIBS=$LIBS
  16981. LIBS="-lX11 $LIBS"
  16982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16983. /* end confdefs.h. */
  16984. /* Override any GCC internal prototype to avoid an error.
  16985. Use char because int might match the return type of a GCC
  16986. builtin and then its argument prototype would still apply. */
  16987. #ifdef __cplusplus
  16988. extern "C"
  16989. #endif
  16990. char XkbKeycodeToKeysym ();
  16991. int
  16992. main ()
  16993. {
  16994. return XkbKeycodeToKeysym ();
  16995. ;
  16996. return 0;
  16997. }
  16998. _ACEOF
  16999. if ac_fn_c_try_link "$LINENO"; then :
  17000. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17001. else
  17002. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17003. fi
  17004. rm -f core conftest.err conftest.$ac_objext \
  17005. conftest$ac_exeext conftest.$ac_ext
  17006. LIBS=$ac_check_lib_save_LIBS
  17007. fi
  17008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17009. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17010. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17011. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17012. fi
  17013. # Check whether --enable-video-x11-xcursor was given.
  17014. if test "${enable_video_x11_xcursor+set}" = set; then :
  17015. enableval=$enable_video_x11_xcursor;
  17016. else
  17017. enable_video_x11_xcursor=yes
  17018. fi
  17019. if test x$enable_video_x11_xcursor = xyes; then
  17020. definitely_enable_video_x11_xcursor=no
  17021. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17022. "
  17023. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17024. have_xcursor_h_hdr=yes
  17025. else
  17026. have_xcursor_h_hdr=no
  17027. fi
  17028. if test x$have_xcursor_h_hdr = xyes; then
  17029. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17030. echo "-- dynamic libXcursor -> $xcursor_lib"
  17031. cat >>confdefs.h <<_ACEOF
  17032. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17033. _ACEOF
  17034. definitely_enable_video_x11_xcursor=yes
  17035. else
  17036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17037. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17038. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17039. $as_echo_n "(cached) " >&6
  17040. else
  17041. ac_check_lib_save_LIBS=$LIBS
  17042. LIBS="-lXcursor $LIBS"
  17043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17044. /* end confdefs.h. */
  17045. /* Override any GCC internal prototype to avoid an error.
  17046. Use char because int might match the return type of a GCC
  17047. builtin and then its argument prototype would still apply. */
  17048. #ifdef __cplusplus
  17049. extern "C"
  17050. #endif
  17051. char XcursorImageCreate ();
  17052. int
  17053. main ()
  17054. {
  17055. return XcursorImageCreate ();
  17056. ;
  17057. return 0;
  17058. }
  17059. _ACEOF
  17060. if ac_fn_c_try_link "$LINENO"; then :
  17061. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17062. else
  17063. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17064. fi
  17065. rm -f core conftest.err conftest.$ac_objext \
  17066. conftest$ac_exeext conftest.$ac_ext
  17067. LIBS=$ac_check_lib_save_LIBS
  17068. fi
  17069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17070. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17071. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17072. have_xcursor_lib=yes
  17073. fi
  17074. if test x$have_xcursor_lib = xyes ; then
  17075. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17076. definitely_enable_video_x11_xcursor=yes
  17077. fi
  17078. fi
  17079. fi
  17080. fi
  17081. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17082. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17083. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17084. fi
  17085. # Check whether --enable-video-x11-xinerama was given.
  17086. if test "${enable_video_x11_xinerama+set}" = set; then :
  17087. enableval=$enable_video_x11_xinerama;
  17088. else
  17089. enable_video_x11_xinerama=yes
  17090. fi
  17091. if test x$enable_video_x11_xinerama = xyes; then
  17092. definitely_enable_video_x11_xinerama=no
  17093. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17094. "
  17095. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17096. have_xinerama_h_hdr=yes
  17097. else
  17098. have_xinerama_h_hdr=no
  17099. fi
  17100. if test x$have_xinerama_h_hdr = xyes; then
  17101. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17102. echo "-- dynamic libXinerama -> $xinerama_lib"
  17103. cat >>confdefs.h <<_ACEOF
  17104. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17105. _ACEOF
  17106. definitely_enable_video_x11_xinerama=yes
  17107. else
  17108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17109. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17110. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17111. $as_echo_n "(cached) " >&6
  17112. else
  17113. ac_check_lib_save_LIBS=$LIBS
  17114. LIBS="-lXinerama $LIBS"
  17115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17116. /* end confdefs.h. */
  17117. /* Override any GCC internal prototype to avoid an error.
  17118. Use char because int might match the return type of a GCC
  17119. builtin and then its argument prototype would still apply. */
  17120. #ifdef __cplusplus
  17121. extern "C"
  17122. #endif
  17123. char XineramaQueryExtension ();
  17124. int
  17125. main ()
  17126. {
  17127. return XineramaQueryExtension ();
  17128. ;
  17129. return 0;
  17130. }
  17131. _ACEOF
  17132. if ac_fn_c_try_link "$LINENO"; then :
  17133. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17134. else
  17135. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17136. fi
  17137. rm -f core conftest.err conftest.$ac_objext \
  17138. conftest$ac_exeext conftest.$ac_ext
  17139. LIBS=$ac_check_lib_save_LIBS
  17140. fi
  17141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17142. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17143. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17144. have_xinerama_lib=yes
  17145. fi
  17146. if test x$have_xinerama_lib = xyes ; then
  17147. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17148. definitely_enable_video_x11_xinerama=yes
  17149. fi
  17150. fi
  17151. fi
  17152. fi
  17153. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17154. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17155. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17156. fi
  17157. # Check whether --enable-video-x11-xinput was given.
  17158. if test "${enable_video_x11_xinput+set}" = set; then :
  17159. enableval=$enable_video_x11_xinput;
  17160. else
  17161. enable_video_x11_xinput=yes
  17162. fi
  17163. if test x$enable_video_x11_xinput = xyes; then
  17164. definitely_enable_video_x11_xinput=no
  17165. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17166. "
  17167. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17168. have_xinput_h_hdr=yes
  17169. else
  17170. have_xinput_h_hdr=no
  17171. fi
  17172. if test x$have_xinput_h_hdr = xyes; then
  17173. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17174. echo "-- dynamic libXi -> $xinput_lib"
  17175. cat >>confdefs.h <<_ACEOF
  17176. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17177. _ACEOF
  17178. definitely_enable_video_x11_xinput=yes
  17179. else
  17180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17181. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17182. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17183. $as_echo_n "(cached) " >&6
  17184. else
  17185. ac_check_lib_save_LIBS=$LIBS
  17186. LIBS="-lXi $LIBS"
  17187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17188. /* end confdefs.h. */
  17189. /* Override any GCC internal prototype to avoid an error.
  17190. Use char because int might match the return type of a GCC
  17191. builtin and then its argument prototype would still apply. */
  17192. #ifdef __cplusplus
  17193. extern "C"
  17194. #endif
  17195. char XOpenDevice ();
  17196. int
  17197. main ()
  17198. {
  17199. return XOpenDevice ();
  17200. ;
  17201. return 0;
  17202. }
  17203. _ACEOF
  17204. if ac_fn_c_try_link "$LINENO"; then :
  17205. ac_cv_lib_Xi_XOpenDevice=yes
  17206. else
  17207. ac_cv_lib_Xi_XOpenDevice=no
  17208. fi
  17209. rm -f core conftest.err conftest.$ac_objext \
  17210. conftest$ac_exeext conftest.$ac_ext
  17211. LIBS=$ac_check_lib_save_LIBS
  17212. fi
  17213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17214. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17215. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17216. have_xinput_lib=yes
  17217. fi
  17218. if test x$have_xinput_lib = xyes ; then
  17219. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17220. definitely_enable_video_x11_xinput=yes
  17221. fi
  17222. fi
  17223. fi
  17224. fi
  17225. if test x$definitely_enable_video_x11_xinput = xyes; then
  17226. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17227. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17229. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17230. have_xinput2_multitouch=no
  17231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17232. /* end confdefs.h. */
  17233. #include <X11/Xlib.h>
  17234. #include <X11/Xproto.h>
  17235. #include <X11/extensions/XInput2.h>
  17236. int
  17237. main ()
  17238. {
  17239. int event_type = XI_TouchBegin;
  17240. XITouchClassInfo *t;
  17241. Status
  17242. XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f)
  17243. {
  17244. return (Status)0;
  17245. }
  17246. ;
  17247. return 0;
  17248. }
  17249. _ACEOF
  17250. if ac_fn_c_try_compile "$LINENO"; then :
  17251. have_xinput2_multitouch=yes
  17252. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17253. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17254. fi
  17255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17257. $as_echo "$have_xinput2_multitouch" >&6; }
  17258. fi
  17259. # Check whether --enable-video-x11-xrandr was given.
  17260. if test "${enable_video_x11_xrandr+set}" = set; then :
  17261. enableval=$enable_video_x11_xrandr;
  17262. else
  17263. enable_video_x11_xrandr=yes
  17264. fi
  17265. if test x$enable_video_x11_xrandr = xyes; then
  17266. definitely_enable_video_x11_xrandr=no
  17267. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "#include <X11/Xlib.h>
  17268. "
  17269. if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then :
  17270. have_xrandr_h_hdr=yes
  17271. else
  17272. have_xrandr_h_hdr=no
  17273. fi
  17274. if test x$have_xrandr_h_hdr = xyes; then
  17275. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17276. echo "-- dynamic libXrandr -> $xrandr_lib"
  17277. cat >>confdefs.h <<_ACEOF
  17278. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17279. _ACEOF
  17280. definitely_enable_video_x11_xrandr=yes
  17281. else
  17282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17283. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17284. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17285. $as_echo_n "(cached) " >&6
  17286. else
  17287. ac_check_lib_save_LIBS=$LIBS
  17288. LIBS="-lXrandr $LIBS"
  17289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17290. /* end confdefs.h. */
  17291. /* Override any GCC internal prototype to avoid an error.
  17292. Use char because int might match the return type of a GCC
  17293. builtin and then its argument prototype would still apply. */
  17294. #ifdef __cplusplus
  17295. extern "C"
  17296. #endif
  17297. char XRRQueryExtension ();
  17298. int
  17299. main ()
  17300. {
  17301. return XRRQueryExtension ();
  17302. ;
  17303. return 0;
  17304. }
  17305. _ACEOF
  17306. if ac_fn_c_try_link "$LINENO"; then :
  17307. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17308. else
  17309. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17310. fi
  17311. rm -f core conftest.err conftest.$ac_objext \
  17312. conftest$ac_exeext conftest.$ac_ext
  17313. LIBS=$ac_check_lib_save_LIBS
  17314. fi
  17315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17316. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17317. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17318. have_xrandr_lib=yes
  17319. fi
  17320. if test x$have_xrandr_lib = xyes ; then
  17321. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17322. definitely_enable_video_x11_xrandr=yes
  17323. fi
  17324. fi
  17325. fi
  17326. fi
  17327. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17328. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17329. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17330. fi
  17331. # Check whether --enable-video-x11-scrnsaver was given.
  17332. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17333. enableval=$enable_video_x11_scrnsaver;
  17334. else
  17335. enable_video_x11_scrnsaver=yes
  17336. fi
  17337. if test x$enable_video_x11_scrnsaver = xyes; then
  17338. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17339. "
  17340. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17341. have_scrnsaver_h_hdr=yes
  17342. else
  17343. have_scrnsaver_h_hdr=no
  17344. fi
  17345. if test x$have_scrnsaver_h_hdr = xyes; then
  17346. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17347. echo "-- dynamic libXss -> $xss_lib"
  17348. cat >>confdefs.h <<_ACEOF
  17349. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17350. _ACEOF
  17351. definitely_enable_video_x11_scrnsaver=yes
  17352. else
  17353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17354. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17355. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17356. $as_echo_n "(cached) " >&6
  17357. else
  17358. ac_check_lib_save_LIBS=$LIBS
  17359. LIBS="-lXss $LIBS"
  17360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17361. /* end confdefs.h. */
  17362. /* Override any GCC internal prototype to avoid an error.
  17363. Use char because int might match the return type of a GCC
  17364. builtin and then its argument prototype would still apply. */
  17365. #ifdef __cplusplus
  17366. extern "C"
  17367. #endif
  17368. char XScreenSaverSuspend ();
  17369. int
  17370. main ()
  17371. {
  17372. return XScreenSaverSuspend ();
  17373. ;
  17374. return 0;
  17375. }
  17376. _ACEOF
  17377. if ac_fn_c_try_link "$LINENO"; then :
  17378. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17379. else
  17380. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17381. fi
  17382. rm -f core conftest.err conftest.$ac_objext \
  17383. conftest$ac_exeext conftest.$ac_ext
  17384. LIBS=$ac_check_lib_save_LIBS
  17385. fi
  17386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17387. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17388. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17389. have_xss_lib=yes
  17390. fi
  17391. if test x$have_xss_lib = xyes ; then
  17392. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17393. definitely_enable_video_x11_scrnsaver=yes
  17394. fi
  17395. fi
  17396. fi
  17397. fi
  17398. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17399. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17400. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17401. fi
  17402. # Check whether --enable-video-x11-xshape was given.
  17403. if test "${enable_video_x11_xshape+set}" = set; then :
  17404. enableval=$enable_video_x11_xshape;
  17405. else
  17406. enable_video_x11_xshape=yes
  17407. fi
  17408. if test x$enable_video_x11_xshape = xyes; then
  17409. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17410. "
  17411. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17412. have_shape_h_hdr=yes
  17413. else
  17414. have_shape_h_hdr=no
  17415. fi
  17416. if test x$have_shape_h_hdr = xyes; then
  17417. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17418. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17419. fi
  17420. fi
  17421. # Check whether --enable-video-x11-vm was given.
  17422. if test "${enable_video_x11_vm+set}" = set; then :
  17423. enableval=$enable_video_x11_vm;
  17424. else
  17425. enable_video_x11_vm=yes
  17426. fi
  17427. if test x$enable_video_x11_vm = xyes; then
  17428. definitely_enable_video_x11_vm=no
  17429. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17430. "
  17431. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17432. have_vm_h_hdr=yes
  17433. else
  17434. have_vm_h_hdr=no
  17435. fi
  17436. if test x$have_vm_h_hdr = xyes; then
  17437. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17438. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17439. cat >>confdefs.h <<_ACEOF
  17440. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17441. _ACEOF
  17442. definitely_enable_video_x11_vm=yes
  17443. else
  17444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17445. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17446. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17447. $as_echo_n "(cached) " >&6
  17448. else
  17449. ac_check_lib_save_LIBS=$LIBS
  17450. LIBS="-lXxf86vm $LIBS"
  17451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17452. /* end confdefs.h. */
  17453. /* Override any GCC internal prototype to avoid an error.
  17454. Use char because int might match the return type of a GCC
  17455. builtin and then its argument prototype would still apply. */
  17456. #ifdef __cplusplus
  17457. extern "C"
  17458. #endif
  17459. char XF86VidModeQueryVersion ();
  17460. int
  17461. main ()
  17462. {
  17463. return XF86VidModeQueryVersion ();
  17464. ;
  17465. return 0;
  17466. }
  17467. _ACEOF
  17468. if ac_fn_c_try_link "$LINENO"; then :
  17469. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17470. else
  17471. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17472. fi
  17473. rm -f core conftest.err conftest.$ac_objext \
  17474. conftest$ac_exeext conftest.$ac_ext
  17475. LIBS=$ac_check_lib_save_LIBS
  17476. fi
  17477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17478. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17479. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17480. have_vm_lib=yes
  17481. fi
  17482. if test x$have_vm_lib = xyes ; then
  17483. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17484. definitely_enable_video_x11_vm=yes
  17485. fi
  17486. fi
  17487. fi
  17488. fi
  17489. if test x$definitely_enable_video_x11_vm = xyes; then
  17490. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17491. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  17492. fi
  17493. fi
  17494. fi
  17495. }
  17496. CheckHaikuVideo()
  17497. {
  17498. if test x$enable_video = xyes; then
  17499. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17500. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17501. have_video=yes
  17502. SUMMARY_video="${SUMMARY_video} haiku"
  17503. fi
  17504. }
  17505. CheckCOCOA()
  17506. {
  17507. # Check whether --enable-video-cocoa was given.
  17508. if test "${enable_video_cocoa+set}" = set; then :
  17509. enableval=$enable_video_cocoa;
  17510. else
  17511. enable_video_cocoa=yes
  17512. fi
  17513. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17514. save_CFLAGS="$CFLAGS"
  17515. CFLAGS="$CFLAGS -x objective-c"
  17516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17517. $as_echo_n "checking for Cocoa framework... " >&6; }
  17518. have_cocoa=no
  17519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17520. /* end confdefs.h. */
  17521. #import <Cocoa/Cocoa.h>
  17522. int
  17523. main ()
  17524. {
  17525. ;
  17526. return 0;
  17527. }
  17528. _ACEOF
  17529. if ac_fn_c_try_compile "$LINENO"; then :
  17530. have_cocoa=yes
  17531. fi
  17532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17534. $as_echo "$have_cocoa" >&6; }
  17535. CFLAGS="$save_CFLAGS"
  17536. if test x$have_cocoa = xyes; then
  17537. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17538. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17539. SUMMARY_video="${SUMMARY_video} cocoa"
  17540. have_video=yes
  17541. fi
  17542. fi
  17543. }
  17544. CheckDirectFB()
  17545. {
  17546. # Check whether --enable-video-directfb was given.
  17547. if test "${enable_video_directfb+set}" = set; then :
  17548. enableval=$enable_video_directfb;
  17549. else
  17550. enable_video_directfb=no
  17551. fi
  17552. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17553. video_directfb=no
  17554. DIRECTFB_REQUIRED_VERSION=1.0.0
  17555. for ac_prog in directfb-config
  17556. do
  17557. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17558. set dummy $ac_prog; ac_word=$2
  17559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17560. $as_echo_n "checking for $ac_word... " >&6; }
  17561. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17562. $as_echo_n "(cached) " >&6
  17563. else
  17564. case $DIRECTFBCONFIG in
  17565. [\\/]* | ?:[\\/]*)
  17566. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17567. ;;
  17568. *)
  17569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17570. as_dummy="$prefix/bin:$PATH"
  17571. for as_dir in $as_dummy
  17572. do
  17573. IFS=$as_save_IFS
  17574. test -z "$as_dir" && as_dir=.
  17575. for ac_exec_ext in '' $ac_executable_extensions; do
  17576. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17577. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17578. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17579. break 2
  17580. fi
  17581. done
  17582. done
  17583. IFS=$as_save_IFS
  17584. ;;
  17585. esac
  17586. fi
  17587. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17588. if test -n "$DIRECTFBCONFIG"; then
  17589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17590. $as_echo "$DIRECTFBCONFIG" >&6; }
  17591. else
  17592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17593. $as_echo "no" >&6; }
  17594. fi
  17595. test -n "$DIRECTFBCONFIG" && break
  17596. done
  17597. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17598. if test x$DIRECTFBCONFIG = xno; then
  17599. # Extract the first word of "pkg-config", so it can be a program name with args.
  17600. set dummy pkg-config; ac_word=$2
  17601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17602. $as_echo_n "checking for $ac_word... " >&6; }
  17603. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17604. $as_echo_n "(cached) " >&6
  17605. else
  17606. case $PKG_CONFIG in
  17607. [\\/]* | ?:[\\/]*)
  17608. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17609. ;;
  17610. *)
  17611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17612. for as_dir in $PATH
  17613. do
  17614. IFS=$as_save_IFS
  17615. test -z "$as_dir" && as_dir=.
  17616. for ac_exec_ext in '' $ac_executable_extensions; do
  17617. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17618. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17620. break 2
  17621. fi
  17622. done
  17623. done
  17624. IFS=$as_save_IFS
  17625. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17626. ;;
  17627. esac
  17628. fi
  17629. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17630. if test -n "$PKG_CONFIG"; then
  17631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17632. $as_echo "$PKG_CONFIG" >&6; }
  17633. else
  17634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17635. $as_echo "no" >&6; }
  17636. fi
  17637. if test x$PKG_CONFIG != xno; then
  17638. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17639. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17640. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17641. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17642. video_directfb=yes
  17643. fi
  17644. fi
  17645. else
  17646. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17647. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17648. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17649. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17650. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17651. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17652. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17653. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17654. video_directfb=yes
  17655. fi
  17656. fi
  17657. if test x$video_directfb = xyes; then
  17658. # SuSE 11.1 installs directfb-config without directfb-devel
  17659. save_CPPFLAGS="$CPPFLAGS"
  17660. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17661. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17662. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17663. have_directfb_hdr=yes
  17664. else
  17665. have_directfb_hdr=no
  17666. fi
  17667. CPPFLAGS="$save_CPPFLAGS"
  17668. video_directfb=$have_directfb_hdr
  17669. fi
  17670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17671. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17673. $as_echo "$video_directfb" >&6; }
  17674. if test x$video_directfb = xyes; then
  17675. # Check whether --enable-directfb-shared was given.
  17676. if test "${enable_directfb_shared+set}" = set; then :
  17677. enableval=$enable_directfb_shared;
  17678. else
  17679. enable_directfb_shared=yes
  17680. fi
  17681. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17682. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17683. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17684. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17686. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17687. directfb_shared=no
  17688. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17689. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17691. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17692. if test x$have_loadso != xyes && \
  17693. test x$enable_directfb_shared = xyes; then
  17694. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17695. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17696. fi
  17697. if test x$have_loadso = xyes && \
  17698. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17699. directfb_shared=yes
  17700. echo "-- $directfb_lib_spec -> $directfb_lib"
  17701. cat >>confdefs.h <<_ACEOF
  17702. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17703. _ACEOF
  17704. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  17705. else
  17706. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17707. SUMMARY_video="${SUMMARY_video} directfb"
  17708. fi
  17709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17710. $as_echo "$directfb_shared" >&6; }
  17711. have_video=yes
  17712. fi
  17713. fi
  17714. }
  17715. CheckFusionSound()
  17716. {
  17717. # Check whether --enable-fusionsound was given.
  17718. if test "${enable_fusionsound+set}" = set; then :
  17719. enableval=$enable_fusionsound;
  17720. else
  17721. enable_fusionsound=no
  17722. fi
  17723. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17724. fusionsound=no
  17725. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  17726. # Extract the first word of "pkg-config", so it can be a program name with args.
  17727. set dummy pkg-config; ac_word=$2
  17728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17729. $as_echo_n "checking for $ac_word... " >&6; }
  17730. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17731. $as_echo_n "(cached) " >&6
  17732. else
  17733. case $PKG_CONFIG in
  17734. [\\/]* | ?:[\\/]*)
  17735. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17736. ;;
  17737. *)
  17738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17739. for as_dir in $PATH
  17740. do
  17741. IFS=$as_save_IFS
  17742. test -z "$as_dir" && as_dir=.
  17743. for ac_exec_ext in '' $ac_executable_extensions; do
  17744. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17745. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17747. break 2
  17748. fi
  17749. done
  17750. done
  17751. IFS=$as_save_IFS
  17752. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17753. ;;
  17754. esac
  17755. fi
  17756. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17757. if test -n "$PKG_CONFIG"; then
  17758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17759. $as_echo "$PKG_CONFIG" >&6; }
  17760. else
  17761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17762. $as_echo "no" >&6; }
  17763. fi
  17764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  17765. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  17766. if test x$PKG_CONFIG != xno; then
  17767. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  17768. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  17769. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  17770. fusionsound=yes
  17771. fi
  17772. fi
  17773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  17774. $as_echo "$fusionsound" >&6; }
  17775. if test x$fusionsound = xyes; then
  17776. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17777. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17778. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17779. # Check whether --enable-fusionsound-shared was given.
  17780. if test "${enable_fusionsound_shared+set}" = set; then :
  17781. enableval=$enable_fusionsound_shared;
  17782. else
  17783. enable_fusionsound_shared=yes
  17784. fi
  17785. fusionsound_shared=no
  17786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17787. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17788. if test x$have_loadso != xyes && \
  17789. test x$enable_fusionsound_shared = xyes; then
  17790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17791. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17792. fi
  17793. if test x$have_loadso = xyes && \
  17794. test x$enable_fusionsound_shared = xyes; then
  17795. cat >>confdefs.h <<_ACEOF
  17796. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17797. _ACEOF
  17798. fusionsound_shared=yes
  17799. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17800. else
  17801. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17802. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17803. fi
  17804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17805. $as_echo "$fusionsound_shared" >&6; }
  17806. have_audio=yes
  17807. fi
  17808. fi
  17809. }
  17810. CheckDummyVideo()
  17811. {
  17812. # Check whether --enable-video-dummy was given.
  17813. if test "${enable_video_dummy+set}" = set; then :
  17814. enableval=$enable_video_dummy;
  17815. else
  17816. enable_video_dummy=yes
  17817. fi
  17818. if test x$enable_video_dummy = xyes; then
  17819. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  17820. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  17821. have_video=yes
  17822. SUMMARY_video="${SUMMARY_video} dummy"
  17823. fi
  17824. }
  17825. # Check whether --enable-video-opengl was given.
  17826. if test "${enable_video_opengl+set}" = set; then :
  17827. enableval=$enable_video_opengl;
  17828. else
  17829. enable_video_opengl=yes
  17830. fi
  17831. CheckOpenGLX11()
  17832. {
  17833. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  17835. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  17836. video_opengl=no
  17837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17838. /* end confdefs.h. */
  17839. #include <GL/gl.h>
  17840. #include <GL/glx.h>
  17841. int
  17842. main ()
  17843. {
  17844. ;
  17845. return 0;
  17846. }
  17847. _ACEOF
  17848. if ac_fn_c_try_compile "$LINENO"; then :
  17849. video_opengl=yes
  17850. fi
  17851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  17853. $as_echo "$video_opengl" >&6; }
  17854. if test x$video_opengl = xyes; then
  17855. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17856. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  17857. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17858. SUMMARY_video="${SUMMARY_video} opengl"
  17859. fi
  17860. fi
  17861. }
  17862. # Check whether --enable-video-opengles was given.
  17863. if test "${enable_video_opengles+set}" = set; then :
  17864. enableval=$enable_video_opengles;
  17865. else
  17866. enable_video_opengles=yes
  17867. fi
  17868. CheckOpenGLESX11()
  17869. {
  17870. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  17871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  17872. $as_echo_n "checking for EGL support... " >&6; }
  17873. video_opengl_egl=no
  17874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17875. /* end confdefs.h. */
  17876. #include <EGL/egl.h>
  17877. int
  17878. main ()
  17879. {
  17880. ;
  17881. return 0;
  17882. }
  17883. _ACEOF
  17884. if ac_fn_c_try_compile "$LINENO"; then :
  17885. video_opengl_egl=yes
  17886. fi
  17887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  17889. $as_echo "$video_opengl_egl" >&6; }
  17890. if test x$video_opengl_egl = xyes; then
  17891. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  17892. fi
  17893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  17894. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  17895. video_opengles_v1=no
  17896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17897. /* end confdefs.h. */
  17898. #include <GLES/gl.h>
  17899. #include <GLES/glext.h>
  17900. int
  17901. main ()
  17902. {
  17903. ;
  17904. return 0;
  17905. }
  17906. _ACEOF
  17907. if ac_fn_c_try_compile "$LINENO"; then :
  17908. video_opengles_v1=yes
  17909. fi
  17910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  17912. $as_echo "$video_opengles_v1" >&6; }
  17913. if test x$video_opengles_v1 = xyes; then
  17914. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  17915. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  17916. SUMMARY_video="${SUMMARY_video} opengl_es1"
  17917. fi
  17918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  17919. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  17920. video_opengles_v2=no
  17921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17922. /* end confdefs.h. */
  17923. #include <GLES2/gl2.h>
  17924. #include <GLES2/gl2ext.h>
  17925. int
  17926. main ()
  17927. {
  17928. ;
  17929. return 0;
  17930. }
  17931. _ACEOF
  17932. if ac_fn_c_try_compile "$LINENO"; then :
  17933. video_opengles_v2=yes
  17934. fi
  17935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  17937. $as_echo "$video_opengles_v2" >&6; }
  17938. if test x$video_opengles_v2 = xyes; then
  17939. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17940. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17941. SUMMARY_video="${SUMMARY_video} opengl_es2"
  17942. fi
  17943. fi
  17944. }
  17945. CheckWINDOWSGL()
  17946. {
  17947. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17948. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17949. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  17950. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17951. SUMMARY_video="${SUMMARY_video} opengl"
  17952. fi
  17953. }
  17954. CheckWINDOWSGLES()
  17955. {
  17956. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  17957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  17958. $as_echo_n "checking for EGL support... " >&6; }
  17959. video_opengl_egl=no
  17960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17961. /* end confdefs.h. */
  17962. #include <EGL/egl.h>
  17963. int
  17964. main ()
  17965. {
  17966. ;
  17967. return 0;
  17968. }
  17969. _ACEOF
  17970. if ac_fn_c_try_compile "$LINENO"; then :
  17971. video_opengl_egl=yes
  17972. fi
  17973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  17975. $as_echo "$video_opengl_egl" >&6; }
  17976. if test x$video_opengl_egl = xyes; then
  17977. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17978. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  17979. SUMMARY_video="${SUMMARY_video} opengl_es1"
  17980. fi
  17981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  17982. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  17983. video_opengles_v2=no
  17984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17985. /* end confdefs.h. */
  17986. #include <GLES2/gl2.h>
  17987. #include <GLES2/gl2ext.h>
  17988. int
  17989. main ()
  17990. {
  17991. ;
  17992. return 0;
  17993. }
  17994. _ACEOF
  17995. if ac_fn_c_try_compile "$LINENO"; then :
  17996. video_opengles_v2=yes
  17997. fi
  17998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18000. $as_echo "$video_opengles_v2" >&6; }
  18001. if test x$video_opengles_v2 = xyes; then
  18002. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18003. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18004. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18005. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18006. fi
  18007. fi
  18008. }
  18009. CheckHaikuGL()
  18010. {
  18011. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18012. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18013. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18014. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18015. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18016. SUMMARY_video="${SUMMARY_video} opengl"
  18017. fi
  18018. }
  18019. CheckMacGL()
  18020. {
  18021. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18022. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18023. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18024. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18025. SUMMARY_video="${SUMMARY_video} opengl"
  18026. case "$host" in
  18027. *-*-darwin*)
  18028. if test x$enable_video_cocoa = xyes; then
  18029. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
  18030. fi
  18031. esac
  18032. fi
  18033. }
  18034. CheckInputEvents()
  18035. {
  18036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18037. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18038. use_input_events=no
  18039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18040. /* end confdefs.h. */
  18041. #include <linux/input.h>
  18042. int
  18043. main ()
  18044. {
  18045. #ifndef EVIOCGNAME
  18046. #error EVIOCGNAME() ioctl not available
  18047. #endif
  18048. ;
  18049. return 0;
  18050. }
  18051. _ACEOF
  18052. if ac_fn_c_try_compile "$LINENO"; then :
  18053. use_input_events=yes
  18054. fi
  18055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18057. $as_echo "$use_input_events" >&6; }
  18058. if test x$use_input_events = xyes; then
  18059. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18060. SUMMARY_input="${SUMMARY_input} linuxev"
  18061. fi
  18062. }
  18063. CheckInputKD()
  18064. {
  18065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18066. $as_echo_n "checking for Linux kd.h... " >&6; }
  18067. use_input_kd=no
  18068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18069. /* end confdefs.h. */
  18070. #include <linux/kd.h>
  18071. #include <linux/keyboard.h>
  18072. int
  18073. main ()
  18074. {
  18075. struct kbentry kbe;
  18076. kbe.kb_table = KG_CTRL;
  18077. ioctl(0, KDGKBENT, &kbe);
  18078. ;
  18079. return 0;
  18080. }
  18081. _ACEOF
  18082. if ac_fn_c_try_compile "$LINENO"; then :
  18083. use_input_kd=yes
  18084. fi
  18085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18087. $as_echo "$use_input_kd" >&6; }
  18088. if test x$use_input_kd = xyes; then
  18089. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18090. SUMMARY_input="${SUMMARY_input} linuxkd"
  18091. fi
  18092. }
  18093. CheckLibUDev()
  18094. {
  18095. # Check whether --enable-libudev was given.
  18096. if test "${enable_libudev+set}" = set; then :
  18097. enableval=$enable_libudev;
  18098. else
  18099. enable_libudev=yes
  18100. fi
  18101. if test x$enable_libudev = xyes; then
  18102. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18103. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18104. have_libudev_h_hdr=yes
  18105. else
  18106. have_libudev_h_hdr=no
  18107. fi
  18108. if test x$have_libudev_h_hdr = xyes; then
  18109. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18110. fi
  18111. fi
  18112. }
  18113. CheckDBus()
  18114. {
  18115. # Check whether --enable-dbus was given.
  18116. if test "${enable_dbus+set}" = set; then :
  18117. enableval=$enable_dbus;
  18118. else
  18119. enable_dbus=yes
  18120. fi
  18121. if test x$enable_dbus = xyes; then
  18122. # Extract the first word of "pkg-config", so it can be a program name with args.
  18123. set dummy pkg-config; ac_word=$2
  18124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18125. $as_echo_n "checking for $ac_word... " >&6; }
  18126. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18127. $as_echo_n "(cached) " >&6
  18128. else
  18129. case $PKG_CONFIG in
  18130. [\\/]* | ?:[\\/]*)
  18131. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18132. ;;
  18133. *)
  18134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18135. for as_dir in $PATH
  18136. do
  18137. IFS=$as_save_IFS
  18138. test -z "$as_dir" && as_dir=.
  18139. for ac_exec_ext in '' $ac_executable_extensions; do
  18140. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18141. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18142. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18143. break 2
  18144. fi
  18145. done
  18146. done
  18147. IFS=$as_save_IFS
  18148. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18149. ;;
  18150. esac
  18151. fi
  18152. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18153. if test -n "$PKG_CONFIG"; then
  18154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18155. $as_echo "$PKG_CONFIG" >&6; }
  18156. else
  18157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18158. $as_echo "no" >&6; }
  18159. fi
  18160. if test x$PKG_CONFIG != xno; then
  18161. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18162. save_CFLAGS="$CFLAGS"
  18163. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18164. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18165. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18166. have_dbus_dbus_h_hdr=yes
  18167. else
  18168. have_dbus_dbus_h_hdr=no
  18169. fi
  18170. CFLAGS="$save_CFLAGS"
  18171. if test x$have_dbus_dbus_h_hdr = xyes; then
  18172. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18173. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18174. fi
  18175. fi
  18176. fi
  18177. }
  18178. CheckTslib()
  18179. {
  18180. # Check whether --enable-input-tslib was given.
  18181. if test "${enable_input_tslib+set}" = set; then :
  18182. enableval=$enable_input_tslib;
  18183. else
  18184. enable_input_tslib=yes
  18185. fi
  18186. if test x$enable_input_tslib = xyes; then
  18187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18188. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18189. enable_input_tslib=no
  18190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18191. /* end confdefs.h. */
  18192. #include "tslib.h"
  18193. int
  18194. main ()
  18195. {
  18196. ;
  18197. return 0;
  18198. }
  18199. _ACEOF
  18200. if ac_fn_c_try_compile "$LINENO"; then :
  18201. enable_input_tslib=yes
  18202. fi
  18203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18205. $as_echo "$enable_input_tslib" >&6; }
  18206. if test x$enable_input_tslib = xyes; then
  18207. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18208. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18209. SUMMARY_input="${SUMMARY_input} ts"
  18210. fi
  18211. fi
  18212. }
  18213. CheckPTHREAD()
  18214. {
  18215. # Check whether --enable-pthreads was given.
  18216. if test "${enable_pthreads+set}" = set; then :
  18217. enableval=$enable_pthreads;
  18218. else
  18219. enable_pthreads=yes
  18220. fi
  18221. # Check whether --enable-pthread-sem was given.
  18222. if test "${enable_pthread_sem+set}" = set; then :
  18223. enableval=$enable_pthread_sem;
  18224. else
  18225. enable_pthread_sem=yes
  18226. fi
  18227. case "$host" in
  18228. *-*-linux*|*-*-uclinux*)
  18229. pthread_cflags="-D_REENTRANT"
  18230. pthread_lib="-lpthread"
  18231. ;;
  18232. *-*-bsdi*)
  18233. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18234. pthread_lib=""
  18235. ;;
  18236. *-*-darwin*)
  18237. pthread_cflags="-D_THREAD_SAFE"
  18238. # causes Carbon.p complaints?
  18239. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18240. ;;
  18241. *-*-freebsd*|*-*-dragonfly*)
  18242. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18243. pthread_lib="-pthread"
  18244. ;;
  18245. *-*-netbsd*)
  18246. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18247. pthread_lib="-lpthread"
  18248. ;;
  18249. *-*-openbsd*)
  18250. pthread_cflags="-D_REENTRANT"
  18251. pthread_lib="-pthread"
  18252. ;;
  18253. *-*-solaris2.9)
  18254. # From Solaris 9+, posix4's preferred name is rt.
  18255. pthread_cflags="-D_REENTRANT"
  18256. pthread_lib="-lpthread -lrt"
  18257. ;;
  18258. *-*-solaris2.10)
  18259. # Solaris 10+ merged pthread into libc.
  18260. pthread_cflags="-D_REENTRANT"
  18261. pthread_lib="-lrt"
  18262. ;;
  18263. *-*-solaris*)
  18264. # Solaris 11+ merged rt into libc.
  18265. pthread_cflags="-D_REENTRANT"
  18266. pthread_lib=""
  18267. ;;
  18268. *-*-sysv5*)
  18269. pthread_cflags="-D_REENTRANT -Kthread"
  18270. pthread_lib=""
  18271. ;;
  18272. *-*-aix*)
  18273. pthread_cflags="-D_REENTRANT -mthreads"
  18274. pthread_lib="-lpthread"
  18275. ;;
  18276. *-*-hpux11*)
  18277. pthread_cflags="-D_REENTRANT"
  18278. pthread_lib="-L/usr/lib -lpthread"
  18279. ;;
  18280. *-*-haiku*)
  18281. pthread_cflags="-D_REENTRANT"
  18282. pthread_lib=""
  18283. ;;
  18284. *)
  18285. pthread_cflags="-D_REENTRANT"
  18286. pthread_lib="-lpthread"
  18287. ;;
  18288. esac
  18289. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18290. # Save the original compiler flags and libraries
  18291. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18292. # Add the pthread compiler flags and libraries
  18293. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18294. # Check to see if we have pthread support on this system
  18295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18296. $as_echo_n "checking for pthreads... " >&6; }
  18297. use_pthreads=no
  18298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18299. /* end confdefs.h. */
  18300. #include <pthread.h>
  18301. int
  18302. main ()
  18303. {
  18304. pthread_attr_t type;
  18305. pthread_attr_init(&type);
  18306. ;
  18307. return 0;
  18308. }
  18309. _ACEOF
  18310. if ac_fn_c_try_link "$LINENO"; then :
  18311. use_pthreads=yes
  18312. fi
  18313. rm -f core conftest.err conftest.$ac_objext \
  18314. conftest$ac_exeext conftest.$ac_ext
  18315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18316. $as_echo "$use_pthreads" >&6; }
  18317. # Restore the compiler flags and libraries
  18318. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18319. # Do futher testing if we have pthread support...
  18320. if test x$use_pthreads = xyes; then
  18321. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18322. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18323. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18324. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18325. SDL_LIBS="$SDL_LIBS $pthread_lib"
  18326. # Save the original compiler flags and libraries
  18327. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18328. # Add the pthread compiler flags and libraries
  18329. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18330. # Check to see if recursive mutexes are available
  18331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18332. $as_echo_n "checking for recursive mutexes... " >&6; }
  18333. has_recursive_mutexes=no
  18334. if test x$has_recursive_mutexes = xno; then
  18335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18336. /* end confdefs.h. */
  18337. #include <pthread.h>
  18338. int
  18339. main ()
  18340. {
  18341. pthread_mutexattr_t attr;
  18342. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18343. ;
  18344. return 0;
  18345. }
  18346. _ACEOF
  18347. if ac_fn_c_try_compile "$LINENO"; then :
  18348. has_recursive_mutexes=yes
  18349. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18350. fi
  18351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18352. fi
  18353. if test x$has_recursive_mutexes = xno; then
  18354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18355. /* end confdefs.h. */
  18356. #include <pthread.h>
  18357. int
  18358. main ()
  18359. {
  18360. pthread_mutexattr_t attr;
  18361. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18362. ;
  18363. return 0;
  18364. }
  18365. _ACEOF
  18366. if ac_fn_c_try_compile "$LINENO"; then :
  18367. has_recursive_mutexes=yes
  18368. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18369. fi
  18370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18371. fi
  18372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18373. $as_echo "$has_recursive_mutexes" >&6; }
  18374. # Check to see if pthread semaphore support is missing
  18375. if test x$enable_pthread_sem = xyes; then
  18376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18377. $as_echo_n "checking for pthread semaphores... " >&6; }
  18378. have_pthread_sem=no
  18379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18380. /* end confdefs.h. */
  18381. #include <pthread.h>
  18382. #include <semaphore.h>
  18383. int
  18384. main ()
  18385. {
  18386. ;
  18387. return 0;
  18388. }
  18389. _ACEOF
  18390. if ac_fn_c_try_compile "$LINENO"; then :
  18391. have_pthread_sem=yes
  18392. fi
  18393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18395. $as_echo "$have_pthread_sem" >&6; }
  18396. fi
  18397. if test x$have_pthread_sem = xyes; then
  18398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18399. $as_echo_n "checking for sem_timedwait... " >&6; }
  18400. have_sem_timedwait=no
  18401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18402. /* end confdefs.h. */
  18403. #include <pthread.h>
  18404. #include <semaphore.h>
  18405. int
  18406. main ()
  18407. {
  18408. sem_timedwait(NULL, NULL);
  18409. ;
  18410. return 0;
  18411. }
  18412. _ACEOF
  18413. if ac_fn_c_try_link "$LINENO"; then :
  18414. have_sem_timedwait=yes
  18415. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18416. fi
  18417. rm -f core conftest.err conftest.$ac_objext \
  18418. conftest$ac_exeext conftest.$ac_ext
  18419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18420. $as_echo "$have_sem_timedwait" >&6; }
  18421. fi
  18422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_spin_trylock" >&5
  18423. $as_echo_n "checking for pthread_spin_trylock... " >&6; }
  18424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18425. /* end confdefs.h. */
  18426. /* Override any GCC internal prototype to avoid an error.
  18427. Use char because int might match the return type of a GCC
  18428. builtin and then its argument prototype would still apply. */
  18429. #ifdef __cplusplus
  18430. extern "C"
  18431. #endif
  18432. char pthread_spin_trylock ();
  18433. int
  18434. main ()
  18435. {
  18436. return pthread_spin_trylock ();
  18437. ;
  18438. return 0;
  18439. }
  18440. _ACEOF
  18441. if ac_fn_c_try_link "$LINENO"; then :
  18442. has_pthread_spin_trylock=yes
  18443. $as_echo "#define HAVE_PTHREAD_SPINLOCK 1" >>confdefs.h
  18444. else
  18445. has_pthread_spin_trylock=no
  18446. fi
  18447. rm -f core conftest.err conftest.$ac_objext \
  18448. conftest$ac_exeext conftest.$ac_ext
  18449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_spin_trylock" >&5
  18450. $as_echo "$has_pthread_spin_trylock" >&6; }
  18451. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18452. "
  18453. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18454. have_pthread_np_h=yes
  18455. else
  18456. have_pthread_np_h=no
  18457. fi
  18458. if test x$have_pthread_np_h = xyes; then
  18459. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18460. fi
  18461. # Check to see if pthread naming is available
  18462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18463. $as_echo_n "checking for pthread_setname_np... " >&6; }
  18464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18465. /* end confdefs.h. */
  18466. /* Override any GCC internal prototype to avoid an error.
  18467. Use char because int might match the return type of a GCC
  18468. builtin and then its argument prototype would still apply. */
  18469. #ifdef __cplusplus
  18470. extern "C"
  18471. #endif
  18472. char pthread_setname_np ();
  18473. int
  18474. main ()
  18475. {
  18476. return pthread_setname_np ();
  18477. ;
  18478. return 0;
  18479. }
  18480. _ACEOF
  18481. if ac_fn_c_try_link "$LINENO"; then :
  18482. has_pthread_setname_np=yes
  18483. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18484. else
  18485. has_pthread_setname_np=no
  18486. fi
  18487. rm -f core conftest.err conftest.$ac_objext \
  18488. conftest$ac_exeext conftest.$ac_ext
  18489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  18490. $as_echo "$has_pthread_setname_np" >&6; }
  18491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  18492. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  18493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18494. /* end confdefs.h. */
  18495. /* Override any GCC internal prototype to avoid an error.
  18496. Use char because int might match the return type of a GCC
  18497. builtin and then its argument prototype would still apply. */
  18498. #ifdef __cplusplus
  18499. extern "C"
  18500. #endif
  18501. char pthread_set_name_np ();
  18502. int
  18503. main ()
  18504. {
  18505. return pthread_set_name_np ();
  18506. ;
  18507. return 0;
  18508. }
  18509. _ACEOF
  18510. if ac_fn_c_try_link "$LINENO"; then :
  18511. has_pthread_set_name_np=yes
  18512. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  18513. else
  18514. has_pthread_set_name_np=no
  18515. fi
  18516. rm -f core conftest.err conftest.$ac_objext \
  18517. conftest$ac_exeext conftest.$ac_ext
  18518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  18519. $as_echo "$has_pthread_set_name_np" >&6; }
  18520. # Restore the compiler flags and libraries
  18521. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18522. # Basic thread creation functions
  18523. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  18524. # Semaphores
  18525. # We can fake these with mutexes and condition variables if necessary
  18526. if test x$have_pthread_sem = xyes; then
  18527. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  18528. else
  18529. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  18530. fi
  18531. # Mutexes
  18532. # We can fake these with semaphores if necessary
  18533. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  18534. # Condition variables
  18535. # We can fake these with semaphores and mutexes if necessary
  18536. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  18537. # Thread local storage
  18538. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  18539. have_threads=yes
  18540. fi
  18541. fi
  18542. }
  18543. CheckWINDOWS()
  18544. {
  18545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  18546. $as_echo_n "checking Windows compiler... " >&6; }
  18547. have_win32_gcc=no
  18548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18549. /* end confdefs.h. */
  18550. #include <windows.h>
  18551. int
  18552. main ()
  18553. {
  18554. ;
  18555. return 0;
  18556. }
  18557. _ACEOF
  18558. if ac_fn_c_try_compile "$LINENO"; then :
  18559. have_win32_gcc=yes
  18560. fi
  18561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  18563. $as_echo "$have_win32_gcc" >&6; }
  18564. if test x$have_win32_gcc != xyes; then
  18565. as_fn_error $? "
  18566. *** Your compiler ($CC) does not produce Windows executables!
  18567. " "$LINENO" 5
  18568. fi
  18569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  18570. $as_echo_n "checking Windows CE... " >&6; }
  18571. have_wince=no
  18572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18573. /* end confdefs.h. */
  18574. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  18575. #error This is not Windows CE
  18576. #endif
  18577. int
  18578. main ()
  18579. {
  18580. ;
  18581. return 0;
  18582. }
  18583. _ACEOF
  18584. if ac_fn_c_try_compile "$LINENO"; then :
  18585. have_wince=yes
  18586. as_fn_error $? "
  18587. *** Sorry, Windows CE is no longer supported.
  18588. " "$LINENO" 5
  18589. fi
  18590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  18592. $as_echo "$have_wince" >&6; }
  18593. # This fixes Windows stack alignment with newer GCC
  18594. CheckStackBoundary
  18595. }
  18596. CheckDIRECTX()
  18597. {
  18598. # Check whether --enable-directx was given.
  18599. if test "${enable_directx+set}" = set; then :
  18600. enableval=$enable_directx;
  18601. else
  18602. enable_directx=yes
  18603. fi
  18604. if test x$enable_directx = xyes; then
  18605. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  18606. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  18607. have_d3d=yes
  18608. fi
  18609. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  18610. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  18611. have_ddraw=yes
  18612. fi
  18613. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  18614. if test "x$ac_cv_header_dsound_h" = xyes; then :
  18615. have_dsound=yes
  18616. fi
  18617. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  18618. if test "x$ac_cv_header_dinput_h" = xyes; then :
  18619. have_dinput=yes
  18620. fi
  18621. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  18622. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  18623. have_xaudio2=yes
  18624. fi
  18625. SUMMARY_video="${SUMMARY_video} directx"
  18626. SUMMARY_audio="${SUMMARY_audio} directx"
  18627. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  18628. # FIXME: ...so force it off for now.
  18629. case "$host" in
  18630. *-*-cygwin*)
  18631. have_dinput=false
  18632. ;;
  18633. esac
  18634. fi
  18635. }
  18636. CheckDLOPEN()
  18637. {
  18638. # Check whether --enable-sdl-dlopen was given.
  18639. if test "${enable_sdl_dlopen+set}" = set; then :
  18640. enableval=$enable_sdl_dlopen;
  18641. else
  18642. enable_sdl_dlopen=yes
  18643. fi
  18644. if test x$enable_sdl_dlopen = xyes; then
  18645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  18646. $as_echo_n "checking for dlopen... " >&6; }
  18647. have_dlopen=no
  18648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18649. /* end confdefs.h. */
  18650. #include <dlfcn.h>
  18651. int
  18652. main ()
  18653. {
  18654. void *handle = dlopen("", RTLD_NOW);
  18655. const char *loaderror = (char *) dlerror();
  18656. ;
  18657. return 0;
  18658. }
  18659. _ACEOF
  18660. if ac_fn_c_try_compile "$LINENO"; then :
  18661. have_dlopen=yes
  18662. fi
  18663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  18665. $as_echo "$have_dlopen" >&6; }
  18666. if test x$have_dlopen = xyes; then
  18667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  18668. $as_echo_n "checking for dlopen in -lc... " >&6; }
  18669. if ${ac_cv_lib_c_dlopen+:} false; then :
  18670. $as_echo_n "(cached) " >&6
  18671. else
  18672. ac_check_lib_save_LIBS=$LIBS
  18673. LIBS="-lc $LIBS"
  18674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18675. /* end confdefs.h. */
  18676. /* Override any GCC internal prototype to avoid an error.
  18677. Use char because int might match the return type of a GCC
  18678. builtin and then its argument prototype would still apply. */
  18679. #ifdef __cplusplus
  18680. extern "C"
  18681. #endif
  18682. char dlopen ();
  18683. int
  18684. main ()
  18685. {
  18686. return dlopen ();
  18687. ;
  18688. return 0;
  18689. }
  18690. _ACEOF
  18691. if ac_fn_c_try_link "$LINENO"; then :
  18692. ac_cv_lib_c_dlopen=yes
  18693. else
  18694. ac_cv_lib_c_dlopen=no
  18695. fi
  18696. rm -f core conftest.err conftest.$ac_objext \
  18697. conftest$ac_exeext conftest.$ac_ext
  18698. LIBS=$ac_check_lib_save_LIBS
  18699. fi
  18700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  18701. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  18702. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  18703. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  18704. else
  18705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  18706. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  18707. if ${ac_cv_lib_dl_dlopen+:} false; then :
  18708. $as_echo_n "(cached) " >&6
  18709. else
  18710. ac_check_lib_save_LIBS=$LIBS
  18711. LIBS="-ldl $LIBS"
  18712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18713. /* end confdefs.h. */
  18714. /* Override any GCC internal prototype to avoid an error.
  18715. Use char because int might match the return type of a GCC
  18716. builtin and then its argument prototype would still apply. */
  18717. #ifdef __cplusplus
  18718. extern "C"
  18719. #endif
  18720. char dlopen ();
  18721. int
  18722. main ()
  18723. {
  18724. return dlopen ();
  18725. ;
  18726. return 0;
  18727. }
  18728. _ACEOF
  18729. if ac_fn_c_try_link "$LINENO"; then :
  18730. ac_cv_lib_dl_dlopen=yes
  18731. else
  18732. ac_cv_lib_dl_dlopen=no
  18733. fi
  18734. rm -f core conftest.err conftest.$ac_objext \
  18735. conftest$ac_exeext conftest.$ac_ext
  18736. LIBS=$ac_check_lib_save_LIBS
  18737. fi
  18738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  18739. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  18740. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  18741. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  18742. else
  18743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  18744. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  18745. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  18746. $as_echo_n "(cached) " >&6
  18747. else
  18748. ac_check_lib_save_LIBS=$LIBS
  18749. LIBS="-lltdl $LIBS"
  18750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18751. /* end confdefs.h. */
  18752. /* Override any GCC internal prototype to avoid an error.
  18753. Use char because int might match the return type of a GCC
  18754. builtin and then its argument prototype would still apply. */
  18755. #ifdef __cplusplus
  18756. extern "C"
  18757. #endif
  18758. char dlopen ();
  18759. int
  18760. main ()
  18761. {
  18762. return dlopen ();
  18763. ;
  18764. return 0;
  18765. }
  18766. _ACEOF
  18767. if ac_fn_c_try_link "$LINENO"; then :
  18768. ac_cv_lib_ltdl_dlopen=yes
  18769. else
  18770. ac_cv_lib_ltdl_dlopen=no
  18771. fi
  18772. rm -f core conftest.err conftest.$ac_objext \
  18773. conftest$ac_exeext conftest.$ac_ext
  18774. LIBS=$ac_check_lib_save_LIBS
  18775. fi
  18776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  18777. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  18778. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  18779. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  18780. fi
  18781. fi
  18782. fi
  18783. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  18784. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  18785. have_loadso=yes
  18786. fi
  18787. fi
  18788. }
  18789. CheckUSBHID()
  18790. {
  18791. case "$host" in
  18792. *-*-*bsd*)
  18793. if test x$enable_joystick = xyes; then
  18794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  18795. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  18796. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  18797. $as_echo_n "(cached) " >&6
  18798. else
  18799. ac_check_lib_save_LIBS=$LIBS
  18800. LIBS="-lusbhid $LIBS"
  18801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18802. /* end confdefs.h. */
  18803. /* Override any GCC internal prototype to avoid an error.
  18804. Use char because int might match the return type of a GCC
  18805. builtin and then its argument prototype would still apply. */
  18806. #ifdef __cplusplus
  18807. extern "C"
  18808. #endif
  18809. char hid_init ();
  18810. int
  18811. main ()
  18812. {
  18813. return hid_init ();
  18814. ;
  18815. return 0;
  18816. }
  18817. _ACEOF
  18818. if ac_fn_c_try_link "$LINENO"; then :
  18819. ac_cv_lib_usbhid_hid_init=yes
  18820. else
  18821. ac_cv_lib_usbhid_hid_init=no
  18822. fi
  18823. rm -f core conftest.err conftest.$ac_objext \
  18824. conftest$ac_exeext conftest.$ac_ext
  18825. LIBS=$ac_check_lib_save_LIBS
  18826. fi
  18827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  18828. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  18829. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  18830. have_libusbhid=yes
  18831. fi
  18832. if test x$have_libusbhid = xyes; then
  18833. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  18834. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  18835. USB_CFLAGS="-DHAVE_USBHID_H"
  18836. fi
  18837. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  18838. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  18839. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  18840. fi
  18841. USB_LIBS="$USB_LIBS -lusbhid"
  18842. else
  18843. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  18844. if test "x$ac_cv_header_usb_h" = xyes; then :
  18845. USB_CFLAGS="-DHAVE_USB_H"
  18846. fi
  18847. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  18848. if test "x$ac_cv_header_libusb_h" = xyes; then :
  18849. USB_CFLAGS="-DHAVE_LIBUSB_H"
  18850. fi
  18851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  18852. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  18853. if ${ac_cv_lib_usb_hid_init+:} false; then :
  18854. $as_echo_n "(cached) " >&6
  18855. else
  18856. ac_check_lib_save_LIBS=$LIBS
  18857. LIBS="-lusb $LIBS"
  18858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18859. /* end confdefs.h. */
  18860. /* Override any GCC internal prototype to avoid an error.
  18861. Use char because int might match the return type of a GCC
  18862. builtin and then its argument prototype would still apply. */
  18863. #ifdef __cplusplus
  18864. extern "C"
  18865. #endif
  18866. char hid_init ();
  18867. int
  18868. main ()
  18869. {
  18870. return hid_init ();
  18871. ;
  18872. return 0;
  18873. }
  18874. _ACEOF
  18875. if ac_fn_c_try_link "$LINENO"; then :
  18876. ac_cv_lib_usb_hid_init=yes
  18877. else
  18878. ac_cv_lib_usb_hid_init=no
  18879. fi
  18880. rm -f core conftest.err conftest.$ac_objext \
  18881. conftest$ac_exeext conftest.$ac_ext
  18882. LIBS=$ac_check_lib_save_LIBS
  18883. fi
  18884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  18885. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  18886. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  18887. USB_LIBS="$USB_LIBS -lusb"
  18888. fi
  18889. fi
  18890. save_CFLAGS="$CFLAGS"
  18891. CFLAGS="$CFLAGS $USB_CFLAGS"
  18892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  18893. $as_echo_n "checking for usbhid... " >&6; }
  18894. have_usbhid=no
  18895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18896. /* end confdefs.h. */
  18897. #include <sys/types.h>
  18898. #if defined(HAVE_USB_H)
  18899. #include <usb.h>
  18900. #endif
  18901. #ifdef __DragonFly__
  18902. # include <bus/usb/usb.h>
  18903. # include <bus/usb/usbhid.h>
  18904. #else
  18905. # include <dev/usb/usb.h>
  18906. # include <dev/usb/usbhid.h>
  18907. #endif
  18908. #if defined(HAVE_USBHID_H)
  18909. #include <usbhid.h>
  18910. #elif defined(HAVE_LIBUSB_H)
  18911. #include <libusb.h>
  18912. #elif defined(HAVE_LIBUSBHID_H)
  18913. #include <libusbhid.h>
  18914. #endif
  18915. int
  18916. main ()
  18917. {
  18918. struct report_desc *repdesc;
  18919. struct usb_ctl_report *repbuf;
  18920. hid_kind_t hidkind;
  18921. ;
  18922. return 0;
  18923. }
  18924. _ACEOF
  18925. if ac_fn_c_try_compile "$LINENO"; then :
  18926. have_usbhid=yes
  18927. fi
  18928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  18930. $as_echo "$have_usbhid" >&6; }
  18931. if test x$have_usbhid = xyes; then
  18932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  18933. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  18934. have_usbhid_ucr_data=no
  18935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18936. /* end confdefs.h. */
  18937. #include <sys/types.h>
  18938. #if defined(HAVE_USB_H)
  18939. #include <usb.h>
  18940. #endif
  18941. #ifdef __DragonFly__
  18942. # include <bus/usb/usb.h>
  18943. # include <bus/usb/usbhid.h>
  18944. #else
  18945. # include <dev/usb/usb.h>
  18946. # include <dev/usb/usbhid.h>
  18947. #endif
  18948. #if defined(HAVE_USBHID_H)
  18949. #include <usbhid.h>
  18950. #elif defined(HAVE_LIBUSB_H)
  18951. #include <libusb.h>
  18952. #elif defined(HAVE_LIBUSBHID_H)
  18953. #include <libusbhid.h>
  18954. #endif
  18955. int
  18956. main ()
  18957. {
  18958. struct usb_ctl_report buf;
  18959. if (buf.ucr_data) { }
  18960. ;
  18961. return 0;
  18962. }
  18963. _ACEOF
  18964. if ac_fn_c_try_compile "$LINENO"; then :
  18965. have_usbhid_ucr_data=yes
  18966. fi
  18967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18968. if test x$have_usbhid_ucr_data = xyes; then
  18969. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  18970. fi
  18971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  18972. $as_echo "$have_usbhid_ucr_data" >&6; }
  18973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  18974. $as_echo_n "checking for new usbhid API... " >&6; }
  18975. have_usbhid_new=no
  18976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18977. /* end confdefs.h. */
  18978. #include <sys/types.h>
  18979. #if defined(HAVE_USB_H)
  18980. #include <usb.h>
  18981. #endif
  18982. #ifdef __DragonFly__
  18983. #include <bus/usb/usb.h>
  18984. #include <bus/usb/usbhid.h>
  18985. #else
  18986. #include <dev/usb/usb.h>
  18987. #include <dev/usb/usbhid.h>
  18988. #endif
  18989. #if defined(HAVE_USBHID_H)
  18990. #include <usbhid.h>
  18991. #elif defined(HAVE_LIBUSB_H)
  18992. #include <libusb.h>
  18993. #elif defined(HAVE_LIBUSBHID_H)
  18994. #include <libusbhid.h>
  18995. #endif
  18996. int
  18997. main ()
  18998. {
  18999. report_desc_t d;
  19000. hid_start_parse(d, 1, 1);
  19001. ;
  19002. return 0;
  19003. }
  19004. _ACEOF
  19005. if ac_fn_c_try_compile "$LINENO"; then :
  19006. have_usbhid_new=yes
  19007. fi
  19008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19009. if test x$have_usbhid_new = xyes; then
  19010. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19011. fi
  19012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19013. $as_echo "$have_usbhid_new" >&6; }
  19014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19015. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19016. have_machine_joystick=no
  19017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19018. /* end confdefs.h. */
  19019. #include <machine/joystick.h>
  19020. int
  19021. main ()
  19022. {
  19023. struct joystick t;
  19024. ;
  19025. return 0;
  19026. }
  19027. _ACEOF
  19028. if ac_fn_c_try_compile "$LINENO"; then :
  19029. have_machine_joystick=yes
  19030. fi
  19031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19032. if test x$have_machine_joystick = xyes; then
  19033. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19034. fi
  19035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19036. $as_echo "$have_machine_joystick" >&6; }
  19037. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19038. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19039. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19040. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19041. have_joystick=yes
  19042. fi
  19043. CFLAGS="$save_CFLAGS"
  19044. fi
  19045. ;;
  19046. esac
  19047. }
  19048. CheckClockGettime()
  19049. {
  19050. # Check whether --enable-clock_gettime was given.
  19051. if test "${enable_clock_gettime+set}" = set; then :
  19052. enableval=$enable_clock_gettime;
  19053. else
  19054. enable_clock_gettime=yes
  19055. fi
  19056. if test x$enable_clock_gettime = xyes; then
  19057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19058. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19059. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19060. $as_echo_n "(cached) " >&6
  19061. else
  19062. ac_check_lib_save_LIBS=$LIBS
  19063. LIBS="-lrt $LIBS"
  19064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19065. /* end confdefs.h. */
  19066. /* Override any GCC internal prototype to avoid an error.
  19067. Use char because int might match the return type of a GCC
  19068. builtin and then its argument prototype would still apply. */
  19069. #ifdef __cplusplus
  19070. extern "C"
  19071. #endif
  19072. char clock_gettime ();
  19073. int
  19074. main ()
  19075. {
  19076. return clock_gettime ();
  19077. ;
  19078. return 0;
  19079. }
  19080. _ACEOF
  19081. if ac_fn_c_try_link "$LINENO"; then :
  19082. ac_cv_lib_rt_clock_gettime=yes
  19083. else
  19084. ac_cv_lib_rt_clock_gettime=no
  19085. fi
  19086. rm -f core conftest.err conftest.$ac_objext \
  19087. conftest$ac_exeext conftest.$ac_ext
  19088. LIBS=$ac_check_lib_save_LIBS
  19089. fi
  19090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19091. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19092. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19093. have_clock_gettime=yes
  19094. fi
  19095. if test x$have_clock_gettime = xyes; then
  19096. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19097. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19098. else
  19099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19100. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19101. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19102. $as_echo_n "(cached) " >&6
  19103. else
  19104. ac_check_lib_save_LIBS=$LIBS
  19105. LIBS="-lc $LIBS"
  19106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19107. /* end confdefs.h. */
  19108. /* Override any GCC internal prototype to avoid an error.
  19109. Use char because int might match the return type of a GCC
  19110. builtin and then its argument prototype would still apply. */
  19111. #ifdef __cplusplus
  19112. extern "C"
  19113. #endif
  19114. char clock_gettime ();
  19115. int
  19116. main ()
  19117. {
  19118. return clock_gettime ();
  19119. ;
  19120. return 0;
  19121. }
  19122. _ACEOF
  19123. if ac_fn_c_try_link "$LINENO"; then :
  19124. ac_cv_lib_c_clock_gettime=yes
  19125. else
  19126. ac_cv_lib_c_clock_gettime=no
  19127. fi
  19128. rm -f core conftest.err conftest.$ac_objext \
  19129. conftest$ac_exeext conftest.$ac_ext
  19130. LIBS=$ac_check_lib_save_LIBS
  19131. fi
  19132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19133. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19134. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19135. have_clock_gettime=yes
  19136. fi
  19137. if test x$have_clock_gettime = xyes; then
  19138. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19139. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19140. fi
  19141. fi
  19142. fi
  19143. }
  19144. CheckLinuxVersion()
  19145. {
  19146. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19147. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19148. have_linux_version_h=yes
  19149. fi
  19150. if test x$have_linux_version_h = xyes; then
  19151. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19152. fi
  19153. }
  19154. CheckRPATH()
  19155. {
  19156. # Check whether --enable-rpath was given.
  19157. if test "${enable_rpath+set}" = set; then :
  19158. enableval=$enable_rpath;
  19159. else
  19160. enable_rpath=yes
  19161. fi
  19162. }
  19163. case "$host" in
  19164. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19165. case "$host" in
  19166. *-raspberry-linux*)
  19167. # Raspberry Pi
  19168. ARCH=linux
  19169. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19170. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19171. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19172. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19173. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19174. if test x$enable_video = xyes; then
  19175. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19176. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19177. fi
  19178. ;;
  19179. *-*-linux*) ARCH=linux ;;
  19180. *-*-uclinux*) ARCH=linux ;;
  19181. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19182. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19183. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19184. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19185. *-*-bsdi*) ARCH=bsdi ;;
  19186. *-*-freebsd*) ARCH=freebsd ;;
  19187. *-*-dragonfly*) ARCH=freebsd ;;
  19188. *-*-netbsd*) ARCH=netbsd ;;
  19189. *-*-openbsd*) ARCH=openbsd ;;
  19190. *-*-sysv5*) ARCH=sysv5 ;;
  19191. *-*-solaris*) ARCH=solaris ;;
  19192. *-*-hpux*) ARCH=hpux ;;
  19193. *-*-aix*) ARCH=aix ;;
  19194. *-*-minix*) ARCH=minix ;;
  19195. esac
  19196. CheckVisibilityHidden
  19197. CheckDummyVideo
  19198. CheckDiskAudio
  19199. CheckDummyAudio
  19200. CheckDLOPEN
  19201. CheckOSS
  19202. CheckALSA
  19203. CheckPulseAudio
  19204. CheckARTSC
  19205. CheckESD
  19206. CheckNAS
  19207. CheckSNDIO
  19208. CheckX11
  19209. CheckWayland
  19210. CheckDirectFB
  19211. CheckFusionSound
  19212. CheckOpenGLX11
  19213. CheckOpenGLESX11
  19214. CheckLibUDev
  19215. CheckDBus
  19216. CheckInputEvents
  19217. CheckInputKD
  19218. CheckTslib
  19219. CheckUSBHID
  19220. CheckPTHREAD
  19221. CheckClockGettime
  19222. CheckLinuxVersion
  19223. CheckRPATH
  19224. # Set up files for the audio library
  19225. if test x$enable_audio = xyes; then
  19226. case $ARCH in
  19227. sysv5|solaris|hpux)
  19228. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19229. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19230. have_audio=yes
  19231. ;;
  19232. netbsd) # Don't use this on OpenBSD, it's busted.
  19233. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19234. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19235. have_audio=yes
  19236. ;;
  19237. aix)
  19238. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19239. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19240. have_audio=yes
  19241. ;;
  19242. esac
  19243. fi
  19244. # Set up files for the joystick library
  19245. if test x$enable_joystick = xyes; then
  19246. case $ARCH in
  19247. linux)
  19248. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19249. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19250. have_joystick=yes
  19251. ;;
  19252. esac
  19253. fi
  19254. # Set up files for the haptic library
  19255. if test x$enable_haptic = xyes; then
  19256. if test x$use_input_events = xyes; then
  19257. case $ARCH in
  19258. linux)
  19259. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19260. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19261. have_haptic=yes
  19262. ;;
  19263. esac
  19264. fi
  19265. fi
  19266. # Set up files for the power library
  19267. if test x$enable_power = xyes; then
  19268. case $ARCH in
  19269. linux)
  19270. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19271. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19272. have_power=yes
  19273. ;;
  19274. esac
  19275. fi
  19276. # Set up files for the filesystem library
  19277. if test x$enable_filesystem = xyes; then
  19278. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19279. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19280. have_filesystem=yes
  19281. fi
  19282. # Set up files for the timer library
  19283. if test x$enable_timers = xyes; then
  19284. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19285. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19286. have_timers=yes
  19287. fi
  19288. # Set up files for udev hotplugging support
  19289. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19290. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19291. fi
  19292. # Set up files for evdev input
  19293. if test x$use_input_events = xyes; then
  19294. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19295. fi
  19296. ;;
  19297. *-*-cygwin* | *-*-mingw32*)
  19298. ARCH=win32
  19299. if test "$build" != "$host"; then # cross-compiling
  19300. # Default cross-compile location
  19301. ac_default_prefix=/usr/local/cross-tools/$host
  19302. else
  19303. # Look for the location of the tools and install there
  19304. if test "$BUILD_PREFIX" != ""; then
  19305. ac_default_prefix=$BUILD_PREFIX
  19306. fi
  19307. fi
  19308. CheckDummyVideo
  19309. CheckDiskAudio
  19310. CheckDummyAudio
  19311. CheckWINDOWS
  19312. CheckWINDOWSGL
  19313. CheckWINDOWSGLES
  19314. CheckDIRECTX
  19315. # Set up the core platform files
  19316. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19317. # Set up files for the video library
  19318. if test x$enable_video = xyes; then
  19319. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19320. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19321. have_video=yes
  19322. # Check whether --enable-render-d3d was given.
  19323. if test "${enable_render_d3d+set}" = set; then :
  19324. enableval=$enable_render_d3d;
  19325. else
  19326. enable_render_d3d=yes
  19327. fi
  19328. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19329. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19330. fi
  19331. fi
  19332. # Set up files for the audio library
  19333. if test x$enable_audio = xyes; then
  19334. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19335. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19336. if test x$have_dsound = xyes; then
  19337. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19338. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19339. fi
  19340. if test x$have_xaudio2 = xyes; then
  19341. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19342. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19343. fi
  19344. have_audio=yes
  19345. fi
  19346. # Set up files for the joystick library
  19347. if test x$enable_joystick = xyes; then
  19348. if test x$have_dinput = xyes; then
  19349. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19350. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_dxjoystick.c"
  19351. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19352. else
  19353. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19354. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_mmjoystick.c"
  19355. fi
  19356. have_joystick=yes
  19357. fi
  19358. if test x$enable_haptic = xyes; then
  19359. if test x$have_dinput = xyes; then
  19360. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19361. SOURCES="$SOURCES $srcdir/src/haptic/windows/SDL_syshaptic.c"
  19362. have_haptic=yes
  19363. fi
  19364. fi
  19365. if test x$enable_power = xyes; then
  19366. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  19367. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19368. have_power=yes
  19369. fi
  19370. if test x$enable_filesystem = xyes; then
  19371. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  19372. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  19373. have_filesystem=yes
  19374. fi
  19375. # Set up files for the thread library
  19376. if test x$enable_threads = xyes; then
  19377. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19378. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19379. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19380. have_threads=yes
  19381. fi
  19382. # Set up files for the timer library
  19383. if test x$enable_timers = xyes; then
  19384. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  19385. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  19386. have_timers=yes
  19387. fi
  19388. # Set up files for the shared object loading library
  19389. if test x$enable_loadso = xyes; then
  19390. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  19391. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  19392. have_loadso=yes
  19393. fi
  19394. # Set up the system libraries we need
  19395. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -XCClinker -static-libgcc"
  19396. # The Windows platform requires special setup
  19397. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  19398. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  19399. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  19400. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  19401. # Check to see if this is a mingw or cygwin build
  19402. have_mingw32=
  19403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  19404. $as_echo_n "checking for main in -lmingw32... " >&6; }
  19405. if ${ac_cv_lib_mingw32_main+:} false; then :
  19406. $as_echo_n "(cached) " >&6
  19407. else
  19408. ac_check_lib_save_LIBS=$LIBS
  19409. LIBS="-lmingw32 $LIBS"
  19410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19411. /* end confdefs.h. */
  19412. int
  19413. main ()
  19414. {
  19415. return main ();
  19416. ;
  19417. return 0;
  19418. }
  19419. _ACEOF
  19420. if ac_fn_c_try_link "$LINENO"; then :
  19421. ac_cv_lib_mingw32_main=yes
  19422. else
  19423. ac_cv_lib_mingw32_main=no
  19424. fi
  19425. rm -f core conftest.err conftest.$ac_objext \
  19426. conftest$ac_exeext conftest.$ac_ext
  19427. LIBS=$ac_check_lib_save_LIBS
  19428. fi
  19429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  19430. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  19431. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  19432. have_mingw32=yes
  19433. fi
  19434. if test x$have_mingw32 = xyes; then
  19435. SDL_LIBS="-lmingw32 $SDL_LIBS"
  19436. else
  19437. SDL_LIBS="-lcygwin $SDL_LIBS"
  19438. fi
  19439. ;;
  19440. *-*-beos*)
  19441. as_fn_error $? "
  19442. *** BeOS support has been removed as of SDL 2.0.2.
  19443. " "$LINENO" 5
  19444. ;;
  19445. *-*-haiku*)
  19446. ARCH=haiku
  19447. ac_default_prefix=/boot/system
  19448. CheckDummyVideo
  19449. CheckDiskAudio
  19450. CheckDummyAudio
  19451. CheckHaikuVideo
  19452. CheckHaikuGL
  19453. CheckPTHREAD
  19454. # Set up files for the audio library
  19455. if test x$enable_audio = xyes; then
  19456. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  19457. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  19458. have_audio=yes
  19459. fi
  19460. # Set up files for the joystick library
  19461. if test x$enable_joystick = xyes; then
  19462. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  19463. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  19464. have_joystick=yes
  19465. fi
  19466. # Set up files for the timer library
  19467. if test x$enable_timers = xyes; then
  19468. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  19469. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  19470. have_timers=yes
  19471. fi
  19472. # Set up files for the shared object loading library
  19473. if test x$enable_loadso = xyes; then
  19474. $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
  19475. SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
  19476. have_loadso=yes
  19477. fi
  19478. # Set up files for the system power library
  19479. if test x$enable_power = xyes; then
  19480. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  19481. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  19482. have_power=yes
  19483. fi
  19484. # Set up files for the system filesystem library
  19485. if test x$enable_filesystem = xyes; then
  19486. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  19487. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  19488. have_filesystem=yes
  19489. fi
  19490. # The Haiku platform requires special setup.
  19491. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  19492. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  19493. ;;
  19494. arm*-apple-darwin*)
  19495. # iOS - We are not writing anything to confdefs.h because you have to replace
  19496. # SDL_config.h for SDL_config_iphoneos.h anyway
  19497. ARCH=ios
  19498. CheckVisibilityHidden
  19499. CheckDummyVideo
  19500. CheckDiskAudio
  19501. CheckDummyAudio
  19502. CheckDLOPEN
  19503. CheckCOCOA
  19504. CheckPTHREAD
  19505. # Set up files for the audio library
  19506. if test x$enable_audio = xyes; then
  19507. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19508. have_audio=yes
  19509. fi
  19510. # Set up files for the joystick library
  19511. if test x$enable_joystick = xyes; then
  19512. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  19513. have_joystick=yes
  19514. fi
  19515. # Set up files for the haptic library
  19516. #if test x$enable_haptic = xyes; then
  19517. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19518. # have_haptic=yes
  19519. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19520. #fi
  19521. # Set up files for the power library
  19522. if test x$enable_power = xyes; then
  19523. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  19524. have_power=yes
  19525. fi
  19526. # Set up files for the filesystem library
  19527. if test x$enable_filesystem = xyes; then
  19528. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19529. have_filesystem=yes
  19530. fi
  19531. # Set up files for the timer library
  19532. if test x$enable_timers = xyes; then
  19533. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19534. have_timers=yes
  19535. fi
  19536. # Set up additional files for the file library
  19537. if test x$enable_file = xyes; then
  19538. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19539. fi
  19540. # The iOS platform requires special setup.
  19541. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  19542. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19543. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  19544. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  19545. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  19546. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  19547. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  19548. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  19549. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  19550. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  19551. ;;
  19552. *-*-darwin* )
  19553. # This could be either full "Mac OS X", or plain "Darwin" which is
  19554. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  19555. # Next line is broken, and a few files below require Mac OS X (full)
  19556. ARCH=macosx
  19557. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  19558. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  19559. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  19560. CheckVisibilityHidden
  19561. CheckDummyVideo
  19562. CheckDiskAudio
  19563. CheckDummyAudio
  19564. CheckDLOPEN
  19565. CheckCOCOA
  19566. CheckX11
  19567. CheckMacGL
  19568. CheckOpenGLX11
  19569. CheckPTHREAD
  19570. # Need this or things might misbuild on a G3.
  19571. EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL"
  19572. # Set up files for the audio library
  19573. if test x$enable_audio = xyes; then
  19574. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  19575. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19576. have_audio=yes
  19577. fi
  19578. # Set up files for the joystick library
  19579. if test x$enable_joystick = xyes; then
  19580. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  19581. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  19582. have_joystick=yes
  19583. fi
  19584. # Set up files for the haptic library
  19585. if test x$enable_haptic = xyes; then
  19586. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  19587. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19588. have_haptic=yes
  19589. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19590. fi
  19591. # Set up files for the power library
  19592. if test x$enable_power = xyes; then
  19593. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  19594. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  19595. have_power=yes
  19596. fi
  19597. # Set up files for the filesystem library
  19598. if test x$enable_filesystem = xyes; then
  19599. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  19600. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19601. have_filesystem=yes
  19602. fi
  19603. # Set up files for the timer library
  19604. if test x$enable_timers = xyes; then
  19605. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19606. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19607. have_timers=yes
  19608. fi
  19609. # Set up additional files for the file library
  19610. if test x$enable_file = xyes; then
  19611. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19612. fi
  19613. # The Mac OS X platform requires special setup.
  19614. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19615. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  19616. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  19617. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  19618. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  19619. # If audio is used, add the AudioUnit framework
  19620. if test x$enable_audio = xyes; then
  19621. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
  19622. fi
  19623. ;;
  19624. *)
  19625. as_fn_error $? "
  19626. *** Unsupported host: Please add to configure.in
  19627. " "$LINENO" 5
  19628. ;;
  19629. esac
  19630. CheckWarnAll
  19631. # Verify that we have all the platform specific files we need
  19632. if test x$have_joystick != xyes; then
  19633. if test x$enable_joystick = xyes; then
  19634. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  19635. fi
  19636. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  19637. fi
  19638. if test x$have_haptic != xyes; then
  19639. if test x$enable_haptic = xyes; then
  19640. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  19641. fi
  19642. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  19643. fi
  19644. if test x$have_threads != xyes; then
  19645. if test x$enable_threads = xyes; then
  19646. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  19647. fi
  19648. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  19649. fi
  19650. if test x$have_timers != xyes; then
  19651. if test x$enable_timers = xyes; then
  19652. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  19653. fi
  19654. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  19655. fi
  19656. if test x$have_filesystem != xyes; then
  19657. if test x$enable_filesystem = xyes; then
  19658. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  19659. fi
  19660. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  19661. fi
  19662. if test x$have_loadso != xyes; then
  19663. if test x$enable_loadso = xyes; then
  19664. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  19665. fi
  19666. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  19667. fi
  19668. if test x$SDLMAIN_SOURCES = x; then
  19669. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  19670. fi
  19671. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  19672. OBJECTS=`echo $SOURCES`
  19673. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  19674. for EXT in asm cc m c S; do
  19675. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  19676. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  19677. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  19678. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19679. done
  19680. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  19681. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  19682. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  19683. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  19684. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  19685. \\$(WINDRES) \\$< \\$@,g"`
  19686. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  19687. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  19688. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  19689. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  19690. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  19691. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19692. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  19693. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  19694. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  19695. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  19696. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  19697. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19698. # Set runtime shared library paths as needed
  19699. if test "x$enable_rpath" = "xyes"; then
  19700. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  19701. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  19702. fi
  19703. if test $ARCH = solaris; then
  19704. SDL_RLD_FLAGS="-R\${libdir}"
  19705. fi
  19706. else
  19707. SDL_RLD_FLAGS=""
  19708. fi
  19709. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  19710. if test x$enable_shared = xyes; then
  19711. ENABLE_SHARED_TRUE=
  19712. ENABLE_SHARED_FALSE="#"
  19713. else
  19714. ENABLE_SHARED_TRUE="#"
  19715. ENABLE_SHARED_FALSE=
  19716. fi
  19717. if test x$enable_static = xyes; then
  19718. ENABLE_STATIC_TRUE=
  19719. ENABLE_STATIC_FALSE="#"
  19720. else
  19721. ENABLE_STATIC_TRUE="#"
  19722. ENABLE_STATIC_FALSE=
  19723. fi
  19724. cat >Makefile.rules <<__EOF__
  19725. # Build rules for objects
  19726. -include \$(OBJECTS:.lo=.d)
  19727. # Special dependency for SDL.c, since it depends on SDL_revision.h
  19728. $srcdir/src/SDL.c: update-revision
  19729. $DEPENDS
  19730. $VERSION_DEPENDS
  19731. $SDLMAIN_DEPENDS
  19732. $SDLTEST_DEPENDS
  19733. __EOF__
  19734. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config SDL2.spec sdl2.pc"
  19735. ac_config_commands="$ac_config_commands sdl2_config"
  19736. SUMMARY="SDL2 Configure Summary:\n"
  19737. if test x$enable_shared = xyes; then
  19738. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  19739. fi
  19740. if test x$enable_static = xyes; then
  19741. SUMMARY="${SUMMARY}Building Static Libraries\n"
  19742. fi
  19743. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  19744. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  19745. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  19746. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  19747. if test x$have_x = xyes; then
  19748. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  19749. fi
  19750. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  19751. if test x$enable_libudev = xyes; then
  19752. SUMMARY="${SUMMARY}Using libudev : YES\n"
  19753. else
  19754. SUMMARY="${SUMMARY}Using libudev : NO\n"
  19755. fi
  19756. if test x$have_dbus_dbus_h_hdr = xyes; then
  19757. SUMMARY="${SUMMARY}Using dbus : YES\n"
  19758. else
  19759. SUMMARY="${SUMMARY}Using dbus : NO\n"
  19760. fi
  19761. ac_config_commands="$ac_config_commands summary"
  19762. cat >confcache <<\_ACEOF
  19763. # This file is a shell script that caches the results of configure
  19764. # tests run on this system so they can be shared between configure
  19765. # scripts and configure runs, see configure's option --config-cache.
  19766. # It is not useful on other systems. If it contains results you don't
  19767. # want to keep, you may remove or edit it.
  19768. #
  19769. # config.status only pays attention to the cache file if you give it
  19770. # the --recheck option to rerun configure.
  19771. #
  19772. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19773. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19774. # following values.
  19775. _ACEOF
  19776. # The following way of writing the cache mishandles newlines in values,
  19777. # but we know of no workaround that is simple, portable, and efficient.
  19778. # So, we kill variables containing newlines.
  19779. # Ultrix sh set writes to stderr and can't be redirected directly,
  19780. # and sets the high bit in the cache file unless we assign to the vars.
  19781. (
  19782. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19783. eval ac_val=\$$ac_var
  19784. case $ac_val in #(
  19785. *${as_nl}*)
  19786. case $ac_var in #(
  19787. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  19788. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  19789. esac
  19790. case $ac_var in #(
  19791. _ | IFS | as_nl) ;; #(
  19792. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  19793. *) { eval $ac_var=; unset $ac_var;} ;;
  19794. esac ;;
  19795. esac
  19796. done
  19797. (set) 2>&1 |
  19798. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19799. *${as_nl}ac_space=\ *)
  19800. # `set' does not quote correctly, so add quotes: double-quote
  19801. # substitution turns \\\\ into \\, and sed turns \\ into \.
  19802. sed -n \
  19803. "s/'/'\\\\''/g;
  19804. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19805. ;; #(
  19806. *)
  19807. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19808. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19809. ;;
  19810. esac |
  19811. sort
  19812. ) |
  19813. sed '
  19814. /^ac_cv_env_/b end
  19815. t clear
  19816. :clear
  19817. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19818. t end
  19819. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19820. :end' >>confcache
  19821. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19822. if test -w "$cache_file"; then
  19823. if test "x$cache_file" != "x/dev/null"; then
  19824. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  19825. $as_echo "$as_me: updating cache $cache_file" >&6;}
  19826. if test ! -f "$cache_file" || test -h "$cache_file"; then
  19827. cat confcache >"$cache_file"
  19828. else
  19829. case $cache_file in #(
  19830. */* | ?:*)
  19831. mv -f confcache "$cache_file"$$ &&
  19832. mv -f "$cache_file"$$ "$cache_file" ;; #(
  19833. *)
  19834. mv -f confcache "$cache_file" ;;
  19835. esac
  19836. fi
  19837. fi
  19838. else
  19839. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  19840. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19841. fi
  19842. fi
  19843. rm -f confcache
  19844. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19845. # Let make expand exec_prefix.
  19846. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19847. DEFS=-DHAVE_CONFIG_H
  19848. ac_libobjs=
  19849. ac_ltlibobjs=
  19850. U=
  19851. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19852. # 1. Remove the extension, and $U if already installed.
  19853. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19854. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  19855. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19856. # will be set to the directory where LIBOBJS objects are built.
  19857. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19858. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  19859. done
  19860. LIBOBJS=$ac_libobjs
  19861. LTLIBOBJS=$ac_ltlibobjs
  19862. : "${CONFIG_STATUS=./config.status}"
  19863. ac_write_fail=0
  19864. ac_clean_files_save=$ac_clean_files
  19865. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19866. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  19867. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19868. as_write_fail=0
  19869. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  19870. #! $SHELL
  19871. # Generated by $as_me.
  19872. # Run this file to recreate the current configuration.
  19873. # Compiler output produced by configure, useful for debugging
  19874. # configure, is in config.log if it exists.
  19875. debug=false
  19876. ac_cs_recheck=false
  19877. ac_cs_silent=false
  19878. SHELL=\${CONFIG_SHELL-$SHELL}
  19879. export SHELL
  19880. _ASEOF
  19881. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  19882. ## -------------------- ##
  19883. ## M4sh Initialization. ##
  19884. ## -------------------- ##
  19885. # Be more Bourne compatible
  19886. DUALCASE=1; export DUALCASE # for MKS sh
  19887. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19888. emulate sh
  19889. NULLCMD=:
  19890. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  19891. # is contrary to our usage. Disable this feature.
  19892. alias -g '${1+"$@"}'='"$@"'
  19893. setopt NO_GLOB_SUBST
  19894. else
  19895. case `(set -o) 2>/dev/null` in #(
  19896. *posix*) :
  19897. set -o posix ;; #(
  19898. *) :
  19899. ;;
  19900. esac
  19901. fi
  19902. as_nl='
  19903. '
  19904. export as_nl
  19905. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  19906. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  19907. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  19908. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  19909. # Prefer a ksh shell builtin over an external printf program on Solaris,
  19910. # but without wasting forks for bash or zsh.
  19911. if test -z "$BASH_VERSION$ZSH_VERSION" \
  19912. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  19913. as_echo='print -r --'
  19914. as_echo_n='print -rn --'
  19915. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  19916. as_echo='printf %s\n'
  19917. as_echo_n='printf %s'
  19918. else
  19919. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  19920. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  19921. as_echo_n='/usr/ucb/echo -n'
  19922. else
  19923. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  19924. as_echo_n_body='eval
  19925. arg=$1;
  19926. case $arg in #(
  19927. *"$as_nl"*)
  19928. expr "X$arg" : "X\\(.*\\)$as_nl";
  19929. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  19930. esac;
  19931. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  19932. '
  19933. export as_echo_n_body
  19934. as_echo_n='sh -c $as_echo_n_body as_echo'
  19935. fi
  19936. export as_echo_body
  19937. as_echo='sh -c $as_echo_body as_echo'
  19938. fi
  19939. # The user is always right.
  19940. if test "${PATH_SEPARATOR+set}" != set; then
  19941. PATH_SEPARATOR=:
  19942. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  19943. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  19944. PATH_SEPARATOR=';'
  19945. }
  19946. fi
  19947. # IFS
  19948. # We need space, tab and new line, in precisely that order. Quoting is
  19949. # there to prevent editors from complaining about space-tab.
  19950. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19951. # splitting by setting IFS to empty value.)
  19952. IFS=" "" $as_nl"
  19953. # Find who we are. Look in the path if we contain no directory separator.
  19954. as_myself=
  19955. case $0 in #((
  19956. *[\\/]* ) as_myself=$0 ;;
  19957. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19958. for as_dir in $PATH
  19959. do
  19960. IFS=$as_save_IFS
  19961. test -z "$as_dir" && as_dir=.
  19962. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19963. done
  19964. IFS=$as_save_IFS
  19965. ;;
  19966. esac
  19967. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19968. # in which case we are not to be found in the path.
  19969. if test "x$as_myself" = x; then
  19970. as_myself=$0
  19971. fi
  19972. if test ! -f "$as_myself"; then
  19973. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19974. exit 1
  19975. fi
  19976. # Unset variables that we do not need and which cause bugs (e.g. in
  19977. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  19978. # suppresses any "Segmentation fault" message there. '((' could
  19979. # trigger a bug in pdksh 5.2.14.
  19980. for as_var in BASH_ENV ENV MAIL MAILPATH
  19981. do eval test x\${$as_var+set} = xset \
  19982. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  19983. done
  19984. PS1='$ '
  19985. PS2='> '
  19986. PS4='+ '
  19987. # NLS nuisances.
  19988. LC_ALL=C
  19989. export LC_ALL
  19990. LANGUAGE=C
  19991. export LANGUAGE
  19992. # CDPATH.
  19993. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19994. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  19995. # ----------------------------------------
  19996. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  19997. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  19998. # script with STATUS, using 1 if that was 0.
  19999. as_fn_error ()
  20000. {
  20001. as_status=$1; test $as_status -eq 0 && as_status=1
  20002. if test "$4"; then
  20003. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20004. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20005. fi
  20006. $as_echo "$as_me: error: $2" >&2
  20007. as_fn_exit $as_status
  20008. } # as_fn_error
  20009. # as_fn_set_status STATUS
  20010. # -----------------------
  20011. # Set $? to STATUS, without forking.
  20012. as_fn_set_status ()
  20013. {
  20014. return $1
  20015. } # as_fn_set_status
  20016. # as_fn_exit STATUS
  20017. # -----------------
  20018. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20019. as_fn_exit ()
  20020. {
  20021. set +e
  20022. as_fn_set_status $1
  20023. exit $1
  20024. } # as_fn_exit
  20025. # as_fn_unset VAR
  20026. # ---------------
  20027. # Portably unset VAR.
  20028. as_fn_unset ()
  20029. {
  20030. { eval $1=; unset $1;}
  20031. }
  20032. as_unset=as_fn_unset
  20033. # as_fn_append VAR VALUE
  20034. # ----------------------
  20035. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20036. # advantage of any shell optimizations that allow amortized linear growth over
  20037. # repeated appends, instead of the typical quadratic growth present in naive
  20038. # implementations.
  20039. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20040. eval 'as_fn_append ()
  20041. {
  20042. eval $1+=\$2
  20043. }'
  20044. else
  20045. as_fn_append ()
  20046. {
  20047. eval $1=\$$1\$2
  20048. }
  20049. fi # as_fn_append
  20050. # as_fn_arith ARG...
  20051. # ------------------
  20052. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20053. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20054. # must be portable across $(()) and expr.
  20055. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20056. eval 'as_fn_arith ()
  20057. {
  20058. as_val=$(( $* ))
  20059. }'
  20060. else
  20061. as_fn_arith ()
  20062. {
  20063. as_val=`expr "$@" || test $? -eq 1`
  20064. }
  20065. fi # as_fn_arith
  20066. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20067. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20068. as_expr=expr
  20069. else
  20070. as_expr=false
  20071. fi
  20072. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20073. as_basename=basename
  20074. else
  20075. as_basename=false
  20076. fi
  20077. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20078. as_dirname=dirname
  20079. else
  20080. as_dirname=false
  20081. fi
  20082. as_me=`$as_basename -- "$0" ||
  20083. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20084. X"$0" : 'X\(//\)$' \| \
  20085. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20086. $as_echo X/"$0" |
  20087. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20088. s//\1/
  20089. q
  20090. }
  20091. /^X\/\(\/\/\)$/{
  20092. s//\1/
  20093. q
  20094. }
  20095. /^X\/\(\/\).*/{
  20096. s//\1/
  20097. q
  20098. }
  20099. s/.*/./; q'`
  20100. # Avoid depending upon Character Ranges.
  20101. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20102. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20103. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20104. as_cr_digits='0123456789'
  20105. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20106. ECHO_C= ECHO_N= ECHO_T=
  20107. case `echo -n x` in #(((((
  20108. -n*)
  20109. case `echo 'xy\c'` in
  20110. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20111. xy) ECHO_C='\c';;
  20112. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20113. ECHO_T=' ';;
  20114. esac;;
  20115. *)
  20116. ECHO_N='-n';;
  20117. esac
  20118. rm -f conf$$ conf$$.exe conf$$.file
  20119. if test -d conf$$.dir; then
  20120. rm -f conf$$.dir/conf$$.file
  20121. else
  20122. rm -f conf$$.dir
  20123. mkdir conf$$.dir 2>/dev/null
  20124. fi
  20125. if (echo >conf$$.file) 2>/dev/null; then
  20126. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20127. as_ln_s='ln -s'
  20128. # ... but there are two gotchas:
  20129. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20130. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20131. # In both cases, we have to default to `cp -pR'.
  20132. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20133. as_ln_s='cp -pR'
  20134. elif ln conf$$.file conf$$ 2>/dev/null; then
  20135. as_ln_s=ln
  20136. else
  20137. as_ln_s='cp -pR'
  20138. fi
  20139. else
  20140. as_ln_s='cp -pR'
  20141. fi
  20142. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20143. rmdir conf$$.dir 2>/dev/null
  20144. # as_fn_mkdir_p
  20145. # -------------
  20146. # Create "$as_dir" as a directory, including parents if necessary.
  20147. as_fn_mkdir_p ()
  20148. {
  20149. case $as_dir in #(
  20150. -*) as_dir=./$as_dir;;
  20151. esac
  20152. test -d "$as_dir" || eval $as_mkdir_p || {
  20153. as_dirs=
  20154. while :; do
  20155. case $as_dir in #(
  20156. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20157. *) as_qdir=$as_dir;;
  20158. esac
  20159. as_dirs="'$as_qdir' $as_dirs"
  20160. as_dir=`$as_dirname -- "$as_dir" ||
  20161. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20162. X"$as_dir" : 'X\(//\)[^/]' \| \
  20163. X"$as_dir" : 'X\(//\)$' \| \
  20164. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20165. $as_echo X"$as_dir" |
  20166. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20167. s//\1/
  20168. q
  20169. }
  20170. /^X\(\/\/\)[^/].*/{
  20171. s//\1/
  20172. q
  20173. }
  20174. /^X\(\/\/\)$/{
  20175. s//\1/
  20176. q
  20177. }
  20178. /^X\(\/\).*/{
  20179. s//\1/
  20180. q
  20181. }
  20182. s/.*/./; q'`
  20183. test -d "$as_dir" && break
  20184. done
  20185. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20186. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20187. } # as_fn_mkdir_p
  20188. if mkdir -p . 2>/dev/null; then
  20189. as_mkdir_p='mkdir -p "$as_dir"'
  20190. else
  20191. test -d ./-p && rmdir ./-p
  20192. as_mkdir_p=false
  20193. fi
  20194. # as_fn_executable_p FILE
  20195. # -----------------------
  20196. # Test if FILE is an executable regular file.
  20197. as_fn_executable_p ()
  20198. {
  20199. test -f "$1" && test -x "$1"
  20200. } # as_fn_executable_p
  20201. as_test_x='test -x'
  20202. as_executable_p=as_fn_executable_p
  20203. # Sed expression to map a string onto a valid CPP name.
  20204. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20205. # Sed expression to map a string onto a valid variable name.
  20206. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20207. exec 6>&1
  20208. ## ----------------------------------- ##
  20209. ## Main body of $CONFIG_STATUS script. ##
  20210. ## ----------------------------------- ##
  20211. _ASEOF
  20212. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20213. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20214. # Save the log message, to keep $0 and so on meaningful, and to
  20215. # report actual input values of CONFIG_FILES etc. instead of their
  20216. # values after options handling.
  20217. ac_log="
  20218. This file was extended by $as_me, which was
  20219. generated by GNU Autoconf 2.69. Invocation command line was
  20220. CONFIG_FILES = $CONFIG_FILES
  20221. CONFIG_HEADERS = $CONFIG_HEADERS
  20222. CONFIG_LINKS = $CONFIG_LINKS
  20223. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20224. $ $0 $@
  20225. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20226. "
  20227. _ACEOF
  20228. case $ac_config_files in *"
  20229. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20230. esac
  20231. case $ac_config_headers in *"
  20232. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20233. esac
  20234. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20235. # Files that config.status was made for.
  20236. config_files="$ac_config_files"
  20237. config_headers="$ac_config_headers"
  20238. config_commands="$ac_config_commands"
  20239. _ACEOF
  20240. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20241. ac_cs_usage="\
  20242. \`$as_me' instantiates files and other configuration actions
  20243. from templates according to the current configuration. Unless the files
  20244. and actions are specified as TAGs, all are instantiated by default.
  20245. Usage: $0 [OPTION]... [TAG]...
  20246. -h, --help print this help, then exit
  20247. -V, --version print version number and configuration settings, then exit
  20248. --config print configuration, then exit
  20249. -q, --quiet, --silent
  20250. do not print progress messages
  20251. -d, --debug don't remove temporary files
  20252. --recheck update $as_me by reconfiguring in the same conditions
  20253. --file=FILE[:TEMPLATE]
  20254. instantiate the configuration file FILE
  20255. --header=FILE[:TEMPLATE]
  20256. instantiate the configuration header FILE
  20257. Configuration files:
  20258. $config_files
  20259. Configuration headers:
  20260. $config_headers
  20261. Configuration commands:
  20262. $config_commands
  20263. Report bugs to the package provider."
  20264. _ACEOF
  20265. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20266. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  20267. ac_cs_version="\\
  20268. config.status
  20269. configured by $0, generated by GNU Autoconf 2.69,
  20270. with options \\"\$ac_cs_config\\"
  20271. Copyright (C) 2012 Free Software Foundation, Inc.
  20272. This config.status script is free software; the Free Software Foundation
  20273. gives unlimited permission to copy, distribute and modify it."
  20274. ac_pwd='$ac_pwd'
  20275. srcdir='$srcdir'
  20276. INSTALL='$INSTALL'
  20277. AWK='$AWK'
  20278. test -n "\$AWK" || AWK=awk
  20279. _ACEOF
  20280. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20281. # The default lists apply if the user does not specify any file.
  20282. ac_need_defaults=:
  20283. while test $# != 0
  20284. do
  20285. case $1 in
  20286. --*=?*)
  20287. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20288. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20289. ac_shift=:
  20290. ;;
  20291. --*=)
  20292. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20293. ac_optarg=
  20294. ac_shift=:
  20295. ;;
  20296. *)
  20297. ac_option=$1
  20298. ac_optarg=$2
  20299. ac_shift=shift
  20300. ;;
  20301. esac
  20302. case $ac_option in
  20303. # Handling of the options.
  20304. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20305. ac_cs_recheck=: ;;
  20306. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20307. $as_echo "$ac_cs_version"; exit ;;
  20308. --config | --confi | --conf | --con | --co | --c )
  20309. $as_echo "$ac_cs_config"; exit ;;
  20310. --debug | --debu | --deb | --de | --d | -d )
  20311. debug=: ;;
  20312. --file | --fil | --fi | --f )
  20313. $ac_shift
  20314. case $ac_optarg in
  20315. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20316. '') as_fn_error $? "missing file argument" ;;
  20317. esac
  20318. as_fn_append CONFIG_FILES " '$ac_optarg'"
  20319. ac_need_defaults=false;;
  20320. --header | --heade | --head | --hea )
  20321. $ac_shift
  20322. case $ac_optarg in
  20323. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20324. esac
  20325. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  20326. ac_need_defaults=false;;
  20327. --he | --h)
  20328. # Conflict between --help and --header
  20329. as_fn_error $? "ambiguous option: \`$1'
  20330. Try \`$0 --help' for more information.";;
  20331. --help | --hel | -h )
  20332. $as_echo "$ac_cs_usage"; exit ;;
  20333. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20334. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20335. ac_cs_silent=: ;;
  20336. # This is an error.
  20337. -*) as_fn_error $? "unrecognized option: \`$1'
  20338. Try \`$0 --help' for more information." ;;
  20339. *) as_fn_append ac_config_targets " $1"
  20340. ac_need_defaults=false ;;
  20341. esac
  20342. shift
  20343. done
  20344. ac_configure_extra_args=
  20345. if $ac_cs_silent; then
  20346. exec 6>/dev/null
  20347. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20348. fi
  20349. _ACEOF
  20350. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20351. if \$ac_cs_recheck; then
  20352. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20353. shift
  20354. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  20355. CONFIG_SHELL='$SHELL'
  20356. export CONFIG_SHELL
  20357. exec "\$@"
  20358. fi
  20359. _ACEOF
  20360. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20361. exec 5>>config.log
  20362. {
  20363. echo
  20364. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20365. ## Running $as_me. ##
  20366. _ASBOX
  20367. $as_echo "$ac_log"
  20368. } >&5
  20369. _ACEOF
  20370. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20371. #
  20372. # INIT-COMMANDS
  20373. #
  20374. # The HP-UX ksh and POSIX shell print the target directory to stdout
  20375. # if CDPATH is set.
  20376. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20377. sed_quote_subst='$sed_quote_subst'
  20378. double_quote_subst='$double_quote_subst'
  20379. delay_variable_subst='$delay_variable_subst'
  20380. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  20381. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  20382. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  20383. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  20384. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  20385. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  20386. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  20387. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  20388. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  20389. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  20390. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  20391. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  20392. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  20393. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  20394. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  20395. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  20396. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20397. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20398. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20399. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20400. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20401. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20402. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20403. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20404. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20405. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20406. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20407. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20408. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20409. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20410. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20411. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20412. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20413. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20414. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20415. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20416. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20417. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20418. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20419. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20420. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20421. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20422. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20423. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20424. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20425. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20426. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20427. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20428. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20429. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20430. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20431. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20432. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20433. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20434. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  20435. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  20436. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  20437. 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"`'
  20438. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  20439. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  20440. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  20441. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  20442. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  20443. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  20444. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  20445. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  20446. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  20447. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  20448. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  20449. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  20450. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  20451. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  20452. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  20453. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  20454. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  20455. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  20456. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20457. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  20458. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  20459. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  20460. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  20461. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  20462. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  20463. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20464. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  20465. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20466. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  20467. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20468. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  20469. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20470. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20471. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  20472. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  20473. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  20474. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  20475. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  20476. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20477. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  20478. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  20479. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  20480. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  20481. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  20482. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  20483. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  20484. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  20485. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  20486. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  20487. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  20488. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  20489. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  20490. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  20491. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  20492. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20493. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  20494. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  20495. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  20496. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  20497. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  20498. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20499. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20500. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  20501. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  20502. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  20503. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  20504. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  20505. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  20506. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  20507. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  20508. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  20509. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  20510. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  20511. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  20512. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  20513. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  20514. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  20515. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  20516. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  20517. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  20518. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20519. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20520. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20521. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  20522. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  20523. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20524. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  20525. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  20526. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  20527. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  20528. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  20529. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  20530. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20531. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20532. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  20533. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20534. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20535. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20536. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20537. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20538. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20539. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  20540. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20541. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20542. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20543. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  20544. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  20545. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  20546. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  20547. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  20548. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  20549. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  20550. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  20551. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  20552. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20553. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20554. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20555. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20556. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20557. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20558. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  20559. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  20560. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20561. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20562. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  20563. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  20564. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  20565. LTCC='$LTCC'
  20566. LTCFLAGS='$LTCFLAGS'
  20567. compiler='$compiler_DEFAULT'
  20568. # A function that is used when there is no print builtin or printf.
  20569. func_fallback_echo ()
  20570. {
  20571. eval 'cat <<_LTECHO_EOF
  20572. \$1
  20573. _LTECHO_EOF'
  20574. }
  20575. # Quote evaled strings.
  20576. for var in AS \
  20577. DLLTOOL \
  20578. OBJDUMP \
  20579. SHELL \
  20580. ECHO \
  20581. PATH_SEPARATOR \
  20582. SED \
  20583. GREP \
  20584. EGREP \
  20585. FGREP \
  20586. LD \
  20587. NM \
  20588. LN_S \
  20589. lt_SP2NL \
  20590. lt_NL2SP \
  20591. reload_flag \
  20592. deplibs_check_method \
  20593. file_magic_cmd \
  20594. file_magic_glob \
  20595. want_nocaseglob \
  20596. sharedlib_from_linklib_cmd \
  20597. AR \
  20598. AR_FLAGS \
  20599. archiver_list_spec \
  20600. STRIP \
  20601. RANLIB \
  20602. CC \
  20603. CFLAGS \
  20604. compiler \
  20605. lt_cv_sys_global_symbol_pipe \
  20606. lt_cv_sys_global_symbol_to_cdecl \
  20607. lt_cv_sys_global_symbol_to_c_name_address \
  20608. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  20609. nm_file_list_spec \
  20610. lt_prog_compiler_no_builtin_flag \
  20611. lt_prog_compiler_pic \
  20612. lt_prog_compiler_wl \
  20613. lt_prog_compiler_static \
  20614. lt_cv_prog_compiler_c_o \
  20615. need_locks \
  20616. MANIFEST_TOOL \
  20617. DSYMUTIL \
  20618. NMEDIT \
  20619. LIPO \
  20620. OTOOL \
  20621. OTOOL64 \
  20622. shrext_cmds \
  20623. export_dynamic_flag_spec \
  20624. whole_archive_flag_spec \
  20625. compiler_needs_object \
  20626. with_gnu_ld \
  20627. allow_undefined_flag \
  20628. no_undefined_flag \
  20629. hardcode_libdir_flag_spec \
  20630. hardcode_libdir_separator \
  20631. exclude_expsyms \
  20632. include_expsyms \
  20633. file_list_spec \
  20634. variables_saved_for_relink \
  20635. libname_spec \
  20636. library_names_spec \
  20637. soname_spec \
  20638. install_override_mode \
  20639. finish_eval \
  20640. old_striplib \
  20641. striplib \
  20642. compiler_lib_search_dirs \
  20643. predep_objects \
  20644. postdep_objects \
  20645. predeps \
  20646. postdeps \
  20647. compiler_lib_search_path \
  20648. LD_CXX \
  20649. reload_flag_CXX \
  20650. compiler_CXX \
  20651. lt_prog_compiler_no_builtin_flag_CXX \
  20652. lt_prog_compiler_pic_CXX \
  20653. lt_prog_compiler_wl_CXX \
  20654. lt_prog_compiler_static_CXX \
  20655. lt_cv_prog_compiler_c_o_CXX \
  20656. export_dynamic_flag_spec_CXX \
  20657. whole_archive_flag_spec_CXX \
  20658. compiler_needs_object_CXX \
  20659. with_gnu_ld_CXX \
  20660. allow_undefined_flag_CXX \
  20661. no_undefined_flag_CXX \
  20662. hardcode_libdir_flag_spec_CXX \
  20663. hardcode_libdir_separator_CXX \
  20664. exclude_expsyms_CXX \
  20665. include_expsyms_CXX \
  20666. file_list_spec_CXX \
  20667. compiler_lib_search_dirs_CXX \
  20668. predep_objects_CXX \
  20669. postdep_objects_CXX \
  20670. predeps_CXX \
  20671. postdeps_CXX \
  20672. compiler_lib_search_path_CXX; do
  20673. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20674. *[\\\\\\\`\\"\\\$]*)
  20675. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  20676. ;;
  20677. *)
  20678. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20679. ;;
  20680. esac
  20681. done
  20682. # Double-quote double-evaled strings.
  20683. for var in reload_cmds \
  20684. old_postinstall_cmds \
  20685. old_postuninstall_cmds \
  20686. old_archive_cmds \
  20687. extract_expsyms_cmds \
  20688. old_archive_from_new_cmds \
  20689. old_archive_from_expsyms_cmds \
  20690. archive_cmds \
  20691. archive_expsym_cmds \
  20692. module_cmds \
  20693. module_expsym_cmds \
  20694. export_symbols_cmds \
  20695. prelink_cmds \
  20696. postlink_cmds \
  20697. postinstall_cmds \
  20698. postuninstall_cmds \
  20699. finish_cmds \
  20700. sys_lib_search_path_spec \
  20701. sys_lib_dlsearch_path_spec \
  20702. reload_cmds_CXX \
  20703. old_archive_cmds_CXX \
  20704. old_archive_from_new_cmds_CXX \
  20705. old_archive_from_expsyms_cmds_CXX \
  20706. archive_cmds_CXX \
  20707. archive_expsym_cmds_CXX \
  20708. module_cmds_CXX \
  20709. module_expsym_cmds_CXX \
  20710. export_symbols_cmds_CXX \
  20711. prelink_cmds_CXX \
  20712. postlink_cmds_CXX; do
  20713. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20714. *[\\\\\\\`\\"\\\$]*)
  20715. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  20716. ;;
  20717. *)
  20718. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20719. ;;
  20720. esac
  20721. done
  20722. ac_aux_dir='$ac_aux_dir'
  20723. xsi_shell='$xsi_shell'
  20724. lt_shell_append='$lt_shell_append'
  20725. # See if we are running on zsh, and set the options which allow our
  20726. # commands through without removal of \ escapes INIT.
  20727. if test -n "\${ZSH_VERSION+set}" ; then
  20728. setopt NO_GLOB_SUBST
  20729. fi
  20730. PACKAGE='$PACKAGE'
  20731. VERSION='$VERSION'
  20732. TIMESTAMP='$TIMESTAMP'
  20733. RM='$RM'
  20734. ofile='$ofile'
  20735. SUMMARY="$SUMMARY"
  20736. _ACEOF
  20737. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20738. # Handling of arguments.
  20739. for ac_config_target in $ac_config_targets
  20740. do
  20741. case $ac_config_target in
  20742. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  20743. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  20744. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  20745. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  20746. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  20747. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  20748. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  20749. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  20750. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  20751. esac
  20752. done
  20753. # If the user did not use the arguments to specify the items to instantiate,
  20754. # then the envvar interface is used. Set only those that are not.
  20755. # We use the long form for the default assignment because of an extremely
  20756. # bizarre bug on SunOS 4.1.3.
  20757. if $ac_need_defaults; then
  20758. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20759. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20760. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20761. fi
  20762. # Have a temporary directory for convenience. Make it in the build tree
  20763. # simply because there is no reason against having it here, and in addition,
  20764. # creating and moving files from /tmp can sometimes cause problems.
  20765. # Hook for its removal unless debugging.
  20766. # Note that there is a small window in which the directory will not be cleaned:
  20767. # after its creation but before its name has been assigned to `$tmp'.
  20768. $debug ||
  20769. {
  20770. tmp= ac_tmp=
  20771. trap 'exit_status=$?
  20772. : "${ac_tmp:=$tmp}"
  20773. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  20774. ' 0
  20775. trap 'as_fn_exit 1' 1 2 13 15
  20776. }
  20777. # Create a (secure) tmp directory for tmp files.
  20778. {
  20779. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20780. test -d "$tmp"
  20781. } ||
  20782. {
  20783. tmp=./conf$$-$RANDOM
  20784. (umask 077 && mkdir "$tmp")
  20785. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  20786. ac_tmp=$tmp
  20787. # Set up the scripts for CONFIG_FILES section.
  20788. # No need to generate them if there are no CONFIG_FILES.
  20789. # This happens for instance with `./config.status config.h'.
  20790. if test -n "$CONFIG_FILES"; then
  20791. ac_cr=`echo X | tr X '\015'`
  20792. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  20793. # But we know of no other shell where ac_cr would be empty at this
  20794. # point, so we can use a bashism as a fallback.
  20795. if test "x$ac_cr" = x; then
  20796. eval ac_cr=\$\'\\r\'
  20797. fi
  20798. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  20799. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  20800. ac_cs_awk_cr='\\r'
  20801. else
  20802. ac_cs_awk_cr=$ac_cr
  20803. fi
  20804. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  20805. _ACEOF
  20806. {
  20807. echo "cat >conf$$subs.awk <<_ACEOF" &&
  20808. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  20809. echo "_ACEOF"
  20810. } >conf$$subs.sh ||
  20811. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20812. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  20813. ac_delim='%!_!# '
  20814. for ac_last_try in false false false false false :; do
  20815. . ./conf$$subs.sh ||
  20816. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20817. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  20818. if test $ac_delim_n = $ac_delim_num; then
  20819. break
  20820. elif $ac_last_try; then
  20821. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20822. else
  20823. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20824. fi
  20825. done
  20826. rm -f conf$$subs.sh
  20827. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20828. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  20829. _ACEOF
  20830. sed -n '
  20831. h
  20832. s/^/S["/; s/!.*/"]=/
  20833. p
  20834. g
  20835. s/^[^!]*!//
  20836. :repl
  20837. t repl
  20838. s/'"$ac_delim"'$//
  20839. t delim
  20840. :nl
  20841. h
  20842. s/\(.\{148\}\)..*/\1/
  20843. t more1
  20844. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  20845. p
  20846. n
  20847. b repl
  20848. :more1
  20849. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20850. p
  20851. g
  20852. s/.\{148\}//
  20853. t nl
  20854. :delim
  20855. h
  20856. s/\(.\{148\}\)..*/\1/
  20857. t more2
  20858. s/["\\]/\\&/g; s/^/"/; s/$/"/
  20859. p
  20860. b
  20861. :more2
  20862. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20863. p
  20864. g
  20865. s/.\{148\}//
  20866. t delim
  20867. ' <conf$$subs.awk | sed '
  20868. /^[^""]/{
  20869. N
  20870. s/\n//
  20871. }
  20872. ' >>$CONFIG_STATUS || ac_write_fail=1
  20873. rm -f conf$$subs.awk
  20874. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20875. _ACAWK
  20876. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  20877. for (key in S) S_is_set[key] = 1
  20878. FS = ""
  20879. }
  20880. {
  20881. line = $ 0
  20882. nfields = split(line, field, "@")
  20883. substed = 0
  20884. len = length(field[1])
  20885. for (i = 2; i < nfields; i++) {
  20886. key = field[i]
  20887. keylen = length(key)
  20888. if (S_is_set[key]) {
  20889. value = S[key]
  20890. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  20891. len += length(value) + length(field[++i])
  20892. substed = 1
  20893. } else
  20894. len += 1 + keylen
  20895. }
  20896. print line
  20897. }
  20898. _ACAWK
  20899. _ACEOF
  20900. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20901. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  20902. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  20903. else
  20904. cat
  20905. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  20906. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  20907. _ACEOF
  20908. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  20909. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  20910. # trailing colons and then remove the whole line if VPATH becomes empty
  20911. # (actually we leave an empty line to preserve line numbers).
  20912. if test "x$srcdir" = x.; then
  20913. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  20914. h
  20915. s///
  20916. s/^/:/
  20917. s/[ ]*$/:/
  20918. s/:\$(srcdir):/:/g
  20919. s/:\${srcdir}:/:/g
  20920. s/:@srcdir@:/:/g
  20921. s/^:*//
  20922. s/:*$//
  20923. x
  20924. s/\(=[ ]*\).*/\1/
  20925. G
  20926. s/\n//
  20927. s/^[^=]*=[ ]*$//
  20928. }'
  20929. fi
  20930. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20931. fi # test -n "$CONFIG_FILES"
  20932. # Set up the scripts for CONFIG_HEADERS section.
  20933. # No need to generate them if there are no CONFIG_HEADERS.
  20934. # This happens for instance with `./config.status Makefile'.
  20935. if test -n "$CONFIG_HEADERS"; then
  20936. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  20937. BEGIN {
  20938. _ACEOF
  20939. # Transform confdefs.h into an awk script `defines.awk', embedded as
  20940. # here-document in config.status, that substitutes the proper values into
  20941. # config.h.in to produce config.h.
  20942. # Create a delimiter string that does not exist in confdefs.h, to ease
  20943. # handling of long lines.
  20944. ac_delim='%!_!# '
  20945. for ac_last_try in false false :; do
  20946. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  20947. if test -z "$ac_tt"; then
  20948. break
  20949. elif $ac_last_try; then
  20950. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  20951. else
  20952. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20953. fi
  20954. done
  20955. # For the awk script, D is an array of macro values keyed by name,
  20956. # likewise P contains macro parameters if any. Preserve backslash
  20957. # newline sequences.
  20958. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20959. sed -n '
  20960. s/.\{148\}/&'"$ac_delim"'/g
  20961. t rset
  20962. :rset
  20963. s/^[ ]*#[ ]*define[ ][ ]*/ /
  20964. t def
  20965. d
  20966. :def
  20967. s/\\$//
  20968. t bsnl
  20969. s/["\\]/\\&/g
  20970. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20971. D["\1"]=" \3"/p
  20972. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  20973. d
  20974. :bsnl
  20975. s/["\\]/\\&/g
  20976. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20977. D["\1"]=" \3\\\\\\n"\\/p
  20978. t cont
  20979. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  20980. t cont
  20981. d
  20982. :cont
  20983. n
  20984. s/.\{148\}/&'"$ac_delim"'/g
  20985. t clear
  20986. :clear
  20987. s/\\$//
  20988. t bsnlc
  20989. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  20990. d
  20991. :bsnlc
  20992. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  20993. b cont
  20994. ' <confdefs.h | sed '
  20995. s/'"$ac_delim"'/"\\\
  20996. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  20997. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20998. for (key in D) D_is_set[key] = 1
  20999. FS = ""
  21000. }
  21001. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21002. line = \$ 0
  21003. split(line, arg, " ")
  21004. if (arg[1] == "#") {
  21005. defundef = arg[2]
  21006. mac1 = arg[3]
  21007. } else {
  21008. defundef = substr(arg[1], 2)
  21009. mac1 = arg[2]
  21010. }
  21011. split(mac1, mac2, "(") #)
  21012. macro = mac2[1]
  21013. prefix = substr(line, 1, index(line, defundef) - 1)
  21014. if (D_is_set[macro]) {
  21015. # Preserve the white space surrounding the "#".
  21016. print prefix "define", macro P[macro] D[macro]
  21017. next
  21018. } else {
  21019. # Replace #undef with comments. This is necessary, for example,
  21020. # in the case of _POSIX_SOURCE, which is predefined and required
  21021. # on some systems where configure will not decide to define it.
  21022. if (defundef == "undef") {
  21023. print "/*", prefix defundef, macro, "*/"
  21024. next
  21025. }
  21026. }
  21027. }
  21028. { print }
  21029. _ACAWK
  21030. _ACEOF
  21031. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21032. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21033. fi # test -n "$CONFIG_HEADERS"
  21034. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21035. shift
  21036. for ac_tag
  21037. do
  21038. case $ac_tag in
  21039. :[FHLC]) ac_mode=$ac_tag; continue;;
  21040. esac
  21041. case $ac_mode$ac_tag in
  21042. :[FHL]*:*);;
  21043. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21044. :[FH]-) ac_tag=-:-;;
  21045. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21046. esac
  21047. ac_save_IFS=$IFS
  21048. IFS=:
  21049. set x $ac_tag
  21050. IFS=$ac_save_IFS
  21051. shift
  21052. ac_file=$1
  21053. shift
  21054. case $ac_mode in
  21055. :L) ac_source=$1;;
  21056. :[FH])
  21057. ac_file_inputs=
  21058. for ac_f
  21059. do
  21060. case $ac_f in
  21061. -) ac_f="$ac_tmp/stdin";;
  21062. *) # Look for the file first in the build tree, then in the source tree
  21063. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21064. # because $ac_f cannot contain `:'.
  21065. test -f "$ac_f" ||
  21066. case $ac_f in
  21067. [\\/$]*) false;;
  21068. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21069. esac ||
  21070. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21071. esac
  21072. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21073. as_fn_append ac_file_inputs " '$ac_f'"
  21074. done
  21075. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21076. # use $as_me), people would be surprised to read:
  21077. # /* config.h. Generated by config.status. */
  21078. configure_input='Generated from '`
  21079. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21080. `' by configure.'
  21081. if test x"$ac_file" != x-; then
  21082. configure_input="$ac_file. $configure_input"
  21083. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21084. $as_echo "$as_me: creating $ac_file" >&6;}
  21085. fi
  21086. # Neutralize special characters interpreted by sed in replacement strings.
  21087. case $configure_input in #(
  21088. *\&* | *\|* | *\\* )
  21089. ac_sed_conf_input=`$as_echo "$configure_input" |
  21090. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21091. *) ac_sed_conf_input=$configure_input;;
  21092. esac
  21093. case $ac_tag in
  21094. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21095. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21096. esac
  21097. ;;
  21098. esac
  21099. ac_dir=`$as_dirname -- "$ac_file" ||
  21100. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21101. X"$ac_file" : 'X\(//\)[^/]' \| \
  21102. X"$ac_file" : 'X\(//\)$' \| \
  21103. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21104. $as_echo X"$ac_file" |
  21105. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21106. s//\1/
  21107. q
  21108. }
  21109. /^X\(\/\/\)[^/].*/{
  21110. s//\1/
  21111. q
  21112. }
  21113. /^X\(\/\/\)$/{
  21114. s//\1/
  21115. q
  21116. }
  21117. /^X\(\/\).*/{
  21118. s//\1/
  21119. q
  21120. }
  21121. s/.*/./; q'`
  21122. as_dir="$ac_dir"; as_fn_mkdir_p
  21123. ac_builddir=.
  21124. case "$ac_dir" in
  21125. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21126. *)
  21127. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21128. # A ".." for each directory in $ac_dir_suffix.
  21129. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21130. case $ac_top_builddir_sub in
  21131. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21132. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21133. esac ;;
  21134. esac
  21135. ac_abs_top_builddir=$ac_pwd
  21136. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21137. # for backward compatibility:
  21138. ac_top_builddir=$ac_top_build_prefix
  21139. case $srcdir in
  21140. .) # We are building in place.
  21141. ac_srcdir=.
  21142. ac_top_srcdir=$ac_top_builddir_sub
  21143. ac_abs_top_srcdir=$ac_pwd ;;
  21144. [\\/]* | ?:[\\/]* ) # Absolute name.
  21145. ac_srcdir=$srcdir$ac_dir_suffix;
  21146. ac_top_srcdir=$srcdir
  21147. ac_abs_top_srcdir=$srcdir ;;
  21148. *) # Relative name.
  21149. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21150. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21151. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21152. esac
  21153. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21154. case $ac_mode in
  21155. :F)
  21156. #
  21157. # CONFIG_FILE
  21158. #
  21159. case $INSTALL in
  21160. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21161. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21162. esac
  21163. _ACEOF
  21164. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21165. # If the template does not know about datarootdir, expand it.
  21166. # FIXME: This hack should be removed a few years after 2.60.
  21167. ac_datarootdir_hack=; ac_datarootdir_seen=
  21168. ac_sed_dataroot='
  21169. /datarootdir/ {
  21170. p
  21171. q
  21172. }
  21173. /@datadir@/p
  21174. /@docdir@/p
  21175. /@infodir@/p
  21176. /@localedir@/p
  21177. /@mandir@/p'
  21178. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21179. *datarootdir*) ac_datarootdir_seen=yes;;
  21180. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21181. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21182. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21183. _ACEOF
  21184. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21185. ac_datarootdir_hack='
  21186. s&@datadir@&$datadir&g
  21187. s&@docdir@&$docdir&g
  21188. s&@infodir@&$infodir&g
  21189. s&@localedir@&$localedir&g
  21190. s&@mandir@&$mandir&g
  21191. s&\\\${datarootdir}&$datarootdir&g' ;;
  21192. esac
  21193. _ACEOF
  21194. # Neutralize VPATH when `$srcdir' = `.'.
  21195. # Shell code in configure.ac might set extrasub.
  21196. # FIXME: do we really want to maintain this feature?
  21197. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21198. ac_sed_extra="$ac_vpsub
  21199. $extrasub
  21200. _ACEOF
  21201. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21202. :t
  21203. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21204. s|@configure_input@|$ac_sed_conf_input|;t t
  21205. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21206. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21207. s&@srcdir@&$ac_srcdir&;t t
  21208. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21209. s&@top_srcdir@&$ac_top_srcdir&;t t
  21210. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21211. s&@builddir@&$ac_builddir&;t t
  21212. s&@abs_builddir@&$ac_abs_builddir&;t t
  21213. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21214. s&@INSTALL@&$ac_INSTALL&;t t
  21215. $ac_datarootdir_hack
  21216. "
  21217. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21218. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21219. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21220. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21221. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21222. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21223. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21224. which seems to be undefined. Please make sure it is defined" >&5
  21225. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21226. which seems to be undefined. Please make sure it is defined" >&2;}
  21227. rm -f "$ac_tmp/stdin"
  21228. case $ac_file in
  21229. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21230. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  21231. esac \
  21232. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21233. ;;
  21234. :H)
  21235. #
  21236. # CONFIG_HEADER
  21237. #
  21238. if test x"$ac_file" != x-; then
  21239. {
  21240. $as_echo "/* $configure_input */" \
  21241. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  21242. } >"$ac_tmp/config.h" \
  21243. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21244. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  21245. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  21246. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21247. else
  21248. rm -f "$ac_file"
  21249. mv "$ac_tmp/config.h" "$ac_file" \
  21250. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21251. fi
  21252. else
  21253. $as_echo "/* $configure_input */" \
  21254. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  21255. || as_fn_error $? "could not create -" "$LINENO" 5
  21256. fi
  21257. ;;
  21258. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  21259. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21260. ;;
  21261. esac
  21262. case $ac_file$ac_mode in
  21263. "libtool":C)
  21264. # See if we are running on zsh, and set the options which allow our
  21265. # commands through without removal of \ escapes.
  21266. if test -n "${ZSH_VERSION+set}" ; then
  21267. setopt NO_GLOB_SUBST
  21268. fi
  21269. cfgfile="${ofile}T"
  21270. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  21271. $RM "$cfgfile"
  21272. cat <<_LT_EOF >> "$cfgfile"
  21273. #! $SHELL
  21274. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  21275. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  21276. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21277. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  21278. #
  21279. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21280. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  21281. # Foundation, Inc.
  21282. # Written by Gordon Matzigkeit, 1996
  21283. #
  21284. # This file is part of GNU Libtool.
  21285. #
  21286. # GNU Libtool is free software; you can redistribute it and/or
  21287. # modify it under the terms of the GNU General Public License as
  21288. # published by the Free Software Foundation; either version 2 of
  21289. # the License, or (at your option) any later version.
  21290. #
  21291. # As a special exception to the GNU General Public License,
  21292. # if you distribute this file as part of a program or library that
  21293. # is built using GNU Libtool, you may include this file under the
  21294. # same distribution terms that you use for the rest of that program.
  21295. #
  21296. # GNU Libtool is distributed in the hope that it will be useful,
  21297. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21298. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21299. # GNU General Public License for more details.
  21300. #
  21301. # You should have received a copy of the GNU General Public License
  21302. # along with GNU Libtool; see the file COPYING. If not, a copy
  21303. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  21304. # obtained by writing to the Free Software Foundation, Inc.,
  21305. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21306. # The names of the tagged configurations supported by this script.
  21307. available_tags="CXX "
  21308. # ### BEGIN LIBTOOL CONFIG
  21309. # Which release of libtool.m4 was used?
  21310. macro_version=$macro_version
  21311. macro_revision=$macro_revision
  21312. # Assembler program.
  21313. AS=$lt_AS
  21314. # DLL creation program.
  21315. DLLTOOL=$lt_DLLTOOL
  21316. # Object dumper program.
  21317. OBJDUMP=$lt_OBJDUMP
  21318. # Whether or not to build shared libraries.
  21319. build_libtool_libs=$enable_shared
  21320. # Whether or not to build static libraries.
  21321. build_old_libs=$enable_static
  21322. # What type of objects to build.
  21323. pic_mode=$pic_mode
  21324. # Whether or not to optimize for fast installation.
  21325. fast_install=$enable_fast_install
  21326. # Shell to use when invoking shell scripts.
  21327. SHELL=$lt_SHELL
  21328. # An echo program that protects backslashes.
  21329. ECHO=$lt_ECHO
  21330. # The PATH separator for the build system.
  21331. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21332. # The host system.
  21333. host_alias=$host_alias
  21334. host=$host
  21335. host_os=$host_os
  21336. # The build system.
  21337. build_alias=$build_alias
  21338. build=$build
  21339. build_os=$build_os
  21340. # A sed program that does not truncate output.
  21341. SED=$lt_SED
  21342. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21343. Xsed="\$SED -e 1s/^X//"
  21344. # A grep program that handles long lines.
  21345. GREP=$lt_GREP
  21346. # An ERE matcher.
  21347. EGREP=$lt_EGREP
  21348. # A literal string matcher.
  21349. FGREP=$lt_FGREP
  21350. # A BSD- or MS-compatible name lister.
  21351. NM=$lt_NM
  21352. # Whether we need soft or hard links.
  21353. LN_S=$lt_LN_S
  21354. # What is the maximum length of a command?
  21355. max_cmd_len=$max_cmd_len
  21356. # Object file suffix (normally "o").
  21357. objext=$ac_objext
  21358. # Executable file suffix (normally "").
  21359. exeext=$exeext
  21360. # whether the shell understands "unset".
  21361. lt_unset=$lt_unset
  21362. # turn spaces into newlines.
  21363. SP2NL=$lt_lt_SP2NL
  21364. # turn newlines into spaces.
  21365. NL2SP=$lt_lt_NL2SP
  21366. # convert \$build file names to \$host format.
  21367. to_host_file_cmd=$lt_cv_to_host_file_cmd
  21368. # convert \$build files to toolchain format.
  21369. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  21370. # Method to check whether dependent libraries are shared objects.
  21371. deplibs_check_method=$lt_deplibs_check_method
  21372. # Command to use when deplibs_check_method = "file_magic".
  21373. file_magic_cmd=$lt_file_magic_cmd
  21374. # How to find potential files when deplibs_check_method = "file_magic".
  21375. file_magic_glob=$lt_file_magic_glob
  21376. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  21377. want_nocaseglob=$lt_want_nocaseglob
  21378. # Command to associate shared and link libraries.
  21379. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  21380. # The archiver.
  21381. AR=$lt_AR
  21382. # Flags to create an archive.
  21383. AR_FLAGS=$lt_AR_FLAGS
  21384. # How to feed a file listing to the archiver.
  21385. archiver_list_spec=$lt_archiver_list_spec
  21386. # A symbol stripping program.
  21387. STRIP=$lt_STRIP
  21388. # Commands used to install an old-style archive.
  21389. RANLIB=$lt_RANLIB
  21390. old_postinstall_cmds=$lt_old_postinstall_cmds
  21391. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21392. # Whether to use a lock for old archive extraction.
  21393. lock_old_archive_extraction=$lock_old_archive_extraction
  21394. # A C compiler.
  21395. LTCC=$lt_CC
  21396. # LTCC compiler flags.
  21397. LTCFLAGS=$lt_CFLAGS
  21398. # Take the output of nm and produce a listing of raw symbols and C names.
  21399. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21400. # Transform the output of nm in a proper C declaration.
  21401. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21402. # Transform the output of nm in a C name address pair.
  21403. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21404. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21405. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21406. # Specify filename containing input files for \$NM.
  21407. nm_file_list_spec=$lt_nm_file_list_spec
  21408. # The root where to search for dependent libraries,and in which our libraries should be installed.
  21409. lt_sysroot=$lt_sysroot
  21410. # The name of the directory that contains temporary libtool files.
  21411. objdir=$objdir
  21412. # Used to examine libraries when file_magic_cmd begins with "file".
  21413. MAGIC_CMD=$MAGIC_CMD
  21414. # Must we lock files when doing compilation?
  21415. need_locks=$lt_need_locks
  21416. # Manifest tool.
  21417. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21418. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21419. DSYMUTIL=$lt_DSYMUTIL
  21420. # Tool to change global to local symbols on Mac OS X.
  21421. NMEDIT=$lt_NMEDIT
  21422. # Tool to manipulate fat objects and archives on Mac OS X.
  21423. LIPO=$lt_LIPO
  21424. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21425. OTOOL=$lt_OTOOL
  21426. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21427. OTOOL64=$lt_OTOOL64
  21428. # Old archive suffix (normally "a").
  21429. libext=$libext
  21430. # Shared library suffix (normally ".so").
  21431. shrext_cmds=$lt_shrext_cmds
  21432. # The commands to extract the exported symbol list from a shared archive.
  21433. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21434. # Variables whose values should be saved in libtool wrapper scripts and
  21435. # restored at link time.
  21436. variables_saved_for_relink=$lt_variables_saved_for_relink
  21437. # Do we need the "lib" prefix for modules?
  21438. need_lib_prefix=$need_lib_prefix
  21439. # Do we need a version for libraries?
  21440. need_version=$need_version
  21441. # Library versioning type.
  21442. version_type=$version_type
  21443. # Shared library runtime path variable.
  21444. runpath_var=$runpath_var
  21445. # Shared library path variable.
  21446. shlibpath_var=$shlibpath_var
  21447. # Is shlibpath searched before the hard-coded library search path?
  21448. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21449. # Format of library name prefix.
  21450. libname_spec=$lt_libname_spec
  21451. # List of archive names. First name is the real one, the rest are links.
  21452. # The last name is the one that the linker finds with -lNAME
  21453. library_names_spec=$lt_library_names_spec
  21454. # The coded name of the library, if different from the real name.
  21455. soname_spec=$lt_soname_spec
  21456. # Permission mode override for installation of shared libraries.
  21457. install_override_mode=$lt_install_override_mode
  21458. # Command to use after installation of a shared archive.
  21459. postinstall_cmds=$lt_postinstall_cmds
  21460. # Command to use after uninstallation of a shared archive.
  21461. postuninstall_cmds=$lt_postuninstall_cmds
  21462. # Commands used to finish a libtool library installation in a directory.
  21463. finish_cmds=$lt_finish_cmds
  21464. # As "finish_cmds", except a single script fragment to be evaled but
  21465. # not shown.
  21466. finish_eval=$lt_finish_eval
  21467. # Whether we should hardcode library paths into libraries.
  21468. hardcode_into_libs=$hardcode_into_libs
  21469. # Compile-time system search path for libraries.
  21470. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21471. # Run-time system search path for libraries.
  21472. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  21473. # Whether dlopen is supported.
  21474. dlopen_support=$enable_dlopen
  21475. # Whether dlopen of programs is supported.
  21476. dlopen_self=$enable_dlopen_self
  21477. # Whether dlopen of statically linked programs is supported.
  21478. dlopen_self_static=$enable_dlopen_self_static
  21479. # Commands to strip libraries.
  21480. old_striplib=$lt_old_striplib
  21481. striplib=$lt_striplib
  21482. # The linker used to build libraries.
  21483. LD=$lt_LD
  21484. # How to create reloadable object files.
  21485. reload_flag=$lt_reload_flag
  21486. reload_cmds=$lt_reload_cmds
  21487. # Commands used to build an old-style archive.
  21488. old_archive_cmds=$lt_old_archive_cmds
  21489. # A language specific compiler.
  21490. CC=$lt_compiler
  21491. # Is the compiler the GNU compiler?
  21492. with_gcc=$GCC
  21493. # Compiler flag to turn off builtin functions.
  21494. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  21495. # Additional compiler flags for building library objects.
  21496. pic_flag=$lt_lt_prog_compiler_pic
  21497. # How to pass a linker flag through the compiler.
  21498. wl=$lt_lt_prog_compiler_wl
  21499. # Compiler flag to prevent dynamic linking.
  21500. link_static_flag=$lt_lt_prog_compiler_static
  21501. # Does compiler simultaneously support -c and -o options?
  21502. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  21503. # Whether or not to add -lc for building shared libraries.
  21504. build_libtool_need_lc=$archive_cmds_need_lc
  21505. # Whether or not to disallow shared libs when runtime libs are static.
  21506. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  21507. # Compiler flag to allow reflexive dlopens.
  21508. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  21509. # Compiler flag to generate shared objects directly from archives.
  21510. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  21511. # Whether the compiler copes with passing no objects directly.
  21512. compiler_needs_object=$lt_compiler_needs_object
  21513. # Create an old-style archive from a shared archive.
  21514. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  21515. # Create a temporary old-style archive to link instead of a shared archive.
  21516. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  21517. # Commands used to build a shared archive.
  21518. archive_cmds=$lt_archive_cmds
  21519. archive_expsym_cmds=$lt_archive_expsym_cmds
  21520. # Commands used to build a loadable module if different from building
  21521. # a shared archive.
  21522. module_cmds=$lt_module_cmds
  21523. module_expsym_cmds=$lt_module_expsym_cmds
  21524. # Whether we are building with GNU ld or not.
  21525. with_gnu_ld=$lt_with_gnu_ld
  21526. # Flag that allows shared libraries with undefined symbols to be built.
  21527. allow_undefined_flag=$lt_allow_undefined_flag
  21528. # Flag that enforces no undefined symbols.
  21529. no_undefined_flag=$lt_no_undefined_flag
  21530. # Flag to hardcode \$libdir into a binary during linking.
  21531. # This must work even if \$libdir does not exist
  21532. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21533. # Whether we need a single "-rpath" flag with a separated argument.
  21534. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21535. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21536. # DIR into the resulting binary.
  21537. hardcode_direct=$hardcode_direct
  21538. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21539. # DIR into the resulting binary and the resulting library dependency is
  21540. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21541. # library is relocated.
  21542. hardcode_direct_absolute=$hardcode_direct_absolute
  21543. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21544. # into the resulting binary.
  21545. hardcode_minus_L=$hardcode_minus_L
  21546. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21547. # into the resulting binary.
  21548. hardcode_shlibpath_var=$hardcode_shlibpath_var
  21549. # Set to "yes" if building a shared library automatically hardcodes DIR
  21550. # into the library and all subsequent libraries and executables linked
  21551. # against it.
  21552. hardcode_automatic=$hardcode_automatic
  21553. # Set to yes if linker adds runtime paths of dependent libraries
  21554. # to runtime path list.
  21555. inherit_rpath=$inherit_rpath
  21556. # Whether libtool must link a program against all its dependency libraries.
  21557. link_all_deplibs=$link_all_deplibs
  21558. # Set to "yes" if exported symbols are required.
  21559. always_export_symbols=$always_export_symbols
  21560. # The commands to list exported symbols.
  21561. export_symbols_cmds=$lt_export_symbols_cmds
  21562. # Symbols that should not be listed in the preloaded symbols.
  21563. exclude_expsyms=$lt_exclude_expsyms
  21564. # Symbols that must always be exported.
  21565. include_expsyms=$lt_include_expsyms
  21566. # Commands necessary for linking programs (against libraries) with templates.
  21567. prelink_cmds=$lt_prelink_cmds
  21568. # Commands necessary for finishing linking programs.
  21569. postlink_cmds=$lt_postlink_cmds
  21570. # Specify filename containing input files.
  21571. file_list_spec=$lt_file_list_spec
  21572. # How to hardcode a shared library path into an executable.
  21573. hardcode_action=$hardcode_action
  21574. # The directories searched by this compiler when creating a shared library.
  21575. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  21576. # Dependencies to place before and after the objects being linked to
  21577. # create a shared library.
  21578. predep_objects=$lt_predep_objects
  21579. postdep_objects=$lt_postdep_objects
  21580. predeps=$lt_predeps
  21581. postdeps=$lt_postdeps
  21582. # The library search path used internally by the compiler when linking
  21583. # a shared library.
  21584. compiler_lib_search_path=$lt_compiler_lib_search_path
  21585. # ### END LIBTOOL CONFIG
  21586. _LT_EOF
  21587. case $host_os in
  21588. aix3*)
  21589. cat <<\_LT_EOF >> "$cfgfile"
  21590. # AIX sometimes has problems with the GCC collect2 program. For some
  21591. # reason, if we set the COLLECT_NAMES environment variable, the problems
  21592. # vanish in a puff of smoke.
  21593. if test "X${COLLECT_NAMES+set}" != Xset; then
  21594. COLLECT_NAMES=
  21595. export COLLECT_NAMES
  21596. fi
  21597. _LT_EOF
  21598. ;;
  21599. esac
  21600. ltmain="$ac_aux_dir/ltmain.sh"
  21601. # We use sed instead of cat because bash on DJGPP gets confused if
  21602. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21603. # text mode, it properly converts lines to CR/LF. This bash problem
  21604. # is reportedly fixed, but why not run on old versions too?
  21605. sed '$q' "$ltmain" >> "$cfgfile" \
  21606. || (rm -f "$cfgfile"; exit 1)
  21607. if test x"$xsi_shell" = xyes; then
  21608. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  21609. func_dirname ()\
  21610. {\
  21611. \ case ${1} in\
  21612. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21613. \ * ) func_dirname_result="${3}" ;;\
  21614. \ esac\
  21615. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  21616. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21617. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21618. test 0 -eq $? || _lt_function_replace_fail=:
  21619. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  21620. func_basename ()\
  21621. {\
  21622. \ func_basename_result="${1##*/}"\
  21623. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21624. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21625. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21626. test 0 -eq $? || _lt_function_replace_fail=:
  21627. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  21628. func_dirname_and_basename ()\
  21629. {\
  21630. \ case ${1} in\
  21631. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21632. \ * ) func_dirname_result="${3}" ;;\
  21633. \ esac\
  21634. \ func_basename_result="${1##*/}"\
  21635. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21636. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21637. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21638. test 0 -eq $? || _lt_function_replace_fail=:
  21639. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  21640. func_stripname ()\
  21641. {\
  21642. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  21643. \ # positional parameters, so assign one to ordinary parameter first.\
  21644. \ func_stripname_result=${3}\
  21645. \ func_stripname_result=${func_stripname_result#"${1}"}\
  21646. \ func_stripname_result=${func_stripname_result%"${2}"}\
  21647. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  21648. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21649. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21650. test 0 -eq $? || _lt_function_replace_fail=:
  21651. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  21652. func_split_long_opt ()\
  21653. {\
  21654. \ func_split_long_opt_name=${1%%=*}\
  21655. \ func_split_long_opt_arg=${1#*=}\
  21656. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  21657. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21658. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21659. test 0 -eq $? || _lt_function_replace_fail=:
  21660. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  21661. func_split_short_opt ()\
  21662. {\
  21663. \ func_split_short_opt_arg=${1#??}\
  21664. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  21665. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  21666. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21667. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21668. test 0 -eq $? || _lt_function_replace_fail=:
  21669. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  21670. func_lo2o ()\
  21671. {\
  21672. \ case ${1} in\
  21673. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  21674. \ *) func_lo2o_result=${1} ;;\
  21675. \ esac\
  21676. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  21677. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21678. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21679. test 0 -eq $? || _lt_function_replace_fail=:
  21680. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  21681. func_xform ()\
  21682. {\
  21683. func_xform_result=${1%.*}.lo\
  21684. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  21685. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21686. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21687. test 0 -eq $? || _lt_function_replace_fail=:
  21688. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  21689. func_arith ()\
  21690. {\
  21691. func_arith_result=$(( $* ))\
  21692. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  21693. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21694. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21695. test 0 -eq $? || _lt_function_replace_fail=:
  21696. sed -e '/^func_len ()$/,/^} # func_len /c\
  21697. func_len ()\
  21698. {\
  21699. func_len_result=${#1}\
  21700. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  21701. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21702. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21703. test 0 -eq $? || _lt_function_replace_fail=:
  21704. fi
  21705. if test x"$lt_shell_append" = xyes; then
  21706. sed -e '/^func_append ()$/,/^} # func_append /c\
  21707. func_append ()\
  21708. {\
  21709. eval "${1}+=\\${2}"\
  21710. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  21711. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21712. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21713. test 0 -eq $? || _lt_function_replace_fail=:
  21714. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  21715. func_append_quoted ()\
  21716. {\
  21717. \ func_quote_for_eval "${2}"\
  21718. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  21719. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  21720. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21721. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21722. test 0 -eq $? || _lt_function_replace_fail=:
  21723. # Save a `func_append' function call where possible by direct use of '+='
  21724. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  21725. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21726. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21727. test 0 -eq $? || _lt_function_replace_fail=:
  21728. else
  21729. # Save a `func_append' function call even when '+=' is not available
  21730. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  21731. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21732. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21733. test 0 -eq $? || _lt_function_replace_fail=:
  21734. fi
  21735. if test x"$_lt_function_replace_fail" = x":"; then
  21736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  21737. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  21738. fi
  21739. mv -f "$cfgfile" "$ofile" ||
  21740. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  21741. chmod +x "$ofile"
  21742. cat <<_LT_EOF >> "$ofile"
  21743. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  21744. # The linker used to build libraries.
  21745. LD=$lt_LD_CXX
  21746. # How to create reloadable object files.
  21747. reload_flag=$lt_reload_flag_CXX
  21748. reload_cmds=$lt_reload_cmds_CXX
  21749. # Commands used to build an old-style archive.
  21750. old_archive_cmds=$lt_old_archive_cmds_CXX
  21751. # A language specific compiler.
  21752. CC=$lt_compiler_CXX
  21753. # Is the compiler the GNU compiler?
  21754. with_gcc=$GCC_CXX
  21755. # Compiler flag to turn off builtin functions.
  21756. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  21757. # Additional compiler flags for building library objects.
  21758. pic_flag=$lt_lt_prog_compiler_pic_CXX
  21759. # How to pass a linker flag through the compiler.
  21760. wl=$lt_lt_prog_compiler_wl_CXX
  21761. # Compiler flag to prevent dynamic linking.
  21762. link_static_flag=$lt_lt_prog_compiler_static_CXX
  21763. # Does compiler simultaneously support -c and -o options?
  21764. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  21765. # Whether or not to add -lc for building shared libraries.
  21766. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  21767. # Whether or not to disallow shared libs when runtime libs are static.
  21768. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  21769. # Compiler flag to allow reflexive dlopens.
  21770. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  21771. # Compiler flag to generate shared objects directly from archives.
  21772. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  21773. # Whether the compiler copes with passing no objects directly.
  21774. compiler_needs_object=$lt_compiler_needs_object_CXX
  21775. # Create an old-style archive from a shared archive.
  21776. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  21777. # Create a temporary old-style archive to link instead of a shared archive.
  21778. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  21779. # Commands used to build a shared archive.
  21780. archive_cmds=$lt_archive_cmds_CXX
  21781. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  21782. # Commands used to build a loadable module if different from building
  21783. # a shared archive.
  21784. module_cmds=$lt_module_cmds_CXX
  21785. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  21786. # Whether we are building with GNU ld or not.
  21787. with_gnu_ld=$lt_with_gnu_ld_CXX
  21788. # Flag that allows shared libraries with undefined symbols to be built.
  21789. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  21790. # Flag that enforces no undefined symbols.
  21791. no_undefined_flag=$lt_no_undefined_flag_CXX
  21792. # Flag to hardcode \$libdir into a binary during linking.
  21793. # This must work even if \$libdir does not exist
  21794. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  21795. # Whether we need a single "-rpath" flag with a separated argument.
  21796. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  21797. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21798. # DIR into the resulting binary.
  21799. hardcode_direct=$hardcode_direct_CXX
  21800. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21801. # DIR into the resulting binary and the resulting library dependency is
  21802. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21803. # library is relocated.
  21804. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  21805. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21806. # into the resulting binary.
  21807. hardcode_minus_L=$hardcode_minus_L_CXX
  21808. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21809. # into the resulting binary.
  21810. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  21811. # Set to "yes" if building a shared library automatically hardcodes DIR
  21812. # into the library and all subsequent libraries and executables linked
  21813. # against it.
  21814. hardcode_automatic=$hardcode_automatic_CXX
  21815. # Set to yes if linker adds runtime paths of dependent libraries
  21816. # to runtime path list.
  21817. inherit_rpath=$inherit_rpath_CXX
  21818. # Whether libtool must link a program against all its dependency libraries.
  21819. link_all_deplibs=$link_all_deplibs_CXX
  21820. # Set to "yes" if exported symbols are required.
  21821. always_export_symbols=$always_export_symbols_CXX
  21822. # The commands to list exported symbols.
  21823. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  21824. # Symbols that should not be listed in the preloaded symbols.
  21825. exclude_expsyms=$lt_exclude_expsyms_CXX
  21826. # Symbols that must always be exported.
  21827. include_expsyms=$lt_include_expsyms_CXX
  21828. # Commands necessary for linking programs (against libraries) with templates.
  21829. prelink_cmds=$lt_prelink_cmds_CXX
  21830. # Commands necessary for finishing linking programs.
  21831. postlink_cmds=$lt_postlink_cmds_CXX
  21832. # Specify filename containing input files.
  21833. file_list_spec=$lt_file_list_spec_CXX
  21834. # How to hardcode a shared library path into an executable.
  21835. hardcode_action=$hardcode_action_CXX
  21836. # The directories searched by this compiler when creating a shared library.
  21837. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  21838. # Dependencies to place before and after the objects being linked to
  21839. # create a shared library.
  21840. predep_objects=$lt_predep_objects_CXX
  21841. postdep_objects=$lt_postdep_objects_CXX
  21842. predeps=$lt_predeps_CXX
  21843. postdeps=$lt_postdeps_CXX
  21844. # The library search path used internally by the compiler when linking
  21845. # a shared library.
  21846. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  21847. # ### END LIBTOOL TAG CONFIG: CXX
  21848. _LT_EOF
  21849. ;;
  21850. "sdl2_config":C) chmod a+x sdl2-config ;;
  21851. "summary":C) echo -en "$SUMMARY" ;;
  21852. esac
  21853. done # for ac_tag
  21854. as_fn_exit 0
  21855. _ACEOF
  21856. ac_clean_files=$ac_clean_files_save
  21857. test $ac_write_fail = 0 ||
  21858. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  21859. # configure is writing to config.log, and then calls config.status.
  21860. # config.status does its own redirection, appending to config.log.
  21861. # Unfortunately, on DOS this fails, as config.log is still kept open
  21862. # by configure, so config.status won't be able to write to it; its
  21863. # output is simply discarded. So we exec the FD to /dev/null,
  21864. # effectively closing config.log, so it can be properly (re)opened and
  21865. # appended to by config.status. When coming back to configure, we
  21866. # need to make the FD available again.
  21867. if test "$no_create" != yes; then
  21868. ac_cs_success=:
  21869. ac_config_status_args=
  21870. test "$silent" = yes &&
  21871. ac_config_status_args="$ac_config_status_args --quiet"
  21872. exec 5>/dev/null
  21873. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21874. exec 5>>config.log
  21875. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21876. # would make configure fail if this is the last instruction.
  21877. $ac_cs_success || as_fn_exit 1
  21878. fi
  21879. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  21880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  21881. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  21882. fi