configure 769 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314
  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_mir
  772. enable_mir_shared
  773. enable_video_x11
  774. with_x
  775. enable_x11_shared
  776. enable_video_x11_xcursor
  777. enable_video_x11_xinerama
  778. enable_video_x11_xinput
  779. enable_video_x11_xrandr
  780. enable_video_x11_scrnsaver
  781. enable_video_x11_xshape
  782. enable_video_x11_vm
  783. enable_video_vivante
  784. enable_video_cocoa
  785. enable_video_directfb
  786. enable_directfb_shared
  787. enable_fusionsound
  788. enable_fusionsound_shared
  789. enable_video_dummy
  790. enable_video_opengl
  791. enable_video_opengles
  792. enable_video_opengles1
  793. enable_video_opengles2
  794. enable_libudev
  795. enable_dbus
  796. enable_ibus
  797. enable_input_tslib
  798. enable_pthreads
  799. enable_pthread_sem
  800. enable_directx
  801. enable_sdl_dlopen
  802. enable_clock_gettime
  803. enable_rpath
  804. enable_render_d3d
  805. '
  806. ac_precious_vars='build_alias
  807. host_alias
  808. target_alias
  809. CC
  810. CFLAGS
  811. LDFLAGS
  812. LIBS
  813. CPPFLAGS
  814. CPP
  815. CXX
  816. CXXFLAGS
  817. CCC
  818. CXXCPP
  819. XMKMF'
  820. # Initialize some variables set by options.
  821. ac_init_help=
  822. ac_init_version=false
  823. ac_unrecognized_opts=
  824. ac_unrecognized_sep=
  825. # The variables have the same names as the options, with
  826. # dashes changed to underlines.
  827. cache_file=/dev/null
  828. exec_prefix=NONE
  829. no_create=
  830. no_recursion=
  831. prefix=NONE
  832. program_prefix=NONE
  833. program_suffix=NONE
  834. program_transform_name=s,x,x,
  835. silent=
  836. site=
  837. srcdir=
  838. verbose=
  839. x_includes=NONE
  840. x_libraries=NONE
  841. # Installation directory options.
  842. # These are left unexpanded so users can "make install exec_prefix=/foo"
  843. # and all the variables that are supposed to be based on exec_prefix
  844. # by default will actually change.
  845. # Use braces instead of parens because sh, perl, etc. also accept them.
  846. # (The list follows the same order as the GNU Coding Standards.)
  847. bindir='${exec_prefix}/bin'
  848. sbindir='${exec_prefix}/sbin'
  849. libexecdir='${exec_prefix}/libexec'
  850. datarootdir='${prefix}/share'
  851. datadir='${datarootdir}'
  852. sysconfdir='${prefix}/etc'
  853. sharedstatedir='${prefix}/com'
  854. localstatedir='${prefix}/var'
  855. includedir='${prefix}/include'
  856. oldincludedir='/usr/include'
  857. docdir='${datarootdir}/doc/${PACKAGE}'
  858. infodir='${datarootdir}/info'
  859. htmldir='${docdir}'
  860. dvidir='${docdir}'
  861. pdfdir='${docdir}'
  862. psdir='${docdir}'
  863. libdir='${exec_prefix}/lib'
  864. localedir='${datarootdir}/locale'
  865. mandir='${datarootdir}/man'
  866. ac_prev=
  867. ac_dashdash=
  868. for ac_option
  869. do
  870. # If the previous option needs an argument, assign it.
  871. if test -n "$ac_prev"; then
  872. eval $ac_prev=\$ac_option
  873. ac_prev=
  874. continue
  875. fi
  876. case $ac_option in
  877. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  878. *=) ac_optarg= ;;
  879. *) ac_optarg=yes ;;
  880. esac
  881. # Accept the important Cygnus configure options, so we can diagnose typos.
  882. case $ac_dashdash$ac_option in
  883. --)
  884. ac_dashdash=yes ;;
  885. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  886. ac_prev=bindir ;;
  887. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  888. bindir=$ac_optarg ;;
  889. -build | --build | --buil | --bui | --bu)
  890. ac_prev=build_alias ;;
  891. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  892. build_alias=$ac_optarg ;;
  893. -cache-file | --cache-file | --cache-fil | --cache-fi \
  894. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  895. ac_prev=cache_file ;;
  896. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  897. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  898. cache_file=$ac_optarg ;;
  899. --config-cache | -C)
  900. cache_file=config.cache ;;
  901. -datadir | --datadir | --datadi | --datad)
  902. ac_prev=datadir ;;
  903. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  904. datadir=$ac_optarg ;;
  905. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  906. | --dataroo | --dataro | --datar)
  907. ac_prev=datarootdir ;;
  908. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  909. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  910. datarootdir=$ac_optarg ;;
  911. -disable-* | --disable-*)
  912. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  913. # Reject names that are not valid shell variable names.
  914. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  915. as_fn_error $? "invalid feature name: $ac_useropt"
  916. ac_useropt_orig=$ac_useropt
  917. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  918. case $ac_user_opts in
  919. *"
  920. "enable_$ac_useropt"
  921. "*) ;;
  922. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  923. ac_unrecognized_sep=', ';;
  924. esac
  925. eval enable_$ac_useropt=no ;;
  926. -docdir | --docdir | --docdi | --doc | --do)
  927. ac_prev=docdir ;;
  928. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  929. docdir=$ac_optarg ;;
  930. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  931. ac_prev=dvidir ;;
  932. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  933. dvidir=$ac_optarg ;;
  934. -enable-* | --enable-*)
  935. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  936. # Reject names that are not valid shell variable names.
  937. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  938. as_fn_error $? "invalid feature name: $ac_useropt"
  939. ac_useropt_orig=$ac_useropt
  940. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  941. case $ac_user_opts in
  942. *"
  943. "enable_$ac_useropt"
  944. "*) ;;
  945. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  946. ac_unrecognized_sep=', ';;
  947. esac
  948. eval enable_$ac_useropt=\$ac_optarg ;;
  949. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  950. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  951. | --exec | --exe | --ex)
  952. ac_prev=exec_prefix ;;
  953. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  954. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  955. | --exec=* | --exe=* | --ex=*)
  956. exec_prefix=$ac_optarg ;;
  957. -gas | --gas | --ga | --g)
  958. # Obsolete; use --with-gas.
  959. with_gas=yes ;;
  960. -help | --help | --hel | --he | -h)
  961. ac_init_help=long ;;
  962. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  963. ac_init_help=recursive ;;
  964. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  965. ac_init_help=short ;;
  966. -host | --host | --hos | --ho)
  967. ac_prev=host_alias ;;
  968. -host=* | --host=* | --hos=* | --ho=*)
  969. host_alias=$ac_optarg ;;
  970. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  971. ac_prev=htmldir ;;
  972. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  973. | --ht=*)
  974. htmldir=$ac_optarg ;;
  975. -includedir | --includedir | --includedi | --included | --include \
  976. | --includ | --inclu | --incl | --inc)
  977. ac_prev=includedir ;;
  978. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  979. | --includ=* | --inclu=* | --incl=* | --inc=*)
  980. includedir=$ac_optarg ;;
  981. -infodir | --infodir | --infodi | --infod | --info | --inf)
  982. ac_prev=infodir ;;
  983. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  984. infodir=$ac_optarg ;;
  985. -libdir | --libdir | --libdi | --libd)
  986. ac_prev=libdir ;;
  987. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  988. libdir=$ac_optarg ;;
  989. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  990. | --libexe | --libex | --libe)
  991. ac_prev=libexecdir ;;
  992. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  993. | --libexe=* | --libex=* | --libe=*)
  994. libexecdir=$ac_optarg ;;
  995. -localedir | --localedir | --localedi | --localed | --locale)
  996. ac_prev=localedir ;;
  997. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  998. localedir=$ac_optarg ;;
  999. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1000. | --localstate | --localstat | --localsta | --localst | --locals)
  1001. ac_prev=localstatedir ;;
  1002. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1003. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1004. localstatedir=$ac_optarg ;;
  1005. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1006. ac_prev=mandir ;;
  1007. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1008. mandir=$ac_optarg ;;
  1009. -nfp | --nfp | --nf)
  1010. # Obsolete; use --without-fp.
  1011. with_fp=no ;;
  1012. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1013. | --no-cr | --no-c | -n)
  1014. no_create=yes ;;
  1015. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1016. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1017. no_recursion=yes ;;
  1018. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1019. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1020. | --oldin | --oldi | --old | --ol | --o)
  1021. ac_prev=oldincludedir ;;
  1022. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1023. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1024. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1025. oldincludedir=$ac_optarg ;;
  1026. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1027. ac_prev=prefix ;;
  1028. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1029. prefix=$ac_optarg ;;
  1030. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1031. | --program-pre | --program-pr | --program-p)
  1032. ac_prev=program_prefix ;;
  1033. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1034. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1035. program_prefix=$ac_optarg ;;
  1036. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1037. | --program-suf | --program-su | --program-s)
  1038. ac_prev=program_suffix ;;
  1039. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1040. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1041. program_suffix=$ac_optarg ;;
  1042. -program-transform-name | --program-transform-name \
  1043. | --program-transform-nam | --program-transform-na \
  1044. | --program-transform-n | --program-transform- \
  1045. | --program-transform | --program-transfor \
  1046. | --program-transfo | --program-transf \
  1047. | --program-trans | --program-tran \
  1048. | --progr-tra | --program-tr | --program-t)
  1049. ac_prev=program_transform_name ;;
  1050. -program-transform-name=* | --program-transform-name=* \
  1051. | --program-transform-nam=* | --program-transform-na=* \
  1052. | --program-transform-n=* | --program-transform-=* \
  1053. | --program-transform=* | --program-transfor=* \
  1054. | --program-transfo=* | --program-transf=* \
  1055. | --program-trans=* | --program-tran=* \
  1056. | --progr-tra=* | --program-tr=* | --program-t=*)
  1057. program_transform_name=$ac_optarg ;;
  1058. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1059. ac_prev=pdfdir ;;
  1060. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1061. pdfdir=$ac_optarg ;;
  1062. -psdir | --psdir | --psdi | --psd | --ps)
  1063. ac_prev=psdir ;;
  1064. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1065. psdir=$ac_optarg ;;
  1066. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1067. | -silent | --silent | --silen | --sile | --sil)
  1068. silent=yes ;;
  1069. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1070. ac_prev=sbindir ;;
  1071. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1072. | --sbi=* | --sb=*)
  1073. sbindir=$ac_optarg ;;
  1074. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1075. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1076. | --sharedst | --shareds | --shared | --share | --shar \
  1077. | --sha | --sh)
  1078. ac_prev=sharedstatedir ;;
  1079. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1080. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1081. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1082. | --sha=* | --sh=*)
  1083. sharedstatedir=$ac_optarg ;;
  1084. -site | --site | --sit)
  1085. ac_prev=site ;;
  1086. -site=* | --site=* | --sit=*)
  1087. site=$ac_optarg ;;
  1088. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1089. ac_prev=srcdir ;;
  1090. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1091. srcdir=$ac_optarg ;;
  1092. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1093. | --syscon | --sysco | --sysc | --sys | --sy)
  1094. ac_prev=sysconfdir ;;
  1095. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1096. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1097. sysconfdir=$ac_optarg ;;
  1098. -target | --target | --targe | --targ | --tar | --ta | --t)
  1099. ac_prev=target_alias ;;
  1100. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1101. target_alias=$ac_optarg ;;
  1102. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1103. verbose=yes ;;
  1104. -version | --version | --versio | --versi | --vers | -V)
  1105. ac_init_version=: ;;
  1106. -with-* | --with-*)
  1107. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1108. # Reject names that are not valid shell variable names.
  1109. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1110. as_fn_error $? "invalid package name: $ac_useropt"
  1111. ac_useropt_orig=$ac_useropt
  1112. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1113. case $ac_user_opts in
  1114. *"
  1115. "with_$ac_useropt"
  1116. "*) ;;
  1117. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1118. ac_unrecognized_sep=', ';;
  1119. esac
  1120. eval with_$ac_useropt=\$ac_optarg ;;
  1121. -without-* | --without-*)
  1122. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1123. # Reject names that are not valid shell variable names.
  1124. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1125. as_fn_error $? "invalid package name: $ac_useropt"
  1126. ac_useropt_orig=$ac_useropt
  1127. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1128. case $ac_user_opts in
  1129. *"
  1130. "with_$ac_useropt"
  1131. "*) ;;
  1132. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1133. ac_unrecognized_sep=', ';;
  1134. esac
  1135. eval with_$ac_useropt=no ;;
  1136. --x)
  1137. # Obsolete; use --with-x.
  1138. with_x=yes ;;
  1139. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1140. | --x-incl | --x-inc | --x-in | --x-i)
  1141. ac_prev=x_includes ;;
  1142. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1143. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1144. x_includes=$ac_optarg ;;
  1145. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1146. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1147. ac_prev=x_libraries ;;
  1148. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1149. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1150. x_libraries=$ac_optarg ;;
  1151. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1152. Try \`$0 --help' for more information"
  1153. ;;
  1154. *=*)
  1155. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1156. # Reject names that are not valid shell variable names.
  1157. case $ac_envvar in #(
  1158. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1159. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1160. esac
  1161. eval $ac_envvar=\$ac_optarg
  1162. export $ac_envvar ;;
  1163. *)
  1164. # FIXME: should be removed in autoconf 3.0.
  1165. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1166. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1167. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1168. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1169. ;;
  1170. esac
  1171. done
  1172. if test -n "$ac_prev"; then
  1173. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1174. as_fn_error $? "missing argument to $ac_option"
  1175. fi
  1176. if test -n "$ac_unrecognized_opts"; then
  1177. case $enable_option_checking in
  1178. no) ;;
  1179. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1180. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1181. esac
  1182. fi
  1183. # Check all directory arguments for consistency.
  1184. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1185. datadir sysconfdir sharedstatedir localstatedir includedir \
  1186. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1187. libdir localedir mandir
  1188. do
  1189. eval ac_val=\$$ac_var
  1190. # Remove trailing slashes.
  1191. case $ac_val in
  1192. */ )
  1193. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1194. eval $ac_var=\$ac_val;;
  1195. esac
  1196. # Be sure to have absolute directory names.
  1197. case $ac_val in
  1198. [\\/$]* | ?:[\\/]* ) continue;;
  1199. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1200. esac
  1201. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1202. done
  1203. # There might be people who depend on the old broken behavior: `$host'
  1204. # used to hold the argument of --host etc.
  1205. # FIXME: To remove some day.
  1206. build=$build_alias
  1207. host=$host_alias
  1208. target=$target_alias
  1209. # FIXME: To remove some day.
  1210. if test "x$host_alias" != x; then
  1211. if test "x$build_alias" = x; then
  1212. cross_compiling=maybe
  1213. elif test "x$build_alias" != "x$host_alias"; then
  1214. cross_compiling=yes
  1215. fi
  1216. fi
  1217. ac_tool_prefix=
  1218. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1219. test "$silent" = yes && exec 6>/dev/null
  1220. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1221. ac_ls_di=`ls -di .` &&
  1222. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1223. as_fn_error $? "working directory cannot be determined"
  1224. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1225. as_fn_error $? "pwd does not report name of working directory"
  1226. # Find the source files, if location was not specified.
  1227. if test -z "$srcdir"; then
  1228. ac_srcdir_defaulted=yes
  1229. # Try the directory containing this script, then the parent directory.
  1230. ac_confdir=`$as_dirname -- "$as_myself" ||
  1231. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1232. X"$as_myself" : 'X\(//\)[^/]' \| \
  1233. X"$as_myself" : 'X\(//\)$' \| \
  1234. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1235. $as_echo X"$as_myself" |
  1236. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1237. s//\1/
  1238. q
  1239. }
  1240. /^X\(\/\/\)[^/].*/{
  1241. s//\1/
  1242. q
  1243. }
  1244. /^X\(\/\/\)$/{
  1245. s//\1/
  1246. q
  1247. }
  1248. /^X\(\/\).*/{
  1249. s//\1/
  1250. q
  1251. }
  1252. s/.*/./; q'`
  1253. srcdir=$ac_confdir
  1254. if test ! -r "$srcdir/$ac_unique_file"; then
  1255. srcdir=..
  1256. fi
  1257. else
  1258. ac_srcdir_defaulted=no
  1259. fi
  1260. if test ! -r "$srcdir/$ac_unique_file"; then
  1261. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1262. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1263. fi
  1264. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1265. ac_abs_confdir=`(
  1266. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1267. pwd)`
  1268. # When building in place, set srcdir=.
  1269. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1270. srcdir=.
  1271. fi
  1272. # Remove unnecessary trailing slashes from srcdir.
  1273. # Double slashes in file names in object file debugging info
  1274. # mess up M-x gdb in Emacs.
  1275. case $srcdir in
  1276. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1277. esac
  1278. for ac_var in $ac_precious_vars; do
  1279. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1280. eval ac_env_${ac_var}_value=\$${ac_var}
  1281. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1282. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1283. done
  1284. #
  1285. # Report the --help message.
  1286. #
  1287. if test "$ac_init_help" = "long"; then
  1288. # Omit some internal or obsolete options to make the list less imposing.
  1289. # This message is too long to be a string in the A/UX 3.1 sh.
  1290. cat <<_ACEOF
  1291. \`configure' configures this package to adapt to many kinds of systems.
  1292. Usage: $0 [OPTION]... [VAR=VALUE]...
  1293. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1294. VAR=VALUE. See below for descriptions of some of the useful variables.
  1295. Defaults for the options are specified in brackets.
  1296. Configuration:
  1297. -h, --help display this help and exit
  1298. --help=short display options specific to this package
  1299. --help=recursive display the short help of all the included packages
  1300. -V, --version display version information and exit
  1301. -q, --quiet, --silent do not print \`checking ...' messages
  1302. --cache-file=FILE cache test results in FILE [disabled]
  1303. -C, --config-cache alias for \`--cache-file=config.cache'
  1304. -n, --no-create do not create output files
  1305. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1306. Installation directories:
  1307. --prefix=PREFIX install architecture-independent files in PREFIX
  1308. [$ac_default_prefix]
  1309. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1310. [PREFIX]
  1311. By default, \`make install' will install all the files in
  1312. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1313. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1314. for instance \`--prefix=\$HOME'.
  1315. For better control, use the options below.
  1316. Fine tuning of the installation directories:
  1317. --bindir=DIR user executables [EPREFIX/bin]
  1318. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1319. --libexecdir=DIR program executables [EPREFIX/libexec]
  1320. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1321. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1322. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1323. --libdir=DIR object code libraries [EPREFIX/lib]
  1324. --includedir=DIR C header files [PREFIX/include]
  1325. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1326. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1327. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1328. --infodir=DIR info documentation [DATAROOTDIR/info]
  1329. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1330. --mandir=DIR man documentation [DATAROOTDIR/man]
  1331. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1332. --htmldir=DIR html documentation [DOCDIR]
  1333. --dvidir=DIR dvi documentation [DOCDIR]
  1334. --pdfdir=DIR pdf documentation [DOCDIR]
  1335. --psdir=DIR ps documentation [DOCDIR]
  1336. _ACEOF
  1337. cat <<\_ACEOF
  1338. X features:
  1339. --x-includes=DIR X include files are in DIR
  1340. --x-libraries=DIR X library files are in DIR
  1341. System types:
  1342. --build=BUILD configure for building on BUILD [guessed]
  1343. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1344. _ACEOF
  1345. fi
  1346. if test -n "$ac_init_help"; then
  1347. cat <<\_ACEOF
  1348. Optional Features:
  1349. --disable-option-checking ignore unrecognized --enable/--with options
  1350. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1351. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1352. --enable-shared[=PKGS] build shared libraries [default=yes]
  1353. --enable-static[=PKGS] build static libraries [default=yes]
  1354. --enable-fast-install[=PKGS]
  1355. optimize for fast installation [default=yes]
  1356. --disable-libtool-lock avoid locking (might break parallel builds)
  1357. --enable-assertions Enable internal sanity checks
  1358. (auto/disabled/release/enabled/paranoid)
  1359. [[default=auto]]
  1360. --enable-dependency-tracking
  1361. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1362. --enable-libc Use the system C library [[default=yes]]
  1363. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1364. --enable-atomic Enable the atomic operations subsystem
  1365. [[default=yes]]
  1366. --enable-audio Enable the audio subsystem [[default=yes]]
  1367. --enable-video Enable the video subsystem [[default=yes]]
  1368. --enable-render Enable the render subsystem [[default=yes]]
  1369. --enable-events Enable the events subsystem [[default=yes]]
  1370. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1371. --enable-haptic Enable the haptic (force feedback) subsystem
  1372. [[default=yes]]
  1373. --enable-power Enable the power subsystem [[default=yes]]
  1374. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1375. --enable-threads Enable the threading subsystem [[default=yes]]
  1376. --enable-timers Enable the timer subsystem [[default=yes]]
  1377. --enable-file Enable the file subsystem [[default=yes]]
  1378. --enable-loadso Enable the shared object loading subsystem
  1379. [[default=yes]]
  1380. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1381. --enable-assembly Enable assembly routines [[default=yes]]
  1382. --enable-ssemath Allow GCC to use SSE floating point math
  1383. [[default=no]]
  1384. --enable-mmx use MMX assembly routines [[default=yes]]
  1385. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1386. --enable-sse use SSE assembly routines [[default=yes]]
  1387. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1388. --enable-altivec use Altivec assembly routines [[default=yes]]
  1389. --enable-oss support the OSS audio API [[default=maybe]]
  1390. --enable-alsa support the ALSA audio API [[default=yes]]
  1391. --disable-alsatest Do not try to compile and run a test Alsa program
  1392. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1393. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1394. --disable-esdtest Do not try to compile and run a test ESD program
  1395. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1396. --enable-pulseaudio use PulseAudio [[default=yes]]
  1397. --enable-pulseaudio-shared
  1398. dynamically load PulseAudio support [[default=yes]]
  1399. --enable-arts support the Analog Real Time Synthesizer
  1400. [[default=yes]]
  1401. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1402. --enable-nas support the NAS audio API [[default=yes]]
  1403. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1404. --enable-sndio support the sndio audio API [[default=yes]]
  1405. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1406. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1407. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1408. --enable-video-wayland use Wayland video driver [[default=yes]]
  1409. --enable-video-wayland-qt-touch
  1410. QtWayland server support for Wayland video driver
  1411. [[default=yes]]
  1412. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1413. --enable-video-mir use Mir video driver [[default=yes]]
  1414. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1415. --enable-video-x11 use X11 video driver [[default=yes]]
  1416. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1417. --enable-video-x11-xcursor
  1418. enable X11 Xcursor support [[default=yes]]
  1419. --enable-video-x11-xinerama
  1420. enable X11 Xinerama support [[default=yes]]
  1421. --enable-video-x11-xinput
  1422. enable X11 XInput extension for manymouse, tablets,
  1423. etc [[default=yes]]
  1424. --enable-video-x11-xrandr
  1425. enable X11 Xrandr extension for fullscreen
  1426. [[default=yes]]
  1427. --enable-video-x11-scrnsaver
  1428. enable X11 screensaver extension [[default=yes]]
  1429. --enable-video-x11-xshape
  1430. enable X11 XShape support [[default=yes]]
  1431. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1432. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1433. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1434. --enable-video-directfb use DirectFB video driver [[default=no]]
  1435. --enable-directfb-shared
  1436. dynamically load directfb support [[default=yes]]
  1437. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1438. --enable-fusionsound-shared
  1439. dynamically load fusionsound audio support
  1440. [[default=yes]]
  1441. --enable-video-dummy use dummy video driver [[default=yes]]
  1442. --enable-video-opengl include OpenGL support [[default=yes]]
  1443. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1444. --enable-video-opengles1
  1445. include OpenGL ES 1.1 support [[default=yes]]
  1446. --enable-video-opengles2
  1447. include OpenGL ES 2.0 support [[default=yes]]
  1448. --enable-libudev enable libudev support [[default=yes]]
  1449. --enable-dbus enable D-Bus support [[default=yes]]
  1450. --enable-ibus enable IBus support [[default=yes]]
  1451. --enable-input-tslib use the Touchscreen library for input
  1452. [[default=yes]]
  1453. --enable-pthreads use POSIX threads for multi-threading
  1454. [[default=yes]]
  1455. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1456. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1457. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1458. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1459. UNIX [[default=yes]]
  1460. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1461. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1462. Optional Packages:
  1463. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1464. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1465. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1466. both]
  1467. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1468. --with-sysroot=DIR Search for dependent libraries within DIR
  1469. (or the compiler's sysroot if not specified).
  1470. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1471. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1472. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1473. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1474. --with-x use the X Window System
  1475. Some influential environment variables:
  1476. CC C compiler command
  1477. CFLAGS C compiler flags
  1478. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1479. nonstandard directory <lib dir>
  1480. LIBS libraries to pass to the linker, e.g. -l<library>
  1481. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1482. you have headers in a nonstandard directory <include dir>
  1483. CPP C preprocessor
  1484. CXX C++ compiler command
  1485. CXXFLAGS C++ compiler flags
  1486. CXXCPP C++ preprocessor
  1487. XMKMF Path to xmkmf, Makefile generator for X Window System
  1488. Use these variables to override the choices made by `configure' or to help
  1489. it to find libraries and programs with nonstandard names/locations.
  1490. Report bugs to the package provider.
  1491. _ACEOF
  1492. ac_status=$?
  1493. fi
  1494. if test "$ac_init_help" = "recursive"; then
  1495. # If there are subdirs, report their specific --help.
  1496. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1497. test -d "$ac_dir" ||
  1498. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1499. continue
  1500. ac_builddir=.
  1501. case "$ac_dir" in
  1502. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1503. *)
  1504. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1505. # A ".." for each directory in $ac_dir_suffix.
  1506. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1507. case $ac_top_builddir_sub in
  1508. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1509. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1510. esac ;;
  1511. esac
  1512. ac_abs_top_builddir=$ac_pwd
  1513. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1514. # for backward compatibility:
  1515. ac_top_builddir=$ac_top_build_prefix
  1516. case $srcdir in
  1517. .) # We are building in place.
  1518. ac_srcdir=.
  1519. ac_top_srcdir=$ac_top_builddir_sub
  1520. ac_abs_top_srcdir=$ac_pwd ;;
  1521. [\\/]* | ?:[\\/]* ) # Absolute name.
  1522. ac_srcdir=$srcdir$ac_dir_suffix;
  1523. ac_top_srcdir=$srcdir
  1524. ac_abs_top_srcdir=$srcdir ;;
  1525. *) # Relative name.
  1526. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1527. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1528. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1529. esac
  1530. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1531. cd "$ac_dir" || { ac_status=$?; continue; }
  1532. # Check for guested configure.
  1533. if test -f "$ac_srcdir/configure.gnu"; then
  1534. echo &&
  1535. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1536. elif test -f "$ac_srcdir/configure"; then
  1537. echo &&
  1538. $SHELL "$ac_srcdir/configure" --help=recursive
  1539. else
  1540. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1541. fi || ac_status=$?
  1542. cd "$ac_pwd" || { ac_status=$?; break; }
  1543. done
  1544. fi
  1545. test -n "$ac_init_help" && exit $ac_status
  1546. if $ac_init_version; then
  1547. cat <<\_ACEOF
  1548. configure
  1549. generated by GNU Autoconf 2.69
  1550. Copyright (C) 2012 Free Software Foundation, Inc.
  1551. This configure script is free software; the Free Software Foundation
  1552. gives unlimited permission to copy, distribute and modify it.
  1553. _ACEOF
  1554. exit
  1555. fi
  1556. ## ------------------------ ##
  1557. ## Autoconf initialization. ##
  1558. ## ------------------------ ##
  1559. # ac_fn_c_try_compile LINENO
  1560. # --------------------------
  1561. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1562. ac_fn_c_try_compile ()
  1563. {
  1564. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1565. rm -f conftest.$ac_objext
  1566. if { { ac_try="$ac_compile"
  1567. case "(($ac_try" in
  1568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1569. *) ac_try_echo=$ac_try;;
  1570. esac
  1571. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1572. $as_echo "$ac_try_echo"; } >&5
  1573. (eval "$ac_compile") 2>conftest.err
  1574. ac_status=$?
  1575. if test -s conftest.err; then
  1576. grep -v '^ *+' conftest.err >conftest.er1
  1577. cat conftest.er1 >&5
  1578. mv -f conftest.er1 conftest.err
  1579. fi
  1580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1581. test $ac_status = 0; } && {
  1582. test -z "$ac_c_werror_flag" ||
  1583. test ! -s conftest.err
  1584. } && test -s conftest.$ac_objext; then :
  1585. ac_retval=0
  1586. else
  1587. $as_echo "$as_me: failed program was:" >&5
  1588. sed 's/^/| /' conftest.$ac_ext >&5
  1589. ac_retval=1
  1590. fi
  1591. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1592. as_fn_set_status $ac_retval
  1593. } # ac_fn_c_try_compile
  1594. # ac_fn_c_try_link LINENO
  1595. # -----------------------
  1596. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1597. ac_fn_c_try_link ()
  1598. {
  1599. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1600. rm -f conftest.$ac_objext conftest$ac_exeext
  1601. if { { ac_try="$ac_link"
  1602. case "(($ac_try" in
  1603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1604. *) ac_try_echo=$ac_try;;
  1605. esac
  1606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1607. $as_echo "$ac_try_echo"; } >&5
  1608. (eval "$ac_link") 2>conftest.err
  1609. ac_status=$?
  1610. if test -s conftest.err; then
  1611. grep -v '^ *+' conftest.err >conftest.er1
  1612. cat conftest.er1 >&5
  1613. mv -f conftest.er1 conftest.err
  1614. fi
  1615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1616. test $ac_status = 0; } && {
  1617. test -z "$ac_c_werror_flag" ||
  1618. test ! -s conftest.err
  1619. } && test -s conftest$ac_exeext && {
  1620. test "$cross_compiling" = yes ||
  1621. test -x conftest$ac_exeext
  1622. }; then :
  1623. ac_retval=0
  1624. else
  1625. $as_echo "$as_me: failed program was:" >&5
  1626. sed 's/^/| /' conftest.$ac_ext >&5
  1627. ac_retval=1
  1628. fi
  1629. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1630. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1631. # interfere with the next link command; also delete a directory that is
  1632. # left behind by Apple's compiler. We do this before executing the actions.
  1633. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1634. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1635. as_fn_set_status $ac_retval
  1636. } # ac_fn_c_try_link
  1637. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1638. # -------------------------------------------------------
  1639. # Tests whether HEADER exists and can be compiled using the include files in
  1640. # INCLUDES, setting the cache variable VAR accordingly.
  1641. ac_fn_c_check_header_compile ()
  1642. {
  1643. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1645. $as_echo_n "checking for $2... " >&6; }
  1646. if eval \${$3+:} false; then :
  1647. $as_echo_n "(cached) " >&6
  1648. else
  1649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1650. /* end confdefs.h. */
  1651. $4
  1652. #include <$2>
  1653. _ACEOF
  1654. if ac_fn_c_try_compile "$LINENO"; then :
  1655. eval "$3=yes"
  1656. else
  1657. eval "$3=no"
  1658. fi
  1659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1660. fi
  1661. eval ac_res=\$$3
  1662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1663. $as_echo "$ac_res" >&6; }
  1664. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1665. } # ac_fn_c_check_header_compile
  1666. # ac_fn_c_try_cpp LINENO
  1667. # ----------------------
  1668. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1669. ac_fn_c_try_cpp ()
  1670. {
  1671. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1672. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1673. case "(($ac_try" in
  1674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1675. *) ac_try_echo=$ac_try;;
  1676. esac
  1677. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1678. $as_echo "$ac_try_echo"; } >&5
  1679. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1680. ac_status=$?
  1681. if test -s conftest.err; then
  1682. grep -v '^ *+' conftest.err >conftest.er1
  1683. cat conftest.er1 >&5
  1684. mv -f conftest.er1 conftest.err
  1685. fi
  1686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1687. test $ac_status = 0; } > conftest.i && {
  1688. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1689. test ! -s conftest.err
  1690. }; then :
  1691. ac_retval=0
  1692. else
  1693. $as_echo "$as_me: failed program was:" >&5
  1694. sed 's/^/| /' conftest.$ac_ext >&5
  1695. ac_retval=1
  1696. fi
  1697. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1698. as_fn_set_status $ac_retval
  1699. } # ac_fn_c_try_cpp
  1700. # ac_fn_c_try_run LINENO
  1701. # ----------------------
  1702. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1703. # that executables *can* be run.
  1704. ac_fn_c_try_run ()
  1705. {
  1706. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1707. if { { ac_try="$ac_link"
  1708. case "(($ac_try" in
  1709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1710. *) ac_try_echo=$ac_try;;
  1711. esac
  1712. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1713. $as_echo "$ac_try_echo"; } >&5
  1714. (eval "$ac_link") 2>&5
  1715. ac_status=$?
  1716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1717. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1718. { { case "(($ac_try" in
  1719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1720. *) ac_try_echo=$ac_try;;
  1721. esac
  1722. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1723. $as_echo "$ac_try_echo"; } >&5
  1724. (eval "$ac_try") 2>&5
  1725. ac_status=$?
  1726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1727. test $ac_status = 0; }; }; then :
  1728. ac_retval=0
  1729. else
  1730. $as_echo "$as_me: program exited with status $ac_status" >&5
  1731. $as_echo "$as_me: failed program was:" >&5
  1732. sed 's/^/| /' conftest.$ac_ext >&5
  1733. ac_retval=$ac_status
  1734. fi
  1735. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1736. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1737. as_fn_set_status $ac_retval
  1738. } # ac_fn_c_try_run
  1739. # ac_fn_c_check_func LINENO FUNC VAR
  1740. # ----------------------------------
  1741. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1742. ac_fn_c_check_func ()
  1743. {
  1744. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1746. $as_echo_n "checking for $2... " >&6; }
  1747. if eval \${$3+:} false; then :
  1748. $as_echo_n "(cached) " >&6
  1749. else
  1750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1751. /* end confdefs.h. */
  1752. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1753. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1754. #define $2 innocuous_$2
  1755. /* System header to define __stub macros and hopefully few prototypes,
  1756. which can conflict with char $2 (); below.
  1757. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1758. <limits.h> exists even on freestanding compilers. */
  1759. #ifdef __STDC__
  1760. # include <limits.h>
  1761. #else
  1762. # include <assert.h>
  1763. #endif
  1764. #undef $2
  1765. /* Override any GCC internal prototype to avoid an error.
  1766. Use char because int might match the return type of a GCC
  1767. builtin and then its argument prototype would still apply. */
  1768. #ifdef __cplusplus
  1769. extern "C"
  1770. #endif
  1771. char $2 ();
  1772. /* The GNU C library defines this for functions which it implements
  1773. to always fail with ENOSYS. Some functions are actually named
  1774. something starting with __ and the normal name is an alias. */
  1775. #if defined __stub_$2 || defined __stub___$2
  1776. choke me
  1777. #endif
  1778. int
  1779. main ()
  1780. {
  1781. return $2 ();
  1782. ;
  1783. return 0;
  1784. }
  1785. _ACEOF
  1786. if ac_fn_c_try_link "$LINENO"; then :
  1787. eval "$3=yes"
  1788. else
  1789. eval "$3=no"
  1790. fi
  1791. rm -f core conftest.err conftest.$ac_objext \
  1792. conftest$ac_exeext conftest.$ac_ext
  1793. fi
  1794. eval ac_res=\$$3
  1795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1796. $as_echo "$ac_res" >&6; }
  1797. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1798. } # ac_fn_c_check_func
  1799. # ac_fn_cxx_try_compile LINENO
  1800. # ----------------------------
  1801. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1802. ac_fn_cxx_try_compile ()
  1803. {
  1804. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1805. rm -f conftest.$ac_objext
  1806. if { { ac_try="$ac_compile"
  1807. case "(($ac_try" in
  1808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1809. *) ac_try_echo=$ac_try;;
  1810. esac
  1811. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1812. $as_echo "$ac_try_echo"; } >&5
  1813. (eval "$ac_compile") 2>conftest.err
  1814. ac_status=$?
  1815. if test -s conftest.err; then
  1816. grep -v '^ *+' conftest.err >conftest.er1
  1817. cat conftest.er1 >&5
  1818. mv -f conftest.er1 conftest.err
  1819. fi
  1820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1821. test $ac_status = 0; } && {
  1822. test -z "$ac_cxx_werror_flag" ||
  1823. test ! -s conftest.err
  1824. } && test -s conftest.$ac_objext; then :
  1825. ac_retval=0
  1826. else
  1827. $as_echo "$as_me: failed program was:" >&5
  1828. sed 's/^/| /' conftest.$ac_ext >&5
  1829. ac_retval=1
  1830. fi
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. as_fn_set_status $ac_retval
  1833. } # ac_fn_cxx_try_compile
  1834. # ac_fn_cxx_try_cpp LINENO
  1835. # ------------------------
  1836. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1837. ac_fn_cxx_try_cpp ()
  1838. {
  1839. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1840. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1841. case "(($ac_try" in
  1842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1843. *) ac_try_echo=$ac_try;;
  1844. esac
  1845. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1846. $as_echo "$ac_try_echo"; } >&5
  1847. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1848. ac_status=$?
  1849. if test -s conftest.err; then
  1850. grep -v '^ *+' conftest.err >conftest.er1
  1851. cat conftest.er1 >&5
  1852. mv -f conftest.er1 conftest.err
  1853. fi
  1854. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1855. test $ac_status = 0; } > conftest.i && {
  1856. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1857. test ! -s conftest.err
  1858. }; then :
  1859. ac_retval=0
  1860. else
  1861. $as_echo "$as_me: failed program was:" >&5
  1862. sed 's/^/| /' conftest.$ac_ext >&5
  1863. ac_retval=1
  1864. fi
  1865. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1866. as_fn_set_status $ac_retval
  1867. } # ac_fn_cxx_try_cpp
  1868. # ac_fn_cxx_try_link LINENO
  1869. # -------------------------
  1870. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1871. ac_fn_cxx_try_link ()
  1872. {
  1873. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1874. rm -f conftest.$ac_objext conftest$ac_exeext
  1875. if { { ac_try="$ac_link"
  1876. case "(($ac_try" in
  1877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1878. *) ac_try_echo=$ac_try;;
  1879. esac
  1880. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1881. $as_echo "$ac_try_echo"; } >&5
  1882. (eval "$ac_link") 2>conftest.err
  1883. ac_status=$?
  1884. if test -s conftest.err; then
  1885. grep -v '^ *+' conftest.err >conftest.er1
  1886. cat conftest.er1 >&5
  1887. mv -f conftest.er1 conftest.err
  1888. fi
  1889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1890. test $ac_status = 0; } && {
  1891. test -z "$ac_cxx_werror_flag" ||
  1892. test ! -s conftest.err
  1893. } && test -s conftest$ac_exeext && {
  1894. test "$cross_compiling" = yes ||
  1895. test -x conftest$ac_exeext
  1896. }; then :
  1897. ac_retval=0
  1898. else
  1899. $as_echo "$as_me: failed program was:" >&5
  1900. sed 's/^/| /' conftest.$ac_ext >&5
  1901. ac_retval=1
  1902. fi
  1903. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1904. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1905. # interfere with the next link command; also delete a directory that is
  1906. # left behind by Apple's compiler. We do this before executing the actions.
  1907. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1908. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1909. as_fn_set_status $ac_retval
  1910. } # ac_fn_cxx_try_link
  1911. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1912. # -------------------------------------------------------
  1913. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1914. # the include files in INCLUDES and setting the cache variable VAR
  1915. # accordingly.
  1916. ac_fn_c_check_header_mongrel ()
  1917. {
  1918. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1919. if eval \${$3+:} false; then :
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1921. $as_echo_n "checking for $2... " >&6; }
  1922. if eval \${$3+:} false; then :
  1923. $as_echo_n "(cached) " >&6
  1924. fi
  1925. eval ac_res=\$$3
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1927. $as_echo "$ac_res" >&6; }
  1928. else
  1929. # Is the header compilable?
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1931. $as_echo_n "checking $2 usability... " >&6; }
  1932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1933. /* end confdefs.h. */
  1934. $4
  1935. #include <$2>
  1936. _ACEOF
  1937. if ac_fn_c_try_compile "$LINENO"; then :
  1938. ac_header_compiler=yes
  1939. else
  1940. ac_header_compiler=no
  1941. fi
  1942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1944. $as_echo "$ac_header_compiler" >&6; }
  1945. # Is the header present?
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1947. $as_echo_n "checking $2 presence... " >&6; }
  1948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1949. /* end confdefs.h. */
  1950. #include <$2>
  1951. _ACEOF
  1952. if ac_fn_c_try_cpp "$LINENO"; then :
  1953. ac_header_preproc=yes
  1954. else
  1955. ac_header_preproc=no
  1956. fi
  1957. rm -f conftest.err conftest.i conftest.$ac_ext
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1959. $as_echo "$ac_header_preproc" >&6; }
  1960. # So? What about this header?
  1961. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1962. yes:no: )
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1964. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1966. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1967. ;;
  1968. no:yes:* )
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1970. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1972. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1974. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1976. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1978. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1979. ;;
  1980. esac
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1982. $as_echo_n "checking for $2... " >&6; }
  1983. if eval \${$3+:} false; then :
  1984. $as_echo_n "(cached) " >&6
  1985. else
  1986. eval "$3=\$ac_header_compiler"
  1987. fi
  1988. eval ac_res=\$$3
  1989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1990. $as_echo "$ac_res" >&6; }
  1991. fi
  1992. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1993. } # ac_fn_c_check_header_mongrel
  1994. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1995. # -------------------------------------------
  1996. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1997. # variable VAR accordingly.
  1998. ac_fn_c_check_type ()
  1999. {
  2000. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2002. $as_echo_n "checking for $2... " >&6; }
  2003. if eval \${$3+:} false; then :
  2004. $as_echo_n "(cached) " >&6
  2005. else
  2006. eval "$3=no"
  2007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2008. /* end confdefs.h. */
  2009. $4
  2010. int
  2011. main ()
  2012. {
  2013. if (sizeof ($2))
  2014. return 0;
  2015. ;
  2016. return 0;
  2017. }
  2018. _ACEOF
  2019. if ac_fn_c_try_compile "$LINENO"; then :
  2020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2021. /* end confdefs.h. */
  2022. $4
  2023. int
  2024. main ()
  2025. {
  2026. if (sizeof (($2)))
  2027. return 0;
  2028. ;
  2029. return 0;
  2030. }
  2031. _ACEOF
  2032. if ac_fn_c_try_compile "$LINENO"; then :
  2033. else
  2034. eval "$3=yes"
  2035. fi
  2036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2037. fi
  2038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2039. fi
  2040. eval ac_res=\$$3
  2041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2042. $as_echo "$ac_res" >&6; }
  2043. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2044. } # ac_fn_c_check_type
  2045. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2046. # ----------------------------------------------------
  2047. # Tries to find if the field MEMBER exists in type AGGR, after including
  2048. # INCLUDES, setting cache variable VAR accordingly.
  2049. ac_fn_c_check_member ()
  2050. {
  2051. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2053. $as_echo_n "checking for $2.$3... " >&6; }
  2054. if eval \${$4+:} false; then :
  2055. $as_echo_n "(cached) " >&6
  2056. else
  2057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2058. /* end confdefs.h. */
  2059. $5
  2060. int
  2061. main ()
  2062. {
  2063. static $2 ac_aggr;
  2064. if (ac_aggr.$3)
  2065. return 0;
  2066. ;
  2067. return 0;
  2068. }
  2069. _ACEOF
  2070. if ac_fn_c_try_compile "$LINENO"; then :
  2071. eval "$4=yes"
  2072. else
  2073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2074. /* end confdefs.h. */
  2075. $5
  2076. int
  2077. main ()
  2078. {
  2079. static $2 ac_aggr;
  2080. if (sizeof ac_aggr.$3)
  2081. return 0;
  2082. ;
  2083. return 0;
  2084. }
  2085. _ACEOF
  2086. if ac_fn_c_try_compile "$LINENO"; then :
  2087. eval "$4=yes"
  2088. else
  2089. eval "$4=no"
  2090. fi
  2091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2092. fi
  2093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2094. fi
  2095. eval ac_res=\$$4
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2097. $as_echo "$ac_res" >&6; }
  2098. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2099. } # ac_fn_c_check_member
  2100. cat >config.log <<_ACEOF
  2101. This file contains any messages produced by compilers while
  2102. running configure, to aid debugging if configure makes a mistake.
  2103. It was created by $as_me, which was
  2104. generated by GNU Autoconf 2.69. Invocation command line was
  2105. $ $0 $@
  2106. _ACEOF
  2107. exec 5>>config.log
  2108. {
  2109. cat <<_ASUNAME
  2110. ## --------- ##
  2111. ## Platform. ##
  2112. ## --------- ##
  2113. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2114. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2115. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2116. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2117. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2118. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2119. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2120. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2121. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2122. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2123. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2124. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2125. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2126. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2127. _ASUNAME
  2128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2129. for as_dir in $PATH
  2130. do
  2131. IFS=$as_save_IFS
  2132. test -z "$as_dir" && as_dir=.
  2133. $as_echo "PATH: $as_dir"
  2134. done
  2135. IFS=$as_save_IFS
  2136. } >&5
  2137. cat >&5 <<_ACEOF
  2138. ## ----------- ##
  2139. ## Core tests. ##
  2140. ## ----------- ##
  2141. _ACEOF
  2142. # Keep a trace of the command line.
  2143. # Strip out --no-create and --no-recursion so they do not pile up.
  2144. # Strip out --silent because we don't want to record it for future runs.
  2145. # Also quote any args containing shell meta-characters.
  2146. # Make two passes to allow for proper duplicate-argument suppression.
  2147. ac_configure_args=
  2148. ac_configure_args0=
  2149. ac_configure_args1=
  2150. ac_must_keep_next=false
  2151. for ac_pass in 1 2
  2152. do
  2153. for ac_arg
  2154. do
  2155. case $ac_arg in
  2156. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2157. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2158. | -silent | --silent | --silen | --sile | --sil)
  2159. continue ;;
  2160. *\'*)
  2161. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2162. esac
  2163. case $ac_pass in
  2164. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2165. 2)
  2166. as_fn_append ac_configure_args1 " '$ac_arg'"
  2167. if test $ac_must_keep_next = true; then
  2168. ac_must_keep_next=false # Got value, back to normal.
  2169. else
  2170. case $ac_arg in
  2171. *=* | --config-cache | -C | -disable-* | --disable-* \
  2172. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2173. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2174. | -with-* | --with-* | -without-* | --without-* | --x)
  2175. case "$ac_configure_args0 " in
  2176. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2177. esac
  2178. ;;
  2179. -* ) ac_must_keep_next=true ;;
  2180. esac
  2181. fi
  2182. as_fn_append ac_configure_args " '$ac_arg'"
  2183. ;;
  2184. esac
  2185. done
  2186. done
  2187. { ac_configure_args0=; unset ac_configure_args0;}
  2188. { ac_configure_args1=; unset ac_configure_args1;}
  2189. # When interrupted or exit'd, cleanup temporary files, and complete
  2190. # config.log. We remove comments because anyway the quotes in there
  2191. # would cause problems or look ugly.
  2192. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2193. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2194. trap 'exit_status=$?
  2195. # Save into config.log some information that might help in debugging.
  2196. {
  2197. echo
  2198. $as_echo "## ---------------- ##
  2199. ## Cache variables. ##
  2200. ## ---------------- ##"
  2201. echo
  2202. # The following way of writing the cache mishandles newlines in values,
  2203. (
  2204. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2205. eval ac_val=\$$ac_var
  2206. case $ac_val in #(
  2207. *${as_nl}*)
  2208. case $ac_var in #(
  2209. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2210. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2211. esac
  2212. case $ac_var in #(
  2213. _ | IFS | as_nl) ;; #(
  2214. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2215. *) { eval $ac_var=; unset $ac_var;} ;;
  2216. esac ;;
  2217. esac
  2218. done
  2219. (set) 2>&1 |
  2220. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2221. *${as_nl}ac_space=\ *)
  2222. sed -n \
  2223. "s/'\''/'\''\\\\'\'''\''/g;
  2224. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2225. ;; #(
  2226. *)
  2227. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2228. ;;
  2229. esac |
  2230. sort
  2231. )
  2232. echo
  2233. $as_echo "## ----------------- ##
  2234. ## Output variables. ##
  2235. ## ----------------- ##"
  2236. echo
  2237. for ac_var in $ac_subst_vars
  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. if test -n "$ac_subst_files"; then
  2247. $as_echo "## ------------------- ##
  2248. ## File substitutions. ##
  2249. ## ------------------- ##"
  2250. echo
  2251. for ac_var in $ac_subst_files
  2252. do
  2253. eval ac_val=\$$ac_var
  2254. case $ac_val in
  2255. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2256. esac
  2257. $as_echo "$ac_var='\''$ac_val'\''"
  2258. done | sort
  2259. echo
  2260. fi
  2261. if test -s confdefs.h; then
  2262. $as_echo "## ----------- ##
  2263. ## confdefs.h. ##
  2264. ## ----------- ##"
  2265. echo
  2266. cat confdefs.h
  2267. echo
  2268. fi
  2269. test "$ac_signal" != 0 &&
  2270. $as_echo "$as_me: caught signal $ac_signal"
  2271. $as_echo "$as_me: exit $exit_status"
  2272. } >&5
  2273. rm -f core *.core core.conftest.* &&
  2274. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2275. exit $exit_status
  2276. ' 0
  2277. for ac_signal in 1 2 13 15; do
  2278. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2279. done
  2280. ac_signal=0
  2281. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2282. rm -f -r conftest* confdefs.h
  2283. $as_echo "/* confdefs.h */" > confdefs.h
  2284. # Predefined preprocessor variables.
  2285. cat >>confdefs.h <<_ACEOF
  2286. #define PACKAGE_NAME "$PACKAGE_NAME"
  2287. _ACEOF
  2288. cat >>confdefs.h <<_ACEOF
  2289. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2290. _ACEOF
  2291. cat >>confdefs.h <<_ACEOF
  2292. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2293. _ACEOF
  2294. cat >>confdefs.h <<_ACEOF
  2295. #define PACKAGE_STRING "$PACKAGE_STRING"
  2296. _ACEOF
  2297. cat >>confdefs.h <<_ACEOF
  2298. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2299. _ACEOF
  2300. cat >>confdefs.h <<_ACEOF
  2301. #define PACKAGE_URL "$PACKAGE_URL"
  2302. _ACEOF
  2303. # Let the site file select an alternate cache file if it wants to.
  2304. # Prefer an explicitly selected file to automatically selected ones.
  2305. ac_site_file1=NONE
  2306. ac_site_file2=NONE
  2307. if test -n "$CONFIG_SITE"; then
  2308. # We do not want a PATH search for config.site.
  2309. case $CONFIG_SITE in #((
  2310. -*) ac_site_file1=./$CONFIG_SITE;;
  2311. */*) ac_site_file1=$CONFIG_SITE;;
  2312. *) ac_site_file1=./$CONFIG_SITE;;
  2313. esac
  2314. elif test "x$prefix" != xNONE; then
  2315. ac_site_file1=$prefix/share/config.site
  2316. ac_site_file2=$prefix/etc/config.site
  2317. else
  2318. ac_site_file1=$ac_default_prefix/share/config.site
  2319. ac_site_file2=$ac_default_prefix/etc/config.site
  2320. fi
  2321. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2322. do
  2323. test "x$ac_site_file" = xNONE && continue
  2324. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2326. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2327. sed 's/^/| /' "$ac_site_file" >&5
  2328. . "$ac_site_file" \
  2329. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2330. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2331. as_fn_error $? "failed to load site script $ac_site_file
  2332. See \`config.log' for more details" "$LINENO" 5; }
  2333. fi
  2334. done
  2335. if test -r "$cache_file"; then
  2336. # Some versions of bash will fail to source /dev/null (special files
  2337. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2338. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2340. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2341. case $cache_file in
  2342. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2343. *) . "./$cache_file";;
  2344. esac
  2345. fi
  2346. else
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2348. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2349. >$cache_file
  2350. fi
  2351. # Check that the precious variables saved in the cache have kept the same
  2352. # value.
  2353. ac_cache_corrupted=false
  2354. for ac_var in $ac_precious_vars; do
  2355. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2356. eval ac_new_set=\$ac_env_${ac_var}_set
  2357. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2358. eval ac_new_val=\$ac_env_${ac_var}_value
  2359. case $ac_old_set,$ac_new_set in
  2360. set,)
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2362. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2363. ac_cache_corrupted=: ;;
  2364. ,set)
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2366. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2367. ac_cache_corrupted=: ;;
  2368. ,);;
  2369. *)
  2370. if test "x$ac_old_val" != "x$ac_new_val"; then
  2371. # differences in whitespace do not lead to failure.
  2372. ac_old_val_w=`echo x $ac_old_val`
  2373. ac_new_val_w=`echo x $ac_new_val`
  2374. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2376. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2377. ac_cache_corrupted=:
  2378. else
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2380. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2381. eval $ac_var=\$ac_old_val
  2382. fi
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2384. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2386. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2387. fi;;
  2388. esac
  2389. # Pass precious variables to config.status.
  2390. if test "$ac_new_set" = set; then
  2391. case $ac_new_val in
  2392. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2393. *) ac_arg=$ac_var=$ac_new_val ;;
  2394. esac
  2395. case " $ac_configure_args " in
  2396. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2397. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2398. esac
  2399. fi
  2400. done
  2401. if $ac_cache_corrupted; then
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2403. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2405. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2406. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2407. fi
  2408. ## -------------------- ##
  2409. ## Main body of script. ##
  2410. ## -------------------- ##
  2411. ac_ext=c
  2412. ac_cpp='$CPP $CPPFLAGS'
  2413. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2414. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2415. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2416. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2417. ac_aux_dir=
  2418. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2419. if test -f "$ac_dir/install-sh"; then
  2420. ac_aux_dir=$ac_dir
  2421. ac_install_sh="$ac_aux_dir/install-sh -c"
  2422. break
  2423. elif test -f "$ac_dir/install.sh"; then
  2424. ac_aux_dir=$ac_dir
  2425. ac_install_sh="$ac_aux_dir/install.sh -c"
  2426. break
  2427. elif test -f "$ac_dir/shtool"; then
  2428. ac_aux_dir=$ac_dir
  2429. ac_install_sh="$ac_aux_dir/shtool install -c"
  2430. break
  2431. fi
  2432. done
  2433. if test -z "$ac_aux_dir"; then
  2434. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2435. fi
  2436. # These three variables are undocumented and unsupported,
  2437. # and are intended to be withdrawn in a future Autoconf release.
  2438. # They can cause serious problems if a builder's source tree is in a directory
  2439. # whose full name contains unusual characters.
  2440. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2441. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2442. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2443. orig_CFLAGS="$CFLAGS"
  2444. #
  2445. # Making releases:
  2446. # Edit include/SDL_version.h and change the version, then:
  2447. # SDL_MICRO_VERSION += 1;
  2448. # SDL_INTERFACE_AGE += 1;
  2449. # SDL_BINARY_AGE += 1;
  2450. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2451. # if backwards compatibility has been broken,
  2452. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2453. #
  2454. SDL_MAJOR_VERSION=2
  2455. SDL_MINOR_VERSION=0
  2456. SDL_MICRO_VERSION=4
  2457. SDL_INTERFACE_AGE=0
  2458. SDL_BINARY_AGE=4
  2459. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2460. # libtool versioning
  2461. case `pwd` in
  2462. *\ * | *\ *)
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2464. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2465. esac
  2466. macro_version='2.4.2'
  2467. macro_revision='1.3337'
  2468. ltmain="$ac_aux_dir/ltmain.sh"
  2469. # Make sure we can run config.sub.
  2470. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2471. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2473. $as_echo_n "checking build system type... " >&6; }
  2474. if ${ac_cv_build+:} false; then :
  2475. $as_echo_n "(cached) " >&6
  2476. else
  2477. ac_build_alias=$build_alias
  2478. test "x$ac_build_alias" = x &&
  2479. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2480. test "x$ac_build_alias" = x &&
  2481. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2482. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2483. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2484. fi
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2486. $as_echo "$ac_cv_build" >&6; }
  2487. case $ac_cv_build in
  2488. *-*-*) ;;
  2489. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2490. esac
  2491. build=$ac_cv_build
  2492. ac_save_IFS=$IFS; IFS='-'
  2493. set x $ac_cv_build
  2494. shift
  2495. build_cpu=$1
  2496. build_vendor=$2
  2497. shift; shift
  2498. # Remember, the first character of IFS is used to create $*,
  2499. # except with old shells:
  2500. build_os=$*
  2501. IFS=$ac_save_IFS
  2502. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2504. $as_echo_n "checking host system type... " >&6; }
  2505. if ${ac_cv_host+:} false; then :
  2506. $as_echo_n "(cached) " >&6
  2507. else
  2508. if test "x$host_alias" = x; then
  2509. ac_cv_host=$ac_cv_build
  2510. else
  2511. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2512. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2513. fi
  2514. fi
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2516. $as_echo "$ac_cv_host" >&6; }
  2517. case $ac_cv_host in
  2518. *-*-*) ;;
  2519. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2520. esac
  2521. host=$ac_cv_host
  2522. ac_save_IFS=$IFS; IFS='-'
  2523. set x $ac_cv_host
  2524. shift
  2525. host_cpu=$1
  2526. host_vendor=$2
  2527. shift; shift
  2528. # Remember, the first character of IFS is used to create $*,
  2529. # except with old shells:
  2530. host_os=$*
  2531. IFS=$ac_save_IFS
  2532. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2533. # Backslashify metacharacters that are still active within
  2534. # double-quoted strings.
  2535. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2536. # Same as above, but do not quote variable references.
  2537. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2538. # Sed substitution to delay expansion of an escaped shell variable in a
  2539. # double_quote_subst'ed string.
  2540. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2541. # Sed substitution to delay expansion of an escaped single quote.
  2542. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2543. # Sed substitution to avoid accidental globbing in evaled expressions
  2544. no_glob_subst='s/\*/\\\*/g'
  2545. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2546. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2547. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2549. $as_echo_n "checking how to print strings... " >&6; }
  2550. # Test print first, because it will be a builtin if present.
  2551. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2552. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2553. ECHO='print -r --'
  2554. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2555. ECHO='printf %s\n'
  2556. else
  2557. # Use this function as a fallback that always works.
  2558. func_fallback_echo ()
  2559. {
  2560. eval 'cat <<_LTECHO_EOF
  2561. $1
  2562. _LTECHO_EOF'
  2563. }
  2564. ECHO='func_fallback_echo'
  2565. fi
  2566. # func_echo_all arg...
  2567. # Invoke $ECHO with all args, space-separated.
  2568. func_echo_all ()
  2569. {
  2570. $ECHO ""
  2571. }
  2572. case "$ECHO" in
  2573. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2574. $as_echo "printf" >&6; } ;;
  2575. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2576. $as_echo "print -r" >&6; } ;;
  2577. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2578. $as_echo "cat" >&6; } ;;
  2579. esac
  2580. ac_ext=c
  2581. ac_cpp='$CPP $CPPFLAGS'
  2582. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2583. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2584. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2585. if test -n "$ac_tool_prefix"; then
  2586. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2587. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2589. $as_echo_n "checking for $ac_word... " >&6; }
  2590. if ${ac_cv_prog_CC+:} false; then :
  2591. $as_echo_n "(cached) " >&6
  2592. else
  2593. if test -n "$CC"; then
  2594. ac_cv_prog_CC="$CC" # Let the user override the test.
  2595. else
  2596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2597. for as_dir in $PATH
  2598. do
  2599. IFS=$as_save_IFS
  2600. test -z "$as_dir" && as_dir=.
  2601. for ac_exec_ext in '' $ac_executable_extensions; do
  2602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2603. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2605. break 2
  2606. fi
  2607. done
  2608. done
  2609. IFS=$as_save_IFS
  2610. fi
  2611. fi
  2612. CC=$ac_cv_prog_CC
  2613. if test -n "$CC"; then
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2615. $as_echo "$CC" >&6; }
  2616. else
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2618. $as_echo "no" >&6; }
  2619. fi
  2620. fi
  2621. if test -z "$ac_cv_prog_CC"; then
  2622. ac_ct_CC=$CC
  2623. # Extract the first word of "gcc", so it can be a program name with args.
  2624. set dummy gcc; ac_word=$2
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2626. $as_echo_n "checking for $ac_word... " >&6; }
  2627. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2628. $as_echo_n "(cached) " >&6
  2629. else
  2630. if test -n "$ac_ct_CC"; then
  2631. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2632. else
  2633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2634. for as_dir in $PATH
  2635. do
  2636. IFS=$as_save_IFS
  2637. test -z "$as_dir" && as_dir=.
  2638. for ac_exec_ext in '' $ac_executable_extensions; do
  2639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2640. ac_cv_prog_ac_ct_CC="gcc"
  2641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2642. break 2
  2643. fi
  2644. done
  2645. done
  2646. IFS=$as_save_IFS
  2647. fi
  2648. fi
  2649. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2650. if test -n "$ac_ct_CC"; then
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2652. $as_echo "$ac_ct_CC" >&6; }
  2653. else
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2655. $as_echo "no" >&6; }
  2656. fi
  2657. if test "x$ac_ct_CC" = x; then
  2658. CC=""
  2659. else
  2660. case $cross_compiling:$ac_tool_warned in
  2661. yes:)
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2663. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2664. ac_tool_warned=yes ;;
  2665. esac
  2666. CC=$ac_ct_CC
  2667. fi
  2668. else
  2669. CC="$ac_cv_prog_CC"
  2670. fi
  2671. if test -z "$CC"; then
  2672. if test -n "$ac_tool_prefix"; then
  2673. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2674. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2676. $as_echo_n "checking for $ac_word... " >&6; }
  2677. if ${ac_cv_prog_CC+:} false; then :
  2678. $as_echo_n "(cached) " >&6
  2679. else
  2680. if test -n "$CC"; then
  2681. ac_cv_prog_CC="$CC" # Let the user override the test.
  2682. else
  2683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2684. for as_dir in $PATH
  2685. do
  2686. IFS=$as_save_IFS
  2687. test -z "$as_dir" && as_dir=.
  2688. for ac_exec_ext in '' $ac_executable_extensions; do
  2689. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2690. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2692. break 2
  2693. fi
  2694. done
  2695. done
  2696. IFS=$as_save_IFS
  2697. fi
  2698. fi
  2699. CC=$ac_cv_prog_CC
  2700. if test -n "$CC"; then
  2701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2702. $as_echo "$CC" >&6; }
  2703. else
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2705. $as_echo "no" >&6; }
  2706. fi
  2707. fi
  2708. fi
  2709. if test -z "$CC"; then
  2710. # Extract the first word of "cc", so it can be a program name with args.
  2711. set dummy cc; ac_word=$2
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2713. $as_echo_n "checking for $ac_word... " >&6; }
  2714. if ${ac_cv_prog_CC+:} false; then :
  2715. $as_echo_n "(cached) " >&6
  2716. else
  2717. if test -n "$CC"; then
  2718. ac_cv_prog_CC="$CC" # Let the user override the test.
  2719. else
  2720. ac_prog_rejected=no
  2721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2722. for as_dir in $PATH
  2723. do
  2724. IFS=$as_save_IFS
  2725. test -z "$as_dir" && as_dir=.
  2726. for ac_exec_ext in '' $ac_executable_extensions; do
  2727. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2728. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2729. ac_prog_rejected=yes
  2730. continue
  2731. fi
  2732. ac_cv_prog_CC="cc"
  2733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2734. break 2
  2735. fi
  2736. done
  2737. done
  2738. IFS=$as_save_IFS
  2739. if test $ac_prog_rejected = yes; then
  2740. # We found a bogon in the path, so make sure we never use it.
  2741. set dummy $ac_cv_prog_CC
  2742. shift
  2743. if test $# != 0; then
  2744. # We chose a different compiler from the bogus one.
  2745. # However, it has the same basename, so the bogon will be chosen
  2746. # first if we set CC to just the basename; use the full file name.
  2747. shift
  2748. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2749. fi
  2750. fi
  2751. fi
  2752. fi
  2753. CC=$ac_cv_prog_CC
  2754. if test -n "$CC"; then
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2756. $as_echo "$CC" >&6; }
  2757. else
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2759. $as_echo "no" >&6; }
  2760. fi
  2761. fi
  2762. if test -z "$CC"; then
  2763. if test -n "$ac_tool_prefix"; then
  2764. for ac_prog in cl.exe
  2765. do
  2766. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2767. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2769. $as_echo_n "checking for $ac_word... " >&6; }
  2770. if ${ac_cv_prog_CC+:} false; then :
  2771. $as_echo_n "(cached) " >&6
  2772. else
  2773. if test -n "$CC"; then
  2774. ac_cv_prog_CC="$CC" # Let the user override the test.
  2775. else
  2776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2777. for as_dir in $PATH
  2778. do
  2779. IFS=$as_save_IFS
  2780. test -z "$as_dir" && as_dir=.
  2781. for ac_exec_ext in '' $ac_executable_extensions; do
  2782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2783. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2785. break 2
  2786. fi
  2787. done
  2788. done
  2789. IFS=$as_save_IFS
  2790. fi
  2791. fi
  2792. CC=$ac_cv_prog_CC
  2793. if test -n "$CC"; then
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2795. $as_echo "$CC" >&6; }
  2796. else
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2798. $as_echo "no" >&6; }
  2799. fi
  2800. test -n "$CC" && break
  2801. done
  2802. fi
  2803. if test -z "$CC"; then
  2804. ac_ct_CC=$CC
  2805. for ac_prog in cl.exe
  2806. do
  2807. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2808. set dummy $ac_prog; ac_word=$2
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2810. $as_echo_n "checking for $ac_word... " >&6; }
  2811. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2812. $as_echo_n "(cached) " >&6
  2813. else
  2814. if test -n "$ac_ct_CC"; then
  2815. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2816. else
  2817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2818. for as_dir in $PATH
  2819. do
  2820. IFS=$as_save_IFS
  2821. test -z "$as_dir" && as_dir=.
  2822. for ac_exec_ext in '' $ac_executable_extensions; do
  2823. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2824. ac_cv_prog_ac_ct_CC="$ac_prog"
  2825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2826. break 2
  2827. fi
  2828. done
  2829. done
  2830. IFS=$as_save_IFS
  2831. fi
  2832. fi
  2833. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2834. if test -n "$ac_ct_CC"; then
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2836. $as_echo "$ac_ct_CC" >&6; }
  2837. else
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2839. $as_echo "no" >&6; }
  2840. fi
  2841. test -n "$ac_ct_CC" && break
  2842. done
  2843. if test "x$ac_ct_CC" = x; then
  2844. CC=""
  2845. else
  2846. case $cross_compiling:$ac_tool_warned in
  2847. yes:)
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2849. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2850. ac_tool_warned=yes ;;
  2851. esac
  2852. CC=$ac_ct_CC
  2853. fi
  2854. fi
  2855. fi
  2856. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2857. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2858. as_fn_error $? "no acceptable C compiler found in \$PATH
  2859. See \`config.log' for more details" "$LINENO" 5; }
  2860. # Provide some information about the compiler.
  2861. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2862. set X $ac_compile
  2863. ac_compiler=$2
  2864. for ac_option in --version -v -V -qversion; do
  2865. { { ac_try="$ac_compiler $ac_option >&5"
  2866. case "(($ac_try" in
  2867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2868. *) ac_try_echo=$ac_try;;
  2869. esac
  2870. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2871. $as_echo "$ac_try_echo"; } >&5
  2872. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2873. ac_status=$?
  2874. if test -s conftest.err; then
  2875. sed '10a\
  2876. ... rest of stderr output deleted ...
  2877. 10q' conftest.err >conftest.er1
  2878. cat conftest.er1 >&5
  2879. fi
  2880. rm -f conftest.er1 conftest.err
  2881. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2882. test $ac_status = 0; }
  2883. done
  2884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2885. /* end confdefs.h. */
  2886. int
  2887. main ()
  2888. {
  2889. ;
  2890. return 0;
  2891. }
  2892. _ACEOF
  2893. ac_clean_files_save=$ac_clean_files
  2894. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2895. # Try to create an executable without -o first, disregard a.out.
  2896. # It will help us diagnose broken compilers, and finding out an intuition
  2897. # of exeext.
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2899. $as_echo_n "checking whether the C compiler works... " >&6; }
  2900. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2901. # The possible output files:
  2902. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2903. ac_rmfiles=
  2904. for ac_file in $ac_files
  2905. do
  2906. case $ac_file in
  2907. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2908. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2909. esac
  2910. done
  2911. rm -f $ac_rmfiles
  2912. if { { ac_try="$ac_link_default"
  2913. case "(($ac_try" in
  2914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2915. *) ac_try_echo=$ac_try;;
  2916. esac
  2917. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2918. $as_echo "$ac_try_echo"; } >&5
  2919. (eval "$ac_link_default") 2>&5
  2920. ac_status=$?
  2921. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2922. test $ac_status = 0; }; then :
  2923. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2924. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2925. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2926. # so that the user can short-circuit this test for compilers unknown to
  2927. # Autoconf.
  2928. for ac_file in $ac_files ''
  2929. do
  2930. test -f "$ac_file" || continue
  2931. case $ac_file in
  2932. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2933. ;;
  2934. [ab].out )
  2935. # We found the default executable, but exeext='' is most
  2936. # certainly right.
  2937. break;;
  2938. *.* )
  2939. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2940. then :; else
  2941. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2942. fi
  2943. # We set ac_cv_exeext here because the later test for it is not
  2944. # safe: cross compilers may not add the suffix if given an `-o'
  2945. # argument, so we may need to know it at that point already.
  2946. # Even if this section looks crufty: it has the advantage of
  2947. # actually working.
  2948. break;;
  2949. * )
  2950. break;;
  2951. esac
  2952. done
  2953. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2954. else
  2955. ac_file=''
  2956. fi
  2957. if test -z "$ac_file"; then :
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2959. $as_echo "no" >&6; }
  2960. $as_echo "$as_me: failed program was:" >&5
  2961. sed 's/^/| /' conftest.$ac_ext >&5
  2962. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2963. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2964. as_fn_error 77 "C compiler cannot create executables
  2965. See \`config.log' for more details" "$LINENO" 5; }
  2966. else
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2968. $as_echo "yes" >&6; }
  2969. fi
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2971. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2973. $as_echo "$ac_file" >&6; }
  2974. ac_exeext=$ac_cv_exeext
  2975. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2976. ac_clean_files=$ac_clean_files_save
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2978. $as_echo_n "checking for suffix of executables... " >&6; }
  2979. if { { ac_try="$ac_link"
  2980. case "(($ac_try" in
  2981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2982. *) ac_try_echo=$ac_try;;
  2983. esac
  2984. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2985. $as_echo "$ac_try_echo"; } >&5
  2986. (eval "$ac_link") 2>&5
  2987. ac_status=$?
  2988. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2989. test $ac_status = 0; }; then :
  2990. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2991. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2992. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2993. # `rm'.
  2994. for ac_file in conftest.exe conftest conftest.*; do
  2995. test -f "$ac_file" || continue
  2996. case $ac_file in
  2997. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2998. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2999. break;;
  3000. * ) break;;
  3001. esac
  3002. done
  3003. else
  3004. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3005. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3006. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3007. See \`config.log' for more details" "$LINENO" 5; }
  3008. fi
  3009. rm -f conftest conftest$ac_cv_exeext
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3011. $as_echo "$ac_cv_exeext" >&6; }
  3012. rm -f conftest.$ac_ext
  3013. EXEEXT=$ac_cv_exeext
  3014. ac_exeext=$EXEEXT
  3015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3016. /* end confdefs.h. */
  3017. #include <stdio.h>
  3018. int
  3019. main ()
  3020. {
  3021. FILE *f = fopen ("conftest.out", "w");
  3022. return ferror (f) || fclose (f) != 0;
  3023. ;
  3024. return 0;
  3025. }
  3026. _ACEOF
  3027. ac_clean_files="$ac_clean_files conftest.out"
  3028. # Check that the compiler produces executables we can run. If not, either
  3029. # the compiler is broken, or we cross compile.
  3030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3031. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3032. if test "$cross_compiling" != yes; then
  3033. { { ac_try="$ac_link"
  3034. case "(($ac_try" in
  3035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3036. *) ac_try_echo=$ac_try;;
  3037. esac
  3038. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3039. $as_echo "$ac_try_echo"; } >&5
  3040. (eval "$ac_link") 2>&5
  3041. ac_status=$?
  3042. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3043. test $ac_status = 0; }
  3044. if { ac_try='./conftest$ac_cv_exeext'
  3045. { { case "(($ac_try" in
  3046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3047. *) ac_try_echo=$ac_try;;
  3048. esac
  3049. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3050. $as_echo "$ac_try_echo"; } >&5
  3051. (eval "$ac_try") 2>&5
  3052. ac_status=$?
  3053. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3054. test $ac_status = 0; }; }; then
  3055. cross_compiling=no
  3056. else
  3057. if test "$cross_compiling" = maybe; then
  3058. cross_compiling=yes
  3059. else
  3060. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3061. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3062. as_fn_error $? "cannot run C compiled programs.
  3063. If you meant to cross compile, use \`--host'.
  3064. See \`config.log' for more details" "$LINENO" 5; }
  3065. fi
  3066. fi
  3067. fi
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3069. $as_echo "$cross_compiling" >&6; }
  3070. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3071. ac_clean_files=$ac_clean_files_save
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3073. $as_echo_n "checking for suffix of object files... " >&6; }
  3074. if ${ac_cv_objext+:} false; then :
  3075. $as_echo_n "(cached) " >&6
  3076. else
  3077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3078. /* end confdefs.h. */
  3079. int
  3080. main ()
  3081. {
  3082. ;
  3083. return 0;
  3084. }
  3085. _ACEOF
  3086. rm -f conftest.o conftest.obj
  3087. if { { ac_try="$ac_compile"
  3088. case "(($ac_try" in
  3089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3090. *) ac_try_echo=$ac_try;;
  3091. esac
  3092. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3093. $as_echo "$ac_try_echo"; } >&5
  3094. (eval "$ac_compile") 2>&5
  3095. ac_status=$?
  3096. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3097. test $ac_status = 0; }; then :
  3098. for ac_file in conftest.o conftest.obj conftest.*; do
  3099. test -f "$ac_file" || continue;
  3100. case $ac_file in
  3101. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3102. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3103. break;;
  3104. esac
  3105. done
  3106. else
  3107. $as_echo "$as_me: failed program was:" >&5
  3108. sed 's/^/| /' conftest.$ac_ext >&5
  3109. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3110. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3111. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3112. See \`config.log' for more details" "$LINENO" 5; }
  3113. fi
  3114. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3115. fi
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3117. $as_echo "$ac_cv_objext" >&6; }
  3118. OBJEXT=$ac_cv_objext
  3119. ac_objext=$OBJEXT
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3121. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3122. if ${ac_cv_c_compiler_gnu+:} false; then :
  3123. $as_echo_n "(cached) " >&6
  3124. else
  3125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3126. /* end confdefs.h. */
  3127. int
  3128. main ()
  3129. {
  3130. #ifndef __GNUC__
  3131. choke me
  3132. #endif
  3133. ;
  3134. return 0;
  3135. }
  3136. _ACEOF
  3137. if ac_fn_c_try_compile "$LINENO"; then :
  3138. ac_compiler_gnu=yes
  3139. else
  3140. ac_compiler_gnu=no
  3141. fi
  3142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3143. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3144. fi
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3146. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3147. if test $ac_compiler_gnu = yes; then
  3148. GCC=yes
  3149. else
  3150. GCC=
  3151. fi
  3152. ac_test_CFLAGS=${CFLAGS+set}
  3153. ac_save_CFLAGS=$CFLAGS
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3155. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3156. if ${ac_cv_prog_cc_g+:} false; then :
  3157. $as_echo_n "(cached) " >&6
  3158. else
  3159. ac_save_c_werror_flag=$ac_c_werror_flag
  3160. ac_c_werror_flag=yes
  3161. ac_cv_prog_cc_g=no
  3162. CFLAGS="-g"
  3163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3164. /* end confdefs.h. */
  3165. int
  3166. main ()
  3167. {
  3168. ;
  3169. return 0;
  3170. }
  3171. _ACEOF
  3172. if ac_fn_c_try_compile "$LINENO"; then :
  3173. ac_cv_prog_cc_g=yes
  3174. else
  3175. CFLAGS=""
  3176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3177. /* end confdefs.h. */
  3178. int
  3179. main ()
  3180. {
  3181. ;
  3182. return 0;
  3183. }
  3184. _ACEOF
  3185. if ac_fn_c_try_compile "$LINENO"; then :
  3186. else
  3187. ac_c_werror_flag=$ac_save_c_werror_flag
  3188. CFLAGS="-g"
  3189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3190. /* end confdefs.h. */
  3191. int
  3192. main ()
  3193. {
  3194. ;
  3195. return 0;
  3196. }
  3197. _ACEOF
  3198. if ac_fn_c_try_compile "$LINENO"; then :
  3199. ac_cv_prog_cc_g=yes
  3200. fi
  3201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3202. fi
  3203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3204. fi
  3205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3206. ac_c_werror_flag=$ac_save_c_werror_flag
  3207. fi
  3208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3209. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3210. if test "$ac_test_CFLAGS" = set; then
  3211. CFLAGS=$ac_save_CFLAGS
  3212. elif test $ac_cv_prog_cc_g = yes; then
  3213. if test "$GCC" = yes; then
  3214. CFLAGS="-g -O2"
  3215. else
  3216. CFLAGS="-g"
  3217. fi
  3218. else
  3219. if test "$GCC" = yes; then
  3220. CFLAGS="-O2"
  3221. else
  3222. CFLAGS=
  3223. fi
  3224. fi
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3226. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3227. if ${ac_cv_prog_cc_c89+:} false; then :
  3228. $as_echo_n "(cached) " >&6
  3229. else
  3230. ac_cv_prog_cc_c89=no
  3231. ac_save_CC=$CC
  3232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3233. /* end confdefs.h. */
  3234. #include <stdarg.h>
  3235. #include <stdio.h>
  3236. struct stat;
  3237. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3238. struct buf { int x; };
  3239. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3240. static char *e (p, i)
  3241. char **p;
  3242. int i;
  3243. {
  3244. return p[i];
  3245. }
  3246. static char *f (char * (*g) (char **, int), char **p, ...)
  3247. {
  3248. char *s;
  3249. va_list v;
  3250. va_start (v,p);
  3251. s = g (p, va_arg (v,int));
  3252. va_end (v);
  3253. return s;
  3254. }
  3255. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3256. function prototypes and stuff, but not '\xHH' hex character constants.
  3257. These don't provoke an error unfortunately, instead are silently treated
  3258. as 'x'. The following induces an error, until -std is added to get
  3259. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3260. array size at least. It's necessary to write '\x00'==0 to get something
  3261. that's true only with -std. */
  3262. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3263. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3264. inside strings and character constants. */
  3265. #define FOO(x) 'x'
  3266. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3267. int test (int i, double x);
  3268. struct s1 {int (*f) (int a);};
  3269. struct s2 {int (*f) (double a);};
  3270. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3271. int argc;
  3272. char **argv;
  3273. int
  3274. main ()
  3275. {
  3276. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3277. ;
  3278. return 0;
  3279. }
  3280. _ACEOF
  3281. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3282. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3283. do
  3284. CC="$ac_save_CC $ac_arg"
  3285. if ac_fn_c_try_compile "$LINENO"; then :
  3286. ac_cv_prog_cc_c89=$ac_arg
  3287. fi
  3288. rm -f core conftest.err conftest.$ac_objext
  3289. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3290. done
  3291. rm -f conftest.$ac_ext
  3292. CC=$ac_save_CC
  3293. fi
  3294. # AC_CACHE_VAL
  3295. case "x$ac_cv_prog_cc_c89" in
  3296. x)
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3298. $as_echo "none needed" >&6; } ;;
  3299. xno)
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3301. $as_echo "unsupported" >&6; } ;;
  3302. *)
  3303. CC="$CC $ac_cv_prog_cc_c89"
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3305. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3306. esac
  3307. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3308. fi
  3309. ac_ext=c
  3310. ac_cpp='$CPP $CPPFLAGS'
  3311. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3312. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3313. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3315. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3316. if ${ac_cv_path_SED+:} false; then :
  3317. $as_echo_n "(cached) " >&6
  3318. else
  3319. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3320. for ac_i in 1 2 3 4 5 6 7; do
  3321. ac_script="$ac_script$as_nl$ac_script"
  3322. done
  3323. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3324. { ac_script=; unset ac_script;}
  3325. if test -z "$SED"; then
  3326. ac_path_SED_found=false
  3327. # Loop through the user's path and test for each of PROGNAME-LIST
  3328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3329. for as_dir in $PATH
  3330. do
  3331. IFS=$as_save_IFS
  3332. test -z "$as_dir" && as_dir=.
  3333. for ac_prog in sed gsed; do
  3334. for ac_exec_ext in '' $ac_executable_extensions; do
  3335. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3336. as_fn_executable_p "$ac_path_SED" || continue
  3337. # Check for GNU ac_path_SED and select it if it is found.
  3338. # Check for GNU $ac_path_SED
  3339. case `"$ac_path_SED" --version 2>&1` in
  3340. *GNU*)
  3341. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3342. *)
  3343. ac_count=0
  3344. $as_echo_n 0123456789 >"conftest.in"
  3345. while :
  3346. do
  3347. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3348. mv "conftest.tmp" "conftest.in"
  3349. cp "conftest.in" "conftest.nl"
  3350. $as_echo '' >> "conftest.nl"
  3351. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3352. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3353. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3354. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3355. # Best one so far, save it but keep looking for a better one
  3356. ac_cv_path_SED="$ac_path_SED"
  3357. ac_path_SED_max=$ac_count
  3358. fi
  3359. # 10*(2^10) chars as input seems more than enough
  3360. test $ac_count -gt 10 && break
  3361. done
  3362. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3363. esac
  3364. $ac_path_SED_found && break 3
  3365. done
  3366. done
  3367. done
  3368. IFS=$as_save_IFS
  3369. if test -z "$ac_cv_path_SED"; then
  3370. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3371. fi
  3372. else
  3373. ac_cv_path_SED=$SED
  3374. fi
  3375. fi
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3377. $as_echo "$ac_cv_path_SED" >&6; }
  3378. SED="$ac_cv_path_SED"
  3379. rm -f conftest.sed
  3380. test -z "$SED" && SED=sed
  3381. Xsed="$SED -e 1s/^X//"
  3382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3383. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3384. if ${ac_cv_path_GREP+:} false; then :
  3385. $as_echo_n "(cached) " >&6
  3386. else
  3387. if test -z "$GREP"; then
  3388. ac_path_GREP_found=false
  3389. # Loop through the user's path and test for each of PROGNAME-LIST
  3390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3391. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3392. do
  3393. IFS=$as_save_IFS
  3394. test -z "$as_dir" && as_dir=.
  3395. for ac_prog in grep ggrep; do
  3396. for ac_exec_ext in '' $ac_executable_extensions; do
  3397. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3398. as_fn_executable_p "$ac_path_GREP" || continue
  3399. # Check for GNU ac_path_GREP and select it if it is found.
  3400. # Check for GNU $ac_path_GREP
  3401. case `"$ac_path_GREP" --version 2>&1` in
  3402. *GNU*)
  3403. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3404. *)
  3405. ac_count=0
  3406. $as_echo_n 0123456789 >"conftest.in"
  3407. while :
  3408. do
  3409. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3410. mv "conftest.tmp" "conftest.in"
  3411. cp "conftest.in" "conftest.nl"
  3412. $as_echo 'GREP' >> "conftest.nl"
  3413. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3414. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3415. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3416. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3417. # Best one so far, save it but keep looking for a better one
  3418. ac_cv_path_GREP="$ac_path_GREP"
  3419. ac_path_GREP_max=$ac_count
  3420. fi
  3421. # 10*(2^10) chars as input seems more than enough
  3422. test $ac_count -gt 10 && break
  3423. done
  3424. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3425. esac
  3426. $ac_path_GREP_found && break 3
  3427. done
  3428. done
  3429. done
  3430. IFS=$as_save_IFS
  3431. if test -z "$ac_cv_path_GREP"; then
  3432. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3433. fi
  3434. else
  3435. ac_cv_path_GREP=$GREP
  3436. fi
  3437. fi
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3439. $as_echo "$ac_cv_path_GREP" >&6; }
  3440. GREP="$ac_cv_path_GREP"
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3442. $as_echo_n "checking for egrep... " >&6; }
  3443. if ${ac_cv_path_EGREP+:} false; then :
  3444. $as_echo_n "(cached) " >&6
  3445. else
  3446. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3447. then ac_cv_path_EGREP="$GREP -E"
  3448. else
  3449. if test -z "$EGREP"; then
  3450. ac_path_EGREP_found=false
  3451. # Loop through the user's path and test for each of PROGNAME-LIST
  3452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3453. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3454. do
  3455. IFS=$as_save_IFS
  3456. test -z "$as_dir" && as_dir=.
  3457. for ac_prog in egrep; do
  3458. for ac_exec_ext in '' $ac_executable_extensions; do
  3459. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3460. as_fn_executable_p "$ac_path_EGREP" || continue
  3461. # Check for GNU ac_path_EGREP and select it if it is found.
  3462. # Check for GNU $ac_path_EGREP
  3463. case `"$ac_path_EGREP" --version 2>&1` in
  3464. *GNU*)
  3465. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3466. *)
  3467. ac_count=0
  3468. $as_echo_n 0123456789 >"conftest.in"
  3469. while :
  3470. do
  3471. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3472. mv "conftest.tmp" "conftest.in"
  3473. cp "conftest.in" "conftest.nl"
  3474. $as_echo 'EGREP' >> "conftest.nl"
  3475. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3476. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3477. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3478. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3479. # Best one so far, save it but keep looking for a better one
  3480. ac_cv_path_EGREP="$ac_path_EGREP"
  3481. ac_path_EGREP_max=$ac_count
  3482. fi
  3483. # 10*(2^10) chars as input seems more than enough
  3484. test $ac_count -gt 10 && break
  3485. done
  3486. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3487. esac
  3488. $ac_path_EGREP_found && break 3
  3489. done
  3490. done
  3491. done
  3492. IFS=$as_save_IFS
  3493. if test -z "$ac_cv_path_EGREP"; then
  3494. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3495. fi
  3496. else
  3497. ac_cv_path_EGREP=$EGREP
  3498. fi
  3499. fi
  3500. fi
  3501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3502. $as_echo "$ac_cv_path_EGREP" >&6; }
  3503. EGREP="$ac_cv_path_EGREP"
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3505. $as_echo_n "checking for fgrep... " >&6; }
  3506. if ${ac_cv_path_FGREP+:} false; then :
  3507. $as_echo_n "(cached) " >&6
  3508. else
  3509. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3510. then ac_cv_path_FGREP="$GREP -F"
  3511. else
  3512. if test -z "$FGREP"; then
  3513. ac_path_FGREP_found=false
  3514. # Loop through the user's path and test for each of PROGNAME-LIST
  3515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3516. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3517. do
  3518. IFS=$as_save_IFS
  3519. test -z "$as_dir" && as_dir=.
  3520. for ac_prog in fgrep; do
  3521. for ac_exec_ext in '' $ac_executable_extensions; do
  3522. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3523. as_fn_executable_p "$ac_path_FGREP" || continue
  3524. # Check for GNU ac_path_FGREP and select it if it is found.
  3525. # Check for GNU $ac_path_FGREP
  3526. case `"$ac_path_FGREP" --version 2>&1` in
  3527. *GNU*)
  3528. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3529. *)
  3530. ac_count=0
  3531. $as_echo_n 0123456789 >"conftest.in"
  3532. while :
  3533. do
  3534. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3535. mv "conftest.tmp" "conftest.in"
  3536. cp "conftest.in" "conftest.nl"
  3537. $as_echo 'FGREP' >> "conftest.nl"
  3538. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3539. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3540. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3541. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3542. # Best one so far, save it but keep looking for a better one
  3543. ac_cv_path_FGREP="$ac_path_FGREP"
  3544. ac_path_FGREP_max=$ac_count
  3545. fi
  3546. # 10*(2^10) chars as input seems more than enough
  3547. test $ac_count -gt 10 && break
  3548. done
  3549. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3550. esac
  3551. $ac_path_FGREP_found && break 3
  3552. done
  3553. done
  3554. done
  3555. IFS=$as_save_IFS
  3556. if test -z "$ac_cv_path_FGREP"; then
  3557. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3558. fi
  3559. else
  3560. ac_cv_path_FGREP=$FGREP
  3561. fi
  3562. fi
  3563. fi
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3565. $as_echo "$ac_cv_path_FGREP" >&6; }
  3566. FGREP="$ac_cv_path_FGREP"
  3567. test -z "$GREP" && GREP=grep
  3568. # Check whether --with-gnu-ld was given.
  3569. if test "${with_gnu_ld+set}" = set; then :
  3570. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3571. else
  3572. with_gnu_ld=no
  3573. fi
  3574. ac_prog=ld
  3575. if test "$GCC" = yes; then
  3576. # Check if gcc -print-prog-name=ld gives a path.
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3578. $as_echo_n "checking for ld used by $CC... " >&6; }
  3579. case $host in
  3580. *-*-mingw*)
  3581. # gcc leaves a trailing carriage return which upsets mingw
  3582. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3583. *)
  3584. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3585. esac
  3586. case $ac_prog in
  3587. # Accept absolute paths.
  3588. [\\/]* | ?:[\\/]*)
  3589. re_direlt='/[^/][^/]*/\.\./'
  3590. # Canonicalize the pathname of ld
  3591. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3592. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3593. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3594. done
  3595. test -z "$LD" && LD="$ac_prog"
  3596. ;;
  3597. "")
  3598. # If it fails, then pretend we aren't using GCC.
  3599. ac_prog=ld
  3600. ;;
  3601. *)
  3602. # If it is relative, then search for the first ld in PATH.
  3603. with_gnu_ld=unknown
  3604. ;;
  3605. esac
  3606. elif test "$with_gnu_ld" = yes; then
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3608. $as_echo_n "checking for GNU ld... " >&6; }
  3609. else
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3611. $as_echo_n "checking for non-GNU ld... " >&6; }
  3612. fi
  3613. if ${lt_cv_path_LD+:} false; then :
  3614. $as_echo_n "(cached) " >&6
  3615. else
  3616. if test -z "$LD"; then
  3617. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3618. for ac_dir in $PATH; do
  3619. IFS="$lt_save_ifs"
  3620. test -z "$ac_dir" && ac_dir=.
  3621. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3622. lt_cv_path_LD="$ac_dir/$ac_prog"
  3623. # Check to see if the program is GNU ld. I'd rather use --version,
  3624. # but apparently some variants of GNU ld only accept -v.
  3625. # Break only if it was the GNU/non-GNU ld that we prefer.
  3626. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3627. *GNU* | *'with BFD'*)
  3628. test "$with_gnu_ld" != no && break
  3629. ;;
  3630. *)
  3631. test "$with_gnu_ld" != yes && break
  3632. ;;
  3633. esac
  3634. fi
  3635. done
  3636. IFS="$lt_save_ifs"
  3637. else
  3638. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3639. fi
  3640. fi
  3641. LD="$lt_cv_path_LD"
  3642. if test -n "$LD"; then
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3644. $as_echo "$LD" >&6; }
  3645. else
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3647. $as_echo "no" >&6; }
  3648. fi
  3649. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3651. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3652. if ${lt_cv_prog_gnu_ld+:} false; then :
  3653. $as_echo_n "(cached) " >&6
  3654. else
  3655. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3656. case `$LD -v 2>&1 </dev/null` in
  3657. *GNU* | *'with BFD'*)
  3658. lt_cv_prog_gnu_ld=yes
  3659. ;;
  3660. *)
  3661. lt_cv_prog_gnu_ld=no
  3662. ;;
  3663. esac
  3664. fi
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3666. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3667. with_gnu_ld=$lt_cv_prog_gnu_ld
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3669. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3670. if ${lt_cv_path_NM+:} false; then :
  3671. $as_echo_n "(cached) " >&6
  3672. else
  3673. if test -n "$NM"; then
  3674. # Let the user override the test.
  3675. lt_cv_path_NM="$NM"
  3676. else
  3677. lt_nm_to_check="${ac_tool_prefix}nm"
  3678. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3679. lt_nm_to_check="$lt_nm_to_check nm"
  3680. fi
  3681. for lt_tmp_nm in $lt_nm_to_check; do
  3682. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3683. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3684. IFS="$lt_save_ifs"
  3685. test -z "$ac_dir" && ac_dir=.
  3686. tmp_nm="$ac_dir/$lt_tmp_nm"
  3687. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3688. # Check to see if the nm accepts a BSD-compat flag.
  3689. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3690. # nm: unknown option "B" ignored
  3691. # Tru64's nm complains that /dev/null is an invalid object file
  3692. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3693. */dev/null* | *'Invalid file or object type'*)
  3694. lt_cv_path_NM="$tmp_nm -B"
  3695. break
  3696. ;;
  3697. *)
  3698. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3699. */dev/null*)
  3700. lt_cv_path_NM="$tmp_nm -p"
  3701. break
  3702. ;;
  3703. *)
  3704. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3705. continue # so that we can try to find one that supports BSD flags
  3706. ;;
  3707. esac
  3708. ;;
  3709. esac
  3710. fi
  3711. done
  3712. IFS="$lt_save_ifs"
  3713. done
  3714. : ${lt_cv_path_NM=no}
  3715. fi
  3716. fi
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3718. $as_echo "$lt_cv_path_NM" >&6; }
  3719. if test "$lt_cv_path_NM" != "no"; then
  3720. NM="$lt_cv_path_NM"
  3721. else
  3722. # Didn't find any BSD compatible name lister, look for dumpbin.
  3723. if test -n "$DUMPBIN"; then :
  3724. # Let the user override the test.
  3725. else
  3726. if test -n "$ac_tool_prefix"; then
  3727. for ac_prog in dumpbin "link -dump"
  3728. do
  3729. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3730. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3732. $as_echo_n "checking for $ac_word... " >&6; }
  3733. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3734. $as_echo_n "(cached) " >&6
  3735. else
  3736. if test -n "$DUMPBIN"; then
  3737. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3738. else
  3739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3740. for as_dir in $PATH
  3741. do
  3742. IFS=$as_save_IFS
  3743. test -z "$as_dir" && as_dir=.
  3744. for ac_exec_ext in '' $ac_executable_extensions; do
  3745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3746. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3748. break 2
  3749. fi
  3750. done
  3751. done
  3752. IFS=$as_save_IFS
  3753. fi
  3754. fi
  3755. DUMPBIN=$ac_cv_prog_DUMPBIN
  3756. if test -n "$DUMPBIN"; then
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3758. $as_echo "$DUMPBIN" >&6; }
  3759. else
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3761. $as_echo "no" >&6; }
  3762. fi
  3763. test -n "$DUMPBIN" && break
  3764. done
  3765. fi
  3766. if test -z "$DUMPBIN"; then
  3767. ac_ct_DUMPBIN=$DUMPBIN
  3768. for ac_prog in dumpbin "link -dump"
  3769. do
  3770. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3771. set dummy $ac_prog; ac_word=$2
  3772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3773. $as_echo_n "checking for $ac_word... " >&6; }
  3774. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3775. $as_echo_n "(cached) " >&6
  3776. else
  3777. if test -n "$ac_ct_DUMPBIN"; then
  3778. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3779. else
  3780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3781. for as_dir in $PATH
  3782. do
  3783. IFS=$as_save_IFS
  3784. test -z "$as_dir" && as_dir=.
  3785. for ac_exec_ext in '' $ac_executable_extensions; do
  3786. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3787. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3789. break 2
  3790. fi
  3791. done
  3792. done
  3793. IFS=$as_save_IFS
  3794. fi
  3795. fi
  3796. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3797. if test -n "$ac_ct_DUMPBIN"; then
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3799. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3800. else
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3802. $as_echo "no" >&6; }
  3803. fi
  3804. test -n "$ac_ct_DUMPBIN" && break
  3805. done
  3806. if test "x$ac_ct_DUMPBIN" = x; then
  3807. DUMPBIN=":"
  3808. else
  3809. case $cross_compiling:$ac_tool_warned in
  3810. yes:)
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3812. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3813. ac_tool_warned=yes ;;
  3814. esac
  3815. DUMPBIN=$ac_ct_DUMPBIN
  3816. fi
  3817. fi
  3818. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3819. *COFF*)
  3820. DUMPBIN="$DUMPBIN -symbols"
  3821. ;;
  3822. *)
  3823. DUMPBIN=:
  3824. ;;
  3825. esac
  3826. fi
  3827. if test "$DUMPBIN" != ":"; then
  3828. NM="$DUMPBIN"
  3829. fi
  3830. fi
  3831. test -z "$NM" && NM=nm
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3833. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3834. if ${lt_cv_nm_interface+:} false; then :
  3835. $as_echo_n "(cached) " >&6
  3836. else
  3837. lt_cv_nm_interface="BSD nm"
  3838. echo "int some_variable = 0;" > conftest.$ac_ext
  3839. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3840. (eval "$ac_compile" 2>conftest.err)
  3841. cat conftest.err >&5
  3842. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3843. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3844. cat conftest.err >&5
  3845. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3846. cat conftest.out >&5
  3847. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3848. lt_cv_nm_interface="MS dumpbin"
  3849. fi
  3850. rm -f conftest*
  3851. fi
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3853. $as_echo "$lt_cv_nm_interface" >&6; }
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3855. $as_echo_n "checking whether ln -s works... " >&6; }
  3856. LN_S=$as_ln_s
  3857. if test "$LN_S" = "ln -s"; then
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3859. $as_echo "yes" >&6; }
  3860. else
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3862. $as_echo "no, using $LN_S" >&6; }
  3863. fi
  3864. # find the maximum length of command line arguments
  3865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3866. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3867. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3868. $as_echo_n "(cached) " >&6
  3869. else
  3870. i=0
  3871. teststring="ABCD"
  3872. case $build_os in
  3873. msdosdjgpp*)
  3874. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3875. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3876. # during glob expansion). Even if it were fixed, the result of this
  3877. # check would be larger than it should be.
  3878. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3879. ;;
  3880. gnu*)
  3881. # Under GNU Hurd, this test is not required because there is
  3882. # no limit to the length of command line arguments.
  3883. # Libtool will interpret -1 as no limit whatsoever
  3884. lt_cv_sys_max_cmd_len=-1;
  3885. ;;
  3886. cygwin* | mingw* | cegcc*)
  3887. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3888. # about 5 minutes as the teststring grows exponentially.
  3889. # Worse, since 9x/ME are not pre-emptively multitasking,
  3890. # you end up with a "frozen" computer, even though with patience
  3891. # the test eventually succeeds (with a max line length of 256k).
  3892. # Instead, let's just punt: use the minimum linelength reported by
  3893. # all of the supported platforms: 8192 (on NT/2K/XP).
  3894. lt_cv_sys_max_cmd_len=8192;
  3895. ;;
  3896. mint*)
  3897. # On MiNT this can take a long time and run out of memory.
  3898. lt_cv_sys_max_cmd_len=8192;
  3899. ;;
  3900. amigaos*)
  3901. # On AmigaOS with pdksh, this test takes hours, literally.
  3902. # So we just punt and use a minimum line length of 8192.
  3903. lt_cv_sys_max_cmd_len=8192;
  3904. ;;
  3905. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3906. # This has been around since 386BSD, at least. Likely further.
  3907. if test -x /sbin/sysctl; then
  3908. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3909. elif test -x /usr/sbin/sysctl; then
  3910. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3911. else
  3912. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3913. fi
  3914. # And add a safety zone
  3915. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3916. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3917. ;;
  3918. interix*)
  3919. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3920. lt_cv_sys_max_cmd_len=196608
  3921. ;;
  3922. os2*)
  3923. # The test takes a long time on OS/2.
  3924. lt_cv_sys_max_cmd_len=8192
  3925. ;;
  3926. osf*)
  3927. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3928. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3929. # nice to cause kernel panics so lets avoid the loop below.
  3930. # First set a reasonable default.
  3931. lt_cv_sys_max_cmd_len=16384
  3932. #
  3933. if test -x /sbin/sysconfig; then
  3934. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3935. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3936. esac
  3937. fi
  3938. ;;
  3939. sco3.2v5*)
  3940. lt_cv_sys_max_cmd_len=102400
  3941. ;;
  3942. sysv5* | sco5v6* | sysv4.2uw2*)
  3943. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3944. if test -n "$kargmax"; then
  3945. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3946. else
  3947. lt_cv_sys_max_cmd_len=32768
  3948. fi
  3949. ;;
  3950. *)
  3951. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3952. if test -n "$lt_cv_sys_max_cmd_len"; then
  3953. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3954. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3955. else
  3956. # Make teststring a little bigger before we do anything with it.
  3957. # a 1K string should be a reasonable start.
  3958. for i in 1 2 3 4 5 6 7 8 ; do
  3959. teststring=$teststring$teststring
  3960. done
  3961. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3962. # If test is not a shell built-in, we'll probably end up computing a
  3963. # maximum length that is only half of the actual maximum length, but
  3964. # we can't tell.
  3965. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3966. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3967. test $i != 17 # 1/2 MB should be enough
  3968. do
  3969. i=`expr $i + 1`
  3970. teststring=$teststring$teststring
  3971. done
  3972. # Only check the string length outside the loop.
  3973. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3974. teststring=
  3975. # Add a significant safety factor because C++ compilers can tack on
  3976. # massive amounts of additional arguments before passing them to the
  3977. # linker. It appears as though 1/2 is a usable value.
  3978. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3979. fi
  3980. ;;
  3981. esac
  3982. fi
  3983. if test -n $lt_cv_sys_max_cmd_len ; then
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3985. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3986. else
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3988. $as_echo "none" >&6; }
  3989. fi
  3990. max_cmd_len=$lt_cv_sys_max_cmd_len
  3991. : ${CP="cp -f"}
  3992. : ${MV="mv -f"}
  3993. : ${RM="rm -f"}
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3995. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3996. # Try some XSI features
  3997. xsi_shell=no
  3998. ( _lt_dummy="a/b/c"
  3999. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4000. = c,a/b,b/c, \
  4001. && eval 'test $(( 1 + 1 )) -eq 2 \
  4002. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4003. && xsi_shell=yes
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4005. $as_echo "$xsi_shell" >&6; }
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4007. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4008. lt_shell_append=no
  4009. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4010. >/dev/null 2>&1 \
  4011. && lt_shell_append=yes
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4013. $as_echo "$lt_shell_append" >&6; }
  4014. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4015. lt_unset=unset
  4016. else
  4017. lt_unset=false
  4018. fi
  4019. # test EBCDIC or ASCII
  4020. case `echo X|tr X '\101'` in
  4021. A) # ASCII based system
  4022. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4023. lt_SP2NL='tr \040 \012'
  4024. lt_NL2SP='tr \015\012 \040\040'
  4025. ;;
  4026. *) # EBCDIC based system
  4027. lt_SP2NL='tr \100 \n'
  4028. lt_NL2SP='tr \r\n \100\100'
  4029. ;;
  4030. esac
  4031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4032. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4033. if ${lt_cv_to_host_file_cmd+:} false; then :
  4034. $as_echo_n "(cached) " >&6
  4035. else
  4036. case $host in
  4037. *-*-mingw* )
  4038. case $build in
  4039. *-*-mingw* ) # actually msys
  4040. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4041. ;;
  4042. *-*-cygwin* )
  4043. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4044. ;;
  4045. * ) # otherwise, assume *nix
  4046. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4047. ;;
  4048. esac
  4049. ;;
  4050. *-*-cygwin* )
  4051. case $build in
  4052. *-*-mingw* ) # actually msys
  4053. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4054. ;;
  4055. *-*-cygwin* )
  4056. lt_cv_to_host_file_cmd=func_convert_file_noop
  4057. ;;
  4058. * ) # otherwise, assume *nix
  4059. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4060. ;;
  4061. esac
  4062. ;;
  4063. * ) # unhandled hosts (and "normal" native builds)
  4064. lt_cv_to_host_file_cmd=func_convert_file_noop
  4065. ;;
  4066. esac
  4067. fi
  4068. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4070. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4072. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4073. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4074. $as_echo_n "(cached) " >&6
  4075. else
  4076. #assume ordinary cross tools, or native build.
  4077. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4078. case $host in
  4079. *-*-mingw* )
  4080. case $build in
  4081. *-*-mingw* ) # actually msys
  4082. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4083. ;;
  4084. esac
  4085. ;;
  4086. esac
  4087. fi
  4088. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4090. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4092. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4093. if ${lt_cv_ld_reload_flag+:} false; then :
  4094. $as_echo_n "(cached) " >&6
  4095. else
  4096. lt_cv_ld_reload_flag='-r'
  4097. fi
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4099. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4100. reload_flag=$lt_cv_ld_reload_flag
  4101. case $reload_flag in
  4102. "" | " "*) ;;
  4103. *) reload_flag=" $reload_flag" ;;
  4104. esac
  4105. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4106. case $host_os in
  4107. cygwin* | mingw* | pw32* | cegcc*)
  4108. if test "$GCC" != yes; then
  4109. reload_cmds=false
  4110. fi
  4111. ;;
  4112. darwin*)
  4113. if test "$GCC" = yes; then
  4114. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4115. else
  4116. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4117. fi
  4118. ;;
  4119. esac
  4120. if test -n "$ac_tool_prefix"; then
  4121. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4122. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4124. $as_echo_n "checking for $ac_word... " >&6; }
  4125. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4126. $as_echo_n "(cached) " >&6
  4127. else
  4128. if test -n "$OBJDUMP"; then
  4129. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4130. else
  4131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4132. for as_dir in $PATH
  4133. do
  4134. IFS=$as_save_IFS
  4135. test -z "$as_dir" && as_dir=.
  4136. for ac_exec_ext in '' $ac_executable_extensions; do
  4137. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4138. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4140. break 2
  4141. fi
  4142. done
  4143. done
  4144. IFS=$as_save_IFS
  4145. fi
  4146. fi
  4147. OBJDUMP=$ac_cv_prog_OBJDUMP
  4148. if test -n "$OBJDUMP"; then
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4150. $as_echo "$OBJDUMP" >&6; }
  4151. else
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4153. $as_echo "no" >&6; }
  4154. fi
  4155. fi
  4156. if test -z "$ac_cv_prog_OBJDUMP"; then
  4157. ac_ct_OBJDUMP=$OBJDUMP
  4158. # Extract the first word of "objdump", so it can be a program name with args.
  4159. set dummy objdump; ac_word=$2
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4161. $as_echo_n "checking for $ac_word... " >&6; }
  4162. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4163. $as_echo_n "(cached) " >&6
  4164. else
  4165. if test -n "$ac_ct_OBJDUMP"; then
  4166. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4167. else
  4168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4169. for as_dir in $PATH
  4170. do
  4171. IFS=$as_save_IFS
  4172. test -z "$as_dir" && as_dir=.
  4173. for ac_exec_ext in '' $ac_executable_extensions; do
  4174. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4175. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4177. break 2
  4178. fi
  4179. done
  4180. done
  4181. IFS=$as_save_IFS
  4182. fi
  4183. fi
  4184. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4185. if test -n "$ac_ct_OBJDUMP"; then
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4187. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4188. else
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4190. $as_echo "no" >&6; }
  4191. fi
  4192. if test "x$ac_ct_OBJDUMP" = x; then
  4193. OBJDUMP="false"
  4194. else
  4195. case $cross_compiling:$ac_tool_warned in
  4196. yes:)
  4197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4198. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4199. ac_tool_warned=yes ;;
  4200. esac
  4201. OBJDUMP=$ac_ct_OBJDUMP
  4202. fi
  4203. else
  4204. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4205. fi
  4206. test -z "$OBJDUMP" && OBJDUMP=objdump
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4208. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4209. if ${lt_cv_deplibs_check_method+:} false; then :
  4210. $as_echo_n "(cached) " >&6
  4211. else
  4212. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4213. lt_cv_file_magic_test_file=
  4214. lt_cv_deplibs_check_method='unknown'
  4215. # Need to set the preceding variable on all platforms that support
  4216. # interlibrary dependencies.
  4217. # 'none' -- dependencies not supported.
  4218. # `unknown' -- same as none, but documents that we really don't know.
  4219. # 'pass_all' -- all dependencies passed with no checks.
  4220. # 'test_compile' -- check by making test program.
  4221. # 'file_magic [[regex]]' -- check by looking for files in library path
  4222. # which responds to the $file_magic_cmd with a given extended regex.
  4223. # If you have `file' or equivalent on your system and you're not sure
  4224. # whether `pass_all' will *always* work, you probably want this one.
  4225. case $host_os in
  4226. aix[4-9]*)
  4227. lt_cv_deplibs_check_method=pass_all
  4228. ;;
  4229. beos*)
  4230. lt_cv_deplibs_check_method=pass_all
  4231. ;;
  4232. bsdi[45]*)
  4233. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4234. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4235. lt_cv_file_magic_test_file=/shlib/libc.so
  4236. ;;
  4237. cygwin*)
  4238. # func_win32_libid is a shell function defined in ltmain.sh
  4239. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4240. lt_cv_file_magic_cmd='func_win32_libid'
  4241. lt_cv_deplibs_check_method=pass_all
  4242. ;;
  4243. mingw* | pw32*)
  4244. # Base MSYS/MinGW do not provide the 'file' command needed by
  4245. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4246. # unless we find 'file', for example because we are cross-compiling.
  4247. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4248. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4249. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4250. lt_cv_file_magic_cmd='func_win32_libid'
  4251. else
  4252. # Keep this pattern in sync with the one in func_win32_libid.
  4253. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4254. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4255. fi
  4256. lt_cv_deplibs_check_method=pass_all
  4257. ;;
  4258. cegcc*)
  4259. # use the weaker test based on 'objdump'. See mingw*.
  4260. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4261. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4262. ;;
  4263. darwin* | rhapsody*)
  4264. lt_cv_deplibs_check_method=pass_all
  4265. ;;
  4266. freebsd* | dragonfly*)
  4267. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4268. case $host_cpu in
  4269. i*86 )
  4270. # Not sure whether the presence of OpenBSD here was a mistake.
  4271. # Let's accept both of them until this is cleared up.
  4272. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4273. lt_cv_file_magic_cmd=/usr/bin/file
  4274. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4275. ;;
  4276. esac
  4277. else
  4278. lt_cv_deplibs_check_method=pass_all
  4279. fi
  4280. ;;
  4281. gnu*)
  4282. lt_cv_deplibs_check_method=pass_all
  4283. ;;
  4284. haiku*)
  4285. lt_cv_deplibs_check_method=pass_all
  4286. ;;
  4287. hpux10.20* | hpux11*)
  4288. lt_cv_file_magic_cmd=/usr/bin/file
  4289. case $host_cpu in
  4290. ia64*)
  4291. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4292. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4293. ;;
  4294. hppa*64*)
  4295. 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]'
  4296. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4297. ;;
  4298. *)
  4299. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4300. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4301. ;;
  4302. esac
  4303. ;;
  4304. interix[3-9]*)
  4305. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4306. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4307. ;;
  4308. irix5* | irix6* | nonstopux*)
  4309. case $LD in
  4310. *-32|*"-32 ") libmagic=32-bit;;
  4311. *-n32|*"-n32 ") libmagic=N32;;
  4312. *-64|*"-64 ") libmagic=64-bit;;
  4313. *) libmagic=never-match;;
  4314. esac
  4315. lt_cv_deplibs_check_method=pass_all
  4316. ;;
  4317. # This must be glibc/ELF.
  4318. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4319. lt_cv_deplibs_check_method=pass_all
  4320. ;;
  4321. netbsd*)
  4322. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4323. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4324. else
  4325. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4326. fi
  4327. ;;
  4328. newos6*)
  4329. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4330. lt_cv_file_magic_cmd=/usr/bin/file
  4331. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4332. ;;
  4333. *nto* | *qnx*)
  4334. lt_cv_deplibs_check_method=pass_all
  4335. ;;
  4336. openbsd*)
  4337. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4338. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4339. else
  4340. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4341. fi
  4342. ;;
  4343. osf3* | osf4* | osf5*)
  4344. lt_cv_deplibs_check_method=pass_all
  4345. ;;
  4346. rdos*)
  4347. lt_cv_deplibs_check_method=pass_all
  4348. ;;
  4349. solaris*)
  4350. lt_cv_deplibs_check_method=pass_all
  4351. ;;
  4352. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4353. lt_cv_deplibs_check_method=pass_all
  4354. ;;
  4355. sysv4 | sysv4.3*)
  4356. case $host_vendor in
  4357. motorola)
  4358. 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]'
  4359. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4360. ;;
  4361. ncr)
  4362. lt_cv_deplibs_check_method=pass_all
  4363. ;;
  4364. sequent)
  4365. lt_cv_file_magic_cmd='/bin/file'
  4366. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4367. ;;
  4368. sni)
  4369. lt_cv_file_magic_cmd='/bin/file'
  4370. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4371. lt_cv_file_magic_test_file=/lib/libc.so
  4372. ;;
  4373. siemens)
  4374. lt_cv_deplibs_check_method=pass_all
  4375. ;;
  4376. pc)
  4377. lt_cv_deplibs_check_method=pass_all
  4378. ;;
  4379. esac
  4380. ;;
  4381. tpf*)
  4382. lt_cv_deplibs_check_method=pass_all
  4383. ;;
  4384. esac
  4385. fi
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4387. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4388. file_magic_glob=
  4389. want_nocaseglob=no
  4390. if test "$build" = "$host"; then
  4391. case $host_os in
  4392. mingw* | pw32*)
  4393. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4394. want_nocaseglob=yes
  4395. else
  4396. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4397. fi
  4398. ;;
  4399. esac
  4400. fi
  4401. file_magic_cmd=$lt_cv_file_magic_cmd
  4402. deplibs_check_method=$lt_cv_deplibs_check_method
  4403. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4404. if test -n "$ac_tool_prefix"; then
  4405. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4406. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4408. $as_echo_n "checking for $ac_word... " >&6; }
  4409. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4410. $as_echo_n "(cached) " >&6
  4411. else
  4412. if test -n "$DLLTOOL"; then
  4413. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4414. else
  4415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4416. for as_dir in $PATH
  4417. do
  4418. IFS=$as_save_IFS
  4419. test -z "$as_dir" && as_dir=.
  4420. for ac_exec_ext in '' $ac_executable_extensions; do
  4421. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4422. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4423. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4424. break 2
  4425. fi
  4426. done
  4427. done
  4428. IFS=$as_save_IFS
  4429. fi
  4430. fi
  4431. DLLTOOL=$ac_cv_prog_DLLTOOL
  4432. if test -n "$DLLTOOL"; then
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4434. $as_echo "$DLLTOOL" >&6; }
  4435. else
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4437. $as_echo "no" >&6; }
  4438. fi
  4439. fi
  4440. if test -z "$ac_cv_prog_DLLTOOL"; then
  4441. ac_ct_DLLTOOL=$DLLTOOL
  4442. # Extract the first word of "dlltool", so it can be a program name with args.
  4443. set dummy dlltool; ac_word=$2
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4445. $as_echo_n "checking for $ac_word... " >&6; }
  4446. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4447. $as_echo_n "(cached) " >&6
  4448. else
  4449. if test -n "$ac_ct_DLLTOOL"; then
  4450. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4451. else
  4452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4453. for as_dir in $PATH
  4454. do
  4455. IFS=$as_save_IFS
  4456. test -z "$as_dir" && as_dir=.
  4457. for ac_exec_ext in '' $ac_executable_extensions; do
  4458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4459. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4461. break 2
  4462. fi
  4463. done
  4464. done
  4465. IFS=$as_save_IFS
  4466. fi
  4467. fi
  4468. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4469. if test -n "$ac_ct_DLLTOOL"; then
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4471. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4472. else
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4474. $as_echo "no" >&6; }
  4475. fi
  4476. if test "x$ac_ct_DLLTOOL" = x; then
  4477. DLLTOOL="false"
  4478. else
  4479. case $cross_compiling:$ac_tool_warned in
  4480. yes:)
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4482. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4483. ac_tool_warned=yes ;;
  4484. esac
  4485. DLLTOOL=$ac_ct_DLLTOOL
  4486. fi
  4487. else
  4488. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4489. fi
  4490. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4492. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4493. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4494. $as_echo_n "(cached) " >&6
  4495. else
  4496. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4497. case $host_os in
  4498. cygwin* | mingw* | pw32* | cegcc*)
  4499. # two different shell functions defined in ltmain.sh
  4500. # decide which to use based on capabilities of $DLLTOOL
  4501. case `$DLLTOOL --help 2>&1` in
  4502. *--identify-strict*)
  4503. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4504. ;;
  4505. *)
  4506. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4507. ;;
  4508. esac
  4509. ;;
  4510. *)
  4511. # fallback: assume linklib IS sharedlib
  4512. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4513. ;;
  4514. esac
  4515. fi
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4517. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4518. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4519. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4520. if test -n "$ac_tool_prefix"; then
  4521. for ac_prog in ar
  4522. do
  4523. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4524. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4526. $as_echo_n "checking for $ac_word... " >&6; }
  4527. if ${ac_cv_prog_AR+:} false; then :
  4528. $as_echo_n "(cached) " >&6
  4529. else
  4530. if test -n "$AR"; then
  4531. ac_cv_prog_AR="$AR" # Let the user override the test.
  4532. else
  4533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4534. for as_dir in $PATH
  4535. do
  4536. IFS=$as_save_IFS
  4537. test -z "$as_dir" && as_dir=.
  4538. for ac_exec_ext in '' $ac_executable_extensions; do
  4539. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4540. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4542. break 2
  4543. fi
  4544. done
  4545. done
  4546. IFS=$as_save_IFS
  4547. fi
  4548. fi
  4549. AR=$ac_cv_prog_AR
  4550. if test -n "$AR"; then
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4552. $as_echo "$AR" >&6; }
  4553. else
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4555. $as_echo "no" >&6; }
  4556. fi
  4557. test -n "$AR" && break
  4558. done
  4559. fi
  4560. if test -z "$AR"; then
  4561. ac_ct_AR=$AR
  4562. for ac_prog in ar
  4563. do
  4564. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4565. set dummy $ac_prog; ac_word=$2
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4567. $as_echo_n "checking for $ac_word... " >&6; }
  4568. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4569. $as_echo_n "(cached) " >&6
  4570. else
  4571. if test -n "$ac_ct_AR"; then
  4572. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4573. else
  4574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4575. for as_dir in $PATH
  4576. do
  4577. IFS=$as_save_IFS
  4578. test -z "$as_dir" && as_dir=.
  4579. for ac_exec_ext in '' $ac_executable_extensions; do
  4580. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4581. ac_cv_prog_ac_ct_AR="$ac_prog"
  4582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4583. break 2
  4584. fi
  4585. done
  4586. done
  4587. IFS=$as_save_IFS
  4588. fi
  4589. fi
  4590. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4591. if test -n "$ac_ct_AR"; then
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4593. $as_echo "$ac_ct_AR" >&6; }
  4594. else
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4596. $as_echo "no" >&6; }
  4597. fi
  4598. test -n "$ac_ct_AR" && break
  4599. done
  4600. if test "x$ac_ct_AR" = x; then
  4601. AR="false"
  4602. else
  4603. case $cross_compiling:$ac_tool_warned in
  4604. yes:)
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4606. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4607. ac_tool_warned=yes ;;
  4608. esac
  4609. AR=$ac_ct_AR
  4610. fi
  4611. fi
  4612. : ${AR=ar}
  4613. : ${AR_FLAGS=cru}
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4615. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4616. if ${lt_cv_ar_at_file+:} false; then :
  4617. $as_echo_n "(cached) " >&6
  4618. else
  4619. lt_cv_ar_at_file=no
  4620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4621. /* end confdefs.h. */
  4622. int
  4623. main ()
  4624. {
  4625. ;
  4626. return 0;
  4627. }
  4628. _ACEOF
  4629. if ac_fn_c_try_compile "$LINENO"; then :
  4630. echo conftest.$ac_objext > conftest.lst
  4631. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4632. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4633. (eval $lt_ar_try) 2>&5
  4634. ac_status=$?
  4635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4636. test $ac_status = 0; }
  4637. if test "$ac_status" -eq 0; then
  4638. # Ensure the archiver fails upon bogus file names.
  4639. rm -f conftest.$ac_objext libconftest.a
  4640. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4641. (eval $lt_ar_try) 2>&5
  4642. ac_status=$?
  4643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4644. test $ac_status = 0; }
  4645. if test "$ac_status" -ne 0; then
  4646. lt_cv_ar_at_file=@
  4647. fi
  4648. fi
  4649. rm -f conftest.* libconftest.a
  4650. fi
  4651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4652. fi
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4654. $as_echo "$lt_cv_ar_at_file" >&6; }
  4655. if test "x$lt_cv_ar_at_file" = xno; then
  4656. archiver_list_spec=
  4657. else
  4658. archiver_list_spec=$lt_cv_ar_at_file
  4659. fi
  4660. if test -n "$ac_tool_prefix"; then
  4661. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4662. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4664. $as_echo_n "checking for $ac_word... " >&6; }
  4665. if ${ac_cv_prog_STRIP+:} false; then :
  4666. $as_echo_n "(cached) " >&6
  4667. else
  4668. if test -n "$STRIP"; then
  4669. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4670. else
  4671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4672. for as_dir in $PATH
  4673. do
  4674. IFS=$as_save_IFS
  4675. test -z "$as_dir" && as_dir=.
  4676. for ac_exec_ext in '' $ac_executable_extensions; do
  4677. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4678. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4680. break 2
  4681. fi
  4682. done
  4683. done
  4684. IFS=$as_save_IFS
  4685. fi
  4686. fi
  4687. STRIP=$ac_cv_prog_STRIP
  4688. if test -n "$STRIP"; then
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4690. $as_echo "$STRIP" >&6; }
  4691. else
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4693. $as_echo "no" >&6; }
  4694. fi
  4695. fi
  4696. if test -z "$ac_cv_prog_STRIP"; then
  4697. ac_ct_STRIP=$STRIP
  4698. # Extract the first word of "strip", so it can be a program name with args.
  4699. set dummy strip; ac_word=$2
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4701. $as_echo_n "checking for $ac_word... " >&6; }
  4702. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4703. $as_echo_n "(cached) " >&6
  4704. else
  4705. if test -n "$ac_ct_STRIP"; then
  4706. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4707. else
  4708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4709. for as_dir in $PATH
  4710. do
  4711. IFS=$as_save_IFS
  4712. test -z "$as_dir" && as_dir=.
  4713. for ac_exec_ext in '' $ac_executable_extensions; do
  4714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4715. ac_cv_prog_ac_ct_STRIP="strip"
  4716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4717. break 2
  4718. fi
  4719. done
  4720. done
  4721. IFS=$as_save_IFS
  4722. fi
  4723. fi
  4724. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4725. if test -n "$ac_ct_STRIP"; then
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4727. $as_echo "$ac_ct_STRIP" >&6; }
  4728. else
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4730. $as_echo "no" >&6; }
  4731. fi
  4732. if test "x$ac_ct_STRIP" = x; then
  4733. STRIP=":"
  4734. else
  4735. case $cross_compiling:$ac_tool_warned in
  4736. yes:)
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4738. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4739. ac_tool_warned=yes ;;
  4740. esac
  4741. STRIP=$ac_ct_STRIP
  4742. fi
  4743. else
  4744. STRIP="$ac_cv_prog_STRIP"
  4745. fi
  4746. test -z "$STRIP" && STRIP=:
  4747. if test -n "$ac_tool_prefix"; then
  4748. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4749. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4751. $as_echo_n "checking for $ac_word... " >&6; }
  4752. if ${ac_cv_prog_RANLIB+:} false; then :
  4753. $as_echo_n "(cached) " >&6
  4754. else
  4755. if test -n "$RANLIB"; then
  4756. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4757. else
  4758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4759. for as_dir in $PATH
  4760. do
  4761. IFS=$as_save_IFS
  4762. test -z "$as_dir" && as_dir=.
  4763. for ac_exec_ext in '' $ac_executable_extensions; do
  4764. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4765. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4767. break 2
  4768. fi
  4769. done
  4770. done
  4771. IFS=$as_save_IFS
  4772. fi
  4773. fi
  4774. RANLIB=$ac_cv_prog_RANLIB
  4775. if test -n "$RANLIB"; then
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4777. $as_echo "$RANLIB" >&6; }
  4778. else
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4780. $as_echo "no" >&6; }
  4781. fi
  4782. fi
  4783. if test -z "$ac_cv_prog_RANLIB"; then
  4784. ac_ct_RANLIB=$RANLIB
  4785. # Extract the first word of "ranlib", so it can be a program name with args.
  4786. set dummy ranlib; ac_word=$2
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4788. $as_echo_n "checking for $ac_word... " >&6; }
  4789. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4790. $as_echo_n "(cached) " >&6
  4791. else
  4792. if test -n "$ac_ct_RANLIB"; then
  4793. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4794. else
  4795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4796. for as_dir in $PATH
  4797. do
  4798. IFS=$as_save_IFS
  4799. test -z "$as_dir" && as_dir=.
  4800. for ac_exec_ext in '' $ac_executable_extensions; do
  4801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4802. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4804. break 2
  4805. fi
  4806. done
  4807. done
  4808. IFS=$as_save_IFS
  4809. fi
  4810. fi
  4811. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4812. if test -n "$ac_ct_RANLIB"; then
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4814. $as_echo "$ac_ct_RANLIB" >&6; }
  4815. else
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4817. $as_echo "no" >&6; }
  4818. fi
  4819. if test "x$ac_ct_RANLIB" = x; then
  4820. RANLIB=":"
  4821. else
  4822. case $cross_compiling:$ac_tool_warned in
  4823. yes:)
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4825. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4826. ac_tool_warned=yes ;;
  4827. esac
  4828. RANLIB=$ac_ct_RANLIB
  4829. fi
  4830. else
  4831. RANLIB="$ac_cv_prog_RANLIB"
  4832. fi
  4833. test -z "$RANLIB" && RANLIB=:
  4834. # Determine commands to create old-style static archives.
  4835. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4836. old_postinstall_cmds='chmod 644 $oldlib'
  4837. old_postuninstall_cmds=
  4838. if test -n "$RANLIB"; then
  4839. case $host_os in
  4840. openbsd*)
  4841. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4842. ;;
  4843. *)
  4844. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4845. ;;
  4846. esac
  4847. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4848. fi
  4849. case $host_os in
  4850. darwin*)
  4851. lock_old_archive_extraction=yes ;;
  4852. *)
  4853. lock_old_archive_extraction=no ;;
  4854. esac
  4855. for ac_prog in gawk mawk nawk awk
  4856. do
  4857. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4858. set dummy $ac_prog; ac_word=$2
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4860. $as_echo_n "checking for $ac_word... " >&6; }
  4861. if ${ac_cv_prog_AWK+:} false; then :
  4862. $as_echo_n "(cached) " >&6
  4863. else
  4864. if test -n "$AWK"; then
  4865. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4866. else
  4867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4868. for as_dir in $PATH
  4869. do
  4870. IFS=$as_save_IFS
  4871. test -z "$as_dir" && as_dir=.
  4872. for ac_exec_ext in '' $ac_executable_extensions; do
  4873. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4874. ac_cv_prog_AWK="$ac_prog"
  4875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4876. break 2
  4877. fi
  4878. done
  4879. done
  4880. IFS=$as_save_IFS
  4881. fi
  4882. fi
  4883. AWK=$ac_cv_prog_AWK
  4884. if test -n "$AWK"; then
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4886. $as_echo "$AWK" >&6; }
  4887. else
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4889. $as_echo "no" >&6; }
  4890. fi
  4891. test -n "$AWK" && break
  4892. done
  4893. # If no C compiler was specified, use CC.
  4894. LTCC=${LTCC-"$CC"}
  4895. # If no C compiler flags were specified, use CFLAGS.
  4896. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4897. # Allow CC to be a program name with arguments.
  4898. compiler=$CC
  4899. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4901. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4902. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4903. $as_echo_n "(cached) " >&6
  4904. else
  4905. # These are sane defaults that work on at least a few old systems.
  4906. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4907. # Character class describing NM global symbol codes.
  4908. symcode='[BCDEGRST]'
  4909. # Regexp to match symbols that can be accessed directly from C.
  4910. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4911. # Define system-specific variables.
  4912. case $host_os in
  4913. aix*)
  4914. symcode='[BCDT]'
  4915. ;;
  4916. cygwin* | mingw* | pw32* | cegcc*)
  4917. symcode='[ABCDGISTW]'
  4918. ;;
  4919. hpux*)
  4920. if test "$host_cpu" = ia64; then
  4921. symcode='[ABCDEGRST]'
  4922. fi
  4923. ;;
  4924. irix* | nonstopux*)
  4925. symcode='[BCDEGRST]'
  4926. ;;
  4927. osf*)
  4928. symcode='[BCDEGQRST]'
  4929. ;;
  4930. solaris*)
  4931. symcode='[BDRT]'
  4932. ;;
  4933. sco3.2v5*)
  4934. symcode='[DT]'
  4935. ;;
  4936. sysv4.2uw2*)
  4937. symcode='[DT]'
  4938. ;;
  4939. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4940. symcode='[ABDT]'
  4941. ;;
  4942. sysv4)
  4943. symcode='[DFNSTU]'
  4944. ;;
  4945. esac
  4946. # If we're using GNU nm, then use its standard symbol codes.
  4947. case `$NM -V 2>&1` in
  4948. *GNU* | *'with BFD'*)
  4949. symcode='[ABCDGIRSTW]' ;;
  4950. esac
  4951. # Transform an extracted symbol line into a proper C declaration.
  4952. # Some systems (esp. on ia64) link data and code symbols differently,
  4953. # so use this general approach.
  4954. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4955. # Transform an extracted symbol line into symbol name and symbol address
  4956. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4957. 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'"
  4958. # Handle CRLF in mingw tool chain
  4959. opt_cr=
  4960. case $build_os in
  4961. mingw*)
  4962. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4963. ;;
  4964. esac
  4965. # Try without a prefix underscore, then with it.
  4966. for ac_symprfx in "" "_"; do
  4967. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4968. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4969. # Write the raw and C identifiers.
  4970. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4971. # Fake it for dumpbin and say T for any non-static function
  4972. # and D for any global variable.
  4973. # Also find C++ and __fastcall symbols from MSVC++,
  4974. # which start with @ or ?.
  4975. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4976. " {last_section=section; section=\$ 3};"\
  4977. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4978. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4979. " \$ 0!~/External *\|/{next};"\
  4980. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4981. " {if(hide[section]) next};"\
  4982. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4983. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4984. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4985. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4986. " ' prfx=^$ac_symprfx"
  4987. else
  4988. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4989. fi
  4990. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4991. # Check to see that the pipe works correctly.
  4992. pipe_works=no
  4993. rm -f conftest*
  4994. cat > conftest.$ac_ext <<_LT_EOF
  4995. #ifdef __cplusplus
  4996. extern "C" {
  4997. #endif
  4998. char nm_test_var;
  4999. void nm_test_func(void);
  5000. void nm_test_func(void){}
  5001. #ifdef __cplusplus
  5002. }
  5003. #endif
  5004. int main(){nm_test_var='a';nm_test_func();return(0);}
  5005. _LT_EOF
  5006. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5007. (eval $ac_compile) 2>&5
  5008. ac_status=$?
  5009. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5010. test $ac_status = 0; }; then
  5011. # Now try to grab the symbols.
  5012. nlist=conftest.nm
  5013. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5014. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5015. ac_status=$?
  5016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5017. test $ac_status = 0; } && test -s "$nlist"; then
  5018. # Try sorting and uniquifying the output.
  5019. if sort "$nlist" | uniq > "$nlist"T; then
  5020. mv -f "$nlist"T "$nlist"
  5021. else
  5022. rm -f "$nlist"T
  5023. fi
  5024. # Make sure that we snagged all the symbols we need.
  5025. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5026. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5027. cat <<_LT_EOF > conftest.$ac_ext
  5028. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5029. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5030. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5031. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5032. # define LT_DLSYM_CONST
  5033. #elif defined(__osf__)
  5034. /* This system does not cope well with relocations in const data. */
  5035. # define LT_DLSYM_CONST
  5036. #else
  5037. # define LT_DLSYM_CONST const
  5038. #endif
  5039. #ifdef __cplusplus
  5040. extern "C" {
  5041. #endif
  5042. _LT_EOF
  5043. # Now generate the symbol file.
  5044. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5045. cat <<_LT_EOF >> conftest.$ac_ext
  5046. /* The mapping between symbol names and symbols. */
  5047. LT_DLSYM_CONST struct {
  5048. const char *name;
  5049. void *address;
  5050. }
  5051. lt__PROGRAM__LTX_preloaded_symbols[] =
  5052. {
  5053. { "@PROGRAM@", (void *) 0 },
  5054. _LT_EOF
  5055. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5056. cat <<\_LT_EOF >> conftest.$ac_ext
  5057. {0, (void *) 0}
  5058. };
  5059. /* This works around a problem in FreeBSD linker */
  5060. #ifdef FREEBSD_WORKAROUND
  5061. static const void *lt_preloaded_setup() {
  5062. return lt__PROGRAM__LTX_preloaded_symbols;
  5063. }
  5064. #endif
  5065. #ifdef __cplusplus
  5066. }
  5067. #endif
  5068. _LT_EOF
  5069. # Now try linking the two files.
  5070. mv conftest.$ac_objext conftstm.$ac_objext
  5071. lt_globsym_save_LIBS=$LIBS
  5072. lt_globsym_save_CFLAGS=$CFLAGS
  5073. LIBS="conftstm.$ac_objext"
  5074. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5075. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5076. (eval $ac_link) 2>&5
  5077. ac_status=$?
  5078. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5079. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5080. pipe_works=yes
  5081. fi
  5082. LIBS=$lt_globsym_save_LIBS
  5083. CFLAGS=$lt_globsym_save_CFLAGS
  5084. else
  5085. echo "cannot find nm_test_func in $nlist" >&5
  5086. fi
  5087. else
  5088. echo "cannot find nm_test_var in $nlist" >&5
  5089. fi
  5090. else
  5091. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5092. fi
  5093. else
  5094. echo "$progname: failed program was:" >&5
  5095. cat conftest.$ac_ext >&5
  5096. fi
  5097. rm -rf conftest* conftst*
  5098. # Do not use the global_symbol_pipe unless it works.
  5099. if test "$pipe_works" = yes; then
  5100. break
  5101. else
  5102. lt_cv_sys_global_symbol_pipe=
  5103. fi
  5104. done
  5105. fi
  5106. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5107. lt_cv_sys_global_symbol_to_cdecl=
  5108. fi
  5109. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5111. $as_echo "failed" >&6; }
  5112. else
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5114. $as_echo "ok" >&6; }
  5115. fi
  5116. # Response file support.
  5117. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5118. nm_file_list_spec='@'
  5119. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5120. nm_file_list_spec='@'
  5121. fi
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5123. $as_echo_n "checking for sysroot... " >&6; }
  5124. # Check whether --with-sysroot was given.
  5125. if test "${with_sysroot+set}" = set; then :
  5126. withval=$with_sysroot;
  5127. else
  5128. with_sysroot=no
  5129. fi
  5130. lt_sysroot=
  5131. case ${with_sysroot} in #(
  5132. yes)
  5133. if test "$GCC" = yes; then
  5134. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5135. fi
  5136. ;; #(
  5137. /*)
  5138. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5139. ;; #(
  5140. no|'')
  5141. ;; #(
  5142. *)
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5144. $as_echo "${with_sysroot}" >&6; }
  5145. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5146. ;;
  5147. esac
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5149. $as_echo "${lt_sysroot:-no}" >&6; }
  5150. # Check whether --enable-libtool-lock was given.
  5151. if test "${enable_libtool_lock+set}" = set; then :
  5152. enableval=$enable_libtool_lock;
  5153. fi
  5154. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5155. # Some flags need to be propagated to the compiler or linker for good
  5156. # libtool support.
  5157. case $host in
  5158. ia64-*-hpux*)
  5159. # Find out which ABI we are using.
  5160. echo 'int i;' > conftest.$ac_ext
  5161. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5162. (eval $ac_compile) 2>&5
  5163. ac_status=$?
  5164. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5165. test $ac_status = 0; }; then
  5166. case `/usr/bin/file conftest.$ac_objext` in
  5167. *ELF-32*)
  5168. HPUX_IA64_MODE="32"
  5169. ;;
  5170. *ELF-64*)
  5171. HPUX_IA64_MODE="64"
  5172. ;;
  5173. esac
  5174. fi
  5175. rm -rf conftest*
  5176. ;;
  5177. *-*-irix6*)
  5178. # Find out which ABI we are using.
  5179. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5180. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5181. (eval $ac_compile) 2>&5
  5182. ac_status=$?
  5183. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5184. test $ac_status = 0; }; then
  5185. if test "$lt_cv_prog_gnu_ld" = yes; then
  5186. case `/usr/bin/file conftest.$ac_objext` in
  5187. *32-bit*)
  5188. LD="${LD-ld} -melf32bsmip"
  5189. ;;
  5190. *N32*)
  5191. LD="${LD-ld} -melf32bmipn32"
  5192. ;;
  5193. *64-bit*)
  5194. LD="${LD-ld} -melf64bmip"
  5195. ;;
  5196. esac
  5197. else
  5198. case `/usr/bin/file conftest.$ac_objext` in
  5199. *32-bit*)
  5200. LD="${LD-ld} -32"
  5201. ;;
  5202. *N32*)
  5203. LD="${LD-ld} -n32"
  5204. ;;
  5205. *64-bit*)
  5206. LD="${LD-ld} -64"
  5207. ;;
  5208. esac
  5209. fi
  5210. fi
  5211. rm -rf conftest*
  5212. ;;
  5213. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5214. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5215. # Find out which ABI we are using.
  5216. echo 'int i;' > conftest.$ac_ext
  5217. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5218. (eval $ac_compile) 2>&5
  5219. ac_status=$?
  5220. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5221. test $ac_status = 0; }; then
  5222. case `/usr/bin/file conftest.o` in
  5223. *32-bit*)
  5224. case $host in
  5225. x86_64-*kfreebsd*-gnu)
  5226. LD="${LD-ld} -m elf_i386_fbsd"
  5227. ;;
  5228. x86_64-*linux*)
  5229. LD="${LD-ld} -m elf_i386"
  5230. ;;
  5231. ppc64-*linux*|powerpc64-*linux*)
  5232. LD="${LD-ld} -m elf32ppclinux"
  5233. ;;
  5234. s390x-*linux*)
  5235. LD="${LD-ld} -m elf_s390"
  5236. ;;
  5237. sparc64-*linux*)
  5238. LD="${LD-ld} -m elf32_sparc"
  5239. ;;
  5240. esac
  5241. ;;
  5242. *64-bit*)
  5243. case $host in
  5244. x86_64-*kfreebsd*-gnu)
  5245. LD="${LD-ld} -m elf_x86_64_fbsd"
  5246. ;;
  5247. x86_64-*linux*)
  5248. LD="${LD-ld} -m elf_x86_64"
  5249. ;;
  5250. ppc*-*linux*|powerpc*-*linux*)
  5251. LD="${LD-ld} -m elf64ppc"
  5252. ;;
  5253. s390*-*linux*|s390*-*tpf*)
  5254. LD="${LD-ld} -m elf64_s390"
  5255. ;;
  5256. sparc*-*linux*)
  5257. LD="${LD-ld} -m elf64_sparc"
  5258. ;;
  5259. esac
  5260. ;;
  5261. esac
  5262. fi
  5263. rm -rf conftest*
  5264. ;;
  5265. *-*-sco3.2v5*)
  5266. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5267. SAVE_CFLAGS="$CFLAGS"
  5268. CFLAGS="$CFLAGS -belf"
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5270. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5271. if ${lt_cv_cc_needs_belf+:} false; then :
  5272. $as_echo_n "(cached) " >&6
  5273. else
  5274. ac_ext=c
  5275. ac_cpp='$CPP $CPPFLAGS'
  5276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5280. /* end confdefs.h. */
  5281. int
  5282. main ()
  5283. {
  5284. ;
  5285. return 0;
  5286. }
  5287. _ACEOF
  5288. if ac_fn_c_try_link "$LINENO"; then :
  5289. lt_cv_cc_needs_belf=yes
  5290. else
  5291. lt_cv_cc_needs_belf=no
  5292. fi
  5293. rm -f core conftest.err conftest.$ac_objext \
  5294. conftest$ac_exeext conftest.$ac_ext
  5295. ac_ext=c
  5296. ac_cpp='$CPP $CPPFLAGS'
  5297. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5298. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5299. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5300. fi
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5302. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5303. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5304. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5305. CFLAGS="$SAVE_CFLAGS"
  5306. fi
  5307. ;;
  5308. *-*solaris*)
  5309. # Find out which ABI we are using.
  5310. echo 'int i;' > conftest.$ac_ext
  5311. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5312. (eval $ac_compile) 2>&5
  5313. ac_status=$?
  5314. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5315. test $ac_status = 0; }; then
  5316. case `/usr/bin/file conftest.o` in
  5317. *64-bit*)
  5318. case $lt_cv_prog_gnu_ld in
  5319. yes*)
  5320. case $host in
  5321. i?86-*-solaris*)
  5322. LD="${LD-ld} -m elf_x86_64"
  5323. ;;
  5324. sparc*-*-solaris*)
  5325. LD="${LD-ld} -m elf64_sparc"
  5326. ;;
  5327. esac
  5328. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5329. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5330. LD="${LD-ld}_sol2"
  5331. fi
  5332. ;;
  5333. *)
  5334. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5335. LD="${LD-ld} -64"
  5336. fi
  5337. ;;
  5338. esac
  5339. ;;
  5340. esac
  5341. fi
  5342. rm -rf conftest*
  5343. ;;
  5344. esac
  5345. need_locks="$enable_libtool_lock"
  5346. if test -n "$ac_tool_prefix"; then
  5347. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5348. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5350. $as_echo_n "checking for $ac_word... " >&6; }
  5351. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5352. $as_echo_n "(cached) " >&6
  5353. else
  5354. if test -n "$MANIFEST_TOOL"; then
  5355. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5356. else
  5357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5358. for as_dir in $PATH
  5359. do
  5360. IFS=$as_save_IFS
  5361. test -z "$as_dir" && as_dir=.
  5362. for ac_exec_ext in '' $ac_executable_extensions; do
  5363. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5364. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5366. break 2
  5367. fi
  5368. done
  5369. done
  5370. IFS=$as_save_IFS
  5371. fi
  5372. fi
  5373. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5374. if test -n "$MANIFEST_TOOL"; then
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5376. $as_echo "$MANIFEST_TOOL" >&6; }
  5377. else
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5379. $as_echo "no" >&6; }
  5380. fi
  5381. fi
  5382. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5383. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5384. # Extract the first word of "mt", so it can be a program name with args.
  5385. set dummy mt; ac_word=$2
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5387. $as_echo_n "checking for $ac_word... " >&6; }
  5388. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5389. $as_echo_n "(cached) " >&6
  5390. else
  5391. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5392. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5393. else
  5394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5395. for as_dir in $PATH
  5396. do
  5397. IFS=$as_save_IFS
  5398. test -z "$as_dir" && as_dir=.
  5399. for ac_exec_ext in '' $ac_executable_extensions; do
  5400. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5401. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5403. break 2
  5404. fi
  5405. done
  5406. done
  5407. IFS=$as_save_IFS
  5408. fi
  5409. fi
  5410. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5411. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5413. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5414. else
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5416. $as_echo "no" >&6; }
  5417. fi
  5418. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5419. MANIFEST_TOOL=":"
  5420. else
  5421. case $cross_compiling:$ac_tool_warned in
  5422. yes:)
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5424. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5425. ac_tool_warned=yes ;;
  5426. esac
  5427. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5428. fi
  5429. else
  5430. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5431. fi
  5432. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5434. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5435. if ${lt_cv_path_mainfest_tool+:} false; then :
  5436. $as_echo_n "(cached) " >&6
  5437. else
  5438. lt_cv_path_mainfest_tool=no
  5439. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5440. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5441. cat conftest.err >&5
  5442. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5443. lt_cv_path_mainfest_tool=yes
  5444. fi
  5445. rm -f conftest*
  5446. fi
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5448. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5449. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5450. MANIFEST_TOOL=:
  5451. fi
  5452. case $host_os in
  5453. rhapsody* | darwin*)
  5454. if test -n "$ac_tool_prefix"; then
  5455. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5456. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5458. $as_echo_n "checking for $ac_word... " >&6; }
  5459. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5460. $as_echo_n "(cached) " >&6
  5461. else
  5462. if test -n "$DSYMUTIL"; then
  5463. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5464. else
  5465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5466. for as_dir in $PATH
  5467. do
  5468. IFS=$as_save_IFS
  5469. test -z "$as_dir" && as_dir=.
  5470. for ac_exec_ext in '' $ac_executable_extensions; do
  5471. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5472. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5473. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5474. break 2
  5475. fi
  5476. done
  5477. done
  5478. IFS=$as_save_IFS
  5479. fi
  5480. fi
  5481. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5482. if test -n "$DSYMUTIL"; then
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5484. $as_echo "$DSYMUTIL" >&6; }
  5485. else
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5487. $as_echo "no" >&6; }
  5488. fi
  5489. fi
  5490. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5491. ac_ct_DSYMUTIL=$DSYMUTIL
  5492. # Extract the first word of "dsymutil", so it can be a program name with args.
  5493. set dummy dsymutil; ac_word=$2
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5495. $as_echo_n "checking for $ac_word... " >&6; }
  5496. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5497. $as_echo_n "(cached) " >&6
  5498. else
  5499. if test -n "$ac_ct_DSYMUTIL"; then
  5500. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5501. else
  5502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5503. for as_dir in $PATH
  5504. do
  5505. IFS=$as_save_IFS
  5506. test -z "$as_dir" && as_dir=.
  5507. for ac_exec_ext in '' $ac_executable_extensions; do
  5508. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5509. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5511. break 2
  5512. fi
  5513. done
  5514. done
  5515. IFS=$as_save_IFS
  5516. fi
  5517. fi
  5518. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5519. if test -n "$ac_ct_DSYMUTIL"; then
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5521. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5522. else
  5523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5524. $as_echo "no" >&6; }
  5525. fi
  5526. if test "x$ac_ct_DSYMUTIL" = x; then
  5527. DSYMUTIL=":"
  5528. else
  5529. case $cross_compiling:$ac_tool_warned in
  5530. yes:)
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5532. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5533. ac_tool_warned=yes ;;
  5534. esac
  5535. DSYMUTIL=$ac_ct_DSYMUTIL
  5536. fi
  5537. else
  5538. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5539. fi
  5540. if test -n "$ac_tool_prefix"; then
  5541. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5542. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5544. $as_echo_n "checking for $ac_word... " >&6; }
  5545. if ${ac_cv_prog_NMEDIT+:} false; then :
  5546. $as_echo_n "(cached) " >&6
  5547. else
  5548. if test -n "$NMEDIT"; then
  5549. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5550. else
  5551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5552. for as_dir in $PATH
  5553. do
  5554. IFS=$as_save_IFS
  5555. test -z "$as_dir" && as_dir=.
  5556. for ac_exec_ext in '' $ac_executable_extensions; do
  5557. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5558. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5560. break 2
  5561. fi
  5562. done
  5563. done
  5564. IFS=$as_save_IFS
  5565. fi
  5566. fi
  5567. NMEDIT=$ac_cv_prog_NMEDIT
  5568. if test -n "$NMEDIT"; then
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5570. $as_echo "$NMEDIT" >&6; }
  5571. else
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5573. $as_echo "no" >&6; }
  5574. fi
  5575. fi
  5576. if test -z "$ac_cv_prog_NMEDIT"; then
  5577. ac_ct_NMEDIT=$NMEDIT
  5578. # Extract the first word of "nmedit", so it can be a program name with args.
  5579. set dummy nmedit; ac_word=$2
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5581. $as_echo_n "checking for $ac_word... " >&6; }
  5582. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5583. $as_echo_n "(cached) " >&6
  5584. else
  5585. if test -n "$ac_ct_NMEDIT"; then
  5586. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5587. else
  5588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5589. for as_dir in $PATH
  5590. do
  5591. IFS=$as_save_IFS
  5592. test -z "$as_dir" && as_dir=.
  5593. for ac_exec_ext in '' $ac_executable_extensions; do
  5594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5595. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5597. break 2
  5598. fi
  5599. done
  5600. done
  5601. IFS=$as_save_IFS
  5602. fi
  5603. fi
  5604. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5605. if test -n "$ac_ct_NMEDIT"; then
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5607. $as_echo "$ac_ct_NMEDIT" >&6; }
  5608. else
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5610. $as_echo "no" >&6; }
  5611. fi
  5612. if test "x$ac_ct_NMEDIT" = x; then
  5613. NMEDIT=":"
  5614. else
  5615. case $cross_compiling:$ac_tool_warned in
  5616. yes:)
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5618. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5619. ac_tool_warned=yes ;;
  5620. esac
  5621. NMEDIT=$ac_ct_NMEDIT
  5622. fi
  5623. else
  5624. NMEDIT="$ac_cv_prog_NMEDIT"
  5625. fi
  5626. if test -n "$ac_tool_prefix"; then
  5627. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5628. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5630. $as_echo_n "checking for $ac_word... " >&6; }
  5631. if ${ac_cv_prog_LIPO+:} false; then :
  5632. $as_echo_n "(cached) " >&6
  5633. else
  5634. if test -n "$LIPO"; then
  5635. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5636. else
  5637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5638. for as_dir in $PATH
  5639. do
  5640. IFS=$as_save_IFS
  5641. test -z "$as_dir" && as_dir=.
  5642. for ac_exec_ext in '' $ac_executable_extensions; do
  5643. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5644. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5646. break 2
  5647. fi
  5648. done
  5649. done
  5650. IFS=$as_save_IFS
  5651. fi
  5652. fi
  5653. LIPO=$ac_cv_prog_LIPO
  5654. if test -n "$LIPO"; then
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5656. $as_echo "$LIPO" >&6; }
  5657. else
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5659. $as_echo "no" >&6; }
  5660. fi
  5661. fi
  5662. if test -z "$ac_cv_prog_LIPO"; then
  5663. ac_ct_LIPO=$LIPO
  5664. # Extract the first word of "lipo", so it can be a program name with args.
  5665. set dummy lipo; ac_word=$2
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5667. $as_echo_n "checking for $ac_word... " >&6; }
  5668. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5669. $as_echo_n "(cached) " >&6
  5670. else
  5671. if test -n "$ac_ct_LIPO"; then
  5672. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5673. else
  5674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5675. for as_dir in $PATH
  5676. do
  5677. IFS=$as_save_IFS
  5678. test -z "$as_dir" && as_dir=.
  5679. for ac_exec_ext in '' $ac_executable_extensions; do
  5680. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5681. ac_cv_prog_ac_ct_LIPO="lipo"
  5682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5683. break 2
  5684. fi
  5685. done
  5686. done
  5687. IFS=$as_save_IFS
  5688. fi
  5689. fi
  5690. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5691. if test -n "$ac_ct_LIPO"; then
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5693. $as_echo "$ac_ct_LIPO" >&6; }
  5694. else
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5696. $as_echo "no" >&6; }
  5697. fi
  5698. if test "x$ac_ct_LIPO" = x; then
  5699. LIPO=":"
  5700. else
  5701. case $cross_compiling:$ac_tool_warned in
  5702. yes:)
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5704. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5705. ac_tool_warned=yes ;;
  5706. esac
  5707. LIPO=$ac_ct_LIPO
  5708. fi
  5709. else
  5710. LIPO="$ac_cv_prog_LIPO"
  5711. fi
  5712. if test -n "$ac_tool_prefix"; then
  5713. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5714. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5716. $as_echo_n "checking for $ac_word... " >&6; }
  5717. if ${ac_cv_prog_OTOOL+:} false; then :
  5718. $as_echo_n "(cached) " >&6
  5719. else
  5720. if test -n "$OTOOL"; then
  5721. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5722. else
  5723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5724. for as_dir in $PATH
  5725. do
  5726. IFS=$as_save_IFS
  5727. test -z "$as_dir" && as_dir=.
  5728. for ac_exec_ext in '' $ac_executable_extensions; do
  5729. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5730. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5732. break 2
  5733. fi
  5734. done
  5735. done
  5736. IFS=$as_save_IFS
  5737. fi
  5738. fi
  5739. OTOOL=$ac_cv_prog_OTOOL
  5740. if test -n "$OTOOL"; then
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5742. $as_echo "$OTOOL" >&6; }
  5743. else
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5745. $as_echo "no" >&6; }
  5746. fi
  5747. fi
  5748. if test -z "$ac_cv_prog_OTOOL"; then
  5749. ac_ct_OTOOL=$OTOOL
  5750. # Extract the first word of "otool", so it can be a program name with args.
  5751. set dummy otool; ac_word=$2
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5753. $as_echo_n "checking for $ac_word... " >&6; }
  5754. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5755. $as_echo_n "(cached) " >&6
  5756. else
  5757. if test -n "$ac_ct_OTOOL"; then
  5758. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5759. else
  5760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5761. for as_dir in $PATH
  5762. do
  5763. IFS=$as_save_IFS
  5764. test -z "$as_dir" && as_dir=.
  5765. for ac_exec_ext in '' $ac_executable_extensions; do
  5766. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5767. ac_cv_prog_ac_ct_OTOOL="otool"
  5768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5769. break 2
  5770. fi
  5771. done
  5772. done
  5773. IFS=$as_save_IFS
  5774. fi
  5775. fi
  5776. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5777. if test -n "$ac_ct_OTOOL"; then
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5779. $as_echo "$ac_ct_OTOOL" >&6; }
  5780. else
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5782. $as_echo "no" >&6; }
  5783. fi
  5784. if test "x$ac_ct_OTOOL" = x; then
  5785. OTOOL=":"
  5786. else
  5787. case $cross_compiling:$ac_tool_warned in
  5788. yes:)
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5790. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5791. ac_tool_warned=yes ;;
  5792. esac
  5793. OTOOL=$ac_ct_OTOOL
  5794. fi
  5795. else
  5796. OTOOL="$ac_cv_prog_OTOOL"
  5797. fi
  5798. if test -n "$ac_tool_prefix"; then
  5799. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5800. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5802. $as_echo_n "checking for $ac_word... " >&6; }
  5803. if ${ac_cv_prog_OTOOL64+:} false; then :
  5804. $as_echo_n "(cached) " >&6
  5805. else
  5806. if test -n "$OTOOL64"; then
  5807. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5808. else
  5809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5810. for as_dir in $PATH
  5811. do
  5812. IFS=$as_save_IFS
  5813. test -z "$as_dir" && as_dir=.
  5814. for ac_exec_ext in '' $ac_executable_extensions; do
  5815. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5816. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5818. break 2
  5819. fi
  5820. done
  5821. done
  5822. IFS=$as_save_IFS
  5823. fi
  5824. fi
  5825. OTOOL64=$ac_cv_prog_OTOOL64
  5826. if test -n "$OTOOL64"; then
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5828. $as_echo "$OTOOL64" >&6; }
  5829. else
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5831. $as_echo "no" >&6; }
  5832. fi
  5833. fi
  5834. if test -z "$ac_cv_prog_OTOOL64"; then
  5835. ac_ct_OTOOL64=$OTOOL64
  5836. # Extract the first word of "otool64", so it can be a program name with args.
  5837. set dummy otool64; ac_word=$2
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5839. $as_echo_n "checking for $ac_word... " >&6; }
  5840. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5841. $as_echo_n "(cached) " >&6
  5842. else
  5843. if test -n "$ac_ct_OTOOL64"; then
  5844. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5845. else
  5846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5847. for as_dir in $PATH
  5848. do
  5849. IFS=$as_save_IFS
  5850. test -z "$as_dir" && as_dir=.
  5851. for ac_exec_ext in '' $ac_executable_extensions; do
  5852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5853. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5855. break 2
  5856. fi
  5857. done
  5858. done
  5859. IFS=$as_save_IFS
  5860. fi
  5861. fi
  5862. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5863. if test -n "$ac_ct_OTOOL64"; then
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5865. $as_echo "$ac_ct_OTOOL64" >&6; }
  5866. else
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5868. $as_echo "no" >&6; }
  5869. fi
  5870. if test "x$ac_ct_OTOOL64" = x; then
  5871. OTOOL64=":"
  5872. else
  5873. case $cross_compiling:$ac_tool_warned in
  5874. yes:)
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5876. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5877. ac_tool_warned=yes ;;
  5878. esac
  5879. OTOOL64=$ac_ct_OTOOL64
  5880. fi
  5881. else
  5882. OTOOL64="$ac_cv_prog_OTOOL64"
  5883. fi
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5885. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5886. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5887. $as_echo_n "(cached) " >&6
  5888. else
  5889. lt_cv_apple_cc_single_mod=no
  5890. if test -z "${LT_MULTI_MODULE}"; then
  5891. # By default we will add the -single_module flag. You can override
  5892. # by either setting the environment variable LT_MULTI_MODULE
  5893. # non-empty at configure time, or by adding -multi_module to the
  5894. # link flags.
  5895. rm -rf libconftest.dylib*
  5896. echo "int foo(void){return 1;}" > conftest.c
  5897. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5898. -dynamiclib -Wl,-single_module conftest.c" >&5
  5899. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5900. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5901. _lt_result=$?
  5902. # If there is a non-empty error log, and "single_module"
  5903. # appears in it, assume the flag caused a linker warning
  5904. if test -s conftest.err && $GREP single_module conftest.err; then
  5905. cat conftest.err >&5
  5906. # Otherwise, if the output was created with a 0 exit code from
  5907. # the compiler, it worked.
  5908. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5909. lt_cv_apple_cc_single_mod=yes
  5910. else
  5911. cat conftest.err >&5
  5912. fi
  5913. rm -rf libconftest.dylib*
  5914. rm -f conftest.*
  5915. fi
  5916. fi
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5918. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5920. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5921. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5922. $as_echo_n "(cached) " >&6
  5923. else
  5924. lt_cv_ld_exported_symbols_list=no
  5925. save_LDFLAGS=$LDFLAGS
  5926. echo "_main" > conftest.sym
  5927. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5929. /* end confdefs.h. */
  5930. int
  5931. main ()
  5932. {
  5933. ;
  5934. return 0;
  5935. }
  5936. _ACEOF
  5937. if ac_fn_c_try_link "$LINENO"; then :
  5938. lt_cv_ld_exported_symbols_list=yes
  5939. else
  5940. lt_cv_ld_exported_symbols_list=no
  5941. fi
  5942. rm -f core conftest.err conftest.$ac_objext \
  5943. conftest$ac_exeext conftest.$ac_ext
  5944. LDFLAGS="$save_LDFLAGS"
  5945. fi
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5947. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5949. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5950. if ${lt_cv_ld_force_load+:} false; then :
  5951. $as_echo_n "(cached) " >&6
  5952. else
  5953. lt_cv_ld_force_load=no
  5954. cat > conftest.c << _LT_EOF
  5955. int forced_loaded() { return 2;}
  5956. _LT_EOF
  5957. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5958. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5959. echo "$AR cru libconftest.a conftest.o" >&5
  5960. $AR cru libconftest.a conftest.o 2>&5
  5961. echo "$RANLIB libconftest.a" >&5
  5962. $RANLIB libconftest.a 2>&5
  5963. cat > conftest.c << _LT_EOF
  5964. int main() { return 0;}
  5965. _LT_EOF
  5966. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5967. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5968. _lt_result=$?
  5969. if test -s conftest.err && $GREP force_load conftest.err; then
  5970. cat conftest.err >&5
  5971. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5972. lt_cv_ld_force_load=yes
  5973. else
  5974. cat conftest.err >&5
  5975. fi
  5976. rm -f conftest.err libconftest.a conftest conftest.c
  5977. rm -rf conftest.dSYM
  5978. fi
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5980. $as_echo "$lt_cv_ld_force_load" >&6; }
  5981. case $host_os in
  5982. rhapsody* | darwin1.[012])
  5983. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5984. darwin1.*)
  5985. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5986. darwin*) # darwin 5.x on
  5987. # if running on 10.5 or later, the deployment target defaults
  5988. # to the OS version, if on x86, and 10.4, the deployment
  5989. # target defaults to 10.4. Don't you love it?
  5990. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5991. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5992. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5993. 10.[012]*)
  5994. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5995. 10.*)
  5996. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5997. esac
  5998. ;;
  5999. esac
  6000. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6001. _lt_dar_single_mod='$single_module'
  6002. fi
  6003. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6004. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6005. else
  6006. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6007. fi
  6008. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6009. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6010. else
  6011. _lt_dsymutil=
  6012. fi
  6013. ;;
  6014. esac
  6015. ac_ext=c
  6016. ac_cpp='$CPP $CPPFLAGS'
  6017. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6018. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6019. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6021. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6022. # On Suns, sometimes $CPP names a directory.
  6023. if test -n "$CPP" && test -d "$CPP"; then
  6024. CPP=
  6025. fi
  6026. if test -z "$CPP"; then
  6027. if ${ac_cv_prog_CPP+:} false; then :
  6028. $as_echo_n "(cached) " >&6
  6029. else
  6030. # Double quotes because CPP needs to be expanded
  6031. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6032. do
  6033. ac_preproc_ok=false
  6034. for ac_c_preproc_warn_flag in '' yes
  6035. do
  6036. # Use a header file that comes with gcc, so configuring glibc
  6037. # with a fresh cross-compiler works.
  6038. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6039. # <limits.h> exists even on freestanding compilers.
  6040. # On the NeXT, cc -E runs the code through the compiler's parser,
  6041. # not just through cpp. "Syntax error" is here to catch this case.
  6042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6043. /* end confdefs.h. */
  6044. #ifdef __STDC__
  6045. # include <limits.h>
  6046. #else
  6047. # include <assert.h>
  6048. #endif
  6049. Syntax error
  6050. _ACEOF
  6051. if ac_fn_c_try_cpp "$LINENO"; then :
  6052. else
  6053. # Broken: fails on valid input.
  6054. continue
  6055. fi
  6056. rm -f conftest.err conftest.i conftest.$ac_ext
  6057. # OK, works on sane cases. Now check whether nonexistent headers
  6058. # can be detected and how.
  6059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6060. /* end confdefs.h. */
  6061. #include <ac_nonexistent.h>
  6062. _ACEOF
  6063. if ac_fn_c_try_cpp "$LINENO"; then :
  6064. # Broken: success on invalid input.
  6065. continue
  6066. else
  6067. # Passes both tests.
  6068. ac_preproc_ok=:
  6069. break
  6070. fi
  6071. rm -f conftest.err conftest.i conftest.$ac_ext
  6072. done
  6073. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6074. rm -f conftest.i conftest.err conftest.$ac_ext
  6075. if $ac_preproc_ok; then :
  6076. break
  6077. fi
  6078. done
  6079. ac_cv_prog_CPP=$CPP
  6080. fi
  6081. CPP=$ac_cv_prog_CPP
  6082. else
  6083. ac_cv_prog_CPP=$CPP
  6084. fi
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6086. $as_echo "$CPP" >&6; }
  6087. ac_preproc_ok=false
  6088. for ac_c_preproc_warn_flag in '' yes
  6089. do
  6090. # Use a header file that comes with gcc, so configuring glibc
  6091. # with a fresh cross-compiler works.
  6092. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6093. # <limits.h> exists even on freestanding compilers.
  6094. # On the NeXT, cc -E runs the code through the compiler's parser,
  6095. # not just through cpp. "Syntax error" is here to catch this case.
  6096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6097. /* end confdefs.h. */
  6098. #ifdef __STDC__
  6099. # include <limits.h>
  6100. #else
  6101. # include <assert.h>
  6102. #endif
  6103. Syntax error
  6104. _ACEOF
  6105. if ac_fn_c_try_cpp "$LINENO"; then :
  6106. else
  6107. # Broken: fails on valid input.
  6108. continue
  6109. fi
  6110. rm -f conftest.err conftest.i conftest.$ac_ext
  6111. # OK, works on sane cases. Now check whether nonexistent headers
  6112. # can be detected and how.
  6113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6114. /* end confdefs.h. */
  6115. #include <ac_nonexistent.h>
  6116. _ACEOF
  6117. if ac_fn_c_try_cpp "$LINENO"; then :
  6118. # Broken: success on invalid input.
  6119. continue
  6120. else
  6121. # Passes both tests.
  6122. ac_preproc_ok=:
  6123. break
  6124. fi
  6125. rm -f conftest.err conftest.i conftest.$ac_ext
  6126. done
  6127. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6128. rm -f conftest.i conftest.err conftest.$ac_ext
  6129. if $ac_preproc_ok; then :
  6130. else
  6131. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6132. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6133. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6134. See \`config.log' for more details" "$LINENO" 5; }
  6135. fi
  6136. ac_ext=c
  6137. ac_cpp='$CPP $CPPFLAGS'
  6138. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6139. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6140. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6142. $as_echo_n "checking for ANSI C header files... " >&6; }
  6143. if ${ac_cv_header_stdc+:} false; then :
  6144. $as_echo_n "(cached) " >&6
  6145. else
  6146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6147. /* end confdefs.h. */
  6148. #include <stdlib.h>
  6149. #include <stdarg.h>
  6150. #include <string.h>
  6151. #include <float.h>
  6152. int
  6153. main ()
  6154. {
  6155. ;
  6156. return 0;
  6157. }
  6158. _ACEOF
  6159. if ac_fn_c_try_compile "$LINENO"; then :
  6160. ac_cv_header_stdc=yes
  6161. else
  6162. ac_cv_header_stdc=no
  6163. fi
  6164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6165. if test $ac_cv_header_stdc = yes; then
  6166. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6168. /* end confdefs.h. */
  6169. #include <string.h>
  6170. _ACEOF
  6171. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6172. $EGREP "memchr" >/dev/null 2>&1; then :
  6173. else
  6174. ac_cv_header_stdc=no
  6175. fi
  6176. rm -f conftest*
  6177. fi
  6178. if test $ac_cv_header_stdc = yes; then
  6179. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6181. /* end confdefs.h. */
  6182. #include <stdlib.h>
  6183. _ACEOF
  6184. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6185. $EGREP "free" >/dev/null 2>&1; then :
  6186. else
  6187. ac_cv_header_stdc=no
  6188. fi
  6189. rm -f conftest*
  6190. fi
  6191. if test $ac_cv_header_stdc = yes; then
  6192. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6193. if test "$cross_compiling" = yes; then :
  6194. :
  6195. else
  6196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6197. /* end confdefs.h. */
  6198. #include <ctype.h>
  6199. #include <stdlib.h>
  6200. #if ((' ' & 0x0FF) == 0x020)
  6201. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6202. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6203. #else
  6204. # define ISLOWER(c) \
  6205. (('a' <= (c) && (c) <= 'i') \
  6206. || ('j' <= (c) && (c) <= 'r') \
  6207. || ('s' <= (c) && (c) <= 'z'))
  6208. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6209. #endif
  6210. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6211. int
  6212. main ()
  6213. {
  6214. int i;
  6215. for (i = 0; i < 256; i++)
  6216. if (XOR (islower (i), ISLOWER (i))
  6217. || toupper (i) != TOUPPER (i))
  6218. return 2;
  6219. return 0;
  6220. }
  6221. _ACEOF
  6222. if ac_fn_c_try_run "$LINENO"; then :
  6223. else
  6224. ac_cv_header_stdc=no
  6225. fi
  6226. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6227. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6228. fi
  6229. fi
  6230. fi
  6231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6232. $as_echo "$ac_cv_header_stdc" >&6; }
  6233. if test $ac_cv_header_stdc = yes; then
  6234. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6235. fi
  6236. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6237. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6238. inttypes.h stdint.h unistd.h
  6239. do :
  6240. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6241. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6242. "
  6243. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6244. cat >>confdefs.h <<_ACEOF
  6245. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6246. _ACEOF
  6247. fi
  6248. done
  6249. for ac_header in dlfcn.h
  6250. do :
  6251. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6252. "
  6253. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6254. cat >>confdefs.h <<_ACEOF
  6255. #define HAVE_DLFCN_H 1
  6256. _ACEOF
  6257. fi
  6258. done
  6259. # Set options
  6260. enable_win32_dll=yes
  6261. case $host in
  6262. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6263. if test -n "$ac_tool_prefix"; then
  6264. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6265. set dummy ${ac_tool_prefix}as; ac_word=$2
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6267. $as_echo_n "checking for $ac_word... " >&6; }
  6268. if ${ac_cv_prog_AS+:} false; then :
  6269. $as_echo_n "(cached) " >&6
  6270. else
  6271. if test -n "$AS"; then
  6272. ac_cv_prog_AS="$AS" # Let the user override the test.
  6273. else
  6274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6275. for as_dir in $PATH
  6276. do
  6277. IFS=$as_save_IFS
  6278. test -z "$as_dir" && as_dir=.
  6279. for ac_exec_ext in '' $ac_executable_extensions; do
  6280. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6281. ac_cv_prog_AS="${ac_tool_prefix}as"
  6282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6283. break 2
  6284. fi
  6285. done
  6286. done
  6287. IFS=$as_save_IFS
  6288. fi
  6289. fi
  6290. AS=$ac_cv_prog_AS
  6291. if test -n "$AS"; then
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6293. $as_echo "$AS" >&6; }
  6294. else
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6296. $as_echo "no" >&6; }
  6297. fi
  6298. fi
  6299. if test -z "$ac_cv_prog_AS"; then
  6300. ac_ct_AS=$AS
  6301. # Extract the first word of "as", so it can be a program name with args.
  6302. set dummy as; ac_word=$2
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6304. $as_echo_n "checking for $ac_word... " >&6; }
  6305. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6306. $as_echo_n "(cached) " >&6
  6307. else
  6308. if test -n "$ac_ct_AS"; then
  6309. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6310. else
  6311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6312. for as_dir in $PATH
  6313. do
  6314. IFS=$as_save_IFS
  6315. test -z "$as_dir" && as_dir=.
  6316. for ac_exec_ext in '' $ac_executable_extensions; do
  6317. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6318. ac_cv_prog_ac_ct_AS="as"
  6319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6320. break 2
  6321. fi
  6322. done
  6323. done
  6324. IFS=$as_save_IFS
  6325. fi
  6326. fi
  6327. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6328. if test -n "$ac_ct_AS"; then
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6330. $as_echo "$ac_ct_AS" >&6; }
  6331. else
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6333. $as_echo "no" >&6; }
  6334. fi
  6335. if test "x$ac_ct_AS" = x; then
  6336. AS="false"
  6337. else
  6338. case $cross_compiling:$ac_tool_warned in
  6339. yes:)
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6341. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6342. ac_tool_warned=yes ;;
  6343. esac
  6344. AS=$ac_ct_AS
  6345. fi
  6346. else
  6347. AS="$ac_cv_prog_AS"
  6348. fi
  6349. if test -n "$ac_tool_prefix"; then
  6350. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6351. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6353. $as_echo_n "checking for $ac_word... " >&6; }
  6354. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6355. $as_echo_n "(cached) " >&6
  6356. else
  6357. if test -n "$DLLTOOL"; then
  6358. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6359. else
  6360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6361. for as_dir in $PATH
  6362. do
  6363. IFS=$as_save_IFS
  6364. test -z "$as_dir" && as_dir=.
  6365. for ac_exec_ext in '' $ac_executable_extensions; do
  6366. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6367. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6369. break 2
  6370. fi
  6371. done
  6372. done
  6373. IFS=$as_save_IFS
  6374. fi
  6375. fi
  6376. DLLTOOL=$ac_cv_prog_DLLTOOL
  6377. if test -n "$DLLTOOL"; then
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6379. $as_echo "$DLLTOOL" >&6; }
  6380. else
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6382. $as_echo "no" >&6; }
  6383. fi
  6384. fi
  6385. if test -z "$ac_cv_prog_DLLTOOL"; then
  6386. ac_ct_DLLTOOL=$DLLTOOL
  6387. # Extract the first word of "dlltool", so it can be a program name with args.
  6388. set dummy dlltool; ac_word=$2
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6390. $as_echo_n "checking for $ac_word... " >&6; }
  6391. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6392. $as_echo_n "(cached) " >&6
  6393. else
  6394. if test -n "$ac_ct_DLLTOOL"; then
  6395. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6396. else
  6397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6398. for as_dir in $PATH
  6399. do
  6400. IFS=$as_save_IFS
  6401. test -z "$as_dir" && as_dir=.
  6402. for ac_exec_ext in '' $ac_executable_extensions; do
  6403. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6404. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6406. break 2
  6407. fi
  6408. done
  6409. done
  6410. IFS=$as_save_IFS
  6411. fi
  6412. fi
  6413. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6414. if test -n "$ac_ct_DLLTOOL"; then
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6416. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6417. else
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6419. $as_echo "no" >&6; }
  6420. fi
  6421. if test "x$ac_ct_DLLTOOL" = x; then
  6422. DLLTOOL="false"
  6423. else
  6424. case $cross_compiling:$ac_tool_warned in
  6425. yes:)
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6427. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6428. ac_tool_warned=yes ;;
  6429. esac
  6430. DLLTOOL=$ac_ct_DLLTOOL
  6431. fi
  6432. else
  6433. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6434. fi
  6435. if test -n "$ac_tool_prefix"; then
  6436. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6437. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6439. $as_echo_n "checking for $ac_word... " >&6; }
  6440. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6441. $as_echo_n "(cached) " >&6
  6442. else
  6443. if test -n "$OBJDUMP"; then
  6444. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6445. else
  6446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6447. for as_dir in $PATH
  6448. do
  6449. IFS=$as_save_IFS
  6450. test -z "$as_dir" && as_dir=.
  6451. for ac_exec_ext in '' $ac_executable_extensions; do
  6452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6453. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6455. break 2
  6456. fi
  6457. done
  6458. done
  6459. IFS=$as_save_IFS
  6460. fi
  6461. fi
  6462. OBJDUMP=$ac_cv_prog_OBJDUMP
  6463. if test -n "$OBJDUMP"; then
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6465. $as_echo "$OBJDUMP" >&6; }
  6466. else
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6468. $as_echo "no" >&6; }
  6469. fi
  6470. fi
  6471. if test -z "$ac_cv_prog_OBJDUMP"; then
  6472. ac_ct_OBJDUMP=$OBJDUMP
  6473. # Extract the first word of "objdump", so it can be a program name with args.
  6474. set dummy objdump; ac_word=$2
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6476. $as_echo_n "checking for $ac_word... " >&6; }
  6477. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6478. $as_echo_n "(cached) " >&6
  6479. else
  6480. if test -n "$ac_ct_OBJDUMP"; then
  6481. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6482. else
  6483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6484. for as_dir in $PATH
  6485. do
  6486. IFS=$as_save_IFS
  6487. test -z "$as_dir" && as_dir=.
  6488. for ac_exec_ext in '' $ac_executable_extensions; do
  6489. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6490. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6492. break 2
  6493. fi
  6494. done
  6495. done
  6496. IFS=$as_save_IFS
  6497. fi
  6498. fi
  6499. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6500. if test -n "$ac_ct_OBJDUMP"; then
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6502. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6503. else
  6504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6505. $as_echo "no" >&6; }
  6506. fi
  6507. if test "x$ac_ct_OBJDUMP" = x; then
  6508. OBJDUMP="false"
  6509. else
  6510. case $cross_compiling:$ac_tool_warned in
  6511. yes:)
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6513. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6514. ac_tool_warned=yes ;;
  6515. esac
  6516. OBJDUMP=$ac_ct_OBJDUMP
  6517. fi
  6518. else
  6519. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6520. fi
  6521. ;;
  6522. esac
  6523. test -z "$AS" && AS=as
  6524. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6525. test -z "$OBJDUMP" && OBJDUMP=objdump
  6526. enable_dlopen=no
  6527. # Check whether --enable-shared was given.
  6528. if test "${enable_shared+set}" = set; then :
  6529. enableval=$enable_shared; p=${PACKAGE-default}
  6530. case $enableval in
  6531. yes) enable_shared=yes ;;
  6532. no) enable_shared=no ;;
  6533. *)
  6534. enable_shared=no
  6535. # Look at the argument we got. We use all the common list separators.
  6536. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6537. for pkg in $enableval; do
  6538. IFS="$lt_save_ifs"
  6539. if test "X$pkg" = "X$p"; then
  6540. enable_shared=yes
  6541. fi
  6542. done
  6543. IFS="$lt_save_ifs"
  6544. ;;
  6545. esac
  6546. else
  6547. enable_shared=yes
  6548. fi
  6549. # Check whether --enable-static was given.
  6550. if test "${enable_static+set}" = set; then :
  6551. enableval=$enable_static; p=${PACKAGE-default}
  6552. case $enableval in
  6553. yes) enable_static=yes ;;
  6554. no) enable_static=no ;;
  6555. *)
  6556. enable_static=no
  6557. # Look at the argument we got. We use all the common list separators.
  6558. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6559. for pkg in $enableval; do
  6560. IFS="$lt_save_ifs"
  6561. if test "X$pkg" = "X$p"; then
  6562. enable_static=yes
  6563. fi
  6564. done
  6565. IFS="$lt_save_ifs"
  6566. ;;
  6567. esac
  6568. else
  6569. enable_static=yes
  6570. fi
  6571. # Check whether --with-pic was given.
  6572. if test "${with_pic+set}" = set; then :
  6573. withval=$with_pic; lt_p=${PACKAGE-default}
  6574. case $withval in
  6575. yes|no) pic_mode=$withval ;;
  6576. *)
  6577. pic_mode=default
  6578. # Look at the argument we got. We use all the common list separators.
  6579. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6580. for lt_pkg in $withval; do
  6581. IFS="$lt_save_ifs"
  6582. if test "X$lt_pkg" = "X$lt_p"; then
  6583. pic_mode=yes
  6584. fi
  6585. done
  6586. IFS="$lt_save_ifs"
  6587. ;;
  6588. esac
  6589. else
  6590. pic_mode=default
  6591. fi
  6592. test -z "$pic_mode" && pic_mode=default
  6593. # Check whether --enable-fast-install was given.
  6594. if test "${enable_fast_install+set}" = set; then :
  6595. enableval=$enable_fast_install; p=${PACKAGE-default}
  6596. case $enableval in
  6597. yes) enable_fast_install=yes ;;
  6598. no) enable_fast_install=no ;;
  6599. *)
  6600. enable_fast_install=no
  6601. # Look at the argument we got. We use all the common list separators.
  6602. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6603. for pkg in $enableval; do
  6604. IFS="$lt_save_ifs"
  6605. if test "X$pkg" = "X$p"; then
  6606. enable_fast_install=yes
  6607. fi
  6608. done
  6609. IFS="$lt_save_ifs"
  6610. ;;
  6611. esac
  6612. else
  6613. enable_fast_install=yes
  6614. fi
  6615. # This can be used to rebuild libtool when needed
  6616. LIBTOOL_DEPS="$ltmain"
  6617. # Always use our own libtool.
  6618. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6619. test -z "$LN_S" && LN_S="ln -s"
  6620. if test -n "${ZSH_VERSION+set}" ; then
  6621. setopt NO_GLOB_SUBST
  6622. fi
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6624. $as_echo_n "checking for objdir... " >&6; }
  6625. if ${lt_cv_objdir+:} false; then :
  6626. $as_echo_n "(cached) " >&6
  6627. else
  6628. rm -f .libs 2>/dev/null
  6629. mkdir .libs 2>/dev/null
  6630. if test -d .libs; then
  6631. lt_cv_objdir=.libs
  6632. else
  6633. # MS-DOS does not allow filenames that begin with a dot.
  6634. lt_cv_objdir=_libs
  6635. fi
  6636. rmdir .libs 2>/dev/null
  6637. fi
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6639. $as_echo "$lt_cv_objdir" >&6; }
  6640. objdir=$lt_cv_objdir
  6641. cat >>confdefs.h <<_ACEOF
  6642. #define LT_OBJDIR "$lt_cv_objdir/"
  6643. _ACEOF
  6644. case $host_os in
  6645. aix3*)
  6646. # AIX sometimes has problems with the GCC collect2 program. For some
  6647. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6648. # vanish in a puff of smoke.
  6649. if test "X${COLLECT_NAMES+set}" != Xset; then
  6650. COLLECT_NAMES=
  6651. export COLLECT_NAMES
  6652. fi
  6653. ;;
  6654. esac
  6655. # Global variables:
  6656. ofile=libtool
  6657. can_build_shared=yes
  6658. # All known linkers require a `.a' archive for static linking (except MSVC,
  6659. # which needs '.lib').
  6660. libext=a
  6661. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6662. old_CC="$CC"
  6663. old_CFLAGS="$CFLAGS"
  6664. # Set sane defaults for various variables
  6665. test -z "$CC" && CC=cc
  6666. test -z "$LTCC" && LTCC=$CC
  6667. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6668. test -z "$LD" && LD=ld
  6669. test -z "$ac_objext" && ac_objext=o
  6670. for cc_temp in $compiler""; do
  6671. case $cc_temp in
  6672. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6673. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6674. \-*) ;;
  6675. *) break;;
  6676. esac
  6677. done
  6678. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6679. # Only perform the check for file, if the check method requires it
  6680. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6681. case $deplibs_check_method in
  6682. file_magic*)
  6683. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6685. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6686. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6687. $as_echo_n "(cached) " >&6
  6688. else
  6689. case $MAGIC_CMD in
  6690. [\\/*] | ?:[\\/]*)
  6691. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6692. ;;
  6693. *)
  6694. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6695. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6696. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6697. for ac_dir in $ac_dummy; do
  6698. IFS="$lt_save_ifs"
  6699. test -z "$ac_dir" && ac_dir=.
  6700. if test -f $ac_dir/${ac_tool_prefix}file; then
  6701. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6702. if test -n "$file_magic_test_file"; then
  6703. case $deplibs_check_method in
  6704. "file_magic "*)
  6705. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6706. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6707. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6708. $EGREP "$file_magic_regex" > /dev/null; then
  6709. :
  6710. else
  6711. cat <<_LT_EOF 1>&2
  6712. *** Warning: the command libtool uses to detect shared libraries,
  6713. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6714. *** The result is that libtool may fail to recognize shared libraries
  6715. *** as such. This will affect the creation of libtool libraries that
  6716. *** depend on shared libraries, but programs linked with such libtool
  6717. *** libraries will work regardless of this problem. Nevertheless, you
  6718. *** may want to report the problem to your system manager and/or to
  6719. *** bug-libtool@gnu.org
  6720. _LT_EOF
  6721. fi ;;
  6722. esac
  6723. fi
  6724. break
  6725. fi
  6726. done
  6727. IFS="$lt_save_ifs"
  6728. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6729. ;;
  6730. esac
  6731. fi
  6732. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6733. if test -n "$MAGIC_CMD"; then
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6735. $as_echo "$MAGIC_CMD" >&6; }
  6736. else
  6737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6738. $as_echo "no" >&6; }
  6739. fi
  6740. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6741. if test -n "$ac_tool_prefix"; then
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6743. $as_echo_n "checking for file... " >&6; }
  6744. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6745. $as_echo_n "(cached) " >&6
  6746. else
  6747. case $MAGIC_CMD in
  6748. [\\/*] | ?:[\\/]*)
  6749. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6750. ;;
  6751. *)
  6752. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6753. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6754. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6755. for ac_dir in $ac_dummy; do
  6756. IFS="$lt_save_ifs"
  6757. test -z "$ac_dir" && ac_dir=.
  6758. if test -f $ac_dir/file; then
  6759. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6760. if test -n "$file_magic_test_file"; then
  6761. case $deplibs_check_method in
  6762. "file_magic "*)
  6763. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6764. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6765. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6766. $EGREP "$file_magic_regex" > /dev/null; then
  6767. :
  6768. else
  6769. cat <<_LT_EOF 1>&2
  6770. *** Warning: the command libtool uses to detect shared libraries,
  6771. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6772. *** The result is that libtool may fail to recognize shared libraries
  6773. *** as such. This will affect the creation of libtool libraries that
  6774. *** depend on shared libraries, but programs linked with such libtool
  6775. *** libraries will work regardless of this problem. Nevertheless, you
  6776. *** may want to report the problem to your system manager and/or to
  6777. *** bug-libtool@gnu.org
  6778. _LT_EOF
  6779. fi ;;
  6780. esac
  6781. fi
  6782. break
  6783. fi
  6784. done
  6785. IFS="$lt_save_ifs"
  6786. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6787. ;;
  6788. esac
  6789. fi
  6790. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6791. if test -n "$MAGIC_CMD"; then
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6793. $as_echo "$MAGIC_CMD" >&6; }
  6794. else
  6795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6796. $as_echo "no" >&6; }
  6797. fi
  6798. else
  6799. MAGIC_CMD=:
  6800. fi
  6801. fi
  6802. fi
  6803. ;;
  6804. esac
  6805. # Use C for the default configuration in the libtool script
  6806. lt_save_CC="$CC"
  6807. ac_ext=c
  6808. ac_cpp='$CPP $CPPFLAGS'
  6809. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6810. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6811. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6812. # Source file extension for C test sources.
  6813. ac_ext=c
  6814. # Object file extension for compiled C test sources.
  6815. objext=o
  6816. objext=$objext
  6817. # Code to be used in simple compile tests
  6818. lt_simple_compile_test_code="int some_variable = 0;"
  6819. # Code to be used in simple link tests
  6820. lt_simple_link_test_code='int main(){return(0);}'
  6821. # If no C compiler was specified, use CC.
  6822. LTCC=${LTCC-"$CC"}
  6823. # If no C compiler flags were specified, use CFLAGS.
  6824. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6825. # Allow CC to be a program name with arguments.
  6826. compiler=$CC
  6827. # Save the default compiler, since it gets overwritten when the other
  6828. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6829. compiler_DEFAULT=$CC
  6830. # save warnings/boilerplate of simple test code
  6831. ac_outfile=conftest.$ac_objext
  6832. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6833. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6834. _lt_compiler_boilerplate=`cat conftest.err`
  6835. $RM conftest*
  6836. ac_outfile=conftest.$ac_objext
  6837. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6838. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6839. _lt_linker_boilerplate=`cat conftest.err`
  6840. $RM -r conftest*
  6841. ## CAVEAT EMPTOR:
  6842. ## There is no encapsulation within the following macros, do not change
  6843. ## the running order or otherwise move them around unless you know exactly
  6844. ## what you are doing...
  6845. if test -n "$compiler"; then
  6846. lt_prog_compiler_no_builtin_flag=
  6847. if test "$GCC" = yes; then
  6848. case $cc_basename in
  6849. nvcc*)
  6850. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6851. *)
  6852. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6853. esac
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6855. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6856. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6857. $as_echo_n "(cached) " >&6
  6858. else
  6859. lt_cv_prog_compiler_rtti_exceptions=no
  6860. ac_outfile=conftest.$ac_objext
  6861. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6862. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6863. # Insert the option either (1) after the last *FLAGS variable, or
  6864. # (2) before a word containing "conftest.", or (3) at the end.
  6865. # Note that $ac_compile itself does not contain backslashes and begins
  6866. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6867. # The option is referenced via a variable to avoid confusing sed.
  6868. lt_compile=`echo "$ac_compile" | $SED \
  6869. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6870. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6871. -e 's:$: $lt_compiler_flag:'`
  6872. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6873. (eval "$lt_compile" 2>conftest.err)
  6874. ac_status=$?
  6875. cat conftest.err >&5
  6876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6877. if (exit $ac_status) && test -s "$ac_outfile"; then
  6878. # The compiler can only warn and ignore the option if not recognized
  6879. # So say no if there are warnings other than the usual output.
  6880. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6881. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6882. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6883. lt_cv_prog_compiler_rtti_exceptions=yes
  6884. fi
  6885. fi
  6886. $RM conftest*
  6887. fi
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6889. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6890. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6891. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6892. else
  6893. :
  6894. fi
  6895. fi
  6896. lt_prog_compiler_wl=
  6897. lt_prog_compiler_pic=
  6898. lt_prog_compiler_static=
  6899. if test "$GCC" = yes; then
  6900. lt_prog_compiler_wl='-Wl,'
  6901. lt_prog_compiler_static='-static'
  6902. case $host_os in
  6903. aix*)
  6904. # All AIX code is PIC.
  6905. if test "$host_cpu" = ia64; then
  6906. # AIX 5 now supports IA64 processor
  6907. lt_prog_compiler_static='-Bstatic'
  6908. fi
  6909. ;;
  6910. amigaos*)
  6911. case $host_cpu in
  6912. powerpc)
  6913. # see comment about AmigaOS4 .so support
  6914. lt_prog_compiler_pic='-fPIC'
  6915. ;;
  6916. m68k)
  6917. # FIXME: we need at least 68020 code to build shared libraries, but
  6918. # adding the `-m68020' flag to GCC prevents building anything better,
  6919. # like `-m68040'.
  6920. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6921. ;;
  6922. esac
  6923. ;;
  6924. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6925. # PIC is the default for these OSes.
  6926. ;;
  6927. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6928. # This hack is so that the source file can tell whether it is being
  6929. # built for inclusion in a dll (and should export symbols for example).
  6930. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6931. # (--disable-auto-import) libraries
  6932. lt_prog_compiler_pic='-DDLL_EXPORT'
  6933. ;;
  6934. darwin* | rhapsody*)
  6935. # PIC is the default on this platform
  6936. # Common symbols not allowed in MH_DYLIB files
  6937. lt_prog_compiler_pic='-fno-common'
  6938. ;;
  6939. haiku*)
  6940. # PIC is the default for Haiku.
  6941. # The "-static" flag exists, but is broken.
  6942. lt_prog_compiler_static=
  6943. ;;
  6944. hpux*)
  6945. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6946. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6947. # sets the default TLS model and affects inlining.
  6948. case $host_cpu in
  6949. hppa*64*)
  6950. # +Z the default
  6951. ;;
  6952. *)
  6953. lt_prog_compiler_pic='-fPIC'
  6954. ;;
  6955. esac
  6956. ;;
  6957. interix[3-9]*)
  6958. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6959. # Instead, we relocate shared libraries at runtime.
  6960. ;;
  6961. msdosdjgpp*)
  6962. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6963. # on systems that don't support them.
  6964. lt_prog_compiler_can_build_shared=no
  6965. enable_shared=no
  6966. ;;
  6967. *nto* | *qnx*)
  6968. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6969. # it will coredump.
  6970. lt_prog_compiler_pic='-fPIC -shared'
  6971. ;;
  6972. sysv4*MP*)
  6973. if test -d /usr/nec; then
  6974. lt_prog_compiler_pic=-Kconform_pic
  6975. fi
  6976. ;;
  6977. *)
  6978. lt_prog_compiler_pic='-fPIC'
  6979. ;;
  6980. esac
  6981. case $cc_basename in
  6982. nvcc*) # Cuda Compiler Driver 2.2
  6983. lt_prog_compiler_wl='-Xlinker '
  6984. if test -n "$lt_prog_compiler_pic"; then
  6985. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6986. fi
  6987. ;;
  6988. esac
  6989. else
  6990. # PORTME Check for flag to pass linker flags through the system compiler.
  6991. case $host_os in
  6992. aix*)
  6993. lt_prog_compiler_wl='-Wl,'
  6994. if test "$host_cpu" = ia64; then
  6995. # AIX 5 now supports IA64 processor
  6996. lt_prog_compiler_static='-Bstatic'
  6997. else
  6998. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6999. fi
  7000. ;;
  7001. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7002. # This hack is so that the source file can tell whether it is being
  7003. # built for inclusion in a dll (and should export symbols for example).
  7004. lt_prog_compiler_pic='-DDLL_EXPORT'
  7005. ;;
  7006. hpux9* | hpux10* | hpux11*)
  7007. lt_prog_compiler_wl='-Wl,'
  7008. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7009. # not for PA HP-UX.
  7010. case $host_cpu in
  7011. hppa*64*|ia64*)
  7012. # +Z the default
  7013. ;;
  7014. *)
  7015. lt_prog_compiler_pic='+Z'
  7016. ;;
  7017. esac
  7018. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7019. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7020. ;;
  7021. irix5* | irix6* | nonstopux*)
  7022. lt_prog_compiler_wl='-Wl,'
  7023. # PIC (with -KPIC) is the default.
  7024. lt_prog_compiler_static='-non_shared'
  7025. ;;
  7026. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7027. case $cc_basename in
  7028. # old Intel for x86_64 which still supported -KPIC.
  7029. ecc*)
  7030. lt_prog_compiler_wl='-Wl,'
  7031. lt_prog_compiler_pic='-KPIC'
  7032. lt_prog_compiler_static='-static'
  7033. ;;
  7034. # icc used to be incompatible with GCC.
  7035. # ICC 10 doesn't accept -KPIC any more.
  7036. icc* | ifort*)
  7037. lt_prog_compiler_wl='-Wl,'
  7038. lt_prog_compiler_pic='-fPIC'
  7039. lt_prog_compiler_static='-static'
  7040. ;;
  7041. # Lahey Fortran 8.1.
  7042. lf95*)
  7043. lt_prog_compiler_wl='-Wl,'
  7044. lt_prog_compiler_pic='--shared'
  7045. lt_prog_compiler_static='--static'
  7046. ;;
  7047. nagfor*)
  7048. # NAG Fortran compiler
  7049. lt_prog_compiler_wl='-Wl,-Wl,,'
  7050. lt_prog_compiler_pic='-PIC'
  7051. lt_prog_compiler_static='-Bstatic'
  7052. ;;
  7053. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7054. # Portland Group compilers (*not* the Pentium gcc compiler,
  7055. # which looks to be a dead project)
  7056. lt_prog_compiler_wl='-Wl,'
  7057. lt_prog_compiler_pic='-fpic'
  7058. lt_prog_compiler_static='-Bstatic'
  7059. ;;
  7060. ccc*)
  7061. lt_prog_compiler_wl='-Wl,'
  7062. # All Alpha code is PIC.
  7063. lt_prog_compiler_static='-non_shared'
  7064. ;;
  7065. xl* | bgxl* | bgf* | mpixl*)
  7066. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7067. lt_prog_compiler_wl='-Wl,'
  7068. lt_prog_compiler_pic='-qpic'
  7069. lt_prog_compiler_static='-qstaticlink'
  7070. ;;
  7071. *)
  7072. case `$CC -V 2>&1 | sed 5q` in
  7073. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7074. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7075. lt_prog_compiler_pic='-KPIC'
  7076. lt_prog_compiler_static='-Bstatic'
  7077. lt_prog_compiler_wl=''
  7078. ;;
  7079. *Sun\ F* | *Sun*Fortran*)
  7080. lt_prog_compiler_pic='-KPIC'
  7081. lt_prog_compiler_static='-Bstatic'
  7082. lt_prog_compiler_wl='-Qoption ld '
  7083. ;;
  7084. *Sun\ C*)
  7085. # Sun C 5.9
  7086. lt_prog_compiler_pic='-KPIC'
  7087. lt_prog_compiler_static='-Bstatic'
  7088. lt_prog_compiler_wl='-Wl,'
  7089. ;;
  7090. *Intel*\ [CF]*Compiler*)
  7091. lt_prog_compiler_wl='-Wl,'
  7092. lt_prog_compiler_pic='-fPIC'
  7093. lt_prog_compiler_static='-static'
  7094. ;;
  7095. *Portland\ Group*)
  7096. lt_prog_compiler_wl='-Wl,'
  7097. lt_prog_compiler_pic='-fpic'
  7098. lt_prog_compiler_static='-Bstatic'
  7099. ;;
  7100. esac
  7101. ;;
  7102. esac
  7103. ;;
  7104. newsos6)
  7105. lt_prog_compiler_pic='-KPIC'
  7106. lt_prog_compiler_static='-Bstatic'
  7107. ;;
  7108. *nto* | *qnx*)
  7109. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7110. # it will coredump.
  7111. lt_prog_compiler_pic='-fPIC -shared'
  7112. ;;
  7113. osf3* | osf4* | osf5*)
  7114. lt_prog_compiler_wl='-Wl,'
  7115. # All OSF/1 code is PIC.
  7116. lt_prog_compiler_static='-non_shared'
  7117. ;;
  7118. rdos*)
  7119. lt_prog_compiler_static='-non_shared'
  7120. ;;
  7121. solaris*)
  7122. lt_prog_compiler_pic='-KPIC'
  7123. lt_prog_compiler_static='-Bstatic'
  7124. case $cc_basename in
  7125. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7126. lt_prog_compiler_wl='-Qoption ld ';;
  7127. *)
  7128. lt_prog_compiler_wl='-Wl,';;
  7129. esac
  7130. ;;
  7131. sunos4*)
  7132. lt_prog_compiler_wl='-Qoption ld '
  7133. lt_prog_compiler_pic='-PIC'
  7134. lt_prog_compiler_static='-Bstatic'
  7135. ;;
  7136. sysv4 | sysv4.2uw2* | sysv4.3*)
  7137. lt_prog_compiler_wl='-Wl,'
  7138. lt_prog_compiler_pic='-KPIC'
  7139. lt_prog_compiler_static='-Bstatic'
  7140. ;;
  7141. sysv4*MP*)
  7142. if test -d /usr/nec ;then
  7143. lt_prog_compiler_pic='-Kconform_pic'
  7144. lt_prog_compiler_static='-Bstatic'
  7145. fi
  7146. ;;
  7147. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7148. lt_prog_compiler_wl='-Wl,'
  7149. lt_prog_compiler_pic='-KPIC'
  7150. lt_prog_compiler_static='-Bstatic'
  7151. ;;
  7152. unicos*)
  7153. lt_prog_compiler_wl='-Wl,'
  7154. lt_prog_compiler_can_build_shared=no
  7155. ;;
  7156. uts4*)
  7157. lt_prog_compiler_pic='-pic'
  7158. lt_prog_compiler_static='-Bstatic'
  7159. ;;
  7160. *)
  7161. lt_prog_compiler_can_build_shared=no
  7162. ;;
  7163. esac
  7164. fi
  7165. case $host_os in
  7166. # For platforms which do not support PIC, -DPIC is meaningless:
  7167. *djgpp*)
  7168. lt_prog_compiler_pic=
  7169. ;;
  7170. *)
  7171. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7172. ;;
  7173. esac
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7175. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7176. if ${lt_cv_prog_compiler_pic+:} false; then :
  7177. $as_echo_n "(cached) " >&6
  7178. else
  7179. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7180. fi
  7181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7182. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7183. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7184. #
  7185. # Check to make sure the PIC flag actually works.
  7186. #
  7187. if test -n "$lt_prog_compiler_pic"; then
  7188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7189. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7190. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7191. $as_echo_n "(cached) " >&6
  7192. else
  7193. lt_cv_prog_compiler_pic_works=no
  7194. ac_outfile=conftest.$ac_objext
  7195. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7196. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7197. # Insert the option either (1) after the last *FLAGS variable, or
  7198. # (2) before a word containing "conftest.", or (3) at the end.
  7199. # Note that $ac_compile itself does not contain backslashes and begins
  7200. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7201. # The option is referenced via a variable to avoid confusing sed.
  7202. lt_compile=`echo "$ac_compile" | $SED \
  7203. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7204. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7205. -e 's:$: $lt_compiler_flag:'`
  7206. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7207. (eval "$lt_compile" 2>conftest.err)
  7208. ac_status=$?
  7209. cat conftest.err >&5
  7210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7211. if (exit $ac_status) && test -s "$ac_outfile"; then
  7212. # The compiler can only warn and ignore the option if not recognized
  7213. # So say no if there are warnings other than the usual output.
  7214. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7215. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7216. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7217. lt_cv_prog_compiler_pic_works=yes
  7218. fi
  7219. fi
  7220. $RM conftest*
  7221. fi
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7223. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7224. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7225. case $lt_prog_compiler_pic in
  7226. "" | " "*) ;;
  7227. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7228. esac
  7229. else
  7230. lt_prog_compiler_pic=
  7231. lt_prog_compiler_can_build_shared=no
  7232. fi
  7233. fi
  7234. #
  7235. # Check to make sure the static flag actually works.
  7236. #
  7237. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7239. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7240. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7241. $as_echo_n "(cached) " >&6
  7242. else
  7243. lt_cv_prog_compiler_static_works=no
  7244. save_LDFLAGS="$LDFLAGS"
  7245. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7246. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7247. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7248. # The linker can only warn and ignore the option if not recognized
  7249. # So say no if there are warnings
  7250. if test -s conftest.err; then
  7251. # Append any errors to the config.log.
  7252. cat conftest.err 1>&5
  7253. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7254. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7255. if diff conftest.exp conftest.er2 >/dev/null; then
  7256. lt_cv_prog_compiler_static_works=yes
  7257. fi
  7258. else
  7259. lt_cv_prog_compiler_static_works=yes
  7260. fi
  7261. fi
  7262. $RM -r conftest*
  7263. LDFLAGS="$save_LDFLAGS"
  7264. fi
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7266. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7267. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7268. :
  7269. else
  7270. lt_prog_compiler_static=
  7271. fi
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7273. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7274. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7275. $as_echo_n "(cached) " >&6
  7276. else
  7277. lt_cv_prog_compiler_c_o=no
  7278. $RM -r conftest 2>/dev/null
  7279. mkdir conftest
  7280. cd conftest
  7281. mkdir out
  7282. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7283. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7284. # Insert the option either (1) after the last *FLAGS variable, or
  7285. # (2) before a word containing "conftest.", or (3) at the end.
  7286. # Note that $ac_compile itself does not contain backslashes and begins
  7287. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7288. lt_compile=`echo "$ac_compile" | $SED \
  7289. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7290. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7291. -e 's:$: $lt_compiler_flag:'`
  7292. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7293. (eval "$lt_compile" 2>out/conftest.err)
  7294. ac_status=$?
  7295. cat out/conftest.err >&5
  7296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7297. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7298. then
  7299. # The compiler can only warn and ignore the option if not recognized
  7300. # So say no if there are warnings
  7301. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7302. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7303. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7304. lt_cv_prog_compiler_c_o=yes
  7305. fi
  7306. fi
  7307. chmod u+w . 2>&5
  7308. $RM conftest*
  7309. # SGI C++ compiler will create directory out/ii_files/ for
  7310. # template instantiation
  7311. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7312. $RM out/* && rmdir out
  7313. cd ..
  7314. $RM -r conftest
  7315. $RM conftest*
  7316. fi
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7318. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7320. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7321. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7322. $as_echo_n "(cached) " >&6
  7323. else
  7324. lt_cv_prog_compiler_c_o=no
  7325. $RM -r conftest 2>/dev/null
  7326. mkdir conftest
  7327. cd conftest
  7328. mkdir out
  7329. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7330. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7331. # Insert the option either (1) after the last *FLAGS variable, or
  7332. # (2) before a word containing "conftest.", or (3) at the end.
  7333. # Note that $ac_compile itself does not contain backslashes and begins
  7334. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7335. lt_compile=`echo "$ac_compile" | $SED \
  7336. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7337. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7338. -e 's:$: $lt_compiler_flag:'`
  7339. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7340. (eval "$lt_compile" 2>out/conftest.err)
  7341. ac_status=$?
  7342. cat out/conftest.err >&5
  7343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7344. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7345. then
  7346. # The compiler can only warn and ignore the option if not recognized
  7347. # So say no if there are warnings
  7348. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7349. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7350. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7351. lt_cv_prog_compiler_c_o=yes
  7352. fi
  7353. fi
  7354. chmod u+w . 2>&5
  7355. $RM conftest*
  7356. # SGI C++ compiler will create directory out/ii_files/ for
  7357. # template instantiation
  7358. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7359. $RM out/* && rmdir out
  7360. cd ..
  7361. $RM -r conftest
  7362. $RM conftest*
  7363. fi
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7365. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7366. hard_links="nottested"
  7367. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7368. # do not overwrite the value of need_locks provided by the user
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7370. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7371. hard_links=yes
  7372. $RM conftest*
  7373. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7374. touch conftest.a
  7375. ln conftest.a conftest.b 2>&5 || hard_links=no
  7376. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7378. $as_echo "$hard_links" >&6; }
  7379. if test "$hard_links" = no; then
  7380. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7381. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7382. need_locks=warn
  7383. fi
  7384. else
  7385. need_locks=no
  7386. fi
  7387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7388. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7389. runpath_var=
  7390. allow_undefined_flag=
  7391. always_export_symbols=no
  7392. archive_cmds=
  7393. archive_expsym_cmds=
  7394. compiler_needs_object=no
  7395. enable_shared_with_static_runtimes=no
  7396. export_dynamic_flag_spec=
  7397. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7398. hardcode_automatic=no
  7399. hardcode_direct=no
  7400. hardcode_direct_absolute=no
  7401. hardcode_libdir_flag_spec=
  7402. hardcode_libdir_separator=
  7403. hardcode_minus_L=no
  7404. hardcode_shlibpath_var=unsupported
  7405. inherit_rpath=no
  7406. link_all_deplibs=unknown
  7407. module_cmds=
  7408. module_expsym_cmds=
  7409. old_archive_from_new_cmds=
  7410. old_archive_from_expsyms_cmds=
  7411. thread_safe_flag_spec=
  7412. whole_archive_flag_spec=
  7413. # include_expsyms should be a list of space-separated symbols to be *always*
  7414. # included in the symbol list
  7415. include_expsyms=
  7416. # exclude_expsyms can be an extended regexp of symbols to exclude
  7417. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7418. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7419. # as well as any symbol that contains `d'.
  7420. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7421. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7422. # platforms (ab)use it in PIC code, but their linkers get confused if
  7423. # the symbol is explicitly referenced. Since portable code cannot
  7424. # rely on this symbol name, it's probably fine to never include it in
  7425. # preloaded symbol tables.
  7426. # Exclude shared library initialization/finalization symbols.
  7427. extract_expsyms_cmds=
  7428. case $host_os in
  7429. cygwin* | mingw* | pw32* | cegcc*)
  7430. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7431. # When not using gcc, we currently assume that we are using
  7432. # Microsoft Visual C++.
  7433. if test "$GCC" != yes; then
  7434. with_gnu_ld=no
  7435. fi
  7436. ;;
  7437. interix*)
  7438. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7439. with_gnu_ld=yes
  7440. ;;
  7441. openbsd*)
  7442. with_gnu_ld=no
  7443. ;;
  7444. esac
  7445. ld_shlibs=yes
  7446. # On some targets, GNU ld is compatible enough with the native linker
  7447. # that we're better off using the native interface for both.
  7448. lt_use_gnu_ld_interface=no
  7449. if test "$with_gnu_ld" = yes; then
  7450. case $host_os in
  7451. aix*)
  7452. # The AIX port of GNU ld has always aspired to compatibility
  7453. # with the native linker. However, as the warning in the GNU ld
  7454. # block says, versions before 2.19.5* couldn't really create working
  7455. # shared libraries, regardless of the interface used.
  7456. case `$LD -v 2>&1` in
  7457. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7458. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7459. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7460. *)
  7461. lt_use_gnu_ld_interface=yes
  7462. ;;
  7463. esac
  7464. ;;
  7465. *)
  7466. lt_use_gnu_ld_interface=yes
  7467. ;;
  7468. esac
  7469. fi
  7470. if test "$lt_use_gnu_ld_interface" = yes; then
  7471. # If archive_cmds runs LD, not CC, wlarc should be empty
  7472. wlarc='${wl}'
  7473. # Set some defaults for GNU ld with shared library support. These
  7474. # are reset later if shared libraries are not supported. Putting them
  7475. # here allows them to be overridden if necessary.
  7476. runpath_var=LD_RUN_PATH
  7477. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7478. export_dynamic_flag_spec='${wl}--export-dynamic'
  7479. # ancient GNU ld didn't support --whole-archive et. al.
  7480. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7481. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7482. else
  7483. whole_archive_flag_spec=
  7484. fi
  7485. supports_anon_versioning=no
  7486. case `$LD -v 2>&1` in
  7487. *GNU\ gold*) supports_anon_versioning=yes ;;
  7488. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7489. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7490. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7491. *\ 2.11.*) ;; # other 2.11 versions
  7492. *) supports_anon_versioning=yes ;;
  7493. esac
  7494. # See if GNU ld supports shared libraries.
  7495. case $host_os in
  7496. aix[3-9]*)
  7497. # On AIX/PPC, the GNU linker is very broken
  7498. if test "$host_cpu" != ia64; then
  7499. ld_shlibs=no
  7500. cat <<_LT_EOF 1>&2
  7501. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7502. *** to be unable to reliably create shared libraries on AIX.
  7503. *** Therefore, libtool is disabling shared libraries support. If you
  7504. *** really care for shared libraries, you may want to install binutils
  7505. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7506. *** You will then need to restart the configuration process.
  7507. _LT_EOF
  7508. fi
  7509. ;;
  7510. amigaos*)
  7511. case $host_cpu in
  7512. powerpc)
  7513. # see comment about AmigaOS4 .so support
  7514. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7515. archive_expsym_cmds=''
  7516. ;;
  7517. m68k)
  7518. 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)'
  7519. hardcode_libdir_flag_spec='-L$libdir'
  7520. hardcode_minus_L=yes
  7521. ;;
  7522. esac
  7523. ;;
  7524. beos*)
  7525. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7526. allow_undefined_flag=unsupported
  7527. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7528. # support --undefined. This deserves some investigation. FIXME
  7529. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7530. else
  7531. ld_shlibs=no
  7532. fi
  7533. ;;
  7534. cygwin* | mingw* | pw32* | cegcc*)
  7535. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7536. # as there is no search path for DLLs.
  7537. hardcode_libdir_flag_spec='-L$libdir'
  7538. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7539. allow_undefined_flag=unsupported
  7540. always_export_symbols=no
  7541. enable_shared_with_static_runtimes=yes
  7542. 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'
  7543. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7544. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7545. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7546. # If the export-symbols file already is a .def file (1st line
  7547. # is EXPORTS), use it as is; otherwise, prepend...
  7548. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7549. cp $export_symbols $output_objdir/$soname.def;
  7550. else
  7551. echo EXPORTS > $output_objdir/$soname.def;
  7552. cat $export_symbols >> $output_objdir/$soname.def;
  7553. fi~
  7554. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7555. else
  7556. ld_shlibs=no
  7557. fi
  7558. ;;
  7559. haiku*)
  7560. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7561. link_all_deplibs=yes
  7562. ;;
  7563. interix[3-9]*)
  7564. hardcode_direct=no
  7565. hardcode_shlibpath_var=no
  7566. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7567. export_dynamic_flag_spec='${wl}-E'
  7568. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7569. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7570. # default) and relocated if they conflict, which is a slow very memory
  7571. # consuming and fragmenting process. To avoid this, we pick a random,
  7572. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7573. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7574. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7575. 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'
  7576. ;;
  7577. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7578. tmp_diet=no
  7579. if test "$host_os" = linux-dietlibc; then
  7580. case $cc_basename in
  7581. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7582. esac
  7583. fi
  7584. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7585. && test "$tmp_diet" = no
  7586. then
  7587. tmp_addflag=' $pic_flag'
  7588. tmp_sharedflag='-shared'
  7589. case $cc_basename,$host_cpu in
  7590. pgcc*) # Portland Group C compiler
  7591. 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'
  7592. tmp_addflag=' $pic_flag'
  7593. ;;
  7594. pgf77* | pgf90* | pgf95* | pgfortran*)
  7595. # Portland Group f77 and f90 compilers
  7596. 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'
  7597. tmp_addflag=' $pic_flag -Mnomain' ;;
  7598. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7599. tmp_addflag=' -i_dynamic' ;;
  7600. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7601. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7602. ifc* | ifort*) # Intel Fortran compiler
  7603. tmp_addflag=' -nofor_main' ;;
  7604. lf95*) # Lahey Fortran 8.1
  7605. whole_archive_flag_spec=
  7606. tmp_sharedflag='--shared' ;;
  7607. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7608. tmp_sharedflag='-qmkshrobj'
  7609. tmp_addflag= ;;
  7610. nvcc*) # Cuda Compiler Driver 2.2
  7611. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7612. compiler_needs_object=yes
  7613. ;;
  7614. esac
  7615. case `$CC -V 2>&1 | sed 5q` in
  7616. *Sun\ C*) # Sun C 5.9
  7617. 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'
  7618. compiler_needs_object=yes
  7619. tmp_sharedflag='-G' ;;
  7620. *Sun\ F*) # Sun Fortran 8.3
  7621. tmp_sharedflag='-G' ;;
  7622. esac
  7623. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7624. if test "x$supports_anon_versioning" = xyes; then
  7625. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7626. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7627. echo "local: *; };" >> $output_objdir/$libname.ver~
  7628. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7629. fi
  7630. case $cc_basename in
  7631. xlf* | bgf* | bgxlf* | mpixlf*)
  7632. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7633. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7634. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7635. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7636. if test "x$supports_anon_versioning" = xyes; then
  7637. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7638. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7639. echo "local: *; };" >> $output_objdir/$libname.ver~
  7640. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7641. fi
  7642. ;;
  7643. esac
  7644. else
  7645. ld_shlibs=no
  7646. fi
  7647. ;;
  7648. netbsd*)
  7649. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7650. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7651. wlarc=
  7652. else
  7653. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7654. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7655. fi
  7656. ;;
  7657. solaris*)
  7658. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7659. ld_shlibs=no
  7660. cat <<_LT_EOF 1>&2
  7661. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7662. *** create shared libraries on Solaris systems. Therefore, libtool
  7663. *** is disabling shared libraries support. We urge you to upgrade GNU
  7664. *** binutils to release 2.9.1 or newer. Another option is to modify
  7665. *** your PATH or compiler configuration so that the native linker is
  7666. *** used, and then restart.
  7667. _LT_EOF
  7668. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7669. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7670. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7671. else
  7672. ld_shlibs=no
  7673. fi
  7674. ;;
  7675. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7676. case `$LD -v 2>&1` in
  7677. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7678. ld_shlibs=no
  7679. cat <<_LT_EOF 1>&2
  7680. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7681. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7682. *** is disabling shared libraries support. We urge you to upgrade GNU
  7683. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7684. *** your PATH or compiler configuration so that the native linker is
  7685. *** used, and then restart.
  7686. _LT_EOF
  7687. ;;
  7688. *)
  7689. # For security reasons, it is highly recommended that you always
  7690. # use absolute paths for naming shared libraries, and exclude the
  7691. # DT_RUNPATH tag from executables and libraries. But doing so
  7692. # requires that you compile everything twice, which is a pain.
  7693. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7694. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7695. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7696. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7697. else
  7698. ld_shlibs=no
  7699. fi
  7700. ;;
  7701. esac
  7702. ;;
  7703. sunos4*)
  7704. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7705. wlarc=
  7706. hardcode_direct=yes
  7707. hardcode_shlibpath_var=no
  7708. ;;
  7709. *)
  7710. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7711. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7712. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7713. else
  7714. ld_shlibs=no
  7715. fi
  7716. ;;
  7717. esac
  7718. if test "$ld_shlibs" = no; then
  7719. runpath_var=
  7720. hardcode_libdir_flag_spec=
  7721. export_dynamic_flag_spec=
  7722. whole_archive_flag_spec=
  7723. fi
  7724. else
  7725. # PORTME fill in a description of your system's linker (not GNU ld)
  7726. case $host_os in
  7727. aix3*)
  7728. allow_undefined_flag=unsupported
  7729. always_export_symbols=yes
  7730. 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'
  7731. # Note: this linker hardcodes the directories in LIBPATH if there
  7732. # are no directories specified by -L.
  7733. hardcode_minus_L=yes
  7734. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7735. # Neither direct hardcoding nor static linking is supported with a
  7736. # broken collect2.
  7737. hardcode_direct=unsupported
  7738. fi
  7739. ;;
  7740. aix[4-9]*)
  7741. if test "$host_cpu" = ia64; then
  7742. # On IA64, the linker does run time linking by default, so we don't
  7743. # have to do anything special.
  7744. aix_use_runtimelinking=no
  7745. exp_sym_flag='-Bexport'
  7746. no_entry_flag=""
  7747. else
  7748. # If we're using GNU nm, then we don't want the "-C" option.
  7749. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7750. # Also, AIX nm treats weak defined symbols like other global
  7751. # defined symbols, whereas GNU nm marks them as "W".
  7752. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7753. 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'
  7754. else
  7755. 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'
  7756. fi
  7757. aix_use_runtimelinking=no
  7758. # Test if we are trying to use run time linking or normal
  7759. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7760. # need to do runtime linking.
  7761. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7762. for ld_flag in $LDFLAGS; do
  7763. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7764. aix_use_runtimelinking=yes
  7765. break
  7766. fi
  7767. done
  7768. ;;
  7769. esac
  7770. exp_sym_flag='-bexport'
  7771. no_entry_flag='-bnoentry'
  7772. fi
  7773. # When large executables or shared objects are built, AIX ld can
  7774. # have problems creating the table of contents. If linking a library
  7775. # or program results in "error TOC overflow" add -mminimal-toc to
  7776. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7777. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7778. archive_cmds=''
  7779. hardcode_direct=yes
  7780. hardcode_direct_absolute=yes
  7781. hardcode_libdir_separator=':'
  7782. link_all_deplibs=yes
  7783. file_list_spec='${wl}-f,'
  7784. if test "$GCC" = yes; then
  7785. case $host_os in aix4.[012]|aix4.[012].*)
  7786. # We only want to do this on AIX 4.2 and lower, the check
  7787. # below for broken collect2 doesn't work under 4.3+
  7788. collect2name=`${CC} -print-prog-name=collect2`
  7789. if test -f "$collect2name" &&
  7790. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7791. then
  7792. # We have reworked collect2
  7793. :
  7794. else
  7795. # We have old collect2
  7796. hardcode_direct=unsupported
  7797. # It fails to find uninstalled libraries when the uninstalled
  7798. # path is not listed in the libpath. Setting hardcode_minus_L
  7799. # to unsupported forces relinking
  7800. hardcode_minus_L=yes
  7801. hardcode_libdir_flag_spec='-L$libdir'
  7802. hardcode_libdir_separator=
  7803. fi
  7804. ;;
  7805. esac
  7806. shared_flag='-shared'
  7807. if test "$aix_use_runtimelinking" = yes; then
  7808. shared_flag="$shared_flag "'${wl}-G'
  7809. fi
  7810. else
  7811. # not using gcc
  7812. if test "$host_cpu" = ia64; then
  7813. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7814. # chokes on -Wl,-G. The following line is correct:
  7815. shared_flag='-G'
  7816. else
  7817. if test "$aix_use_runtimelinking" = yes; then
  7818. shared_flag='${wl}-G'
  7819. else
  7820. shared_flag='${wl}-bM:SRE'
  7821. fi
  7822. fi
  7823. fi
  7824. export_dynamic_flag_spec='${wl}-bexpall'
  7825. # It seems that -bexpall does not export symbols beginning with
  7826. # underscore (_), so it is better to generate a list of symbols to export.
  7827. always_export_symbols=yes
  7828. if test "$aix_use_runtimelinking" = yes; then
  7829. # Warning - without using the other runtime loading flags (-brtl),
  7830. # -berok will link without error, but may produce a broken library.
  7831. allow_undefined_flag='-berok'
  7832. # Determine the default libpath from the value encoded in an
  7833. # empty executable.
  7834. if test "${lt_cv_aix_libpath+set}" = set; then
  7835. aix_libpath=$lt_cv_aix_libpath
  7836. else
  7837. if ${lt_cv_aix_libpath_+:} false; then :
  7838. $as_echo_n "(cached) " >&6
  7839. else
  7840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7841. /* end confdefs.h. */
  7842. int
  7843. main ()
  7844. {
  7845. ;
  7846. return 0;
  7847. }
  7848. _ACEOF
  7849. if ac_fn_c_try_link "$LINENO"; then :
  7850. lt_aix_libpath_sed='
  7851. /Import File Strings/,/^$/ {
  7852. /^0/ {
  7853. s/^0 *\([^ ]*\) *$/\1/
  7854. p
  7855. }
  7856. }'
  7857. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7858. # Check for a 64-bit object if we didn't find anything.
  7859. if test -z "$lt_cv_aix_libpath_"; then
  7860. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7861. fi
  7862. fi
  7863. rm -f core conftest.err conftest.$ac_objext \
  7864. conftest$ac_exeext conftest.$ac_ext
  7865. if test -z "$lt_cv_aix_libpath_"; then
  7866. lt_cv_aix_libpath_="/usr/lib:/lib"
  7867. fi
  7868. fi
  7869. aix_libpath=$lt_cv_aix_libpath_
  7870. fi
  7871. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7872. 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"
  7873. else
  7874. if test "$host_cpu" = ia64; then
  7875. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7876. allow_undefined_flag="-z nodefs"
  7877. 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"
  7878. else
  7879. # Determine the default libpath from the value encoded in an
  7880. # empty executable.
  7881. if test "${lt_cv_aix_libpath+set}" = set; then
  7882. aix_libpath=$lt_cv_aix_libpath
  7883. else
  7884. if ${lt_cv_aix_libpath_+:} false; then :
  7885. $as_echo_n "(cached) " >&6
  7886. else
  7887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7888. /* end confdefs.h. */
  7889. int
  7890. main ()
  7891. {
  7892. ;
  7893. return 0;
  7894. }
  7895. _ACEOF
  7896. if ac_fn_c_try_link "$LINENO"; then :
  7897. lt_aix_libpath_sed='
  7898. /Import File Strings/,/^$/ {
  7899. /^0/ {
  7900. s/^0 *\([^ ]*\) *$/\1/
  7901. p
  7902. }
  7903. }'
  7904. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7905. # Check for a 64-bit object if we didn't find anything.
  7906. if test -z "$lt_cv_aix_libpath_"; then
  7907. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7908. fi
  7909. fi
  7910. rm -f core conftest.err conftest.$ac_objext \
  7911. conftest$ac_exeext conftest.$ac_ext
  7912. if test -z "$lt_cv_aix_libpath_"; then
  7913. lt_cv_aix_libpath_="/usr/lib:/lib"
  7914. fi
  7915. fi
  7916. aix_libpath=$lt_cv_aix_libpath_
  7917. fi
  7918. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7919. # Warning - without using the other run time loading flags,
  7920. # -berok will link without error, but may produce a broken library.
  7921. no_undefined_flag=' ${wl}-bernotok'
  7922. allow_undefined_flag=' ${wl}-berok'
  7923. if test "$with_gnu_ld" = yes; then
  7924. # We only use this code for GNU lds that support --whole-archive.
  7925. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7926. else
  7927. # Exported symbols can be pulled into shared objects from archives
  7928. whole_archive_flag_spec='$convenience'
  7929. fi
  7930. archive_cmds_need_lc=yes
  7931. # This is similar to how AIX traditionally builds its shared libraries.
  7932. 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'
  7933. fi
  7934. fi
  7935. ;;
  7936. amigaos*)
  7937. case $host_cpu in
  7938. powerpc)
  7939. # see comment about AmigaOS4 .so support
  7940. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7941. archive_expsym_cmds=''
  7942. ;;
  7943. m68k)
  7944. 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)'
  7945. hardcode_libdir_flag_spec='-L$libdir'
  7946. hardcode_minus_L=yes
  7947. ;;
  7948. esac
  7949. ;;
  7950. bsdi[45]*)
  7951. export_dynamic_flag_spec=-rdynamic
  7952. ;;
  7953. cygwin* | mingw* | pw32* | cegcc*)
  7954. # When not using gcc, we currently assume that we are using
  7955. # Microsoft Visual C++.
  7956. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7957. # no search path for DLLs.
  7958. case $cc_basename in
  7959. cl*)
  7960. # Native MSVC
  7961. hardcode_libdir_flag_spec=' '
  7962. allow_undefined_flag=unsupported
  7963. always_export_symbols=yes
  7964. file_list_spec='@'
  7965. # Tell ltmain to make .lib files, not .a files.
  7966. libext=lib
  7967. # Tell ltmain to make .dll files, not .so files.
  7968. shrext_cmds=".dll"
  7969. # FIXME: Setting linknames here is a bad hack.
  7970. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7971. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7972. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7973. else
  7974. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7975. fi~
  7976. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7977. linknames='
  7978. # The linker will not automatically build a static lib if we build a DLL.
  7979. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7980. enable_shared_with_static_runtimes=yes
  7981. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7982. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7983. # Don't use ranlib
  7984. old_postinstall_cmds='chmod 644 $oldlib'
  7985. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7986. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7987. case $lt_outputfile in
  7988. *.exe|*.EXE) ;;
  7989. *)
  7990. lt_outputfile="$lt_outputfile.exe"
  7991. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7992. ;;
  7993. esac~
  7994. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7995. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7996. $RM "$lt_outputfile.manifest";
  7997. fi'
  7998. ;;
  7999. *)
  8000. # Assume MSVC wrapper
  8001. hardcode_libdir_flag_spec=' '
  8002. allow_undefined_flag=unsupported
  8003. # Tell ltmain to make .lib files, not .a files.
  8004. libext=lib
  8005. # Tell ltmain to make .dll files, not .so files.
  8006. shrext_cmds=".dll"
  8007. # FIXME: Setting linknames here is a bad hack.
  8008. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8009. # The linker will automatically build a .lib file if we build a DLL.
  8010. old_archive_from_new_cmds='true'
  8011. # FIXME: Should let the user specify the lib program.
  8012. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8013. enable_shared_with_static_runtimes=yes
  8014. ;;
  8015. esac
  8016. ;;
  8017. darwin* | rhapsody*)
  8018. archive_cmds_need_lc=no
  8019. hardcode_direct=no
  8020. hardcode_automatic=yes
  8021. hardcode_shlibpath_var=unsupported
  8022. if test "$lt_cv_ld_force_load" = "yes"; then
  8023. 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\"`'
  8024. else
  8025. whole_archive_flag_spec=''
  8026. fi
  8027. link_all_deplibs=yes
  8028. allow_undefined_flag="$_lt_dar_allow_undefined"
  8029. case $cc_basename in
  8030. ifort*) _lt_dar_can_shared=yes ;;
  8031. *) _lt_dar_can_shared=$GCC ;;
  8032. esac
  8033. if test "$_lt_dar_can_shared" = "yes"; then
  8034. output_verbose_link_cmd=func_echo_all
  8035. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8036. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8037. 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}"
  8038. 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}"
  8039. else
  8040. ld_shlibs=no
  8041. fi
  8042. ;;
  8043. dgux*)
  8044. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8045. hardcode_libdir_flag_spec='-L$libdir'
  8046. hardcode_shlibpath_var=no
  8047. ;;
  8048. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8049. # support. Future versions do this automatically, but an explicit c++rt0.o
  8050. # does not break anything, and helps significantly (at the cost of a little
  8051. # extra space).
  8052. freebsd2.2*)
  8053. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8054. hardcode_libdir_flag_spec='-R$libdir'
  8055. hardcode_direct=yes
  8056. hardcode_shlibpath_var=no
  8057. ;;
  8058. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8059. freebsd2.*)
  8060. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8061. hardcode_direct=yes
  8062. hardcode_minus_L=yes
  8063. hardcode_shlibpath_var=no
  8064. ;;
  8065. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8066. freebsd* | dragonfly*)
  8067. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8068. hardcode_libdir_flag_spec='-R$libdir'
  8069. hardcode_direct=yes
  8070. hardcode_shlibpath_var=no
  8071. ;;
  8072. hpux9*)
  8073. if test "$GCC" = yes; then
  8074. 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'
  8075. else
  8076. 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'
  8077. fi
  8078. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8079. hardcode_libdir_separator=:
  8080. hardcode_direct=yes
  8081. # hardcode_minus_L: Not really in the search PATH,
  8082. # but as the default location of the library.
  8083. hardcode_minus_L=yes
  8084. export_dynamic_flag_spec='${wl}-E'
  8085. ;;
  8086. hpux10*)
  8087. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8088. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8089. else
  8090. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8091. fi
  8092. if test "$with_gnu_ld" = no; then
  8093. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8094. hardcode_libdir_separator=:
  8095. hardcode_direct=yes
  8096. hardcode_direct_absolute=yes
  8097. export_dynamic_flag_spec='${wl}-E'
  8098. # hardcode_minus_L: Not really in the search PATH,
  8099. # but as the default location of the library.
  8100. hardcode_minus_L=yes
  8101. fi
  8102. ;;
  8103. hpux11*)
  8104. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8105. case $host_cpu in
  8106. hppa*64*)
  8107. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8108. ;;
  8109. ia64*)
  8110. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8111. ;;
  8112. *)
  8113. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8114. ;;
  8115. esac
  8116. else
  8117. case $host_cpu in
  8118. hppa*64*)
  8119. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8120. ;;
  8121. ia64*)
  8122. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8123. ;;
  8124. *)
  8125. # Older versions of the 11.00 compiler do not understand -b yet
  8126. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8128. $as_echo_n "checking if $CC understands -b... " >&6; }
  8129. if ${lt_cv_prog_compiler__b+:} false; then :
  8130. $as_echo_n "(cached) " >&6
  8131. else
  8132. lt_cv_prog_compiler__b=no
  8133. save_LDFLAGS="$LDFLAGS"
  8134. LDFLAGS="$LDFLAGS -b"
  8135. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8136. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8137. # The linker can only warn and ignore the option if not recognized
  8138. # So say no if there are warnings
  8139. if test -s conftest.err; then
  8140. # Append any errors to the config.log.
  8141. cat conftest.err 1>&5
  8142. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8143. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8144. if diff conftest.exp conftest.er2 >/dev/null; then
  8145. lt_cv_prog_compiler__b=yes
  8146. fi
  8147. else
  8148. lt_cv_prog_compiler__b=yes
  8149. fi
  8150. fi
  8151. $RM -r conftest*
  8152. LDFLAGS="$save_LDFLAGS"
  8153. fi
  8154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8155. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8156. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8157. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8158. else
  8159. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8160. fi
  8161. ;;
  8162. esac
  8163. fi
  8164. if test "$with_gnu_ld" = no; then
  8165. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8166. hardcode_libdir_separator=:
  8167. case $host_cpu in
  8168. hppa*64*|ia64*)
  8169. hardcode_direct=no
  8170. hardcode_shlibpath_var=no
  8171. ;;
  8172. *)
  8173. hardcode_direct=yes
  8174. hardcode_direct_absolute=yes
  8175. export_dynamic_flag_spec='${wl}-E'
  8176. # hardcode_minus_L: Not really in the search PATH,
  8177. # but as the default location of the library.
  8178. hardcode_minus_L=yes
  8179. ;;
  8180. esac
  8181. fi
  8182. ;;
  8183. irix5* | irix6* | nonstopux*)
  8184. if test "$GCC" = yes; then
  8185. 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'
  8186. # Try to use the -exported_symbol ld option, if it does not
  8187. # work, assume that -exports_file does not work either and
  8188. # implicitly export all symbols.
  8189. # This should be the same for all languages, so no per-tag cache variable.
  8190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8191. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8192. if ${lt_cv_irix_exported_symbol+:} false; then :
  8193. $as_echo_n "(cached) " >&6
  8194. else
  8195. save_LDFLAGS="$LDFLAGS"
  8196. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8198. /* end confdefs.h. */
  8199. int foo (void) { return 0; }
  8200. _ACEOF
  8201. if ac_fn_c_try_link "$LINENO"; then :
  8202. lt_cv_irix_exported_symbol=yes
  8203. else
  8204. lt_cv_irix_exported_symbol=no
  8205. fi
  8206. rm -f core conftest.err conftest.$ac_objext \
  8207. conftest$ac_exeext conftest.$ac_ext
  8208. LDFLAGS="$save_LDFLAGS"
  8209. fi
  8210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8211. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8212. if test "$lt_cv_irix_exported_symbol" = yes; then
  8213. 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'
  8214. fi
  8215. else
  8216. 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'
  8217. 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'
  8218. fi
  8219. archive_cmds_need_lc='no'
  8220. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8221. hardcode_libdir_separator=:
  8222. inherit_rpath=yes
  8223. link_all_deplibs=yes
  8224. ;;
  8225. netbsd*)
  8226. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8227. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8228. else
  8229. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8230. fi
  8231. hardcode_libdir_flag_spec='-R$libdir'
  8232. hardcode_direct=yes
  8233. hardcode_shlibpath_var=no
  8234. ;;
  8235. newsos6)
  8236. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8237. hardcode_direct=yes
  8238. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8239. hardcode_libdir_separator=:
  8240. hardcode_shlibpath_var=no
  8241. ;;
  8242. *nto* | *qnx*)
  8243. ;;
  8244. openbsd*)
  8245. if test -f /usr/libexec/ld.so; then
  8246. hardcode_direct=yes
  8247. hardcode_shlibpath_var=no
  8248. hardcode_direct_absolute=yes
  8249. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8250. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8251. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8252. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8253. export_dynamic_flag_spec='${wl}-E'
  8254. else
  8255. case $host_os in
  8256. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8257. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8258. hardcode_libdir_flag_spec='-R$libdir'
  8259. ;;
  8260. *)
  8261. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8262. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8263. ;;
  8264. esac
  8265. fi
  8266. else
  8267. ld_shlibs=no
  8268. fi
  8269. ;;
  8270. os2*)
  8271. hardcode_libdir_flag_spec='-L$libdir'
  8272. hardcode_minus_L=yes
  8273. allow_undefined_flag=unsupported
  8274. 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'
  8275. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8276. ;;
  8277. osf3*)
  8278. if test "$GCC" = yes; then
  8279. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8280. 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'
  8281. else
  8282. allow_undefined_flag=' -expect_unresolved \*'
  8283. 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'
  8284. fi
  8285. archive_cmds_need_lc='no'
  8286. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8287. hardcode_libdir_separator=:
  8288. ;;
  8289. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8290. if test "$GCC" = yes; then
  8291. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8292. 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'
  8293. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8294. else
  8295. allow_undefined_flag=' -expect_unresolved \*'
  8296. 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'
  8297. 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~
  8298. $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'
  8299. # Both c and cxx compiler support -rpath directly
  8300. hardcode_libdir_flag_spec='-rpath $libdir'
  8301. fi
  8302. archive_cmds_need_lc='no'
  8303. hardcode_libdir_separator=:
  8304. ;;
  8305. solaris*)
  8306. no_undefined_flag=' -z defs'
  8307. if test "$GCC" = yes; then
  8308. wlarc='${wl}'
  8309. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8310. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8311. $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'
  8312. else
  8313. case `$CC -V 2>&1` in
  8314. *"Compilers 5.0"*)
  8315. wlarc=''
  8316. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8317. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8318. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8319. ;;
  8320. *)
  8321. wlarc='${wl}'
  8322. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8323. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8324. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8325. ;;
  8326. esac
  8327. fi
  8328. hardcode_libdir_flag_spec='-R$libdir'
  8329. hardcode_shlibpath_var=no
  8330. case $host_os in
  8331. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8332. *)
  8333. # The compiler driver will combine and reorder linker options,
  8334. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8335. # but is careful enough not to reorder.
  8336. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8337. if test "$GCC" = yes; then
  8338. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8339. else
  8340. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8341. fi
  8342. ;;
  8343. esac
  8344. link_all_deplibs=yes
  8345. ;;
  8346. sunos4*)
  8347. if test "x$host_vendor" = xsequent; then
  8348. # Use $CC to link under sequent, because it throws in some extra .o
  8349. # files that make .init and .fini sections work.
  8350. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8351. else
  8352. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8353. fi
  8354. hardcode_libdir_flag_spec='-L$libdir'
  8355. hardcode_direct=yes
  8356. hardcode_minus_L=yes
  8357. hardcode_shlibpath_var=no
  8358. ;;
  8359. sysv4)
  8360. case $host_vendor in
  8361. sni)
  8362. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8363. hardcode_direct=yes # is this really true???
  8364. ;;
  8365. siemens)
  8366. ## LD is ld it makes a PLAMLIB
  8367. ## CC just makes a GrossModule.
  8368. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8369. reload_cmds='$CC -r -o $output$reload_objs'
  8370. hardcode_direct=no
  8371. ;;
  8372. motorola)
  8373. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8374. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8375. ;;
  8376. esac
  8377. runpath_var='LD_RUN_PATH'
  8378. hardcode_shlibpath_var=no
  8379. ;;
  8380. sysv4.3*)
  8381. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8382. hardcode_shlibpath_var=no
  8383. export_dynamic_flag_spec='-Bexport'
  8384. ;;
  8385. sysv4*MP*)
  8386. if test -d /usr/nec; then
  8387. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8388. hardcode_shlibpath_var=no
  8389. runpath_var=LD_RUN_PATH
  8390. hardcode_runpath_var=yes
  8391. ld_shlibs=yes
  8392. fi
  8393. ;;
  8394. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8395. no_undefined_flag='${wl}-z,text'
  8396. archive_cmds_need_lc=no
  8397. hardcode_shlibpath_var=no
  8398. runpath_var='LD_RUN_PATH'
  8399. if test "$GCC" = yes; then
  8400. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8401. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8402. else
  8403. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8404. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8405. fi
  8406. ;;
  8407. sysv5* | sco3.2v5* | sco5v6*)
  8408. # Note: We can NOT use -z defs as we might desire, because we do not
  8409. # link with -lc, and that would cause any symbols used from libc to
  8410. # always be unresolved, which means just about no library would
  8411. # ever link correctly. If we're not using GNU ld we use -z text
  8412. # though, which does catch some bad symbols but isn't as heavy-handed
  8413. # as -z defs.
  8414. no_undefined_flag='${wl}-z,text'
  8415. allow_undefined_flag='${wl}-z,nodefs'
  8416. archive_cmds_need_lc=no
  8417. hardcode_shlibpath_var=no
  8418. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8419. hardcode_libdir_separator=':'
  8420. link_all_deplibs=yes
  8421. export_dynamic_flag_spec='${wl}-Bexport'
  8422. runpath_var='LD_RUN_PATH'
  8423. if test "$GCC" = yes; then
  8424. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8425. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8426. else
  8427. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8428. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8429. fi
  8430. ;;
  8431. uts4*)
  8432. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8433. hardcode_libdir_flag_spec='-L$libdir'
  8434. hardcode_shlibpath_var=no
  8435. ;;
  8436. *)
  8437. ld_shlibs=no
  8438. ;;
  8439. esac
  8440. if test x$host_vendor = xsni; then
  8441. case $host in
  8442. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8443. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8444. ;;
  8445. esac
  8446. fi
  8447. fi
  8448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8449. $as_echo "$ld_shlibs" >&6; }
  8450. test "$ld_shlibs" = no && can_build_shared=no
  8451. with_gnu_ld=$with_gnu_ld
  8452. #
  8453. # Do we need to explicitly link libc?
  8454. #
  8455. case "x$archive_cmds_need_lc" in
  8456. x|xyes)
  8457. # Assume -lc should be added
  8458. archive_cmds_need_lc=yes
  8459. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8460. case $archive_cmds in
  8461. *'~'*)
  8462. # FIXME: we may have to deal with multi-command sequences.
  8463. ;;
  8464. '$CC '*)
  8465. # Test whether the compiler implicitly links with -lc since on some
  8466. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8467. # to ld, don't add -lc before -lgcc.
  8468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8469. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8470. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8471. $as_echo_n "(cached) " >&6
  8472. else
  8473. $RM conftest*
  8474. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8475. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8476. (eval $ac_compile) 2>&5
  8477. ac_status=$?
  8478. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8479. test $ac_status = 0; } 2>conftest.err; then
  8480. soname=conftest
  8481. lib=conftest
  8482. libobjs=conftest.$ac_objext
  8483. deplibs=
  8484. wl=$lt_prog_compiler_wl
  8485. pic_flag=$lt_prog_compiler_pic
  8486. compiler_flags=-v
  8487. linker_flags=-v
  8488. verstring=
  8489. output_objdir=.
  8490. libname=conftest
  8491. lt_save_allow_undefined_flag=$allow_undefined_flag
  8492. allow_undefined_flag=
  8493. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8494. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8495. ac_status=$?
  8496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8497. test $ac_status = 0; }
  8498. then
  8499. lt_cv_archive_cmds_need_lc=no
  8500. else
  8501. lt_cv_archive_cmds_need_lc=yes
  8502. fi
  8503. allow_undefined_flag=$lt_save_allow_undefined_flag
  8504. else
  8505. cat conftest.err 1>&5
  8506. fi
  8507. $RM conftest*
  8508. fi
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8510. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8511. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8512. ;;
  8513. esac
  8514. fi
  8515. ;;
  8516. esac
  8517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8518. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8519. if test "$GCC" = yes; then
  8520. case $host_os in
  8521. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8522. *) lt_awk_arg="/^libraries:/" ;;
  8523. esac
  8524. case $host_os in
  8525. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8526. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8527. esac
  8528. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8529. case $lt_search_path_spec in
  8530. *\;*)
  8531. # if the path contains ";" then we assume it to be the separator
  8532. # otherwise default to the standard path separator (i.e. ":") - it is
  8533. # assumed that no part of a normal pathname contains ";" but that should
  8534. # okay in the real world where ";" in dirpaths is itself problematic.
  8535. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8536. ;;
  8537. *)
  8538. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8539. ;;
  8540. esac
  8541. # Ok, now we have the path, separated by spaces, we can step through it
  8542. # and add multilib dir if necessary.
  8543. lt_tmp_lt_search_path_spec=
  8544. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8545. for lt_sys_path in $lt_search_path_spec; do
  8546. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8547. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8548. else
  8549. test -d "$lt_sys_path" && \
  8550. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8551. fi
  8552. done
  8553. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8554. BEGIN {RS=" "; FS="/|\n";} {
  8555. lt_foo="";
  8556. lt_count=0;
  8557. for (lt_i = NF; lt_i > 0; lt_i--) {
  8558. if ($lt_i != "" && $lt_i != ".") {
  8559. if ($lt_i == "..") {
  8560. lt_count++;
  8561. } else {
  8562. if (lt_count == 0) {
  8563. lt_foo="/" $lt_i lt_foo;
  8564. } else {
  8565. lt_count--;
  8566. }
  8567. }
  8568. }
  8569. }
  8570. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8571. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8572. }'`
  8573. # AWK program above erroneously prepends '/' to C:/dos/paths
  8574. # for these hosts.
  8575. case $host_os in
  8576. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8577. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8578. esac
  8579. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8580. else
  8581. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8582. fi
  8583. library_names_spec=
  8584. libname_spec='lib$name'
  8585. soname_spec=
  8586. shrext_cmds=".so"
  8587. postinstall_cmds=
  8588. postuninstall_cmds=
  8589. finish_cmds=
  8590. finish_eval=
  8591. shlibpath_var=
  8592. shlibpath_overrides_runpath=unknown
  8593. version_type=none
  8594. dynamic_linker="$host_os ld.so"
  8595. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8596. need_lib_prefix=unknown
  8597. hardcode_into_libs=no
  8598. # when you set need_version to no, make sure it does not cause -set_version
  8599. # flags to be left without arguments
  8600. need_version=unknown
  8601. case $host_os in
  8602. aix3*)
  8603. version_type=linux # correct to gnu/linux during the next big refactor
  8604. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8605. shlibpath_var=LIBPATH
  8606. # AIX 3 has no versioning support, so we append a major version to the name.
  8607. soname_spec='${libname}${release}${shared_ext}$major'
  8608. ;;
  8609. aix[4-9]*)
  8610. version_type=linux # correct to gnu/linux during the next big refactor
  8611. need_lib_prefix=no
  8612. need_version=no
  8613. hardcode_into_libs=yes
  8614. if test "$host_cpu" = ia64; then
  8615. # AIX 5 supports IA64
  8616. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8617. shlibpath_var=LD_LIBRARY_PATH
  8618. else
  8619. # With GCC up to 2.95.x, collect2 would create an import file
  8620. # for dependence libraries. The import file would start with
  8621. # the line `#! .'. This would cause the generated library to
  8622. # depend on `.', always an invalid library. This was fixed in
  8623. # development snapshots of GCC prior to 3.0.
  8624. case $host_os in
  8625. aix4 | aix4.[01] | aix4.[01].*)
  8626. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8627. echo ' yes '
  8628. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8629. :
  8630. else
  8631. can_build_shared=no
  8632. fi
  8633. ;;
  8634. esac
  8635. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8636. # soname into executable. Probably we can add versioning support to
  8637. # collect2, so additional links can be useful in future.
  8638. if test "$aix_use_runtimelinking" = yes; then
  8639. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8640. # instead of lib<name>.a to let people know that these are not
  8641. # typical AIX shared libraries.
  8642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8643. else
  8644. # We preserve .a as extension for shared libraries through AIX4.2
  8645. # and later when we are not doing run time linking.
  8646. library_names_spec='${libname}${release}.a $libname.a'
  8647. soname_spec='${libname}${release}${shared_ext}$major'
  8648. fi
  8649. shlibpath_var=LIBPATH
  8650. fi
  8651. ;;
  8652. amigaos*)
  8653. case $host_cpu in
  8654. powerpc)
  8655. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8656. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8657. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8658. ;;
  8659. m68k)
  8660. library_names_spec='$libname.ixlibrary $libname.a'
  8661. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8662. 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'
  8663. ;;
  8664. esac
  8665. ;;
  8666. beos*)
  8667. library_names_spec='${libname}${shared_ext}'
  8668. dynamic_linker="$host_os ld.so"
  8669. shlibpath_var=LIBRARY_PATH
  8670. ;;
  8671. bsdi[45]*)
  8672. version_type=linux # correct to gnu/linux during the next big refactor
  8673. need_version=no
  8674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8675. soname_spec='${libname}${release}${shared_ext}$major'
  8676. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8677. shlibpath_var=LD_LIBRARY_PATH
  8678. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8679. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8680. # the default ld.so.conf also contains /usr/contrib/lib and
  8681. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8682. # libtool to hard-code these into programs
  8683. ;;
  8684. cygwin* | mingw* | pw32* | cegcc*)
  8685. version_type=windows
  8686. shrext_cmds=".dll"
  8687. need_version=no
  8688. need_lib_prefix=no
  8689. case $GCC,$cc_basename in
  8690. yes,*)
  8691. # gcc
  8692. library_names_spec='$libname.dll.a'
  8693. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8694. postinstall_cmds='base_file=`basename \${file}`~
  8695. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8696. dldir=$destdir/`dirname \$dlpath`~
  8697. test -d \$dldir || mkdir -p \$dldir~
  8698. $install_prog $dir/$dlname \$dldir/$dlname~
  8699. chmod a+x \$dldir/$dlname~
  8700. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8701. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8702. fi'
  8703. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8704. dlpath=$dir/\$dldll~
  8705. $RM \$dlpath'
  8706. shlibpath_overrides_runpath=yes
  8707. case $host_os in
  8708. cygwin*)
  8709. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8710. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8711. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8712. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8713. ;;
  8714. mingw* | cegcc*)
  8715. # MinGW DLLs use traditional 'lib' prefix
  8716. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8717. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8718. ;;
  8719. pw32*)
  8720. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8721. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8722. ;;
  8723. esac
  8724. dynamic_linker='Win32 ld.exe'
  8725. ;;
  8726. *,cl*)
  8727. # Native MSVC
  8728. libname_spec='$name'
  8729. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8730. library_names_spec='${libname}.dll.lib'
  8731. case $build_os in
  8732. mingw*)
  8733. sys_lib_search_path_spec=
  8734. lt_save_ifs=$IFS
  8735. IFS=';'
  8736. for lt_path in $LIB
  8737. do
  8738. IFS=$lt_save_ifs
  8739. # Let DOS variable expansion print the short 8.3 style file name.
  8740. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8741. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8742. done
  8743. IFS=$lt_save_ifs
  8744. # Convert to MSYS style.
  8745. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8746. ;;
  8747. cygwin*)
  8748. # Convert to unix form, then to dos form, then back to unix form
  8749. # but this time dos style (no spaces!) so that the unix form looks
  8750. # like /cygdrive/c/PROGRA~1:/cygdr...
  8751. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8752. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8753. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8754. ;;
  8755. *)
  8756. sys_lib_search_path_spec="$LIB"
  8757. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8758. # It is most probably a Windows format PATH.
  8759. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8760. else
  8761. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8762. fi
  8763. # FIXME: find the short name or the path components, as spaces are
  8764. # common. (e.g. "Program Files" -> "PROGRA~1")
  8765. ;;
  8766. esac
  8767. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8768. postinstall_cmds='base_file=`basename \${file}`~
  8769. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8770. dldir=$destdir/`dirname \$dlpath`~
  8771. test -d \$dldir || mkdir -p \$dldir~
  8772. $install_prog $dir/$dlname \$dldir/$dlname'
  8773. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8774. dlpath=$dir/\$dldll~
  8775. $RM \$dlpath'
  8776. shlibpath_overrides_runpath=yes
  8777. dynamic_linker='Win32 link.exe'
  8778. ;;
  8779. *)
  8780. # Assume MSVC wrapper
  8781. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8782. dynamic_linker='Win32 ld.exe'
  8783. ;;
  8784. esac
  8785. # FIXME: first we should search . and the directory the executable is in
  8786. shlibpath_var=PATH
  8787. ;;
  8788. darwin* | rhapsody*)
  8789. dynamic_linker="$host_os dyld"
  8790. version_type=darwin
  8791. need_lib_prefix=no
  8792. need_version=no
  8793. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8794. soname_spec='${libname}${release}${major}$shared_ext'
  8795. shlibpath_overrides_runpath=yes
  8796. shlibpath_var=DYLD_LIBRARY_PATH
  8797. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8798. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8799. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8800. ;;
  8801. dgux*)
  8802. version_type=linux # correct to gnu/linux during the next big refactor
  8803. need_lib_prefix=no
  8804. need_version=no
  8805. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8806. soname_spec='${libname}${release}${shared_ext}$major'
  8807. shlibpath_var=LD_LIBRARY_PATH
  8808. ;;
  8809. freebsd* | dragonfly*)
  8810. # DragonFly does not have aout. When/if they implement a new
  8811. # versioning mechanism, adjust this.
  8812. if test -x /usr/bin/objformat; then
  8813. objformat=`/usr/bin/objformat`
  8814. else
  8815. case $host_os in
  8816. freebsd[23].*) objformat=aout ;;
  8817. *) objformat=elf ;;
  8818. esac
  8819. fi
  8820. version_type=freebsd-$objformat
  8821. case $version_type in
  8822. freebsd-elf*)
  8823. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8824. need_version=no
  8825. need_lib_prefix=no
  8826. ;;
  8827. freebsd-*)
  8828. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8829. need_version=yes
  8830. ;;
  8831. esac
  8832. shlibpath_var=LD_LIBRARY_PATH
  8833. case $host_os in
  8834. freebsd2.*)
  8835. shlibpath_overrides_runpath=yes
  8836. ;;
  8837. freebsd3.[01]* | freebsdelf3.[01]*)
  8838. shlibpath_overrides_runpath=yes
  8839. hardcode_into_libs=yes
  8840. ;;
  8841. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8842. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8843. shlibpath_overrides_runpath=no
  8844. hardcode_into_libs=yes
  8845. ;;
  8846. *) # from 4.6 on, and DragonFly
  8847. shlibpath_overrides_runpath=yes
  8848. hardcode_into_libs=yes
  8849. ;;
  8850. esac
  8851. ;;
  8852. gnu*)
  8853. version_type=linux # correct to gnu/linux during the next big refactor
  8854. need_lib_prefix=no
  8855. need_version=no
  8856. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8857. soname_spec='${libname}${release}${shared_ext}$major'
  8858. shlibpath_var=LD_LIBRARY_PATH
  8859. shlibpath_overrides_runpath=no
  8860. hardcode_into_libs=yes
  8861. ;;
  8862. haiku*)
  8863. version_type=linux # correct to gnu/linux during the next big refactor
  8864. need_lib_prefix=no
  8865. need_version=no
  8866. dynamic_linker="$host_os runtime_loader"
  8867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8868. soname_spec='${libname}${release}${shared_ext}$major'
  8869. shlibpath_var=LIBRARY_PATH
  8870. shlibpath_overrides_runpath=yes
  8871. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8872. hardcode_into_libs=yes
  8873. ;;
  8874. hpux9* | hpux10* | hpux11*)
  8875. # Give a soname corresponding to the major version so that dld.sl refuses to
  8876. # link against other versions.
  8877. version_type=sunos
  8878. need_lib_prefix=no
  8879. need_version=no
  8880. case $host_cpu in
  8881. ia64*)
  8882. shrext_cmds='.so'
  8883. hardcode_into_libs=yes
  8884. dynamic_linker="$host_os dld.so"
  8885. shlibpath_var=LD_LIBRARY_PATH
  8886. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8888. soname_spec='${libname}${release}${shared_ext}$major'
  8889. if test "X$HPUX_IA64_MODE" = X32; then
  8890. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8891. else
  8892. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8893. fi
  8894. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8895. ;;
  8896. hppa*64*)
  8897. shrext_cmds='.sl'
  8898. hardcode_into_libs=yes
  8899. dynamic_linker="$host_os dld.sl"
  8900. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8901. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8903. soname_spec='${libname}${release}${shared_ext}$major'
  8904. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8905. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8906. ;;
  8907. *)
  8908. shrext_cmds='.sl'
  8909. dynamic_linker="$host_os dld.sl"
  8910. shlibpath_var=SHLIB_PATH
  8911. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8913. soname_spec='${libname}${release}${shared_ext}$major'
  8914. ;;
  8915. esac
  8916. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8917. postinstall_cmds='chmod 555 $lib'
  8918. # or fails outright, so override atomically:
  8919. install_override_mode=555
  8920. ;;
  8921. interix[3-9]*)
  8922. version_type=linux # correct to gnu/linux during the next big refactor
  8923. need_lib_prefix=no
  8924. need_version=no
  8925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8926. soname_spec='${libname}${release}${shared_ext}$major'
  8927. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8928. shlibpath_var=LD_LIBRARY_PATH
  8929. shlibpath_overrides_runpath=no
  8930. hardcode_into_libs=yes
  8931. ;;
  8932. irix5* | irix6* | nonstopux*)
  8933. case $host_os in
  8934. nonstopux*) version_type=nonstopux ;;
  8935. *)
  8936. if test "$lt_cv_prog_gnu_ld" = yes; then
  8937. version_type=linux # correct to gnu/linux during the next big refactor
  8938. else
  8939. version_type=irix
  8940. fi ;;
  8941. esac
  8942. need_lib_prefix=no
  8943. need_version=no
  8944. soname_spec='${libname}${release}${shared_ext}$major'
  8945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8946. case $host_os in
  8947. irix5* | nonstopux*)
  8948. libsuff= shlibsuff=
  8949. ;;
  8950. *)
  8951. case $LD in # libtool.m4 will add one of these switches to LD
  8952. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8953. libsuff= shlibsuff= libmagic=32-bit;;
  8954. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8955. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8956. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8957. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8958. *) libsuff= shlibsuff= libmagic=never-match;;
  8959. esac
  8960. ;;
  8961. esac
  8962. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8963. shlibpath_overrides_runpath=no
  8964. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8965. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8966. hardcode_into_libs=yes
  8967. ;;
  8968. # No shared lib support for Linux oldld, aout, or coff.
  8969. linux*oldld* | linux*aout* | linux*coff*)
  8970. dynamic_linker=no
  8971. ;;
  8972. # This must be glibc/ELF.
  8973. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8974. version_type=linux # correct to gnu/linux during the next big refactor
  8975. need_lib_prefix=no
  8976. need_version=no
  8977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8978. soname_spec='${libname}${release}${shared_ext}$major'
  8979. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8980. shlibpath_var=LD_LIBRARY_PATH
  8981. shlibpath_overrides_runpath=no
  8982. # Some binutils ld are patched to set DT_RUNPATH
  8983. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8984. $as_echo_n "(cached) " >&6
  8985. else
  8986. lt_cv_shlibpath_overrides_runpath=no
  8987. save_LDFLAGS=$LDFLAGS
  8988. save_libdir=$libdir
  8989. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8990. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8992. /* end confdefs.h. */
  8993. int
  8994. main ()
  8995. {
  8996. ;
  8997. return 0;
  8998. }
  8999. _ACEOF
  9000. if ac_fn_c_try_link "$LINENO"; then :
  9001. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9002. lt_cv_shlibpath_overrides_runpath=yes
  9003. fi
  9004. fi
  9005. rm -f core conftest.err conftest.$ac_objext \
  9006. conftest$ac_exeext conftest.$ac_ext
  9007. LDFLAGS=$save_LDFLAGS
  9008. libdir=$save_libdir
  9009. fi
  9010. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9011. # This implies no fast_install, which is unacceptable.
  9012. # Some rework will be needed to allow for fast_install
  9013. # before this can be enabled.
  9014. hardcode_into_libs=yes
  9015. # Append ld.so.conf contents to the search path
  9016. if test -f /etc/ld.so.conf; then
  9017. 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' ' '`
  9018. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9019. fi
  9020. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9021. # powerpc, because MkLinux only supported shared libraries with the
  9022. # GNU dynamic linker. Since this was broken with cross compilers,
  9023. # most powerpc-linux boxes support dynamic linking these days and
  9024. # people can always --disable-shared, the test was removed, and we
  9025. # assume the GNU/Linux dynamic linker is in use.
  9026. dynamic_linker='GNU/Linux ld.so'
  9027. ;;
  9028. netbsd*)
  9029. version_type=sunos
  9030. need_lib_prefix=no
  9031. need_version=no
  9032. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9034. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9035. dynamic_linker='NetBSD (a.out) ld.so'
  9036. else
  9037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9038. soname_spec='${libname}${release}${shared_ext}$major'
  9039. dynamic_linker='NetBSD ld.elf_so'
  9040. fi
  9041. shlibpath_var=LD_LIBRARY_PATH
  9042. shlibpath_overrides_runpath=yes
  9043. hardcode_into_libs=yes
  9044. ;;
  9045. newsos6)
  9046. version_type=linux # correct to gnu/linux during the next big refactor
  9047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9048. shlibpath_var=LD_LIBRARY_PATH
  9049. shlibpath_overrides_runpath=yes
  9050. ;;
  9051. *nto* | *qnx*)
  9052. version_type=qnx
  9053. need_lib_prefix=no
  9054. need_version=no
  9055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9056. soname_spec='${libname}${release}${shared_ext}$major'
  9057. shlibpath_var=LD_LIBRARY_PATH
  9058. shlibpath_overrides_runpath=no
  9059. hardcode_into_libs=yes
  9060. dynamic_linker='ldqnx.so'
  9061. ;;
  9062. openbsd*)
  9063. version_type=sunos
  9064. sys_lib_dlsearch_path_spec="/usr/lib"
  9065. need_lib_prefix=no
  9066. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9067. case $host_os in
  9068. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9069. *) need_version=no ;;
  9070. esac
  9071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9072. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9073. shlibpath_var=LD_LIBRARY_PATH
  9074. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9075. case $host_os in
  9076. openbsd2.[89] | openbsd2.[89].*)
  9077. shlibpath_overrides_runpath=no
  9078. ;;
  9079. *)
  9080. shlibpath_overrides_runpath=yes
  9081. ;;
  9082. esac
  9083. else
  9084. shlibpath_overrides_runpath=yes
  9085. fi
  9086. ;;
  9087. os2*)
  9088. libname_spec='$name'
  9089. shrext_cmds=".dll"
  9090. need_lib_prefix=no
  9091. library_names_spec='$libname${shared_ext} $libname.a'
  9092. dynamic_linker='OS/2 ld.exe'
  9093. shlibpath_var=LIBPATH
  9094. ;;
  9095. osf3* | osf4* | osf5*)
  9096. version_type=osf
  9097. need_lib_prefix=no
  9098. need_version=no
  9099. soname_spec='${libname}${release}${shared_ext}$major'
  9100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9101. shlibpath_var=LD_LIBRARY_PATH
  9102. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9103. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9104. ;;
  9105. rdos*)
  9106. dynamic_linker=no
  9107. ;;
  9108. solaris*)
  9109. version_type=linux # correct to gnu/linux during the next big refactor
  9110. need_lib_prefix=no
  9111. need_version=no
  9112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9113. soname_spec='${libname}${release}${shared_ext}$major'
  9114. shlibpath_var=LD_LIBRARY_PATH
  9115. shlibpath_overrides_runpath=yes
  9116. hardcode_into_libs=yes
  9117. # ldd complains unless libraries are executable
  9118. postinstall_cmds='chmod +x $lib'
  9119. ;;
  9120. sunos4*)
  9121. version_type=sunos
  9122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9123. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9124. shlibpath_var=LD_LIBRARY_PATH
  9125. shlibpath_overrides_runpath=yes
  9126. if test "$with_gnu_ld" = yes; then
  9127. need_lib_prefix=no
  9128. fi
  9129. need_version=yes
  9130. ;;
  9131. sysv4 | sysv4.3*)
  9132. version_type=linux # correct to gnu/linux during the next big refactor
  9133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9134. soname_spec='${libname}${release}${shared_ext}$major'
  9135. shlibpath_var=LD_LIBRARY_PATH
  9136. case $host_vendor in
  9137. sni)
  9138. shlibpath_overrides_runpath=no
  9139. need_lib_prefix=no
  9140. runpath_var=LD_RUN_PATH
  9141. ;;
  9142. siemens)
  9143. need_lib_prefix=no
  9144. ;;
  9145. motorola)
  9146. need_lib_prefix=no
  9147. need_version=no
  9148. shlibpath_overrides_runpath=no
  9149. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9150. ;;
  9151. esac
  9152. ;;
  9153. sysv4*MP*)
  9154. if test -d /usr/nec ;then
  9155. version_type=linux # correct to gnu/linux during the next big refactor
  9156. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9157. soname_spec='$libname${shared_ext}.$major'
  9158. shlibpath_var=LD_LIBRARY_PATH
  9159. fi
  9160. ;;
  9161. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9162. version_type=freebsd-elf
  9163. need_lib_prefix=no
  9164. need_version=no
  9165. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9166. soname_spec='${libname}${release}${shared_ext}$major'
  9167. shlibpath_var=LD_LIBRARY_PATH
  9168. shlibpath_overrides_runpath=yes
  9169. hardcode_into_libs=yes
  9170. if test "$with_gnu_ld" = yes; then
  9171. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9172. else
  9173. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9174. case $host_os in
  9175. sco3.2v5*)
  9176. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9177. ;;
  9178. esac
  9179. fi
  9180. sys_lib_dlsearch_path_spec='/usr/lib'
  9181. ;;
  9182. tpf*)
  9183. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9184. version_type=linux # correct to gnu/linux during the next big refactor
  9185. need_lib_prefix=no
  9186. need_version=no
  9187. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9188. shlibpath_var=LD_LIBRARY_PATH
  9189. shlibpath_overrides_runpath=no
  9190. hardcode_into_libs=yes
  9191. ;;
  9192. uts4*)
  9193. version_type=linux # correct to gnu/linux during the next big refactor
  9194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9195. soname_spec='${libname}${release}${shared_ext}$major'
  9196. shlibpath_var=LD_LIBRARY_PATH
  9197. ;;
  9198. *)
  9199. dynamic_linker=no
  9200. ;;
  9201. esac
  9202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9203. $as_echo "$dynamic_linker" >&6; }
  9204. test "$dynamic_linker" = no && can_build_shared=no
  9205. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9206. if test "$GCC" = yes; then
  9207. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9208. fi
  9209. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9210. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9211. fi
  9212. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9213. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9214. fi
  9215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9216. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9217. hardcode_action=
  9218. if test -n "$hardcode_libdir_flag_spec" ||
  9219. test -n "$runpath_var" ||
  9220. test "X$hardcode_automatic" = "Xyes" ; then
  9221. # We can hardcode non-existent directories.
  9222. if test "$hardcode_direct" != no &&
  9223. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9224. # have to relink, otherwise we might link with an installed library
  9225. # when we should be linking with a yet-to-be-installed one
  9226. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9227. test "$hardcode_minus_L" != no; then
  9228. # Linking always hardcodes the temporary library directory.
  9229. hardcode_action=relink
  9230. else
  9231. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9232. hardcode_action=immediate
  9233. fi
  9234. else
  9235. # We cannot hardcode anything, or else we can only hardcode existing
  9236. # directories.
  9237. hardcode_action=unsupported
  9238. fi
  9239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9240. $as_echo "$hardcode_action" >&6; }
  9241. if test "$hardcode_action" = relink ||
  9242. test "$inherit_rpath" = yes; then
  9243. # Fast installation is not supported
  9244. enable_fast_install=no
  9245. elif test "$shlibpath_overrides_runpath" = yes ||
  9246. test "$enable_shared" = no; then
  9247. # Fast installation is not necessary
  9248. enable_fast_install=needless
  9249. fi
  9250. if test "x$enable_dlopen" != xyes; then
  9251. enable_dlopen=unknown
  9252. enable_dlopen_self=unknown
  9253. enable_dlopen_self_static=unknown
  9254. else
  9255. lt_cv_dlopen=no
  9256. lt_cv_dlopen_libs=
  9257. case $host_os in
  9258. beos*)
  9259. lt_cv_dlopen="load_add_on"
  9260. lt_cv_dlopen_libs=
  9261. lt_cv_dlopen_self=yes
  9262. ;;
  9263. mingw* | pw32* | cegcc*)
  9264. lt_cv_dlopen="LoadLibrary"
  9265. lt_cv_dlopen_libs=
  9266. ;;
  9267. cygwin*)
  9268. lt_cv_dlopen="dlopen"
  9269. lt_cv_dlopen_libs=
  9270. ;;
  9271. darwin*)
  9272. # if libdl is installed we need to link against it
  9273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9274. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9275. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9276. $as_echo_n "(cached) " >&6
  9277. else
  9278. ac_check_lib_save_LIBS=$LIBS
  9279. LIBS="-ldl $LIBS"
  9280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9281. /* end confdefs.h. */
  9282. /* Override any GCC internal prototype to avoid an error.
  9283. Use char because int might match the return type of a GCC
  9284. builtin and then its argument prototype would still apply. */
  9285. #ifdef __cplusplus
  9286. extern "C"
  9287. #endif
  9288. char dlopen ();
  9289. int
  9290. main ()
  9291. {
  9292. return dlopen ();
  9293. ;
  9294. return 0;
  9295. }
  9296. _ACEOF
  9297. if ac_fn_c_try_link "$LINENO"; then :
  9298. ac_cv_lib_dl_dlopen=yes
  9299. else
  9300. ac_cv_lib_dl_dlopen=no
  9301. fi
  9302. rm -f core conftest.err conftest.$ac_objext \
  9303. conftest$ac_exeext conftest.$ac_ext
  9304. LIBS=$ac_check_lib_save_LIBS
  9305. fi
  9306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9307. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9308. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9309. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9310. else
  9311. lt_cv_dlopen="dyld"
  9312. lt_cv_dlopen_libs=
  9313. lt_cv_dlopen_self=yes
  9314. fi
  9315. ;;
  9316. *)
  9317. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9318. if test "x$ac_cv_func_shl_load" = xyes; then :
  9319. lt_cv_dlopen="shl_load"
  9320. else
  9321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9322. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9323. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9324. $as_echo_n "(cached) " >&6
  9325. else
  9326. ac_check_lib_save_LIBS=$LIBS
  9327. LIBS="-ldld $LIBS"
  9328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9329. /* end confdefs.h. */
  9330. /* Override any GCC internal prototype to avoid an error.
  9331. Use char because int might match the return type of a GCC
  9332. builtin and then its argument prototype would still apply. */
  9333. #ifdef __cplusplus
  9334. extern "C"
  9335. #endif
  9336. char shl_load ();
  9337. int
  9338. main ()
  9339. {
  9340. return shl_load ();
  9341. ;
  9342. return 0;
  9343. }
  9344. _ACEOF
  9345. if ac_fn_c_try_link "$LINENO"; then :
  9346. ac_cv_lib_dld_shl_load=yes
  9347. else
  9348. ac_cv_lib_dld_shl_load=no
  9349. fi
  9350. rm -f core conftest.err conftest.$ac_objext \
  9351. conftest$ac_exeext conftest.$ac_ext
  9352. LIBS=$ac_check_lib_save_LIBS
  9353. fi
  9354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9355. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9356. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9357. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9358. else
  9359. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9360. if test "x$ac_cv_func_dlopen" = xyes; then :
  9361. lt_cv_dlopen="dlopen"
  9362. else
  9363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9364. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9365. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9366. $as_echo_n "(cached) " >&6
  9367. else
  9368. ac_check_lib_save_LIBS=$LIBS
  9369. LIBS="-ldl $LIBS"
  9370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9371. /* end confdefs.h. */
  9372. /* Override any GCC internal prototype to avoid an error.
  9373. Use char because int might match the return type of a GCC
  9374. builtin and then its argument prototype would still apply. */
  9375. #ifdef __cplusplus
  9376. extern "C"
  9377. #endif
  9378. char dlopen ();
  9379. int
  9380. main ()
  9381. {
  9382. return dlopen ();
  9383. ;
  9384. return 0;
  9385. }
  9386. _ACEOF
  9387. if ac_fn_c_try_link "$LINENO"; then :
  9388. ac_cv_lib_dl_dlopen=yes
  9389. else
  9390. ac_cv_lib_dl_dlopen=no
  9391. fi
  9392. rm -f core conftest.err conftest.$ac_objext \
  9393. conftest$ac_exeext conftest.$ac_ext
  9394. LIBS=$ac_check_lib_save_LIBS
  9395. fi
  9396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9397. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9398. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9399. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9400. else
  9401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9402. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9403. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9404. $as_echo_n "(cached) " >&6
  9405. else
  9406. ac_check_lib_save_LIBS=$LIBS
  9407. LIBS="-lsvld $LIBS"
  9408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9409. /* end confdefs.h. */
  9410. /* Override any GCC internal prototype to avoid an error.
  9411. Use char because int might match the return type of a GCC
  9412. builtin and then its argument prototype would still apply. */
  9413. #ifdef __cplusplus
  9414. extern "C"
  9415. #endif
  9416. char dlopen ();
  9417. int
  9418. main ()
  9419. {
  9420. return dlopen ();
  9421. ;
  9422. return 0;
  9423. }
  9424. _ACEOF
  9425. if ac_fn_c_try_link "$LINENO"; then :
  9426. ac_cv_lib_svld_dlopen=yes
  9427. else
  9428. ac_cv_lib_svld_dlopen=no
  9429. fi
  9430. rm -f core conftest.err conftest.$ac_objext \
  9431. conftest$ac_exeext conftest.$ac_ext
  9432. LIBS=$ac_check_lib_save_LIBS
  9433. fi
  9434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9435. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9436. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9437. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9438. else
  9439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9440. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9441. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9442. $as_echo_n "(cached) " >&6
  9443. else
  9444. ac_check_lib_save_LIBS=$LIBS
  9445. LIBS="-ldld $LIBS"
  9446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9447. /* end confdefs.h. */
  9448. /* Override any GCC internal prototype to avoid an error.
  9449. Use char because int might match the return type of a GCC
  9450. builtin and then its argument prototype would still apply. */
  9451. #ifdef __cplusplus
  9452. extern "C"
  9453. #endif
  9454. char dld_link ();
  9455. int
  9456. main ()
  9457. {
  9458. return dld_link ();
  9459. ;
  9460. return 0;
  9461. }
  9462. _ACEOF
  9463. if ac_fn_c_try_link "$LINENO"; then :
  9464. ac_cv_lib_dld_dld_link=yes
  9465. else
  9466. ac_cv_lib_dld_dld_link=no
  9467. fi
  9468. rm -f core conftest.err conftest.$ac_objext \
  9469. conftest$ac_exeext conftest.$ac_ext
  9470. LIBS=$ac_check_lib_save_LIBS
  9471. fi
  9472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9473. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9474. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9475. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9476. fi
  9477. fi
  9478. fi
  9479. fi
  9480. fi
  9481. fi
  9482. ;;
  9483. esac
  9484. if test "x$lt_cv_dlopen" != xno; then
  9485. enable_dlopen=yes
  9486. else
  9487. enable_dlopen=no
  9488. fi
  9489. case $lt_cv_dlopen in
  9490. dlopen)
  9491. save_CPPFLAGS="$CPPFLAGS"
  9492. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9493. save_LDFLAGS="$LDFLAGS"
  9494. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9495. save_LIBS="$LIBS"
  9496. LIBS="$lt_cv_dlopen_libs $LIBS"
  9497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9498. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9499. if ${lt_cv_dlopen_self+:} false; then :
  9500. $as_echo_n "(cached) " >&6
  9501. else
  9502. if test "$cross_compiling" = yes; then :
  9503. lt_cv_dlopen_self=cross
  9504. else
  9505. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9506. lt_status=$lt_dlunknown
  9507. cat > conftest.$ac_ext <<_LT_EOF
  9508. #line $LINENO "configure"
  9509. #include "confdefs.h"
  9510. #if HAVE_DLFCN_H
  9511. #include <dlfcn.h>
  9512. #endif
  9513. #include <stdio.h>
  9514. #ifdef RTLD_GLOBAL
  9515. # define LT_DLGLOBAL RTLD_GLOBAL
  9516. #else
  9517. # ifdef DL_GLOBAL
  9518. # define LT_DLGLOBAL DL_GLOBAL
  9519. # else
  9520. # define LT_DLGLOBAL 0
  9521. # endif
  9522. #endif
  9523. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9524. find out it does not work in some platform. */
  9525. #ifndef LT_DLLAZY_OR_NOW
  9526. # ifdef RTLD_LAZY
  9527. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9528. # else
  9529. # ifdef DL_LAZY
  9530. # define LT_DLLAZY_OR_NOW DL_LAZY
  9531. # else
  9532. # ifdef RTLD_NOW
  9533. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9534. # else
  9535. # ifdef DL_NOW
  9536. # define LT_DLLAZY_OR_NOW DL_NOW
  9537. # else
  9538. # define LT_DLLAZY_OR_NOW 0
  9539. # endif
  9540. # endif
  9541. # endif
  9542. # endif
  9543. #endif
  9544. /* When -fvisbility=hidden is used, assume the code has been annotated
  9545. correspondingly for the symbols needed. */
  9546. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9547. int fnord () __attribute__((visibility("default")));
  9548. #endif
  9549. int fnord () { return 42; }
  9550. int main ()
  9551. {
  9552. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9553. int status = $lt_dlunknown;
  9554. if (self)
  9555. {
  9556. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9557. else
  9558. {
  9559. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9560. else puts (dlerror ());
  9561. }
  9562. /* dlclose (self); */
  9563. }
  9564. else
  9565. puts (dlerror ());
  9566. return status;
  9567. }
  9568. _LT_EOF
  9569. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9570. (eval $ac_link) 2>&5
  9571. ac_status=$?
  9572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9573. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9574. (./conftest; exit; ) >&5 2>/dev/null
  9575. lt_status=$?
  9576. case x$lt_status in
  9577. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9578. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9579. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9580. esac
  9581. else :
  9582. # compilation failed
  9583. lt_cv_dlopen_self=no
  9584. fi
  9585. fi
  9586. rm -fr conftest*
  9587. fi
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9589. $as_echo "$lt_cv_dlopen_self" >&6; }
  9590. if test "x$lt_cv_dlopen_self" = xyes; then
  9591. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9593. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9594. if ${lt_cv_dlopen_self_static+:} false; then :
  9595. $as_echo_n "(cached) " >&6
  9596. else
  9597. if test "$cross_compiling" = yes; then :
  9598. lt_cv_dlopen_self_static=cross
  9599. else
  9600. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9601. lt_status=$lt_dlunknown
  9602. cat > conftest.$ac_ext <<_LT_EOF
  9603. #line $LINENO "configure"
  9604. #include "confdefs.h"
  9605. #if HAVE_DLFCN_H
  9606. #include <dlfcn.h>
  9607. #endif
  9608. #include <stdio.h>
  9609. #ifdef RTLD_GLOBAL
  9610. # define LT_DLGLOBAL RTLD_GLOBAL
  9611. #else
  9612. # ifdef DL_GLOBAL
  9613. # define LT_DLGLOBAL DL_GLOBAL
  9614. # else
  9615. # define LT_DLGLOBAL 0
  9616. # endif
  9617. #endif
  9618. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9619. find out it does not work in some platform. */
  9620. #ifndef LT_DLLAZY_OR_NOW
  9621. # ifdef RTLD_LAZY
  9622. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9623. # else
  9624. # ifdef DL_LAZY
  9625. # define LT_DLLAZY_OR_NOW DL_LAZY
  9626. # else
  9627. # ifdef RTLD_NOW
  9628. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9629. # else
  9630. # ifdef DL_NOW
  9631. # define LT_DLLAZY_OR_NOW DL_NOW
  9632. # else
  9633. # define LT_DLLAZY_OR_NOW 0
  9634. # endif
  9635. # endif
  9636. # endif
  9637. # endif
  9638. #endif
  9639. /* When -fvisbility=hidden is used, assume the code has been annotated
  9640. correspondingly for the symbols needed. */
  9641. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9642. int fnord () __attribute__((visibility("default")));
  9643. #endif
  9644. int fnord () { return 42; }
  9645. int main ()
  9646. {
  9647. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9648. int status = $lt_dlunknown;
  9649. if (self)
  9650. {
  9651. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9652. else
  9653. {
  9654. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9655. else puts (dlerror ());
  9656. }
  9657. /* dlclose (self); */
  9658. }
  9659. else
  9660. puts (dlerror ());
  9661. return status;
  9662. }
  9663. _LT_EOF
  9664. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9665. (eval $ac_link) 2>&5
  9666. ac_status=$?
  9667. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9668. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9669. (./conftest; exit; ) >&5 2>/dev/null
  9670. lt_status=$?
  9671. case x$lt_status in
  9672. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9673. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9674. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9675. esac
  9676. else :
  9677. # compilation failed
  9678. lt_cv_dlopen_self_static=no
  9679. fi
  9680. fi
  9681. rm -fr conftest*
  9682. fi
  9683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9684. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9685. fi
  9686. CPPFLAGS="$save_CPPFLAGS"
  9687. LDFLAGS="$save_LDFLAGS"
  9688. LIBS="$save_LIBS"
  9689. ;;
  9690. esac
  9691. case $lt_cv_dlopen_self in
  9692. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9693. *) enable_dlopen_self=unknown ;;
  9694. esac
  9695. case $lt_cv_dlopen_self_static in
  9696. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9697. *) enable_dlopen_self_static=unknown ;;
  9698. esac
  9699. fi
  9700. striplib=
  9701. old_striplib=
  9702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9703. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9704. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9705. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9706. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9708. $as_echo "yes" >&6; }
  9709. else
  9710. # FIXME - insert some real tests, host_os isn't really good enough
  9711. case $host_os in
  9712. darwin*)
  9713. if test -n "$STRIP" ; then
  9714. striplib="$STRIP -x"
  9715. old_striplib="$STRIP -S"
  9716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9717. $as_echo "yes" >&6; }
  9718. else
  9719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9720. $as_echo "no" >&6; }
  9721. fi
  9722. ;;
  9723. *)
  9724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9725. $as_echo "no" >&6; }
  9726. ;;
  9727. esac
  9728. fi
  9729. # Report which library types will actually be built
  9730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9731. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9733. $as_echo "$can_build_shared" >&6; }
  9734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9735. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9736. test "$can_build_shared" = "no" && enable_shared=no
  9737. # On AIX, shared libraries and static libraries use the same namespace, and
  9738. # are all built from PIC.
  9739. case $host_os in
  9740. aix3*)
  9741. test "$enable_shared" = yes && enable_static=no
  9742. if test -n "$RANLIB"; then
  9743. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9744. postinstall_cmds='$RANLIB $lib'
  9745. fi
  9746. ;;
  9747. aix[4-9]*)
  9748. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9749. test "$enable_shared" = yes && enable_static=no
  9750. fi
  9751. ;;
  9752. esac
  9753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9754. $as_echo "$enable_shared" >&6; }
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9756. $as_echo_n "checking whether to build static libraries... " >&6; }
  9757. # Make sure either enable_shared or enable_static is yes.
  9758. test "$enable_shared" = yes || enable_static=yes
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9760. $as_echo "$enable_static" >&6; }
  9761. fi
  9762. ac_ext=c
  9763. ac_cpp='$CPP $CPPFLAGS'
  9764. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9765. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9766. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9767. CC="$lt_save_CC"
  9768. ac_config_commands="$ac_config_commands libtool"
  9769. # Only expand once:
  9770. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9771. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9772. LT_REVISION=$SDL_INTERFACE_AGE
  9773. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9774. ac_ext=c
  9775. ac_cpp='$CPP $CPPFLAGS'
  9776. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9777. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9778. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9779. if test -n "$ac_tool_prefix"; then
  9780. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9781. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9783. $as_echo_n "checking for $ac_word... " >&6; }
  9784. if ${ac_cv_prog_CC+:} false; then :
  9785. $as_echo_n "(cached) " >&6
  9786. else
  9787. if test -n "$CC"; then
  9788. ac_cv_prog_CC="$CC" # Let the user override the test.
  9789. else
  9790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9791. for as_dir in $PATH
  9792. do
  9793. IFS=$as_save_IFS
  9794. test -z "$as_dir" && as_dir=.
  9795. for ac_exec_ext in '' $ac_executable_extensions; do
  9796. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9797. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9799. break 2
  9800. fi
  9801. done
  9802. done
  9803. IFS=$as_save_IFS
  9804. fi
  9805. fi
  9806. CC=$ac_cv_prog_CC
  9807. if test -n "$CC"; then
  9808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9809. $as_echo "$CC" >&6; }
  9810. else
  9811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9812. $as_echo "no" >&6; }
  9813. fi
  9814. fi
  9815. if test -z "$ac_cv_prog_CC"; then
  9816. ac_ct_CC=$CC
  9817. # Extract the first word of "gcc", so it can be a program name with args.
  9818. set dummy gcc; ac_word=$2
  9819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9820. $as_echo_n "checking for $ac_word... " >&6; }
  9821. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9822. $as_echo_n "(cached) " >&6
  9823. else
  9824. if test -n "$ac_ct_CC"; then
  9825. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9826. else
  9827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9828. for as_dir in $PATH
  9829. do
  9830. IFS=$as_save_IFS
  9831. test -z "$as_dir" && as_dir=.
  9832. for ac_exec_ext in '' $ac_executable_extensions; do
  9833. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9834. ac_cv_prog_ac_ct_CC="gcc"
  9835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9836. break 2
  9837. fi
  9838. done
  9839. done
  9840. IFS=$as_save_IFS
  9841. fi
  9842. fi
  9843. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9844. if test -n "$ac_ct_CC"; then
  9845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9846. $as_echo "$ac_ct_CC" >&6; }
  9847. else
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9849. $as_echo "no" >&6; }
  9850. fi
  9851. if test "x$ac_ct_CC" = x; then
  9852. CC=""
  9853. else
  9854. case $cross_compiling:$ac_tool_warned in
  9855. yes:)
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9857. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9858. ac_tool_warned=yes ;;
  9859. esac
  9860. CC=$ac_ct_CC
  9861. fi
  9862. else
  9863. CC="$ac_cv_prog_CC"
  9864. fi
  9865. if test -z "$CC"; then
  9866. if test -n "$ac_tool_prefix"; then
  9867. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9868. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9870. $as_echo_n "checking for $ac_word... " >&6; }
  9871. if ${ac_cv_prog_CC+:} false; then :
  9872. $as_echo_n "(cached) " >&6
  9873. else
  9874. if test -n "$CC"; then
  9875. ac_cv_prog_CC="$CC" # Let the user override the test.
  9876. else
  9877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9878. for as_dir in $PATH
  9879. do
  9880. IFS=$as_save_IFS
  9881. test -z "$as_dir" && as_dir=.
  9882. for ac_exec_ext in '' $ac_executable_extensions; do
  9883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9884. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9886. break 2
  9887. fi
  9888. done
  9889. done
  9890. IFS=$as_save_IFS
  9891. fi
  9892. fi
  9893. CC=$ac_cv_prog_CC
  9894. if test -n "$CC"; then
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9896. $as_echo "$CC" >&6; }
  9897. else
  9898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9899. $as_echo "no" >&6; }
  9900. fi
  9901. fi
  9902. fi
  9903. if test -z "$CC"; then
  9904. # Extract the first word of "cc", so it can be a program name with args.
  9905. set dummy cc; ac_word=$2
  9906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9907. $as_echo_n "checking for $ac_word... " >&6; }
  9908. if ${ac_cv_prog_CC+:} false; then :
  9909. $as_echo_n "(cached) " >&6
  9910. else
  9911. if test -n "$CC"; then
  9912. ac_cv_prog_CC="$CC" # Let the user override the test.
  9913. else
  9914. ac_prog_rejected=no
  9915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9916. for as_dir in $PATH
  9917. do
  9918. IFS=$as_save_IFS
  9919. test -z "$as_dir" && as_dir=.
  9920. for ac_exec_ext in '' $ac_executable_extensions; do
  9921. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9922. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9923. ac_prog_rejected=yes
  9924. continue
  9925. fi
  9926. ac_cv_prog_CC="cc"
  9927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9928. break 2
  9929. fi
  9930. done
  9931. done
  9932. IFS=$as_save_IFS
  9933. if test $ac_prog_rejected = yes; then
  9934. # We found a bogon in the path, so make sure we never use it.
  9935. set dummy $ac_cv_prog_CC
  9936. shift
  9937. if test $# != 0; then
  9938. # We chose a different compiler from the bogus one.
  9939. # However, it has the same basename, so the bogon will be chosen
  9940. # first if we set CC to just the basename; use the full file name.
  9941. shift
  9942. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9943. fi
  9944. fi
  9945. fi
  9946. fi
  9947. CC=$ac_cv_prog_CC
  9948. if test -n "$CC"; then
  9949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9950. $as_echo "$CC" >&6; }
  9951. else
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9953. $as_echo "no" >&6; }
  9954. fi
  9955. fi
  9956. if test -z "$CC"; then
  9957. if test -n "$ac_tool_prefix"; then
  9958. for ac_prog in cl.exe
  9959. do
  9960. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9961. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9963. $as_echo_n "checking for $ac_word... " >&6; }
  9964. if ${ac_cv_prog_CC+:} false; then :
  9965. $as_echo_n "(cached) " >&6
  9966. else
  9967. if test -n "$CC"; then
  9968. ac_cv_prog_CC="$CC" # Let the user override the test.
  9969. else
  9970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9971. for as_dir in $PATH
  9972. do
  9973. IFS=$as_save_IFS
  9974. test -z "$as_dir" && as_dir=.
  9975. for ac_exec_ext in '' $ac_executable_extensions; do
  9976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9977. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9979. break 2
  9980. fi
  9981. done
  9982. done
  9983. IFS=$as_save_IFS
  9984. fi
  9985. fi
  9986. CC=$ac_cv_prog_CC
  9987. if test -n "$CC"; then
  9988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9989. $as_echo "$CC" >&6; }
  9990. else
  9991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9992. $as_echo "no" >&6; }
  9993. fi
  9994. test -n "$CC" && break
  9995. done
  9996. fi
  9997. if test -z "$CC"; then
  9998. ac_ct_CC=$CC
  9999. for ac_prog in cl.exe
  10000. do
  10001. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10002. set dummy $ac_prog; ac_word=$2
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10004. $as_echo_n "checking for $ac_word... " >&6; }
  10005. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10006. $as_echo_n "(cached) " >&6
  10007. else
  10008. if test -n "$ac_ct_CC"; then
  10009. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10010. else
  10011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10012. for as_dir in $PATH
  10013. do
  10014. IFS=$as_save_IFS
  10015. test -z "$as_dir" && as_dir=.
  10016. for ac_exec_ext in '' $ac_executable_extensions; do
  10017. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10018. ac_cv_prog_ac_ct_CC="$ac_prog"
  10019. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10020. break 2
  10021. fi
  10022. done
  10023. done
  10024. IFS=$as_save_IFS
  10025. fi
  10026. fi
  10027. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10028. if test -n "$ac_ct_CC"; then
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10030. $as_echo "$ac_ct_CC" >&6; }
  10031. else
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10033. $as_echo "no" >&6; }
  10034. fi
  10035. test -n "$ac_ct_CC" && break
  10036. done
  10037. if test "x$ac_ct_CC" = x; then
  10038. CC=""
  10039. else
  10040. case $cross_compiling:$ac_tool_warned in
  10041. yes:)
  10042. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10043. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10044. ac_tool_warned=yes ;;
  10045. esac
  10046. CC=$ac_ct_CC
  10047. fi
  10048. fi
  10049. fi
  10050. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10051. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10052. as_fn_error $? "no acceptable C compiler found in \$PATH
  10053. See \`config.log' for more details" "$LINENO" 5; }
  10054. # Provide some information about the compiler.
  10055. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10056. set X $ac_compile
  10057. ac_compiler=$2
  10058. for ac_option in --version -v -V -qversion; do
  10059. { { ac_try="$ac_compiler $ac_option >&5"
  10060. case "(($ac_try" in
  10061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10062. *) ac_try_echo=$ac_try;;
  10063. esac
  10064. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10065. $as_echo "$ac_try_echo"; } >&5
  10066. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10067. ac_status=$?
  10068. if test -s conftest.err; then
  10069. sed '10a\
  10070. ... rest of stderr output deleted ...
  10071. 10q' conftest.err >conftest.er1
  10072. cat conftest.er1 >&5
  10073. fi
  10074. rm -f conftest.er1 conftest.err
  10075. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10076. test $ac_status = 0; }
  10077. done
  10078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10079. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10080. if ${ac_cv_c_compiler_gnu+:} false; then :
  10081. $as_echo_n "(cached) " >&6
  10082. else
  10083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10084. /* end confdefs.h. */
  10085. int
  10086. main ()
  10087. {
  10088. #ifndef __GNUC__
  10089. choke me
  10090. #endif
  10091. ;
  10092. return 0;
  10093. }
  10094. _ACEOF
  10095. if ac_fn_c_try_compile "$LINENO"; then :
  10096. ac_compiler_gnu=yes
  10097. else
  10098. ac_compiler_gnu=no
  10099. fi
  10100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10101. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10102. fi
  10103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10104. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10105. if test $ac_compiler_gnu = yes; then
  10106. GCC=yes
  10107. else
  10108. GCC=
  10109. fi
  10110. ac_test_CFLAGS=${CFLAGS+set}
  10111. ac_save_CFLAGS=$CFLAGS
  10112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10113. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10114. if ${ac_cv_prog_cc_g+:} false; then :
  10115. $as_echo_n "(cached) " >&6
  10116. else
  10117. ac_save_c_werror_flag=$ac_c_werror_flag
  10118. ac_c_werror_flag=yes
  10119. ac_cv_prog_cc_g=no
  10120. CFLAGS="-g"
  10121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10122. /* end confdefs.h. */
  10123. int
  10124. main ()
  10125. {
  10126. ;
  10127. return 0;
  10128. }
  10129. _ACEOF
  10130. if ac_fn_c_try_compile "$LINENO"; then :
  10131. ac_cv_prog_cc_g=yes
  10132. else
  10133. CFLAGS=""
  10134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10135. /* end confdefs.h. */
  10136. int
  10137. main ()
  10138. {
  10139. ;
  10140. return 0;
  10141. }
  10142. _ACEOF
  10143. if ac_fn_c_try_compile "$LINENO"; then :
  10144. else
  10145. ac_c_werror_flag=$ac_save_c_werror_flag
  10146. CFLAGS="-g"
  10147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10148. /* end confdefs.h. */
  10149. int
  10150. main ()
  10151. {
  10152. ;
  10153. return 0;
  10154. }
  10155. _ACEOF
  10156. if ac_fn_c_try_compile "$LINENO"; then :
  10157. ac_cv_prog_cc_g=yes
  10158. fi
  10159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10160. fi
  10161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10162. fi
  10163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10164. ac_c_werror_flag=$ac_save_c_werror_flag
  10165. fi
  10166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10167. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10168. if test "$ac_test_CFLAGS" = set; then
  10169. CFLAGS=$ac_save_CFLAGS
  10170. elif test $ac_cv_prog_cc_g = yes; then
  10171. if test "$GCC" = yes; then
  10172. CFLAGS="-g -O2"
  10173. else
  10174. CFLAGS="-g"
  10175. fi
  10176. else
  10177. if test "$GCC" = yes; then
  10178. CFLAGS="-O2"
  10179. else
  10180. CFLAGS=
  10181. fi
  10182. fi
  10183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10184. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10185. if ${ac_cv_prog_cc_c89+:} false; then :
  10186. $as_echo_n "(cached) " >&6
  10187. else
  10188. ac_cv_prog_cc_c89=no
  10189. ac_save_CC=$CC
  10190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10191. /* end confdefs.h. */
  10192. #include <stdarg.h>
  10193. #include <stdio.h>
  10194. struct stat;
  10195. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10196. struct buf { int x; };
  10197. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10198. static char *e (p, i)
  10199. char **p;
  10200. int i;
  10201. {
  10202. return p[i];
  10203. }
  10204. static char *f (char * (*g) (char **, int), char **p, ...)
  10205. {
  10206. char *s;
  10207. va_list v;
  10208. va_start (v,p);
  10209. s = g (p, va_arg (v,int));
  10210. va_end (v);
  10211. return s;
  10212. }
  10213. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10214. function prototypes and stuff, but not '\xHH' hex character constants.
  10215. These don't provoke an error unfortunately, instead are silently treated
  10216. as 'x'. The following induces an error, until -std is added to get
  10217. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10218. array size at least. It's necessary to write '\x00'==0 to get something
  10219. that's true only with -std. */
  10220. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10221. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10222. inside strings and character constants. */
  10223. #define FOO(x) 'x'
  10224. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10225. int test (int i, double x);
  10226. struct s1 {int (*f) (int a);};
  10227. struct s2 {int (*f) (double a);};
  10228. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10229. int argc;
  10230. char **argv;
  10231. int
  10232. main ()
  10233. {
  10234. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10235. ;
  10236. return 0;
  10237. }
  10238. _ACEOF
  10239. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10240. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10241. do
  10242. CC="$ac_save_CC $ac_arg"
  10243. if ac_fn_c_try_compile "$LINENO"; then :
  10244. ac_cv_prog_cc_c89=$ac_arg
  10245. fi
  10246. rm -f core conftest.err conftest.$ac_objext
  10247. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10248. done
  10249. rm -f conftest.$ac_ext
  10250. CC=$ac_save_CC
  10251. fi
  10252. # AC_CACHE_VAL
  10253. case "x$ac_cv_prog_cc_c89" in
  10254. x)
  10255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10256. $as_echo "none needed" >&6; } ;;
  10257. xno)
  10258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10259. $as_echo "unsupported" >&6; } ;;
  10260. *)
  10261. CC="$CC $ac_cv_prog_cc_c89"
  10262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10263. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10264. esac
  10265. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10266. fi
  10267. ac_ext=c
  10268. ac_cpp='$CPP $CPPFLAGS'
  10269. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10270. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10271. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10272. ac_ext=cpp
  10273. ac_cpp='$CXXCPP $CPPFLAGS'
  10274. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10275. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10276. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10277. if test -z "$CXX"; then
  10278. if test -n "$CCC"; then
  10279. CXX=$CCC
  10280. else
  10281. if test -n "$ac_tool_prefix"; then
  10282. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10283. do
  10284. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10285. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10287. $as_echo_n "checking for $ac_word... " >&6; }
  10288. if ${ac_cv_prog_CXX+:} false; then :
  10289. $as_echo_n "(cached) " >&6
  10290. else
  10291. if test -n "$CXX"; then
  10292. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10293. else
  10294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10295. for as_dir in $PATH
  10296. do
  10297. IFS=$as_save_IFS
  10298. test -z "$as_dir" && as_dir=.
  10299. for ac_exec_ext in '' $ac_executable_extensions; do
  10300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10301. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10303. break 2
  10304. fi
  10305. done
  10306. done
  10307. IFS=$as_save_IFS
  10308. fi
  10309. fi
  10310. CXX=$ac_cv_prog_CXX
  10311. if test -n "$CXX"; then
  10312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10313. $as_echo "$CXX" >&6; }
  10314. else
  10315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10316. $as_echo "no" >&6; }
  10317. fi
  10318. test -n "$CXX" && break
  10319. done
  10320. fi
  10321. if test -z "$CXX"; then
  10322. ac_ct_CXX=$CXX
  10323. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10324. do
  10325. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10326. set dummy $ac_prog; ac_word=$2
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10328. $as_echo_n "checking for $ac_word... " >&6; }
  10329. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10330. $as_echo_n "(cached) " >&6
  10331. else
  10332. if test -n "$ac_ct_CXX"; then
  10333. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10334. else
  10335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10336. for as_dir in $PATH
  10337. do
  10338. IFS=$as_save_IFS
  10339. test -z "$as_dir" && as_dir=.
  10340. for ac_exec_ext in '' $ac_executable_extensions; do
  10341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10342. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10344. break 2
  10345. fi
  10346. done
  10347. done
  10348. IFS=$as_save_IFS
  10349. fi
  10350. fi
  10351. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10352. if test -n "$ac_ct_CXX"; then
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10354. $as_echo "$ac_ct_CXX" >&6; }
  10355. else
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10357. $as_echo "no" >&6; }
  10358. fi
  10359. test -n "$ac_ct_CXX" && break
  10360. done
  10361. if test "x$ac_ct_CXX" = x; then
  10362. CXX="g++"
  10363. else
  10364. case $cross_compiling:$ac_tool_warned in
  10365. yes:)
  10366. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10367. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10368. ac_tool_warned=yes ;;
  10369. esac
  10370. CXX=$ac_ct_CXX
  10371. fi
  10372. fi
  10373. fi
  10374. fi
  10375. # Provide some information about the compiler.
  10376. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10377. set X $ac_compile
  10378. ac_compiler=$2
  10379. for ac_option in --version -v -V -qversion; do
  10380. { { ac_try="$ac_compiler $ac_option >&5"
  10381. case "(($ac_try" in
  10382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10383. *) ac_try_echo=$ac_try;;
  10384. esac
  10385. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10386. $as_echo "$ac_try_echo"; } >&5
  10387. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10388. ac_status=$?
  10389. if test -s conftest.err; then
  10390. sed '10a\
  10391. ... rest of stderr output deleted ...
  10392. 10q' conftest.err >conftest.er1
  10393. cat conftest.er1 >&5
  10394. fi
  10395. rm -f conftest.er1 conftest.err
  10396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10397. test $ac_status = 0; }
  10398. done
  10399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10400. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10401. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10402. $as_echo_n "(cached) " >&6
  10403. else
  10404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10405. /* end confdefs.h. */
  10406. int
  10407. main ()
  10408. {
  10409. #ifndef __GNUC__
  10410. choke me
  10411. #endif
  10412. ;
  10413. return 0;
  10414. }
  10415. _ACEOF
  10416. if ac_fn_cxx_try_compile "$LINENO"; then :
  10417. ac_compiler_gnu=yes
  10418. else
  10419. ac_compiler_gnu=no
  10420. fi
  10421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10422. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10423. fi
  10424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10425. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10426. if test $ac_compiler_gnu = yes; then
  10427. GXX=yes
  10428. else
  10429. GXX=
  10430. fi
  10431. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10432. ac_save_CXXFLAGS=$CXXFLAGS
  10433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10434. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10435. if ${ac_cv_prog_cxx_g+:} false; then :
  10436. $as_echo_n "(cached) " >&6
  10437. else
  10438. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10439. ac_cxx_werror_flag=yes
  10440. ac_cv_prog_cxx_g=no
  10441. CXXFLAGS="-g"
  10442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10443. /* end confdefs.h. */
  10444. int
  10445. main ()
  10446. {
  10447. ;
  10448. return 0;
  10449. }
  10450. _ACEOF
  10451. if ac_fn_cxx_try_compile "$LINENO"; then :
  10452. ac_cv_prog_cxx_g=yes
  10453. else
  10454. CXXFLAGS=""
  10455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10456. /* end confdefs.h. */
  10457. int
  10458. main ()
  10459. {
  10460. ;
  10461. return 0;
  10462. }
  10463. _ACEOF
  10464. if ac_fn_cxx_try_compile "$LINENO"; then :
  10465. else
  10466. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10467. CXXFLAGS="-g"
  10468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10469. /* end confdefs.h. */
  10470. int
  10471. main ()
  10472. {
  10473. ;
  10474. return 0;
  10475. }
  10476. _ACEOF
  10477. if ac_fn_cxx_try_compile "$LINENO"; then :
  10478. ac_cv_prog_cxx_g=yes
  10479. fi
  10480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10481. fi
  10482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10483. fi
  10484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10485. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10486. fi
  10487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10488. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10489. if test "$ac_test_CXXFLAGS" = set; then
  10490. CXXFLAGS=$ac_save_CXXFLAGS
  10491. elif test $ac_cv_prog_cxx_g = yes; then
  10492. if test "$GXX" = yes; then
  10493. CXXFLAGS="-g -O2"
  10494. else
  10495. CXXFLAGS="-g"
  10496. fi
  10497. else
  10498. if test "$GXX" = yes; then
  10499. CXXFLAGS="-O2"
  10500. else
  10501. CXXFLAGS=
  10502. fi
  10503. fi
  10504. ac_ext=c
  10505. ac_cpp='$CPP $CPPFLAGS'
  10506. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10507. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10508. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10509. func_stripname_cnf ()
  10510. {
  10511. case ${2} in
  10512. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10513. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10514. esac
  10515. } # func_stripname_cnf
  10516. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10517. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10518. (test "X$CXX" != "Xg++"))) ; then
  10519. ac_ext=cpp
  10520. ac_cpp='$CXXCPP $CPPFLAGS'
  10521. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10522. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10523. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10525. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10526. if test -z "$CXXCPP"; then
  10527. if ${ac_cv_prog_CXXCPP+:} false; then :
  10528. $as_echo_n "(cached) " >&6
  10529. else
  10530. # Double quotes because CXXCPP needs to be expanded
  10531. for CXXCPP in "$CXX -E" "/lib/cpp"
  10532. do
  10533. ac_preproc_ok=false
  10534. for ac_cxx_preproc_warn_flag in '' yes
  10535. do
  10536. # Use a header file that comes with gcc, so configuring glibc
  10537. # with a fresh cross-compiler works.
  10538. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10539. # <limits.h> exists even on freestanding compilers.
  10540. # On the NeXT, cc -E runs the code through the compiler's parser,
  10541. # not just through cpp. "Syntax error" is here to catch this case.
  10542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10543. /* end confdefs.h. */
  10544. #ifdef __STDC__
  10545. # include <limits.h>
  10546. #else
  10547. # include <assert.h>
  10548. #endif
  10549. Syntax error
  10550. _ACEOF
  10551. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10552. else
  10553. # Broken: fails on valid input.
  10554. continue
  10555. fi
  10556. rm -f conftest.err conftest.i conftest.$ac_ext
  10557. # OK, works on sane cases. Now check whether nonexistent headers
  10558. # can be detected and how.
  10559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10560. /* end confdefs.h. */
  10561. #include <ac_nonexistent.h>
  10562. _ACEOF
  10563. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10564. # Broken: success on invalid input.
  10565. continue
  10566. else
  10567. # Passes both tests.
  10568. ac_preproc_ok=:
  10569. break
  10570. fi
  10571. rm -f conftest.err conftest.i conftest.$ac_ext
  10572. done
  10573. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10574. rm -f conftest.i conftest.err conftest.$ac_ext
  10575. if $ac_preproc_ok; then :
  10576. break
  10577. fi
  10578. done
  10579. ac_cv_prog_CXXCPP=$CXXCPP
  10580. fi
  10581. CXXCPP=$ac_cv_prog_CXXCPP
  10582. else
  10583. ac_cv_prog_CXXCPP=$CXXCPP
  10584. fi
  10585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10586. $as_echo "$CXXCPP" >&6; }
  10587. ac_preproc_ok=false
  10588. for ac_cxx_preproc_warn_flag in '' yes
  10589. do
  10590. # Use a header file that comes with gcc, so configuring glibc
  10591. # with a fresh cross-compiler works.
  10592. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10593. # <limits.h> exists even on freestanding compilers.
  10594. # On the NeXT, cc -E runs the code through the compiler's parser,
  10595. # not just through cpp. "Syntax error" is here to catch this case.
  10596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10597. /* end confdefs.h. */
  10598. #ifdef __STDC__
  10599. # include <limits.h>
  10600. #else
  10601. # include <assert.h>
  10602. #endif
  10603. Syntax error
  10604. _ACEOF
  10605. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10606. else
  10607. # Broken: fails on valid input.
  10608. continue
  10609. fi
  10610. rm -f conftest.err conftest.i conftest.$ac_ext
  10611. # OK, works on sane cases. Now check whether nonexistent headers
  10612. # can be detected and how.
  10613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10614. /* end confdefs.h. */
  10615. #include <ac_nonexistent.h>
  10616. _ACEOF
  10617. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10618. # Broken: success on invalid input.
  10619. continue
  10620. else
  10621. # Passes both tests.
  10622. ac_preproc_ok=:
  10623. break
  10624. fi
  10625. rm -f conftest.err conftest.i conftest.$ac_ext
  10626. done
  10627. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10628. rm -f conftest.i conftest.err conftest.$ac_ext
  10629. if $ac_preproc_ok; then :
  10630. else
  10631. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10632. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10633. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10634. See \`config.log' for more details" "$LINENO" 5; }
  10635. fi
  10636. ac_ext=c
  10637. ac_cpp='$CPP $CPPFLAGS'
  10638. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10639. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10640. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10641. else
  10642. _lt_caught_CXX_error=yes
  10643. fi
  10644. ac_ext=cpp
  10645. ac_cpp='$CXXCPP $CPPFLAGS'
  10646. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10647. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10648. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10649. archive_cmds_need_lc_CXX=no
  10650. allow_undefined_flag_CXX=
  10651. always_export_symbols_CXX=no
  10652. archive_expsym_cmds_CXX=
  10653. compiler_needs_object_CXX=no
  10654. export_dynamic_flag_spec_CXX=
  10655. hardcode_direct_CXX=no
  10656. hardcode_direct_absolute_CXX=no
  10657. hardcode_libdir_flag_spec_CXX=
  10658. hardcode_libdir_separator_CXX=
  10659. hardcode_minus_L_CXX=no
  10660. hardcode_shlibpath_var_CXX=unsupported
  10661. hardcode_automatic_CXX=no
  10662. inherit_rpath_CXX=no
  10663. module_cmds_CXX=
  10664. module_expsym_cmds_CXX=
  10665. link_all_deplibs_CXX=unknown
  10666. old_archive_cmds_CXX=$old_archive_cmds
  10667. reload_flag_CXX=$reload_flag
  10668. reload_cmds_CXX=$reload_cmds
  10669. no_undefined_flag_CXX=
  10670. whole_archive_flag_spec_CXX=
  10671. enable_shared_with_static_runtimes_CXX=no
  10672. # Source file extension for C++ test sources.
  10673. ac_ext=cpp
  10674. # Object file extension for compiled C++ test sources.
  10675. objext=o
  10676. objext_CXX=$objext
  10677. # No sense in running all these tests if we already determined that
  10678. # the CXX compiler isn't working. Some variables (like enable_shared)
  10679. # are currently assumed to apply to all compilers on this platform,
  10680. # and will be corrupted by setting them based on a non-working compiler.
  10681. if test "$_lt_caught_CXX_error" != yes; then
  10682. # Code to be used in simple compile tests
  10683. lt_simple_compile_test_code="int some_variable = 0;"
  10684. # Code to be used in simple link tests
  10685. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10686. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10687. # If no C compiler was specified, use CC.
  10688. LTCC=${LTCC-"$CC"}
  10689. # If no C compiler flags were specified, use CFLAGS.
  10690. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10691. # Allow CC to be a program name with arguments.
  10692. compiler=$CC
  10693. # save warnings/boilerplate of simple test code
  10694. ac_outfile=conftest.$ac_objext
  10695. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10696. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10697. _lt_compiler_boilerplate=`cat conftest.err`
  10698. $RM conftest*
  10699. ac_outfile=conftest.$ac_objext
  10700. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10701. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10702. _lt_linker_boilerplate=`cat conftest.err`
  10703. $RM -r conftest*
  10704. # Allow CC to be a program name with arguments.
  10705. lt_save_CC=$CC
  10706. lt_save_CFLAGS=$CFLAGS
  10707. lt_save_LD=$LD
  10708. lt_save_GCC=$GCC
  10709. GCC=$GXX
  10710. lt_save_with_gnu_ld=$with_gnu_ld
  10711. lt_save_path_LD=$lt_cv_path_LD
  10712. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10713. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10714. else
  10715. $as_unset lt_cv_prog_gnu_ld
  10716. fi
  10717. if test -n "${lt_cv_path_LDCXX+set}"; then
  10718. lt_cv_path_LD=$lt_cv_path_LDCXX
  10719. else
  10720. $as_unset lt_cv_path_LD
  10721. fi
  10722. test -z "${LDCXX+set}" || LD=$LDCXX
  10723. CC=${CXX-"c++"}
  10724. CFLAGS=$CXXFLAGS
  10725. compiler=$CC
  10726. compiler_CXX=$CC
  10727. for cc_temp in $compiler""; do
  10728. case $cc_temp in
  10729. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10730. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10731. \-*) ;;
  10732. *) break;;
  10733. esac
  10734. done
  10735. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10736. if test -n "$compiler"; then
  10737. # We don't want -fno-exception when compiling C++ code, so set the
  10738. # no_builtin_flag separately
  10739. if test "$GXX" = yes; then
  10740. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10741. else
  10742. lt_prog_compiler_no_builtin_flag_CXX=
  10743. fi
  10744. if test "$GXX" = yes; then
  10745. # Set up default GNU C++ configuration
  10746. # Check whether --with-gnu-ld was given.
  10747. if test "${with_gnu_ld+set}" = set; then :
  10748. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10749. else
  10750. with_gnu_ld=no
  10751. fi
  10752. ac_prog=ld
  10753. if test "$GCC" = yes; then
  10754. # Check if gcc -print-prog-name=ld gives a path.
  10755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10756. $as_echo_n "checking for ld used by $CC... " >&6; }
  10757. case $host in
  10758. *-*-mingw*)
  10759. # gcc leaves a trailing carriage return which upsets mingw
  10760. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10761. *)
  10762. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10763. esac
  10764. case $ac_prog in
  10765. # Accept absolute paths.
  10766. [\\/]* | ?:[\\/]*)
  10767. re_direlt='/[^/][^/]*/\.\./'
  10768. # Canonicalize the pathname of ld
  10769. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10770. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10771. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10772. done
  10773. test -z "$LD" && LD="$ac_prog"
  10774. ;;
  10775. "")
  10776. # If it fails, then pretend we aren't using GCC.
  10777. ac_prog=ld
  10778. ;;
  10779. *)
  10780. # If it is relative, then search for the first ld in PATH.
  10781. with_gnu_ld=unknown
  10782. ;;
  10783. esac
  10784. elif test "$with_gnu_ld" = yes; then
  10785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10786. $as_echo_n "checking for GNU ld... " >&6; }
  10787. else
  10788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10789. $as_echo_n "checking for non-GNU ld... " >&6; }
  10790. fi
  10791. if ${lt_cv_path_LD+:} false; then :
  10792. $as_echo_n "(cached) " >&6
  10793. else
  10794. if test -z "$LD"; then
  10795. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10796. for ac_dir in $PATH; do
  10797. IFS="$lt_save_ifs"
  10798. test -z "$ac_dir" && ac_dir=.
  10799. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10800. lt_cv_path_LD="$ac_dir/$ac_prog"
  10801. # Check to see if the program is GNU ld. I'd rather use --version,
  10802. # but apparently some variants of GNU ld only accept -v.
  10803. # Break only if it was the GNU/non-GNU ld that we prefer.
  10804. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10805. *GNU* | *'with BFD'*)
  10806. test "$with_gnu_ld" != no && break
  10807. ;;
  10808. *)
  10809. test "$with_gnu_ld" != yes && break
  10810. ;;
  10811. esac
  10812. fi
  10813. done
  10814. IFS="$lt_save_ifs"
  10815. else
  10816. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10817. fi
  10818. fi
  10819. LD="$lt_cv_path_LD"
  10820. if test -n "$LD"; then
  10821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10822. $as_echo "$LD" >&6; }
  10823. else
  10824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10825. $as_echo "no" >&6; }
  10826. fi
  10827. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10829. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10830. if ${lt_cv_prog_gnu_ld+:} false; then :
  10831. $as_echo_n "(cached) " >&6
  10832. else
  10833. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10834. case `$LD -v 2>&1 </dev/null` in
  10835. *GNU* | *'with BFD'*)
  10836. lt_cv_prog_gnu_ld=yes
  10837. ;;
  10838. *)
  10839. lt_cv_prog_gnu_ld=no
  10840. ;;
  10841. esac
  10842. fi
  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10844. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10845. with_gnu_ld=$lt_cv_prog_gnu_ld
  10846. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10847. # archiving commands below assume that GNU ld is being used.
  10848. if test "$with_gnu_ld" = yes; then
  10849. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10850. 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'
  10851. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10852. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10853. # If archive_cmds runs LD, not CC, wlarc should be empty
  10854. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10855. # investigate it a little bit more. (MM)
  10856. wlarc='${wl}'
  10857. # ancient GNU ld didn't support --whole-archive et. al.
  10858. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10859. $GREP 'no-whole-archive' > /dev/null; then
  10860. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10861. else
  10862. whole_archive_flag_spec_CXX=
  10863. fi
  10864. else
  10865. with_gnu_ld=no
  10866. wlarc=
  10867. # A generic and very simple default shared library creation
  10868. # command for GNU C++ for the case where it uses the native
  10869. # linker, instead of GNU ld. If possible, this setting should
  10870. # overridden to take advantage of the native linker features on
  10871. # the platform it is being used on.
  10872. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10873. fi
  10874. # Commands to make compiler produce verbose output that lists
  10875. # what "hidden" libraries, object files and flags are used when
  10876. # linking a shared library.
  10877. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10878. else
  10879. GXX=no
  10880. with_gnu_ld=no
  10881. wlarc=
  10882. fi
  10883. # PORTME: fill in a description of your system's C++ link characteristics
  10884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10885. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10886. ld_shlibs_CXX=yes
  10887. case $host_os in
  10888. aix3*)
  10889. # FIXME: insert proper C++ library support
  10890. ld_shlibs_CXX=no
  10891. ;;
  10892. aix[4-9]*)
  10893. if test "$host_cpu" = ia64; then
  10894. # On IA64, the linker does run time linking by default, so we don't
  10895. # have to do anything special.
  10896. aix_use_runtimelinking=no
  10897. exp_sym_flag='-Bexport'
  10898. no_entry_flag=""
  10899. else
  10900. aix_use_runtimelinking=no
  10901. # Test if we are trying to use run time linking or normal
  10902. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10903. # need to do runtime linking.
  10904. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10905. for ld_flag in $LDFLAGS; do
  10906. case $ld_flag in
  10907. *-brtl*)
  10908. aix_use_runtimelinking=yes
  10909. break
  10910. ;;
  10911. esac
  10912. done
  10913. ;;
  10914. esac
  10915. exp_sym_flag='-bexport'
  10916. no_entry_flag='-bnoentry'
  10917. fi
  10918. # When large executables or shared objects are built, AIX ld can
  10919. # have problems creating the table of contents. If linking a library
  10920. # or program results in "error TOC overflow" add -mminimal-toc to
  10921. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10922. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10923. archive_cmds_CXX=''
  10924. hardcode_direct_CXX=yes
  10925. hardcode_direct_absolute_CXX=yes
  10926. hardcode_libdir_separator_CXX=':'
  10927. link_all_deplibs_CXX=yes
  10928. file_list_spec_CXX='${wl}-f,'
  10929. if test "$GXX" = yes; then
  10930. case $host_os in aix4.[012]|aix4.[012].*)
  10931. # We only want to do this on AIX 4.2 and lower, the check
  10932. # below for broken collect2 doesn't work under 4.3+
  10933. collect2name=`${CC} -print-prog-name=collect2`
  10934. if test -f "$collect2name" &&
  10935. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10936. then
  10937. # We have reworked collect2
  10938. :
  10939. else
  10940. # We have old collect2
  10941. hardcode_direct_CXX=unsupported
  10942. # It fails to find uninstalled libraries when the uninstalled
  10943. # path is not listed in the libpath. Setting hardcode_minus_L
  10944. # to unsupported forces relinking
  10945. hardcode_minus_L_CXX=yes
  10946. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10947. hardcode_libdir_separator_CXX=
  10948. fi
  10949. esac
  10950. shared_flag='-shared'
  10951. if test "$aix_use_runtimelinking" = yes; then
  10952. shared_flag="$shared_flag "'${wl}-G'
  10953. fi
  10954. else
  10955. # not using gcc
  10956. if test "$host_cpu" = ia64; then
  10957. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10958. # chokes on -Wl,-G. The following line is correct:
  10959. shared_flag='-G'
  10960. else
  10961. if test "$aix_use_runtimelinking" = yes; then
  10962. shared_flag='${wl}-G'
  10963. else
  10964. shared_flag='${wl}-bM:SRE'
  10965. fi
  10966. fi
  10967. fi
  10968. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10969. # It seems that -bexpall does not export symbols beginning with
  10970. # underscore (_), so it is better to generate a list of symbols to
  10971. # export.
  10972. always_export_symbols_CXX=yes
  10973. if test "$aix_use_runtimelinking" = yes; then
  10974. # Warning - without using the other runtime loading flags (-brtl),
  10975. # -berok will link without error, but may produce a broken library.
  10976. allow_undefined_flag_CXX='-berok'
  10977. # Determine the default libpath from the value encoded in an empty
  10978. # executable.
  10979. if test "${lt_cv_aix_libpath+set}" = set; then
  10980. aix_libpath=$lt_cv_aix_libpath
  10981. else
  10982. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10983. $as_echo_n "(cached) " >&6
  10984. else
  10985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10986. /* end confdefs.h. */
  10987. int
  10988. main ()
  10989. {
  10990. ;
  10991. return 0;
  10992. }
  10993. _ACEOF
  10994. if ac_fn_cxx_try_link "$LINENO"; then :
  10995. lt_aix_libpath_sed='
  10996. /Import File Strings/,/^$/ {
  10997. /^0/ {
  10998. s/^0 *\([^ ]*\) *$/\1/
  10999. p
  11000. }
  11001. }'
  11002. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11003. # Check for a 64-bit object if we didn't find anything.
  11004. if test -z "$lt_cv_aix_libpath__CXX"; then
  11005. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11006. fi
  11007. fi
  11008. rm -f core conftest.err conftest.$ac_objext \
  11009. conftest$ac_exeext conftest.$ac_ext
  11010. if test -z "$lt_cv_aix_libpath__CXX"; then
  11011. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11012. fi
  11013. fi
  11014. aix_libpath=$lt_cv_aix_libpath__CXX
  11015. fi
  11016. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11017. 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"
  11018. else
  11019. if test "$host_cpu" = ia64; then
  11020. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11021. allow_undefined_flag_CXX="-z nodefs"
  11022. 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"
  11023. else
  11024. # Determine the default libpath from the value encoded in an
  11025. # empty executable.
  11026. if test "${lt_cv_aix_libpath+set}" = set; then
  11027. aix_libpath=$lt_cv_aix_libpath
  11028. else
  11029. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11030. $as_echo_n "(cached) " >&6
  11031. else
  11032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11033. /* end confdefs.h. */
  11034. int
  11035. main ()
  11036. {
  11037. ;
  11038. return 0;
  11039. }
  11040. _ACEOF
  11041. if ac_fn_cxx_try_link "$LINENO"; then :
  11042. lt_aix_libpath_sed='
  11043. /Import File Strings/,/^$/ {
  11044. /^0/ {
  11045. s/^0 *\([^ ]*\) *$/\1/
  11046. p
  11047. }
  11048. }'
  11049. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11050. # Check for a 64-bit object if we didn't find anything.
  11051. if test -z "$lt_cv_aix_libpath__CXX"; then
  11052. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11053. fi
  11054. fi
  11055. rm -f core conftest.err conftest.$ac_objext \
  11056. conftest$ac_exeext conftest.$ac_ext
  11057. if test -z "$lt_cv_aix_libpath__CXX"; then
  11058. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11059. fi
  11060. fi
  11061. aix_libpath=$lt_cv_aix_libpath__CXX
  11062. fi
  11063. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11064. # Warning - without using the other run time loading flags,
  11065. # -berok will link without error, but may produce a broken library.
  11066. no_undefined_flag_CXX=' ${wl}-bernotok'
  11067. allow_undefined_flag_CXX=' ${wl}-berok'
  11068. if test "$with_gnu_ld" = yes; then
  11069. # We only use this code for GNU lds that support --whole-archive.
  11070. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11071. else
  11072. # Exported symbols can be pulled into shared objects from archives
  11073. whole_archive_flag_spec_CXX='$convenience'
  11074. fi
  11075. archive_cmds_need_lc_CXX=yes
  11076. # This is similar to how AIX traditionally builds its shared
  11077. # libraries.
  11078. 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'
  11079. fi
  11080. fi
  11081. ;;
  11082. beos*)
  11083. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11084. allow_undefined_flag_CXX=unsupported
  11085. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11086. # support --undefined. This deserves some investigation. FIXME
  11087. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11088. else
  11089. ld_shlibs_CXX=no
  11090. fi
  11091. ;;
  11092. chorus*)
  11093. case $cc_basename in
  11094. *)
  11095. # FIXME: insert proper C++ library support
  11096. ld_shlibs_CXX=no
  11097. ;;
  11098. esac
  11099. ;;
  11100. cygwin* | mingw* | pw32* | cegcc*)
  11101. case $GXX,$cc_basename in
  11102. ,cl* | no,cl*)
  11103. # Native MSVC
  11104. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11105. # no search path for DLLs.
  11106. hardcode_libdir_flag_spec_CXX=' '
  11107. allow_undefined_flag_CXX=unsupported
  11108. always_export_symbols_CXX=yes
  11109. file_list_spec_CXX='@'
  11110. # Tell ltmain to make .lib files, not .a files.
  11111. libext=lib
  11112. # Tell ltmain to make .dll files, not .so files.
  11113. shrext_cmds=".dll"
  11114. # FIXME: Setting linknames here is a bad hack.
  11115. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11116. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11117. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11118. else
  11119. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11120. fi~
  11121. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11122. linknames='
  11123. # The linker will not automatically build a static lib if we build a DLL.
  11124. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11125. enable_shared_with_static_runtimes_CXX=yes
  11126. # Don't use ranlib
  11127. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11128. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11129. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11130. case $lt_outputfile in
  11131. *.exe|*.EXE) ;;
  11132. *)
  11133. lt_outputfile="$lt_outputfile.exe"
  11134. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11135. ;;
  11136. esac~
  11137. func_to_tool_file "$lt_outputfile"~
  11138. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11139. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11140. $RM "$lt_outputfile.manifest";
  11141. fi'
  11142. ;;
  11143. *)
  11144. # g++
  11145. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11146. # as there is no search path for DLLs.
  11147. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11148. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11149. allow_undefined_flag_CXX=unsupported
  11150. always_export_symbols_CXX=no
  11151. enable_shared_with_static_runtimes_CXX=yes
  11152. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11153. 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'
  11154. # If the export-symbols file already is a .def file (1st line
  11155. # is EXPORTS), use it as is; otherwise, prepend...
  11156. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11157. cp $export_symbols $output_objdir/$soname.def;
  11158. else
  11159. echo EXPORTS > $output_objdir/$soname.def;
  11160. cat $export_symbols >> $output_objdir/$soname.def;
  11161. fi~
  11162. $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'
  11163. else
  11164. ld_shlibs_CXX=no
  11165. fi
  11166. ;;
  11167. esac
  11168. ;;
  11169. darwin* | rhapsody*)
  11170. archive_cmds_need_lc_CXX=no
  11171. hardcode_direct_CXX=no
  11172. hardcode_automatic_CXX=yes
  11173. hardcode_shlibpath_var_CXX=unsupported
  11174. if test "$lt_cv_ld_force_load" = "yes"; then
  11175. 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\"`'
  11176. else
  11177. whole_archive_flag_spec_CXX=''
  11178. fi
  11179. link_all_deplibs_CXX=yes
  11180. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11181. case $cc_basename in
  11182. ifort*) _lt_dar_can_shared=yes ;;
  11183. *) _lt_dar_can_shared=$GCC ;;
  11184. esac
  11185. if test "$_lt_dar_can_shared" = "yes"; then
  11186. output_verbose_link_cmd=func_echo_all
  11187. 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}"
  11188. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11189. 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}"
  11190. 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}"
  11191. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11192. 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}"
  11193. 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}"
  11194. fi
  11195. else
  11196. ld_shlibs_CXX=no
  11197. fi
  11198. ;;
  11199. dgux*)
  11200. case $cc_basename in
  11201. ec++*)
  11202. # FIXME: insert proper C++ library support
  11203. ld_shlibs_CXX=no
  11204. ;;
  11205. ghcx*)
  11206. # Green Hills C++ Compiler
  11207. # FIXME: insert proper C++ library support
  11208. ld_shlibs_CXX=no
  11209. ;;
  11210. *)
  11211. # FIXME: insert proper C++ library support
  11212. ld_shlibs_CXX=no
  11213. ;;
  11214. esac
  11215. ;;
  11216. freebsd2.*)
  11217. # C++ shared libraries reported to be fairly broken before
  11218. # switch to ELF
  11219. ld_shlibs_CXX=no
  11220. ;;
  11221. freebsd-elf*)
  11222. archive_cmds_need_lc_CXX=no
  11223. ;;
  11224. freebsd* | dragonfly*)
  11225. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11226. # conventions
  11227. ld_shlibs_CXX=yes
  11228. ;;
  11229. gnu*)
  11230. ;;
  11231. haiku*)
  11232. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11233. link_all_deplibs_CXX=yes
  11234. ;;
  11235. hpux9*)
  11236. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11237. hardcode_libdir_separator_CXX=:
  11238. export_dynamic_flag_spec_CXX='${wl}-E'
  11239. hardcode_direct_CXX=yes
  11240. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11241. # but as the default
  11242. # location of the library.
  11243. case $cc_basename in
  11244. CC*)
  11245. # FIXME: insert proper C++ library support
  11246. ld_shlibs_CXX=no
  11247. ;;
  11248. aCC*)
  11249. 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'
  11250. # Commands to make compiler produce verbose output that lists
  11251. # what "hidden" libraries, object files and flags are used when
  11252. # linking a shared library.
  11253. #
  11254. # There doesn't appear to be a way to prevent this compiler from
  11255. # explicitly linking system object files so we need to strip them
  11256. # from the output so that they don't get included in the library
  11257. # dependencies.
  11258. 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"'
  11259. ;;
  11260. *)
  11261. if test "$GXX" = yes; then
  11262. 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'
  11263. else
  11264. # FIXME: insert proper C++ library support
  11265. ld_shlibs_CXX=no
  11266. fi
  11267. ;;
  11268. esac
  11269. ;;
  11270. hpux10*|hpux11*)
  11271. if test $with_gnu_ld = no; then
  11272. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11273. hardcode_libdir_separator_CXX=:
  11274. case $host_cpu in
  11275. hppa*64*|ia64*)
  11276. ;;
  11277. *)
  11278. export_dynamic_flag_spec_CXX='${wl}-E'
  11279. ;;
  11280. esac
  11281. fi
  11282. case $host_cpu in
  11283. hppa*64*|ia64*)
  11284. hardcode_direct_CXX=no
  11285. hardcode_shlibpath_var_CXX=no
  11286. ;;
  11287. *)
  11288. hardcode_direct_CXX=yes
  11289. hardcode_direct_absolute_CXX=yes
  11290. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11291. # but as the default
  11292. # location of the library.
  11293. ;;
  11294. esac
  11295. case $cc_basename in
  11296. CC*)
  11297. # FIXME: insert proper C++ library support
  11298. ld_shlibs_CXX=no
  11299. ;;
  11300. aCC*)
  11301. case $host_cpu in
  11302. hppa*64*)
  11303. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11304. ;;
  11305. ia64*)
  11306. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11307. ;;
  11308. *)
  11309. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11310. ;;
  11311. esac
  11312. # Commands to make compiler produce verbose output that lists
  11313. # what "hidden" libraries, object files and flags are used when
  11314. # linking a shared library.
  11315. #
  11316. # There doesn't appear to be a way to prevent this compiler from
  11317. # explicitly linking system object files so we need to strip them
  11318. # from the output so that they don't get included in the library
  11319. # dependencies.
  11320. 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"'
  11321. ;;
  11322. *)
  11323. if test "$GXX" = yes; then
  11324. if test $with_gnu_ld = no; then
  11325. case $host_cpu in
  11326. hppa*64*)
  11327. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11328. ;;
  11329. ia64*)
  11330. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11331. ;;
  11332. *)
  11333. 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'
  11334. ;;
  11335. esac
  11336. fi
  11337. else
  11338. # FIXME: insert proper C++ library support
  11339. ld_shlibs_CXX=no
  11340. fi
  11341. ;;
  11342. esac
  11343. ;;
  11344. interix[3-9]*)
  11345. hardcode_direct_CXX=no
  11346. hardcode_shlibpath_var_CXX=no
  11347. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11348. export_dynamic_flag_spec_CXX='${wl}-E'
  11349. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11350. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11351. # default) and relocated if they conflict, which is a slow very memory
  11352. # consuming and fragmenting process. To avoid this, we pick a random,
  11353. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11354. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11355. 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'
  11356. 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'
  11357. ;;
  11358. irix5* | irix6*)
  11359. case $cc_basename in
  11360. CC*)
  11361. # SGI C++
  11362. 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'
  11363. # Archives containing C++ object files must be created using
  11364. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11365. # necessary to make sure instantiated templates are included
  11366. # in the archive.
  11367. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11368. ;;
  11369. *)
  11370. if test "$GXX" = yes; then
  11371. if test "$with_gnu_ld" = no; then
  11372. 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'
  11373. else
  11374. 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'
  11375. fi
  11376. fi
  11377. link_all_deplibs_CXX=yes
  11378. ;;
  11379. esac
  11380. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11381. hardcode_libdir_separator_CXX=:
  11382. inherit_rpath_CXX=yes
  11383. ;;
  11384. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11385. case $cc_basename in
  11386. KCC*)
  11387. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11388. # KCC will only create a shared library if the output file
  11389. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11390. # to its proper name (with version) after linking.
  11391. 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'
  11392. 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'
  11393. # Commands to make compiler produce verbose output that lists
  11394. # what "hidden" libraries, object files and flags are used when
  11395. # linking a shared library.
  11396. #
  11397. # There doesn't appear to be a way to prevent this compiler from
  11398. # explicitly linking system object files so we need to strip them
  11399. # from the output so that they don't get included in the library
  11400. # dependencies.
  11401. 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"'
  11402. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11403. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11404. # Archives containing C++ object files must be created using
  11405. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11406. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11407. ;;
  11408. icpc* | ecpc* )
  11409. # Intel C++
  11410. with_gnu_ld=yes
  11411. # version 8.0 and above of icpc choke on multiply defined symbols
  11412. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11413. # earlier do not add the objects themselves.
  11414. case `$CC -V 2>&1` in
  11415. *"Version 7."*)
  11416. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11417. 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'
  11418. ;;
  11419. *) # Version 8.0 or newer
  11420. tmp_idyn=
  11421. case $host_cpu in
  11422. ia64*) tmp_idyn=' -i_dynamic';;
  11423. esac
  11424. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11425. 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'
  11426. ;;
  11427. esac
  11428. archive_cmds_need_lc_CXX=no
  11429. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11430. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11431. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11432. ;;
  11433. pgCC* | pgcpp*)
  11434. # Portland Group C++ compiler
  11435. case `$CC -V` in
  11436. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11437. prelink_cmds_CXX='tpldir=Template.dir~
  11438. rm -rf $tpldir~
  11439. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11440. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11441. old_archive_cmds_CXX='tpldir=Template.dir~
  11442. rm -rf $tpldir~
  11443. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11444. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11445. $RANLIB $oldlib'
  11446. archive_cmds_CXX='tpldir=Template.dir~
  11447. rm -rf $tpldir~
  11448. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11449. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11450. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11451. rm -rf $tpldir~
  11452. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11453. $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'
  11454. ;;
  11455. *) # Version 6 and above use weak symbols
  11456. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11457. 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'
  11458. ;;
  11459. esac
  11460. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11461. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11462. 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'
  11463. ;;
  11464. cxx*)
  11465. # Compaq C++
  11466. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11467. 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'
  11468. runpath_var=LD_RUN_PATH
  11469. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11470. hardcode_libdir_separator_CXX=:
  11471. # Commands to make compiler produce verbose output that lists
  11472. # what "hidden" libraries, object files and flags are used when
  11473. # linking a shared library.
  11474. #
  11475. # There doesn't appear to be a way to prevent this compiler from
  11476. # explicitly linking system object files so we need to strip them
  11477. # from the output so that they don't get included in the library
  11478. # dependencies.
  11479. 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'
  11480. ;;
  11481. xl* | mpixl* | bgxl*)
  11482. # IBM XL 8.0 on PPC, with GNU ld
  11483. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11484. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11485. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11486. if test "x$supports_anon_versioning" = xyes; then
  11487. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11488. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11489. echo "local: *; };" >> $output_objdir/$libname.ver~
  11490. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11491. fi
  11492. ;;
  11493. *)
  11494. case `$CC -V 2>&1 | sed 5q` in
  11495. *Sun\ C*)
  11496. # Sun C++ 5.9
  11497. no_undefined_flag_CXX=' -zdefs'
  11498. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11499. 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'
  11500. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11501. 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'
  11502. compiler_needs_object_CXX=yes
  11503. # Not sure whether something based on
  11504. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11505. # would be better.
  11506. output_verbose_link_cmd='func_echo_all'
  11507. # Archives containing C++ object files must be created using
  11508. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11509. # necessary to make sure instantiated templates are included
  11510. # in the archive.
  11511. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11512. ;;
  11513. esac
  11514. ;;
  11515. esac
  11516. ;;
  11517. lynxos*)
  11518. # FIXME: insert proper C++ library support
  11519. ld_shlibs_CXX=no
  11520. ;;
  11521. m88k*)
  11522. # FIXME: insert proper C++ library support
  11523. ld_shlibs_CXX=no
  11524. ;;
  11525. mvs*)
  11526. case $cc_basename in
  11527. cxx*)
  11528. # FIXME: insert proper C++ library support
  11529. ld_shlibs_CXX=no
  11530. ;;
  11531. *)
  11532. # FIXME: insert proper C++ library support
  11533. ld_shlibs_CXX=no
  11534. ;;
  11535. esac
  11536. ;;
  11537. netbsd*)
  11538. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11539. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11540. wlarc=
  11541. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11542. hardcode_direct_CXX=yes
  11543. hardcode_shlibpath_var_CXX=no
  11544. fi
  11545. # Workaround some broken pre-1.5 toolchains
  11546. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11547. ;;
  11548. *nto* | *qnx*)
  11549. ld_shlibs_CXX=yes
  11550. ;;
  11551. openbsd2*)
  11552. # C++ shared libraries are fairly broken
  11553. ld_shlibs_CXX=no
  11554. ;;
  11555. openbsd*)
  11556. if test -f /usr/libexec/ld.so; then
  11557. hardcode_direct_CXX=yes
  11558. hardcode_shlibpath_var_CXX=no
  11559. hardcode_direct_absolute_CXX=yes
  11560. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11561. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11562. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11563. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11564. export_dynamic_flag_spec_CXX='${wl}-E'
  11565. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11566. fi
  11567. output_verbose_link_cmd=func_echo_all
  11568. else
  11569. ld_shlibs_CXX=no
  11570. fi
  11571. ;;
  11572. osf3* | osf4* | osf5*)
  11573. case $cc_basename in
  11574. KCC*)
  11575. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11576. # KCC will only create a shared library if the output file
  11577. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11578. # to its proper name (with version) after linking.
  11579. 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'
  11580. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11581. hardcode_libdir_separator_CXX=:
  11582. # Archives containing C++ object files must be created using
  11583. # the KAI C++ compiler.
  11584. case $host in
  11585. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11586. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11587. esac
  11588. ;;
  11589. RCC*)
  11590. # Rational C++ 2.4.1
  11591. # FIXME: insert proper C++ library support
  11592. ld_shlibs_CXX=no
  11593. ;;
  11594. cxx*)
  11595. case $host in
  11596. osf3*)
  11597. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11598. 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'
  11599. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11600. ;;
  11601. *)
  11602. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11603. 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'
  11604. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11605. echo "-hidden">> $lib.exp~
  11606. $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~
  11607. $RM $lib.exp'
  11608. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11609. ;;
  11610. esac
  11611. hardcode_libdir_separator_CXX=:
  11612. # Commands to make compiler produce verbose output that lists
  11613. # what "hidden" libraries, object files and flags are used when
  11614. # linking a shared library.
  11615. #
  11616. # There doesn't appear to be a way to prevent this compiler from
  11617. # explicitly linking system object files so we need to strip them
  11618. # from the output so that they don't get included in the library
  11619. # dependencies.
  11620. 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"'
  11621. ;;
  11622. *)
  11623. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11624. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11625. case $host in
  11626. osf3*)
  11627. 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'
  11628. ;;
  11629. *)
  11630. 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'
  11631. ;;
  11632. esac
  11633. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11634. hardcode_libdir_separator_CXX=:
  11635. # Commands to make compiler produce verbose output that lists
  11636. # what "hidden" libraries, object files and flags are used when
  11637. # linking a shared library.
  11638. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11639. else
  11640. # FIXME: insert proper C++ library support
  11641. ld_shlibs_CXX=no
  11642. fi
  11643. ;;
  11644. esac
  11645. ;;
  11646. psos*)
  11647. # FIXME: insert proper C++ library support
  11648. ld_shlibs_CXX=no
  11649. ;;
  11650. sunos4*)
  11651. case $cc_basename in
  11652. CC*)
  11653. # Sun C++ 4.x
  11654. # FIXME: insert proper C++ library support
  11655. ld_shlibs_CXX=no
  11656. ;;
  11657. lcc*)
  11658. # Lucid
  11659. # FIXME: insert proper C++ library support
  11660. ld_shlibs_CXX=no
  11661. ;;
  11662. *)
  11663. # FIXME: insert proper C++ library support
  11664. ld_shlibs_CXX=no
  11665. ;;
  11666. esac
  11667. ;;
  11668. solaris*)
  11669. case $cc_basename in
  11670. CC* | sunCC*)
  11671. # Sun C++ 4.2, 5.x and Centerline C++
  11672. archive_cmds_need_lc_CXX=yes
  11673. no_undefined_flag_CXX=' -zdefs'
  11674. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11675. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11676. $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'
  11677. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11678. hardcode_shlibpath_var_CXX=no
  11679. case $host_os in
  11680. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11681. *)
  11682. # The compiler driver will combine and reorder linker options,
  11683. # but understands `-z linker_flag'.
  11684. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11685. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11686. ;;
  11687. esac
  11688. link_all_deplibs_CXX=yes
  11689. output_verbose_link_cmd='func_echo_all'
  11690. # Archives containing C++ object files must be created using
  11691. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11692. # necessary to make sure instantiated templates are included
  11693. # in the archive.
  11694. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11695. ;;
  11696. gcx*)
  11697. # Green Hills C++ Compiler
  11698. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11699. # The C++ compiler must be used to create the archive.
  11700. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11701. ;;
  11702. *)
  11703. # GNU C++ compiler with Solaris linker
  11704. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11705. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11706. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11707. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11708. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11709. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11710. # Commands to make compiler produce verbose output that lists
  11711. # what "hidden" libraries, object files and flags are used when
  11712. # linking a shared library.
  11713. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11714. else
  11715. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11716. # platform.
  11717. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11718. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11719. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11720. # Commands to make compiler produce verbose output that lists
  11721. # what "hidden" libraries, object files and flags are used when
  11722. # linking a shared library.
  11723. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11724. fi
  11725. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11726. case $host_os in
  11727. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11728. *)
  11729. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11730. ;;
  11731. esac
  11732. fi
  11733. ;;
  11734. esac
  11735. ;;
  11736. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11737. no_undefined_flag_CXX='${wl}-z,text'
  11738. archive_cmds_need_lc_CXX=no
  11739. hardcode_shlibpath_var_CXX=no
  11740. runpath_var='LD_RUN_PATH'
  11741. case $cc_basename in
  11742. CC*)
  11743. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11744. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11745. ;;
  11746. *)
  11747. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11748. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11749. ;;
  11750. esac
  11751. ;;
  11752. sysv5* | sco3.2v5* | sco5v6*)
  11753. # Note: We can NOT use -z defs as we might desire, because we do not
  11754. # link with -lc, and that would cause any symbols used from libc to
  11755. # always be unresolved, which means just about no library would
  11756. # ever link correctly. If we're not using GNU ld we use -z text
  11757. # though, which does catch some bad symbols but isn't as heavy-handed
  11758. # as -z defs.
  11759. no_undefined_flag_CXX='${wl}-z,text'
  11760. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11761. archive_cmds_need_lc_CXX=no
  11762. hardcode_shlibpath_var_CXX=no
  11763. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11764. hardcode_libdir_separator_CXX=':'
  11765. link_all_deplibs_CXX=yes
  11766. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11767. runpath_var='LD_RUN_PATH'
  11768. case $cc_basename in
  11769. CC*)
  11770. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11771. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11772. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11773. '"$old_archive_cmds_CXX"
  11774. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11775. '"$reload_cmds_CXX"
  11776. ;;
  11777. *)
  11778. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11779. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11780. ;;
  11781. esac
  11782. ;;
  11783. tandem*)
  11784. case $cc_basename in
  11785. NCC*)
  11786. # NonStop-UX NCC 3.20
  11787. # FIXME: insert proper C++ library support
  11788. ld_shlibs_CXX=no
  11789. ;;
  11790. *)
  11791. # FIXME: insert proper C++ library support
  11792. ld_shlibs_CXX=no
  11793. ;;
  11794. esac
  11795. ;;
  11796. vxworks*)
  11797. # FIXME: insert proper C++ library support
  11798. ld_shlibs_CXX=no
  11799. ;;
  11800. *)
  11801. # FIXME: insert proper C++ library support
  11802. ld_shlibs_CXX=no
  11803. ;;
  11804. esac
  11805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11806. $as_echo "$ld_shlibs_CXX" >&6; }
  11807. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11808. GCC_CXX="$GXX"
  11809. LD_CXX="$LD"
  11810. ## CAVEAT EMPTOR:
  11811. ## There is no encapsulation within the following macros, do not change
  11812. ## the running order or otherwise move them around unless you know exactly
  11813. ## what you are doing...
  11814. # Dependencies to place before and after the object being linked:
  11815. predep_objects_CXX=
  11816. postdep_objects_CXX=
  11817. predeps_CXX=
  11818. postdeps_CXX=
  11819. compiler_lib_search_path_CXX=
  11820. cat > conftest.$ac_ext <<_LT_EOF
  11821. class Foo
  11822. {
  11823. public:
  11824. Foo (void) { a = 0; }
  11825. private:
  11826. int a;
  11827. };
  11828. _LT_EOF
  11829. _lt_libdeps_save_CFLAGS=$CFLAGS
  11830. case "$CC $CFLAGS " in #(
  11831. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11832. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11833. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11834. esac
  11835. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11836. (eval $ac_compile) 2>&5
  11837. ac_status=$?
  11838. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11839. test $ac_status = 0; }; then
  11840. # Parse the compiler output and extract the necessary
  11841. # objects, libraries and library flags.
  11842. # Sentinel used to keep track of whether or not we are before
  11843. # the conftest object file.
  11844. pre_test_object_deps_done=no
  11845. for p in `eval "$output_verbose_link_cmd"`; do
  11846. case ${prev}${p} in
  11847. -L* | -R* | -l*)
  11848. # Some compilers place space between "-{L,R}" and the path.
  11849. # Remove the space.
  11850. if test $p = "-L" ||
  11851. test $p = "-R"; then
  11852. prev=$p
  11853. continue
  11854. fi
  11855. # Expand the sysroot to ease extracting the directories later.
  11856. if test -z "$prev"; then
  11857. case $p in
  11858. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11859. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11860. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11861. esac
  11862. fi
  11863. case $p in
  11864. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11865. esac
  11866. if test "$pre_test_object_deps_done" = no; then
  11867. case ${prev} in
  11868. -L | -R)
  11869. # Internal compiler library paths should come after those
  11870. # provided the user. The postdeps already come after the
  11871. # user supplied libs so there is no need to process them.
  11872. if test -z "$compiler_lib_search_path_CXX"; then
  11873. compiler_lib_search_path_CXX="${prev}${p}"
  11874. else
  11875. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11876. fi
  11877. ;;
  11878. # The "-l" case would never come before the object being
  11879. # linked, so don't bother handling this case.
  11880. esac
  11881. else
  11882. if test -z "$postdeps_CXX"; then
  11883. postdeps_CXX="${prev}${p}"
  11884. else
  11885. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11886. fi
  11887. fi
  11888. prev=
  11889. ;;
  11890. *.lto.$objext) ;; # Ignore GCC LTO objects
  11891. *.$objext)
  11892. # This assumes that the test object file only shows up
  11893. # once in the compiler output.
  11894. if test "$p" = "conftest.$objext"; then
  11895. pre_test_object_deps_done=yes
  11896. continue
  11897. fi
  11898. if test "$pre_test_object_deps_done" = no; then
  11899. if test -z "$predep_objects_CXX"; then
  11900. predep_objects_CXX="$p"
  11901. else
  11902. predep_objects_CXX="$predep_objects_CXX $p"
  11903. fi
  11904. else
  11905. if test -z "$postdep_objects_CXX"; then
  11906. postdep_objects_CXX="$p"
  11907. else
  11908. postdep_objects_CXX="$postdep_objects_CXX $p"
  11909. fi
  11910. fi
  11911. ;;
  11912. *) ;; # Ignore the rest.
  11913. esac
  11914. done
  11915. # Clean up.
  11916. rm -f a.out a.exe
  11917. else
  11918. echo "libtool.m4: error: problem compiling CXX test program"
  11919. fi
  11920. $RM -f confest.$objext
  11921. CFLAGS=$_lt_libdeps_save_CFLAGS
  11922. # PORTME: override above test on systems where it is broken
  11923. case $host_os in
  11924. interix[3-9]*)
  11925. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11926. # hack all around it, let's just trust "g++" to DTRT.
  11927. predep_objects_CXX=
  11928. postdep_objects_CXX=
  11929. postdeps_CXX=
  11930. ;;
  11931. linux*)
  11932. case `$CC -V 2>&1 | sed 5q` in
  11933. *Sun\ C*)
  11934. # Sun C++ 5.9
  11935. # The more standards-conforming stlport4 library is
  11936. # incompatible with the Cstd library. Avoid specifying
  11937. # it if it's in CXXFLAGS. Ignore libCrun as
  11938. # -library=stlport4 depends on it.
  11939. case " $CXX $CXXFLAGS " in
  11940. *" -library=stlport4 "*)
  11941. solaris_use_stlport4=yes
  11942. ;;
  11943. esac
  11944. if test "$solaris_use_stlport4" != yes; then
  11945. postdeps_CXX='-library=Cstd -library=Crun'
  11946. fi
  11947. ;;
  11948. esac
  11949. ;;
  11950. solaris*)
  11951. case $cc_basename in
  11952. CC* | sunCC*)
  11953. # The more standards-conforming stlport4 library is
  11954. # incompatible with the Cstd library. Avoid specifying
  11955. # it if it's in CXXFLAGS. Ignore libCrun as
  11956. # -library=stlport4 depends on it.
  11957. case " $CXX $CXXFLAGS " in
  11958. *" -library=stlport4 "*)
  11959. solaris_use_stlport4=yes
  11960. ;;
  11961. esac
  11962. # Adding this requires a known-good setup of shared libraries for
  11963. # Sun compiler versions before 5.6, else PIC objects from an old
  11964. # archive will be linked into the output, leading to subtle bugs.
  11965. if test "$solaris_use_stlport4" != yes; then
  11966. postdeps_CXX='-library=Cstd -library=Crun'
  11967. fi
  11968. ;;
  11969. esac
  11970. ;;
  11971. esac
  11972. case " $postdeps_CXX " in
  11973. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11974. esac
  11975. compiler_lib_search_dirs_CXX=
  11976. if test -n "${compiler_lib_search_path_CXX}"; then
  11977. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11978. fi
  11979. lt_prog_compiler_wl_CXX=
  11980. lt_prog_compiler_pic_CXX=
  11981. lt_prog_compiler_static_CXX=
  11982. # C++ specific cases for pic, static, wl, etc.
  11983. if test "$GXX" = yes; then
  11984. lt_prog_compiler_wl_CXX='-Wl,'
  11985. lt_prog_compiler_static_CXX='-static'
  11986. case $host_os in
  11987. aix*)
  11988. # All AIX code is PIC.
  11989. if test "$host_cpu" = ia64; then
  11990. # AIX 5 now supports IA64 processor
  11991. lt_prog_compiler_static_CXX='-Bstatic'
  11992. fi
  11993. ;;
  11994. amigaos*)
  11995. case $host_cpu in
  11996. powerpc)
  11997. # see comment about AmigaOS4 .so support
  11998. lt_prog_compiler_pic_CXX='-fPIC'
  11999. ;;
  12000. m68k)
  12001. # FIXME: we need at least 68020 code to build shared libraries, but
  12002. # adding the `-m68020' flag to GCC prevents building anything better,
  12003. # like `-m68040'.
  12004. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12005. ;;
  12006. esac
  12007. ;;
  12008. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12009. # PIC is the default for these OSes.
  12010. ;;
  12011. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12012. # This hack is so that the source file can tell whether it is being
  12013. # built for inclusion in a dll (and should export symbols for example).
  12014. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12015. # (--disable-auto-import) libraries
  12016. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12017. ;;
  12018. darwin* | rhapsody*)
  12019. # PIC is the default on this platform
  12020. # Common symbols not allowed in MH_DYLIB files
  12021. lt_prog_compiler_pic_CXX='-fno-common'
  12022. ;;
  12023. *djgpp*)
  12024. # DJGPP does not support shared libraries at all
  12025. lt_prog_compiler_pic_CXX=
  12026. ;;
  12027. haiku*)
  12028. # PIC is the default for Haiku.
  12029. # The "-static" flag exists, but is broken.
  12030. lt_prog_compiler_static_CXX=
  12031. ;;
  12032. interix[3-9]*)
  12033. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12034. # Instead, we relocate shared libraries at runtime.
  12035. ;;
  12036. sysv4*MP*)
  12037. if test -d /usr/nec; then
  12038. lt_prog_compiler_pic_CXX=-Kconform_pic
  12039. fi
  12040. ;;
  12041. hpux*)
  12042. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12043. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12044. # sets the default TLS model and affects inlining.
  12045. case $host_cpu in
  12046. hppa*64*)
  12047. ;;
  12048. *)
  12049. lt_prog_compiler_pic_CXX='-fPIC'
  12050. ;;
  12051. esac
  12052. ;;
  12053. *qnx* | *nto*)
  12054. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12055. # it will coredump.
  12056. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12057. ;;
  12058. *)
  12059. lt_prog_compiler_pic_CXX='-fPIC'
  12060. ;;
  12061. esac
  12062. else
  12063. case $host_os in
  12064. aix[4-9]*)
  12065. # All AIX code is PIC.
  12066. if test "$host_cpu" = ia64; then
  12067. # AIX 5 now supports IA64 processor
  12068. lt_prog_compiler_static_CXX='-Bstatic'
  12069. else
  12070. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12071. fi
  12072. ;;
  12073. chorus*)
  12074. case $cc_basename in
  12075. cxch68*)
  12076. # Green Hills C++ Compiler
  12077. # _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"
  12078. ;;
  12079. esac
  12080. ;;
  12081. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12082. # This hack is so that the source file can tell whether it is being
  12083. # built for inclusion in a dll (and should export symbols for example).
  12084. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12085. ;;
  12086. dgux*)
  12087. case $cc_basename in
  12088. ec++*)
  12089. lt_prog_compiler_pic_CXX='-KPIC'
  12090. ;;
  12091. ghcx*)
  12092. # Green Hills C++ Compiler
  12093. lt_prog_compiler_pic_CXX='-pic'
  12094. ;;
  12095. *)
  12096. ;;
  12097. esac
  12098. ;;
  12099. freebsd* | dragonfly*)
  12100. # FreeBSD uses GNU C++
  12101. ;;
  12102. hpux9* | hpux10* | hpux11*)
  12103. case $cc_basename in
  12104. CC*)
  12105. lt_prog_compiler_wl_CXX='-Wl,'
  12106. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12107. if test "$host_cpu" != ia64; then
  12108. lt_prog_compiler_pic_CXX='+Z'
  12109. fi
  12110. ;;
  12111. aCC*)
  12112. lt_prog_compiler_wl_CXX='-Wl,'
  12113. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12114. case $host_cpu in
  12115. hppa*64*|ia64*)
  12116. # +Z the default
  12117. ;;
  12118. *)
  12119. lt_prog_compiler_pic_CXX='+Z'
  12120. ;;
  12121. esac
  12122. ;;
  12123. *)
  12124. ;;
  12125. esac
  12126. ;;
  12127. interix*)
  12128. # This is c89, which is MS Visual C++ (no shared libs)
  12129. # Anyone wants to do a port?
  12130. ;;
  12131. irix5* | irix6* | nonstopux*)
  12132. case $cc_basename in
  12133. CC*)
  12134. lt_prog_compiler_wl_CXX='-Wl,'
  12135. lt_prog_compiler_static_CXX='-non_shared'
  12136. # CC pic flag -KPIC is the default.
  12137. ;;
  12138. *)
  12139. ;;
  12140. esac
  12141. ;;
  12142. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12143. case $cc_basename in
  12144. KCC*)
  12145. # KAI C++ Compiler
  12146. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12147. lt_prog_compiler_pic_CXX='-fPIC'
  12148. ;;
  12149. ecpc* )
  12150. # old Intel C++ for x86_64 which still supported -KPIC.
  12151. lt_prog_compiler_wl_CXX='-Wl,'
  12152. lt_prog_compiler_pic_CXX='-KPIC'
  12153. lt_prog_compiler_static_CXX='-static'
  12154. ;;
  12155. icpc* )
  12156. # Intel C++, used to be incompatible with GCC.
  12157. # ICC 10 doesn't accept -KPIC any more.
  12158. lt_prog_compiler_wl_CXX='-Wl,'
  12159. lt_prog_compiler_pic_CXX='-fPIC'
  12160. lt_prog_compiler_static_CXX='-static'
  12161. ;;
  12162. pgCC* | pgcpp*)
  12163. # Portland Group C++ compiler
  12164. lt_prog_compiler_wl_CXX='-Wl,'
  12165. lt_prog_compiler_pic_CXX='-fpic'
  12166. lt_prog_compiler_static_CXX='-Bstatic'
  12167. ;;
  12168. cxx*)
  12169. # Compaq C++
  12170. # Make sure the PIC flag is empty. It appears that all Alpha
  12171. # Linux and Compaq Tru64 Unix objects are PIC.
  12172. lt_prog_compiler_pic_CXX=
  12173. lt_prog_compiler_static_CXX='-non_shared'
  12174. ;;
  12175. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12176. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12177. lt_prog_compiler_wl_CXX='-Wl,'
  12178. lt_prog_compiler_pic_CXX='-qpic'
  12179. lt_prog_compiler_static_CXX='-qstaticlink'
  12180. ;;
  12181. *)
  12182. case `$CC -V 2>&1 | sed 5q` in
  12183. *Sun\ C*)
  12184. # Sun C++ 5.9
  12185. lt_prog_compiler_pic_CXX='-KPIC'
  12186. lt_prog_compiler_static_CXX='-Bstatic'
  12187. lt_prog_compiler_wl_CXX='-Qoption ld '
  12188. ;;
  12189. esac
  12190. ;;
  12191. esac
  12192. ;;
  12193. lynxos*)
  12194. ;;
  12195. m88k*)
  12196. ;;
  12197. mvs*)
  12198. case $cc_basename in
  12199. cxx*)
  12200. lt_prog_compiler_pic_CXX='-W c,exportall'
  12201. ;;
  12202. *)
  12203. ;;
  12204. esac
  12205. ;;
  12206. netbsd*)
  12207. ;;
  12208. *qnx* | *nto*)
  12209. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12210. # it will coredump.
  12211. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12212. ;;
  12213. osf3* | osf4* | osf5*)
  12214. case $cc_basename in
  12215. KCC*)
  12216. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12217. ;;
  12218. RCC*)
  12219. # Rational C++ 2.4.1
  12220. lt_prog_compiler_pic_CXX='-pic'
  12221. ;;
  12222. cxx*)
  12223. # Digital/Compaq C++
  12224. lt_prog_compiler_wl_CXX='-Wl,'
  12225. # Make sure the PIC flag is empty. It appears that all Alpha
  12226. # Linux and Compaq Tru64 Unix objects are PIC.
  12227. lt_prog_compiler_pic_CXX=
  12228. lt_prog_compiler_static_CXX='-non_shared'
  12229. ;;
  12230. *)
  12231. ;;
  12232. esac
  12233. ;;
  12234. psos*)
  12235. ;;
  12236. solaris*)
  12237. case $cc_basename in
  12238. CC* | sunCC*)
  12239. # Sun C++ 4.2, 5.x and Centerline C++
  12240. lt_prog_compiler_pic_CXX='-KPIC'
  12241. lt_prog_compiler_static_CXX='-Bstatic'
  12242. lt_prog_compiler_wl_CXX='-Qoption ld '
  12243. ;;
  12244. gcx*)
  12245. # Green Hills C++ Compiler
  12246. lt_prog_compiler_pic_CXX='-PIC'
  12247. ;;
  12248. *)
  12249. ;;
  12250. esac
  12251. ;;
  12252. sunos4*)
  12253. case $cc_basename in
  12254. CC*)
  12255. # Sun C++ 4.x
  12256. lt_prog_compiler_pic_CXX='-pic'
  12257. lt_prog_compiler_static_CXX='-Bstatic'
  12258. ;;
  12259. lcc*)
  12260. # Lucid
  12261. lt_prog_compiler_pic_CXX='-pic'
  12262. ;;
  12263. *)
  12264. ;;
  12265. esac
  12266. ;;
  12267. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12268. case $cc_basename in
  12269. CC*)
  12270. lt_prog_compiler_wl_CXX='-Wl,'
  12271. lt_prog_compiler_pic_CXX='-KPIC'
  12272. lt_prog_compiler_static_CXX='-Bstatic'
  12273. ;;
  12274. esac
  12275. ;;
  12276. tandem*)
  12277. case $cc_basename in
  12278. NCC*)
  12279. # NonStop-UX NCC 3.20
  12280. lt_prog_compiler_pic_CXX='-KPIC'
  12281. ;;
  12282. *)
  12283. ;;
  12284. esac
  12285. ;;
  12286. vxworks*)
  12287. ;;
  12288. *)
  12289. lt_prog_compiler_can_build_shared_CXX=no
  12290. ;;
  12291. esac
  12292. fi
  12293. case $host_os in
  12294. # For platforms which do not support PIC, -DPIC is meaningless:
  12295. *djgpp*)
  12296. lt_prog_compiler_pic_CXX=
  12297. ;;
  12298. *)
  12299. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12300. ;;
  12301. esac
  12302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12303. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12304. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12305. $as_echo_n "(cached) " >&6
  12306. else
  12307. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12308. fi
  12309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12310. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12311. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12312. #
  12313. # Check to make sure the PIC flag actually works.
  12314. #
  12315. if test -n "$lt_prog_compiler_pic_CXX"; then
  12316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12317. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12318. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12319. $as_echo_n "(cached) " >&6
  12320. else
  12321. lt_cv_prog_compiler_pic_works_CXX=no
  12322. ac_outfile=conftest.$ac_objext
  12323. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12324. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12325. # Insert the option either (1) after the last *FLAGS variable, or
  12326. # (2) before a word containing "conftest.", or (3) at the end.
  12327. # Note that $ac_compile itself does not contain backslashes and begins
  12328. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12329. # The option is referenced via a variable to avoid confusing sed.
  12330. lt_compile=`echo "$ac_compile" | $SED \
  12331. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12332. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12333. -e 's:$: $lt_compiler_flag:'`
  12334. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12335. (eval "$lt_compile" 2>conftest.err)
  12336. ac_status=$?
  12337. cat conftest.err >&5
  12338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12339. if (exit $ac_status) && test -s "$ac_outfile"; then
  12340. # The compiler can only warn and ignore the option if not recognized
  12341. # So say no if there are warnings other than the usual output.
  12342. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12343. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12344. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12345. lt_cv_prog_compiler_pic_works_CXX=yes
  12346. fi
  12347. fi
  12348. $RM conftest*
  12349. fi
  12350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12351. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12352. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12353. case $lt_prog_compiler_pic_CXX in
  12354. "" | " "*) ;;
  12355. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12356. esac
  12357. else
  12358. lt_prog_compiler_pic_CXX=
  12359. lt_prog_compiler_can_build_shared_CXX=no
  12360. fi
  12361. fi
  12362. #
  12363. # Check to make sure the static flag actually works.
  12364. #
  12365. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12367. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12368. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12369. $as_echo_n "(cached) " >&6
  12370. else
  12371. lt_cv_prog_compiler_static_works_CXX=no
  12372. save_LDFLAGS="$LDFLAGS"
  12373. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12374. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12375. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12376. # The linker can only warn and ignore the option if not recognized
  12377. # So say no if there are warnings
  12378. if test -s conftest.err; then
  12379. # Append any errors to the config.log.
  12380. cat conftest.err 1>&5
  12381. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12382. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12383. if diff conftest.exp conftest.er2 >/dev/null; then
  12384. lt_cv_prog_compiler_static_works_CXX=yes
  12385. fi
  12386. else
  12387. lt_cv_prog_compiler_static_works_CXX=yes
  12388. fi
  12389. fi
  12390. $RM -r conftest*
  12391. LDFLAGS="$save_LDFLAGS"
  12392. fi
  12393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12394. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12395. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12396. :
  12397. else
  12398. lt_prog_compiler_static_CXX=
  12399. fi
  12400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12401. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12402. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12403. $as_echo_n "(cached) " >&6
  12404. else
  12405. lt_cv_prog_compiler_c_o_CXX=no
  12406. $RM -r conftest 2>/dev/null
  12407. mkdir conftest
  12408. cd conftest
  12409. mkdir out
  12410. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12411. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12412. # Insert the option either (1) after the last *FLAGS variable, or
  12413. # (2) before a word containing "conftest.", or (3) at the end.
  12414. # Note that $ac_compile itself does not contain backslashes and begins
  12415. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12416. lt_compile=`echo "$ac_compile" | $SED \
  12417. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12418. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12419. -e 's:$: $lt_compiler_flag:'`
  12420. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12421. (eval "$lt_compile" 2>out/conftest.err)
  12422. ac_status=$?
  12423. cat out/conftest.err >&5
  12424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12425. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12426. then
  12427. # The compiler can only warn and ignore the option if not recognized
  12428. # So say no if there are warnings
  12429. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12430. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12431. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12432. lt_cv_prog_compiler_c_o_CXX=yes
  12433. fi
  12434. fi
  12435. chmod u+w . 2>&5
  12436. $RM conftest*
  12437. # SGI C++ compiler will create directory out/ii_files/ for
  12438. # template instantiation
  12439. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12440. $RM out/* && rmdir out
  12441. cd ..
  12442. $RM -r conftest
  12443. $RM conftest*
  12444. fi
  12445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12446. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12448. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12449. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12450. $as_echo_n "(cached) " >&6
  12451. else
  12452. lt_cv_prog_compiler_c_o_CXX=no
  12453. $RM -r conftest 2>/dev/null
  12454. mkdir conftest
  12455. cd conftest
  12456. mkdir out
  12457. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12458. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12459. # Insert the option either (1) after the last *FLAGS variable, or
  12460. # (2) before a word containing "conftest.", or (3) at the end.
  12461. # Note that $ac_compile itself does not contain backslashes and begins
  12462. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12463. lt_compile=`echo "$ac_compile" | $SED \
  12464. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12465. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12466. -e 's:$: $lt_compiler_flag:'`
  12467. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12468. (eval "$lt_compile" 2>out/conftest.err)
  12469. ac_status=$?
  12470. cat out/conftest.err >&5
  12471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12472. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12473. then
  12474. # The compiler can only warn and ignore the option if not recognized
  12475. # So say no if there are warnings
  12476. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12477. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12478. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12479. lt_cv_prog_compiler_c_o_CXX=yes
  12480. fi
  12481. fi
  12482. chmod u+w . 2>&5
  12483. $RM conftest*
  12484. # SGI C++ compiler will create directory out/ii_files/ for
  12485. # template instantiation
  12486. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12487. $RM out/* && rmdir out
  12488. cd ..
  12489. $RM -r conftest
  12490. $RM conftest*
  12491. fi
  12492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12493. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12494. hard_links="nottested"
  12495. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12496. # do not overwrite the value of need_locks provided by the user
  12497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12498. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12499. hard_links=yes
  12500. $RM conftest*
  12501. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12502. touch conftest.a
  12503. ln conftest.a conftest.b 2>&5 || hard_links=no
  12504. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12506. $as_echo "$hard_links" >&6; }
  12507. if test "$hard_links" = no; then
  12508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12509. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12510. need_locks=warn
  12511. fi
  12512. else
  12513. need_locks=no
  12514. fi
  12515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12516. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12517. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12518. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12519. case $host_os in
  12520. aix[4-9]*)
  12521. # If we're using GNU nm, then we don't want the "-C" option.
  12522. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12523. # Also, AIX nm treats weak defined symbols like other global defined
  12524. # symbols, whereas GNU nm marks them as "W".
  12525. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12526. 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'
  12527. else
  12528. 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'
  12529. fi
  12530. ;;
  12531. pw32*)
  12532. export_symbols_cmds_CXX="$ltdll_cmds"
  12533. ;;
  12534. cygwin* | mingw* | cegcc*)
  12535. case $cc_basename in
  12536. cl*)
  12537. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12538. ;;
  12539. *)
  12540. 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'
  12541. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12542. ;;
  12543. esac
  12544. ;;
  12545. *)
  12546. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12547. ;;
  12548. esac
  12549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12550. $as_echo "$ld_shlibs_CXX" >&6; }
  12551. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12552. with_gnu_ld_CXX=$with_gnu_ld
  12553. #
  12554. # Do we need to explicitly link libc?
  12555. #
  12556. case "x$archive_cmds_need_lc_CXX" in
  12557. x|xyes)
  12558. # Assume -lc should be added
  12559. archive_cmds_need_lc_CXX=yes
  12560. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12561. case $archive_cmds_CXX in
  12562. *'~'*)
  12563. # FIXME: we may have to deal with multi-command sequences.
  12564. ;;
  12565. '$CC '*)
  12566. # Test whether the compiler implicitly links with -lc since on some
  12567. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12568. # to ld, don't add -lc before -lgcc.
  12569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12570. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12571. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12572. $as_echo_n "(cached) " >&6
  12573. else
  12574. $RM conftest*
  12575. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12576. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12577. (eval $ac_compile) 2>&5
  12578. ac_status=$?
  12579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12580. test $ac_status = 0; } 2>conftest.err; then
  12581. soname=conftest
  12582. lib=conftest
  12583. libobjs=conftest.$ac_objext
  12584. deplibs=
  12585. wl=$lt_prog_compiler_wl_CXX
  12586. pic_flag=$lt_prog_compiler_pic_CXX
  12587. compiler_flags=-v
  12588. linker_flags=-v
  12589. verstring=
  12590. output_objdir=.
  12591. libname=conftest
  12592. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12593. allow_undefined_flag_CXX=
  12594. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12595. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12596. ac_status=$?
  12597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12598. test $ac_status = 0; }
  12599. then
  12600. lt_cv_archive_cmds_need_lc_CXX=no
  12601. else
  12602. lt_cv_archive_cmds_need_lc_CXX=yes
  12603. fi
  12604. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12605. else
  12606. cat conftest.err 1>&5
  12607. fi
  12608. $RM conftest*
  12609. fi
  12610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12611. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12612. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12613. ;;
  12614. esac
  12615. fi
  12616. ;;
  12617. esac
  12618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12619. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12620. library_names_spec=
  12621. libname_spec='lib$name'
  12622. soname_spec=
  12623. shrext_cmds=".so"
  12624. postinstall_cmds=
  12625. postuninstall_cmds=
  12626. finish_cmds=
  12627. finish_eval=
  12628. shlibpath_var=
  12629. shlibpath_overrides_runpath=unknown
  12630. version_type=none
  12631. dynamic_linker="$host_os ld.so"
  12632. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12633. need_lib_prefix=unknown
  12634. hardcode_into_libs=no
  12635. # when you set need_version to no, make sure it does not cause -set_version
  12636. # flags to be left without arguments
  12637. need_version=unknown
  12638. case $host_os in
  12639. aix3*)
  12640. version_type=linux # correct to gnu/linux during the next big refactor
  12641. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12642. shlibpath_var=LIBPATH
  12643. # AIX 3 has no versioning support, so we append a major version to the name.
  12644. soname_spec='${libname}${release}${shared_ext}$major'
  12645. ;;
  12646. aix[4-9]*)
  12647. version_type=linux # correct to gnu/linux during the next big refactor
  12648. need_lib_prefix=no
  12649. need_version=no
  12650. hardcode_into_libs=yes
  12651. if test "$host_cpu" = ia64; then
  12652. # AIX 5 supports IA64
  12653. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12654. shlibpath_var=LD_LIBRARY_PATH
  12655. else
  12656. # With GCC up to 2.95.x, collect2 would create an import file
  12657. # for dependence libraries. The import file would start with
  12658. # the line `#! .'. This would cause the generated library to
  12659. # depend on `.', always an invalid library. This was fixed in
  12660. # development snapshots of GCC prior to 3.0.
  12661. case $host_os in
  12662. aix4 | aix4.[01] | aix4.[01].*)
  12663. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12664. echo ' yes '
  12665. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12666. :
  12667. else
  12668. can_build_shared=no
  12669. fi
  12670. ;;
  12671. esac
  12672. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12673. # soname into executable. Probably we can add versioning support to
  12674. # collect2, so additional links can be useful in future.
  12675. if test "$aix_use_runtimelinking" = yes; then
  12676. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12677. # instead of lib<name>.a to let people know that these are not
  12678. # typical AIX shared libraries.
  12679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12680. else
  12681. # We preserve .a as extension for shared libraries through AIX4.2
  12682. # and later when we are not doing run time linking.
  12683. library_names_spec='${libname}${release}.a $libname.a'
  12684. soname_spec='${libname}${release}${shared_ext}$major'
  12685. fi
  12686. shlibpath_var=LIBPATH
  12687. fi
  12688. ;;
  12689. amigaos*)
  12690. case $host_cpu in
  12691. powerpc)
  12692. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12693. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12694. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12695. ;;
  12696. m68k)
  12697. library_names_spec='$libname.ixlibrary $libname.a'
  12698. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12699. 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'
  12700. ;;
  12701. esac
  12702. ;;
  12703. beos*)
  12704. library_names_spec='${libname}${shared_ext}'
  12705. dynamic_linker="$host_os ld.so"
  12706. shlibpath_var=LIBRARY_PATH
  12707. ;;
  12708. bsdi[45]*)
  12709. version_type=linux # correct to gnu/linux during the next big refactor
  12710. need_version=no
  12711. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12712. soname_spec='${libname}${release}${shared_ext}$major'
  12713. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12714. shlibpath_var=LD_LIBRARY_PATH
  12715. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12716. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12717. # the default ld.so.conf also contains /usr/contrib/lib and
  12718. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12719. # libtool to hard-code these into programs
  12720. ;;
  12721. cygwin* | mingw* | pw32* | cegcc*)
  12722. version_type=windows
  12723. shrext_cmds=".dll"
  12724. need_version=no
  12725. need_lib_prefix=no
  12726. case $GCC,$cc_basename in
  12727. yes,*)
  12728. # gcc
  12729. library_names_spec='$libname.dll.a'
  12730. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12731. postinstall_cmds='base_file=`basename \${file}`~
  12732. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12733. dldir=$destdir/`dirname \$dlpath`~
  12734. test -d \$dldir || mkdir -p \$dldir~
  12735. $install_prog $dir/$dlname \$dldir/$dlname~
  12736. chmod a+x \$dldir/$dlname~
  12737. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12738. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12739. fi'
  12740. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12741. dlpath=$dir/\$dldll~
  12742. $RM \$dlpath'
  12743. shlibpath_overrides_runpath=yes
  12744. case $host_os in
  12745. cygwin*)
  12746. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12747. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12748. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12749. ;;
  12750. mingw* | cegcc*)
  12751. # MinGW DLLs use traditional 'lib' prefix
  12752. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12753. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12754. ;;
  12755. pw32*)
  12756. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12757. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12758. ;;
  12759. esac
  12760. dynamic_linker='Win32 ld.exe'
  12761. ;;
  12762. *,cl*)
  12763. # Native MSVC
  12764. libname_spec='$name'
  12765. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12766. library_names_spec='${libname}.dll.lib'
  12767. case $build_os in
  12768. mingw*)
  12769. sys_lib_search_path_spec=
  12770. lt_save_ifs=$IFS
  12771. IFS=';'
  12772. for lt_path in $LIB
  12773. do
  12774. IFS=$lt_save_ifs
  12775. # Let DOS variable expansion print the short 8.3 style file name.
  12776. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12777. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12778. done
  12779. IFS=$lt_save_ifs
  12780. # Convert to MSYS style.
  12781. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12782. ;;
  12783. cygwin*)
  12784. # Convert to unix form, then to dos form, then back to unix form
  12785. # but this time dos style (no spaces!) so that the unix form looks
  12786. # like /cygdrive/c/PROGRA~1:/cygdr...
  12787. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12788. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12789. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12790. ;;
  12791. *)
  12792. sys_lib_search_path_spec="$LIB"
  12793. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12794. # It is most probably a Windows format PATH.
  12795. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12796. else
  12797. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12798. fi
  12799. # FIXME: find the short name or the path components, as spaces are
  12800. # common. (e.g. "Program Files" -> "PROGRA~1")
  12801. ;;
  12802. esac
  12803. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12804. postinstall_cmds='base_file=`basename \${file}`~
  12805. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12806. dldir=$destdir/`dirname \$dlpath`~
  12807. test -d \$dldir || mkdir -p \$dldir~
  12808. $install_prog $dir/$dlname \$dldir/$dlname'
  12809. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12810. dlpath=$dir/\$dldll~
  12811. $RM \$dlpath'
  12812. shlibpath_overrides_runpath=yes
  12813. dynamic_linker='Win32 link.exe'
  12814. ;;
  12815. *)
  12816. # Assume MSVC wrapper
  12817. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12818. dynamic_linker='Win32 ld.exe'
  12819. ;;
  12820. esac
  12821. # FIXME: first we should search . and the directory the executable is in
  12822. shlibpath_var=PATH
  12823. ;;
  12824. darwin* | rhapsody*)
  12825. dynamic_linker="$host_os dyld"
  12826. version_type=darwin
  12827. need_lib_prefix=no
  12828. need_version=no
  12829. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12830. soname_spec='${libname}${release}${major}$shared_ext'
  12831. shlibpath_overrides_runpath=yes
  12832. shlibpath_var=DYLD_LIBRARY_PATH
  12833. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12834. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12835. ;;
  12836. dgux*)
  12837. version_type=linux # correct to gnu/linux during the next big refactor
  12838. need_lib_prefix=no
  12839. need_version=no
  12840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12841. soname_spec='${libname}${release}${shared_ext}$major'
  12842. shlibpath_var=LD_LIBRARY_PATH
  12843. ;;
  12844. freebsd* | dragonfly*)
  12845. # DragonFly does not have aout. When/if they implement a new
  12846. # versioning mechanism, adjust this.
  12847. if test -x /usr/bin/objformat; then
  12848. objformat=`/usr/bin/objformat`
  12849. else
  12850. case $host_os in
  12851. freebsd[23].*) objformat=aout ;;
  12852. *) objformat=elf ;;
  12853. esac
  12854. fi
  12855. version_type=freebsd-$objformat
  12856. case $version_type in
  12857. freebsd-elf*)
  12858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12859. need_version=no
  12860. need_lib_prefix=no
  12861. ;;
  12862. freebsd-*)
  12863. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12864. need_version=yes
  12865. ;;
  12866. esac
  12867. shlibpath_var=LD_LIBRARY_PATH
  12868. case $host_os in
  12869. freebsd2.*)
  12870. shlibpath_overrides_runpath=yes
  12871. ;;
  12872. freebsd3.[01]* | freebsdelf3.[01]*)
  12873. shlibpath_overrides_runpath=yes
  12874. hardcode_into_libs=yes
  12875. ;;
  12876. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12877. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12878. shlibpath_overrides_runpath=no
  12879. hardcode_into_libs=yes
  12880. ;;
  12881. *) # from 4.6 on, and DragonFly
  12882. shlibpath_overrides_runpath=yes
  12883. hardcode_into_libs=yes
  12884. ;;
  12885. esac
  12886. ;;
  12887. gnu*)
  12888. version_type=linux # correct to gnu/linux during the next big refactor
  12889. need_lib_prefix=no
  12890. need_version=no
  12891. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12892. soname_spec='${libname}${release}${shared_ext}$major'
  12893. shlibpath_var=LD_LIBRARY_PATH
  12894. shlibpath_overrides_runpath=no
  12895. hardcode_into_libs=yes
  12896. ;;
  12897. haiku*)
  12898. version_type=linux # correct to gnu/linux during the next big refactor
  12899. need_lib_prefix=no
  12900. need_version=no
  12901. dynamic_linker="$host_os runtime_loader"
  12902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12903. soname_spec='${libname}${release}${shared_ext}$major'
  12904. shlibpath_var=LIBRARY_PATH
  12905. shlibpath_overrides_runpath=yes
  12906. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12907. hardcode_into_libs=yes
  12908. ;;
  12909. hpux9* | hpux10* | hpux11*)
  12910. # Give a soname corresponding to the major version so that dld.sl refuses to
  12911. # link against other versions.
  12912. version_type=sunos
  12913. need_lib_prefix=no
  12914. need_version=no
  12915. case $host_cpu in
  12916. ia64*)
  12917. shrext_cmds='.so'
  12918. hardcode_into_libs=yes
  12919. dynamic_linker="$host_os dld.so"
  12920. shlibpath_var=LD_LIBRARY_PATH
  12921. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12922. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12923. soname_spec='${libname}${release}${shared_ext}$major'
  12924. if test "X$HPUX_IA64_MODE" = X32; then
  12925. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12926. else
  12927. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12928. fi
  12929. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12930. ;;
  12931. hppa*64*)
  12932. shrext_cmds='.sl'
  12933. hardcode_into_libs=yes
  12934. dynamic_linker="$host_os dld.sl"
  12935. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12936. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12938. soname_spec='${libname}${release}${shared_ext}$major'
  12939. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12940. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12941. ;;
  12942. *)
  12943. shrext_cmds='.sl'
  12944. dynamic_linker="$host_os dld.sl"
  12945. shlibpath_var=SHLIB_PATH
  12946. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12948. soname_spec='${libname}${release}${shared_ext}$major'
  12949. ;;
  12950. esac
  12951. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12952. postinstall_cmds='chmod 555 $lib'
  12953. # or fails outright, so override atomically:
  12954. install_override_mode=555
  12955. ;;
  12956. interix[3-9]*)
  12957. version_type=linux # correct to gnu/linux during the next big refactor
  12958. need_lib_prefix=no
  12959. need_version=no
  12960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12961. soname_spec='${libname}${release}${shared_ext}$major'
  12962. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12963. shlibpath_var=LD_LIBRARY_PATH
  12964. shlibpath_overrides_runpath=no
  12965. hardcode_into_libs=yes
  12966. ;;
  12967. irix5* | irix6* | nonstopux*)
  12968. case $host_os in
  12969. nonstopux*) version_type=nonstopux ;;
  12970. *)
  12971. if test "$lt_cv_prog_gnu_ld" = yes; then
  12972. version_type=linux # correct to gnu/linux during the next big refactor
  12973. else
  12974. version_type=irix
  12975. fi ;;
  12976. esac
  12977. need_lib_prefix=no
  12978. need_version=no
  12979. soname_spec='${libname}${release}${shared_ext}$major'
  12980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12981. case $host_os in
  12982. irix5* | nonstopux*)
  12983. libsuff= shlibsuff=
  12984. ;;
  12985. *)
  12986. case $LD in # libtool.m4 will add one of these switches to LD
  12987. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12988. libsuff= shlibsuff= libmagic=32-bit;;
  12989. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12990. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12991. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12992. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12993. *) libsuff= shlibsuff= libmagic=never-match;;
  12994. esac
  12995. ;;
  12996. esac
  12997. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12998. shlibpath_overrides_runpath=no
  12999. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13000. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13001. hardcode_into_libs=yes
  13002. ;;
  13003. # No shared lib support for Linux oldld, aout, or coff.
  13004. linux*oldld* | linux*aout* | linux*coff*)
  13005. dynamic_linker=no
  13006. ;;
  13007. # This must be glibc/ELF.
  13008. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13009. version_type=linux # correct to gnu/linux during the next big refactor
  13010. need_lib_prefix=no
  13011. need_version=no
  13012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13013. soname_spec='${libname}${release}${shared_ext}$major'
  13014. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13015. shlibpath_var=LD_LIBRARY_PATH
  13016. shlibpath_overrides_runpath=no
  13017. # Some binutils ld are patched to set DT_RUNPATH
  13018. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13019. $as_echo_n "(cached) " >&6
  13020. else
  13021. lt_cv_shlibpath_overrides_runpath=no
  13022. save_LDFLAGS=$LDFLAGS
  13023. save_libdir=$libdir
  13024. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13025. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13027. /* end confdefs.h. */
  13028. int
  13029. main ()
  13030. {
  13031. ;
  13032. return 0;
  13033. }
  13034. _ACEOF
  13035. if ac_fn_cxx_try_link "$LINENO"; then :
  13036. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13037. lt_cv_shlibpath_overrides_runpath=yes
  13038. fi
  13039. fi
  13040. rm -f core conftest.err conftest.$ac_objext \
  13041. conftest$ac_exeext conftest.$ac_ext
  13042. LDFLAGS=$save_LDFLAGS
  13043. libdir=$save_libdir
  13044. fi
  13045. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13046. # This implies no fast_install, which is unacceptable.
  13047. # Some rework will be needed to allow for fast_install
  13048. # before this can be enabled.
  13049. hardcode_into_libs=yes
  13050. # Append ld.so.conf contents to the search path
  13051. if test -f /etc/ld.so.conf; then
  13052. 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' ' '`
  13053. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13054. fi
  13055. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13056. # powerpc, because MkLinux only supported shared libraries with the
  13057. # GNU dynamic linker. Since this was broken with cross compilers,
  13058. # most powerpc-linux boxes support dynamic linking these days and
  13059. # people can always --disable-shared, the test was removed, and we
  13060. # assume the GNU/Linux dynamic linker is in use.
  13061. dynamic_linker='GNU/Linux ld.so'
  13062. ;;
  13063. netbsd*)
  13064. version_type=sunos
  13065. need_lib_prefix=no
  13066. need_version=no
  13067. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13069. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13070. dynamic_linker='NetBSD (a.out) ld.so'
  13071. else
  13072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13073. soname_spec='${libname}${release}${shared_ext}$major'
  13074. dynamic_linker='NetBSD ld.elf_so'
  13075. fi
  13076. shlibpath_var=LD_LIBRARY_PATH
  13077. shlibpath_overrides_runpath=yes
  13078. hardcode_into_libs=yes
  13079. ;;
  13080. newsos6)
  13081. version_type=linux # correct to gnu/linux during the next big refactor
  13082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13083. shlibpath_var=LD_LIBRARY_PATH
  13084. shlibpath_overrides_runpath=yes
  13085. ;;
  13086. *nto* | *qnx*)
  13087. version_type=qnx
  13088. need_lib_prefix=no
  13089. need_version=no
  13090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13091. soname_spec='${libname}${release}${shared_ext}$major'
  13092. shlibpath_var=LD_LIBRARY_PATH
  13093. shlibpath_overrides_runpath=no
  13094. hardcode_into_libs=yes
  13095. dynamic_linker='ldqnx.so'
  13096. ;;
  13097. openbsd*)
  13098. version_type=sunos
  13099. sys_lib_dlsearch_path_spec="/usr/lib"
  13100. need_lib_prefix=no
  13101. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13102. case $host_os in
  13103. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13104. *) need_version=no ;;
  13105. esac
  13106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13107. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13108. shlibpath_var=LD_LIBRARY_PATH
  13109. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13110. case $host_os in
  13111. openbsd2.[89] | openbsd2.[89].*)
  13112. shlibpath_overrides_runpath=no
  13113. ;;
  13114. *)
  13115. shlibpath_overrides_runpath=yes
  13116. ;;
  13117. esac
  13118. else
  13119. shlibpath_overrides_runpath=yes
  13120. fi
  13121. ;;
  13122. os2*)
  13123. libname_spec='$name'
  13124. shrext_cmds=".dll"
  13125. need_lib_prefix=no
  13126. library_names_spec='$libname${shared_ext} $libname.a'
  13127. dynamic_linker='OS/2 ld.exe'
  13128. shlibpath_var=LIBPATH
  13129. ;;
  13130. osf3* | osf4* | osf5*)
  13131. version_type=osf
  13132. need_lib_prefix=no
  13133. need_version=no
  13134. soname_spec='${libname}${release}${shared_ext}$major'
  13135. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13136. shlibpath_var=LD_LIBRARY_PATH
  13137. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13138. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13139. ;;
  13140. rdos*)
  13141. dynamic_linker=no
  13142. ;;
  13143. solaris*)
  13144. version_type=linux # correct to gnu/linux during the next big refactor
  13145. need_lib_prefix=no
  13146. need_version=no
  13147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13148. soname_spec='${libname}${release}${shared_ext}$major'
  13149. shlibpath_var=LD_LIBRARY_PATH
  13150. shlibpath_overrides_runpath=yes
  13151. hardcode_into_libs=yes
  13152. # ldd complains unless libraries are executable
  13153. postinstall_cmds='chmod +x $lib'
  13154. ;;
  13155. sunos4*)
  13156. version_type=sunos
  13157. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13158. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13159. shlibpath_var=LD_LIBRARY_PATH
  13160. shlibpath_overrides_runpath=yes
  13161. if test "$with_gnu_ld" = yes; then
  13162. need_lib_prefix=no
  13163. fi
  13164. need_version=yes
  13165. ;;
  13166. sysv4 | sysv4.3*)
  13167. version_type=linux # correct to gnu/linux during the next big refactor
  13168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13169. soname_spec='${libname}${release}${shared_ext}$major'
  13170. shlibpath_var=LD_LIBRARY_PATH
  13171. case $host_vendor in
  13172. sni)
  13173. shlibpath_overrides_runpath=no
  13174. need_lib_prefix=no
  13175. runpath_var=LD_RUN_PATH
  13176. ;;
  13177. siemens)
  13178. need_lib_prefix=no
  13179. ;;
  13180. motorola)
  13181. need_lib_prefix=no
  13182. need_version=no
  13183. shlibpath_overrides_runpath=no
  13184. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13185. ;;
  13186. esac
  13187. ;;
  13188. sysv4*MP*)
  13189. if test -d /usr/nec ;then
  13190. version_type=linux # correct to gnu/linux during the next big refactor
  13191. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13192. soname_spec='$libname${shared_ext}.$major'
  13193. shlibpath_var=LD_LIBRARY_PATH
  13194. fi
  13195. ;;
  13196. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13197. version_type=freebsd-elf
  13198. need_lib_prefix=no
  13199. need_version=no
  13200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13201. soname_spec='${libname}${release}${shared_ext}$major'
  13202. shlibpath_var=LD_LIBRARY_PATH
  13203. shlibpath_overrides_runpath=yes
  13204. hardcode_into_libs=yes
  13205. if test "$with_gnu_ld" = yes; then
  13206. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13207. else
  13208. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13209. case $host_os in
  13210. sco3.2v5*)
  13211. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13212. ;;
  13213. esac
  13214. fi
  13215. sys_lib_dlsearch_path_spec='/usr/lib'
  13216. ;;
  13217. tpf*)
  13218. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13219. version_type=linux # correct to gnu/linux during the next big refactor
  13220. need_lib_prefix=no
  13221. need_version=no
  13222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13223. shlibpath_var=LD_LIBRARY_PATH
  13224. shlibpath_overrides_runpath=no
  13225. hardcode_into_libs=yes
  13226. ;;
  13227. uts4*)
  13228. version_type=linux # correct to gnu/linux during the next big refactor
  13229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13230. soname_spec='${libname}${release}${shared_ext}$major'
  13231. shlibpath_var=LD_LIBRARY_PATH
  13232. ;;
  13233. *)
  13234. dynamic_linker=no
  13235. ;;
  13236. esac
  13237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13238. $as_echo "$dynamic_linker" >&6; }
  13239. test "$dynamic_linker" = no && can_build_shared=no
  13240. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13241. if test "$GCC" = yes; then
  13242. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13243. fi
  13244. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13245. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13246. fi
  13247. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13248. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13249. fi
  13250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13251. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13252. hardcode_action_CXX=
  13253. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13254. test -n "$runpath_var_CXX" ||
  13255. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13256. # We can hardcode non-existent directories.
  13257. if test "$hardcode_direct_CXX" != no &&
  13258. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13259. # have to relink, otherwise we might link with an installed library
  13260. # when we should be linking with a yet-to-be-installed one
  13261. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13262. test "$hardcode_minus_L_CXX" != no; then
  13263. # Linking always hardcodes the temporary library directory.
  13264. hardcode_action_CXX=relink
  13265. else
  13266. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13267. hardcode_action_CXX=immediate
  13268. fi
  13269. else
  13270. # We cannot hardcode anything, or else we can only hardcode existing
  13271. # directories.
  13272. hardcode_action_CXX=unsupported
  13273. fi
  13274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13275. $as_echo "$hardcode_action_CXX" >&6; }
  13276. if test "$hardcode_action_CXX" = relink ||
  13277. test "$inherit_rpath_CXX" = yes; then
  13278. # Fast installation is not supported
  13279. enable_fast_install=no
  13280. elif test "$shlibpath_overrides_runpath" = yes ||
  13281. test "$enable_shared" = no; then
  13282. # Fast installation is not necessary
  13283. enable_fast_install=needless
  13284. fi
  13285. fi # test -n "$compiler"
  13286. CC=$lt_save_CC
  13287. CFLAGS=$lt_save_CFLAGS
  13288. LDCXX=$LD
  13289. LD=$lt_save_LD
  13290. GCC=$lt_save_GCC
  13291. with_gnu_ld=$lt_save_with_gnu_ld
  13292. lt_cv_path_LDCXX=$lt_cv_path_LD
  13293. lt_cv_path_LD=$lt_save_path_LD
  13294. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13295. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13296. fi # test "$_lt_caught_CXX_error" != yes
  13297. ac_ext=c
  13298. ac_cpp='$CPP $CPPFLAGS'
  13299. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13300. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13301. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13302. # Find a good install program. We prefer a C program (faster),
  13303. # so one script is as good as another. But avoid the broken or
  13304. # incompatible versions:
  13305. # SysV /etc/install, /usr/sbin/install
  13306. # SunOS /usr/etc/install
  13307. # IRIX /sbin/install
  13308. # AIX /bin/install
  13309. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13310. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13311. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13312. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13313. # OS/2's system install, which has a completely different semantic
  13314. # ./install, which can be erroneously created by make from ./install.sh.
  13315. # Reject install programs that cannot install multiple files.
  13316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13317. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13318. if test -z "$INSTALL"; then
  13319. if ${ac_cv_path_install+:} false; then :
  13320. $as_echo_n "(cached) " >&6
  13321. else
  13322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13323. for as_dir in $PATH
  13324. do
  13325. IFS=$as_save_IFS
  13326. test -z "$as_dir" && as_dir=.
  13327. # Account for people who put trailing slashes in PATH elements.
  13328. case $as_dir/ in #((
  13329. ./ | .// | /[cC]/* | \
  13330. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13331. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13332. /usr/ucb/* ) ;;
  13333. *)
  13334. # OSF1 and SCO ODT 3.0 have their own names for install.
  13335. # Don't use installbsd from OSF since it installs stuff as root
  13336. # by default.
  13337. for ac_prog in ginstall scoinst install; do
  13338. for ac_exec_ext in '' $ac_executable_extensions; do
  13339. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13340. if test $ac_prog = install &&
  13341. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13342. # AIX install. It has an incompatible calling convention.
  13343. :
  13344. elif test $ac_prog = install &&
  13345. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13346. # program-specific install script used by HP pwplus--don't use.
  13347. :
  13348. else
  13349. rm -rf conftest.one conftest.two conftest.dir
  13350. echo one > conftest.one
  13351. echo two > conftest.two
  13352. mkdir conftest.dir
  13353. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13354. test -s conftest.one && test -s conftest.two &&
  13355. test -s conftest.dir/conftest.one &&
  13356. test -s conftest.dir/conftest.two
  13357. then
  13358. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13359. break 3
  13360. fi
  13361. fi
  13362. fi
  13363. done
  13364. done
  13365. ;;
  13366. esac
  13367. done
  13368. IFS=$as_save_IFS
  13369. rm -rf conftest.one conftest.two conftest.dir
  13370. fi
  13371. if test "${ac_cv_path_install+set}" = set; then
  13372. INSTALL=$ac_cv_path_install
  13373. else
  13374. # As a last resort, use the slow shell script. Don't cache a
  13375. # value for INSTALL within a source directory, because that will
  13376. # break other packages using the cache if that directory is
  13377. # removed, or if the value is a relative name.
  13378. INSTALL=$ac_install_sh
  13379. fi
  13380. fi
  13381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13382. $as_echo "$INSTALL" >&6; }
  13383. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13384. # It thinks the first close brace ends the variable substitution.
  13385. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13386. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13387. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13389. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13390. set x ${MAKE-make}
  13391. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13392. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13393. $as_echo_n "(cached) " >&6
  13394. else
  13395. cat >conftest.make <<\_ACEOF
  13396. SHELL = /bin/sh
  13397. all:
  13398. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13399. _ACEOF
  13400. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13401. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13402. *@@@%%%=?*=@@@%%%*)
  13403. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13404. *)
  13405. eval ac_cv_prog_make_${ac_make}_set=no;;
  13406. esac
  13407. rm -f conftest.make
  13408. fi
  13409. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13411. $as_echo "yes" >&6; }
  13412. SET_MAKE=
  13413. else
  13414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13415. $as_echo "no" >&6; }
  13416. SET_MAKE="MAKE=${MAKE-make}"
  13417. fi
  13418. if test -n "$ac_tool_prefix"; then
  13419. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13420. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13422. $as_echo_n "checking for $ac_word... " >&6; }
  13423. if ${ac_cv_prog_WINDRES+:} false; then :
  13424. $as_echo_n "(cached) " >&6
  13425. else
  13426. if test -n "$WINDRES"; then
  13427. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13428. else
  13429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13430. for as_dir in $PATH
  13431. do
  13432. IFS=$as_save_IFS
  13433. test -z "$as_dir" && as_dir=.
  13434. for ac_exec_ext in '' $ac_executable_extensions; do
  13435. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13436. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13438. break 2
  13439. fi
  13440. done
  13441. done
  13442. IFS=$as_save_IFS
  13443. fi
  13444. fi
  13445. WINDRES=$ac_cv_prog_WINDRES
  13446. if test -n "$WINDRES"; then
  13447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13448. $as_echo "$WINDRES" >&6; }
  13449. else
  13450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13451. $as_echo "no" >&6; }
  13452. fi
  13453. fi
  13454. if test -z "$ac_cv_prog_WINDRES"; then
  13455. ac_ct_WINDRES=$WINDRES
  13456. # Extract the first word of "windres", so it can be a program name with args.
  13457. set dummy windres; ac_word=$2
  13458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13459. $as_echo_n "checking for $ac_word... " >&6; }
  13460. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13461. $as_echo_n "(cached) " >&6
  13462. else
  13463. if test -n "$ac_ct_WINDRES"; then
  13464. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13465. else
  13466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13467. for as_dir in $PATH
  13468. do
  13469. IFS=$as_save_IFS
  13470. test -z "$as_dir" && as_dir=.
  13471. for ac_exec_ext in '' $ac_executable_extensions; do
  13472. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13473. ac_cv_prog_ac_ct_WINDRES="windres"
  13474. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13475. break 2
  13476. fi
  13477. done
  13478. done
  13479. IFS=$as_save_IFS
  13480. fi
  13481. fi
  13482. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13483. if test -n "$ac_ct_WINDRES"; then
  13484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13485. $as_echo "$ac_ct_WINDRES" >&6; }
  13486. else
  13487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13488. $as_echo "no" >&6; }
  13489. fi
  13490. if test "x$ac_ct_WINDRES" = x; then
  13491. WINDRES=":"
  13492. else
  13493. case $cross_compiling:$ac_tool_warned in
  13494. yes:)
  13495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13496. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13497. ac_tool_warned=yes ;;
  13498. esac
  13499. WINDRES=$ac_ct_WINDRES
  13500. fi
  13501. else
  13502. WINDRES="$ac_cv_prog_WINDRES"
  13503. fi
  13504. case "$host" in
  13505. *-*-mingw32*)
  13506. # Except on msys, where make can't handle full pathnames (bug 1972)
  13507. ;;
  13508. *)
  13509. srcdir=`cd $srcdir && pwd`
  13510. ;;
  13511. esac
  13512. INCLUDE="-I$srcdir/include"
  13513. if test x$srcdir != x.; then
  13514. INCLUDE="-Iinclude $INCLUDE"
  13515. elif test -d .hg; then
  13516. as_fn_error $? "
  13517. *** When building from Mercurial you should configure and build in a
  13518. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13519. " "$LINENO" 5
  13520. fi
  13521. BASE_CFLAGS=""
  13522. BASE_LDFLAGS=""
  13523. case "$host" in
  13524. *-*-cygwin*)
  13525. # We build SDL on cygwin without the UNIX emulation layer
  13526. save_CFLAGS="$CFLAGS"
  13527. have_no_cygwin=no
  13528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13529. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13530. CFLAGS="$save_CFLAGS -mno-cygwin"
  13531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13532. /* end confdefs.h. */
  13533. int
  13534. main ()
  13535. {
  13536. ;
  13537. return 0;
  13538. }
  13539. _ACEOF
  13540. if ac_fn_c_try_compile "$LINENO"; then :
  13541. have_no_cygwin=yes
  13542. fi
  13543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13545. $as_echo "$have_no_cygwin" >&6; }
  13546. CFLAGS="$save_CFLAGS"
  13547. if test x$have_no_cygwin = xyes; then
  13548. BASE_CFLAGS="-mno-cygwin"
  13549. BASE_LDFLAGS="-mno-cygwin"
  13550. fi
  13551. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13552. ;;
  13553. esac
  13554. # Uncomment the following line if you want to force SDL and applications
  13555. # built with it to be compiled for a particular architecture.
  13556. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13557. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13558. # The default optimization for SDL is -O3 (Bug #31)
  13559. if test "x$orig_CFLAGS" = x; then
  13560. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13561. fi
  13562. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13563. BUILD_LDFLAGS="$LDFLAGS"
  13564. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13565. ## These are common directories to find software packages
  13566. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13567. # if test -d $path/include; then
  13568. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13569. # fi
  13570. # if test -d $path/lib; then
  13571. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13572. # fi
  13573. #done
  13574. SDL_CFLAGS="$BASE_CFLAGS"
  13575. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13576. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13577. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13578. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13579. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13580. find_lib()
  13581. {
  13582. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13583. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13584. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13585. if test "$cross_compiling" = yes; then
  13586. host_lib_path=""
  13587. else
  13588. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13589. fi
  13590. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13591. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13592. if test x$lib != x; then
  13593. echo $lib
  13594. return
  13595. fi
  13596. done
  13597. }
  13598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13599. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13600. if ${ac_cv_c_const+:} false; then :
  13601. $as_echo_n "(cached) " >&6
  13602. else
  13603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13604. /* end confdefs.h. */
  13605. int
  13606. main ()
  13607. {
  13608. #ifndef __cplusplus
  13609. /* Ultrix mips cc rejects this sort of thing. */
  13610. typedef int charset[2];
  13611. const charset cs = { 0, 0 };
  13612. /* SunOS 4.1.1 cc rejects this. */
  13613. char const *const *pcpcc;
  13614. char **ppc;
  13615. /* NEC SVR4.0.2 mips cc rejects this. */
  13616. struct point {int x, y;};
  13617. static struct point const zero = {0,0};
  13618. /* AIX XL C 1.02.0.0 rejects this.
  13619. It does not let you subtract one const X* pointer from another in
  13620. an arm of an if-expression whose if-part is not a constant
  13621. expression */
  13622. const char *g = "string";
  13623. pcpcc = &g + (g ? g-g : 0);
  13624. /* HPUX 7.0 cc rejects these. */
  13625. ++pcpcc;
  13626. ppc = (char**) pcpcc;
  13627. pcpcc = (char const *const *) ppc;
  13628. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13629. char tx;
  13630. char *t = &tx;
  13631. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13632. *t++ = 0;
  13633. if (s) return 0;
  13634. }
  13635. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13636. int x[] = {25, 17};
  13637. const int *foo = &x[0];
  13638. ++foo;
  13639. }
  13640. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13641. typedef const int *iptr;
  13642. iptr p = 0;
  13643. ++p;
  13644. }
  13645. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13646. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13647. struct s { int j; const int *ap[3]; } bx;
  13648. struct s *b = &bx; b->j = 5;
  13649. }
  13650. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13651. const int foo = 10;
  13652. if (!foo) return 0;
  13653. }
  13654. return !cs[0] && !zero.x;
  13655. #endif
  13656. ;
  13657. return 0;
  13658. }
  13659. _ACEOF
  13660. if ac_fn_c_try_compile "$LINENO"; then :
  13661. ac_cv_c_const=yes
  13662. else
  13663. ac_cv_c_const=no
  13664. fi
  13665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13666. fi
  13667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13668. $as_echo "$ac_cv_c_const" >&6; }
  13669. if test $ac_cv_c_const = no; then
  13670. $as_echo "#define const /**/" >>confdefs.h
  13671. fi
  13672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13673. $as_echo_n "checking for inline... " >&6; }
  13674. if ${ac_cv_c_inline+:} false; then :
  13675. $as_echo_n "(cached) " >&6
  13676. else
  13677. ac_cv_c_inline=no
  13678. for ac_kw in inline __inline__ __inline; do
  13679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13680. /* end confdefs.h. */
  13681. #ifndef __cplusplus
  13682. typedef int foo_t;
  13683. static $ac_kw foo_t static_foo () {return 0; }
  13684. $ac_kw foo_t foo () {return 0; }
  13685. #endif
  13686. _ACEOF
  13687. if ac_fn_c_try_compile "$LINENO"; then :
  13688. ac_cv_c_inline=$ac_kw
  13689. fi
  13690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13691. test "$ac_cv_c_inline" != no && break
  13692. done
  13693. fi
  13694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13695. $as_echo "$ac_cv_c_inline" >&6; }
  13696. case $ac_cv_c_inline in
  13697. inline | yes) ;;
  13698. *)
  13699. case $ac_cv_c_inline in
  13700. no) ac_val=;;
  13701. *) ac_val=$ac_cv_c_inline;;
  13702. esac
  13703. cat >>confdefs.h <<_ACEOF
  13704. #ifndef __cplusplus
  13705. #define inline $ac_val
  13706. #endif
  13707. _ACEOF
  13708. ;;
  13709. esac
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13711. $as_echo_n "checking for working volatile... " >&6; }
  13712. if ${ac_cv_c_volatile+:} false; then :
  13713. $as_echo_n "(cached) " >&6
  13714. else
  13715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13716. /* end confdefs.h. */
  13717. int
  13718. main ()
  13719. {
  13720. volatile int x;
  13721. int * volatile y = (int *) 0;
  13722. return !x && !y;
  13723. ;
  13724. return 0;
  13725. }
  13726. _ACEOF
  13727. if ac_fn_c_try_compile "$LINENO"; then :
  13728. ac_cv_c_volatile=yes
  13729. else
  13730. ac_cv_c_volatile=no
  13731. fi
  13732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13733. fi
  13734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13735. $as_echo "$ac_cv_c_volatile" >&6; }
  13736. if test $ac_cv_c_volatile = no; then
  13737. $as_echo "#define volatile /**/" >>confdefs.h
  13738. fi
  13739. # Check whether --enable-assertions was given.
  13740. if test "${enable_assertions+set}" = set; then :
  13741. enableval=$enable_assertions;
  13742. else
  13743. enable_assertions=auto
  13744. fi
  13745. case "$enable_assertions" in
  13746. auto) # Use optimization settings to determine assertion level
  13747. ;;
  13748. disabled)
  13749. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13750. ;;
  13751. release)
  13752. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13753. ;;
  13754. enabled)
  13755. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13756. ;;
  13757. paranoid)
  13758. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13759. ;;
  13760. *)
  13761. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13762. ;;
  13763. esac
  13764. # Check whether --enable-dependency-tracking was given.
  13765. if test "${enable_dependency_tracking+set}" = set; then :
  13766. enableval=$enable_dependency_tracking;
  13767. else
  13768. enable_dependency_tracking=yes
  13769. fi
  13770. if test x$enable_dependency_tracking = xyes; then
  13771. have_gcc_mmd_mt=no
  13772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13773. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13775. /* end confdefs.h. */
  13776. #if !defined(__GNUC__) || __GNUC__ < 3
  13777. #error Dependency tracking requires GCC 3.0 or newer
  13778. #endif
  13779. int
  13780. main ()
  13781. {
  13782. ;
  13783. return 0;
  13784. }
  13785. _ACEOF
  13786. if ac_fn_c_try_compile "$LINENO"; then :
  13787. have_gcc_mmd_mt=yes
  13788. fi
  13789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13791. $as_echo "$have_gcc_mmd_mt" >&6; }
  13792. if test x$have_gcc_mmd_mt = xyes; then
  13793. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13794. fi
  13795. fi
  13796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13797. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13798. have_no_undefined=no
  13799. case "$host" in
  13800. *-*-openbsd*)
  13801. ;;
  13802. *)
  13803. save_LDFLAGS="$LDFLAGS"
  13804. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13806. /* end confdefs.h. */
  13807. int
  13808. main ()
  13809. {
  13810. ;
  13811. return 0;
  13812. }
  13813. _ACEOF
  13814. if ac_fn_c_try_link "$LINENO"; then :
  13815. have_no_undefined=yes
  13816. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13817. fi
  13818. rm -f core conftest.err conftest.$ac_objext \
  13819. conftest$ac_exeext conftest.$ac_ext
  13820. LDFLAGS="$save_LDFLAGS"
  13821. ;;
  13822. esac
  13823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13824. $as_echo "$have_no_undefined" >&6; }
  13825. # Check whether --enable-libc was given.
  13826. if test "${enable_libc+set}" = set; then :
  13827. enableval=$enable_libc;
  13828. else
  13829. enable_libc=yes
  13830. fi
  13831. if test x$enable_libc = xyes; then
  13832. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13834. $as_echo_n "checking for ANSI C header files... " >&6; }
  13835. if ${ac_cv_header_stdc+:} false; then :
  13836. $as_echo_n "(cached) " >&6
  13837. else
  13838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13839. /* end confdefs.h. */
  13840. #include <stdlib.h>
  13841. #include <stdarg.h>
  13842. #include <string.h>
  13843. #include <float.h>
  13844. int
  13845. main ()
  13846. {
  13847. ;
  13848. return 0;
  13849. }
  13850. _ACEOF
  13851. if ac_fn_c_try_compile "$LINENO"; then :
  13852. ac_cv_header_stdc=yes
  13853. else
  13854. ac_cv_header_stdc=no
  13855. fi
  13856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13857. if test $ac_cv_header_stdc = yes; then
  13858. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13860. /* end confdefs.h. */
  13861. #include <string.h>
  13862. _ACEOF
  13863. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13864. $EGREP "memchr" >/dev/null 2>&1; then :
  13865. else
  13866. ac_cv_header_stdc=no
  13867. fi
  13868. rm -f conftest*
  13869. fi
  13870. if test $ac_cv_header_stdc = yes; then
  13871. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13873. /* end confdefs.h. */
  13874. #include <stdlib.h>
  13875. _ACEOF
  13876. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13877. $EGREP "free" >/dev/null 2>&1; then :
  13878. else
  13879. ac_cv_header_stdc=no
  13880. fi
  13881. rm -f conftest*
  13882. fi
  13883. if test $ac_cv_header_stdc = yes; then
  13884. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13885. if test "$cross_compiling" = yes; then :
  13886. :
  13887. else
  13888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13889. /* end confdefs.h. */
  13890. #include <ctype.h>
  13891. #include <stdlib.h>
  13892. #if ((' ' & 0x0FF) == 0x020)
  13893. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13894. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13895. #else
  13896. # define ISLOWER(c) \
  13897. (('a' <= (c) && (c) <= 'i') \
  13898. || ('j' <= (c) && (c) <= 'r') \
  13899. || ('s' <= (c) && (c) <= 'z'))
  13900. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13901. #endif
  13902. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13903. int
  13904. main ()
  13905. {
  13906. int i;
  13907. for (i = 0; i < 256; i++)
  13908. if (XOR (islower (i), ISLOWER (i))
  13909. || toupper (i) != TOUPPER (i))
  13910. return 2;
  13911. return 0;
  13912. }
  13913. _ACEOF
  13914. if ac_fn_c_try_run "$LINENO"; then :
  13915. else
  13916. ac_cv_header_stdc=no
  13917. fi
  13918. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13919. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13920. fi
  13921. fi
  13922. fi
  13923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13924. $as_echo "$ac_cv_header_stdc" >&6; }
  13925. if test $ac_cv_header_stdc = yes; then
  13926. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13927. fi
  13928. 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
  13929. do :
  13930. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13931. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13932. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13933. cat >>confdefs.h <<_ACEOF
  13934. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13935. _ACEOF
  13936. fi
  13937. done
  13938. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13939. if test "x$ac_cv_type_size_t" = xyes; then :
  13940. else
  13941. cat >>confdefs.h <<_ACEOF
  13942. #define size_t unsigned int
  13943. _ACEOF
  13944. fi
  13945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13946. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13947. if ${ac_cv_define_M_PI+:} false; then :
  13948. $as_echo_n "(cached) " >&6
  13949. else
  13950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13951. /* end confdefs.h. */
  13952. #include <math.h>
  13953. #ifdef M_PI
  13954. YES_IS_DEFINED
  13955. #endif
  13956. _ACEOF
  13957. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13958. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13959. ac_cv_define_M_PI=yes
  13960. else
  13961. ac_cv_define_M_PI=no
  13962. fi
  13963. rm -f conftest*
  13964. fi
  13965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13966. $as_echo "$ac_cv_define_M_PI" >&6; }
  13967. if test "$ac_cv_define_M_PI" = "yes" ; then
  13968. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13969. fi
  13970. case "$host" in
  13971. *-*-cygwin* | *-*-mingw32*)
  13972. ;;
  13973. *)
  13974. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13975. # for constant arguments. Useless!
  13976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13977. $as_echo_n "checking for working alloca.h... " >&6; }
  13978. if ${ac_cv_working_alloca_h+:} false; then :
  13979. $as_echo_n "(cached) " >&6
  13980. else
  13981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13982. /* end confdefs.h. */
  13983. #include <alloca.h>
  13984. int
  13985. main ()
  13986. {
  13987. char *p = (char *) alloca (2 * sizeof (int));
  13988. if (p) return 0;
  13989. ;
  13990. return 0;
  13991. }
  13992. _ACEOF
  13993. if ac_fn_c_try_link "$LINENO"; then :
  13994. ac_cv_working_alloca_h=yes
  13995. else
  13996. ac_cv_working_alloca_h=no
  13997. fi
  13998. rm -f core conftest.err conftest.$ac_objext \
  13999. conftest$ac_exeext conftest.$ac_ext
  14000. fi
  14001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14002. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14003. if test $ac_cv_working_alloca_h = yes; then
  14004. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14005. fi
  14006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14007. $as_echo_n "checking for alloca... " >&6; }
  14008. if ${ac_cv_func_alloca_works+:} false; then :
  14009. $as_echo_n "(cached) " >&6
  14010. else
  14011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14012. /* end confdefs.h. */
  14013. #ifdef __GNUC__
  14014. # define alloca __builtin_alloca
  14015. #else
  14016. # ifdef _MSC_VER
  14017. # include <malloc.h>
  14018. # define alloca _alloca
  14019. # else
  14020. # ifdef HAVE_ALLOCA_H
  14021. # include <alloca.h>
  14022. # else
  14023. # ifdef _AIX
  14024. #pragma alloca
  14025. # else
  14026. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14027. void *alloca (size_t);
  14028. # endif
  14029. # endif
  14030. # endif
  14031. # endif
  14032. #endif
  14033. int
  14034. main ()
  14035. {
  14036. char *p = (char *) alloca (1);
  14037. if (p) return 0;
  14038. ;
  14039. return 0;
  14040. }
  14041. _ACEOF
  14042. if ac_fn_c_try_link "$LINENO"; then :
  14043. ac_cv_func_alloca_works=yes
  14044. else
  14045. ac_cv_func_alloca_works=no
  14046. fi
  14047. rm -f core conftest.err conftest.$ac_objext \
  14048. conftest$ac_exeext conftest.$ac_ext
  14049. fi
  14050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14051. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14052. if test $ac_cv_func_alloca_works = yes; then
  14053. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14054. else
  14055. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14056. # that cause trouble. Some versions do not even contain alloca or
  14057. # contain a buggy version. If you still want to use their alloca,
  14058. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14059. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14060. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14062. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14063. if ${ac_cv_os_cray+:} false; then :
  14064. $as_echo_n "(cached) " >&6
  14065. else
  14066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14067. /* end confdefs.h. */
  14068. #if defined CRAY && ! defined CRAY2
  14069. webecray
  14070. #else
  14071. wenotbecray
  14072. #endif
  14073. _ACEOF
  14074. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14075. $EGREP "webecray" >/dev/null 2>&1; then :
  14076. ac_cv_os_cray=yes
  14077. else
  14078. ac_cv_os_cray=no
  14079. fi
  14080. rm -f conftest*
  14081. fi
  14082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14083. $as_echo "$ac_cv_os_cray" >&6; }
  14084. if test $ac_cv_os_cray = yes; then
  14085. for ac_func in _getb67 GETB67 getb67; do
  14086. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14087. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14088. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14089. cat >>confdefs.h <<_ACEOF
  14090. #define CRAY_STACKSEG_END $ac_func
  14091. _ACEOF
  14092. break
  14093. fi
  14094. done
  14095. fi
  14096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14097. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14098. if ${ac_cv_c_stack_direction+:} false; then :
  14099. $as_echo_n "(cached) " >&6
  14100. else
  14101. if test "$cross_compiling" = yes; then :
  14102. ac_cv_c_stack_direction=0
  14103. else
  14104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14105. /* end confdefs.h. */
  14106. $ac_includes_default
  14107. int
  14108. find_stack_direction (int *addr, int depth)
  14109. {
  14110. int dir, dummy = 0;
  14111. if (! addr)
  14112. addr = &dummy;
  14113. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14114. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14115. return dir + dummy;
  14116. }
  14117. int
  14118. main (int argc, char **argv)
  14119. {
  14120. return find_stack_direction (0, argc + !argv + 20) < 0;
  14121. }
  14122. _ACEOF
  14123. if ac_fn_c_try_run "$LINENO"; then :
  14124. ac_cv_c_stack_direction=1
  14125. else
  14126. ac_cv_c_stack_direction=-1
  14127. fi
  14128. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14129. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14130. fi
  14131. fi
  14132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14133. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14134. cat >>confdefs.h <<_ACEOF
  14135. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14136. _ACEOF
  14137. fi
  14138. ;;
  14139. esac
  14140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14141. $as_echo_n "checking for working memcmp... " >&6; }
  14142. if ${ac_cv_func_memcmp_working+:} false; then :
  14143. $as_echo_n "(cached) " >&6
  14144. else
  14145. if test "$cross_compiling" = yes; then :
  14146. ac_cv_func_memcmp_working=no
  14147. else
  14148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14149. /* end confdefs.h. */
  14150. $ac_includes_default
  14151. int
  14152. main ()
  14153. {
  14154. /* Some versions of memcmp are not 8-bit clean. */
  14155. char c0 = '\100', c1 = '\200', c2 = '\201';
  14156. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14157. return 1;
  14158. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14159. or more and with at least one buffer not starting on a 4-byte boundary.
  14160. William Lewis provided this test program. */
  14161. {
  14162. char foo[21];
  14163. char bar[21];
  14164. int i;
  14165. for (i = 0; i < 4; i++)
  14166. {
  14167. char *a = foo + i;
  14168. char *b = bar + i;
  14169. strcpy (a, "--------01111111");
  14170. strcpy (b, "--------10000000");
  14171. if (memcmp (a, b, 16) >= 0)
  14172. return 1;
  14173. }
  14174. return 0;
  14175. }
  14176. ;
  14177. return 0;
  14178. }
  14179. _ACEOF
  14180. if ac_fn_c_try_run "$LINENO"; then :
  14181. ac_cv_func_memcmp_working=yes
  14182. else
  14183. ac_cv_func_memcmp_working=no
  14184. fi
  14185. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14186. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14187. fi
  14188. fi
  14189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14190. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14191. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14192. *" memcmp.$ac_objext "* ) ;;
  14193. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14194. ;;
  14195. esac
  14196. if test x$ac_cv_func_memcmp_working = xyes; then
  14197. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14198. fi
  14199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14200. $as_echo_n "checking for working strtod... " >&6; }
  14201. if ${ac_cv_func_strtod+:} false; then :
  14202. $as_echo_n "(cached) " >&6
  14203. else
  14204. if test "$cross_compiling" = yes; then :
  14205. ac_cv_func_strtod=no
  14206. else
  14207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14208. /* end confdefs.h. */
  14209. $ac_includes_default
  14210. #ifndef strtod
  14211. double strtod ();
  14212. #endif
  14213. int
  14214. main()
  14215. {
  14216. {
  14217. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14218. char *string = " +69";
  14219. char *term;
  14220. double value;
  14221. value = strtod (string, &term);
  14222. if (value != 69 || term != (string + 4))
  14223. return 1;
  14224. }
  14225. {
  14226. /* Under Solaris 2.4, strtod returns the wrong value for the
  14227. terminating character under some conditions. */
  14228. char *string = "NaN";
  14229. char *term;
  14230. strtod (string, &term);
  14231. if (term != string && *(term - 1) == 0)
  14232. return 1;
  14233. }
  14234. return 0;
  14235. }
  14236. _ACEOF
  14237. if ac_fn_c_try_run "$LINENO"; then :
  14238. ac_cv_func_strtod=yes
  14239. else
  14240. ac_cv_func_strtod=no
  14241. fi
  14242. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14243. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14244. fi
  14245. fi
  14246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14247. $as_echo "$ac_cv_func_strtod" >&6; }
  14248. if test $ac_cv_func_strtod = no; then
  14249. case " $LIBOBJS " in
  14250. *" strtod.$ac_objext "* ) ;;
  14251. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14252. ;;
  14253. esac
  14254. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14255. if test "x$ac_cv_func_pow" = xyes; then :
  14256. fi
  14257. if test $ac_cv_func_pow = no; then
  14258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14259. $as_echo_n "checking for pow in -lm... " >&6; }
  14260. if ${ac_cv_lib_m_pow+:} false; then :
  14261. $as_echo_n "(cached) " >&6
  14262. else
  14263. ac_check_lib_save_LIBS=$LIBS
  14264. LIBS="-lm $LIBS"
  14265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14266. /* end confdefs.h. */
  14267. /* Override any GCC internal prototype to avoid an error.
  14268. Use char because int might match the return type of a GCC
  14269. builtin and then its argument prototype would still apply. */
  14270. #ifdef __cplusplus
  14271. extern "C"
  14272. #endif
  14273. char pow ();
  14274. int
  14275. main ()
  14276. {
  14277. return pow ();
  14278. ;
  14279. return 0;
  14280. }
  14281. _ACEOF
  14282. if ac_fn_c_try_link "$LINENO"; then :
  14283. ac_cv_lib_m_pow=yes
  14284. else
  14285. ac_cv_lib_m_pow=no
  14286. fi
  14287. rm -f core conftest.err conftest.$ac_objext \
  14288. conftest$ac_exeext conftest.$ac_ext
  14289. LIBS=$ac_check_lib_save_LIBS
  14290. fi
  14291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14292. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14293. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14294. POW_LIB=-lm
  14295. else
  14296. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14297. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14298. fi
  14299. fi
  14300. fi
  14301. if test x$ac_cv_func_strtod = xyes; then
  14302. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14303. fi
  14304. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14305. if test "x$ac_cv_func_mprotect" = xyes; then :
  14306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14307. /* end confdefs.h. */
  14308. #include <sys/types.h>
  14309. #include <sys/mman.h>
  14310. int
  14311. main ()
  14312. {
  14313. ;
  14314. return 0;
  14315. }
  14316. _ACEOF
  14317. if ac_fn_c_try_compile "$LINENO"; then :
  14318. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14319. fi
  14320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14321. fi
  14322. 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
  14323. do :
  14324. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14325. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14326. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14327. cat >>confdefs.h <<_ACEOF
  14328. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14329. _ACEOF
  14330. fi
  14331. done
  14332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14333. $as_echo_n "checking for pow in -lm... " >&6; }
  14334. if ${ac_cv_lib_m_pow+:} false; then :
  14335. $as_echo_n "(cached) " >&6
  14336. else
  14337. ac_check_lib_save_LIBS=$LIBS
  14338. LIBS="-lm $LIBS"
  14339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14340. /* end confdefs.h. */
  14341. /* Override any GCC internal prototype to avoid an error.
  14342. Use char because int might match the return type of a GCC
  14343. builtin and then its argument prototype would still apply. */
  14344. #ifdef __cplusplus
  14345. extern "C"
  14346. #endif
  14347. char pow ();
  14348. int
  14349. main ()
  14350. {
  14351. return pow ();
  14352. ;
  14353. return 0;
  14354. }
  14355. _ACEOF
  14356. if ac_fn_c_try_link "$LINENO"; then :
  14357. ac_cv_lib_m_pow=yes
  14358. else
  14359. ac_cv_lib_m_pow=no
  14360. fi
  14361. rm -f core conftest.err conftest.$ac_objext \
  14362. conftest$ac_exeext conftest.$ac_ext
  14363. LIBS=$ac_check_lib_save_LIBS
  14364. fi
  14365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14366. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14367. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14368. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14369. fi
  14370. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14371. do :
  14372. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14373. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14374. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14375. cat >>confdefs.h <<_ACEOF
  14376. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14377. _ACEOF
  14378. fi
  14379. done
  14380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14381. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14382. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14383. $as_echo_n "(cached) " >&6
  14384. else
  14385. ac_check_lib_save_LIBS=$LIBS
  14386. LIBS="-liconv $LIBS"
  14387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14388. /* end confdefs.h. */
  14389. /* Override any GCC internal prototype to avoid an error.
  14390. Use char because int might match the return type of a GCC
  14391. builtin and then its argument prototype would still apply. */
  14392. #ifdef __cplusplus
  14393. extern "C"
  14394. #endif
  14395. char iconv_open ();
  14396. int
  14397. main ()
  14398. {
  14399. return iconv_open ();
  14400. ;
  14401. return 0;
  14402. }
  14403. _ACEOF
  14404. if ac_fn_c_try_link "$LINENO"; then :
  14405. ac_cv_lib_iconv_iconv_open=yes
  14406. else
  14407. ac_cv_lib_iconv_iconv_open=no
  14408. fi
  14409. rm -f core conftest.err conftest.$ac_objext \
  14410. conftest$ac_exeext conftest.$ac_ext
  14411. LIBS=$ac_check_lib_save_LIBS
  14412. fi
  14413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14414. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14415. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14416. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14417. fi
  14418. for ac_func in iconv
  14419. do :
  14420. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14421. if test "x$ac_cv_func_iconv" = xyes; then :
  14422. cat >>confdefs.h <<_ACEOF
  14423. #define HAVE_ICONV 1
  14424. _ACEOF
  14425. fi
  14426. done
  14427. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14428. "
  14429. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14430. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14431. fi
  14432. fi
  14433. # Check whether --enable-gcc-atomics was given.
  14434. if test "${enable_gcc_atomics+set}" = set; then :
  14435. enableval=$enable_gcc_atomics;
  14436. else
  14437. enable_gcc_atomics=yes
  14438. fi
  14439. if test x$enable_gcc_atomics = xyes; then
  14440. have_gcc_atomics=no
  14441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14442. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14444. /* end confdefs.h. */
  14445. int
  14446. main ()
  14447. {
  14448. int a;
  14449. void *x, *y, *z;
  14450. __sync_lock_test_and_set(&a, 4);
  14451. __sync_lock_test_and_set(&x, y);
  14452. __sync_fetch_and_add(&a, 1);
  14453. __sync_bool_compare_and_swap(&a, 5, 10);
  14454. __sync_bool_compare_and_swap(&x, y, z);
  14455. ;
  14456. return 0;
  14457. }
  14458. _ACEOF
  14459. if ac_fn_c_try_link "$LINENO"; then :
  14460. have_gcc_atomics=yes
  14461. fi
  14462. rm -f core conftest.err conftest.$ac_objext \
  14463. conftest$ac_exeext conftest.$ac_ext
  14464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14465. $as_echo "$have_gcc_atomics" >&6; }
  14466. if test x$have_gcc_atomics = xyes; then
  14467. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14468. else
  14469. # See if we have the minimum operation needed for GCC atomics
  14470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14471. /* end confdefs.h. */
  14472. int
  14473. main ()
  14474. {
  14475. int a;
  14476. __sync_lock_test_and_set(&a, 1);
  14477. __sync_lock_release(&a);
  14478. ;
  14479. return 0;
  14480. }
  14481. _ACEOF
  14482. if ac_fn_c_try_link "$LINENO"; then :
  14483. have_gcc_sync_lock_test_and_set=yes
  14484. fi
  14485. rm -f core conftest.err conftest.$ac_objext \
  14486. conftest$ac_exeext conftest.$ac_ext
  14487. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14488. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14489. fi
  14490. fi
  14491. fi
  14492. # Standard C sources
  14493. SOURCES="$SOURCES $srcdir/src/*.c"
  14494. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14495. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14496. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14497. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14498. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14499. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14500. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14501. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14502. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14503. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14504. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14505. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14506. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14507. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14508. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14509. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14510. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14511. # Check whether --enable-atomic was given.
  14512. if test "${enable_atomic+set}" = set; then :
  14513. enableval=$enable_atomic;
  14514. else
  14515. enable_atomic=yes
  14516. fi
  14517. if test x$enable_atomic != xyes; then
  14518. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14519. else
  14520. SUMMARY_modules="${SUMMARY_modules} atomic"
  14521. fi
  14522. # Check whether --enable-audio was given.
  14523. if test "${enable_audio+set}" = set; then :
  14524. enableval=$enable_audio;
  14525. else
  14526. enable_audio=yes
  14527. fi
  14528. if test x$enable_audio != xyes; then
  14529. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14530. else
  14531. SUMMARY_modules="${SUMMARY_modules} audio"
  14532. fi
  14533. # Check whether --enable-video was given.
  14534. if test "${enable_video+set}" = set; then :
  14535. enableval=$enable_video;
  14536. else
  14537. enable_video=yes
  14538. fi
  14539. if test x$enable_video != xyes; then
  14540. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14541. else
  14542. SUMMARY_modules="${SUMMARY_modules} video"
  14543. fi
  14544. # Check whether --enable-render was given.
  14545. if test "${enable_render+set}" = set; then :
  14546. enableval=$enable_render;
  14547. else
  14548. enable_render=yes
  14549. fi
  14550. if test x$enable_render != xyes; then
  14551. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14552. else
  14553. SUMMARY_modules="${SUMMARY_modules} render"
  14554. fi
  14555. # Check whether --enable-events was given.
  14556. if test "${enable_events+set}" = set; then :
  14557. enableval=$enable_events;
  14558. else
  14559. enable_events=yes
  14560. fi
  14561. if test x$enable_events != xyes; then
  14562. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14563. else
  14564. SUMMARY_modules="${SUMMARY_modules} events"
  14565. fi
  14566. # Check whether --enable-joystick was given.
  14567. if test "${enable_joystick+set}" = set; then :
  14568. enableval=$enable_joystick;
  14569. else
  14570. enable_joystick=yes
  14571. fi
  14572. if test x$enable_joystick != xyes; then
  14573. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14574. else
  14575. SUMMARY_modules="${SUMMARY_modules} joystick"
  14576. fi
  14577. # Check whether --enable-haptic was given.
  14578. if test "${enable_haptic+set}" = set; then :
  14579. enableval=$enable_haptic;
  14580. else
  14581. enable_haptic=yes
  14582. fi
  14583. if test x$enable_haptic != xyes; then
  14584. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14585. else
  14586. SUMMARY_modules="${SUMMARY_modules} haptic"
  14587. fi
  14588. # Check whether --enable-power was given.
  14589. if test "${enable_power+set}" = set; then :
  14590. enableval=$enable_power;
  14591. else
  14592. enable_power=yes
  14593. fi
  14594. if test x$enable_power != xyes; then
  14595. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14596. else
  14597. SUMMARY_modules="${SUMMARY_modules} power"
  14598. fi
  14599. # Check whether --enable-filesystem was given.
  14600. if test "${enable_filesystem+set}" = set; then :
  14601. enableval=$enable_filesystem;
  14602. else
  14603. enable_filesystem=yes
  14604. fi
  14605. if test x$enable_filesystem != xyes; then
  14606. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14607. else
  14608. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14609. fi
  14610. # Check whether --enable-threads was given.
  14611. if test "${enable_threads+set}" = set; then :
  14612. enableval=$enable_threads;
  14613. else
  14614. enable_threads=yes
  14615. fi
  14616. if test x$enable_threads != xyes; then
  14617. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14618. else
  14619. SUMMARY_modules="${SUMMARY_modules} threads"
  14620. fi
  14621. # Check whether --enable-timers was given.
  14622. if test "${enable_timers+set}" = set; then :
  14623. enableval=$enable_timers;
  14624. else
  14625. enable_timers=yes
  14626. fi
  14627. if test x$enable_timers != xyes; then
  14628. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14629. else
  14630. SUMMARY_modules="${SUMMARY_modules} timers"
  14631. fi
  14632. # Check whether --enable-file was given.
  14633. if test "${enable_file+set}" = set; then :
  14634. enableval=$enable_file;
  14635. else
  14636. enable_file=yes
  14637. fi
  14638. if test x$enable_file != xyes; then
  14639. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14640. else
  14641. SUMMARY_modules="${SUMMARY_modules} file"
  14642. fi
  14643. # Check whether --enable-loadso was given.
  14644. if test "${enable_loadso+set}" = set; then :
  14645. enableval=$enable_loadso;
  14646. else
  14647. enable_loadso=yes
  14648. fi
  14649. if test x$enable_loadso != xyes; then
  14650. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14651. else
  14652. SUMMARY_modules="${SUMMARY_modules} loadso"
  14653. fi
  14654. # Check whether --enable-cpuinfo was given.
  14655. if test "${enable_cpuinfo+set}" = set; then :
  14656. enableval=$enable_cpuinfo;
  14657. else
  14658. enable_cpuinfo=yes
  14659. fi
  14660. if test x$enable_cpuinfo != xyes; then
  14661. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14662. else
  14663. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14664. fi
  14665. # Check whether --enable-assembly was given.
  14666. if test "${enable_assembly+set}" = set; then :
  14667. enableval=$enable_assembly;
  14668. else
  14669. enable_assembly=yes
  14670. fi
  14671. if test x$enable_assembly = xyes; then
  14672. SUMMARY_modules="${SUMMARY_modules} assembly"
  14673. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14674. # Make sure that we don't generate floating point code that would
  14675. # cause illegal instruction exceptions on older processors
  14676. case "$host" in
  14677. *-*-darwin*)
  14678. # Don't need to worry about Apple hardware, it's all SSE capable
  14679. default_ssemath=yes
  14680. ;;
  14681. *64-*-*)
  14682. # x86 64-bit architectures all have SSE instructions
  14683. default_ssemath=yes
  14684. ;;
  14685. *)
  14686. default_ssemath=no
  14687. ;;
  14688. esac
  14689. # Check whether --enable-ssemath was given.
  14690. if test "${enable_ssemath+set}" = set; then :
  14691. enableval=$enable_ssemath;
  14692. else
  14693. enable_ssemath=$default_ssemath
  14694. fi
  14695. if test x$enable_ssemath = xno; then
  14696. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14697. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14698. fi
  14699. fi
  14700. # Check whether --enable-mmx was given.
  14701. if test "${enable_mmx+set}" = set; then :
  14702. enableval=$enable_mmx;
  14703. else
  14704. enable_mmx=yes
  14705. fi
  14706. if test x$enable_mmx = xyes; then
  14707. save_CFLAGS="$CFLAGS"
  14708. have_gcc_mmx=no
  14709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14710. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14711. mmx_CFLAGS="-mmmx"
  14712. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14714. /* end confdefs.h. */
  14715. #ifdef __MINGW32__
  14716. #include <_mingw.h>
  14717. #ifdef __MINGW64_VERSION_MAJOR
  14718. #include <intrin.h>
  14719. #else
  14720. #include <mmintrin.h>
  14721. #endif
  14722. #else
  14723. #include <mmintrin.h>
  14724. #endif
  14725. #ifndef __MMX__
  14726. #error Assembler CPP flag not enabled
  14727. #endif
  14728. int
  14729. main ()
  14730. {
  14731. ;
  14732. return 0;
  14733. }
  14734. _ACEOF
  14735. if ac_fn_c_try_compile "$LINENO"; then :
  14736. have_gcc_mmx=yes
  14737. fi
  14738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14740. $as_echo "$have_gcc_mmx" >&6; }
  14741. CFLAGS="$save_CFLAGS"
  14742. if test x$have_gcc_mmx = xyes; then
  14743. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14744. SUMMARY_math="${SUMMARY_math} mmx"
  14745. fi
  14746. fi
  14747. # Check whether --enable-3dnow was given.
  14748. if test "${enable_3dnow+set}" = set; then :
  14749. enableval=$enable_3dnow;
  14750. else
  14751. enable_3dnow=yes
  14752. fi
  14753. if test x$enable_3dnow = xyes; then
  14754. save_CFLAGS="$CFLAGS"
  14755. have_gcc_3dnow=no
  14756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14757. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14758. amd3dnow_CFLAGS="-m3dnow"
  14759. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14761. /* end confdefs.h. */
  14762. #include <mm3dnow.h>
  14763. #ifndef __3dNOW__
  14764. #error Assembler CPP flag not enabled
  14765. #endif
  14766. int
  14767. main ()
  14768. {
  14769. void *p = 0;
  14770. _m_prefetch(p);
  14771. ;
  14772. return 0;
  14773. }
  14774. _ACEOF
  14775. if ac_fn_c_try_link "$LINENO"; then :
  14776. have_gcc_3dnow=yes
  14777. fi
  14778. rm -f core conftest.err conftest.$ac_objext \
  14779. conftest$ac_exeext conftest.$ac_ext
  14780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14781. $as_echo "$have_gcc_3dnow" >&6; }
  14782. CFLAGS="$save_CFLAGS"
  14783. if test x$have_gcc_3dnow = xyes; then
  14784. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14785. SUMMARY_math="${SUMMARY_math} 3dnow"
  14786. fi
  14787. fi
  14788. # Check whether --enable-sse was given.
  14789. if test "${enable_sse+set}" = set; then :
  14790. enableval=$enable_sse;
  14791. else
  14792. enable_sse=yes
  14793. fi
  14794. if test x$enable_sse = xyes; then
  14795. save_CFLAGS="$CFLAGS"
  14796. have_gcc_sse=no
  14797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14798. $as_echo_n "checking for GCC -msse option... " >&6; }
  14799. sse_CFLAGS="-msse"
  14800. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14802. /* end confdefs.h. */
  14803. #ifdef __MINGW32__
  14804. #include <_mingw.h>
  14805. #ifdef __MINGW64_VERSION_MAJOR
  14806. #include <intrin.h>
  14807. #else
  14808. #include <xmmintrin.h>
  14809. #endif
  14810. #else
  14811. #include <xmmintrin.h>
  14812. #endif
  14813. #ifndef __SSE__
  14814. #error Assembler CPP flag not enabled
  14815. #endif
  14816. int
  14817. main ()
  14818. {
  14819. ;
  14820. return 0;
  14821. }
  14822. _ACEOF
  14823. if ac_fn_c_try_compile "$LINENO"; then :
  14824. have_gcc_sse=yes
  14825. fi
  14826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14828. $as_echo "$have_gcc_sse" >&6; }
  14829. CFLAGS="$save_CFLAGS"
  14830. if test x$have_gcc_sse = xyes; then
  14831. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14832. SUMMARY_math="${SUMMARY_math} sse"
  14833. fi
  14834. fi
  14835. # Check whether --enable-sse2 was given.
  14836. if test "${enable_sse2+set}" = set; then :
  14837. enableval=$enable_sse2;
  14838. else
  14839. enable_sse2=$default_ssemath
  14840. fi
  14841. if test x$enable_sse2 = xyes; then
  14842. save_CFLAGS="$CFLAGS"
  14843. have_gcc_sse2=no
  14844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14845. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14846. sse2_CFLAGS="-msse2"
  14847. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14849. /* end confdefs.h. */
  14850. #ifdef __MINGW32__
  14851. #include <_mingw.h>
  14852. #ifdef __MINGW64_VERSION_MAJOR
  14853. #include <intrin.h>
  14854. #else
  14855. #include <emmintrin.h>
  14856. #endif
  14857. #else
  14858. #include <emmintrin.h>
  14859. #endif
  14860. #ifndef __SSE2__
  14861. #error Assembler CPP flag not enabled
  14862. #endif
  14863. int
  14864. main ()
  14865. {
  14866. ;
  14867. return 0;
  14868. }
  14869. _ACEOF
  14870. if ac_fn_c_try_compile "$LINENO"; then :
  14871. have_gcc_sse2=yes
  14872. fi
  14873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14875. $as_echo "$have_gcc_sse2" >&6; }
  14876. CFLAGS="$save_CFLAGS"
  14877. if test x$have_gcc_sse2 = xyes; then
  14878. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14879. SUMMARY_math="${SUMMARY_math} sse2"
  14880. fi
  14881. fi
  14882. # Check whether --enable-altivec was given.
  14883. if test "${enable_altivec+set}" = set; then :
  14884. enableval=$enable_altivec;
  14885. else
  14886. enable_altivec=yes
  14887. fi
  14888. if test x$enable_altivec = xyes; then
  14889. save_CFLAGS="$CFLAGS"
  14890. have_gcc_altivec=no
  14891. have_altivec_h_hdr=no
  14892. altivec_CFLAGS="-maltivec"
  14893. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14895. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14897. /* end confdefs.h. */
  14898. #include <altivec.h>
  14899. vector unsigned int vzero() {
  14900. return vec_splat_u32(0);
  14901. }
  14902. int
  14903. main ()
  14904. {
  14905. ;
  14906. return 0;
  14907. }
  14908. _ACEOF
  14909. if ac_fn_c_try_compile "$LINENO"; then :
  14910. have_gcc_altivec=yes
  14911. have_altivec_h_hdr=yes
  14912. fi
  14913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14915. $as_echo "$have_gcc_altivec" >&6; }
  14916. if test x$have_gcc_altivec = xno; then
  14917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14918. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14920. /* end confdefs.h. */
  14921. vector unsigned int vzero() {
  14922. return vec_splat_u32(0);
  14923. }
  14924. int
  14925. main ()
  14926. {
  14927. ;
  14928. return 0;
  14929. }
  14930. _ACEOF
  14931. if ac_fn_c_try_compile "$LINENO"; then :
  14932. have_gcc_altivec=yes
  14933. fi
  14934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14936. $as_echo "$have_gcc_altivec" >&6; }
  14937. fi
  14938. if test x$have_gcc_altivec = xno; then
  14939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14940. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14941. altivec_CFLAGS="-faltivec"
  14942. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14944. /* end confdefs.h. */
  14945. #include <altivec.h>
  14946. vector unsigned int vzero() {
  14947. return vec_splat_u32(0);
  14948. }
  14949. int
  14950. main ()
  14951. {
  14952. ;
  14953. return 0;
  14954. }
  14955. _ACEOF
  14956. if ac_fn_c_try_compile "$LINENO"; then :
  14957. have_gcc_altivec=yes
  14958. have_altivec_h_hdr=yes
  14959. fi
  14960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14962. $as_echo "$have_gcc_altivec" >&6; }
  14963. fi
  14964. if test x$have_gcc_altivec = xno; then
  14965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14966. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14968. /* end confdefs.h. */
  14969. vector unsigned int vzero() {
  14970. return vec_splat_u32(0);
  14971. }
  14972. int
  14973. main ()
  14974. {
  14975. ;
  14976. return 0;
  14977. }
  14978. _ACEOF
  14979. if ac_fn_c_try_compile "$LINENO"; then :
  14980. have_gcc_altivec=yes
  14981. fi
  14982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14984. $as_echo "$have_gcc_altivec" >&6; }
  14985. fi
  14986. CFLAGS="$save_CFLAGS"
  14987. if test x$have_gcc_altivec = xyes; then
  14988. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  14989. if test x$have_altivec_h_hdr = xyes; then
  14990. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  14991. fi
  14992. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  14993. SUMMARY_math="${SUMMARY_math} altivec"
  14994. fi
  14995. fi
  14996. fi
  14997. CheckOSS()
  14998. {
  14999. # Check whether --enable-oss was given.
  15000. if test "${enable_oss+set}" = set; then :
  15001. enableval=$enable_oss;
  15002. else
  15003. enable_oss=maybe
  15004. fi
  15005. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15006. # use sndio instead. So on there, we default to disabled. You can force
  15007. # it on if you really want, though.
  15008. if test x$enable_oss = xmaybe; then
  15009. enable_oss=yes
  15010. case "$host" in
  15011. *-*-openbsd*)
  15012. enable_oss=no;;
  15013. esac
  15014. fi
  15015. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15017. $as_echo_n "checking for OSS audio support... " >&6; }
  15018. have_oss=no
  15019. if test x$have_oss != xyes; then
  15020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15021. /* end confdefs.h. */
  15022. #include <sys/soundcard.h>
  15023. int
  15024. main ()
  15025. {
  15026. int arg = SNDCTL_DSP_SETFRAGMENT;
  15027. ;
  15028. return 0;
  15029. }
  15030. _ACEOF
  15031. if ac_fn_c_try_compile "$LINENO"; then :
  15032. have_oss=yes
  15033. fi
  15034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15035. fi
  15036. if test x$have_oss != xyes; then
  15037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15038. /* end confdefs.h. */
  15039. #include <soundcard.h>
  15040. int
  15041. main ()
  15042. {
  15043. int arg = SNDCTL_DSP_SETFRAGMENT;
  15044. ;
  15045. return 0;
  15046. }
  15047. _ACEOF
  15048. if ac_fn_c_try_compile "$LINENO"; then :
  15049. have_oss=yes
  15050. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15051. fi
  15052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15053. fi
  15054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15055. $as_echo "$have_oss" >&6; }
  15056. if test x$have_oss = xyes; then
  15057. SUMMARY_audio="${SUMMARY_audio} oss"
  15058. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15059. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15060. have_audio=yes
  15061. # We may need to link with ossaudio emulation library
  15062. case "$host" in
  15063. *-*-openbsd*|*-*-netbsd*)
  15064. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15065. esac
  15066. fi
  15067. fi
  15068. }
  15069. CheckALSA()
  15070. {
  15071. # Check whether --enable-alsa was given.
  15072. if test "${enable_alsa+set}" = set; then :
  15073. enableval=$enable_alsa;
  15074. else
  15075. enable_alsa=yes
  15076. fi
  15077. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15078. alsa_save_CFLAGS="$CFLAGS"
  15079. alsa_save_LDFLAGS="$LDFLAGS"
  15080. alsa_save_LIBS="$LIBS"
  15081. alsa_found=yes
  15082. # Check whether --with-alsa-prefix was given.
  15083. if test "${with_alsa_prefix+set}" = set; then :
  15084. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15085. else
  15086. alsa_prefix=""
  15087. fi
  15088. # Check whether --with-alsa-inc-prefix was given.
  15089. if test "${with_alsa_inc_prefix+set}" = set; then :
  15090. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15091. else
  15092. alsa_inc_prefix=""
  15093. fi
  15094. # Check whether --enable-alsatest was given.
  15095. if test "${enable_alsatest+set}" = set; then :
  15096. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15097. else
  15098. enable_alsatest=yes
  15099. fi
  15100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15101. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15102. if test "$alsa_inc_prefix" != "" ; then
  15103. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15104. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15105. fi
  15106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15107. $as_echo "$ALSA_CFLAGS" >&6; }
  15108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15109. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15110. if test "$alsa_prefix" != "" ; then
  15111. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15112. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15113. fi
  15114. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15115. LIBS=`echo $LIBS | sed 's/-lm//'`
  15116. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15117. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15118. LIBS=`echo $LIBS | sed 's/ //'`
  15119. LIBS="$ALSA_LIBS $LIBS"
  15120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15121. $as_echo "$ALSA_LIBS" >&6; }
  15122. min_alsa_version=0.9.0
  15123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15124. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15125. no_alsa=""
  15126. alsa_min_major_version=`echo $min_alsa_version | \
  15127. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15128. alsa_min_minor_version=`echo $min_alsa_version | \
  15129. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15130. alsa_min_micro_version=`echo $min_alsa_version | \
  15131. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15132. ac_ext=c
  15133. ac_cpp='$CPP $CPPFLAGS'
  15134. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15135. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15136. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15138. /* end confdefs.h. */
  15139. #include <alsa/asoundlib.h>
  15140. int
  15141. main ()
  15142. {
  15143. /* ensure backward compatibility */
  15144. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15145. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15146. #endif
  15147. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15148. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15149. #endif
  15150. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15151. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15152. #endif
  15153. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15154. exit(0);
  15155. # else
  15156. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15157. # error not present
  15158. # endif
  15159. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15160. exit(0);
  15161. # else
  15162. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15163. # error not present
  15164. # endif
  15165. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15166. # error not present
  15167. # endif
  15168. # endif
  15169. # endif
  15170. exit(0);
  15171. ;
  15172. return 0;
  15173. }
  15174. _ACEOF
  15175. if ac_fn_c_try_compile "$LINENO"; then :
  15176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15177. $as_echo "found." >&6; }
  15178. else
  15179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15180. $as_echo "not present." >&6; }
  15181. alsa_found=no
  15182. fi
  15183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15184. ac_ext=c
  15185. ac_cpp='$CPP $CPPFLAGS'
  15186. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15187. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15189. if test "x$enable_alsatest" = "xyes"; then
  15190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15191. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15192. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15193. $as_echo_n "(cached) " >&6
  15194. else
  15195. ac_check_lib_save_LIBS=$LIBS
  15196. LIBS="-lasound $LIBS"
  15197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15198. /* end confdefs.h. */
  15199. /* Override any GCC internal prototype to avoid an error.
  15200. Use char because int might match the return type of a GCC
  15201. builtin and then its argument prototype would still apply. */
  15202. #ifdef __cplusplus
  15203. extern "C"
  15204. #endif
  15205. char snd_ctl_open ();
  15206. int
  15207. main ()
  15208. {
  15209. return snd_ctl_open ();
  15210. ;
  15211. return 0;
  15212. }
  15213. _ACEOF
  15214. if ac_fn_c_try_link "$LINENO"; then :
  15215. ac_cv_lib_asound_snd_ctl_open=yes
  15216. else
  15217. ac_cv_lib_asound_snd_ctl_open=no
  15218. fi
  15219. rm -f core conftest.err conftest.$ac_objext \
  15220. conftest$ac_exeext conftest.$ac_ext
  15221. LIBS=$ac_check_lib_save_LIBS
  15222. fi
  15223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15224. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15225. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15226. cat >>confdefs.h <<_ACEOF
  15227. #define HAVE_LIBASOUND 1
  15228. _ACEOF
  15229. LIBS="-lasound $LIBS"
  15230. else
  15231. alsa_found=no
  15232. fi
  15233. fi
  15234. if test "x$alsa_found" = "xyes" ; then
  15235. have_alsa=yes
  15236. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15237. LIBS=`echo $LIBS | sed 's/ //'`
  15238. LIBS="-lasound $LIBS"
  15239. fi
  15240. if test "x$alsa_found" = "xno" ; then
  15241. have_alsa=no
  15242. CFLAGS="$alsa_save_CFLAGS"
  15243. LDFLAGS="$alsa_save_LDFLAGS"
  15244. LIBS="$alsa_save_LIBS"
  15245. ALSA_CFLAGS=""
  15246. ALSA_LIBS=""
  15247. fi
  15248. # Restore all flags from before the ALSA detection runs
  15249. CFLAGS="$alsa_save_CFLAGS"
  15250. LDFLAGS="$alsa_save_LDFLAGS"
  15251. LIBS="$alsa_save_LIBS"
  15252. if test x$have_alsa = xyes; then
  15253. # Check whether --enable-alsa-shared was given.
  15254. if test "${enable_alsa_shared+set}" = set; then :
  15255. enableval=$enable_alsa_shared;
  15256. else
  15257. enable_alsa_shared=yes
  15258. fi
  15259. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15260. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15261. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15262. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15263. if test x$have_loadso != xyes && \
  15264. test x$enable_alsa_shared = xyes; then
  15265. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15266. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15267. fi
  15268. if test x$have_loadso = xyes && \
  15269. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15270. echo "-- dynamic libasound -> $alsa_lib"
  15271. cat >>confdefs.h <<_ACEOF
  15272. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15273. _ACEOF
  15274. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15275. else
  15276. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15277. SUMMARY_audio="${SUMMARY_audio} alsa"
  15278. fi
  15279. have_audio=yes
  15280. fi
  15281. fi
  15282. }
  15283. CheckESD()
  15284. {
  15285. # Check whether --enable-esd was given.
  15286. if test "${enable_esd+set}" = set; then :
  15287. enableval=$enable_esd;
  15288. else
  15289. enable_esd=yes
  15290. fi
  15291. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15292. # Check whether --with-esd-prefix was given.
  15293. if test "${with_esd_prefix+set}" = set; then :
  15294. withval=$with_esd_prefix; esd_prefix="$withval"
  15295. else
  15296. esd_prefix=""
  15297. fi
  15298. # Check whether --with-esd-exec-prefix was given.
  15299. if test "${with_esd_exec_prefix+set}" = set; then :
  15300. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15301. else
  15302. esd_exec_prefix=""
  15303. fi
  15304. # Check whether --enable-esdtest was given.
  15305. if test "${enable_esdtest+set}" = set; then :
  15306. enableval=$enable_esdtest;
  15307. else
  15308. enable_esdtest=yes
  15309. fi
  15310. if test x$esd_exec_prefix != x ; then
  15311. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15312. if test x${ESD_CONFIG+set} != xset ; then
  15313. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15314. fi
  15315. fi
  15316. if test x$esd_prefix != x ; then
  15317. esd_args="$esd_args --prefix=$esd_prefix"
  15318. if test x${ESD_CONFIG+set} != xset ; then
  15319. ESD_CONFIG=$esd_prefix/bin/esd-config
  15320. fi
  15321. fi
  15322. # Extract the first word of "esd-config", so it can be a program name with args.
  15323. set dummy esd-config; ac_word=$2
  15324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15325. $as_echo_n "checking for $ac_word... " >&6; }
  15326. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15327. $as_echo_n "(cached) " >&6
  15328. else
  15329. case $ESD_CONFIG in
  15330. [\\/]* | ?:[\\/]*)
  15331. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15332. ;;
  15333. *)
  15334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15335. for as_dir in $PATH
  15336. do
  15337. IFS=$as_save_IFS
  15338. test -z "$as_dir" && as_dir=.
  15339. for ac_exec_ext in '' $ac_executable_extensions; do
  15340. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15341. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15343. break 2
  15344. fi
  15345. done
  15346. done
  15347. IFS=$as_save_IFS
  15348. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15349. ;;
  15350. esac
  15351. fi
  15352. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15353. if test -n "$ESD_CONFIG"; then
  15354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15355. $as_echo "$ESD_CONFIG" >&6; }
  15356. else
  15357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15358. $as_echo "no" >&6; }
  15359. fi
  15360. min_esd_version=0.2.8
  15361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15362. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15363. no_esd=""
  15364. if test "$ESD_CONFIG" = "no" ; then
  15365. no_esd=yes
  15366. else
  15367. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15368. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15369. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15370. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15371. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15372. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15373. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15374. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15375. if test "x$enable_esdtest" = "xyes" ; then
  15376. ac_save_CFLAGS="$CFLAGS"
  15377. ac_save_LIBS="$LIBS"
  15378. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15379. LIBS="$LIBS $ESD_LIBS"
  15380. rm -f conf.esdtest
  15381. if test "$cross_compiling" = yes; then :
  15382. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15383. else
  15384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15385. /* end confdefs.h. */
  15386. #include <stdio.h>
  15387. #include <stdlib.h>
  15388. #include <string.h>
  15389. #include <esd.h>
  15390. char*
  15391. my_strdup (char *str)
  15392. {
  15393. char *new_str;
  15394. if (str)
  15395. {
  15396. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15397. strcpy (new_str, str);
  15398. }
  15399. else
  15400. new_str = NULL;
  15401. return new_str;
  15402. }
  15403. int main ()
  15404. {
  15405. int major, minor, micro;
  15406. char *tmp_version;
  15407. system ("touch conf.esdtest");
  15408. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15409. tmp_version = my_strdup("$min_esd_version");
  15410. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15411. printf("%s, bad version string\n", "$min_esd_version");
  15412. exit(1);
  15413. }
  15414. if (($esd_major_version > major) ||
  15415. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15416. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15417. {
  15418. return 0;
  15419. }
  15420. else
  15421. {
  15422. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15423. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15424. printf("*** best to upgrade to the required version.\n");
  15425. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15426. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15427. printf("*** config.cache before re-running configure\n");
  15428. return 1;
  15429. }
  15430. }
  15431. _ACEOF
  15432. if ac_fn_c_try_run "$LINENO"; then :
  15433. else
  15434. no_esd=yes
  15435. fi
  15436. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15437. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15438. fi
  15439. CFLAGS="$ac_save_CFLAGS"
  15440. LIBS="$ac_save_LIBS"
  15441. fi
  15442. fi
  15443. if test "x$no_esd" = x ; then
  15444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15445. $as_echo "yes" >&6; }
  15446. have_esd=yes
  15447. else
  15448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15449. $as_echo "no" >&6; }
  15450. if test "$ESD_CONFIG" = "no" ; then
  15451. echo "*** The esd-config script installed by ESD could not be found"
  15452. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15453. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15454. echo "*** full path to esd-config."
  15455. else
  15456. if test -f conf.esdtest ; then
  15457. :
  15458. else
  15459. echo "*** Could not run ESD test program, checking why..."
  15460. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15461. LIBS="$LIBS $ESD_LIBS"
  15462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15463. /* end confdefs.h. */
  15464. #include <stdio.h>
  15465. #include <esd.h>
  15466. int
  15467. main ()
  15468. {
  15469. return 0;
  15470. ;
  15471. return 0;
  15472. }
  15473. _ACEOF
  15474. if ac_fn_c_try_link "$LINENO"; then :
  15475. echo "*** The test program compiled, but did not run. This usually means"
  15476. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15477. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15478. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15479. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15480. echo "*** is required on your system"
  15481. echo "***"
  15482. echo "*** If you have an old version installed, it is best to remove it, although"
  15483. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15484. else
  15485. echo "*** The test program failed to compile or link. See the file config.log for the"
  15486. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15487. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15488. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15489. fi
  15490. rm -f core conftest.err conftest.$ac_objext \
  15491. conftest$ac_exeext conftest.$ac_ext
  15492. CFLAGS="$ac_save_CFLAGS"
  15493. LIBS="$ac_save_LIBS"
  15494. fi
  15495. fi
  15496. ESD_CFLAGS=""
  15497. ESD_LIBS=""
  15498. have_esd=no
  15499. fi
  15500. rm -f conf.esdtest
  15501. if test x$have_esd = xyes; then
  15502. # Check whether --enable-esd-shared was given.
  15503. if test "${enable_esd_shared+set}" = set; then :
  15504. enableval=$enable_esd_shared;
  15505. else
  15506. enable_esd_shared=yes
  15507. fi
  15508. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15509. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15510. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15511. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15512. if test x$have_loadso != xyes && \
  15513. test x$enable_esd_shared = xyes; then
  15514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15515. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15516. fi
  15517. if test x$have_loadso = xyes && \
  15518. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15519. echo "-- dynamic libesd -> $esd_lib"
  15520. cat >>confdefs.h <<_ACEOF
  15521. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15522. _ACEOF
  15523. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15524. else
  15525. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15526. SUMMARY_audio="${SUMMARY_audio} esd"
  15527. fi
  15528. have_audio=yes
  15529. fi
  15530. fi
  15531. }
  15532. CheckPulseAudio()
  15533. {
  15534. # Check whether --enable-pulseaudio was given.
  15535. if test "${enable_pulseaudio+set}" = set; then :
  15536. enableval=$enable_pulseaudio;
  15537. else
  15538. enable_pulseaudio=yes
  15539. fi
  15540. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15541. audio_pulseaudio=no
  15542. PULSEAUDIO_REQUIRED_VERSION=0.9
  15543. # Extract the first word of "pkg-config", so it can be a program name with args.
  15544. set dummy pkg-config; ac_word=$2
  15545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15546. $as_echo_n "checking for $ac_word... " >&6; }
  15547. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15548. $as_echo_n "(cached) " >&6
  15549. else
  15550. case $PKG_CONFIG in
  15551. [\\/]* | ?:[\\/]*)
  15552. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15553. ;;
  15554. *)
  15555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15556. for as_dir in $PATH
  15557. do
  15558. IFS=$as_save_IFS
  15559. test -z "$as_dir" && as_dir=.
  15560. for ac_exec_ext in '' $ac_executable_extensions; do
  15561. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15562. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15564. break 2
  15565. fi
  15566. done
  15567. done
  15568. IFS=$as_save_IFS
  15569. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15570. ;;
  15571. esac
  15572. fi
  15573. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15574. if test -n "$PKG_CONFIG"; then
  15575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15576. $as_echo "$PKG_CONFIG" >&6; }
  15577. else
  15578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15579. $as_echo "no" >&6; }
  15580. fi
  15581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15582. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15583. if test x$PKG_CONFIG != xno; then
  15584. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15585. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15586. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15587. audio_pulseaudio=yes
  15588. fi
  15589. fi
  15590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15591. $as_echo "$audio_pulseaudio" >&6; }
  15592. if test x$audio_pulseaudio = xyes; then
  15593. # Check whether --enable-pulseaudio-shared was given.
  15594. if test "${enable_pulseaudio_shared+set}" = set; then :
  15595. enableval=$enable_pulseaudio_shared;
  15596. else
  15597. enable_pulseaudio_shared=yes
  15598. fi
  15599. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15600. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15601. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15602. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15603. if test x$have_loadso != xyes && \
  15604. test x$enable_pulseaudio_shared = xyes; then
  15605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15606. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15607. fi
  15608. if test x$have_loadso = xyes && \
  15609. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15610. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15611. cat >>confdefs.h <<_ACEOF
  15612. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15613. _ACEOF
  15614. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15615. case "$host" in
  15616. # On Solaris, pulseaudio must be linked deferred explicitly
  15617. # to prevent undefined symbol failures.
  15618. *-*-solaris*)
  15619. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15620. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15621. esac
  15622. else
  15623. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15624. SUMMARY_audio="${SUMMARY_audio} pulse"
  15625. fi
  15626. have_audio=yes
  15627. fi
  15628. fi
  15629. }
  15630. CheckARTSC()
  15631. {
  15632. # Check whether --enable-arts was given.
  15633. if test "${enable_arts+set}" = set; then :
  15634. enableval=$enable_arts;
  15635. else
  15636. enable_arts=yes
  15637. fi
  15638. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15639. # Extract the first word of "artsc-config", so it can be a program name with args.
  15640. set dummy artsc-config; ac_word=$2
  15641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15642. $as_echo_n "checking for $ac_word... " >&6; }
  15643. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15644. $as_echo_n "(cached) " >&6
  15645. else
  15646. case $ARTSCONFIG in
  15647. [\\/]* | ?:[\\/]*)
  15648. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15649. ;;
  15650. *)
  15651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15652. for as_dir in $PATH
  15653. do
  15654. IFS=$as_save_IFS
  15655. test -z "$as_dir" && as_dir=.
  15656. for ac_exec_ext in '' $ac_executable_extensions; do
  15657. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15658. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15660. break 2
  15661. fi
  15662. done
  15663. done
  15664. IFS=$as_save_IFS
  15665. ;;
  15666. esac
  15667. fi
  15668. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15669. if test -n "$ARTSCONFIG"; then
  15670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15671. $as_echo "$ARTSCONFIG" >&6; }
  15672. else
  15673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15674. $as_echo "no" >&6; }
  15675. fi
  15676. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15677. : # arts isn't installed
  15678. else
  15679. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15680. ARTS_LIBS=`$ARTSCONFIG --libs`
  15681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15682. $as_echo_n "checking for aRts development environment... " >&6; }
  15683. audio_arts=no
  15684. save_CFLAGS="$CFLAGS"
  15685. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15687. /* end confdefs.h. */
  15688. #include <artsc.h>
  15689. int
  15690. main ()
  15691. {
  15692. arts_stream_t stream;
  15693. ;
  15694. return 0;
  15695. }
  15696. _ACEOF
  15697. if ac_fn_c_try_compile "$LINENO"; then :
  15698. audio_arts=yes
  15699. fi
  15700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15701. CFLAGS="$save_CFLAGS"
  15702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15703. $as_echo "$audio_arts" >&6; }
  15704. if test x$audio_arts = xyes; then
  15705. # Check whether --enable-arts-shared was given.
  15706. if test "${enable_arts_shared+set}" = set; then :
  15707. enableval=$enable_arts_shared;
  15708. else
  15709. enable_arts_shared=yes
  15710. fi
  15711. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15712. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15713. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15714. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15715. if test x$have_loadso != xyes && \
  15716. test x$enable_arts_shared = xyes; then
  15717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15718. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15719. fi
  15720. if test x$have_loadso = xyes && \
  15721. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15722. echo "-- dynamic libartsc -> $arts_lib"
  15723. cat >>confdefs.h <<_ACEOF
  15724. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15725. _ACEOF
  15726. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15727. else
  15728. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15729. SUMMARY_audio="${SUMMARY_audio} arts"
  15730. fi
  15731. have_audio=yes
  15732. fi
  15733. fi
  15734. fi
  15735. }
  15736. CheckNAS()
  15737. {
  15738. # Check whether --enable-nas was given.
  15739. if test "${enable_nas+set}" = set; then :
  15740. enableval=$enable_nas;
  15741. else
  15742. enable_nas=yes
  15743. fi
  15744. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15745. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15746. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15747. have_nas_hdr=yes
  15748. fi
  15749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15750. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15751. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15752. $as_echo_n "(cached) " >&6
  15753. else
  15754. ac_check_lib_save_LIBS=$LIBS
  15755. LIBS="-laudio $LIBS"
  15756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15757. /* end confdefs.h. */
  15758. /* Override any GCC internal prototype to avoid an error.
  15759. Use char because int might match the return type of a GCC
  15760. builtin and then its argument prototype would still apply. */
  15761. #ifdef __cplusplus
  15762. extern "C"
  15763. #endif
  15764. char AuOpenServer ();
  15765. int
  15766. main ()
  15767. {
  15768. return AuOpenServer ();
  15769. ;
  15770. return 0;
  15771. }
  15772. _ACEOF
  15773. if ac_fn_c_try_link "$LINENO"; then :
  15774. ac_cv_lib_audio_AuOpenServer=yes
  15775. else
  15776. ac_cv_lib_audio_AuOpenServer=no
  15777. fi
  15778. rm -f core conftest.err conftest.$ac_objext \
  15779. conftest$ac_exeext conftest.$ac_ext
  15780. LIBS=$ac_check_lib_save_LIBS
  15781. fi
  15782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15783. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15784. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15785. have_nas_lib=yes
  15786. fi
  15787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15788. $as_echo_n "checking for NAS audio support... " >&6; }
  15789. have_nas=no
  15790. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15791. have_nas=yes
  15792. NAS_LIBS="-laudio"
  15793. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15794. have_nas=yes
  15795. NAS_CFLAGS="-I/usr/X11R6/include/"
  15796. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15797. fi
  15798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15799. $as_echo "$have_nas" >&6; }
  15800. if test x$have_nas = xyes; then
  15801. # Check whether --enable-nas-shared was given.
  15802. if test "${enable_nas_shared+set}" = set; then :
  15803. enableval=$enable_nas_shared;
  15804. else
  15805. enable_nas_shared=yes
  15806. fi
  15807. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15808. if test x$have_loadso != xyes && \
  15809. test x$enable_nas_shared = xyes; then
  15810. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15811. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15812. fi
  15813. if test x$have_loadso = xyes && \
  15814. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15815. echo "-- dynamic libaudio -> $nas_lib"
  15816. cat >>confdefs.h <<_ACEOF
  15817. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15818. _ACEOF
  15819. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15820. else
  15821. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15822. SUMMARY_audio="${SUMMARY_audio} nas"
  15823. fi
  15824. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15825. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15826. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15827. have_audio=yes
  15828. fi
  15829. fi
  15830. }
  15831. CheckSNDIO()
  15832. {
  15833. # Check whether --enable-sndio was given.
  15834. if test "${enable_sndio+set}" = set; then :
  15835. enableval=$enable_sndio;
  15836. else
  15837. enable_sndio=yes
  15838. fi
  15839. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15840. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15841. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15842. have_sndio_hdr=yes
  15843. fi
  15844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15845. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15846. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15847. $as_echo_n "(cached) " >&6
  15848. else
  15849. ac_check_lib_save_LIBS=$LIBS
  15850. LIBS="-lsndio $LIBS"
  15851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15852. /* end confdefs.h. */
  15853. /* Override any GCC internal prototype to avoid an error.
  15854. Use char because int might match the return type of a GCC
  15855. builtin and then its argument prototype would still apply. */
  15856. #ifdef __cplusplus
  15857. extern "C"
  15858. #endif
  15859. char sio_open ();
  15860. int
  15861. main ()
  15862. {
  15863. return sio_open ();
  15864. ;
  15865. return 0;
  15866. }
  15867. _ACEOF
  15868. if ac_fn_c_try_link "$LINENO"; then :
  15869. ac_cv_lib_sndio_sio_open=yes
  15870. else
  15871. ac_cv_lib_sndio_sio_open=no
  15872. fi
  15873. rm -f core conftest.err conftest.$ac_objext \
  15874. conftest$ac_exeext conftest.$ac_ext
  15875. LIBS=$ac_check_lib_save_LIBS
  15876. fi
  15877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15878. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15879. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15880. have_sndio_lib=yes
  15881. fi
  15882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15883. $as_echo_n "checking for sndio audio support... " >&6; }
  15884. have_sndio=no
  15885. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15886. have_sndio=yes
  15887. SNDIO_LIBS="-lsndio"
  15888. fi
  15889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15890. $as_echo "$have_sndio" >&6; }
  15891. if test x$have_sndio = xyes; then
  15892. # Check whether --enable-sndio-shared was given.
  15893. if test "${enable_sndio_shared+set}" = set; then :
  15894. enableval=$enable_sndio_shared;
  15895. else
  15896. enable_sndio_shared=yes
  15897. fi
  15898. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15899. if test x$have_loadso != xyes && \
  15900. test x$enable_sndio_shared = xyes; then
  15901. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15902. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15903. fi
  15904. if test x$have_loadso = xyes && \
  15905. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15906. echo "-- dynamic libsndio -> $sndio_lib"
  15907. cat >>confdefs.h <<_ACEOF
  15908. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15909. _ACEOF
  15910. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  15911. else
  15912. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15913. SUMMARY_audio="${SUMMARY_audio} sndio"
  15914. fi
  15915. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15916. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15917. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15918. have_audio=yes
  15919. fi
  15920. fi
  15921. }
  15922. CheckDiskAudio()
  15923. {
  15924. # Check whether --enable-diskaudio was given.
  15925. if test "${enable_diskaudio+set}" = set; then :
  15926. enableval=$enable_diskaudio;
  15927. else
  15928. enable_diskaudio=yes
  15929. fi
  15930. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15931. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15932. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15933. SUMMARY_audio="${SUMMARY_audio} disk"
  15934. fi
  15935. }
  15936. CheckDummyAudio()
  15937. {
  15938. # Check whether --enable-dummyaudio was given.
  15939. if test "${enable_dummyaudio+set}" = set; then :
  15940. enableval=$enable_dummyaudio;
  15941. else
  15942. enable_dummyaudio=yes
  15943. fi
  15944. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15945. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15946. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15947. SUMMARY_audio="${SUMMARY_audio} dummy"
  15948. fi
  15949. }
  15950. CheckVisibilityHidden()
  15951. {
  15952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15953. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15954. have_gcc_fvisibility=no
  15955. visibility_CFLAGS="-fvisibility=hidden"
  15956. save_CFLAGS="$CFLAGS"
  15957. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15959. /* end confdefs.h. */
  15960. #if !defined(__GNUC__) || __GNUC__ < 4
  15961. #error SDL only uses visibility attributes in GCC 4 or newer
  15962. #endif
  15963. int
  15964. main ()
  15965. {
  15966. ;
  15967. return 0;
  15968. }
  15969. _ACEOF
  15970. if ac_fn_c_try_compile "$LINENO"; then :
  15971. have_gcc_fvisibility=yes
  15972. fi
  15973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15975. $as_echo "$have_gcc_fvisibility" >&6; }
  15976. CFLAGS="$save_CFLAGS"
  15977. if test x$have_gcc_fvisibility = xyes; then
  15978. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15979. fi
  15980. }
  15981. CheckStackBoundary()
  15982. {
  15983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  15984. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  15985. have_gcc_preferred_stack_boundary=no
  15986. save_CFLAGS="$CFLAGS"
  15987. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  15988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15989. /* end confdefs.h. */
  15990. int x = 0;
  15991. int
  15992. main ()
  15993. {
  15994. ;
  15995. return 0;
  15996. }
  15997. _ACEOF
  15998. if ac_fn_c_try_compile "$LINENO"; then :
  15999. have_gcc_preferred_stack_boundary=yes
  16000. fi
  16001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16003. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16004. CFLAGS="$save_CFLAGS"
  16005. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16006. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16007. fi
  16008. }
  16009. CheckWarnAll()
  16010. {
  16011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16012. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16013. have_gcc_Wall=no
  16014. save_CFLAGS="$CFLAGS"
  16015. CFLAGS="$save_CFLAGS -Wall"
  16016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16017. /* end confdefs.h. */
  16018. int x = 0;
  16019. int
  16020. main ()
  16021. {
  16022. ;
  16023. return 0;
  16024. }
  16025. _ACEOF
  16026. if ac_fn_c_try_compile "$LINENO"; then :
  16027. have_gcc_Wall=yes
  16028. fi
  16029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16031. $as_echo "$have_gcc_Wall" >&6; }
  16032. CFLAGS="$save_CFLAGS"
  16033. if test x$have_gcc_Wall = xyes; then
  16034. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16036. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16037. need_gcc_Wno_multichar=no
  16038. case "$host" in
  16039. *-*-haiku*)
  16040. need_gcc_Wno_multichar=yes
  16041. ;;
  16042. esac
  16043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16044. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16045. if test x$need_gcc_Wno_multichar = xyes; then
  16046. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16047. fi
  16048. fi
  16049. }
  16050. CheckWarnShadow()
  16051. {
  16052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wshadow option" >&5
  16053. $as_echo_n "checking for GCC -Wshadow option... " >&6; }
  16054. have_gcc_Wshadow=no
  16055. save_CFLAGS="$CFLAGS"
  16056. CFLAGS="$save_CFLAGS -Wshadow"
  16057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16058. /* end confdefs.h. */
  16059. int x = 0;
  16060. int
  16061. main ()
  16062. {
  16063. ;
  16064. return 0;
  16065. }
  16066. _ACEOF
  16067. if ac_fn_c_try_compile "$LINENO"; then :
  16068. have_gcc_Wshadow=yes
  16069. fi
  16070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wshadow" >&5
  16072. $as_echo "$have_gcc_Wshadow" >&6; }
  16073. CFLAGS="$save_CFLAGS"
  16074. if test x$have_gcc_Wshadow = xyes; then
  16075. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wshadow"
  16076. fi
  16077. }
  16078. CheckWayland()
  16079. {
  16080. # Check whether --enable-video-wayland was given.
  16081. if test "${enable_video_wayland+set}" = set; then :
  16082. enableval=$enable_video_wayland;
  16083. else
  16084. enable_video_wayland=yes
  16085. fi
  16086. # Check whether --enable-video-wayland-qt-touch was given.
  16087. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16088. enableval=$enable_video_wayland_qt_touch;
  16089. else
  16090. enable_video_wayland_qt_touch=yes
  16091. fi
  16092. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16093. # Extract the first word of "pkg-config", so it can be a program name with args.
  16094. set dummy pkg-config; ac_word=$2
  16095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16096. $as_echo_n "checking for $ac_word... " >&6; }
  16097. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16098. $as_echo_n "(cached) " >&6
  16099. else
  16100. case $PKG_CONFIG in
  16101. [\\/]* | ?:[\\/]*)
  16102. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16103. ;;
  16104. *)
  16105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16106. for as_dir in $PATH
  16107. do
  16108. IFS=$as_save_IFS
  16109. test -z "$as_dir" && as_dir=.
  16110. for ac_exec_ext in '' $ac_executable_extensions; do
  16111. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16112. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16114. break 2
  16115. fi
  16116. done
  16117. done
  16118. IFS=$as_save_IFS
  16119. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16120. ;;
  16121. esac
  16122. fi
  16123. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16124. if test -n "$PKG_CONFIG"; then
  16125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16126. $as_echo "$PKG_CONFIG" >&6; }
  16127. else
  16128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16129. $as_echo "no" >&6; }
  16130. fi
  16131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16132. $as_echo_n "checking for Wayland support... " >&6; }
  16133. video_wayland=no
  16134. if test x$PKG_CONFIG != xno && \
  16135. test x$video_opengl_egl = xyes && \
  16136. test x$video_opengles_v2 = xyes; then
  16137. if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
  16138. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16139. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16140. video_wayland=yes
  16141. fi
  16142. fi
  16143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16144. $as_echo "$video_wayland" >&6; }
  16145. if test x$video_wayland = xyes; then
  16146. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16147. if test x$enable_video_wayland_qt_touch = xyes; then
  16148. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16149. fi
  16150. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16151. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
  16152. # Check whether --enable-wayland-shared was given.
  16153. if test "${enable_wayland_shared+set}" = set; then :
  16154. enableval=$enable_wayland_shared;
  16155. else
  16156. enable_wayland_shared=maybe
  16157. fi
  16158. case "$host" in
  16159. *)
  16160. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16161. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16162. if test x$wayland_egl_lib = x; then
  16163. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16164. fi
  16165. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16166. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16167. ;;
  16168. esac
  16169. if test x$enable_wayland_shared = xmaybe; then
  16170. enable_wayland_shared=yes
  16171. fi
  16172. if test x$have_loadso != xyes && \
  16173. test x$enable_wayland_shared = xyes; then
  16174. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16175. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16176. enable_wayland_shared=no
  16177. fi
  16178. if test x$have_loadso = xyes && \
  16179. test x$enable_wayland_shared = xyes && \
  16180. test x$wayland_client_lib != x && \
  16181. test x$wayland_egl_lib != x && \
  16182. test x$wayland_cursor_lib != x && \
  16183. test x$xkbcommon_lib != x; then
  16184. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16185. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16186. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16187. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16188. cat >>confdefs.h <<_ACEOF
  16189. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16190. _ACEOF
  16191. cat >>confdefs.h <<_ACEOF
  16192. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16193. _ACEOF
  16194. cat >>confdefs.h <<_ACEOF
  16195. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16196. _ACEOF
  16197. cat >>confdefs.h <<_ACEOF
  16198. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16199. _ACEOF
  16200. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16201. else
  16202. enable_wayland_shared=no
  16203. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16204. SUMMARY_video="${SUMMARY_video} wayland"
  16205. fi
  16206. have_video=yes
  16207. fi
  16208. fi
  16209. }
  16210. CheckMir()
  16211. {
  16212. # Check whether --enable-video-mir was given.
  16213. if test "${enable_video_mir+set}" = set; then :
  16214. enableval=$enable_video_mir;
  16215. else
  16216. enable_video_mir=yes
  16217. fi
  16218. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16219. # Extract the first word of "pkg-config", so it can be a program name with args.
  16220. set dummy pkg-config; ac_word=$2
  16221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16222. $as_echo_n "checking for $ac_word... " >&6; }
  16223. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16224. $as_echo_n "(cached) " >&6
  16225. else
  16226. case $PKG_CONFIG in
  16227. [\\/]* | ?:[\\/]*)
  16228. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16229. ;;
  16230. *)
  16231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16232. for as_dir in $PATH
  16233. do
  16234. IFS=$as_save_IFS
  16235. test -z "$as_dir" && as_dir=.
  16236. for ac_exec_ext in '' $ac_executable_extensions; do
  16237. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16238. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16240. break 2
  16241. fi
  16242. done
  16243. done
  16244. IFS=$as_save_IFS
  16245. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16246. ;;
  16247. esac
  16248. fi
  16249. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16250. if test -n "$PKG_CONFIG"; then
  16251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16252. $as_echo "$PKG_CONFIG" >&6; }
  16253. else
  16254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16255. $as_echo "no" >&6; }
  16256. fi
  16257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16258. $as_echo_n "checking for Mir support... " >&6; }
  16259. video_mir=no
  16260. if test x$PKG_CONFIG != xno; then
  16261. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16262. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16263. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16264. save_CFLAGS="$CFLAGS"
  16265. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16267. /* end confdefs.h. */
  16268. #include <mir_toolkit/mir_client_library.h>
  16269. int
  16270. main ()
  16271. {
  16272. MirMotionToolType tool = mir_motion_tool_type_mouse;
  16273. ;
  16274. return 0;
  16275. }
  16276. _ACEOF
  16277. if ac_fn_c_try_compile "$LINENO"; then :
  16278. video_mir=yes
  16279. fi
  16280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16281. CFLAGS="$save_CFLAGS"
  16282. fi
  16283. fi
  16284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16285. $as_echo "$video_mir" >&6; }
  16286. if test x$video_mir = xyes; then
  16287. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16288. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16289. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16290. # Check whether --enable-mir-shared was given.
  16291. if test "${enable_mir_shared+set}" = set; then :
  16292. enableval=$enable_mir_shared;
  16293. else
  16294. enable_mir_shared=maybe
  16295. fi
  16296. case "$host" in
  16297. *)
  16298. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16299. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16300. ;;
  16301. esac
  16302. if test x$enable_mir_shared = xmaybe; then
  16303. enable_mir_shared=yes
  16304. fi
  16305. if test x$have_loadso != xyes && \
  16306. test x$enable_mir_shared = xyes; then
  16307. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16308. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16309. enable_mir_shared=no
  16310. fi
  16311. if test x$have_loadso = xyes && \
  16312. test x$enable_mir_shared = xyes && \
  16313. test x$mirclient_lib != x && \
  16314. test x$xkbcommon_lib != x; then
  16315. echo "-- dynamic libmirclient -> $mirclient_lib"
  16316. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16317. cat >>confdefs.h <<_ACEOF
  16318. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16319. _ACEOF
  16320. cat >>confdefs.h <<_ACEOF
  16321. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16322. _ACEOF
  16323. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16324. else
  16325. enable_mir_shared=no
  16326. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16327. SUMMARY_video="${SUMMARY_video} mir"
  16328. fi
  16329. have_video=yes
  16330. fi
  16331. fi
  16332. }
  16333. CheckNativeClient()
  16334. {
  16335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16336. /* end confdefs.h. */
  16337. #if !defined(__native_client__)
  16338. #error "NO NACL"
  16339. #endif
  16340. int
  16341. main ()
  16342. {
  16343. ;
  16344. return 0;
  16345. }
  16346. _ACEOF
  16347. if ac_fn_c_try_compile "$LINENO"; then :
  16348. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16349. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16350. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16351. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16352. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16353. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16354. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16355. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16356. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16357. SUMMARY_audio="${SUMMARY_audio} nacl"
  16358. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16359. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16360. fi
  16361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16362. }
  16363. CheckX11()
  16364. {
  16365. # Check whether --enable-video-x11 was given.
  16366. if test "${enable_video_x11+set}" = set; then :
  16367. enableval=$enable_video_x11;
  16368. else
  16369. enable_video_x11=yes
  16370. fi
  16371. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16372. case "$host" in
  16373. *-*-darwin*)
  16374. # This isn't necessary for X11, but fixes GLX detection
  16375. if test "x$x_includes" = xNONE && \
  16376. test "x$x_libraries" = xNONE && \
  16377. test -d /usr/X11R6/include && \
  16378. test -d /usr/X11R6/lib; then
  16379. x_includes="/usr/X11R6/include"
  16380. x_libraries="/usr/X11R6/lib"
  16381. fi
  16382. ;;
  16383. esac
  16384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16385. $as_echo_n "checking for X... " >&6; }
  16386. # Check whether --with-x was given.
  16387. if test "${with_x+set}" = set; then :
  16388. withval=$with_x;
  16389. fi
  16390. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16391. if test "x$with_x" = xno; then
  16392. # The user explicitly disabled X.
  16393. have_x=disabled
  16394. else
  16395. case $x_includes,$x_libraries in #(
  16396. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16397. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16398. $as_echo_n "(cached) " >&6
  16399. else
  16400. # One or both of the vars are not set, and there is no cached value.
  16401. ac_x_includes=no ac_x_libraries=no
  16402. rm -f -r conftest.dir
  16403. if mkdir conftest.dir; then
  16404. cd conftest.dir
  16405. cat >Imakefile <<'_ACEOF'
  16406. incroot:
  16407. @echo incroot='${INCROOT}'
  16408. usrlibdir:
  16409. @echo usrlibdir='${USRLIBDIR}'
  16410. libdir:
  16411. @echo libdir='${LIBDIR}'
  16412. _ACEOF
  16413. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16414. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16415. for ac_var in incroot usrlibdir libdir; do
  16416. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16417. done
  16418. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16419. for ac_extension in a so sl dylib la dll; do
  16420. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16421. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16422. ac_im_usrlibdir=$ac_im_libdir; break
  16423. fi
  16424. done
  16425. # Screen out bogus values from the imake configuration. They are
  16426. # bogus both because they are the default anyway, and because
  16427. # using them would break gcc on systems where it needs fixed includes.
  16428. case $ac_im_incroot in
  16429. /usr/include) ac_x_includes= ;;
  16430. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16431. esac
  16432. case $ac_im_usrlibdir in
  16433. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16434. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16435. esac
  16436. fi
  16437. cd ..
  16438. rm -f -r conftest.dir
  16439. fi
  16440. # Standard set of common directories for X headers.
  16441. # Check X11 before X11Rn because it is often a symlink to the current release.
  16442. ac_x_header_dirs='
  16443. /usr/X11/include
  16444. /usr/X11R7/include
  16445. /usr/X11R6/include
  16446. /usr/X11R5/include
  16447. /usr/X11R4/include
  16448. /usr/include/X11
  16449. /usr/include/X11R7
  16450. /usr/include/X11R6
  16451. /usr/include/X11R5
  16452. /usr/include/X11R4
  16453. /usr/local/X11/include
  16454. /usr/local/X11R7/include
  16455. /usr/local/X11R6/include
  16456. /usr/local/X11R5/include
  16457. /usr/local/X11R4/include
  16458. /usr/local/include/X11
  16459. /usr/local/include/X11R7
  16460. /usr/local/include/X11R6
  16461. /usr/local/include/X11R5
  16462. /usr/local/include/X11R4
  16463. /usr/X386/include
  16464. /usr/x386/include
  16465. /usr/XFree86/include/X11
  16466. /usr/include
  16467. /usr/local/include
  16468. /usr/unsupported/include
  16469. /usr/athena/include
  16470. /usr/local/x11r5/include
  16471. /usr/lpp/Xamples/include
  16472. /usr/openwin/include
  16473. /usr/openwin/share/include'
  16474. if test "$ac_x_includes" = no; then
  16475. # Guess where to find include files, by looking for Xlib.h.
  16476. # First, try using that file with no special directory specified.
  16477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16478. /* end confdefs.h. */
  16479. #include <X11/Xlib.h>
  16480. _ACEOF
  16481. if ac_fn_c_try_cpp "$LINENO"; then :
  16482. # We can compile using X headers with no special include directory.
  16483. ac_x_includes=
  16484. else
  16485. for ac_dir in $ac_x_header_dirs; do
  16486. if test -r "$ac_dir/X11/Xlib.h"; then
  16487. ac_x_includes=$ac_dir
  16488. break
  16489. fi
  16490. done
  16491. fi
  16492. rm -f conftest.err conftest.i conftest.$ac_ext
  16493. fi # $ac_x_includes = no
  16494. if test "$ac_x_libraries" = no; then
  16495. # Check for the libraries.
  16496. # See if we find them without any special options.
  16497. # Don't add to $LIBS permanently.
  16498. ac_save_LIBS=$LIBS
  16499. LIBS="-lX11 $LIBS"
  16500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16501. /* end confdefs.h. */
  16502. #include <X11/Xlib.h>
  16503. int
  16504. main ()
  16505. {
  16506. XrmInitialize ()
  16507. ;
  16508. return 0;
  16509. }
  16510. _ACEOF
  16511. if ac_fn_c_try_link "$LINENO"; then :
  16512. LIBS=$ac_save_LIBS
  16513. # We can link X programs with no special library path.
  16514. ac_x_libraries=
  16515. else
  16516. LIBS=$ac_save_LIBS
  16517. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16518. do
  16519. # Don't even attempt the hair of trying to link an X program!
  16520. for ac_extension in a so sl dylib la dll; do
  16521. if test -r "$ac_dir/libX11.$ac_extension"; then
  16522. ac_x_libraries=$ac_dir
  16523. break 2
  16524. fi
  16525. done
  16526. done
  16527. fi
  16528. rm -f core conftest.err conftest.$ac_objext \
  16529. conftest$ac_exeext conftest.$ac_ext
  16530. fi # $ac_x_libraries = no
  16531. case $ac_x_includes,$ac_x_libraries in #(
  16532. no,* | *,no | *\'*)
  16533. # Didn't find X, or a directory has "'" in its name.
  16534. ac_cv_have_x="have_x=no";; #(
  16535. *)
  16536. # Record where we found X for the cache.
  16537. ac_cv_have_x="have_x=yes\
  16538. ac_x_includes='$ac_x_includes'\
  16539. ac_x_libraries='$ac_x_libraries'"
  16540. esac
  16541. fi
  16542. ;; #(
  16543. *) have_x=yes;;
  16544. esac
  16545. eval "$ac_cv_have_x"
  16546. fi # $with_x != no
  16547. if test "$have_x" != yes; then
  16548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16549. $as_echo "$have_x" >&6; }
  16550. no_x=yes
  16551. else
  16552. # If each of the values was on the command line, it overrides each guess.
  16553. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16554. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16555. # Update the cache value to reflect the command line values.
  16556. ac_cv_have_x="have_x=yes\
  16557. ac_x_includes='$x_includes'\
  16558. ac_x_libraries='$x_libraries'"
  16559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16560. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16561. fi
  16562. if test "$no_x" = yes; then
  16563. # Not all programs may use this symbol, but it does not hurt to define it.
  16564. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16565. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16566. else
  16567. if test -n "$x_includes"; then
  16568. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16569. fi
  16570. # It would also be nice to do this for all -L options, not just this one.
  16571. if test -n "$x_libraries"; then
  16572. X_LIBS="$X_LIBS -L$x_libraries"
  16573. # For Solaris; some versions of Sun CC require a space after -R and
  16574. # others require no space. Words are not sufficient . . . .
  16575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16576. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16577. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16578. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16579. ac_c_werror_flag=yes
  16580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16581. /* end confdefs.h. */
  16582. int
  16583. main ()
  16584. {
  16585. ;
  16586. return 0;
  16587. }
  16588. _ACEOF
  16589. if ac_fn_c_try_link "$LINENO"; then :
  16590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16591. $as_echo "no" >&6; }
  16592. X_LIBS="$X_LIBS -R$x_libraries"
  16593. else
  16594. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16596. /* end confdefs.h. */
  16597. int
  16598. main ()
  16599. {
  16600. ;
  16601. return 0;
  16602. }
  16603. _ACEOF
  16604. if ac_fn_c_try_link "$LINENO"; then :
  16605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16606. $as_echo "yes" >&6; }
  16607. X_LIBS="$X_LIBS -R $x_libraries"
  16608. else
  16609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16610. $as_echo "neither works" >&6; }
  16611. fi
  16612. rm -f core conftest.err conftest.$ac_objext \
  16613. conftest$ac_exeext conftest.$ac_ext
  16614. fi
  16615. rm -f core conftest.err conftest.$ac_objext \
  16616. conftest$ac_exeext conftest.$ac_ext
  16617. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16618. LIBS=$ac_xsave_LIBS
  16619. fi
  16620. # Check for system-dependent libraries X programs must link with.
  16621. # Do this before checking for the system-independent R6 libraries
  16622. # (-lICE), since we may need -lsocket or whatever for X linking.
  16623. if test "$ISC" = yes; then
  16624. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16625. else
  16626. # Martyn Johnson says this is needed for Ultrix, if the X
  16627. # libraries were built with DECnet support. And Karl Berry says
  16628. # the Alpha needs dnet_stub (dnet does not exist).
  16629. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16631. /* end confdefs.h. */
  16632. /* Override any GCC internal prototype to avoid an error.
  16633. Use char because int might match the return type of a GCC
  16634. builtin and then its argument prototype would still apply. */
  16635. #ifdef __cplusplus
  16636. extern "C"
  16637. #endif
  16638. char XOpenDisplay ();
  16639. int
  16640. main ()
  16641. {
  16642. return XOpenDisplay ();
  16643. ;
  16644. return 0;
  16645. }
  16646. _ACEOF
  16647. if ac_fn_c_try_link "$LINENO"; then :
  16648. else
  16649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16650. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16651. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16652. $as_echo_n "(cached) " >&6
  16653. else
  16654. ac_check_lib_save_LIBS=$LIBS
  16655. LIBS="-ldnet $LIBS"
  16656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16657. /* end confdefs.h. */
  16658. /* Override any GCC internal prototype to avoid an error.
  16659. Use char because int might match the return type of a GCC
  16660. builtin and then its argument prototype would still apply. */
  16661. #ifdef __cplusplus
  16662. extern "C"
  16663. #endif
  16664. char dnet_ntoa ();
  16665. int
  16666. main ()
  16667. {
  16668. return dnet_ntoa ();
  16669. ;
  16670. return 0;
  16671. }
  16672. _ACEOF
  16673. if ac_fn_c_try_link "$LINENO"; then :
  16674. ac_cv_lib_dnet_dnet_ntoa=yes
  16675. else
  16676. ac_cv_lib_dnet_dnet_ntoa=no
  16677. fi
  16678. rm -f core conftest.err conftest.$ac_objext \
  16679. conftest$ac_exeext conftest.$ac_ext
  16680. LIBS=$ac_check_lib_save_LIBS
  16681. fi
  16682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16683. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16684. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16685. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16686. fi
  16687. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16689. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16690. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16691. $as_echo_n "(cached) " >&6
  16692. else
  16693. ac_check_lib_save_LIBS=$LIBS
  16694. LIBS="-ldnet_stub $LIBS"
  16695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16696. /* end confdefs.h. */
  16697. /* Override any GCC internal prototype to avoid an error.
  16698. Use char because int might match the return type of a GCC
  16699. builtin and then its argument prototype would still apply. */
  16700. #ifdef __cplusplus
  16701. extern "C"
  16702. #endif
  16703. char dnet_ntoa ();
  16704. int
  16705. main ()
  16706. {
  16707. return dnet_ntoa ();
  16708. ;
  16709. return 0;
  16710. }
  16711. _ACEOF
  16712. if ac_fn_c_try_link "$LINENO"; then :
  16713. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16714. else
  16715. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16716. fi
  16717. rm -f core conftest.err conftest.$ac_objext \
  16718. conftest$ac_exeext conftest.$ac_ext
  16719. LIBS=$ac_check_lib_save_LIBS
  16720. fi
  16721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16722. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16723. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16724. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16725. fi
  16726. fi
  16727. fi
  16728. rm -f core conftest.err conftest.$ac_objext \
  16729. conftest$ac_exeext conftest.$ac_ext
  16730. LIBS="$ac_xsave_LIBS"
  16731. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16732. # to get the SysV transport functions.
  16733. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16734. # needs -lnsl.
  16735. # The nsl library prevents programs from opening the X display
  16736. # on Irix 5.2, according to T.E. Dickey.
  16737. # The functions gethostbyname, getservbyname, and inet_addr are
  16738. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16739. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16740. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16741. fi
  16742. if test $ac_cv_func_gethostbyname = no; then
  16743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16744. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16745. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16746. $as_echo_n "(cached) " >&6
  16747. else
  16748. ac_check_lib_save_LIBS=$LIBS
  16749. LIBS="-lnsl $LIBS"
  16750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16751. /* end confdefs.h. */
  16752. /* Override any GCC internal prototype to avoid an error.
  16753. Use char because int might match the return type of a GCC
  16754. builtin and then its argument prototype would still apply. */
  16755. #ifdef __cplusplus
  16756. extern "C"
  16757. #endif
  16758. char gethostbyname ();
  16759. int
  16760. main ()
  16761. {
  16762. return gethostbyname ();
  16763. ;
  16764. return 0;
  16765. }
  16766. _ACEOF
  16767. if ac_fn_c_try_link "$LINENO"; then :
  16768. ac_cv_lib_nsl_gethostbyname=yes
  16769. else
  16770. ac_cv_lib_nsl_gethostbyname=no
  16771. fi
  16772. rm -f core conftest.err conftest.$ac_objext \
  16773. conftest$ac_exeext conftest.$ac_ext
  16774. LIBS=$ac_check_lib_save_LIBS
  16775. fi
  16776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16777. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16778. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16779. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16780. fi
  16781. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16783. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16784. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16785. $as_echo_n "(cached) " >&6
  16786. else
  16787. ac_check_lib_save_LIBS=$LIBS
  16788. LIBS="-lbsd $LIBS"
  16789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16790. /* end confdefs.h. */
  16791. /* Override any GCC internal prototype to avoid an error.
  16792. Use char because int might match the return type of a GCC
  16793. builtin and then its argument prototype would still apply. */
  16794. #ifdef __cplusplus
  16795. extern "C"
  16796. #endif
  16797. char gethostbyname ();
  16798. int
  16799. main ()
  16800. {
  16801. return gethostbyname ();
  16802. ;
  16803. return 0;
  16804. }
  16805. _ACEOF
  16806. if ac_fn_c_try_link "$LINENO"; then :
  16807. ac_cv_lib_bsd_gethostbyname=yes
  16808. else
  16809. ac_cv_lib_bsd_gethostbyname=no
  16810. fi
  16811. rm -f core conftest.err conftest.$ac_objext \
  16812. conftest$ac_exeext conftest.$ac_ext
  16813. LIBS=$ac_check_lib_save_LIBS
  16814. fi
  16815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16816. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16817. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16818. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16819. fi
  16820. fi
  16821. fi
  16822. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16823. # socket/setsockopt and other routines are undefined under SCO ODT
  16824. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16825. # on later versions), says Simon Leinen: it contains gethostby*
  16826. # variants that don't use the name server (or something). -lsocket
  16827. # must be given before -lnsl if both are needed. We assume that
  16828. # if connect needs -lnsl, so does gethostbyname.
  16829. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16830. if test "x$ac_cv_func_connect" = xyes; then :
  16831. fi
  16832. if test $ac_cv_func_connect = no; then
  16833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16834. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16835. if ${ac_cv_lib_socket_connect+:} false; then :
  16836. $as_echo_n "(cached) " >&6
  16837. else
  16838. ac_check_lib_save_LIBS=$LIBS
  16839. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16841. /* end confdefs.h. */
  16842. /* Override any GCC internal prototype to avoid an error.
  16843. Use char because int might match the return type of a GCC
  16844. builtin and then its argument prototype would still apply. */
  16845. #ifdef __cplusplus
  16846. extern "C"
  16847. #endif
  16848. char connect ();
  16849. int
  16850. main ()
  16851. {
  16852. return connect ();
  16853. ;
  16854. return 0;
  16855. }
  16856. _ACEOF
  16857. if ac_fn_c_try_link "$LINENO"; then :
  16858. ac_cv_lib_socket_connect=yes
  16859. else
  16860. ac_cv_lib_socket_connect=no
  16861. fi
  16862. rm -f core conftest.err conftest.$ac_objext \
  16863. conftest$ac_exeext conftest.$ac_ext
  16864. LIBS=$ac_check_lib_save_LIBS
  16865. fi
  16866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16867. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16868. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16869. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16870. fi
  16871. fi
  16872. # Guillermo Gomez says -lposix is necessary on A/UX.
  16873. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16874. if test "x$ac_cv_func_remove" = xyes; then :
  16875. fi
  16876. if test $ac_cv_func_remove = no; then
  16877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16878. $as_echo_n "checking for remove in -lposix... " >&6; }
  16879. if ${ac_cv_lib_posix_remove+:} false; then :
  16880. $as_echo_n "(cached) " >&6
  16881. else
  16882. ac_check_lib_save_LIBS=$LIBS
  16883. LIBS="-lposix $LIBS"
  16884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16885. /* end confdefs.h. */
  16886. /* Override any GCC internal prototype to avoid an error.
  16887. Use char because int might match the return type of a GCC
  16888. builtin and then its argument prototype would still apply. */
  16889. #ifdef __cplusplus
  16890. extern "C"
  16891. #endif
  16892. char remove ();
  16893. int
  16894. main ()
  16895. {
  16896. return remove ();
  16897. ;
  16898. return 0;
  16899. }
  16900. _ACEOF
  16901. if ac_fn_c_try_link "$LINENO"; then :
  16902. ac_cv_lib_posix_remove=yes
  16903. else
  16904. ac_cv_lib_posix_remove=no
  16905. fi
  16906. rm -f core conftest.err conftest.$ac_objext \
  16907. conftest$ac_exeext conftest.$ac_ext
  16908. LIBS=$ac_check_lib_save_LIBS
  16909. fi
  16910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16911. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16912. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16913. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16914. fi
  16915. fi
  16916. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16917. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16918. if test "x$ac_cv_func_shmat" = xyes; then :
  16919. fi
  16920. if test $ac_cv_func_shmat = no; then
  16921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16922. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16923. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16924. $as_echo_n "(cached) " >&6
  16925. else
  16926. ac_check_lib_save_LIBS=$LIBS
  16927. LIBS="-lipc $LIBS"
  16928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16929. /* end confdefs.h. */
  16930. /* Override any GCC internal prototype to avoid an error.
  16931. Use char because int might match the return type of a GCC
  16932. builtin and then its argument prototype would still apply. */
  16933. #ifdef __cplusplus
  16934. extern "C"
  16935. #endif
  16936. char shmat ();
  16937. int
  16938. main ()
  16939. {
  16940. return shmat ();
  16941. ;
  16942. return 0;
  16943. }
  16944. _ACEOF
  16945. if ac_fn_c_try_link "$LINENO"; then :
  16946. ac_cv_lib_ipc_shmat=yes
  16947. else
  16948. ac_cv_lib_ipc_shmat=no
  16949. fi
  16950. rm -f core conftest.err conftest.$ac_objext \
  16951. conftest$ac_exeext conftest.$ac_ext
  16952. LIBS=$ac_check_lib_save_LIBS
  16953. fi
  16954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16955. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16956. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16957. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16958. fi
  16959. fi
  16960. fi
  16961. # Check for libraries that X11R6 Xt/Xaw programs need.
  16962. ac_save_LDFLAGS=$LDFLAGS
  16963. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16964. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16965. # check for ICE first), but we must link in the order -lSM -lICE or
  16966. # we get undefined symbols. So assume we have SM if we have ICE.
  16967. # These have to be linked with before -lX11, unlike the other
  16968. # libraries we check for below, so use a different variable.
  16969. # John Interrante, Karl Berry
  16970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16971. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16972. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16973. $as_echo_n "(cached) " >&6
  16974. else
  16975. ac_check_lib_save_LIBS=$LIBS
  16976. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  16977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16978. /* end confdefs.h. */
  16979. /* Override any GCC internal prototype to avoid an error.
  16980. Use char because int might match the return type of a GCC
  16981. builtin and then its argument prototype would still apply. */
  16982. #ifdef __cplusplus
  16983. extern "C"
  16984. #endif
  16985. char IceConnectionNumber ();
  16986. int
  16987. main ()
  16988. {
  16989. return IceConnectionNumber ();
  16990. ;
  16991. return 0;
  16992. }
  16993. _ACEOF
  16994. if ac_fn_c_try_link "$LINENO"; then :
  16995. ac_cv_lib_ICE_IceConnectionNumber=yes
  16996. else
  16997. ac_cv_lib_ICE_IceConnectionNumber=no
  16998. fi
  16999. rm -f core conftest.err conftest.$ac_objext \
  17000. conftest$ac_exeext conftest.$ac_ext
  17001. LIBS=$ac_check_lib_save_LIBS
  17002. fi
  17003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17004. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17005. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17006. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17007. fi
  17008. LDFLAGS=$ac_save_LDFLAGS
  17009. fi
  17010. if test x$have_x = xyes; then
  17011. # Check whether --enable-x11-shared was given.
  17012. if test "${enable_x11_shared+set}" = set; then :
  17013. enableval=$enable_x11_shared;
  17014. else
  17015. enable_x11_shared=maybe
  17016. fi
  17017. case "$host" in
  17018. *-*-darwin*)
  17019. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17020. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17021. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17022. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17023. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17024. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17025. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17026. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17027. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17028. ;;
  17029. *-*-openbsd*)
  17030. x11_lib='libX11.so'
  17031. x11ext_lib='libXext.so'
  17032. xcursor_lib='libXcursor.so'
  17033. xinerama_lib='libXinerama.so'
  17034. xinput_lib='libXi.so'
  17035. xrandr_lib='libXrandr.so'
  17036. xrender_lib='libXrender.so'
  17037. xss_lib='libXss.so'
  17038. xvidmode_lib='libXxf86vm.so'
  17039. ;;
  17040. *)
  17041. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17042. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17043. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17044. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17045. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17046. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17047. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17048. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17049. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17050. ;;
  17051. esac
  17052. if test x$ac_cv_func_shmat != xyes; then
  17053. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17054. fi
  17055. CFLAGS="$CFLAGS $X_CFLAGS"
  17056. LDFLAGS="$LDFLAGS $X_LIBS"
  17057. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17058. #include <X11/Xproto.h>
  17059. "
  17060. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17061. have_xext_h_hdr=yes
  17062. else
  17063. have_xext_h_hdr=no
  17064. fi
  17065. if test x$have_xext_h_hdr != xyes; then
  17066. as_fn_error $? "
  17067. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17068. " "$LINENO" 5
  17069. fi
  17070. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17071. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17072. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17073. # Needed so SDL applications can include SDL_syswm.h
  17074. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17075. if test x$enable_x11_shared = xmaybe; then
  17076. enable_x11_shared=yes
  17077. fi
  17078. if test x$have_loadso != xyes && \
  17079. test x$enable_x11_shared = xyes; then
  17080. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17081. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17082. enable_x11_shared=no
  17083. fi
  17084. if test x$have_loadso = xyes && \
  17085. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17086. echo "-- dynamic libX11 -> $x11_lib"
  17087. echo "-- dynamic libX11ext -> $x11ext_lib"
  17088. cat >>confdefs.h <<_ACEOF
  17089. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17090. _ACEOF
  17091. cat >>confdefs.h <<_ACEOF
  17092. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17093. _ACEOF
  17094. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17095. else
  17096. enable_x11_shared=no
  17097. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17098. SUMMARY_video="${SUMMARY_video} x11"
  17099. fi
  17100. have_video=yes
  17101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17102. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17103. have_const_param_XextAddDisplay=no
  17104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17105. /* end confdefs.h. */
  17106. #include <X11/Xlib.h>
  17107. #include <X11/Xproto.h>
  17108. #include <X11/extensions/Xext.h>
  17109. #include <X11/extensions/extutil.h>
  17110. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17111. int
  17112. main ()
  17113. {
  17114. ;
  17115. return 0;
  17116. }
  17117. _ACEOF
  17118. if ac_fn_c_try_compile "$LINENO"; then :
  17119. have_const_param_XextAddDisplay=yes
  17120. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17121. fi
  17122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17124. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to _XData32" >&5
  17126. $as_echo_n "checking for const parameter to _XData32... " >&6; }
  17127. have_const_param_xdata32=no
  17128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17129. /* end confdefs.h. */
  17130. #include <X11/Xlibint.h>
  17131. extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
  17132. int
  17133. main ()
  17134. {
  17135. ;
  17136. return 0;
  17137. }
  17138. _ACEOF
  17139. if ac_fn_c_try_compile "$LINENO"; then :
  17140. have_const_param_xdata32=yes
  17141. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1" >>confdefs.h
  17142. fi
  17143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_xdata32" >&5
  17145. $as_echo "$have_const_param_xdata32" >&6; }
  17146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17147. $as_echo_n "checking for XGenericEvent... " >&6; }
  17148. have_XGenericEvent=no
  17149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17150. /* end confdefs.h. */
  17151. #include <X11/Xlib.h>
  17152. int
  17153. main ()
  17154. {
  17155. Display *display;
  17156. XEvent event;
  17157. XGenericEventCookie *cookie = &event.xcookie;
  17158. XNextEvent(display, &event);
  17159. XGetEventData(display, cookie);
  17160. XFreeEventData(display, cookie);
  17161. ;
  17162. return 0;
  17163. }
  17164. _ACEOF
  17165. if ac_fn_c_try_compile "$LINENO"; then :
  17166. have_XGenericEvent=yes
  17167. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17168. fi
  17169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17171. $as_echo "$have_XGenericEvent" >&6; }
  17172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17173. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17174. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17175. $as_echo_n "(cached) " >&6
  17176. else
  17177. ac_check_lib_save_LIBS=$LIBS
  17178. LIBS="-lX11 $LIBS"
  17179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17180. /* end confdefs.h. */
  17181. /* Override any GCC internal prototype to avoid an error.
  17182. Use char because int might match the return type of a GCC
  17183. builtin and then its argument prototype would still apply. */
  17184. #ifdef __cplusplus
  17185. extern "C"
  17186. #endif
  17187. char XkbKeycodeToKeysym ();
  17188. int
  17189. main ()
  17190. {
  17191. return XkbKeycodeToKeysym ();
  17192. ;
  17193. return 0;
  17194. }
  17195. _ACEOF
  17196. if ac_fn_c_try_link "$LINENO"; then :
  17197. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17198. else
  17199. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17200. fi
  17201. rm -f core conftest.err conftest.$ac_objext \
  17202. conftest$ac_exeext conftest.$ac_ext
  17203. LIBS=$ac_check_lib_save_LIBS
  17204. fi
  17205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17206. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17207. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17208. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17209. fi
  17210. # Check whether --enable-video-x11-xcursor was given.
  17211. if test "${enable_video_x11_xcursor+set}" = set; then :
  17212. enableval=$enable_video_x11_xcursor;
  17213. else
  17214. enable_video_x11_xcursor=yes
  17215. fi
  17216. if test x$enable_video_x11_xcursor = xyes; then
  17217. definitely_enable_video_x11_xcursor=no
  17218. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17219. "
  17220. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17221. have_xcursor_h_hdr=yes
  17222. else
  17223. have_xcursor_h_hdr=no
  17224. fi
  17225. if test x$have_xcursor_h_hdr = xyes; then
  17226. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17227. echo "-- dynamic libXcursor -> $xcursor_lib"
  17228. cat >>confdefs.h <<_ACEOF
  17229. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17230. _ACEOF
  17231. definitely_enable_video_x11_xcursor=yes
  17232. else
  17233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17234. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17235. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17236. $as_echo_n "(cached) " >&6
  17237. else
  17238. ac_check_lib_save_LIBS=$LIBS
  17239. LIBS="-lXcursor $LIBS"
  17240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17241. /* end confdefs.h. */
  17242. /* Override any GCC internal prototype to avoid an error.
  17243. Use char because int might match the return type of a GCC
  17244. builtin and then its argument prototype would still apply. */
  17245. #ifdef __cplusplus
  17246. extern "C"
  17247. #endif
  17248. char XcursorImageCreate ();
  17249. int
  17250. main ()
  17251. {
  17252. return XcursorImageCreate ();
  17253. ;
  17254. return 0;
  17255. }
  17256. _ACEOF
  17257. if ac_fn_c_try_link "$LINENO"; then :
  17258. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17259. else
  17260. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17261. fi
  17262. rm -f core conftest.err conftest.$ac_objext \
  17263. conftest$ac_exeext conftest.$ac_ext
  17264. LIBS=$ac_check_lib_save_LIBS
  17265. fi
  17266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17267. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17268. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17269. have_xcursor_lib=yes
  17270. fi
  17271. if test x$have_xcursor_lib = xyes ; then
  17272. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17273. definitely_enable_video_x11_xcursor=yes
  17274. fi
  17275. fi
  17276. fi
  17277. fi
  17278. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17279. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17280. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17281. fi
  17282. # Check whether --enable-video-x11-xinerama was given.
  17283. if test "${enable_video_x11_xinerama+set}" = set; then :
  17284. enableval=$enable_video_x11_xinerama;
  17285. else
  17286. enable_video_x11_xinerama=yes
  17287. fi
  17288. if test x$enable_video_x11_xinerama = xyes; then
  17289. definitely_enable_video_x11_xinerama=no
  17290. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17291. "
  17292. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17293. have_xinerama_h_hdr=yes
  17294. else
  17295. have_xinerama_h_hdr=no
  17296. fi
  17297. if test x$have_xinerama_h_hdr = xyes; then
  17298. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17299. echo "-- dynamic libXinerama -> $xinerama_lib"
  17300. cat >>confdefs.h <<_ACEOF
  17301. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17302. _ACEOF
  17303. definitely_enable_video_x11_xinerama=yes
  17304. else
  17305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17306. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17307. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17308. $as_echo_n "(cached) " >&6
  17309. else
  17310. ac_check_lib_save_LIBS=$LIBS
  17311. LIBS="-lXinerama $LIBS"
  17312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17313. /* end confdefs.h. */
  17314. /* Override any GCC internal prototype to avoid an error.
  17315. Use char because int might match the return type of a GCC
  17316. builtin and then its argument prototype would still apply. */
  17317. #ifdef __cplusplus
  17318. extern "C"
  17319. #endif
  17320. char XineramaQueryExtension ();
  17321. int
  17322. main ()
  17323. {
  17324. return XineramaQueryExtension ();
  17325. ;
  17326. return 0;
  17327. }
  17328. _ACEOF
  17329. if ac_fn_c_try_link "$LINENO"; then :
  17330. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17331. else
  17332. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17333. fi
  17334. rm -f core conftest.err conftest.$ac_objext \
  17335. conftest$ac_exeext conftest.$ac_ext
  17336. LIBS=$ac_check_lib_save_LIBS
  17337. fi
  17338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17339. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17340. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17341. have_xinerama_lib=yes
  17342. fi
  17343. if test x$have_xinerama_lib = xyes ; then
  17344. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17345. definitely_enable_video_x11_xinerama=yes
  17346. fi
  17347. fi
  17348. fi
  17349. fi
  17350. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17351. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17352. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17353. fi
  17354. # Check whether --enable-video-x11-xinput was given.
  17355. if test "${enable_video_x11_xinput+set}" = set; then :
  17356. enableval=$enable_video_x11_xinput;
  17357. else
  17358. enable_video_x11_xinput=yes
  17359. fi
  17360. if test x$enable_video_x11_xinput = xyes; then
  17361. definitely_enable_video_x11_xinput=no
  17362. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17363. "
  17364. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17365. have_xinput_h_hdr=yes
  17366. else
  17367. have_xinput_h_hdr=no
  17368. fi
  17369. if test x$have_xinput_h_hdr = xyes; then
  17370. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17371. echo "-- dynamic libXi -> $xinput_lib"
  17372. cat >>confdefs.h <<_ACEOF
  17373. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17374. _ACEOF
  17375. definitely_enable_video_x11_xinput=yes
  17376. else
  17377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17378. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17379. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17380. $as_echo_n "(cached) " >&6
  17381. else
  17382. ac_check_lib_save_LIBS=$LIBS
  17383. LIBS="-lXi $LIBS"
  17384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17385. /* end confdefs.h. */
  17386. /* Override any GCC internal prototype to avoid an error.
  17387. Use char because int might match the return type of a GCC
  17388. builtin and then its argument prototype would still apply. */
  17389. #ifdef __cplusplus
  17390. extern "C"
  17391. #endif
  17392. char XOpenDevice ();
  17393. int
  17394. main ()
  17395. {
  17396. return XOpenDevice ();
  17397. ;
  17398. return 0;
  17399. }
  17400. _ACEOF
  17401. if ac_fn_c_try_link "$LINENO"; then :
  17402. ac_cv_lib_Xi_XOpenDevice=yes
  17403. else
  17404. ac_cv_lib_Xi_XOpenDevice=no
  17405. fi
  17406. rm -f core conftest.err conftest.$ac_objext \
  17407. conftest$ac_exeext conftest.$ac_ext
  17408. LIBS=$ac_check_lib_save_LIBS
  17409. fi
  17410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17411. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17412. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17413. have_xinput_lib=yes
  17414. fi
  17415. if test x$have_xinput_lib = xyes ; then
  17416. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17417. definitely_enable_video_x11_xinput=yes
  17418. fi
  17419. fi
  17420. fi
  17421. fi
  17422. if test x$definitely_enable_video_x11_xinput = xyes; then
  17423. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17424. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17426. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17427. have_xinput2_multitouch=no
  17428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17429. /* end confdefs.h. */
  17430. #include <X11/Xlib.h>
  17431. #include <X11/Xproto.h>
  17432. #include <X11/extensions/XInput2.h>
  17433. int
  17434. main ()
  17435. {
  17436. int event_type = XI_TouchBegin;
  17437. XITouchClassInfo *t;
  17438. ;
  17439. return 0;
  17440. }
  17441. _ACEOF
  17442. if ac_fn_c_try_compile "$LINENO"; then :
  17443. have_xinput2_multitouch=yes
  17444. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17445. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17446. fi
  17447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17449. $as_echo "$have_xinput2_multitouch" >&6; }
  17450. fi
  17451. # Check whether --enable-video-x11-xrandr was given.
  17452. if test "${enable_video_x11_xrandr+set}" = set; then :
  17453. enableval=$enable_video_x11_xrandr;
  17454. else
  17455. enable_video_x11_xrandr=yes
  17456. fi
  17457. if test x$enable_video_x11_xrandr = xyes; then
  17458. definitely_enable_video_x11_xrandr=no
  17459. have_xrandr_h_hdr=no
  17460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17461. /* end confdefs.h. */
  17462. #include <X11/Xlib.h>
  17463. #include <X11/extensions/Xrandr.h>
  17464. int
  17465. main ()
  17466. {
  17467. XRRScreenResources *res = NULL;
  17468. ;
  17469. return 0;
  17470. }
  17471. _ACEOF
  17472. if ac_fn_c_try_compile "$LINENO"; then :
  17473. have_xrandr_h_hdr=yes
  17474. fi
  17475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17476. if test x$have_xrandr_h_hdr = xyes; then
  17477. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17478. echo "-- dynamic libXrandr -> $xrandr_lib"
  17479. cat >>confdefs.h <<_ACEOF
  17480. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17481. _ACEOF
  17482. definitely_enable_video_x11_xrandr=yes
  17483. else
  17484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17485. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17486. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17487. $as_echo_n "(cached) " >&6
  17488. else
  17489. ac_check_lib_save_LIBS=$LIBS
  17490. LIBS="-lXrandr $LIBS"
  17491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17492. /* end confdefs.h. */
  17493. /* Override any GCC internal prototype to avoid an error.
  17494. Use char because int might match the return type of a GCC
  17495. builtin and then its argument prototype would still apply. */
  17496. #ifdef __cplusplus
  17497. extern "C"
  17498. #endif
  17499. char XRRQueryExtension ();
  17500. int
  17501. main ()
  17502. {
  17503. return XRRQueryExtension ();
  17504. ;
  17505. return 0;
  17506. }
  17507. _ACEOF
  17508. if ac_fn_c_try_link "$LINENO"; then :
  17509. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17510. else
  17511. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17512. fi
  17513. rm -f core conftest.err conftest.$ac_objext \
  17514. conftest$ac_exeext conftest.$ac_ext
  17515. LIBS=$ac_check_lib_save_LIBS
  17516. fi
  17517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17518. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17519. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17520. have_xrandr_lib=yes
  17521. fi
  17522. if test x$have_xrandr_lib = xyes ; then
  17523. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17524. definitely_enable_video_x11_xrandr=yes
  17525. fi
  17526. fi
  17527. fi
  17528. fi
  17529. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17530. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17531. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17532. fi
  17533. # Check whether --enable-video-x11-scrnsaver was given.
  17534. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17535. enableval=$enable_video_x11_scrnsaver;
  17536. else
  17537. enable_video_x11_scrnsaver=yes
  17538. fi
  17539. if test x$enable_video_x11_scrnsaver = xyes; then
  17540. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17541. "
  17542. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17543. have_scrnsaver_h_hdr=yes
  17544. else
  17545. have_scrnsaver_h_hdr=no
  17546. fi
  17547. if test x$have_scrnsaver_h_hdr = xyes; then
  17548. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17549. echo "-- dynamic libXss -> $xss_lib"
  17550. cat >>confdefs.h <<_ACEOF
  17551. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17552. _ACEOF
  17553. definitely_enable_video_x11_scrnsaver=yes
  17554. else
  17555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17556. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17557. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17558. $as_echo_n "(cached) " >&6
  17559. else
  17560. ac_check_lib_save_LIBS=$LIBS
  17561. LIBS="-lXss $LIBS"
  17562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17563. /* end confdefs.h. */
  17564. /* Override any GCC internal prototype to avoid an error.
  17565. Use char because int might match the return type of a GCC
  17566. builtin and then its argument prototype would still apply. */
  17567. #ifdef __cplusplus
  17568. extern "C"
  17569. #endif
  17570. char XScreenSaverSuspend ();
  17571. int
  17572. main ()
  17573. {
  17574. return XScreenSaverSuspend ();
  17575. ;
  17576. return 0;
  17577. }
  17578. _ACEOF
  17579. if ac_fn_c_try_link "$LINENO"; then :
  17580. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17581. else
  17582. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17583. fi
  17584. rm -f core conftest.err conftest.$ac_objext \
  17585. conftest$ac_exeext conftest.$ac_ext
  17586. LIBS=$ac_check_lib_save_LIBS
  17587. fi
  17588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17589. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17590. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17591. have_xss_lib=yes
  17592. fi
  17593. if test x$have_xss_lib = xyes ; then
  17594. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17595. definitely_enable_video_x11_scrnsaver=yes
  17596. fi
  17597. fi
  17598. fi
  17599. fi
  17600. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17601. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17602. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17603. fi
  17604. # Check whether --enable-video-x11-xshape was given.
  17605. if test "${enable_video_x11_xshape+set}" = set; then :
  17606. enableval=$enable_video_x11_xshape;
  17607. else
  17608. enable_video_x11_xshape=yes
  17609. fi
  17610. if test x$enable_video_x11_xshape = xyes; then
  17611. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17612. "
  17613. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17614. have_shape_h_hdr=yes
  17615. else
  17616. have_shape_h_hdr=no
  17617. fi
  17618. if test x$have_shape_h_hdr = xyes; then
  17619. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17620. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17621. fi
  17622. fi
  17623. # Check whether --enable-video-x11-vm was given.
  17624. if test "${enable_video_x11_vm+set}" = set; then :
  17625. enableval=$enable_video_x11_vm;
  17626. else
  17627. enable_video_x11_vm=yes
  17628. fi
  17629. if test x$enable_video_x11_vm = xyes; then
  17630. definitely_enable_video_x11_vm=no
  17631. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17632. "
  17633. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17634. have_vm_h_hdr=yes
  17635. else
  17636. have_vm_h_hdr=no
  17637. fi
  17638. if test x$have_vm_h_hdr = xyes; then
  17639. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17640. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17641. cat >>confdefs.h <<_ACEOF
  17642. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17643. _ACEOF
  17644. definitely_enable_video_x11_vm=yes
  17645. else
  17646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17647. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17648. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17649. $as_echo_n "(cached) " >&6
  17650. else
  17651. ac_check_lib_save_LIBS=$LIBS
  17652. LIBS="-lXxf86vm $LIBS"
  17653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17654. /* end confdefs.h. */
  17655. /* Override any GCC internal prototype to avoid an error.
  17656. Use char because int might match the return type of a GCC
  17657. builtin and then its argument prototype would still apply. */
  17658. #ifdef __cplusplus
  17659. extern "C"
  17660. #endif
  17661. char XF86VidModeQueryVersion ();
  17662. int
  17663. main ()
  17664. {
  17665. return XF86VidModeQueryVersion ();
  17666. ;
  17667. return 0;
  17668. }
  17669. _ACEOF
  17670. if ac_fn_c_try_link "$LINENO"; then :
  17671. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17672. else
  17673. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17674. fi
  17675. rm -f core conftest.err conftest.$ac_objext \
  17676. conftest$ac_exeext conftest.$ac_ext
  17677. LIBS=$ac_check_lib_save_LIBS
  17678. fi
  17679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17680. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17681. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17682. have_vm_lib=yes
  17683. fi
  17684. if test x$have_vm_lib = xyes ; then
  17685. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17686. definitely_enable_video_x11_vm=yes
  17687. fi
  17688. fi
  17689. fi
  17690. fi
  17691. if test x$definitely_enable_video_x11_vm = xyes; then
  17692. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17693. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  17694. fi
  17695. fi
  17696. fi
  17697. }
  17698. CheckVivanteVideo()
  17699. {
  17700. # Check whether --enable-video-vivante was given.
  17701. if test "${enable_video_vivante+set}" = set; then :
  17702. enableval=$enable_video_vivante;
  17703. else
  17704. enable_video_vivante=yes
  17705. fi
  17706. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  17707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  17708. $as_echo_n "checking for Vivante VDK API... " >&6; }
  17709. have_vivante_vdk=no
  17710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17711. /* end confdefs.h. */
  17712. #define LINUX
  17713. #define EGL_API_FB
  17714. #include <gc_vdk.h>
  17715. int
  17716. main ()
  17717. {
  17718. ;
  17719. return 0;
  17720. }
  17721. _ACEOF
  17722. if ac_fn_c_try_compile "$LINENO"; then :
  17723. have_vivante_vdk=yes
  17724. fi
  17725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  17727. $as_echo "$have_vivante_vdk" >&6; }
  17728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  17729. $as_echo_n "checking for Vivante FB API... " >&6; }
  17730. have_vivante_egl=no
  17731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17732. /* end confdefs.h. */
  17733. #define LINUX
  17734. #define EGL_API_FB
  17735. #include <EGL/eglvivante.h>
  17736. int
  17737. main ()
  17738. {
  17739. ;
  17740. return 0;
  17741. }
  17742. _ACEOF
  17743. if ac_fn_c_try_compile "$LINENO"; then :
  17744. have_vivante_egl=yes
  17745. fi
  17746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  17748. $as_echo "$have_vivante_egl" >&6; }
  17749. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  17750. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  17751. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  17752. if test x$have_vivante_vdk = xyes; then
  17753. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  17754. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  17755. fi
  17756. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  17757. SUMMARY_video="${SUMMARY_video} vivante"
  17758. have_video=yes
  17759. fi
  17760. fi
  17761. }
  17762. CheckHaikuVideo()
  17763. {
  17764. if test x$enable_video = xyes; then
  17765. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17766. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17767. have_video=yes
  17768. SUMMARY_video="${SUMMARY_video} haiku"
  17769. fi
  17770. }
  17771. CheckCOCOA()
  17772. {
  17773. # Check whether --enable-video-cocoa was given.
  17774. if test "${enable_video_cocoa+set}" = set; then :
  17775. enableval=$enable_video_cocoa;
  17776. else
  17777. enable_video_cocoa=yes
  17778. fi
  17779. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17780. save_CFLAGS="$CFLAGS"
  17781. CFLAGS="$CFLAGS -x objective-c"
  17782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17783. $as_echo_n "checking for Cocoa framework... " >&6; }
  17784. have_cocoa=no
  17785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17786. /* end confdefs.h. */
  17787. #import <Cocoa/Cocoa.h>
  17788. int
  17789. main ()
  17790. {
  17791. ;
  17792. return 0;
  17793. }
  17794. _ACEOF
  17795. if ac_fn_c_try_compile "$LINENO"; then :
  17796. have_cocoa=yes
  17797. fi
  17798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17800. $as_echo "$have_cocoa" >&6; }
  17801. CFLAGS="$save_CFLAGS"
  17802. if test x$have_cocoa = xyes; then
  17803. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17804. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17805. SUMMARY_video="${SUMMARY_video} cocoa"
  17806. have_video=yes
  17807. fi
  17808. fi
  17809. }
  17810. CheckDirectFB()
  17811. {
  17812. # Check whether --enable-video-directfb was given.
  17813. if test "${enable_video_directfb+set}" = set; then :
  17814. enableval=$enable_video_directfb;
  17815. else
  17816. enable_video_directfb=no
  17817. fi
  17818. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17819. video_directfb=no
  17820. DIRECTFB_REQUIRED_VERSION=1.0.0
  17821. for ac_prog in directfb-config
  17822. do
  17823. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17824. set dummy $ac_prog; ac_word=$2
  17825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17826. $as_echo_n "checking for $ac_word... " >&6; }
  17827. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17828. $as_echo_n "(cached) " >&6
  17829. else
  17830. case $DIRECTFBCONFIG in
  17831. [\\/]* | ?:[\\/]*)
  17832. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17833. ;;
  17834. *)
  17835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17836. as_dummy="$prefix/bin:$PATH"
  17837. for as_dir in $as_dummy
  17838. do
  17839. IFS=$as_save_IFS
  17840. test -z "$as_dir" && as_dir=.
  17841. for ac_exec_ext in '' $ac_executable_extensions; do
  17842. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17843. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17845. break 2
  17846. fi
  17847. done
  17848. done
  17849. IFS=$as_save_IFS
  17850. ;;
  17851. esac
  17852. fi
  17853. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17854. if test -n "$DIRECTFBCONFIG"; then
  17855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17856. $as_echo "$DIRECTFBCONFIG" >&6; }
  17857. else
  17858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17859. $as_echo "no" >&6; }
  17860. fi
  17861. test -n "$DIRECTFBCONFIG" && break
  17862. done
  17863. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17864. if test x$DIRECTFBCONFIG = xno; then
  17865. # Extract the first word of "pkg-config", so it can be a program name with args.
  17866. set dummy pkg-config; ac_word=$2
  17867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17868. $as_echo_n "checking for $ac_word... " >&6; }
  17869. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17870. $as_echo_n "(cached) " >&6
  17871. else
  17872. case $PKG_CONFIG in
  17873. [\\/]* | ?:[\\/]*)
  17874. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17875. ;;
  17876. *)
  17877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17878. for as_dir in $PATH
  17879. do
  17880. IFS=$as_save_IFS
  17881. test -z "$as_dir" && as_dir=.
  17882. for ac_exec_ext in '' $ac_executable_extensions; do
  17883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17884. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17886. break 2
  17887. fi
  17888. done
  17889. done
  17890. IFS=$as_save_IFS
  17891. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17892. ;;
  17893. esac
  17894. fi
  17895. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17896. if test -n "$PKG_CONFIG"; then
  17897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17898. $as_echo "$PKG_CONFIG" >&6; }
  17899. else
  17900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17901. $as_echo "no" >&6; }
  17902. fi
  17903. if test x$PKG_CONFIG != xno; then
  17904. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17905. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17906. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17907. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17908. video_directfb=yes
  17909. fi
  17910. fi
  17911. else
  17912. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17913. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17914. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17915. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17916. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17917. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17918. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17919. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17920. video_directfb=yes
  17921. fi
  17922. fi
  17923. if test x$video_directfb = xyes; then
  17924. # SuSE 11.1 installs directfb-config without directfb-devel
  17925. save_CPPFLAGS="$CPPFLAGS"
  17926. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17927. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17928. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17929. have_directfb_hdr=yes
  17930. else
  17931. have_directfb_hdr=no
  17932. fi
  17933. CPPFLAGS="$save_CPPFLAGS"
  17934. video_directfb=$have_directfb_hdr
  17935. fi
  17936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17937. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17939. $as_echo "$video_directfb" >&6; }
  17940. if test x$video_directfb = xyes; then
  17941. # Check whether --enable-directfb-shared was given.
  17942. if test "${enable_directfb_shared+set}" = set; then :
  17943. enableval=$enable_directfb_shared;
  17944. else
  17945. enable_directfb_shared=yes
  17946. fi
  17947. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17948. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17949. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17950. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17952. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17953. directfb_shared=no
  17954. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17955. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17957. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17958. if test x$have_loadso != xyes && \
  17959. test x$enable_directfb_shared = xyes; then
  17960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17961. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17962. fi
  17963. if test x$have_loadso = xyes && \
  17964. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17965. directfb_shared=yes
  17966. echo "-- $directfb_lib_spec -> $directfb_lib"
  17967. cat >>confdefs.h <<_ACEOF
  17968. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17969. _ACEOF
  17970. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  17971. else
  17972. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17973. SUMMARY_video="${SUMMARY_video} directfb"
  17974. fi
  17975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17976. $as_echo "$directfb_shared" >&6; }
  17977. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  17978. have_video=yes
  17979. fi
  17980. fi
  17981. }
  17982. CheckFusionSound()
  17983. {
  17984. # Check whether --enable-fusionsound was given.
  17985. if test "${enable_fusionsound+set}" = set; then :
  17986. enableval=$enable_fusionsound;
  17987. else
  17988. enable_fusionsound=no
  17989. fi
  17990. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17991. fusionsound=no
  17992. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  17993. # Extract the first word of "pkg-config", so it can be a program name with args.
  17994. set dummy pkg-config; ac_word=$2
  17995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17996. $as_echo_n "checking for $ac_word... " >&6; }
  17997. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17998. $as_echo_n "(cached) " >&6
  17999. else
  18000. case $PKG_CONFIG in
  18001. [\\/]* | ?:[\\/]*)
  18002. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18003. ;;
  18004. *)
  18005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18006. for as_dir in $PATH
  18007. do
  18008. IFS=$as_save_IFS
  18009. test -z "$as_dir" && as_dir=.
  18010. for ac_exec_ext in '' $ac_executable_extensions; do
  18011. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18012. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18013. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18014. break 2
  18015. fi
  18016. done
  18017. done
  18018. IFS=$as_save_IFS
  18019. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18020. ;;
  18021. esac
  18022. fi
  18023. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18024. if test -n "$PKG_CONFIG"; then
  18025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18026. $as_echo "$PKG_CONFIG" >&6; }
  18027. else
  18028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18029. $as_echo "no" >&6; }
  18030. fi
  18031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  18032. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  18033. if test x$PKG_CONFIG != xno; then
  18034. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  18035. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  18036. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  18037. fusionsound=yes
  18038. fi
  18039. fi
  18040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  18041. $as_echo "$fusionsound" >&6; }
  18042. if test x$fusionsound = xyes; then
  18043. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  18044. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  18045. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  18046. # Check whether --enable-fusionsound-shared was given.
  18047. if test "${enable_fusionsound_shared+set}" = set; then :
  18048. enableval=$enable_fusionsound_shared;
  18049. else
  18050. enable_fusionsound_shared=yes
  18051. fi
  18052. fusionsound_shared=no
  18053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  18054. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  18055. if test x$have_loadso != xyes && \
  18056. test x$enable_fusionsound_shared = xyes; then
  18057. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  18058. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  18059. fi
  18060. if test x$have_loadso = xyes && \
  18061. test x$enable_fusionsound_shared = xyes; then
  18062. cat >>confdefs.h <<_ACEOF
  18063. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  18064. _ACEOF
  18065. fusionsound_shared=yes
  18066. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  18067. else
  18068. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  18069. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  18070. fi
  18071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  18072. $as_echo "$fusionsound_shared" >&6; }
  18073. have_audio=yes
  18074. fi
  18075. fi
  18076. }
  18077. CheckDummyVideo()
  18078. {
  18079. # Check whether --enable-video-dummy was given.
  18080. if test "${enable_video_dummy+set}" = set; then :
  18081. enableval=$enable_video_dummy;
  18082. else
  18083. enable_video_dummy=yes
  18084. fi
  18085. if test x$enable_video_dummy = xyes; then
  18086. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18087. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18088. have_video=yes
  18089. SUMMARY_video="${SUMMARY_video} dummy"
  18090. fi
  18091. }
  18092. # Check whether --enable-video-opengl was given.
  18093. if test "${enable_video_opengl+set}" = set; then :
  18094. enableval=$enable_video_opengl;
  18095. else
  18096. enable_video_opengl=yes
  18097. fi
  18098. CheckOpenGLX11()
  18099. {
  18100. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18102. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18103. video_opengl=no
  18104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18105. /* end confdefs.h. */
  18106. #include <GL/gl.h>
  18107. #include <GL/glx.h>
  18108. int
  18109. main ()
  18110. {
  18111. ;
  18112. return 0;
  18113. }
  18114. _ACEOF
  18115. if ac_fn_c_try_compile "$LINENO"; then :
  18116. video_opengl=yes
  18117. fi
  18118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18120. $as_echo "$video_opengl" >&6; }
  18121. if test x$video_opengl = xyes; then
  18122. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18123. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18124. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18125. SUMMARY_video="${SUMMARY_video} opengl"
  18126. fi
  18127. fi
  18128. }
  18129. # Check whether --enable-video-opengles was given.
  18130. if test "${enable_video_opengles+set}" = set; then :
  18131. enableval=$enable_video_opengles;
  18132. else
  18133. enable_video_opengles=yes
  18134. fi
  18135. # Check whether --enable-video-opengles1 was given.
  18136. if test "${enable_video_opengles1+set}" = set; then :
  18137. enableval=$enable_video_opengles1;
  18138. else
  18139. enable_video_opengles1=yes
  18140. fi
  18141. # Check whether --enable-video-opengles2 was given.
  18142. if test "${enable_video_opengles2+set}" = set; then :
  18143. enableval=$enable_video_opengles2;
  18144. else
  18145. enable_video_opengles2=yes
  18146. fi
  18147. CheckOpenGLESX11()
  18148. {
  18149. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18151. $as_echo_n "checking for EGL support... " >&6; }
  18152. video_opengl_egl=no
  18153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18154. /* end confdefs.h. */
  18155. #define LINUX
  18156. #define EGL_API_FB
  18157. #include <EGL/egl.h>
  18158. #include <EGL/eglext.h>
  18159. int
  18160. main ()
  18161. {
  18162. ;
  18163. return 0;
  18164. }
  18165. _ACEOF
  18166. if ac_fn_c_try_compile "$LINENO"; then :
  18167. video_opengl_egl=yes
  18168. fi
  18169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18171. $as_echo "$video_opengl_egl" >&6; }
  18172. if test x$video_opengl_egl = xyes; then
  18173. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18174. fi
  18175. if test x$enable_video_opengles1 = xyes; then
  18176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18177. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18178. video_opengles_v1=no
  18179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18180. /* end confdefs.h. */
  18181. #include <GLES/gl.h>
  18182. #include <GLES/glext.h>
  18183. int
  18184. main ()
  18185. {
  18186. ;
  18187. return 0;
  18188. }
  18189. _ACEOF
  18190. if ac_fn_c_try_compile "$LINENO"; then :
  18191. video_opengles_v1=yes
  18192. fi
  18193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18195. $as_echo "$video_opengles_v1" >&6; }
  18196. if test x$video_opengles_v1 = xyes; then
  18197. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18198. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18199. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18200. fi
  18201. fi
  18202. if test x$enable_video_opengles2 = xyes; then
  18203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18204. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18205. video_opengles_v2=no
  18206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18207. /* end confdefs.h. */
  18208. #include <GLES2/gl2.h>
  18209. #include <GLES2/gl2ext.h>
  18210. int
  18211. main ()
  18212. {
  18213. ;
  18214. return 0;
  18215. }
  18216. _ACEOF
  18217. if ac_fn_c_try_compile "$LINENO"; then :
  18218. video_opengles_v2=yes
  18219. fi
  18220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18222. $as_echo "$video_opengles_v2" >&6; }
  18223. if test x$video_opengles_v2 = xyes; then
  18224. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18225. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18226. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18227. fi
  18228. fi
  18229. fi
  18230. }
  18231. CheckWINDOWSGL()
  18232. {
  18233. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18234. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18235. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18236. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18237. SUMMARY_video="${SUMMARY_video} opengl"
  18238. fi
  18239. }
  18240. CheckWINDOWSGLES()
  18241. {
  18242. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18244. $as_echo_n "checking for EGL support... " >&6; }
  18245. video_opengl_egl=no
  18246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18247. /* end confdefs.h. */
  18248. #include <EGL/egl.h>
  18249. int
  18250. main ()
  18251. {
  18252. ;
  18253. return 0;
  18254. }
  18255. _ACEOF
  18256. if ac_fn_c_try_compile "$LINENO"; then :
  18257. video_opengl_egl=yes
  18258. fi
  18259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18261. $as_echo "$video_opengl_egl" >&6; }
  18262. if test x$video_opengl_egl = xyes; then
  18263. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18264. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18265. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18266. fi
  18267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18268. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18269. video_opengles_v2=no
  18270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18271. /* end confdefs.h. */
  18272. #include <GLES2/gl2.h>
  18273. #include <GLES2/gl2ext.h>
  18274. int
  18275. main ()
  18276. {
  18277. ;
  18278. return 0;
  18279. }
  18280. _ACEOF
  18281. if ac_fn_c_try_compile "$LINENO"; then :
  18282. video_opengles_v2=yes
  18283. fi
  18284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18286. $as_echo "$video_opengles_v2" >&6; }
  18287. if test x$video_opengles_v2 = xyes; then
  18288. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18289. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18290. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18291. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18292. fi
  18293. fi
  18294. }
  18295. CheckHaikuGL()
  18296. {
  18297. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18298. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18299. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18300. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18301. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18302. SUMMARY_video="${SUMMARY_video} opengl"
  18303. fi
  18304. }
  18305. CheckMacGL()
  18306. {
  18307. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18308. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18309. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18310. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18311. SUMMARY_video="${SUMMARY_video} opengl"
  18312. fi
  18313. }
  18314. CheckEmscriptenGLES()
  18315. {
  18316. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18318. $as_echo_n "checking for EGL support... " >&6; }
  18319. video_opengl_egl=no
  18320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18321. /* end confdefs.h. */
  18322. #include <EGL/egl.h>
  18323. int
  18324. main ()
  18325. {
  18326. ;
  18327. return 0;
  18328. }
  18329. _ACEOF
  18330. if ac_fn_c_try_compile "$LINENO"; then :
  18331. video_opengl_egl=yes
  18332. fi
  18333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18335. $as_echo "$video_opengl_egl" >&6; }
  18336. if test x$video_opengl_egl = xyes; then
  18337. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18338. fi
  18339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18340. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18341. video_opengles_v2=no
  18342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18343. /* end confdefs.h. */
  18344. #include <GLES2/gl2.h>
  18345. #include <GLES2/gl2ext.h>
  18346. int
  18347. main ()
  18348. {
  18349. ;
  18350. return 0;
  18351. }
  18352. _ACEOF
  18353. if ac_fn_c_try_compile "$LINENO"; then :
  18354. video_opengles_v2=yes
  18355. fi
  18356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18358. $as_echo "$video_opengles_v2" >&6; }
  18359. if test x$video_opengles_v2 = xyes; then
  18360. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18361. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18362. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18363. fi
  18364. fi
  18365. }
  18366. CheckInputEvents()
  18367. {
  18368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18369. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18370. use_input_events=no
  18371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18372. /* end confdefs.h. */
  18373. #include <linux/input.h>
  18374. int
  18375. main ()
  18376. {
  18377. #ifndef EVIOCGNAME
  18378. #error EVIOCGNAME() ioctl not available
  18379. #endif
  18380. ;
  18381. return 0;
  18382. }
  18383. _ACEOF
  18384. if ac_fn_c_try_compile "$LINENO"; then :
  18385. use_input_events=yes
  18386. fi
  18387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18389. $as_echo "$use_input_events" >&6; }
  18390. if test x$use_input_events = xyes; then
  18391. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18392. SUMMARY_input="${SUMMARY_input} linuxev"
  18393. fi
  18394. }
  18395. CheckInputKD()
  18396. {
  18397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18398. $as_echo_n "checking for Linux kd.h... " >&6; }
  18399. use_input_kd=no
  18400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18401. /* end confdefs.h. */
  18402. #include <linux/kd.h>
  18403. #include <linux/keyboard.h>
  18404. int
  18405. main ()
  18406. {
  18407. struct kbentry kbe;
  18408. kbe.kb_table = KG_CTRL;
  18409. ioctl(0, KDGKBENT, &kbe);
  18410. ;
  18411. return 0;
  18412. }
  18413. _ACEOF
  18414. if ac_fn_c_try_compile "$LINENO"; then :
  18415. use_input_kd=yes
  18416. fi
  18417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18419. $as_echo "$use_input_kd" >&6; }
  18420. if test x$use_input_kd = xyes; then
  18421. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18422. SUMMARY_input="${SUMMARY_input} linuxkd"
  18423. fi
  18424. }
  18425. CheckLibUDev()
  18426. {
  18427. # Check whether --enable-libudev was given.
  18428. if test "${enable_libudev+set}" = set; then :
  18429. enableval=$enable_libudev;
  18430. else
  18431. enable_libudev=yes
  18432. fi
  18433. if test x$enable_libudev = xyes; then
  18434. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18435. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18436. have_libudev_h_hdr=yes
  18437. else
  18438. have_libudev_h_hdr=no
  18439. fi
  18440. if test x$have_libudev_h_hdr = xyes; then
  18441. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18442. fi
  18443. fi
  18444. }
  18445. CheckDBus()
  18446. {
  18447. # Check whether --enable-dbus was given.
  18448. if test "${enable_dbus+set}" = set; then :
  18449. enableval=$enable_dbus;
  18450. else
  18451. enable_dbus=yes
  18452. fi
  18453. if test x$enable_dbus = xyes; then
  18454. # Extract the first word of "pkg-config", so it can be a program name with args.
  18455. set dummy pkg-config; ac_word=$2
  18456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18457. $as_echo_n "checking for $ac_word... " >&6; }
  18458. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18459. $as_echo_n "(cached) " >&6
  18460. else
  18461. case $PKG_CONFIG in
  18462. [\\/]* | ?:[\\/]*)
  18463. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18464. ;;
  18465. *)
  18466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18467. for as_dir in $PATH
  18468. do
  18469. IFS=$as_save_IFS
  18470. test -z "$as_dir" && as_dir=.
  18471. for ac_exec_ext in '' $ac_executable_extensions; do
  18472. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18473. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18474. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18475. break 2
  18476. fi
  18477. done
  18478. done
  18479. IFS=$as_save_IFS
  18480. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18481. ;;
  18482. esac
  18483. fi
  18484. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18485. if test -n "$PKG_CONFIG"; then
  18486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18487. $as_echo "$PKG_CONFIG" >&6; }
  18488. else
  18489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18490. $as_echo "no" >&6; }
  18491. fi
  18492. if test x$PKG_CONFIG != xno; then
  18493. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18494. save_CFLAGS="$CFLAGS"
  18495. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18496. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18497. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18498. have_dbus_dbus_h_hdr=yes
  18499. else
  18500. have_dbus_dbus_h_hdr=no
  18501. fi
  18502. CFLAGS="$save_CFLAGS"
  18503. if test x$have_dbus_dbus_h_hdr = xyes; then
  18504. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18505. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18506. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18507. fi
  18508. fi
  18509. fi
  18510. }
  18511. CheckIBus()
  18512. {
  18513. # Check whether --enable-ibus was given.
  18514. if test "${enable_ibus+set}" = set; then :
  18515. enableval=$enable_ibus;
  18516. else
  18517. enable_ibus=yes
  18518. fi
  18519. if test x$enable_ibus = xyes; then
  18520. # Extract the first word of "pkg-config", so it can be a program name with args.
  18521. set dummy pkg-config; ac_word=$2
  18522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18523. $as_echo_n "checking for $ac_word... " >&6; }
  18524. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18525. $as_echo_n "(cached) " >&6
  18526. else
  18527. case $PKG_CONFIG in
  18528. [\\/]* | ?:[\\/]*)
  18529. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18530. ;;
  18531. *)
  18532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18533. for as_dir in $PATH
  18534. do
  18535. IFS=$as_save_IFS
  18536. test -z "$as_dir" && as_dir=.
  18537. for ac_exec_ext in '' $ac_executable_extensions; do
  18538. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18539. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18541. break 2
  18542. fi
  18543. done
  18544. done
  18545. IFS=$as_save_IFS
  18546. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18547. ;;
  18548. esac
  18549. fi
  18550. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18551. if test -n "$PKG_CONFIG"; then
  18552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18553. $as_echo "$PKG_CONFIG" >&6; }
  18554. else
  18555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18556. $as_echo "no" >&6; }
  18557. fi
  18558. if test x$PKG_CONFIG != xno; then
  18559. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  18560. save_CFLAGS="$CFLAGS"
  18561. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  18562. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  18563. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  18564. have_ibus_ibus_h_hdr=yes
  18565. else
  18566. have_ibus_ibus_h_hdr=no
  18567. fi
  18568. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  18569. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  18570. have_inotify_inotify_h_hdr=yes
  18571. else
  18572. have_inotify_inotify_h_hdr=no
  18573. fi
  18574. CFLAGS="$save_CFLAGS"
  18575. if test x$have_ibus_ibus_h_hdr = xyes; then
  18576. if test x$enable_dbus != xyes; then
  18577. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  18578. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  18579. have_ibus_ibus_h_hdr=no
  18580. elif test x$have_inotify_inotify_h_hdr != xyes; then
  18581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  18582. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  18583. have_ibus_ibus_h_hdr=no
  18584. else
  18585. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  18586. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  18587. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  18588. fi
  18589. fi
  18590. fi
  18591. fi
  18592. }
  18593. CheckTslib()
  18594. {
  18595. # Check whether --enable-input-tslib was given.
  18596. if test "${enable_input_tslib+set}" = set; then :
  18597. enableval=$enable_input_tslib;
  18598. else
  18599. enable_input_tslib=yes
  18600. fi
  18601. if test x$enable_input_tslib = xyes; then
  18602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18603. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18604. enable_input_tslib=no
  18605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18606. /* end confdefs.h. */
  18607. #include "tslib.h"
  18608. int
  18609. main ()
  18610. {
  18611. ;
  18612. return 0;
  18613. }
  18614. _ACEOF
  18615. if ac_fn_c_try_compile "$LINENO"; then :
  18616. enable_input_tslib=yes
  18617. fi
  18618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18620. $as_echo "$enable_input_tslib" >&6; }
  18621. if test x$enable_input_tslib = xyes; then
  18622. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18623. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18624. SUMMARY_input="${SUMMARY_input} ts"
  18625. fi
  18626. fi
  18627. }
  18628. CheckPTHREAD()
  18629. {
  18630. # Check whether --enable-pthreads was given.
  18631. if test "${enable_pthreads+set}" = set; then :
  18632. enableval=$enable_pthreads;
  18633. else
  18634. enable_pthreads=yes
  18635. fi
  18636. # Check whether --enable-pthread-sem was given.
  18637. if test "${enable_pthread_sem+set}" = set; then :
  18638. enableval=$enable_pthread_sem;
  18639. else
  18640. enable_pthread_sem=yes
  18641. fi
  18642. case "$host" in
  18643. *-*-androideabi*)
  18644. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18645. pthread_lib=""
  18646. ;;
  18647. *-*-linux*|*-*-uclinux*)
  18648. pthread_cflags="-D_REENTRANT"
  18649. pthread_lib="-lpthread"
  18650. ;;
  18651. *-*-bsdi*)
  18652. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18653. pthread_lib=""
  18654. ;;
  18655. *-*-darwin*)
  18656. pthread_cflags="-D_THREAD_SAFE"
  18657. # causes Carbon.p complaints?
  18658. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18659. ;;
  18660. *-*-freebsd*|*-*-dragonfly*)
  18661. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18662. pthread_lib="-pthread"
  18663. ;;
  18664. *-*-netbsd*)
  18665. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18666. pthread_lib="-lpthread"
  18667. ;;
  18668. *-*-openbsd*)
  18669. pthread_cflags="-D_REENTRANT"
  18670. pthread_lib="-pthread"
  18671. ;;
  18672. *-*-solaris2.9)
  18673. # From Solaris 9+, posix4's preferred name is rt.
  18674. pthread_cflags="-D_REENTRANT"
  18675. pthread_lib="-lpthread -lrt"
  18676. ;;
  18677. *-*-solaris2.10)
  18678. # Solaris 10+ merged pthread into libc.
  18679. pthread_cflags="-D_REENTRANT"
  18680. pthread_lib="-lrt"
  18681. ;;
  18682. *-*-solaris*)
  18683. # Solaris 11+ merged rt into libc.
  18684. pthread_cflags="-D_REENTRANT"
  18685. pthread_lib=""
  18686. ;;
  18687. *-*-sysv5*)
  18688. pthread_cflags="-D_REENTRANT -Kthread"
  18689. pthread_lib=""
  18690. ;;
  18691. *-*-aix*)
  18692. pthread_cflags="-D_REENTRANT -mthreads"
  18693. pthread_lib="-lpthread"
  18694. ;;
  18695. *-*-hpux11*)
  18696. pthread_cflags="-D_REENTRANT"
  18697. pthread_lib="-L/usr/lib -lpthread"
  18698. ;;
  18699. *-*-haiku*)
  18700. pthread_cflags="-D_REENTRANT"
  18701. pthread_lib=""
  18702. ;;
  18703. *)
  18704. pthread_cflags="-D_REENTRANT"
  18705. pthread_lib="-lpthread"
  18706. ;;
  18707. esac
  18708. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18709. # Save the original compiler flags and libraries
  18710. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18711. # Add the pthread compiler flags and libraries
  18712. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18713. # Check to see if we have pthread support on this system
  18714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18715. $as_echo_n "checking for pthreads... " >&6; }
  18716. use_pthreads=no
  18717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18718. /* end confdefs.h. */
  18719. #include <pthread.h>
  18720. int
  18721. main ()
  18722. {
  18723. pthread_attr_t type;
  18724. pthread_attr_init(&type);
  18725. ;
  18726. return 0;
  18727. }
  18728. _ACEOF
  18729. if ac_fn_c_try_link "$LINENO"; then :
  18730. use_pthreads=yes
  18731. fi
  18732. rm -f core conftest.err conftest.$ac_objext \
  18733. conftest$ac_exeext conftest.$ac_ext
  18734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18735. $as_echo "$use_pthreads" >&6; }
  18736. # Restore the compiler flags and libraries
  18737. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18738. # Do futher testing if we have pthread support...
  18739. if test x$use_pthreads = xyes; then
  18740. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18741. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18742. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18743. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18744. SDL_LIBS="$SDL_LIBS $pthread_lib"
  18745. # Save the original compiler flags and libraries
  18746. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18747. # Add the pthread compiler flags and libraries
  18748. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18749. # Check to see if recursive mutexes are available
  18750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18751. $as_echo_n "checking for recursive mutexes... " >&6; }
  18752. has_recursive_mutexes=no
  18753. if test x$has_recursive_mutexes = xno; then
  18754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18755. /* end confdefs.h. */
  18756. #define _GNU_SOURCE 1
  18757. #include <pthread.h>
  18758. int
  18759. main ()
  18760. {
  18761. pthread_mutexattr_t attr;
  18762. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18763. ;
  18764. return 0;
  18765. }
  18766. _ACEOF
  18767. if ac_fn_c_try_link "$LINENO"; then :
  18768. has_recursive_mutexes=yes
  18769. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18770. fi
  18771. rm -f core conftest.err conftest.$ac_objext \
  18772. conftest$ac_exeext conftest.$ac_ext
  18773. fi
  18774. if test x$has_recursive_mutexes = xno; then
  18775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18776. /* end confdefs.h. */
  18777. #define _GNU_SOURCE 1
  18778. #include <pthread.h>
  18779. int
  18780. main ()
  18781. {
  18782. pthread_mutexattr_t attr;
  18783. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18784. ;
  18785. return 0;
  18786. }
  18787. _ACEOF
  18788. if ac_fn_c_try_link "$LINENO"; then :
  18789. has_recursive_mutexes=yes
  18790. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18791. fi
  18792. rm -f core conftest.err conftest.$ac_objext \
  18793. conftest$ac_exeext conftest.$ac_ext
  18794. fi
  18795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18796. $as_echo "$has_recursive_mutexes" >&6; }
  18797. # Check to see if pthread semaphore support is missing
  18798. if test x$enable_pthread_sem = xyes; then
  18799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18800. $as_echo_n "checking for pthread semaphores... " >&6; }
  18801. have_pthread_sem=no
  18802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18803. /* end confdefs.h. */
  18804. #include <pthread.h>
  18805. #include <semaphore.h>
  18806. int
  18807. main ()
  18808. {
  18809. ;
  18810. return 0;
  18811. }
  18812. _ACEOF
  18813. if ac_fn_c_try_compile "$LINENO"; then :
  18814. have_pthread_sem=yes
  18815. fi
  18816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18818. $as_echo "$have_pthread_sem" >&6; }
  18819. fi
  18820. if test x$have_pthread_sem = xyes; then
  18821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18822. $as_echo_n "checking for sem_timedwait... " >&6; }
  18823. have_sem_timedwait=no
  18824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18825. /* end confdefs.h. */
  18826. #include <pthread.h>
  18827. #include <semaphore.h>
  18828. int
  18829. main ()
  18830. {
  18831. sem_timedwait(NULL, NULL);
  18832. ;
  18833. return 0;
  18834. }
  18835. _ACEOF
  18836. if ac_fn_c_try_link "$LINENO"; then :
  18837. have_sem_timedwait=yes
  18838. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18839. fi
  18840. rm -f core conftest.err conftest.$ac_objext \
  18841. conftest$ac_exeext conftest.$ac_ext
  18842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18843. $as_echo "$have_sem_timedwait" >&6; }
  18844. fi
  18845. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18846. "
  18847. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18848. have_pthread_np_h=yes
  18849. else
  18850. have_pthread_np_h=no
  18851. fi
  18852. if test x$have_pthread_np_h = xyes; then
  18853. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18854. fi
  18855. # Check to see if pthread naming is available
  18856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18857. $as_echo_n "checking for pthread_setname_np... " >&6; }
  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 pthread_setname_np ();
  18867. int
  18868. main ()
  18869. {
  18870. return pthread_setname_np ();
  18871. ;
  18872. return 0;
  18873. }
  18874. _ACEOF
  18875. if ac_fn_c_try_link "$LINENO"; then :
  18876. has_pthread_setname_np=yes
  18877. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18878. else
  18879. has_pthread_setname_np=no
  18880. fi
  18881. rm -f core conftest.err conftest.$ac_objext \
  18882. conftest$ac_exeext conftest.$ac_ext
  18883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  18884. $as_echo "$has_pthread_setname_np" >&6; }
  18885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  18886. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  18887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18888. /* end confdefs.h. */
  18889. /* Override any GCC internal prototype to avoid an error.
  18890. Use char because int might match the return type of a GCC
  18891. builtin and then its argument prototype would still apply. */
  18892. #ifdef __cplusplus
  18893. extern "C"
  18894. #endif
  18895. char pthread_set_name_np ();
  18896. int
  18897. main ()
  18898. {
  18899. return pthread_set_name_np ();
  18900. ;
  18901. return 0;
  18902. }
  18903. _ACEOF
  18904. if ac_fn_c_try_link "$LINENO"; then :
  18905. has_pthread_set_name_np=yes
  18906. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  18907. else
  18908. has_pthread_set_name_np=no
  18909. fi
  18910. rm -f core conftest.err conftest.$ac_objext \
  18911. conftest$ac_exeext conftest.$ac_ext
  18912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  18913. $as_echo "$has_pthread_set_name_np" >&6; }
  18914. # Restore the compiler flags and libraries
  18915. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18916. # Basic thread creation functions
  18917. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  18918. # Semaphores
  18919. # We can fake these with mutexes and condition variables if necessary
  18920. if test x$have_pthread_sem = xyes; then
  18921. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  18922. else
  18923. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  18924. fi
  18925. # Mutexes
  18926. # We can fake these with semaphores if necessary
  18927. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  18928. # Condition variables
  18929. # We can fake these with semaphores and mutexes if necessary
  18930. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  18931. # Thread local storage
  18932. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  18933. have_threads=yes
  18934. fi
  18935. fi
  18936. }
  18937. CheckWINDOWS()
  18938. {
  18939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  18940. $as_echo_n "checking Windows compiler... " >&6; }
  18941. have_win32_gcc=no
  18942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18943. /* end confdefs.h. */
  18944. #include <windows.h>
  18945. int
  18946. main ()
  18947. {
  18948. ;
  18949. return 0;
  18950. }
  18951. _ACEOF
  18952. if ac_fn_c_try_compile "$LINENO"; then :
  18953. have_win32_gcc=yes
  18954. fi
  18955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  18957. $as_echo "$have_win32_gcc" >&6; }
  18958. if test x$have_win32_gcc != xyes; then
  18959. as_fn_error $? "
  18960. *** Your compiler ($CC) does not produce Windows executables!
  18961. " "$LINENO" 5
  18962. fi
  18963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  18964. $as_echo_n "checking Windows CE... " >&6; }
  18965. have_wince=no
  18966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18967. /* end confdefs.h. */
  18968. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  18969. #error This is not Windows CE
  18970. #endif
  18971. int
  18972. main ()
  18973. {
  18974. ;
  18975. return 0;
  18976. }
  18977. _ACEOF
  18978. if ac_fn_c_try_compile "$LINENO"; then :
  18979. have_wince=yes
  18980. as_fn_error $? "
  18981. *** Sorry, Windows CE is no longer supported.
  18982. " "$LINENO" 5
  18983. fi
  18984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  18986. $as_echo "$have_wince" >&6; }
  18987. # This fixes Windows stack alignment with newer GCC
  18988. CheckStackBoundary
  18989. }
  18990. CheckDIRECTX()
  18991. {
  18992. # Check whether --enable-directx was given.
  18993. if test "${enable_directx+set}" = set; then :
  18994. enableval=$enable_directx;
  18995. else
  18996. enable_directx=yes
  18997. fi
  18998. if test x$enable_directx = xyes; then
  18999. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19000. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19001. have_d3d=yes
  19002. fi
  19003. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19004. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19005. have_d3d11=yes
  19006. fi
  19007. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19008. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19009. have_ddraw=yes
  19010. fi
  19011. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19012. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19013. have_dsound=yes
  19014. fi
  19015. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19016. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19017. have_dinput=yes
  19018. fi
  19019. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19020. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19021. have_dxgi=yes
  19022. fi
  19023. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19024. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19025. have_xaudio2=yes
  19026. fi
  19027. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19028. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19029. have_xinput=yes
  19030. fi
  19031. if test x$have_ddraw = xyes; then
  19032. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19033. fi
  19034. if test x$have_dinput = xyes; then
  19035. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19036. fi
  19037. if test x$have_dsound = xyes; then
  19038. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19039. fi
  19040. if test x$have_dxgi = xyes; then
  19041. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19042. fi
  19043. if test x$have_xinput = xyes; then
  19044. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19045. fi
  19046. SUMMARY_video="${SUMMARY_video} directx"
  19047. SUMMARY_audio="${SUMMARY_audio} directx"
  19048. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19049. # FIXME: ...so force it off for now.
  19050. case "$host" in
  19051. *-*-cygwin*)
  19052. have_dinput=false
  19053. ;;
  19054. esac
  19055. fi
  19056. }
  19057. CheckDLOPEN()
  19058. {
  19059. # Check whether --enable-sdl-dlopen was given.
  19060. if test "${enable_sdl_dlopen+set}" = set; then :
  19061. enableval=$enable_sdl_dlopen;
  19062. else
  19063. enable_sdl_dlopen=yes
  19064. fi
  19065. if test x$enable_sdl_dlopen = xyes; then
  19066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19067. $as_echo_n "checking for dlopen... " >&6; }
  19068. have_dlopen=no
  19069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19070. /* end confdefs.h. */
  19071. #include <dlfcn.h>
  19072. int
  19073. main ()
  19074. {
  19075. void *handle = dlopen("", RTLD_NOW);
  19076. const char *loaderror = (char *) dlerror();
  19077. ;
  19078. return 0;
  19079. }
  19080. _ACEOF
  19081. if ac_fn_c_try_compile "$LINENO"; then :
  19082. have_dlopen=yes
  19083. fi
  19084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19086. $as_echo "$have_dlopen" >&6; }
  19087. if test x$have_dlopen = xyes; then
  19088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19089. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19090. if ${ac_cv_lib_c_dlopen+:} false; then :
  19091. $as_echo_n "(cached) " >&6
  19092. else
  19093. ac_check_lib_save_LIBS=$LIBS
  19094. LIBS="-lc $LIBS"
  19095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19096. /* end confdefs.h. */
  19097. /* Override any GCC internal prototype to avoid an error.
  19098. Use char because int might match the return type of a GCC
  19099. builtin and then its argument prototype would still apply. */
  19100. #ifdef __cplusplus
  19101. extern "C"
  19102. #endif
  19103. char dlopen ();
  19104. int
  19105. main ()
  19106. {
  19107. return dlopen ();
  19108. ;
  19109. return 0;
  19110. }
  19111. _ACEOF
  19112. if ac_fn_c_try_link "$LINENO"; then :
  19113. ac_cv_lib_c_dlopen=yes
  19114. else
  19115. ac_cv_lib_c_dlopen=no
  19116. fi
  19117. rm -f core conftest.err conftest.$ac_objext \
  19118. conftest$ac_exeext conftest.$ac_ext
  19119. LIBS=$ac_check_lib_save_LIBS
  19120. fi
  19121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19122. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19123. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19124. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19125. else
  19126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19127. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19128. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19129. $as_echo_n "(cached) " >&6
  19130. else
  19131. ac_check_lib_save_LIBS=$LIBS
  19132. LIBS="-ldl $LIBS"
  19133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19134. /* end confdefs.h. */
  19135. /* Override any GCC internal prototype to avoid an error.
  19136. Use char because int might match the return type of a GCC
  19137. builtin and then its argument prototype would still apply. */
  19138. #ifdef __cplusplus
  19139. extern "C"
  19140. #endif
  19141. char dlopen ();
  19142. int
  19143. main ()
  19144. {
  19145. return dlopen ();
  19146. ;
  19147. return 0;
  19148. }
  19149. _ACEOF
  19150. if ac_fn_c_try_link "$LINENO"; then :
  19151. ac_cv_lib_dl_dlopen=yes
  19152. else
  19153. ac_cv_lib_dl_dlopen=no
  19154. fi
  19155. rm -f core conftest.err conftest.$ac_objext \
  19156. conftest$ac_exeext conftest.$ac_ext
  19157. LIBS=$ac_check_lib_save_LIBS
  19158. fi
  19159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19160. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19161. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19162. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19163. else
  19164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19165. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19166. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19167. $as_echo_n "(cached) " >&6
  19168. else
  19169. ac_check_lib_save_LIBS=$LIBS
  19170. LIBS="-lltdl $LIBS"
  19171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19172. /* end confdefs.h. */
  19173. /* Override any GCC internal prototype to avoid an error.
  19174. Use char because int might match the return type of a GCC
  19175. builtin and then its argument prototype would still apply. */
  19176. #ifdef __cplusplus
  19177. extern "C"
  19178. #endif
  19179. char dlopen ();
  19180. int
  19181. main ()
  19182. {
  19183. return dlopen ();
  19184. ;
  19185. return 0;
  19186. }
  19187. _ACEOF
  19188. if ac_fn_c_try_link "$LINENO"; then :
  19189. ac_cv_lib_ltdl_dlopen=yes
  19190. else
  19191. ac_cv_lib_ltdl_dlopen=no
  19192. fi
  19193. rm -f core conftest.err conftest.$ac_objext \
  19194. conftest$ac_exeext conftest.$ac_ext
  19195. LIBS=$ac_check_lib_save_LIBS
  19196. fi
  19197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19198. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19199. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19200. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19201. fi
  19202. fi
  19203. fi
  19204. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19205. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19206. have_loadso=yes
  19207. fi
  19208. fi
  19209. }
  19210. CheckUSBHID()
  19211. {
  19212. case "$host" in
  19213. *-*-*bsd*)
  19214. if test x$enable_joystick = xyes; then
  19215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19216. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19217. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19218. $as_echo_n "(cached) " >&6
  19219. else
  19220. ac_check_lib_save_LIBS=$LIBS
  19221. LIBS="-lusbhid $LIBS"
  19222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19223. /* end confdefs.h. */
  19224. /* Override any GCC internal prototype to avoid an error.
  19225. Use char because int might match the return type of a GCC
  19226. builtin and then its argument prototype would still apply. */
  19227. #ifdef __cplusplus
  19228. extern "C"
  19229. #endif
  19230. char hid_init ();
  19231. int
  19232. main ()
  19233. {
  19234. return hid_init ();
  19235. ;
  19236. return 0;
  19237. }
  19238. _ACEOF
  19239. if ac_fn_c_try_link "$LINENO"; then :
  19240. ac_cv_lib_usbhid_hid_init=yes
  19241. else
  19242. ac_cv_lib_usbhid_hid_init=no
  19243. fi
  19244. rm -f core conftest.err conftest.$ac_objext \
  19245. conftest$ac_exeext conftest.$ac_ext
  19246. LIBS=$ac_check_lib_save_LIBS
  19247. fi
  19248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19249. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19250. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19251. have_libusbhid=yes
  19252. fi
  19253. if test x$have_libusbhid = xyes; then
  19254. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19255. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19256. USB_CFLAGS="-DHAVE_USBHID_H"
  19257. fi
  19258. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19259. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19260. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19261. fi
  19262. USB_LIBS="$USB_LIBS -lusbhid"
  19263. else
  19264. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19265. if test "x$ac_cv_header_usb_h" = xyes; then :
  19266. USB_CFLAGS="-DHAVE_USB_H"
  19267. fi
  19268. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19269. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19270. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19271. fi
  19272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19273. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19274. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19275. $as_echo_n "(cached) " >&6
  19276. else
  19277. ac_check_lib_save_LIBS=$LIBS
  19278. LIBS="-lusb $LIBS"
  19279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19280. /* end confdefs.h. */
  19281. /* Override any GCC internal prototype to avoid an error.
  19282. Use char because int might match the return type of a GCC
  19283. builtin and then its argument prototype would still apply. */
  19284. #ifdef __cplusplus
  19285. extern "C"
  19286. #endif
  19287. char hid_init ();
  19288. int
  19289. main ()
  19290. {
  19291. return hid_init ();
  19292. ;
  19293. return 0;
  19294. }
  19295. _ACEOF
  19296. if ac_fn_c_try_link "$LINENO"; then :
  19297. ac_cv_lib_usb_hid_init=yes
  19298. else
  19299. ac_cv_lib_usb_hid_init=no
  19300. fi
  19301. rm -f core conftest.err conftest.$ac_objext \
  19302. conftest$ac_exeext conftest.$ac_ext
  19303. LIBS=$ac_check_lib_save_LIBS
  19304. fi
  19305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19306. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19307. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19308. USB_LIBS="$USB_LIBS -lusb"
  19309. fi
  19310. fi
  19311. save_CFLAGS="$CFLAGS"
  19312. CFLAGS="$CFLAGS $USB_CFLAGS"
  19313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19314. $as_echo_n "checking for usbhid... " >&6; }
  19315. have_usbhid=no
  19316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19317. /* end confdefs.h. */
  19318. #include <sys/types.h>
  19319. #if defined(HAVE_USB_H)
  19320. #include <usb.h>
  19321. #endif
  19322. #ifdef __DragonFly__
  19323. # include <bus/usb/usb.h>
  19324. # include <bus/usb/usbhid.h>
  19325. #else
  19326. # include <dev/usb/usb.h>
  19327. # include <dev/usb/usbhid.h>
  19328. #endif
  19329. #if defined(HAVE_USBHID_H)
  19330. #include <usbhid.h>
  19331. #elif defined(HAVE_LIBUSB_H)
  19332. #include <libusb.h>
  19333. #elif defined(HAVE_LIBUSBHID_H)
  19334. #include <libusbhid.h>
  19335. #endif
  19336. int
  19337. main ()
  19338. {
  19339. struct report_desc *repdesc;
  19340. struct usb_ctl_report *repbuf;
  19341. hid_kind_t hidkind;
  19342. ;
  19343. return 0;
  19344. }
  19345. _ACEOF
  19346. if ac_fn_c_try_compile "$LINENO"; then :
  19347. have_usbhid=yes
  19348. fi
  19349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19351. $as_echo "$have_usbhid" >&6; }
  19352. if test x$have_usbhid = xyes; then
  19353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19354. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19355. have_usbhid_ucr_data=no
  19356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19357. /* end confdefs.h. */
  19358. #include <sys/types.h>
  19359. #if defined(HAVE_USB_H)
  19360. #include <usb.h>
  19361. #endif
  19362. #ifdef __DragonFly__
  19363. # include <bus/usb/usb.h>
  19364. # include <bus/usb/usbhid.h>
  19365. #else
  19366. # include <dev/usb/usb.h>
  19367. # include <dev/usb/usbhid.h>
  19368. #endif
  19369. #if defined(HAVE_USBHID_H)
  19370. #include <usbhid.h>
  19371. #elif defined(HAVE_LIBUSB_H)
  19372. #include <libusb.h>
  19373. #elif defined(HAVE_LIBUSBHID_H)
  19374. #include <libusbhid.h>
  19375. #endif
  19376. int
  19377. main ()
  19378. {
  19379. struct usb_ctl_report buf;
  19380. if (buf.ucr_data) { }
  19381. ;
  19382. return 0;
  19383. }
  19384. _ACEOF
  19385. if ac_fn_c_try_compile "$LINENO"; then :
  19386. have_usbhid_ucr_data=yes
  19387. fi
  19388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19389. if test x$have_usbhid_ucr_data = xyes; then
  19390. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19391. fi
  19392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19393. $as_echo "$have_usbhid_ucr_data" >&6; }
  19394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19395. $as_echo_n "checking for new usbhid API... " >&6; }
  19396. have_usbhid_new=no
  19397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19398. /* end confdefs.h. */
  19399. #include <sys/types.h>
  19400. #if defined(HAVE_USB_H)
  19401. #include <usb.h>
  19402. #endif
  19403. #ifdef __DragonFly__
  19404. #include <bus/usb/usb.h>
  19405. #include <bus/usb/usbhid.h>
  19406. #else
  19407. #include <dev/usb/usb.h>
  19408. #include <dev/usb/usbhid.h>
  19409. #endif
  19410. #if defined(HAVE_USBHID_H)
  19411. #include <usbhid.h>
  19412. #elif defined(HAVE_LIBUSB_H)
  19413. #include <libusb.h>
  19414. #elif defined(HAVE_LIBUSBHID_H)
  19415. #include <libusbhid.h>
  19416. #endif
  19417. int
  19418. main ()
  19419. {
  19420. report_desc_t d;
  19421. hid_start_parse(d, 1, 1);
  19422. ;
  19423. return 0;
  19424. }
  19425. _ACEOF
  19426. if ac_fn_c_try_compile "$LINENO"; then :
  19427. have_usbhid_new=yes
  19428. fi
  19429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19430. if test x$have_usbhid_new = xyes; then
  19431. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19432. fi
  19433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19434. $as_echo "$have_usbhid_new" >&6; }
  19435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19436. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19437. have_machine_joystick=no
  19438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19439. /* end confdefs.h. */
  19440. #include <machine/joystick.h>
  19441. int
  19442. main ()
  19443. {
  19444. struct joystick t;
  19445. ;
  19446. return 0;
  19447. }
  19448. _ACEOF
  19449. if ac_fn_c_try_compile "$LINENO"; then :
  19450. have_machine_joystick=yes
  19451. fi
  19452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19453. if test x$have_machine_joystick = xyes; then
  19454. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19455. fi
  19456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19457. $as_echo "$have_machine_joystick" >&6; }
  19458. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19459. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19460. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19461. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19462. have_joystick=yes
  19463. fi
  19464. CFLAGS="$save_CFLAGS"
  19465. fi
  19466. ;;
  19467. esac
  19468. }
  19469. CheckClockGettime()
  19470. {
  19471. # Check whether --enable-clock_gettime was given.
  19472. if test "${enable_clock_gettime+set}" = set; then :
  19473. enableval=$enable_clock_gettime;
  19474. else
  19475. enable_clock_gettime=yes
  19476. fi
  19477. if test x$enable_clock_gettime = xyes; then
  19478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19479. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19480. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19481. $as_echo_n "(cached) " >&6
  19482. else
  19483. ac_check_lib_save_LIBS=$LIBS
  19484. LIBS="-lrt $LIBS"
  19485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19486. /* end confdefs.h. */
  19487. /* Override any GCC internal prototype to avoid an error.
  19488. Use char because int might match the return type of a GCC
  19489. builtin and then its argument prototype would still apply. */
  19490. #ifdef __cplusplus
  19491. extern "C"
  19492. #endif
  19493. char clock_gettime ();
  19494. int
  19495. main ()
  19496. {
  19497. return clock_gettime ();
  19498. ;
  19499. return 0;
  19500. }
  19501. _ACEOF
  19502. if ac_fn_c_try_link "$LINENO"; then :
  19503. ac_cv_lib_rt_clock_gettime=yes
  19504. else
  19505. ac_cv_lib_rt_clock_gettime=no
  19506. fi
  19507. rm -f core conftest.err conftest.$ac_objext \
  19508. conftest$ac_exeext conftest.$ac_ext
  19509. LIBS=$ac_check_lib_save_LIBS
  19510. fi
  19511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19512. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19513. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19514. have_clock_gettime=yes
  19515. fi
  19516. if test x$have_clock_gettime = xyes; then
  19517. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19518. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19519. else
  19520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19521. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19522. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19523. $as_echo_n "(cached) " >&6
  19524. else
  19525. ac_check_lib_save_LIBS=$LIBS
  19526. LIBS="-lc $LIBS"
  19527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19528. /* end confdefs.h. */
  19529. /* Override any GCC internal prototype to avoid an error.
  19530. Use char because int might match the return type of a GCC
  19531. builtin and then its argument prototype would still apply. */
  19532. #ifdef __cplusplus
  19533. extern "C"
  19534. #endif
  19535. char clock_gettime ();
  19536. int
  19537. main ()
  19538. {
  19539. return clock_gettime ();
  19540. ;
  19541. return 0;
  19542. }
  19543. _ACEOF
  19544. if ac_fn_c_try_link "$LINENO"; then :
  19545. ac_cv_lib_c_clock_gettime=yes
  19546. else
  19547. ac_cv_lib_c_clock_gettime=no
  19548. fi
  19549. rm -f core conftest.err conftest.$ac_objext \
  19550. conftest$ac_exeext conftest.$ac_ext
  19551. LIBS=$ac_check_lib_save_LIBS
  19552. fi
  19553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19554. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19555. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19556. have_clock_gettime=yes
  19557. fi
  19558. if test x$have_clock_gettime = xyes; then
  19559. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19560. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19561. fi
  19562. fi
  19563. fi
  19564. }
  19565. CheckLinuxVersion()
  19566. {
  19567. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19568. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19569. have_linux_version_h=yes
  19570. fi
  19571. if test x$have_linux_version_h = xyes; then
  19572. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19573. fi
  19574. }
  19575. CheckRPATH()
  19576. {
  19577. # Check whether --enable-rpath was given.
  19578. if test "${enable_rpath+set}" = set; then :
  19579. enableval=$enable_rpath;
  19580. else
  19581. enable_rpath=yes
  19582. fi
  19583. }
  19584. case "$host" in
  19585. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19586. case "$host" in
  19587. *-raspberry-linux*)
  19588. # Raspberry Pi
  19589. ARCH=linux
  19590. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19591. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19592. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19593. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19594. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19595. if test x$enable_video = xyes; then
  19596. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19597. # FIXME: confdefs? Not AC_DEFINE?
  19598. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19599. SUMMARY_video="${SUMMARY_video} rpi"
  19600. fi
  19601. ;;
  19602. *-*-androideabi*)
  19603. # Android
  19604. ARCH=android
  19605. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  19606. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  19607. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  19608. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  19609. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  19610. if test x$enable_video = xyes; then
  19611. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  19612. # FIXME: confdefs? Not AC_DEFINE?
  19613. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  19614. SUMMARY_video="${SUMMARY_video} android"
  19615. fi
  19616. ;;
  19617. *-*-linux*) ARCH=linux ;;
  19618. *-*-uclinux*) ARCH=linux ;;
  19619. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19620. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19621. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19622. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19623. *-*-bsdi*) ARCH=bsdi ;;
  19624. *-*-freebsd*) ARCH=freebsd ;;
  19625. *-*-dragonfly*) ARCH=freebsd ;;
  19626. *-*-netbsd*) ARCH=netbsd ;;
  19627. *-*-openbsd*) ARCH=openbsd ;;
  19628. *-*-sysv5*) ARCH=sysv5 ;;
  19629. *-*-solaris*) ARCH=solaris ;;
  19630. *-*-hpux*) ARCH=hpux ;;
  19631. *-*-aix*) ARCH=aix ;;
  19632. *-*-minix*) ARCH=minix ;;
  19633. esac
  19634. CheckVisibilityHidden
  19635. CheckDummyVideo
  19636. CheckDiskAudio
  19637. CheckDummyAudio
  19638. CheckDLOPEN
  19639. CheckOSS
  19640. CheckALSA
  19641. CheckPulseAudio
  19642. CheckARTSC
  19643. CheckESD
  19644. CheckNAS
  19645. CheckSNDIO
  19646. CheckX11
  19647. CheckDirectFB
  19648. CheckFusionSound
  19649. CheckOpenGLX11
  19650. CheckOpenGLESX11
  19651. CheckMir
  19652. CheckWayland
  19653. CheckLibUDev
  19654. CheckDBus
  19655. CheckIBus
  19656. CheckInputEvents
  19657. CheckInputKD
  19658. CheckTslib
  19659. CheckUSBHID
  19660. CheckPTHREAD
  19661. CheckClockGettime
  19662. CheckLinuxVersion
  19663. CheckRPATH
  19664. CheckVivanteVideo
  19665. # Set up files for the audio library
  19666. if test x$enable_audio = xyes; then
  19667. case $ARCH in
  19668. sysv5|solaris|hpux)
  19669. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19670. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19671. have_audio=yes
  19672. ;;
  19673. netbsd) # Don't use this on OpenBSD, it's busted.
  19674. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19675. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19676. have_audio=yes
  19677. ;;
  19678. aix)
  19679. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19680. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19681. have_audio=yes
  19682. ;;
  19683. android)
  19684. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  19685. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  19686. SUMMARY_audio="${SUMMARY_audio} android"
  19687. have_audio=yes
  19688. ;;
  19689. esac
  19690. fi
  19691. # Set up files for the joystick library
  19692. if test x$enable_joystick = xyes; then
  19693. case $ARCH in
  19694. linux)
  19695. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19696. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19697. have_joystick=yes
  19698. ;;
  19699. android)
  19700. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  19701. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  19702. have_joystick=yes
  19703. ;;
  19704. esac
  19705. fi
  19706. # Set up files for the haptic library
  19707. if test x$enable_haptic = xyes; then
  19708. if test x$use_input_events = xyes; then
  19709. case $ARCH in
  19710. linux)
  19711. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19712. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19713. have_haptic=yes
  19714. ;;
  19715. esac
  19716. fi
  19717. fi
  19718. # Set up files for the power library
  19719. if test x$enable_power = xyes; then
  19720. case $ARCH in
  19721. linux)
  19722. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19723. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19724. have_power=yes
  19725. ;;
  19726. android)
  19727. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  19728. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  19729. have_power=yes
  19730. ;;
  19731. esac
  19732. fi
  19733. # Set up files for the filesystem library
  19734. if test x$enable_filesystem = xyes; then
  19735. case $ARCH in
  19736. android)
  19737. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  19738. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  19739. have_filesystem=yes
  19740. ;;
  19741. *)
  19742. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19743. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19744. have_filesystem=yes
  19745. ;;
  19746. esac
  19747. fi
  19748. # Set up files for the timer library
  19749. if test x$enable_timers = xyes; then
  19750. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19751. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19752. have_timers=yes
  19753. fi
  19754. # Set up files for udev hotplugging support
  19755. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19756. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19757. fi
  19758. # Set up files for evdev input
  19759. if test x$use_input_events = xyes; then
  19760. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19761. fi
  19762. ;;
  19763. *-*-cygwin* | *-*-mingw32*)
  19764. ARCH=win32
  19765. if test "$build" != "$host"; then # cross-compiling
  19766. # Default cross-compile location
  19767. ac_default_prefix=/usr/local/cross-tools/$host
  19768. else
  19769. # Look for the location of the tools and install there
  19770. if test "$BUILD_PREFIX" != ""; then
  19771. ac_default_prefix=$BUILD_PREFIX
  19772. fi
  19773. fi
  19774. CheckDummyVideo
  19775. CheckDiskAudio
  19776. CheckDummyAudio
  19777. CheckWINDOWS
  19778. CheckWINDOWSGL
  19779. CheckWINDOWSGLES
  19780. CheckDIRECTX
  19781. # Set up the core platform files
  19782. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19783. # Set up files for the video library
  19784. if test x$enable_video = xyes; then
  19785. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19786. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19787. have_video=yes
  19788. # Check whether --enable-render-d3d was given.
  19789. if test "${enable_render_d3d+set}" = set; then :
  19790. enableval=$enable_render_d3d;
  19791. else
  19792. enable_render_d3d=yes
  19793. fi
  19794. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19795. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19796. fi
  19797. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  19798. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  19799. fi
  19800. fi
  19801. # Set up files for the audio library
  19802. if test x$enable_audio = xyes; then
  19803. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19804. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19805. if test x$have_dsound = xyes; then
  19806. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19807. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19808. fi
  19809. if test x$have_xaudio2 = xyes; then
  19810. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19811. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19812. fi
  19813. have_audio=yes
  19814. fi
  19815. # Set up files for the joystick library
  19816. if test x$enable_joystick = xyes; then
  19817. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  19818. if test x$have_xinput = xyes; then
  19819. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  19820. fi
  19821. if test x$have_dinput = xyes; then
  19822. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19823. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19824. fi
  19825. else
  19826. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19827. fi
  19828. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  19829. have_joystick=yes
  19830. fi
  19831. if test x$enable_haptic = xyes; then
  19832. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  19833. if test x$have_xinput = xyes; then
  19834. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  19835. fi
  19836. if test x$have_dinput = xyes; then
  19837. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19838. fi
  19839. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  19840. have_haptic=yes
  19841. fi
  19842. fi
  19843. if test x$enable_power = xyes; then
  19844. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  19845. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19846. have_power=yes
  19847. fi
  19848. if test x$enable_filesystem = xyes; then
  19849. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  19850. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  19851. have_filesystem=yes
  19852. fi
  19853. # Set up files for the thread library
  19854. if test x$enable_threads = xyes; then
  19855. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19856. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19857. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19858. have_threads=yes
  19859. fi
  19860. # Set up files for the timer library
  19861. if test x$enable_timers = xyes; then
  19862. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  19863. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  19864. have_timers=yes
  19865. fi
  19866. # Set up files for the shared object loading library
  19867. if test x$enable_loadso = xyes; then
  19868. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  19869. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  19870. have_loadso=yes
  19871. fi
  19872. # Set up the system libraries we need
  19873. if test -f /lib/w32api/libuuid.a; then
  19874. LIBUUID=/lib/w32api/libuuid.a
  19875. else
  19876. LIBUUID=-luuid
  19877. fi
  19878. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -XCClinker -static-libgcc"
  19879. # The Windows platform requires special setup
  19880. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  19881. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  19882. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  19883. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  19884. # Check to see if this is a mingw or cygwin build
  19885. have_mingw32=
  19886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  19887. $as_echo_n "checking for main in -lmingw32... " >&6; }
  19888. if ${ac_cv_lib_mingw32_main+:} false; then :
  19889. $as_echo_n "(cached) " >&6
  19890. else
  19891. ac_check_lib_save_LIBS=$LIBS
  19892. LIBS="-lmingw32 $LIBS"
  19893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19894. /* end confdefs.h. */
  19895. int
  19896. main ()
  19897. {
  19898. return main ();
  19899. ;
  19900. return 0;
  19901. }
  19902. _ACEOF
  19903. if ac_fn_c_try_link "$LINENO"; then :
  19904. ac_cv_lib_mingw32_main=yes
  19905. else
  19906. ac_cv_lib_mingw32_main=no
  19907. fi
  19908. rm -f core conftest.err conftest.$ac_objext \
  19909. conftest$ac_exeext conftest.$ac_ext
  19910. LIBS=$ac_check_lib_save_LIBS
  19911. fi
  19912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  19913. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  19914. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  19915. have_mingw32=yes
  19916. fi
  19917. if test x$have_mingw32 = xyes; then
  19918. SDL_LIBS="-lmingw32 $SDL_LIBS"
  19919. else
  19920. SDL_LIBS="-lcygwin $SDL_LIBS"
  19921. fi
  19922. ;;
  19923. *-*-beos*)
  19924. as_fn_error $? "
  19925. *** BeOS support has been removed as of SDL 2.0.2.
  19926. " "$LINENO" 5
  19927. ;;
  19928. *-*-haiku*)
  19929. ARCH=haiku
  19930. ac_default_prefix=/boot/system
  19931. CheckDummyVideo
  19932. CheckDiskAudio
  19933. CheckDummyAudio
  19934. CheckHaikuVideo
  19935. CheckHaikuGL
  19936. CheckPTHREAD
  19937. # Set up files for the audio library
  19938. if test x$enable_audio = xyes; then
  19939. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  19940. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  19941. have_audio=yes
  19942. fi
  19943. # Set up files for the joystick library
  19944. if test x$enable_joystick = xyes; then
  19945. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  19946. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  19947. have_joystick=yes
  19948. fi
  19949. # Set up files for the timer library
  19950. if test x$enable_timers = xyes; then
  19951. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  19952. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  19953. have_timers=yes
  19954. fi
  19955. # Set up files for the shared object loading library
  19956. if test x$enable_loadso = xyes; then
  19957. $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
  19958. SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
  19959. have_loadso=yes
  19960. fi
  19961. # Set up files for the system power library
  19962. if test x$enable_power = xyes; then
  19963. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  19964. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  19965. have_power=yes
  19966. fi
  19967. # Set up files for the system filesystem library
  19968. if test x$enable_filesystem = xyes; then
  19969. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  19970. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  19971. have_filesystem=yes
  19972. fi
  19973. # The Haiku platform requires special setup.
  19974. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  19975. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  19976. ;;
  19977. arm*-apple-darwin*)
  19978. # iOS - We are not writing anything to confdefs.h because you have to replace
  19979. # SDL_config.h for SDL_config_iphoneos.h anyway
  19980. ARCH=ios
  19981. CheckVisibilityHidden
  19982. CheckDummyVideo
  19983. CheckDiskAudio
  19984. CheckDummyAudio
  19985. CheckDLOPEN
  19986. CheckCOCOA
  19987. CheckPTHREAD
  19988. # Set up files for the audio library
  19989. if test x$enable_audio = xyes; then
  19990. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19991. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  19992. have_audio=yes
  19993. fi
  19994. # Set up files for the joystick library
  19995. if test x$enable_joystick = xyes; then
  19996. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  19997. have_joystick=yes
  19998. fi
  19999. # Set up files for the haptic library
  20000. #if test x$enable_haptic = xyes; then
  20001. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20002. # have_haptic=yes
  20003. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20004. #fi
  20005. # Set up files for the power library
  20006. if test x$enable_power = xyes; then
  20007. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20008. have_power=yes
  20009. fi
  20010. # Set up files for the filesystem library
  20011. if test x$enable_filesystem = xyes; then
  20012. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20013. have_filesystem=yes
  20014. fi
  20015. # Set up files for the timer library
  20016. if test x$enable_timers = xyes; then
  20017. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20018. have_timers=yes
  20019. fi
  20020. # Set up additional files for the file library
  20021. if test x$enable_file = xyes; then
  20022. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20023. fi
  20024. # The iOS platform requires special setup.
  20025. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20026. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20027. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20028. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20029. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20030. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20031. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20032. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20033. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20034. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20035. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20036. ;;
  20037. *-*-darwin* )
  20038. # This could be either full "Mac OS X", or plain "Darwin" which is
  20039. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20040. # Next line is broken, and a few files below require Mac OS X (full)
  20041. ARCH=macosx
  20042. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20043. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20044. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20045. CheckVisibilityHidden
  20046. CheckDummyVideo
  20047. CheckDiskAudio
  20048. CheckDummyAudio
  20049. CheckDLOPEN
  20050. CheckCOCOA
  20051. CheckX11
  20052. CheckMacGL
  20053. CheckOpenGLX11
  20054. CheckPTHREAD
  20055. # Set up files for the audio library
  20056. if test x$enable_audio = xyes; then
  20057. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20058. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  20059. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20060. have_audio=yes
  20061. fi
  20062. # Set up files for the joystick library
  20063. if test x$enable_joystick = xyes; then
  20064. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20065. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20066. have_joystick=yes
  20067. fi
  20068. # Set up files for the haptic library
  20069. if test x$enable_haptic = xyes; then
  20070. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20071. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20072. have_haptic=yes
  20073. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20074. fi
  20075. # Set up files for the power library
  20076. if test x$enable_power = xyes; then
  20077. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20078. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20079. have_power=yes
  20080. fi
  20081. # Set up files for the filesystem library
  20082. if test x$enable_filesystem = xyes; then
  20083. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20084. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20085. have_filesystem=yes
  20086. fi
  20087. # Set up files for the timer library
  20088. if test x$enable_timers = xyes; then
  20089. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20090. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20091. have_timers=yes
  20092. fi
  20093. # Set up additional files for the file library
  20094. if test x$enable_file = xyes; then
  20095. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20096. fi
  20097. # The Mac OS X platform requires special setup.
  20098. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20099. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20100. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20101. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20102. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20103. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20104. # If audio is used, add the AudioUnit framework
  20105. if test x$enable_audio = xyes; then
  20106. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
  20107. fi
  20108. ;;
  20109. *-nacl|*-pnacl)
  20110. ARCH=nacl
  20111. CheckNativeClient
  20112. CheckDummyAudio
  20113. CheckDummyVideo
  20114. CheckInputEvents
  20115. CheckPTHREAD
  20116. # Set up files for the timer library
  20117. if test x$enable_timers = xyes; then
  20118. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20119. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20120. have_timers=yes
  20121. fi
  20122. if test x$enable_filesystem = xyes; then
  20123. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20124. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20125. have_filesystem=yes
  20126. fi
  20127. ;;
  20128. *-*-emscripten* )
  20129. if test x$enable_video = xyes; then
  20130. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20131. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20132. have_video=yes
  20133. SUMMARY_video="${SUMMARY_video} emscripten"
  20134. fi
  20135. if test x$enable_audio = xyes; then
  20136. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20137. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20138. have_audio=yes
  20139. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20140. fi
  20141. CheckVisibilityHidden
  20142. CheckDummyVideo
  20143. CheckDiskAudio
  20144. CheckDummyAudio
  20145. CheckDLOPEN
  20146. CheckClockGettime
  20147. CheckEmscriptenGLES
  20148. # Set up files for the power library
  20149. if test x$enable_power = xyes; then
  20150. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20151. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20152. have_power=yes
  20153. fi
  20154. # Set up files for the power library
  20155. if test x$enable_joystick = xyes; then
  20156. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20157. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20158. have_joystick=yes
  20159. fi
  20160. # Set up files for the filesystem library
  20161. if test x$enable_filesystem = xyes; then
  20162. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20163. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20164. have_filesystem=yes
  20165. fi
  20166. # Set up files for the timer library
  20167. if test x$enable_timers = xyes; then
  20168. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20169. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20170. have_timers=yes
  20171. fi
  20172. ;;
  20173. *)
  20174. as_fn_error $? "
  20175. *** Unsupported host: Please add to configure.in
  20176. " "$LINENO" 5
  20177. ;;
  20178. esac
  20179. CheckWarnAll
  20180. CheckWarnShadow
  20181. # Verify that we have all the platform specific files we need
  20182. if test x$have_joystick != xyes; then
  20183. if test x$enable_joystick = xyes; then
  20184. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20185. fi
  20186. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20187. fi
  20188. if test x$have_haptic != xyes; then
  20189. if test x$enable_haptic = xyes; then
  20190. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20191. fi
  20192. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20193. fi
  20194. if test x$have_threads != xyes; then
  20195. if test x$enable_threads = xyes; then
  20196. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20197. fi
  20198. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20199. fi
  20200. if test x$have_timers != xyes; then
  20201. if test x$enable_timers = xyes; then
  20202. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20203. fi
  20204. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20205. fi
  20206. if test x$have_filesystem != xyes; then
  20207. if test x$enable_filesystem = xyes; then
  20208. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20209. fi
  20210. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20211. fi
  20212. if test x$have_loadso != xyes; then
  20213. if test x$enable_loadso = xyes; then
  20214. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20215. fi
  20216. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20217. fi
  20218. if test x$SDLMAIN_SOURCES = x; then
  20219. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20220. fi
  20221. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20222. OBJECTS=`echo $SOURCES`
  20223. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20224. for EXT in asm cc m c S; do
  20225. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20226. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20227. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20228. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20229. done
  20230. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20231. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20232. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20233. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20234. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20235. \\$(WINDRES) \\$< \\$@,g"`
  20236. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20237. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20238. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20239. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20240. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20241. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20242. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20243. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20244. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20245. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20246. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20247. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20248. # Set runtime shared library paths as needed
  20249. if test "x$enable_rpath" = "xyes"; then
  20250. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20251. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20252. fi
  20253. if test $ARCH = solaris; then
  20254. SDL_RLD_FLAGS="-R\${libdir}"
  20255. fi
  20256. else
  20257. SDL_RLD_FLAGS=""
  20258. fi
  20259. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20260. if test x$enable_shared = xyes; then
  20261. ENABLE_SHARED_TRUE=
  20262. ENABLE_SHARED_FALSE="#"
  20263. else
  20264. ENABLE_SHARED_TRUE="#"
  20265. ENABLE_SHARED_FALSE=
  20266. fi
  20267. if test x$enable_static = xyes; then
  20268. ENABLE_STATIC_TRUE=
  20269. ENABLE_STATIC_FALSE="#"
  20270. else
  20271. ENABLE_STATIC_TRUE="#"
  20272. ENABLE_STATIC_FALSE=
  20273. fi
  20274. cat >Makefile.rules <<__EOF__
  20275. # Build rules for objects
  20276. -include \$(OBJECTS:.lo=.d)
  20277. # Special dependency for SDL.c, since it depends on SDL_revision.h
  20278. $srcdir/src/SDL.c: update-revision
  20279. $DEPENDS
  20280. $VERSION_DEPENDS
  20281. $SDLMAIN_DEPENDS
  20282. $SDLTEST_DEPENDS
  20283. __EOF__
  20284. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config SDL2.spec sdl2.pc"
  20285. ac_config_commands="$ac_config_commands sdl2_config"
  20286. SUMMARY="SDL2 Configure Summary:\n"
  20287. if test x$enable_shared = xyes; then
  20288. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  20289. fi
  20290. if test x$enable_static = xyes; then
  20291. SUMMARY="${SUMMARY}Building Static Libraries\n"
  20292. fi
  20293. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  20294. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  20295. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  20296. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  20297. if test x$have_x = xyes; then
  20298. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  20299. fi
  20300. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  20301. if test x$enable_libudev = xyes; then
  20302. SUMMARY="${SUMMARY}Using libudev : YES\n"
  20303. else
  20304. SUMMARY="${SUMMARY}Using libudev : NO\n"
  20305. fi
  20306. if test x$have_dbus_dbus_h_hdr = xyes; then
  20307. SUMMARY="${SUMMARY}Using dbus : YES\n"
  20308. else
  20309. SUMMARY="${SUMMARY}Using dbus : NO\n"
  20310. fi
  20311. if test x$have_ibus_ibus_h_hdr = xyes; then
  20312. SUMMARY="${SUMMARY}Using ibus : YES\n"
  20313. else
  20314. SUMMARY="${SUMMARY}Using ibus : NO\n"
  20315. fi
  20316. ac_config_commands="$ac_config_commands summary"
  20317. cat >confcache <<\_ACEOF
  20318. # This file is a shell script that caches the results of configure
  20319. # tests run on this system so they can be shared between configure
  20320. # scripts and configure runs, see configure's option --config-cache.
  20321. # It is not useful on other systems. If it contains results you don't
  20322. # want to keep, you may remove or edit it.
  20323. #
  20324. # config.status only pays attention to the cache file if you give it
  20325. # the --recheck option to rerun configure.
  20326. #
  20327. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20328. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20329. # following values.
  20330. _ACEOF
  20331. # The following way of writing the cache mishandles newlines in values,
  20332. # but we know of no workaround that is simple, portable, and efficient.
  20333. # So, we kill variables containing newlines.
  20334. # Ultrix sh set writes to stderr and can't be redirected directly,
  20335. # and sets the high bit in the cache file unless we assign to the vars.
  20336. (
  20337. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20338. eval ac_val=\$$ac_var
  20339. case $ac_val in #(
  20340. *${as_nl}*)
  20341. case $ac_var in #(
  20342. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20343. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20344. esac
  20345. case $ac_var in #(
  20346. _ | IFS | as_nl) ;; #(
  20347. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20348. *) { eval $ac_var=; unset $ac_var;} ;;
  20349. esac ;;
  20350. esac
  20351. done
  20352. (set) 2>&1 |
  20353. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20354. *${as_nl}ac_space=\ *)
  20355. # `set' does not quote correctly, so add quotes: double-quote
  20356. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20357. sed -n \
  20358. "s/'/'\\\\''/g;
  20359. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20360. ;; #(
  20361. *)
  20362. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20363. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20364. ;;
  20365. esac |
  20366. sort
  20367. ) |
  20368. sed '
  20369. /^ac_cv_env_/b end
  20370. t clear
  20371. :clear
  20372. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20373. t end
  20374. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20375. :end' >>confcache
  20376. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20377. if test -w "$cache_file"; then
  20378. if test "x$cache_file" != "x/dev/null"; then
  20379. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20380. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20381. if test ! -f "$cache_file" || test -h "$cache_file"; then
  20382. cat confcache >"$cache_file"
  20383. else
  20384. case $cache_file in #(
  20385. */* | ?:*)
  20386. mv -f confcache "$cache_file"$$ &&
  20387. mv -f "$cache_file"$$ "$cache_file" ;; #(
  20388. *)
  20389. mv -f confcache "$cache_file" ;;
  20390. esac
  20391. fi
  20392. fi
  20393. else
  20394. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20395. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20396. fi
  20397. fi
  20398. rm -f confcache
  20399. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20400. # Let make expand exec_prefix.
  20401. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20402. DEFS=-DHAVE_CONFIG_H
  20403. ac_libobjs=
  20404. ac_ltlibobjs=
  20405. U=
  20406. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20407. # 1. Remove the extension, and $U if already installed.
  20408. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20409. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20410. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20411. # will be set to the directory where LIBOBJS objects are built.
  20412. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20413. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20414. done
  20415. LIBOBJS=$ac_libobjs
  20416. LTLIBOBJS=$ac_ltlibobjs
  20417. : "${CONFIG_STATUS=./config.status}"
  20418. ac_write_fail=0
  20419. ac_clean_files_save=$ac_clean_files
  20420. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20421. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20422. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20423. as_write_fail=0
  20424. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20425. #! $SHELL
  20426. # Generated by $as_me.
  20427. # Run this file to recreate the current configuration.
  20428. # Compiler output produced by configure, useful for debugging
  20429. # configure, is in config.log if it exists.
  20430. debug=false
  20431. ac_cs_recheck=false
  20432. ac_cs_silent=false
  20433. SHELL=\${CONFIG_SHELL-$SHELL}
  20434. export SHELL
  20435. _ASEOF
  20436. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20437. ## -------------------- ##
  20438. ## M4sh Initialization. ##
  20439. ## -------------------- ##
  20440. # Be more Bourne compatible
  20441. DUALCASE=1; export DUALCASE # for MKS sh
  20442. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20443. emulate sh
  20444. NULLCMD=:
  20445. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20446. # is contrary to our usage. Disable this feature.
  20447. alias -g '${1+"$@"}'='"$@"'
  20448. setopt NO_GLOB_SUBST
  20449. else
  20450. case `(set -o) 2>/dev/null` in #(
  20451. *posix*) :
  20452. set -o posix ;; #(
  20453. *) :
  20454. ;;
  20455. esac
  20456. fi
  20457. as_nl='
  20458. '
  20459. export as_nl
  20460. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20461. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20462. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20463. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20464. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20465. # but without wasting forks for bash or zsh.
  20466. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20467. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20468. as_echo='print -r --'
  20469. as_echo_n='print -rn --'
  20470. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20471. as_echo='printf %s\n'
  20472. as_echo_n='printf %s'
  20473. else
  20474. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20475. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20476. as_echo_n='/usr/ucb/echo -n'
  20477. else
  20478. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20479. as_echo_n_body='eval
  20480. arg=$1;
  20481. case $arg in #(
  20482. *"$as_nl"*)
  20483. expr "X$arg" : "X\\(.*\\)$as_nl";
  20484. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20485. esac;
  20486. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20487. '
  20488. export as_echo_n_body
  20489. as_echo_n='sh -c $as_echo_n_body as_echo'
  20490. fi
  20491. export as_echo_body
  20492. as_echo='sh -c $as_echo_body as_echo'
  20493. fi
  20494. # The user is always right.
  20495. if test "${PATH_SEPARATOR+set}" != set; then
  20496. PATH_SEPARATOR=:
  20497. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20498. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20499. PATH_SEPARATOR=';'
  20500. }
  20501. fi
  20502. # IFS
  20503. # We need space, tab and new line, in precisely that order. Quoting is
  20504. # there to prevent editors from complaining about space-tab.
  20505. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20506. # splitting by setting IFS to empty value.)
  20507. IFS=" "" $as_nl"
  20508. # Find who we are. Look in the path if we contain no directory separator.
  20509. as_myself=
  20510. case $0 in #((
  20511. *[\\/]* ) as_myself=$0 ;;
  20512. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20513. for as_dir in $PATH
  20514. do
  20515. IFS=$as_save_IFS
  20516. test -z "$as_dir" && as_dir=.
  20517. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20518. done
  20519. IFS=$as_save_IFS
  20520. ;;
  20521. esac
  20522. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20523. # in which case we are not to be found in the path.
  20524. if test "x$as_myself" = x; then
  20525. as_myself=$0
  20526. fi
  20527. if test ! -f "$as_myself"; then
  20528. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20529. exit 1
  20530. fi
  20531. # Unset variables that we do not need and which cause bugs (e.g. in
  20532. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20533. # suppresses any "Segmentation fault" message there. '((' could
  20534. # trigger a bug in pdksh 5.2.14.
  20535. for as_var in BASH_ENV ENV MAIL MAILPATH
  20536. do eval test x\${$as_var+set} = xset \
  20537. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20538. done
  20539. PS1='$ '
  20540. PS2='> '
  20541. PS4='+ '
  20542. # NLS nuisances.
  20543. LC_ALL=C
  20544. export LC_ALL
  20545. LANGUAGE=C
  20546. export LANGUAGE
  20547. # CDPATH.
  20548. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20549. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20550. # ----------------------------------------
  20551. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20552. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20553. # script with STATUS, using 1 if that was 0.
  20554. as_fn_error ()
  20555. {
  20556. as_status=$1; test $as_status -eq 0 && as_status=1
  20557. if test "$4"; then
  20558. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20559. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20560. fi
  20561. $as_echo "$as_me: error: $2" >&2
  20562. as_fn_exit $as_status
  20563. } # as_fn_error
  20564. # as_fn_set_status STATUS
  20565. # -----------------------
  20566. # Set $? to STATUS, without forking.
  20567. as_fn_set_status ()
  20568. {
  20569. return $1
  20570. } # as_fn_set_status
  20571. # as_fn_exit STATUS
  20572. # -----------------
  20573. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20574. as_fn_exit ()
  20575. {
  20576. set +e
  20577. as_fn_set_status $1
  20578. exit $1
  20579. } # as_fn_exit
  20580. # as_fn_unset VAR
  20581. # ---------------
  20582. # Portably unset VAR.
  20583. as_fn_unset ()
  20584. {
  20585. { eval $1=; unset $1;}
  20586. }
  20587. as_unset=as_fn_unset
  20588. # as_fn_append VAR VALUE
  20589. # ----------------------
  20590. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20591. # advantage of any shell optimizations that allow amortized linear growth over
  20592. # repeated appends, instead of the typical quadratic growth present in naive
  20593. # implementations.
  20594. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20595. eval 'as_fn_append ()
  20596. {
  20597. eval $1+=\$2
  20598. }'
  20599. else
  20600. as_fn_append ()
  20601. {
  20602. eval $1=\$$1\$2
  20603. }
  20604. fi # as_fn_append
  20605. # as_fn_arith ARG...
  20606. # ------------------
  20607. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20608. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20609. # must be portable across $(()) and expr.
  20610. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20611. eval 'as_fn_arith ()
  20612. {
  20613. as_val=$(( $* ))
  20614. }'
  20615. else
  20616. as_fn_arith ()
  20617. {
  20618. as_val=`expr "$@" || test $? -eq 1`
  20619. }
  20620. fi # as_fn_arith
  20621. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20622. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20623. as_expr=expr
  20624. else
  20625. as_expr=false
  20626. fi
  20627. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20628. as_basename=basename
  20629. else
  20630. as_basename=false
  20631. fi
  20632. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20633. as_dirname=dirname
  20634. else
  20635. as_dirname=false
  20636. fi
  20637. as_me=`$as_basename -- "$0" ||
  20638. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20639. X"$0" : 'X\(//\)$' \| \
  20640. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20641. $as_echo X/"$0" |
  20642. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20643. s//\1/
  20644. q
  20645. }
  20646. /^X\/\(\/\/\)$/{
  20647. s//\1/
  20648. q
  20649. }
  20650. /^X\/\(\/\).*/{
  20651. s//\1/
  20652. q
  20653. }
  20654. s/.*/./; q'`
  20655. # Avoid depending upon Character Ranges.
  20656. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20657. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20658. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20659. as_cr_digits='0123456789'
  20660. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20661. ECHO_C= ECHO_N= ECHO_T=
  20662. case `echo -n x` in #(((((
  20663. -n*)
  20664. case `echo 'xy\c'` in
  20665. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20666. xy) ECHO_C='\c';;
  20667. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20668. ECHO_T=' ';;
  20669. esac;;
  20670. *)
  20671. ECHO_N='-n';;
  20672. esac
  20673. rm -f conf$$ conf$$.exe conf$$.file
  20674. if test -d conf$$.dir; then
  20675. rm -f conf$$.dir/conf$$.file
  20676. else
  20677. rm -f conf$$.dir
  20678. mkdir conf$$.dir 2>/dev/null
  20679. fi
  20680. if (echo >conf$$.file) 2>/dev/null; then
  20681. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20682. as_ln_s='ln -s'
  20683. # ... but there are two gotchas:
  20684. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20685. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20686. # In both cases, we have to default to `cp -pR'.
  20687. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20688. as_ln_s='cp -pR'
  20689. elif ln conf$$.file conf$$ 2>/dev/null; then
  20690. as_ln_s=ln
  20691. else
  20692. as_ln_s='cp -pR'
  20693. fi
  20694. else
  20695. as_ln_s='cp -pR'
  20696. fi
  20697. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20698. rmdir conf$$.dir 2>/dev/null
  20699. # as_fn_mkdir_p
  20700. # -------------
  20701. # Create "$as_dir" as a directory, including parents if necessary.
  20702. as_fn_mkdir_p ()
  20703. {
  20704. case $as_dir in #(
  20705. -*) as_dir=./$as_dir;;
  20706. esac
  20707. test -d "$as_dir" || eval $as_mkdir_p || {
  20708. as_dirs=
  20709. while :; do
  20710. case $as_dir in #(
  20711. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20712. *) as_qdir=$as_dir;;
  20713. esac
  20714. as_dirs="'$as_qdir' $as_dirs"
  20715. as_dir=`$as_dirname -- "$as_dir" ||
  20716. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20717. X"$as_dir" : 'X\(//\)[^/]' \| \
  20718. X"$as_dir" : 'X\(//\)$' \| \
  20719. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20720. $as_echo X"$as_dir" |
  20721. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20722. s//\1/
  20723. q
  20724. }
  20725. /^X\(\/\/\)[^/].*/{
  20726. s//\1/
  20727. q
  20728. }
  20729. /^X\(\/\/\)$/{
  20730. s//\1/
  20731. q
  20732. }
  20733. /^X\(\/\).*/{
  20734. s//\1/
  20735. q
  20736. }
  20737. s/.*/./; q'`
  20738. test -d "$as_dir" && break
  20739. done
  20740. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20741. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20742. } # as_fn_mkdir_p
  20743. if mkdir -p . 2>/dev/null; then
  20744. as_mkdir_p='mkdir -p "$as_dir"'
  20745. else
  20746. test -d ./-p && rmdir ./-p
  20747. as_mkdir_p=false
  20748. fi
  20749. # as_fn_executable_p FILE
  20750. # -----------------------
  20751. # Test if FILE is an executable regular file.
  20752. as_fn_executable_p ()
  20753. {
  20754. test -f "$1" && test -x "$1"
  20755. } # as_fn_executable_p
  20756. as_test_x='test -x'
  20757. as_executable_p=as_fn_executable_p
  20758. # Sed expression to map a string onto a valid CPP name.
  20759. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20760. # Sed expression to map a string onto a valid variable name.
  20761. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20762. exec 6>&1
  20763. ## ----------------------------------- ##
  20764. ## Main body of $CONFIG_STATUS script. ##
  20765. ## ----------------------------------- ##
  20766. _ASEOF
  20767. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20768. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20769. # Save the log message, to keep $0 and so on meaningful, and to
  20770. # report actual input values of CONFIG_FILES etc. instead of their
  20771. # values after options handling.
  20772. ac_log="
  20773. This file was extended by $as_me, which was
  20774. generated by GNU Autoconf 2.69. Invocation command line was
  20775. CONFIG_FILES = $CONFIG_FILES
  20776. CONFIG_HEADERS = $CONFIG_HEADERS
  20777. CONFIG_LINKS = $CONFIG_LINKS
  20778. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20779. $ $0 $@
  20780. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20781. "
  20782. _ACEOF
  20783. case $ac_config_files in *"
  20784. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20785. esac
  20786. case $ac_config_headers in *"
  20787. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20788. esac
  20789. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20790. # Files that config.status was made for.
  20791. config_files="$ac_config_files"
  20792. config_headers="$ac_config_headers"
  20793. config_commands="$ac_config_commands"
  20794. _ACEOF
  20795. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20796. ac_cs_usage="\
  20797. \`$as_me' instantiates files and other configuration actions
  20798. from templates according to the current configuration. Unless the files
  20799. and actions are specified as TAGs, all are instantiated by default.
  20800. Usage: $0 [OPTION]... [TAG]...
  20801. -h, --help print this help, then exit
  20802. -V, --version print version number and configuration settings, then exit
  20803. --config print configuration, then exit
  20804. -q, --quiet, --silent
  20805. do not print progress messages
  20806. -d, --debug don't remove temporary files
  20807. --recheck update $as_me by reconfiguring in the same conditions
  20808. --file=FILE[:TEMPLATE]
  20809. instantiate the configuration file FILE
  20810. --header=FILE[:TEMPLATE]
  20811. instantiate the configuration header FILE
  20812. Configuration files:
  20813. $config_files
  20814. Configuration headers:
  20815. $config_headers
  20816. Configuration commands:
  20817. $config_commands
  20818. Report bugs to the package provider."
  20819. _ACEOF
  20820. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20821. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  20822. ac_cs_version="\\
  20823. config.status
  20824. configured by $0, generated by GNU Autoconf 2.69,
  20825. with options \\"\$ac_cs_config\\"
  20826. Copyright (C) 2012 Free Software Foundation, Inc.
  20827. This config.status script is free software; the Free Software Foundation
  20828. gives unlimited permission to copy, distribute and modify it."
  20829. ac_pwd='$ac_pwd'
  20830. srcdir='$srcdir'
  20831. INSTALL='$INSTALL'
  20832. AWK='$AWK'
  20833. test -n "\$AWK" || AWK=awk
  20834. _ACEOF
  20835. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20836. # The default lists apply if the user does not specify any file.
  20837. ac_need_defaults=:
  20838. while test $# != 0
  20839. do
  20840. case $1 in
  20841. --*=?*)
  20842. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20843. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20844. ac_shift=:
  20845. ;;
  20846. --*=)
  20847. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20848. ac_optarg=
  20849. ac_shift=:
  20850. ;;
  20851. *)
  20852. ac_option=$1
  20853. ac_optarg=$2
  20854. ac_shift=shift
  20855. ;;
  20856. esac
  20857. case $ac_option in
  20858. # Handling of the options.
  20859. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20860. ac_cs_recheck=: ;;
  20861. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20862. $as_echo "$ac_cs_version"; exit ;;
  20863. --config | --confi | --conf | --con | --co | --c )
  20864. $as_echo "$ac_cs_config"; exit ;;
  20865. --debug | --debu | --deb | --de | --d | -d )
  20866. debug=: ;;
  20867. --file | --fil | --fi | --f )
  20868. $ac_shift
  20869. case $ac_optarg in
  20870. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20871. '') as_fn_error $? "missing file argument" ;;
  20872. esac
  20873. as_fn_append CONFIG_FILES " '$ac_optarg'"
  20874. ac_need_defaults=false;;
  20875. --header | --heade | --head | --hea )
  20876. $ac_shift
  20877. case $ac_optarg in
  20878. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20879. esac
  20880. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  20881. ac_need_defaults=false;;
  20882. --he | --h)
  20883. # Conflict between --help and --header
  20884. as_fn_error $? "ambiguous option: \`$1'
  20885. Try \`$0 --help' for more information.";;
  20886. --help | --hel | -h )
  20887. $as_echo "$ac_cs_usage"; exit ;;
  20888. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20889. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20890. ac_cs_silent=: ;;
  20891. # This is an error.
  20892. -*) as_fn_error $? "unrecognized option: \`$1'
  20893. Try \`$0 --help' for more information." ;;
  20894. *) as_fn_append ac_config_targets " $1"
  20895. ac_need_defaults=false ;;
  20896. esac
  20897. shift
  20898. done
  20899. ac_configure_extra_args=
  20900. if $ac_cs_silent; then
  20901. exec 6>/dev/null
  20902. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20903. fi
  20904. _ACEOF
  20905. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20906. if \$ac_cs_recheck; then
  20907. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20908. shift
  20909. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  20910. CONFIG_SHELL='$SHELL'
  20911. export CONFIG_SHELL
  20912. exec "\$@"
  20913. fi
  20914. _ACEOF
  20915. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20916. exec 5>>config.log
  20917. {
  20918. echo
  20919. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20920. ## Running $as_me. ##
  20921. _ASBOX
  20922. $as_echo "$ac_log"
  20923. } >&5
  20924. _ACEOF
  20925. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20926. #
  20927. # INIT-COMMANDS
  20928. #
  20929. # The HP-UX ksh and POSIX shell print the target directory to stdout
  20930. # if CDPATH is set.
  20931. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20932. sed_quote_subst='$sed_quote_subst'
  20933. double_quote_subst='$double_quote_subst'
  20934. delay_variable_subst='$delay_variable_subst'
  20935. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  20936. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  20937. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  20938. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  20939. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  20940. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  20941. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  20942. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  20943. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  20944. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  20945. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  20946. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  20947. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  20948. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  20949. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  20950. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  20951. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20952. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20953. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20954. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20955. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20956. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20957. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20958. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20959. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20960. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20961. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20962. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20963. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20964. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20965. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20966. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20967. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20968. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20969. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20970. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20971. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20972. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20973. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20974. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20975. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20976. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20977. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20978. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20979. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20980. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20981. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20982. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20983. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20984. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20985. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20986. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20987. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20988. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20989. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  20990. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  20991. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  20992. 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"`'
  20993. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  20994. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  20995. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  20996. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  20997. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  20998. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  20999. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21000. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21001. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21002. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21003. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21004. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21005. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21006. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21007. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21008. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21009. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21010. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21011. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21012. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21013. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21014. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21015. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21016. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21017. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21018. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21019. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21020. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21021. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21022. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21023. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21024. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21025. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21026. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21027. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21028. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21029. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21030. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21031. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21032. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21033. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21034. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21035. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21036. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21037. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21038. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21039. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21040. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21041. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21042. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21043. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21044. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21045. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21046. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21047. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21048. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21049. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21050. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21051. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21052. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21053. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21054. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21055. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21056. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21057. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21058. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21059. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21060. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21061. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21062. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21063. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21064. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21065. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21066. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21067. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21068. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21069. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21070. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21071. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21072. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21073. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21074. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21075. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21076. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21077. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21078. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21079. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21080. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21081. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21082. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21083. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21084. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21085. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21086. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21087. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21088. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21089. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21090. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21091. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21092. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21093. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21094. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21095. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21096. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21097. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21098. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21099. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21100. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21101. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21102. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21103. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21104. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21105. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21106. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21107. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21108. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21109. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21110. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21111. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21112. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21113. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21114. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21115. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21116. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21117. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21118. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21119. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21120. LTCC='$LTCC'
  21121. LTCFLAGS='$LTCFLAGS'
  21122. compiler='$compiler_DEFAULT'
  21123. # A function that is used when there is no print builtin or printf.
  21124. func_fallback_echo ()
  21125. {
  21126. eval 'cat <<_LTECHO_EOF
  21127. \$1
  21128. _LTECHO_EOF'
  21129. }
  21130. # Quote evaled strings.
  21131. for var in AS \
  21132. DLLTOOL \
  21133. OBJDUMP \
  21134. SHELL \
  21135. ECHO \
  21136. PATH_SEPARATOR \
  21137. SED \
  21138. GREP \
  21139. EGREP \
  21140. FGREP \
  21141. LD \
  21142. NM \
  21143. LN_S \
  21144. lt_SP2NL \
  21145. lt_NL2SP \
  21146. reload_flag \
  21147. deplibs_check_method \
  21148. file_magic_cmd \
  21149. file_magic_glob \
  21150. want_nocaseglob \
  21151. sharedlib_from_linklib_cmd \
  21152. AR \
  21153. AR_FLAGS \
  21154. archiver_list_spec \
  21155. STRIP \
  21156. RANLIB \
  21157. CC \
  21158. CFLAGS \
  21159. compiler \
  21160. lt_cv_sys_global_symbol_pipe \
  21161. lt_cv_sys_global_symbol_to_cdecl \
  21162. lt_cv_sys_global_symbol_to_c_name_address \
  21163. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21164. nm_file_list_spec \
  21165. lt_prog_compiler_no_builtin_flag \
  21166. lt_prog_compiler_pic \
  21167. lt_prog_compiler_wl \
  21168. lt_prog_compiler_static \
  21169. lt_cv_prog_compiler_c_o \
  21170. need_locks \
  21171. MANIFEST_TOOL \
  21172. DSYMUTIL \
  21173. NMEDIT \
  21174. LIPO \
  21175. OTOOL \
  21176. OTOOL64 \
  21177. shrext_cmds \
  21178. export_dynamic_flag_spec \
  21179. whole_archive_flag_spec \
  21180. compiler_needs_object \
  21181. with_gnu_ld \
  21182. allow_undefined_flag \
  21183. no_undefined_flag \
  21184. hardcode_libdir_flag_spec \
  21185. hardcode_libdir_separator \
  21186. exclude_expsyms \
  21187. include_expsyms \
  21188. file_list_spec \
  21189. variables_saved_for_relink \
  21190. libname_spec \
  21191. library_names_spec \
  21192. soname_spec \
  21193. install_override_mode \
  21194. finish_eval \
  21195. old_striplib \
  21196. striplib \
  21197. compiler_lib_search_dirs \
  21198. predep_objects \
  21199. postdep_objects \
  21200. predeps \
  21201. postdeps \
  21202. compiler_lib_search_path \
  21203. LD_CXX \
  21204. reload_flag_CXX \
  21205. compiler_CXX \
  21206. lt_prog_compiler_no_builtin_flag_CXX \
  21207. lt_prog_compiler_pic_CXX \
  21208. lt_prog_compiler_wl_CXX \
  21209. lt_prog_compiler_static_CXX \
  21210. lt_cv_prog_compiler_c_o_CXX \
  21211. export_dynamic_flag_spec_CXX \
  21212. whole_archive_flag_spec_CXX \
  21213. compiler_needs_object_CXX \
  21214. with_gnu_ld_CXX \
  21215. allow_undefined_flag_CXX \
  21216. no_undefined_flag_CXX \
  21217. hardcode_libdir_flag_spec_CXX \
  21218. hardcode_libdir_separator_CXX \
  21219. exclude_expsyms_CXX \
  21220. include_expsyms_CXX \
  21221. file_list_spec_CXX \
  21222. compiler_lib_search_dirs_CXX \
  21223. predep_objects_CXX \
  21224. postdep_objects_CXX \
  21225. predeps_CXX \
  21226. postdeps_CXX \
  21227. compiler_lib_search_path_CXX; do
  21228. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21229. *[\\\\\\\`\\"\\\$]*)
  21230. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21231. ;;
  21232. *)
  21233. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21234. ;;
  21235. esac
  21236. done
  21237. # Double-quote double-evaled strings.
  21238. for var in reload_cmds \
  21239. old_postinstall_cmds \
  21240. old_postuninstall_cmds \
  21241. old_archive_cmds \
  21242. extract_expsyms_cmds \
  21243. old_archive_from_new_cmds \
  21244. old_archive_from_expsyms_cmds \
  21245. archive_cmds \
  21246. archive_expsym_cmds \
  21247. module_cmds \
  21248. module_expsym_cmds \
  21249. export_symbols_cmds \
  21250. prelink_cmds \
  21251. postlink_cmds \
  21252. postinstall_cmds \
  21253. postuninstall_cmds \
  21254. finish_cmds \
  21255. sys_lib_search_path_spec \
  21256. sys_lib_dlsearch_path_spec \
  21257. reload_cmds_CXX \
  21258. old_archive_cmds_CXX \
  21259. old_archive_from_new_cmds_CXX \
  21260. old_archive_from_expsyms_cmds_CXX \
  21261. archive_cmds_CXX \
  21262. archive_expsym_cmds_CXX \
  21263. module_cmds_CXX \
  21264. module_expsym_cmds_CXX \
  21265. export_symbols_cmds_CXX \
  21266. prelink_cmds_CXX \
  21267. postlink_cmds_CXX; do
  21268. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21269. *[\\\\\\\`\\"\\\$]*)
  21270. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21271. ;;
  21272. *)
  21273. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21274. ;;
  21275. esac
  21276. done
  21277. ac_aux_dir='$ac_aux_dir'
  21278. xsi_shell='$xsi_shell'
  21279. lt_shell_append='$lt_shell_append'
  21280. # See if we are running on zsh, and set the options which allow our
  21281. # commands through without removal of \ escapes INIT.
  21282. if test -n "\${ZSH_VERSION+set}" ; then
  21283. setopt NO_GLOB_SUBST
  21284. fi
  21285. PACKAGE='$PACKAGE'
  21286. VERSION='$VERSION'
  21287. TIMESTAMP='$TIMESTAMP'
  21288. RM='$RM'
  21289. ofile='$ofile'
  21290. SUMMARY="$SUMMARY"
  21291. _ACEOF
  21292. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21293. # Handling of arguments.
  21294. for ac_config_target in $ac_config_targets
  21295. do
  21296. case $ac_config_target in
  21297. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  21298. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21299. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  21300. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  21301. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  21302. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  21303. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  21304. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  21305. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21306. esac
  21307. done
  21308. # If the user did not use the arguments to specify the items to instantiate,
  21309. # then the envvar interface is used. Set only those that are not.
  21310. # We use the long form for the default assignment because of an extremely
  21311. # bizarre bug on SunOS 4.1.3.
  21312. if $ac_need_defaults; then
  21313. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21314. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21315. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21316. fi
  21317. # Have a temporary directory for convenience. Make it in the build tree
  21318. # simply because there is no reason against having it here, and in addition,
  21319. # creating and moving files from /tmp can sometimes cause problems.
  21320. # Hook for its removal unless debugging.
  21321. # Note that there is a small window in which the directory will not be cleaned:
  21322. # after its creation but before its name has been assigned to `$tmp'.
  21323. $debug ||
  21324. {
  21325. tmp= ac_tmp=
  21326. trap 'exit_status=$?
  21327. : "${ac_tmp:=$tmp}"
  21328. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21329. ' 0
  21330. trap 'as_fn_exit 1' 1 2 13 15
  21331. }
  21332. # Create a (secure) tmp directory for tmp files.
  21333. {
  21334. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21335. test -d "$tmp"
  21336. } ||
  21337. {
  21338. tmp=./conf$$-$RANDOM
  21339. (umask 077 && mkdir "$tmp")
  21340. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  21341. ac_tmp=$tmp
  21342. # Set up the scripts for CONFIG_FILES section.
  21343. # No need to generate them if there are no CONFIG_FILES.
  21344. # This happens for instance with `./config.status config.h'.
  21345. if test -n "$CONFIG_FILES"; then
  21346. ac_cr=`echo X | tr X '\015'`
  21347. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  21348. # But we know of no other shell where ac_cr would be empty at this
  21349. # point, so we can use a bashism as a fallback.
  21350. if test "x$ac_cr" = x; then
  21351. eval ac_cr=\$\'\\r\'
  21352. fi
  21353. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21354. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21355. ac_cs_awk_cr='\\r'
  21356. else
  21357. ac_cs_awk_cr=$ac_cr
  21358. fi
  21359. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  21360. _ACEOF
  21361. {
  21362. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21363. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21364. echo "_ACEOF"
  21365. } >conf$$subs.sh ||
  21366. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21367. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  21368. ac_delim='%!_!# '
  21369. for ac_last_try in false false false false false :; do
  21370. . ./conf$$subs.sh ||
  21371. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21372. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21373. if test $ac_delim_n = $ac_delim_num; then
  21374. break
  21375. elif $ac_last_try; then
  21376. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21377. else
  21378. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21379. fi
  21380. done
  21381. rm -f conf$$subs.sh
  21382. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21383. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  21384. _ACEOF
  21385. sed -n '
  21386. h
  21387. s/^/S["/; s/!.*/"]=/
  21388. p
  21389. g
  21390. s/^[^!]*!//
  21391. :repl
  21392. t repl
  21393. s/'"$ac_delim"'$//
  21394. t delim
  21395. :nl
  21396. h
  21397. s/\(.\{148\}\)..*/\1/
  21398. t more1
  21399. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21400. p
  21401. n
  21402. b repl
  21403. :more1
  21404. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21405. p
  21406. g
  21407. s/.\{148\}//
  21408. t nl
  21409. :delim
  21410. h
  21411. s/\(.\{148\}\)..*/\1/
  21412. t more2
  21413. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21414. p
  21415. b
  21416. :more2
  21417. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21418. p
  21419. g
  21420. s/.\{148\}//
  21421. t delim
  21422. ' <conf$$subs.awk | sed '
  21423. /^[^""]/{
  21424. N
  21425. s/\n//
  21426. }
  21427. ' >>$CONFIG_STATUS || ac_write_fail=1
  21428. rm -f conf$$subs.awk
  21429. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21430. _ACAWK
  21431. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21432. for (key in S) S_is_set[key] = 1
  21433. FS = ""
  21434. }
  21435. {
  21436. line = $ 0
  21437. nfields = split(line, field, "@")
  21438. substed = 0
  21439. len = length(field[1])
  21440. for (i = 2; i < nfields; i++) {
  21441. key = field[i]
  21442. keylen = length(key)
  21443. if (S_is_set[key]) {
  21444. value = S[key]
  21445. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21446. len += length(value) + length(field[++i])
  21447. substed = 1
  21448. } else
  21449. len += 1 + keylen
  21450. }
  21451. print line
  21452. }
  21453. _ACAWK
  21454. _ACEOF
  21455. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21456. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21457. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21458. else
  21459. cat
  21460. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21461. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21462. _ACEOF
  21463. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21464. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21465. # trailing colons and then remove the whole line if VPATH becomes empty
  21466. # (actually we leave an empty line to preserve line numbers).
  21467. if test "x$srcdir" = x.; then
  21468. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21469. h
  21470. s///
  21471. s/^/:/
  21472. s/[ ]*$/:/
  21473. s/:\$(srcdir):/:/g
  21474. s/:\${srcdir}:/:/g
  21475. s/:@srcdir@:/:/g
  21476. s/^:*//
  21477. s/:*$//
  21478. x
  21479. s/\(=[ ]*\).*/\1/
  21480. G
  21481. s/\n//
  21482. s/^[^=]*=[ ]*$//
  21483. }'
  21484. fi
  21485. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21486. fi # test -n "$CONFIG_FILES"
  21487. # Set up the scripts for CONFIG_HEADERS section.
  21488. # No need to generate them if there are no CONFIG_HEADERS.
  21489. # This happens for instance with `./config.status Makefile'.
  21490. if test -n "$CONFIG_HEADERS"; then
  21491. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21492. BEGIN {
  21493. _ACEOF
  21494. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21495. # here-document in config.status, that substitutes the proper values into
  21496. # config.h.in to produce config.h.
  21497. # Create a delimiter string that does not exist in confdefs.h, to ease
  21498. # handling of long lines.
  21499. ac_delim='%!_!# '
  21500. for ac_last_try in false false :; do
  21501. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21502. if test -z "$ac_tt"; then
  21503. break
  21504. elif $ac_last_try; then
  21505. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21506. else
  21507. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21508. fi
  21509. done
  21510. # For the awk script, D is an array of macro values keyed by name,
  21511. # likewise P contains macro parameters if any. Preserve backslash
  21512. # newline sequences.
  21513. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21514. sed -n '
  21515. s/.\{148\}/&'"$ac_delim"'/g
  21516. t rset
  21517. :rset
  21518. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21519. t def
  21520. d
  21521. :def
  21522. s/\\$//
  21523. t bsnl
  21524. s/["\\]/\\&/g
  21525. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21526. D["\1"]=" \3"/p
  21527. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21528. d
  21529. :bsnl
  21530. s/["\\]/\\&/g
  21531. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21532. D["\1"]=" \3\\\\\\n"\\/p
  21533. t cont
  21534. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21535. t cont
  21536. d
  21537. :cont
  21538. n
  21539. s/.\{148\}/&'"$ac_delim"'/g
  21540. t clear
  21541. :clear
  21542. s/\\$//
  21543. t bsnlc
  21544. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21545. d
  21546. :bsnlc
  21547. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21548. b cont
  21549. ' <confdefs.h | sed '
  21550. s/'"$ac_delim"'/"\\\
  21551. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21552. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21553. for (key in D) D_is_set[key] = 1
  21554. FS = ""
  21555. }
  21556. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21557. line = \$ 0
  21558. split(line, arg, " ")
  21559. if (arg[1] == "#") {
  21560. defundef = arg[2]
  21561. mac1 = arg[3]
  21562. } else {
  21563. defundef = substr(arg[1], 2)
  21564. mac1 = arg[2]
  21565. }
  21566. split(mac1, mac2, "(") #)
  21567. macro = mac2[1]
  21568. prefix = substr(line, 1, index(line, defundef) - 1)
  21569. if (D_is_set[macro]) {
  21570. # Preserve the white space surrounding the "#".
  21571. print prefix "define", macro P[macro] D[macro]
  21572. next
  21573. } else {
  21574. # Replace #undef with comments. This is necessary, for example,
  21575. # in the case of _POSIX_SOURCE, which is predefined and required
  21576. # on some systems where configure will not decide to define it.
  21577. if (defundef == "undef") {
  21578. print "/*", prefix defundef, macro, "*/"
  21579. next
  21580. }
  21581. }
  21582. }
  21583. { print }
  21584. _ACAWK
  21585. _ACEOF
  21586. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21587. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21588. fi # test -n "$CONFIG_HEADERS"
  21589. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21590. shift
  21591. for ac_tag
  21592. do
  21593. case $ac_tag in
  21594. :[FHLC]) ac_mode=$ac_tag; continue;;
  21595. esac
  21596. case $ac_mode$ac_tag in
  21597. :[FHL]*:*);;
  21598. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21599. :[FH]-) ac_tag=-:-;;
  21600. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21601. esac
  21602. ac_save_IFS=$IFS
  21603. IFS=:
  21604. set x $ac_tag
  21605. IFS=$ac_save_IFS
  21606. shift
  21607. ac_file=$1
  21608. shift
  21609. case $ac_mode in
  21610. :L) ac_source=$1;;
  21611. :[FH])
  21612. ac_file_inputs=
  21613. for ac_f
  21614. do
  21615. case $ac_f in
  21616. -) ac_f="$ac_tmp/stdin";;
  21617. *) # Look for the file first in the build tree, then in the source tree
  21618. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21619. # because $ac_f cannot contain `:'.
  21620. test -f "$ac_f" ||
  21621. case $ac_f in
  21622. [\\/$]*) false;;
  21623. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21624. esac ||
  21625. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21626. esac
  21627. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21628. as_fn_append ac_file_inputs " '$ac_f'"
  21629. done
  21630. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21631. # use $as_me), people would be surprised to read:
  21632. # /* config.h. Generated by config.status. */
  21633. configure_input='Generated from '`
  21634. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21635. `' by configure.'
  21636. if test x"$ac_file" != x-; then
  21637. configure_input="$ac_file. $configure_input"
  21638. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21639. $as_echo "$as_me: creating $ac_file" >&6;}
  21640. fi
  21641. # Neutralize special characters interpreted by sed in replacement strings.
  21642. case $configure_input in #(
  21643. *\&* | *\|* | *\\* )
  21644. ac_sed_conf_input=`$as_echo "$configure_input" |
  21645. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21646. *) ac_sed_conf_input=$configure_input;;
  21647. esac
  21648. case $ac_tag in
  21649. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21650. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21651. esac
  21652. ;;
  21653. esac
  21654. ac_dir=`$as_dirname -- "$ac_file" ||
  21655. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21656. X"$ac_file" : 'X\(//\)[^/]' \| \
  21657. X"$ac_file" : 'X\(//\)$' \| \
  21658. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21659. $as_echo X"$ac_file" |
  21660. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21661. s//\1/
  21662. q
  21663. }
  21664. /^X\(\/\/\)[^/].*/{
  21665. s//\1/
  21666. q
  21667. }
  21668. /^X\(\/\/\)$/{
  21669. s//\1/
  21670. q
  21671. }
  21672. /^X\(\/\).*/{
  21673. s//\1/
  21674. q
  21675. }
  21676. s/.*/./; q'`
  21677. as_dir="$ac_dir"; as_fn_mkdir_p
  21678. ac_builddir=.
  21679. case "$ac_dir" in
  21680. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21681. *)
  21682. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21683. # A ".." for each directory in $ac_dir_suffix.
  21684. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21685. case $ac_top_builddir_sub in
  21686. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21687. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21688. esac ;;
  21689. esac
  21690. ac_abs_top_builddir=$ac_pwd
  21691. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21692. # for backward compatibility:
  21693. ac_top_builddir=$ac_top_build_prefix
  21694. case $srcdir in
  21695. .) # We are building in place.
  21696. ac_srcdir=.
  21697. ac_top_srcdir=$ac_top_builddir_sub
  21698. ac_abs_top_srcdir=$ac_pwd ;;
  21699. [\\/]* | ?:[\\/]* ) # Absolute name.
  21700. ac_srcdir=$srcdir$ac_dir_suffix;
  21701. ac_top_srcdir=$srcdir
  21702. ac_abs_top_srcdir=$srcdir ;;
  21703. *) # Relative name.
  21704. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21705. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21706. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21707. esac
  21708. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21709. case $ac_mode in
  21710. :F)
  21711. #
  21712. # CONFIG_FILE
  21713. #
  21714. case $INSTALL in
  21715. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21716. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21717. esac
  21718. _ACEOF
  21719. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21720. # If the template does not know about datarootdir, expand it.
  21721. # FIXME: This hack should be removed a few years after 2.60.
  21722. ac_datarootdir_hack=; ac_datarootdir_seen=
  21723. ac_sed_dataroot='
  21724. /datarootdir/ {
  21725. p
  21726. q
  21727. }
  21728. /@datadir@/p
  21729. /@docdir@/p
  21730. /@infodir@/p
  21731. /@localedir@/p
  21732. /@mandir@/p'
  21733. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21734. *datarootdir*) ac_datarootdir_seen=yes;;
  21735. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21737. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21738. _ACEOF
  21739. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21740. ac_datarootdir_hack='
  21741. s&@datadir@&$datadir&g
  21742. s&@docdir@&$docdir&g
  21743. s&@infodir@&$infodir&g
  21744. s&@localedir@&$localedir&g
  21745. s&@mandir@&$mandir&g
  21746. s&\\\${datarootdir}&$datarootdir&g' ;;
  21747. esac
  21748. _ACEOF
  21749. # Neutralize VPATH when `$srcdir' = `.'.
  21750. # Shell code in configure.ac might set extrasub.
  21751. # FIXME: do we really want to maintain this feature?
  21752. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21753. ac_sed_extra="$ac_vpsub
  21754. $extrasub
  21755. _ACEOF
  21756. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21757. :t
  21758. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21759. s|@configure_input@|$ac_sed_conf_input|;t t
  21760. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21761. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21762. s&@srcdir@&$ac_srcdir&;t t
  21763. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21764. s&@top_srcdir@&$ac_top_srcdir&;t t
  21765. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21766. s&@builddir@&$ac_builddir&;t t
  21767. s&@abs_builddir@&$ac_abs_builddir&;t t
  21768. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21769. s&@INSTALL@&$ac_INSTALL&;t t
  21770. $ac_datarootdir_hack
  21771. "
  21772. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21773. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21774. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21775. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21776. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21777. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21779. which seems to be undefined. Please make sure it is defined" >&5
  21780. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21781. which seems to be undefined. Please make sure it is defined" >&2;}
  21782. rm -f "$ac_tmp/stdin"
  21783. case $ac_file in
  21784. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21785. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  21786. esac \
  21787. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21788. ;;
  21789. :H)
  21790. #
  21791. # CONFIG_HEADER
  21792. #
  21793. if test x"$ac_file" != x-; then
  21794. {
  21795. $as_echo "/* $configure_input */" \
  21796. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  21797. } >"$ac_tmp/config.h" \
  21798. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21799. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  21800. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  21801. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21802. else
  21803. rm -f "$ac_file"
  21804. mv "$ac_tmp/config.h" "$ac_file" \
  21805. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21806. fi
  21807. else
  21808. $as_echo "/* $configure_input */" \
  21809. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  21810. || as_fn_error $? "could not create -" "$LINENO" 5
  21811. fi
  21812. ;;
  21813. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  21814. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21815. ;;
  21816. esac
  21817. case $ac_file$ac_mode in
  21818. "libtool":C)
  21819. # See if we are running on zsh, and set the options which allow our
  21820. # commands through without removal of \ escapes.
  21821. if test -n "${ZSH_VERSION+set}" ; then
  21822. setopt NO_GLOB_SUBST
  21823. fi
  21824. cfgfile="${ofile}T"
  21825. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  21826. $RM "$cfgfile"
  21827. cat <<_LT_EOF >> "$cfgfile"
  21828. #! $SHELL
  21829. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  21830. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  21831. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21832. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  21833. #
  21834. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21835. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  21836. # Foundation, Inc.
  21837. # Written by Gordon Matzigkeit, 1996
  21838. #
  21839. # This file is part of GNU Libtool.
  21840. #
  21841. # GNU Libtool is free software; you can redistribute it and/or
  21842. # modify it under the terms of the GNU General Public License as
  21843. # published by the Free Software Foundation; either version 2 of
  21844. # the License, or (at your option) any later version.
  21845. #
  21846. # As a special exception to the GNU General Public License,
  21847. # if you distribute this file as part of a program or library that
  21848. # is built using GNU Libtool, you may include this file under the
  21849. # same distribution terms that you use for the rest of that program.
  21850. #
  21851. # GNU Libtool is distributed in the hope that it will be useful,
  21852. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21853. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21854. # GNU General Public License for more details.
  21855. #
  21856. # You should have received a copy of the GNU General Public License
  21857. # along with GNU Libtool; see the file COPYING. If not, a copy
  21858. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  21859. # obtained by writing to the Free Software Foundation, Inc.,
  21860. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21861. # The names of the tagged configurations supported by this script.
  21862. available_tags="CXX "
  21863. # ### BEGIN LIBTOOL CONFIG
  21864. # Which release of libtool.m4 was used?
  21865. macro_version=$macro_version
  21866. macro_revision=$macro_revision
  21867. # Assembler program.
  21868. AS=$lt_AS
  21869. # DLL creation program.
  21870. DLLTOOL=$lt_DLLTOOL
  21871. # Object dumper program.
  21872. OBJDUMP=$lt_OBJDUMP
  21873. # Whether or not to build shared libraries.
  21874. build_libtool_libs=$enable_shared
  21875. # Whether or not to build static libraries.
  21876. build_old_libs=$enable_static
  21877. # What type of objects to build.
  21878. pic_mode=$pic_mode
  21879. # Whether or not to optimize for fast installation.
  21880. fast_install=$enable_fast_install
  21881. # Shell to use when invoking shell scripts.
  21882. SHELL=$lt_SHELL
  21883. # An echo program that protects backslashes.
  21884. ECHO=$lt_ECHO
  21885. # The PATH separator for the build system.
  21886. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21887. # The host system.
  21888. host_alias=$host_alias
  21889. host=$host
  21890. host_os=$host_os
  21891. # The build system.
  21892. build_alias=$build_alias
  21893. build=$build
  21894. build_os=$build_os
  21895. # A sed program that does not truncate output.
  21896. SED=$lt_SED
  21897. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21898. Xsed="\$SED -e 1s/^X//"
  21899. # A grep program that handles long lines.
  21900. GREP=$lt_GREP
  21901. # An ERE matcher.
  21902. EGREP=$lt_EGREP
  21903. # A literal string matcher.
  21904. FGREP=$lt_FGREP
  21905. # A BSD- or MS-compatible name lister.
  21906. NM=$lt_NM
  21907. # Whether we need soft or hard links.
  21908. LN_S=$lt_LN_S
  21909. # What is the maximum length of a command?
  21910. max_cmd_len=$max_cmd_len
  21911. # Object file suffix (normally "o").
  21912. objext=$ac_objext
  21913. # Executable file suffix (normally "").
  21914. exeext=$exeext
  21915. # whether the shell understands "unset".
  21916. lt_unset=$lt_unset
  21917. # turn spaces into newlines.
  21918. SP2NL=$lt_lt_SP2NL
  21919. # turn newlines into spaces.
  21920. NL2SP=$lt_lt_NL2SP
  21921. # convert \$build file names to \$host format.
  21922. to_host_file_cmd=$lt_cv_to_host_file_cmd
  21923. # convert \$build files to toolchain format.
  21924. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  21925. # Method to check whether dependent libraries are shared objects.
  21926. deplibs_check_method=$lt_deplibs_check_method
  21927. # Command to use when deplibs_check_method = "file_magic".
  21928. file_magic_cmd=$lt_file_magic_cmd
  21929. # How to find potential files when deplibs_check_method = "file_magic".
  21930. file_magic_glob=$lt_file_magic_glob
  21931. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  21932. want_nocaseglob=$lt_want_nocaseglob
  21933. # Command to associate shared and link libraries.
  21934. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  21935. # The archiver.
  21936. AR=$lt_AR
  21937. # Flags to create an archive.
  21938. AR_FLAGS=$lt_AR_FLAGS
  21939. # How to feed a file listing to the archiver.
  21940. archiver_list_spec=$lt_archiver_list_spec
  21941. # A symbol stripping program.
  21942. STRIP=$lt_STRIP
  21943. # Commands used to install an old-style archive.
  21944. RANLIB=$lt_RANLIB
  21945. old_postinstall_cmds=$lt_old_postinstall_cmds
  21946. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21947. # Whether to use a lock for old archive extraction.
  21948. lock_old_archive_extraction=$lock_old_archive_extraction
  21949. # A C compiler.
  21950. LTCC=$lt_CC
  21951. # LTCC compiler flags.
  21952. LTCFLAGS=$lt_CFLAGS
  21953. # Take the output of nm and produce a listing of raw symbols and C names.
  21954. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21955. # Transform the output of nm in a proper C declaration.
  21956. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21957. # Transform the output of nm in a C name address pair.
  21958. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21959. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21960. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21961. # Specify filename containing input files for \$NM.
  21962. nm_file_list_spec=$lt_nm_file_list_spec
  21963. # The root where to search for dependent libraries,and in which our libraries should be installed.
  21964. lt_sysroot=$lt_sysroot
  21965. # The name of the directory that contains temporary libtool files.
  21966. objdir=$objdir
  21967. # Used to examine libraries when file_magic_cmd begins with "file".
  21968. MAGIC_CMD=$MAGIC_CMD
  21969. # Must we lock files when doing compilation?
  21970. need_locks=$lt_need_locks
  21971. # Manifest tool.
  21972. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21973. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21974. DSYMUTIL=$lt_DSYMUTIL
  21975. # Tool to change global to local symbols on Mac OS X.
  21976. NMEDIT=$lt_NMEDIT
  21977. # Tool to manipulate fat objects and archives on Mac OS X.
  21978. LIPO=$lt_LIPO
  21979. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21980. OTOOL=$lt_OTOOL
  21981. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21982. OTOOL64=$lt_OTOOL64
  21983. # Old archive suffix (normally "a").
  21984. libext=$libext
  21985. # Shared library suffix (normally ".so").
  21986. shrext_cmds=$lt_shrext_cmds
  21987. # The commands to extract the exported symbol list from a shared archive.
  21988. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21989. # Variables whose values should be saved in libtool wrapper scripts and
  21990. # restored at link time.
  21991. variables_saved_for_relink=$lt_variables_saved_for_relink
  21992. # Do we need the "lib" prefix for modules?
  21993. need_lib_prefix=$need_lib_prefix
  21994. # Do we need a version for libraries?
  21995. need_version=$need_version
  21996. # Library versioning type.
  21997. version_type=$version_type
  21998. # Shared library runtime path variable.
  21999. runpath_var=$runpath_var
  22000. # Shared library path variable.
  22001. shlibpath_var=$shlibpath_var
  22002. # Is shlibpath searched before the hard-coded library search path?
  22003. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22004. # Format of library name prefix.
  22005. libname_spec=$lt_libname_spec
  22006. # List of archive names. First name is the real one, the rest are links.
  22007. # The last name is the one that the linker finds with -lNAME
  22008. library_names_spec=$lt_library_names_spec
  22009. # The coded name of the library, if different from the real name.
  22010. soname_spec=$lt_soname_spec
  22011. # Permission mode override for installation of shared libraries.
  22012. install_override_mode=$lt_install_override_mode
  22013. # Command to use after installation of a shared archive.
  22014. postinstall_cmds=$lt_postinstall_cmds
  22015. # Command to use after uninstallation of a shared archive.
  22016. postuninstall_cmds=$lt_postuninstall_cmds
  22017. # Commands used to finish a libtool library installation in a directory.
  22018. finish_cmds=$lt_finish_cmds
  22019. # As "finish_cmds", except a single script fragment to be evaled but
  22020. # not shown.
  22021. finish_eval=$lt_finish_eval
  22022. # Whether we should hardcode library paths into libraries.
  22023. hardcode_into_libs=$hardcode_into_libs
  22024. # Compile-time system search path for libraries.
  22025. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22026. # Run-time system search path for libraries.
  22027. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22028. # Whether dlopen is supported.
  22029. dlopen_support=$enable_dlopen
  22030. # Whether dlopen of programs is supported.
  22031. dlopen_self=$enable_dlopen_self
  22032. # Whether dlopen of statically linked programs is supported.
  22033. dlopen_self_static=$enable_dlopen_self_static
  22034. # Commands to strip libraries.
  22035. old_striplib=$lt_old_striplib
  22036. striplib=$lt_striplib
  22037. # The linker used to build libraries.
  22038. LD=$lt_LD
  22039. # How to create reloadable object files.
  22040. reload_flag=$lt_reload_flag
  22041. reload_cmds=$lt_reload_cmds
  22042. # Commands used to build an old-style archive.
  22043. old_archive_cmds=$lt_old_archive_cmds
  22044. # A language specific compiler.
  22045. CC=$lt_compiler
  22046. # Is the compiler the GNU compiler?
  22047. with_gcc=$GCC
  22048. # Compiler flag to turn off builtin functions.
  22049. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22050. # Additional compiler flags for building library objects.
  22051. pic_flag=$lt_lt_prog_compiler_pic
  22052. # How to pass a linker flag through the compiler.
  22053. wl=$lt_lt_prog_compiler_wl
  22054. # Compiler flag to prevent dynamic linking.
  22055. link_static_flag=$lt_lt_prog_compiler_static
  22056. # Does compiler simultaneously support -c and -o options?
  22057. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22058. # Whether or not to add -lc for building shared libraries.
  22059. build_libtool_need_lc=$archive_cmds_need_lc
  22060. # Whether or not to disallow shared libs when runtime libs are static.
  22061. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22062. # Compiler flag to allow reflexive dlopens.
  22063. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22064. # Compiler flag to generate shared objects directly from archives.
  22065. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22066. # Whether the compiler copes with passing no objects directly.
  22067. compiler_needs_object=$lt_compiler_needs_object
  22068. # Create an old-style archive from a shared archive.
  22069. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22070. # Create a temporary old-style archive to link instead of a shared archive.
  22071. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22072. # Commands used to build a shared archive.
  22073. archive_cmds=$lt_archive_cmds
  22074. archive_expsym_cmds=$lt_archive_expsym_cmds
  22075. # Commands used to build a loadable module if different from building
  22076. # a shared archive.
  22077. module_cmds=$lt_module_cmds
  22078. module_expsym_cmds=$lt_module_expsym_cmds
  22079. # Whether we are building with GNU ld or not.
  22080. with_gnu_ld=$lt_with_gnu_ld
  22081. # Flag that allows shared libraries with undefined symbols to be built.
  22082. allow_undefined_flag=$lt_allow_undefined_flag
  22083. # Flag that enforces no undefined symbols.
  22084. no_undefined_flag=$lt_no_undefined_flag
  22085. # Flag to hardcode \$libdir into a binary during linking.
  22086. # This must work even if \$libdir does not exist
  22087. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22088. # Whether we need a single "-rpath" flag with a separated argument.
  22089. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22090. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22091. # DIR into the resulting binary.
  22092. hardcode_direct=$hardcode_direct
  22093. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22094. # DIR into the resulting binary and the resulting library dependency is
  22095. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22096. # library is relocated.
  22097. hardcode_direct_absolute=$hardcode_direct_absolute
  22098. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22099. # into the resulting binary.
  22100. hardcode_minus_L=$hardcode_minus_L
  22101. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22102. # into the resulting binary.
  22103. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22104. # Set to "yes" if building a shared library automatically hardcodes DIR
  22105. # into the library and all subsequent libraries and executables linked
  22106. # against it.
  22107. hardcode_automatic=$hardcode_automatic
  22108. # Set to yes if linker adds runtime paths of dependent libraries
  22109. # to runtime path list.
  22110. inherit_rpath=$inherit_rpath
  22111. # Whether libtool must link a program against all its dependency libraries.
  22112. link_all_deplibs=$link_all_deplibs
  22113. # Set to "yes" if exported symbols are required.
  22114. always_export_symbols=$always_export_symbols
  22115. # The commands to list exported symbols.
  22116. export_symbols_cmds=$lt_export_symbols_cmds
  22117. # Symbols that should not be listed in the preloaded symbols.
  22118. exclude_expsyms=$lt_exclude_expsyms
  22119. # Symbols that must always be exported.
  22120. include_expsyms=$lt_include_expsyms
  22121. # Commands necessary for linking programs (against libraries) with templates.
  22122. prelink_cmds=$lt_prelink_cmds
  22123. # Commands necessary for finishing linking programs.
  22124. postlink_cmds=$lt_postlink_cmds
  22125. # Specify filename containing input files.
  22126. file_list_spec=$lt_file_list_spec
  22127. # How to hardcode a shared library path into an executable.
  22128. hardcode_action=$hardcode_action
  22129. # The directories searched by this compiler when creating a shared library.
  22130. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22131. # Dependencies to place before and after the objects being linked to
  22132. # create a shared library.
  22133. predep_objects=$lt_predep_objects
  22134. postdep_objects=$lt_postdep_objects
  22135. predeps=$lt_predeps
  22136. postdeps=$lt_postdeps
  22137. # The library search path used internally by the compiler when linking
  22138. # a shared library.
  22139. compiler_lib_search_path=$lt_compiler_lib_search_path
  22140. # ### END LIBTOOL CONFIG
  22141. _LT_EOF
  22142. case $host_os in
  22143. aix3*)
  22144. cat <<\_LT_EOF >> "$cfgfile"
  22145. # AIX sometimes has problems with the GCC collect2 program. For some
  22146. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22147. # vanish in a puff of smoke.
  22148. if test "X${COLLECT_NAMES+set}" != Xset; then
  22149. COLLECT_NAMES=
  22150. export COLLECT_NAMES
  22151. fi
  22152. _LT_EOF
  22153. ;;
  22154. esac
  22155. ltmain="$ac_aux_dir/ltmain.sh"
  22156. # We use sed instead of cat because bash on DJGPP gets confused if
  22157. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22158. # text mode, it properly converts lines to CR/LF. This bash problem
  22159. # is reportedly fixed, but why not run on old versions too?
  22160. sed '$q' "$ltmain" >> "$cfgfile" \
  22161. || (rm -f "$cfgfile"; exit 1)
  22162. if test x"$xsi_shell" = xyes; then
  22163. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22164. func_dirname ()\
  22165. {\
  22166. \ case ${1} in\
  22167. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22168. \ * ) func_dirname_result="${3}" ;;\
  22169. \ esac\
  22170. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22171. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22172. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22173. test 0 -eq $? || _lt_function_replace_fail=:
  22174. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22175. func_basename ()\
  22176. {\
  22177. \ func_basename_result="${1##*/}"\
  22178. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22179. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22180. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22181. test 0 -eq $? || _lt_function_replace_fail=:
  22182. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22183. func_dirname_and_basename ()\
  22184. {\
  22185. \ case ${1} in\
  22186. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22187. \ * ) func_dirname_result="${3}" ;;\
  22188. \ esac\
  22189. \ func_basename_result="${1##*/}"\
  22190. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22191. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22192. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22193. test 0 -eq $? || _lt_function_replace_fail=:
  22194. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22195. func_stripname ()\
  22196. {\
  22197. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22198. \ # positional parameters, so assign one to ordinary parameter first.\
  22199. \ func_stripname_result=${3}\
  22200. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22201. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22202. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22203. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22204. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22205. test 0 -eq $? || _lt_function_replace_fail=:
  22206. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22207. func_split_long_opt ()\
  22208. {\
  22209. \ func_split_long_opt_name=${1%%=*}\
  22210. \ func_split_long_opt_arg=${1#*=}\
  22211. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22212. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22213. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22214. test 0 -eq $? || _lt_function_replace_fail=:
  22215. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22216. func_split_short_opt ()\
  22217. {\
  22218. \ func_split_short_opt_arg=${1#??}\
  22219. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22220. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22221. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22222. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22223. test 0 -eq $? || _lt_function_replace_fail=:
  22224. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22225. func_lo2o ()\
  22226. {\
  22227. \ case ${1} in\
  22228. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22229. \ *) func_lo2o_result=${1} ;;\
  22230. \ esac\
  22231. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22232. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22233. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22234. test 0 -eq $? || _lt_function_replace_fail=:
  22235. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22236. func_xform ()\
  22237. {\
  22238. func_xform_result=${1%.*}.lo\
  22239. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22240. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22241. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22242. test 0 -eq $? || _lt_function_replace_fail=:
  22243. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22244. func_arith ()\
  22245. {\
  22246. func_arith_result=$(( $* ))\
  22247. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22248. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22249. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22250. test 0 -eq $? || _lt_function_replace_fail=:
  22251. sed -e '/^func_len ()$/,/^} # func_len /c\
  22252. func_len ()\
  22253. {\
  22254. func_len_result=${#1}\
  22255. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22256. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22257. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22258. test 0 -eq $? || _lt_function_replace_fail=:
  22259. fi
  22260. if test x"$lt_shell_append" = xyes; then
  22261. sed -e '/^func_append ()$/,/^} # func_append /c\
  22262. func_append ()\
  22263. {\
  22264. eval "${1}+=\\${2}"\
  22265. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  22266. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22267. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22268. test 0 -eq $? || _lt_function_replace_fail=:
  22269. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  22270. func_append_quoted ()\
  22271. {\
  22272. \ func_quote_for_eval "${2}"\
  22273. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  22274. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  22275. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22276. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22277. test 0 -eq $? || _lt_function_replace_fail=:
  22278. # Save a `func_append' function call where possible by direct use of '+='
  22279. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  22280. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22281. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22282. test 0 -eq $? || _lt_function_replace_fail=:
  22283. else
  22284. # Save a `func_append' function call even when '+=' is not available
  22285. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  22286. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22287. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22288. test 0 -eq $? || _lt_function_replace_fail=:
  22289. fi
  22290. if test x"$_lt_function_replace_fail" = x":"; then
  22291. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  22292. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  22293. fi
  22294. mv -f "$cfgfile" "$ofile" ||
  22295. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22296. chmod +x "$ofile"
  22297. cat <<_LT_EOF >> "$ofile"
  22298. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  22299. # The linker used to build libraries.
  22300. LD=$lt_LD_CXX
  22301. # How to create reloadable object files.
  22302. reload_flag=$lt_reload_flag_CXX
  22303. reload_cmds=$lt_reload_cmds_CXX
  22304. # Commands used to build an old-style archive.
  22305. old_archive_cmds=$lt_old_archive_cmds_CXX
  22306. # A language specific compiler.
  22307. CC=$lt_compiler_CXX
  22308. # Is the compiler the GNU compiler?
  22309. with_gcc=$GCC_CXX
  22310. # Compiler flag to turn off builtin functions.
  22311. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22312. # Additional compiler flags for building library objects.
  22313. pic_flag=$lt_lt_prog_compiler_pic_CXX
  22314. # How to pass a linker flag through the compiler.
  22315. wl=$lt_lt_prog_compiler_wl_CXX
  22316. # Compiler flag to prevent dynamic linking.
  22317. link_static_flag=$lt_lt_prog_compiler_static_CXX
  22318. # Does compiler simultaneously support -c and -o options?
  22319. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22320. # Whether or not to add -lc for building shared libraries.
  22321. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22322. # Whether or not to disallow shared libs when runtime libs are static.
  22323. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22324. # Compiler flag to allow reflexive dlopens.
  22325. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22326. # Compiler flag to generate shared objects directly from archives.
  22327. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22328. # Whether the compiler copes with passing no objects directly.
  22329. compiler_needs_object=$lt_compiler_needs_object_CXX
  22330. # Create an old-style archive from a shared archive.
  22331. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22332. # Create a temporary old-style archive to link instead of a shared archive.
  22333. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22334. # Commands used to build a shared archive.
  22335. archive_cmds=$lt_archive_cmds_CXX
  22336. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22337. # Commands used to build a loadable module if different from building
  22338. # a shared archive.
  22339. module_cmds=$lt_module_cmds_CXX
  22340. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  22341. # Whether we are building with GNU ld or not.
  22342. with_gnu_ld=$lt_with_gnu_ld_CXX
  22343. # Flag that allows shared libraries with undefined symbols to be built.
  22344. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  22345. # Flag that enforces no undefined symbols.
  22346. no_undefined_flag=$lt_no_undefined_flag_CXX
  22347. # Flag to hardcode \$libdir into a binary during linking.
  22348. # This must work even if \$libdir does not exist
  22349. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  22350. # Whether we need a single "-rpath" flag with a separated argument.
  22351. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  22352. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22353. # DIR into the resulting binary.
  22354. hardcode_direct=$hardcode_direct_CXX
  22355. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22356. # DIR into the resulting binary and the resulting library dependency is
  22357. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22358. # library is relocated.
  22359. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  22360. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22361. # into the resulting binary.
  22362. hardcode_minus_L=$hardcode_minus_L_CXX
  22363. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22364. # into the resulting binary.
  22365. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  22366. # Set to "yes" if building a shared library automatically hardcodes DIR
  22367. # into the library and all subsequent libraries and executables linked
  22368. # against it.
  22369. hardcode_automatic=$hardcode_automatic_CXX
  22370. # Set to yes if linker adds runtime paths of dependent libraries
  22371. # to runtime path list.
  22372. inherit_rpath=$inherit_rpath_CXX
  22373. # Whether libtool must link a program against all its dependency libraries.
  22374. link_all_deplibs=$link_all_deplibs_CXX
  22375. # Set to "yes" if exported symbols are required.
  22376. always_export_symbols=$always_export_symbols_CXX
  22377. # The commands to list exported symbols.
  22378. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  22379. # Symbols that should not be listed in the preloaded symbols.
  22380. exclude_expsyms=$lt_exclude_expsyms_CXX
  22381. # Symbols that must always be exported.
  22382. include_expsyms=$lt_include_expsyms_CXX
  22383. # Commands necessary for linking programs (against libraries) with templates.
  22384. prelink_cmds=$lt_prelink_cmds_CXX
  22385. # Commands necessary for finishing linking programs.
  22386. postlink_cmds=$lt_postlink_cmds_CXX
  22387. # Specify filename containing input files.
  22388. file_list_spec=$lt_file_list_spec_CXX
  22389. # How to hardcode a shared library path into an executable.
  22390. hardcode_action=$hardcode_action_CXX
  22391. # The directories searched by this compiler when creating a shared library.
  22392. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  22393. # Dependencies to place before and after the objects being linked to
  22394. # create a shared library.
  22395. predep_objects=$lt_predep_objects_CXX
  22396. postdep_objects=$lt_postdep_objects_CXX
  22397. predeps=$lt_predeps_CXX
  22398. postdeps=$lt_postdeps_CXX
  22399. # The library search path used internally by the compiler when linking
  22400. # a shared library.
  22401. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  22402. # ### END LIBTOOL TAG CONFIG: CXX
  22403. _LT_EOF
  22404. ;;
  22405. "sdl2_config":C) chmod a+x sdl2-config ;;
  22406. "summary":C) echo -en "$SUMMARY" ;;
  22407. esac
  22408. done # for ac_tag
  22409. as_fn_exit 0
  22410. _ACEOF
  22411. ac_clean_files=$ac_clean_files_save
  22412. test $ac_write_fail = 0 ||
  22413. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  22414. # configure is writing to config.log, and then calls config.status.
  22415. # config.status does its own redirection, appending to config.log.
  22416. # Unfortunately, on DOS this fails, as config.log is still kept open
  22417. # by configure, so config.status won't be able to write to it; its
  22418. # output is simply discarded. So we exec the FD to /dev/null,
  22419. # effectively closing config.log, so it can be properly (re)opened and
  22420. # appended to by config.status. When coming back to configure, we
  22421. # need to make the FD available again.
  22422. if test "$no_create" != yes; then
  22423. ac_cs_success=:
  22424. ac_config_status_args=
  22425. test "$silent" = yes &&
  22426. ac_config_status_args="$ac_config_status_args --quiet"
  22427. exec 5>/dev/null
  22428. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22429. exec 5>>config.log
  22430. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22431. # would make configure fail if this is the last instruction.
  22432. $ac_cs_success || as_fn_exit 1
  22433. fi
  22434. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22435. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22436. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22437. fi