configure 770 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301
  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_xdbe
  778. enable_video_x11_xinerama
  779. enable_video_x11_xinput
  780. enable_video_x11_xrandr
  781. enable_video_x11_scrnsaver
  782. enable_video_x11_xshape
  783. enable_video_x11_vm
  784. enable_video_vivante
  785. enable_video_cocoa
  786. enable_video_directfb
  787. enable_directfb_shared
  788. enable_fusionsound
  789. enable_fusionsound_shared
  790. enable_video_dummy
  791. enable_video_opengl
  792. enable_video_opengles
  793. enable_video_opengles1
  794. enable_video_opengles2
  795. enable_libudev
  796. enable_dbus
  797. enable_ibus
  798. enable_input_tslib
  799. enable_pthreads
  800. enable_pthread_sem
  801. enable_directx
  802. enable_sdl_dlopen
  803. enable_clock_gettime
  804. enable_rpath
  805. enable_render_d3d
  806. '
  807. ac_precious_vars='build_alias
  808. host_alias
  809. target_alias
  810. CC
  811. CFLAGS
  812. LDFLAGS
  813. LIBS
  814. CPPFLAGS
  815. CPP
  816. CXX
  817. CXXFLAGS
  818. CCC
  819. CXXCPP
  820. XMKMF'
  821. # Initialize some variables set by options.
  822. ac_init_help=
  823. ac_init_version=false
  824. ac_unrecognized_opts=
  825. ac_unrecognized_sep=
  826. # The variables have the same names as the options, with
  827. # dashes changed to underlines.
  828. cache_file=/dev/null
  829. exec_prefix=NONE
  830. no_create=
  831. no_recursion=
  832. prefix=NONE
  833. program_prefix=NONE
  834. program_suffix=NONE
  835. program_transform_name=s,x,x,
  836. silent=
  837. site=
  838. srcdir=
  839. verbose=
  840. x_includes=NONE
  841. x_libraries=NONE
  842. # Installation directory options.
  843. # These are left unexpanded so users can "make install exec_prefix=/foo"
  844. # and all the variables that are supposed to be based on exec_prefix
  845. # by default will actually change.
  846. # Use braces instead of parens because sh, perl, etc. also accept them.
  847. # (The list follows the same order as the GNU Coding Standards.)
  848. bindir='${exec_prefix}/bin'
  849. sbindir='${exec_prefix}/sbin'
  850. libexecdir='${exec_prefix}/libexec'
  851. datarootdir='${prefix}/share'
  852. datadir='${datarootdir}'
  853. sysconfdir='${prefix}/etc'
  854. sharedstatedir='${prefix}/com'
  855. localstatedir='${prefix}/var'
  856. includedir='${prefix}/include'
  857. oldincludedir='/usr/include'
  858. docdir='${datarootdir}/doc/${PACKAGE}'
  859. infodir='${datarootdir}/info'
  860. htmldir='${docdir}'
  861. dvidir='${docdir}'
  862. pdfdir='${docdir}'
  863. psdir='${docdir}'
  864. libdir='${exec_prefix}/lib'
  865. localedir='${datarootdir}/locale'
  866. mandir='${datarootdir}/man'
  867. ac_prev=
  868. ac_dashdash=
  869. for ac_option
  870. do
  871. # If the previous option needs an argument, assign it.
  872. if test -n "$ac_prev"; then
  873. eval $ac_prev=\$ac_option
  874. ac_prev=
  875. continue
  876. fi
  877. case $ac_option in
  878. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  879. *=) ac_optarg= ;;
  880. *) ac_optarg=yes ;;
  881. esac
  882. # Accept the important Cygnus configure options, so we can diagnose typos.
  883. case $ac_dashdash$ac_option in
  884. --)
  885. ac_dashdash=yes ;;
  886. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  887. ac_prev=bindir ;;
  888. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  889. bindir=$ac_optarg ;;
  890. -build | --build | --buil | --bui | --bu)
  891. ac_prev=build_alias ;;
  892. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  893. build_alias=$ac_optarg ;;
  894. -cache-file | --cache-file | --cache-fil | --cache-fi \
  895. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  896. ac_prev=cache_file ;;
  897. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  898. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  899. cache_file=$ac_optarg ;;
  900. --config-cache | -C)
  901. cache_file=config.cache ;;
  902. -datadir | --datadir | --datadi | --datad)
  903. ac_prev=datadir ;;
  904. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  905. datadir=$ac_optarg ;;
  906. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  907. | --dataroo | --dataro | --datar)
  908. ac_prev=datarootdir ;;
  909. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  910. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  911. datarootdir=$ac_optarg ;;
  912. -disable-* | --disable-*)
  913. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  914. # Reject names that are not valid shell variable names.
  915. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  916. as_fn_error $? "invalid feature name: $ac_useropt"
  917. ac_useropt_orig=$ac_useropt
  918. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  919. case $ac_user_opts in
  920. *"
  921. "enable_$ac_useropt"
  922. "*) ;;
  923. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  924. ac_unrecognized_sep=', ';;
  925. esac
  926. eval enable_$ac_useropt=no ;;
  927. -docdir | --docdir | --docdi | --doc | --do)
  928. ac_prev=docdir ;;
  929. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  930. docdir=$ac_optarg ;;
  931. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  932. ac_prev=dvidir ;;
  933. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  934. dvidir=$ac_optarg ;;
  935. -enable-* | --enable-*)
  936. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  937. # Reject names that are not valid shell variable names.
  938. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  939. as_fn_error $? "invalid feature name: $ac_useropt"
  940. ac_useropt_orig=$ac_useropt
  941. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  942. case $ac_user_opts in
  943. *"
  944. "enable_$ac_useropt"
  945. "*) ;;
  946. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  947. ac_unrecognized_sep=', ';;
  948. esac
  949. eval enable_$ac_useropt=\$ac_optarg ;;
  950. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  951. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  952. | --exec | --exe | --ex)
  953. ac_prev=exec_prefix ;;
  954. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  955. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  956. | --exec=* | --exe=* | --ex=*)
  957. exec_prefix=$ac_optarg ;;
  958. -gas | --gas | --ga | --g)
  959. # Obsolete; use --with-gas.
  960. with_gas=yes ;;
  961. -help | --help | --hel | --he | -h)
  962. ac_init_help=long ;;
  963. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  964. ac_init_help=recursive ;;
  965. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  966. ac_init_help=short ;;
  967. -host | --host | --hos | --ho)
  968. ac_prev=host_alias ;;
  969. -host=* | --host=* | --hos=* | --ho=*)
  970. host_alias=$ac_optarg ;;
  971. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  972. ac_prev=htmldir ;;
  973. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  974. | --ht=*)
  975. htmldir=$ac_optarg ;;
  976. -includedir | --includedir | --includedi | --included | --include \
  977. | --includ | --inclu | --incl | --inc)
  978. ac_prev=includedir ;;
  979. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  980. | --includ=* | --inclu=* | --incl=* | --inc=*)
  981. includedir=$ac_optarg ;;
  982. -infodir | --infodir | --infodi | --infod | --info | --inf)
  983. ac_prev=infodir ;;
  984. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  985. infodir=$ac_optarg ;;
  986. -libdir | --libdir | --libdi | --libd)
  987. ac_prev=libdir ;;
  988. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  989. libdir=$ac_optarg ;;
  990. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  991. | --libexe | --libex | --libe)
  992. ac_prev=libexecdir ;;
  993. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  994. | --libexe=* | --libex=* | --libe=*)
  995. libexecdir=$ac_optarg ;;
  996. -localedir | --localedir | --localedi | --localed | --locale)
  997. ac_prev=localedir ;;
  998. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  999. localedir=$ac_optarg ;;
  1000. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1001. | --localstate | --localstat | --localsta | --localst | --locals)
  1002. ac_prev=localstatedir ;;
  1003. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1004. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1005. localstatedir=$ac_optarg ;;
  1006. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1007. ac_prev=mandir ;;
  1008. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1009. mandir=$ac_optarg ;;
  1010. -nfp | --nfp | --nf)
  1011. # Obsolete; use --without-fp.
  1012. with_fp=no ;;
  1013. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1014. | --no-cr | --no-c | -n)
  1015. no_create=yes ;;
  1016. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1017. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1018. no_recursion=yes ;;
  1019. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1020. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1021. | --oldin | --oldi | --old | --ol | --o)
  1022. ac_prev=oldincludedir ;;
  1023. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1024. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1025. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1026. oldincludedir=$ac_optarg ;;
  1027. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1028. ac_prev=prefix ;;
  1029. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1030. prefix=$ac_optarg ;;
  1031. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1032. | --program-pre | --program-pr | --program-p)
  1033. ac_prev=program_prefix ;;
  1034. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1035. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1036. program_prefix=$ac_optarg ;;
  1037. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1038. | --program-suf | --program-su | --program-s)
  1039. ac_prev=program_suffix ;;
  1040. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1041. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1042. program_suffix=$ac_optarg ;;
  1043. -program-transform-name | --program-transform-name \
  1044. | --program-transform-nam | --program-transform-na \
  1045. | --program-transform-n | --program-transform- \
  1046. | --program-transform | --program-transfor \
  1047. | --program-transfo | --program-transf \
  1048. | --program-trans | --program-tran \
  1049. | --progr-tra | --program-tr | --program-t)
  1050. ac_prev=program_transform_name ;;
  1051. -program-transform-name=* | --program-transform-name=* \
  1052. | --program-transform-nam=* | --program-transform-na=* \
  1053. | --program-transform-n=* | --program-transform-=* \
  1054. | --program-transform=* | --program-transfor=* \
  1055. | --program-transfo=* | --program-transf=* \
  1056. | --program-trans=* | --program-tran=* \
  1057. | --progr-tra=* | --program-tr=* | --program-t=*)
  1058. program_transform_name=$ac_optarg ;;
  1059. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1060. ac_prev=pdfdir ;;
  1061. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1062. pdfdir=$ac_optarg ;;
  1063. -psdir | --psdir | --psdi | --psd | --ps)
  1064. ac_prev=psdir ;;
  1065. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1066. psdir=$ac_optarg ;;
  1067. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1068. | -silent | --silent | --silen | --sile | --sil)
  1069. silent=yes ;;
  1070. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1071. ac_prev=sbindir ;;
  1072. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1073. | --sbi=* | --sb=*)
  1074. sbindir=$ac_optarg ;;
  1075. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1076. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1077. | --sharedst | --shareds | --shared | --share | --shar \
  1078. | --sha | --sh)
  1079. ac_prev=sharedstatedir ;;
  1080. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1081. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1082. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1083. | --sha=* | --sh=*)
  1084. sharedstatedir=$ac_optarg ;;
  1085. -site | --site | --sit)
  1086. ac_prev=site ;;
  1087. -site=* | --site=* | --sit=*)
  1088. site=$ac_optarg ;;
  1089. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1090. ac_prev=srcdir ;;
  1091. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1092. srcdir=$ac_optarg ;;
  1093. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1094. | --syscon | --sysco | --sysc | --sys | --sy)
  1095. ac_prev=sysconfdir ;;
  1096. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1097. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1098. sysconfdir=$ac_optarg ;;
  1099. -target | --target | --targe | --targ | --tar | --ta | --t)
  1100. ac_prev=target_alias ;;
  1101. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1102. target_alias=$ac_optarg ;;
  1103. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1104. verbose=yes ;;
  1105. -version | --version | --versio | --versi | --vers | -V)
  1106. ac_init_version=: ;;
  1107. -with-* | --with-*)
  1108. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1109. # Reject names that are not valid shell variable names.
  1110. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1111. as_fn_error $? "invalid package name: $ac_useropt"
  1112. ac_useropt_orig=$ac_useropt
  1113. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1114. case $ac_user_opts in
  1115. *"
  1116. "with_$ac_useropt"
  1117. "*) ;;
  1118. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1119. ac_unrecognized_sep=', ';;
  1120. esac
  1121. eval with_$ac_useropt=\$ac_optarg ;;
  1122. -without-* | --without-*)
  1123. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1124. # Reject names that are not valid shell variable names.
  1125. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1126. as_fn_error $? "invalid package name: $ac_useropt"
  1127. ac_useropt_orig=$ac_useropt
  1128. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1129. case $ac_user_opts in
  1130. *"
  1131. "with_$ac_useropt"
  1132. "*) ;;
  1133. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1134. ac_unrecognized_sep=', ';;
  1135. esac
  1136. eval with_$ac_useropt=no ;;
  1137. --x)
  1138. # Obsolete; use --with-x.
  1139. with_x=yes ;;
  1140. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1141. | --x-incl | --x-inc | --x-in | --x-i)
  1142. ac_prev=x_includes ;;
  1143. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1144. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1145. x_includes=$ac_optarg ;;
  1146. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1147. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1148. ac_prev=x_libraries ;;
  1149. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1150. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1151. x_libraries=$ac_optarg ;;
  1152. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1153. Try \`$0 --help' for more information"
  1154. ;;
  1155. *=*)
  1156. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1157. # Reject names that are not valid shell variable names.
  1158. case $ac_envvar in #(
  1159. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1160. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1161. esac
  1162. eval $ac_envvar=\$ac_optarg
  1163. export $ac_envvar ;;
  1164. *)
  1165. # FIXME: should be removed in autoconf 3.0.
  1166. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1167. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1168. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1169. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1170. ;;
  1171. esac
  1172. done
  1173. if test -n "$ac_prev"; then
  1174. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1175. as_fn_error $? "missing argument to $ac_option"
  1176. fi
  1177. if test -n "$ac_unrecognized_opts"; then
  1178. case $enable_option_checking in
  1179. no) ;;
  1180. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1181. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1182. esac
  1183. fi
  1184. # Check all directory arguments for consistency.
  1185. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1186. datadir sysconfdir sharedstatedir localstatedir includedir \
  1187. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1188. libdir localedir mandir
  1189. do
  1190. eval ac_val=\$$ac_var
  1191. # Remove trailing slashes.
  1192. case $ac_val in
  1193. */ )
  1194. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1195. eval $ac_var=\$ac_val;;
  1196. esac
  1197. # Be sure to have absolute directory names.
  1198. case $ac_val in
  1199. [\\/$]* | ?:[\\/]* ) continue;;
  1200. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1201. esac
  1202. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1203. done
  1204. # There might be people who depend on the old broken behavior: `$host'
  1205. # used to hold the argument of --host etc.
  1206. # FIXME: To remove some day.
  1207. build=$build_alias
  1208. host=$host_alias
  1209. target=$target_alias
  1210. # FIXME: To remove some day.
  1211. if test "x$host_alias" != x; then
  1212. if test "x$build_alias" = x; then
  1213. cross_compiling=maybe
  1214. elif test "x$build_alias" != "x$host_alias"; then
  1215. cross_compiling=yes
  1216. fi
  1217. fi
  1218. ac_tool_prefix=
  1219. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1220. test "$silent" = yes && exec 6>/dev/null
  1221. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1222. ac_ls_di=`ls -di .` &&
  1223. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1224. as_fn_error $? "working directory cannot be determined"
  1225. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1226. as_fn_error $? "pwd does not report name of working directory"
  1227. # Find the source files, if location was not specified.
  1228. if test -z "$srcdir"; then
  1229. ac_srcdir_defaulted=yes
  1230. # Try the directory containing this script, then the parent directory.
  1231. ac_confdir=`$as_dirname -- "$as_myself" ||
  1232. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1233. X"$as_myself" : 'X\(//\)[^/]' \| \
  1234. X"$as_myself" : 'X\(//\)$' \| \
  1235. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1236. $as_echo X"$as_myself" |
  1237. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1238. s//\1/
  1239. q
  1240. }
  1241. /^X\(\/\/\)[^/].*/{
  1242. s//\1/
  1243. q
  1244. }
  1245. /^X\(\/\/\)$/{
  1246. s//\1/
  1247. q
  1248. }
  1249. /^X\(\/\).*/{
  1250. s//\1/
  1251. q
  1252. }
  1253. s/.*/./; q'`
  1254. srcdir=$ac_confdir
  1255. if test ! -r "$srcdir/$ac_unique_file"; then
  1256. srcdir=..
  1257. fi
  1258. else
  1259. ac_srcdir_defaulted=no
  1260. fi
  1261. if test ! -r "$srcdir/$ac_unique_file"; then
  1262. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1263. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1264. fi
  1265. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1266. ac_abs_confdir=`(
  1267. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1268. pwd)`
  1269. # When building in place, set srcdir=.
  1270. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1271. srcdir=.
  1272. fi
  1273. # Remove unnecessary trailing slashes from srcdir.
  1274. # Double slashes in file names in object file debugging info
  1275. # mess up M-x gdb in Emacs.
  1276. case $srcdir in
  1277. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1278. esac
  1279. for ac_var in $ac_precious_vars; do
  1280. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1281. eval ac_env_${ac_var}_value=\$${ac_var}
  1282. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1283. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1284. done
  1285. #
  1286. # Report the --help message.
  1287. #
  1288. if test "$ac_init_help" = "long"; then
  1289. # Omit some internal or obsolete options to make the list less imposing.
  1290. # This message is too long to be a string in the A/UX 3.1 sh.
  1291. cat <<_ACEOF
  1292. \`configure' configures this package to adapt to many kinds of systems.
  1293. Usage: $0 [OPTION]... [VAR=VALUE]...
  1294. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1295. VAR=VALUE. See below for descriptions of some of the useful variables.
  1296. Defaults for the options are specified in brackets.
  1297. Configuration:
  1298. -h, --help display this help and exit
  1299. --help=short display options specific to this package
  1300. --help=recursive display the short help of all the included packages
  1301. -V, --version display version information and exit
  1302. -q, --quiet, --silent do not print \`checking ...' messages
  1303. --cache-file=FILE cache test results in FILE [disabled]
  1304. -C, --config-cache alias for \`--cache-file=config.cache'
  1305. -n, --no-create do not create output files
  1306. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1307. Installation directories:
  1308. --prefix=PREFIX install architecture-independent files in PREFIX
  1309. [$ac_default_prefix]
  1310. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1311. [PREFIX]
  1312. By default, \`make install' will install all the files in
  1313. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1314. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1315. for instance \`--prefix=\$HOME'.
  1316. For better control, use the options below.
  1317. Fine tuning of the installation directories:
  1318. --bindir=DIR user executables [EPREFIX/bin]
  1319. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1320. --libexecdir=DIR program executables [EPREFIX/libexec]
  1321. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1322. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1323. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1324. --libdir=DIR object code libraries [EPREFIX/lib]
  1325. --includedir=DIR C header files [PREFIX/include]
  1326. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1327. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1328. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1329. --infodir=DIR info documentation [DATAROOTDIR/info]
  1330. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1331. --mandir=DIR man documentation [DATAROOTDIR/man]
  1332. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1333. --htmldir=DIR html documentation [DOCDIR]
  1334. --dvidir=DIR dvi documentation [DOCDIR]
  1335. --pdfdir=DIR pdf documentation [DOCDIR]
  1336. --psdir=DIR ps documentation [DOCDIR]
  1337. _ACEOF
  1338. cat <<\_ACEOF
  1339. X features:
  1340. --x-includes=DIR X include files are in DIR
  1341. --x-libraries=DIR X library files are in DIR
  1342. System types:
  1343. --build=BUILD configure for building on BUILD [guessed]
  1344. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1345. _ACEOF
  1346. fi
  1347. if test -n "$ac_init_help"; then
  1348. cat <<\_ACEOF
  1349. Optional Features:
  1350. --disable-option-checking ignore unrecognized --enable/--with options
  1351. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1352. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1353. --enable-shared[=PKGS] build shared libraries [default=yes]
  1354. --enable-static[=PKGS] build static libraries [default=yes]
  1355. --enable-fast-install[=PKGS]
  1356. optimize for fast installation [default=yes]
  1357. --disable-libtool-lock avoid locking (might break parallel builds)
  1358. --enable-assertions Enable internal sanity checks
  1359. (auto/disabled/release/enabled/paranoid)
  1360. [[default=auto]]
  1361. --enable-dependency-tracking
  1362. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1363. --enable-libc Use the system C library [[default=yes]]
  1364. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1365. --enable-atomic Enable the atomic operations subsystem
  1366. [[default=yes]]
  1367. --enable-audio Enable the audio subsystem [[default=yes]]
  1368. --enable-video Enable the video subsystem [[default=yes]]
  1369. --enable-render Enable the render subsystem [[default=yes]]
  1370. --enable-events Enable the events subsystem [[default=yes]]
  1371. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1372. --enable-haptic Enable the haptic (force feedback) subsystem
  1373. [[default=yes]]
  1374. --enable-power Enable the power subsystem [[default=yes]]
  1375. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1376. --enable-threads Enable the threading subsystem [[default=yes]]
  1377. --enable-timers Enable the timer subsystem [[default=yes]]
  1378. --enable-file Enable the file subsystem [[default=yes]]
  1379. --enable-loadso Enable the shared object loading subsystem
  1380. [[default=yes]]
  1381. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1382. --enable-assembly Enable assembly routines [[default=yes]]
  1383. --enable-ssemath Allow GCC to use SSE floating point math
  1384. [[default=no]]
  1385. --enable-mmx use MMX assembly routines [[default=yes]]
  1386. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1387. --enable-sse use SSE assembly routines [[default=yes]]
  1388. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1389. --enable-altivec use Altivec assembly routines [[default=yes]]
  1390. --enable-oss support the OSS audio API [[default=maybe]]
  1391. --enable-alsa support the ALSA audio API [[default=yes]]
  1392. --disable-alsatest Do not try to compile and run a test Alsa program
  1393. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1394. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1395. --disable-esdtest Do not try to compile and run a test ESD program
  1396. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1397. --enable-pulseaudio use PulseAudio [[default=yes]]
  1398. --enable-pulseaudio-shared
  1399. dynamically load PulseAudio support [[default=yes]]
  1400. --enable-arts support the Analog Real Time Synthesizer
  1401. [[default=yes]]
  1402. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1403. --enable-nas support the NAS audio API [[default=yes]]
  1404. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1405. --enable-sndio support the sndio audio API [[default=yes]]
  1406. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1407. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1408. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1409. --enable-video-wayland use Wayland video driver [[default=yes]]
  1410. --enable-video-wayland-qt-touch
  1411. QtWayland server support for Wayland video driver
  1412. [[default=yes]]
  1413. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1414. --enable-video-mir use Mir video driver [[default=yes]]
  1415. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1416. --enable-video-x11 use X11 video driver [[default=yes]]
  1417. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1418. --enable-video-x11-xcursor
  1419. enable X11 Xcursor support [[default=yes]]
  1420. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1421. --enable-video-x11-xinerama
  1422. enable X11 Xinerama support [[default=yes]]
  1423. --enable-video-x11-xinput
  1424. enable X11 XInput extension for manymouse, tablets,
  1425. etc [[default=yes]]
  1426. --enable-video-x11-xrandr
  1427. enable X11 Xrandr extension for fullscreen
  1428. [[default=yes]]
  1429. --enable-video-x11-scrnsaver
  1430. enable X11 screensaver extension [[default=yes]]
  1431. --enable-video-x11-xshape
  1432. enable X11 XShape support [[default=yes]]
  1433. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1434. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1435. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1436. --enable-video-directfb use DirectFB video driver [[default=no]]
  1437. --enable-directfb-shared
  1438. dynamically load directfb support [[default=yes]]
  1439. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1440. --enable-fusionsound-shared
  1441. dynamically load fusionsound audio support
  1442. [[default=yes]]
  1443. --enable-video-dummy use dummy video driver [[default=yes]]
  1444. --enable-video-opengl include OpenGL support [[default=yes]]
  1445. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1446. --enable-video-opengles1
  1447. include OpenGL ES 1.1 support [[default=yes]]
  1448. --enable-video-opengles2
  1449. include OpenGL ES 2.0 support [[default=yes]]
  1450. --enable-libudev enable libudev support [[default=yes]]
  1451. --enable-dbus enable D-Bus support [[default=yes]]
  1452. --enable-ibus enable IBus support [[default=yes]]
  1453. --enable-input-tslib use the Touchscreen library for input
  1454. [[default=yes]]
  1455. --enable-pthreads use POSIX threads for multi-threading
  1456. [[default=yes]]
  1457. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1458. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1459. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1460. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1461. UNIX [[default=yes]]
  1462. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1463. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1464. Optional Packages:
  1465. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1466. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1467. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1468. both]
  1469. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1470. --with-sysroot=DIR Search for dependent libraries within DIR
  1471. (or the compiler's sysroot if not specified).
  1472. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1473. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1474. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1475. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1476. --with-x use the X Window System
  1477. Some influential environment variables:
  1478. CC C compiler command
  1479. CFLAGS C compiler flags
  1480. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1481. nonstandard directory <lib dir>
  1482. LIBS libraries to pass to the linker, e.g. -l<library>
  1483. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1484. you have headers in a nonstandard directory <include dir>
  1485. CPP C preprocessor
  1486. CXX C++ compiler command
  1487. CXXFLAGS C++ compiler flags
  1488. CXXCPP C++ preprocessor
  1489. XMKMF Path to xmkmf, Makefile generator for X Window System
  1490. Use these variables to override the choices made by `configure' or to help
  1491. it to find libraries and programs with nonstandard names/locations.
  1492. Report bugs to the package provider.
  1493. _ACEOF
  1494. ac_status=$?
  1495. fi
  1496. if test "$ac_init_help" = "recursive"; then
  1497. # If there are subdirs, report their specific --help.
  1498. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1499. test -d "$ac_dir" ||
  1500. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1501. continue
  1502. ac_builddir=.
  1503. case "$ac_dir" in
  1504. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1505. *)
  1506. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1507. # A ".." for each directory in $ac_dir_suffix.
  1508. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1509. case $ac_top_builddir_sub in
  1510. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1511. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1512. esac ;;
  1513. esac
  1514. ac_abs_top_builddir=$ac_pwd
  1515. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1516. # for backward compatibility:
  1517. ac_top_builddir=$ac_top_build_prefix
  1518. case $srcdir in
  1519. .) # We are building in place.
  1520. ac_srcdir=.
  1521. ac_top_srcdir=$ac_top_builddir_sub
  1522. ac_abs_top_srcdir=$ac_pwd ;;
  1523. [\\/]* | ?:[\\/]* ) # Absolute name.
  1524. ac_srcdir=$srcdir$ac_dir_suffix;
  1525. ac_top_srcdir=$srcdir
  1526. ac_abs_top_srcdir=$srcdir ;;
  1527. *) # Relative name.
  1528. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1529. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1530. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1531. esac
  1532. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1533. cd "$ac_dir" || { ac_status=$?; continue; }
  1534. # Check for guested configure.
  1535. if test -f "$ac_srcdir/configure.gnu"; then
  1536. echo &&
  1537. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1538. elif test -f "$ac_srcdir/configure"; then
  1539. echo &&
  1540. $SHELL "$ac_srcdir/configure" --help=recursive
  1541. else
  1542. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1543. fi || ac_status=$?
  1544. cd "$ac_pwd" || { ac_status=$?; break; }
  1545. done
  1546. fi
  1547. test -n "$ac_init_help" && exit $ac_status
  1548. if $ac_init_version; then
  1549. cat <<\_ACEOF
  1550. configure
  1551. generated by GNU Autoconf 2.69
  1552. Copyright (C) 2012 Free Software Foundation, Inc.
  1553. This configure script is free software; the Free Software Foundation
  1554. gives unlimited permission to copy, distribute and modify it.
  1555. _ACEOF
  1556. exit
  1557. fi
  1558. ## ------------------------ ##
  1559. ## Autoconf initialization. ##
  1560. ## ------------------------ ##
  1561. # ac_fn_c_try_compile LINENO
  1562. # --------------------------
  1563. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1564. ac_fn_c_try_compile ()
  1565. {
  1566. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1567. rm -f conftest.$ac_objext
  1568. if { { ac_try="$ac_compile"
  1569. case "(($ac_try" in
  1570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1571. *) ac_try_echo=$ac_try;;
  1572. esac
  1573. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1574. $as_echo "$ac_try_echo"; } >&5
  1575. (eval "$ac_compile") 2>conftest.err
  1576. ac_status=$?
  1577. if test -s conftest.err; then
  1578. grep -v '^ *+' conftest.err >conftest.er1
  1579. cat conftest.er1 >&5
  1580. mv -f conftest.er1 conftest.err
  1581. fi
  1582. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1583. test $ac_status = 0; } && {
  1584. test -z "$ac_c_werror_flag" ||
  1585. test ! -s conftest.err
  1586. } && test -s conftest.$ac_objext; then :
  1587. ac_retval=0
  1588. else
  1589. $as_echo "$as_me: failed program was:" >&5
  1590. sed 's/^/| /' conftest.$ac_ext >&5
  1591. ac_retval=1
  1592. fi
  1593. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1594. as_fn_set_status $ac_retval
  1595. } # ac_fn_c_try_compile
  1596. # ac_fn_c_try_link LINENO
  1597. # -----------------------
  1598. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1599. ac_fn_c_try_link ()
  1600. {
  1601. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1602. rm -f conftest.$ac_objext conftest$ac_exeext
  1603. if { { ac_try="$ac_link"
  1604. case "(($ac_try" in
  1605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1606. *) ac_try_echo=$ac_try;;
  1607. esac
  1608. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1609. $as_echo "$ac_try_echo"; } >&5
  1610. (eval "$ac_link") 2>conftest.err
  1611. ac_status=$?
  1612. if test -s conftest.err; then
  1613. grep -v '^ *+' conftest.err >conftest.er1
  1614. cat conftest.er1 >&5
  1615. mv -f conftest.er1 conftest.err
  1616. fi
  1617. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1618. test $ac_status = 0; } && {
  1619. test -z "$ac_c_werror_flag" ||
  1620. test ! -s conftest.err
  1621. } && test -s conftest$ac_exeext && {
  1622. test "$cross_compiling" = yes ||
  1623. test -x conftest$ac_exeext
  1624. }; then :
  1625. ac_retval=0
  1626. else
  1627. $as_echo "$as_me: failed program was:" >&5
  1628. sed 's/^/| /' conftest.$ac_ext >&5
  1629. ac_retval=1
  1630. fi
  1631. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1632. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1633. # interfere with the next link command; also delete a directory that is
  1634. # left behind by Apple's compiler. We do this before executing the actions.
  1635. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1636. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1637. as_fn_set_status $ac_retval
  1638. } # ac_fn_c_try_link
  1639. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1640. # -------------------------------------------------------
  1641. # Tests whether HEADER exists and can be compiled using the include files in
  1642. # INCLUDES, setting the cache variable VAR accordingly.
  1643. ac_fn_c_check_header_compile ()
  1644. {
  1645. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1647. $as_echo_n "checking for $2... " >&6; }
  1648. if eval \${$3+:} false; then :
  1649. $as_echo_n "(cached) " >&6
  1650. else
  1651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1652. /* end confdefs.h. */
  1653. $4
  1654. #include <$2>
  1655. _ACEOF
  1656. if ac_fn_c_try_compile "$LINENO"; then :
  1657. eval "$3=yes"
  1658. else
  1659. eval "$3=no"
  1660. fi
  1661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1662. fi
  1663. eval ac_res=\$$3
  1664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1665. $as_echo "$ac_res" >&6; }
  1666. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1667. } # ac_fn_c_check_header_compile
  1668. # ac_fn_c_try_cpp LINENO
  1669. # ----------------------
  1670. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1671. ac_fn_c_try_cpp ()
  1672. {
  1673. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1674. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1675. case "(($ac_try" in
  1676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1677. *) ac_try_echo=$ac_try;;
  1678. esac
  1679. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1680. $as_echo "$ac_try_echo"; } >&5
  1681. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1682. ac_status=$?
  1683. if test -s conftest.err; then
  1684. grep -v '^ *+' conftest.err >conftest.er1
  1685. cat conftest.er1 >&5
  1686. mv -f conftest.er1 conftest.err
  1687. fi
  1688. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1689. test $ac_status = 0; } > conftest.i && {
  1690. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1691. test ! -s conftest.err
  1692. }; then :
  1693. ac_retval=0
  1694. else
  1695. $as_echo "$as_me: failed program was:" >&5
  1696. sed 's/^/| /' conftest.$ac_ext >&5
  1697. ac_retval=1
  1698. fi
  1699. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1700. as_fn_set_status $ac_retval
  1701. } # ac_fn_c_try_cpp
  1702. # ac_fn_c_try_run LINENO
  1703. # ----------------------
  1704. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1705. # that executables *can* be run.
  1706. ac_fn_c_try_run ()
  1707. {
  1708. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1709. if { { ac_try="$ac_link"
  1710. case "(($ac_try" in
  1711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1712. *) ac_try_echo=$ac_try;;
  1713. esac
  1714. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1715. $as_echo "$ac_try_echo"; } >&5
  1716. (eval "$ac_link") 2>&5
  1717. ac_status=$?
  1718. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1719. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1720. { { case "(($ac_try" in
  1721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1722. *) ac_try_echo=$ac_try;;
  1723. esac
  1724. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1725. $as_echo "$ac_try_echo"; } >&5
  1726. (eval "$ac_try") 2>&5
  1727. ac_status=$?
  1728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1729. test $ac_status = 0; }; }; then :
  1730. ac_retval=0
  1731. else
  1732. $as_echo "$as_me: program exited with status $ac_status" >&5
  1733. $as_echo "$as_me: failed program was:" >&5
  1734. sed 's/^/| /' conftest.$ac_ext >&5
  1735. ac_retval=$ac_status
  1736. fi
  1737. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1738. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1739. as_fn_set_status $ac_retval
  1740. } # ac_fn_c_try_run
  1741. # ac_fn_c_check_func LINENO FUNC VAR
  1742. # ----------------------------------
  1743. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1744. ac_fn_c_check_func ()
  1745. {
  1746. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1748. $as_echo_n "checking for $2... " >&6; }
  1749. if eval \${$3+:} false; then :
  1750. $as_echo_n "(cached) " >&6
  1751. else
  1752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1753. /* end confdefs.h. */
  1754. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1755. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1756. #define $2 innocuous_$2
  1757. /* System header to define __stub macros and hopefully few prototypes,
  1758. which can conflict with char $2 (); below.
  1759. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1760. <limits.h> exists even on freestanding compilers. */
  1761. #ifdef __STDC__
  1762. # include <limits.h>
  1763. #else
  1764. # include <assert.h>
  1765. #endif
  1766. #undef $2
  1767. /* Override any GCC internal prototype to avoid an error.
  1768. Use char because int might match the return type of a GCC
  1769. builtin and then its argument prototype would still apply. */
  1770. #ifdef __cplusplus
  1771. extern "C"
  1772. #endif
  1773. char $2 ();
  1774. /* The GNU C library defines this for functions which it implements
  1775. to always fail with ENOSYS. Some functions are actually named
  1776. something starting with __ and the normal name is an alias. */
  1777. #if defined __stub_$2 || defined __stub___$2
  1778. choke me
  1779. #endif
  1780. int
  1781. main ()
  1782. {
  1783. return $2 ();
  1784. ;
  1785. return 0;
  1786. }
  1787. _ACEOF
  1788. if ac_fn_c_try_link "$LINENO"; then :
  1789. eval "$3=yes"
  1790. else
  1791. eval "$3=no"
  1792. fi
  1793. rm -f core conftest.err conftest.$ac_objext \
  1794. conftest$ac_exeext conftest.$ac_ext
  1795. fi
  1796. eval ac_res=\$$3
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1798. $as_echo "$ac_res" >&6; }
  1799. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1800. } # ac_fn_c_check_func
  1801. # ac_fn_cxx_try_compile LINENO
  1802. # ----------------------------
  1803. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1804. ac_fn_cxx_try_compile ()
  1805. {
  1806. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1807. rm -f conftest.$ac_objext
  1808. if { { ac_try="$ac_compile"
  1809. case "(($ac_try" in
  1810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1811. *) ac_try_echo=$ac_try;;
  1812. esac
  1813. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1814. $as_echo "$ac_try_echo"; } >&5
  1815. (eval "$ac_compile") 2>conftest.err
  1816. ac_status=$?
  1817. if test -s conftest.err; then
  1818. grep -v '^ *+' conftest.err >conftest.er1
  1819. cat conftest.er1 >&5
  1820. mv -f conftest.er1 conftest.err
  1821. fi
  1822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1823. test $ac_status = 0; } && {
  1824. test -z "$ac_cxx_werror_flag" ||
  1825. test ! -s conftest.err
  1826. } && test -s conftest.$ac_objext; then :
  1827. ac_retval=0
  1828. else
  1829. $as_echo "$as_me: failed program was:" >&5
  1830. sed 's/^/| /' conftest.$ac_ext >&5
  1831. ac_retval=1
  1832. fi
  1833. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1834. as_fn_set_status $ac_retval
  1835. } # ac_fn_cxx_try_compile
  1836. # ac_fn_cxx_try_cpp LINENO
  1837. # ------------------------
  1838. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1839. ac_fn_cxx_try_cpp ()
  1840. {
  1841. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1842. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1843. case "(($ac_try" in
  1844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1845. *) ac_try_echo=$ac_try;;
  1846. esac
  1847. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1848. $as_echo "$ac_try_echo"; } >&5
  1849. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1850. ac_status=$?
  1851. if test -s conftest.err; then
  1852. grep -v '^ *+' conftest.err >conftest.er1
  1853. cat conftest.er1 >&5
  1854. mv -f conftest.er1 conftest.err
  1855. fi
  1856. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1857. test $ac_status = 0; } > conftest.i && {
  1858. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1859. test ! -s conftest.err
  1860. }; then :
  1861. ac_retval=0
  1862. else
  1863. $as_echo "$as_me: failed program was:" >&5
  1864. sed 's/^/| /' conftest.$ac_ext >&5
  1865. ac_retval=1
  1866. fi
  1867. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1868. as_fn_set_status $ac_retval
  1869. } # ac_fn_cxx_try_cpp
  1870. # ac_fn_cxx_try_link LINENO
  1871. # -------------------------
  1872. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1873. ac_fn_cxx_try_link ()
  1874. {
  1875. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1876. rm -f conftest.$ac_objext conftest$ac_exeext
  1877. if { { ac_try="$ac_link"
  1878. case "(($ac_try" in
  1879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1880. *) ac_try_echo=$ac_try;;
  1881. esac
  1882. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1883. $as_echo "$ac_try_echo"; } >&5
  1884. (eval "$ac_link") 2>conftest.err
  1885. ac_status=$?
  1886. if test -s conftest.err; then
  1887. grep -v '^ *+' conftest.err >conftest.er1
  1888. cat conftest.er1 >&5
  1889. mv -f conftest.er1 conftest.err
  1890. fi
  1891. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1892. test $ac_status = 0; } && {
  1893. test -z "$ac_cxx_werror_flag" ||
  1894. test ! -s conftest.err
  1895. } && test -s conftest$ac_exeext && {
  1896. test "$cross_compiling" = yes ||
  1897. test -x conftest$ac_exeext
  1898. }; then :
  1899. ac_retval=0
  1900. else
  1901. $as_echo "$as_me: failed program was:" >&5
  1902. sed 's/^/| /' conftest.$ac_ext >&5
  1903. ac_retval=1
  1904. fi
  1905. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1906. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1907. # interfere with the next link command; also delete a directory that is
  1908. # left behind by Apple's compiler. We do this before executing the actions.
  1909. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1910. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1911. as_fn_set_status $ac_retval
  1912. } # ac_fn_cxx_try_link
  1913. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1914. # -------------------------------------------------------
  1915. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1916. # the include files in INCLUDES and setting the cache variable VAR
  1917. # accordingly.
  1918. ac_fn_c_check_header_mongrel ()
  1919. {
  1920. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1921. if eval \${$3+:} false; then :
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1923. $as_echo_n "checking for $2... " >&6; }
  1924. if eval \${$3+:} false; then :
  1925. $as_echo_n "(cached) " >&6
  1926. fi
  1927. eval ac_res=\$$3
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1929. $as_echo "$ac_res" >&6; }
  1930. else
  1931. # Is the header compilable?
  1932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1933. $as_echo_n "checking $2 usability... " >&6; }
  1934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1935. /* end confdefs.h. */
  1936. $4
  1937. #include <$2>
  1938. _ACEOF
  1939. if ac_fn_c_try_compile "$LINENO"; then :
  1940. ac_header_compiler=yes
  1941. else
  1942. ac_header_compiler=no
  1943. fi
  1944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1946. $as_echo "$ac_header_compiler" >&6; }
  1947. # Is the header present?
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1949. $as_echo_n "checking $2 presence... " >&6; }
  1950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1951. /* end confdefs.h. */
  1952. #include <$2>
  1953. _ACEOF
  1954. if ac_fn_c_try_cpp "$LINENO"; then :
  1955. ac_header_preproc=yes
  1956. else
  1957. ac_header_preproc=no
  1958. fi
  1959. rm -f conftest.err conftest.i conftest.$ac_ext
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1961. $as_echo "$ac_header_preproc" >&6; }
  1962. # So? What about this header?
  1963. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1964. yes:no: )
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1966. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1968. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1969. ;;
  1970. no:yes:* )
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1972. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1974. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1976. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1978. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1980. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1981. ;;
  1982. esac
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1984. $as_echo_n "checking for $2... " >&6; }
  1985. if eval \${$3+:} false; then :
  1986. $as_echo_n "(cached) " >&6
  1987. else
  1988. eval "$3=\$ac_header_compiler"
  1989. fi
  1990. eval ac_res=\$$3
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1992. $as_echo "$ac_res" >&6; }
  1993. fi
  1994. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1995. } # ac_fn_c_check_header_mongrel
  1996. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1997. # -------------------------------------------
  1998. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1999. # variable VAR accordingly.
  2000. ac_fn_c_check_type ()
  2001. {
  2002. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2004. $as_echo_n "checking for $2... " >&6; }
  2005. if eval \${$3+:} false; then :
  2006. $as_echo_n "(cached) " >&6
  2007. else
  2008. eval "$3=no"
  2009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2010. /* end confdefs.h. */
  2011. $4
  2012. int
  2013. main ()
  2014. {
  2015. if (sizeof ($2))
  2016. return 0;
  2017. ;
  2018. return 0;
  2019. }
  2020. _ACEOF
  2021. if ac_fn_c_try_compile "$LINENO"; then :
  2022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2023. /* end confdefs.h. */
  2024. $4
  2025. int
  2026. main ()
  2027. {
  2028. if (sizeof (($2)))
  2029. return 0;
  2030. ;
  2031. return 0;
  2032. }
  2033. _ACEOF
  2034. if ac_fn_c_try_compile "$LINENO"; then :
  2035. else
  2036. eval "$3=yes"
  2037. fi
  2038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2039. fi
  2040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2041. fi
  2042. eval ac_res=\$$3
  2043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2044. $as_echo "$ac_res" >&6; }
  2045. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2046. } # ac_fn_c_check_type
  2047. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2048. # ----------------------------------------------------
  2049. # Tries to find if the field MEMBER exists in type AGGR, after including
  2050. # INCLUDES, setting cache variable VAR accordingly.
  2051. ac_fn_c_check_member ()
  2052. {
  2053. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2055. $as_echo_n "checking for $2.$3... " >&6; }
  2056. if eval \${$4+:} false; then :
  2057. $as_echo_n "(cached) " >&6
  2058. else
  2059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2060. /* end confdefs.h. */
  2061. $5
  2062. int
  2063. main ()
  2064. {
  2065. static $2 ac_aggr;
  2066. if (ac_aggr.$3)
  2067. return 0;
  2068. ;
  2069. return 0;
  2070. }
  2071. _ACEOF
  2072. if ac_fn_c_try_compile "$LINENO"; then :
  2073. eval "$4=yes"
  2074. else
  2075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2076. /* end confdefs.h. */
  2077. $5
  2078. int
  2079. main ()
  2080. {
  2081. static $2 ac_aggr;
  2082. if (sizeof ac_aggr.$3)
  2083. return 0;
  2084. ;
  2085. return 0;
  2086. }
  2087. _ACEOF
  2088. if ac_fn_c_try_compile "$LINENO"; then :
  2089. eval "$4=yes"
  2090. else
  2091. eval "$4=no"
  2092. fi
  2093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2094. fi
  2095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2096. fi
  2097. eval ac_res=\$$4
  2098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2099. $as_echo "$ac_res" >&6; }
  2100. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2101. } # ac_fn_c_check_member
  2102. cat >config.log <<_ACEOF
  2103. This file contains any messages produced by compilers while
  2104. running configure, to aid debugging if configure makes a mistake.
  2105. It was created by $as_me, which was
  2106. generated by GNU Autoconf 2.69. Invocation command line was
  2107. $ $0 $@
  2108. _ACEOF
  2109. exec 5>>config.log
  2110. {
  2111. cat <<_ASUNAME
  2112. ## --------- ##
  2113. ## Platform. ##
  2114. ## --------- ##
  2115. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2116. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2117. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2118. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2119. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2120. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2121. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2122. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2123. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2124. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2125. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2126. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2127. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2128. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2129. _ASUNAME
  2130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2131. for as_dir in $PATH
  2132. do
  2133. IFS=$as_save_IFS
  2134. test -z "$as_dir" && as_dir=.
  2135. $as_echo "PATH: $as_dir"
  2136. done
  2137. IFS=$as_save_IFS
  2138. } >&5
  2139. cat >&5 <<_ACEOF
  2140. ## ----------- ##
  2141. ## Core tests. ##
  2142. ## ----------- ##
  2143. _ACEOF
  2144. # Keep a trace of the command line.
  2145. # Strip out --no-create and --no-recursion so they do not pile up.
  2146. # Strip out --silent because we don't want to record it for future runs.
  2147. # Also quote any args containing shell meta-characters.
  2148. # Make two passes to allow for proper duplicate-argument suppression.
  2149. ac_configure_args=
  2150. ac_configure_args0=
  2151. ac_configure_args1=
  2152. ac_must_keep_next=false
  2153. for ac_pass in 1 2
  2154. do
  2155. for ac_arg
  2156. do
  2157. case $ac_arg in
  2158. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2159. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2160. | -silent | --silent | --silen | --sile | --sil)
  2161. continue ;;
  2162. *\'*)
  2163. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2164. esac
  2165. case $ac_pass in
  2166. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2167. 2)
  2168. as_fn_append ac_configure_args1 " '$ac_arg'"
  2169. if test $ac_must_keep_next = true; then
  2170. ac_must_keep_next=false # Got value, back to normal.
  2171. else
  2172. case $ac_arg in
  2173. *=* | --config-cache | -C | -disable-* | --disable-* \
  2174. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2175. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2176. | -with-* | --with-* | -without-* | --without-* | --x)
  2177. case "$ac_configure_args0 " in
  2178. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2179. esac
  2180. ;;
  2181. -* ) ac_must_keep_next=true ;;
  2182. esac
  2183. fi
  2184. as_fn_append ac_configure_args " '$ac_arg'"
  2185. ;;
  2186. esac
  2187. done
  2188. done
  2189. { ac_configure_args0=; unset ac_configure_args0;}
  2190. { ac_configure_args1=; unset ac_configure_args1;}
  2191. # When interrupted or exit'd, cleanup temporary files, and complete
  2192. # config.log. We remove comments because anyway the quotes in there
  2193. # would cause problems or look ugly.
  2194. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2195. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2196. trap 'exit_status=$?
  2197. # Save into config.log some information that might help in debugging.
  2198. {
  2199. echo
  2200. $as_echo "## ---------------- ##
  2201. ## Cache variables. ##
  2202. ## ---------------- ##"
  2203. echo
  2204. # The following way of writing the cache mishandles newlines in values,
  2205. (
  2206. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2207. eval ac_val=\$$ac_var
  2208. case $ac_val in #(
  2209. *${as_nl}*)
  2210. case $ac_var in #(
  2211. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2212. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2213. esac
  2214. case $ac_var in #(
  2215. _ | IFS | as_nl) ;; #(
  2216. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2217. *) { eval $ac_var=; unset $ac_var;} ;;
  2218. esac ;;
  2219. esac
  2220. done
  2221. (set) 2>&1 |
  2222. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2223. *${as_nl}ac_space=\ *)
  2224. sed -n \
  2225. "s/'\''/'\''\\\\'\'''\''/g;
  2226. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2227. ;; #(
  2228. *)
  2229. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2230. ;;
  2231. esac |
  2232. sort
  2233. )
  2234. echo
  2235. $as_echo "## ----------------- ##
  2236. ## Output variables. ##
  2237. ## ----------------- ##"
  2238. echo
  2239. for ac_var in $ac_subst_vars
  2240. do
  2241. eval ac_val=\$$ac_var
  2242. case $ac_val in
  2243. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2244. esac
  2245. $as_echo "$ac_var='\''$ac_val'\''"
  2246. done | sort
  2247. echo
  2248. if test -n "$ac_subst_files"; then
  2249. $as_echo "## ------------------- ##
  2250. ## File substitutions. ##
  2251. ## ------------------- ##"
  2252. echo
  2253. for ac_var in $ac_subst_files
  2254. do
  2255. eval ac_val=\$$ac_var
  2256. case $ac_val in
  2257. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2258. esac
  2259. $as_echo "$ac_var='\''$ac_val'\''"
  2260. done | sort
  2261. echo
  2262. fi
  2263. if test -s confdefs.h; then
  2264. $as_echo "## ----------- ##
  2265. ## confdefs.h. ##
  2266. ## ----------- ##"
  2267. echo
  2268. cat confdefs.h
  2269. echo
  2270. fi
  2271. test "$ac_signal" != 0 &&
  2272. $as_echo "$as_me: caught signal $ac_signal"
  2273. $as_echo "$as_me: exit $exit_status"
  2274. } >&5
  2275. rm -f core *.core core.conftest.* &&
  2276. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2277. exit $exit_status
  2278. ' 0
  2279. for ac_signal in 1 2 13 15; do
  2280. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2281. done
  2282. ac_signal=0
  2283. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2284. rm -f -r conftest* confdefs.h
  2285. $as_echo "/* confdefs.h */" > confdefs.h
  2286. # Predefined preprocessor variables.
  2287. cat >>confdefs.h <<_ACEOF
  2288. #define PACKAGE_NAME "$PACKAGE_NAME"
  2289. _ACEOF
  2290. cat >>confdefs.h <<_ACEOF
  2291. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2292. _ACEOF
  2293. cat >>confdefs.h <<_ACEOF
  2294. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2295. _ACEOF
  2296. cat >>confdefs.h <<_ACEOF
  2297. #define PACKAGE_STRING "$PACKAGE_STRING"
  2298. _ACEOF
  2299. cat >>confdefs.h <<_ACEOF
  2300. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2301. _ACEOF
  2302. cat >>confdefs.h <<_ACEOF
  2303. #define PACKAGE_URL "$PACKAGE_URL"
  2304. _ACEOF
  2305. # Let the site file select an alternate cache file if it wants to.
  2306. # Prefer an explicitly selected file to automatically selected ones.
  2307. ac_site_file1=NONE
  2308. ac_site_file2=NONE
  2309. if test -n "$CONFIG_SITE"; then
  2310. # We do not want a PATH search for config.site.
  2311. case $CONFIG_SITE in #((
  2312. -*) ac_site_file1=./$CONFIG_SITE;;
  2313. */*) ac_site_file1=$CONFIG_SITE;;
  2314. *) ac_site_file1=./$CONFIG_SITE;;
  2315. esac
  2316. elif test "x$prefix" != xNONE; then
  2317. ac_site_file1=$prefix/share/config.site
  2318. ac_site_file2=$prefix/etc/config.site
  2319. else
  2320. ac_site_file1=$ac_default_prefix/share/config.site
  2321. ac_site_file2=$ac_default_prefix/etc/config.site
  2322. fi
  2323. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2324. do
  2325. test "x$ac_site_file" = xNONE && continue
  2326. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2328. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2329. sed 's/^/| /' "$ac_site_file" >&5
  2330. . "$ac_site_file" \
  2331. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2332. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2333. as_fn_error $? "failed to load site script $ac_site_file
  2334. See \`config.log' for more details" "$LINENO" 5; }
  2335. fi
  2336. done
  2337. if test -r "$cache_file"; then
  2338. # Some versions of bash will fail to source /dev/null (special files
  2339. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2340. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2341. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2342. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2343. case $cache_file in
  2344. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2345. *) . "./$cache_file";;
  2346. esac
  2347. fi
  2348. else
  2349. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2350. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2351. >$cache_file
  2352. fi
  2353. # Check that the precious variables saved in the cache have kept the same
  2354. # value.
  2355. ac_cache_corrupted=false
  2356. for ac_var in $ac_precious_vars; do
  2357. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2358. eval ac_new_set=\$ac_env_${ac_var}_set
  2359. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2360. eval ac_new_val=\$ac_env_${ac_var}_value
  2361. case $ac_old_set,$ac_new_set in
  2362. set,)
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2364. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2365. ac_cache_corrupted=: ;;
  2366. ,set)
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2368. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2369. ac_cache_corrupted=: ;;
  2370. ,);;
  2371. *)
  2372. if test "x$ac_old_val" != "x$ac_new_val"; then
  2373. # differences in whitespace do not lead to failure.
  2374. ac_old_val_w=`echo x $ac_old_val`
  2375. ac_new_val_w=`echo x $ac_new_val`
  2376. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2377. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2378. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2379. ac_cache_corrupted=:
  2380. else
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2382. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2383. eval $ac_var=\$ac_old_val
  2384. fi
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2386. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2388. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2389. fi;;
  2390. esac
  2391. # Pass precious variables to config.status.
  2392. if test "$ac_new_set" = set; then
  2393. case $ac_new_val in
  2394. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2395. *) ac_arg=$ac_var=$ac_new_val ;;
  2396. esac
  2397. case " $ac_configure_args " in
  2398. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2399. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2400. esac
  2401. fi
  2402. done
  2403. if $ac_cache_corrupted; then
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2405. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2407. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2408. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2409. fi
  2410. ## -------------------- ##
  2411. ## Main body of script. ##
  2412. ## -------------------- ##
  2413. ac_ext=c
  2414. ac_cpp='$CPP $CPPFLAGS'
  2415. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2416. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2417. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2418. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2419. ac_aux_dir=
  2420. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2421. if test -f "$ac_dir/install-sh"; then
  2422. ac_aux_dir=$ac_dir
  2423. ac_install_sh="$ac_aux_dir/install-sh -c"
  2424. break
  2425. elif test -f "$ac_dir/install.sh"; then
  2426. ac_aux_dir=$ac_dir
  2427. ac_install_sh="$ac_aux_dir/install.sh -c"
  2428. break
  2429. elif test -f "$ac_dir/shtool"; then
  2430. ac_aux_dir=$ac_dir
  2431. ac_install_sh="$ac_aux_dir/shtool install -c"
  2432. break
  2433. fi
  2434. done
  2435. if test -z "$ac_aux_dir"; then
  2436. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2437. fi
  2438. # These three variables are undocumented and unsupported,
  2439. # and are intended to be withdrawn in a future Autoconf release.
  2440. # They can cause serious problems if a builder's source tree is in a directory
  2441. # whose full name contains unusual characters.
  2442. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2443. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2444. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2445. orig_CFLAGS="$CFLAGS"
  2446. #
  2447. # Making releases:
  2448. # Edit include/SDL_version.h and change the version, then:
  2449. # SDL_MICRO_VERSION += 1;
  2450. # SDL_INTERFACE_AGE += 1;
  2451. # SDL_BINARY_AGE += 1;
  2452. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2453. # if backwards compatibility has been broken,
  2454. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2455. #
  2456. SDL_MAJOR_VERSION=2
  2457. SDL_MINOR_VERSION=0
  2458. SDL_MICRO_VERSION=4
  2459. SDL_INTERFACE_AGE=0
  2460. SDL_BINARY_AGE=4
  2461. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2462. # libtool versioning
  2463. case `pwd` in
  2464. *\ * | *\ *)
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2466. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2467. esac
  2468. macro_version='2.4.2'
  2469. macro_revision='1.3337'
  2470. ltmain="$ac_aux_dir/ltmain.sh"
  2471. # Make sure we can run config.sub.
  2472. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2473. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2475. $as_echo_n "checking build system type... " >&6; }
  2476. if ${ac_cv_build+:} false; then :
  2477. $as_echo_n "(cached) " >&6
  2478. else
  2479. ac_build_alias=$build_alias
  2480. test "x$ac_build_alias" = x &&
  2481. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2482. test "x$ac_build_alias" = x &&
  2483. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2484. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2485. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2486. fi
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2488. $as_echo "$ac_cv_build" >&6; }
  2489. case $ac_cv_build in
  2490. *-*-*) ;;
  2491. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2492. esac
  2493. build=$ac_cv_build
  2494. ac_save_IFS=$IFS; IFS='-'
  2495. set x $ac_cv_build
  2496. shift
  2497. build_cpu=$1
  2498. build_vendor=$2
  2499. shift; shift
  2500. # Remember, the first character of IFS is used to create $*,
  2501. # except with old shells:
  2502. build_os=$*
  2503. IFS=$ac_save_IFS
  2504. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2506. $as_echo_n "checking host system type... " >&6; }
  2507. if ${ac_cv_host+:} false; then :
  2508. $as_echo_n "(cached) " >&6
  2509. else
  2510. if test "x$host_alias" = x; then
  2511. ac_cv_host=$ac_cv_build
  2512. else
  2513. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2514. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2515. fi
  2516. fi
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2518. $as_echo "$ac_cv_host" >&6; }
  2519. case $ac_cv_host in
  2520. *-*-*) ;;
  2521. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2522. esac
  2523. host=$ac_cv_host
  2524. ac_save_IFS=$IFS; IFS='-'
  2525. set x $ac_cv_host
  2526. shift
  2527. host_cpu=$1
  2528. host_vendor=$2
  2529. shift; shift
  2530. # Remember, the first character of IFS is used to create $*,
  2531. # except with old shells:
  2532. host_os=$*
  2533. IFS=$ac_save_IFS
  2534. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2535. # Backslashify metacharacters that are still active within
  2536. # double-quoted strings.
  2537. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2538. # Same as above, but do not quote variable references.
  2539. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2540. # Sed substitution to delay expansion of an escaped shell variable in a
  2541. # double_quote_subst'ed string.
  2542. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2543. # Sed substitution to delay expansion of an escaped single quote.
  2544. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2545. # Sed substitution to avoid accidental globbing in evaled expressions
  2546. no_glob_subst='s/\*/\\\*/g'
  2547. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2548. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2549. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2551. $as_echo_n "checking how to print strings... " >&6; }
  2552. # Test print first, because it will be a builtin if present.
  2553. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2554. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2555. ECHO='print -r --'
  2556. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2557. ECHO='printf %s\n'
  2558. else
  2559. # Use this function as a fallback that always works.
  2560. func_fallback_echo ()
  2561. {
  2562. eval 'cat <<_LTECHO_EOF
  2563. $1
  2564. _LTECHO_EOF'
  2565. }
  2566. ECHO='func_fallback_echo'
  2567. fi
  2568. # func_echo_all arg...
  2569. # Invoke $ECHO with all args, space-separated.
  2570. func_echo_all ()
  2571. {
  2572. $ECHO ""
  2573. }
  2574. case "$ECHO" in
  2575. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2576. $as_echo "printf" >&6; } ;;
  2577. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2578. $as_echo "print -r" >&6; } ;;
  2579. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2580. $as_echo "cat" >&6; } ;;
  2581. esac
  2582. ac_ext=c
  2583. ac_cpp='$CPP $CPPFLAGS'
  2584. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2585. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2586. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2587. if test -n "$ac_tool_prefix"; then
  2588. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2589. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2591. $as_echo_n "checking for $ac_word... " >&6; }
  2592. if ${ac_cv_prog_CC+:} false; then :
  2593. $as_echo_n "(cached) " >&6
  2594. else
  2595. if test -n "$CC"; then
  2596. ac_cv_prog_CC="$CC" # Let the user override the test.
  2597. else
  2598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2599. for as_dir in $PATH
  2600. do
  2601. IFS=$as_save_IFS
  2602. test -z "$as_dir" && as_dir=.
  2603. for ac_exec_ext in '' $ac_executable_extensions; do
  2604. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2605. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2606. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2607. break 2
  2608. fi
  2609. done
  2610. done
  2611. IFS=$as_save_IFS
  2612. fi
  2613. fi
  2614. CC=$ac_cv_prog_CC
  2615. if test -n "$CC"; then
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2617. $as_echo "$CC" >&6; }
  2618. else
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2620. $as_echo "no" >&6; }
  2621. fi
  2622. fi
  2623. if test -z "$ac_cv_prog_CC"; then
  2624. ac_ct_CC=$CC
  2625. # Extract the first word of "gcc", so it can be a program name with args.
  2626. set dummy gcc; ac_word=$2
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2628. $as_echo_n "checking for $ac_word... " >&6; }
  2629. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2630. $as_echo_n "(cached) " >&6
  2631. else
  2632. if test -n "$ac_ct_CC"; then
  2633. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2634. else
  2635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2636. for as_dir in $PATH
  2637. do
  2638. IFS=$as_save_IFS
  2639. test -z "$as_dir" && as_dir=.
  2640. for ac_exec_ext in '' $ac_executable_extensions; do
  2641. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2642. ac_cv_prog_ac_ct_CC="gcc"
  2643. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2644. break 2
  2645. fi
  2646. done
  2647. done
  2648. IFS=$as_save_IFS
  2649. fi
  2650. fi
  2651. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2652. if test -n "$ac_ct_CC"; then
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2654. $as_echo "$ac_ct_CC" >&6; }
  2655. else
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2657. $as_echo "no" >&6; }
  2658. fi
  2659. if test "x$ac_ct_CC" = x; then
  2660. CC=""
  2661. else
  2662. case $cross_compiling:$ac_tool_warned in
  2663. yes:)
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2665. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2666. ac_tool_warned=yes ;;
  2667. esac
  2668. CC=$ac_ct_CC
  2669. fi
  2670. else
  2671. CC="$ac_cv_prog_CC"
  2672. fi
  2673. if test -z "$CC"; then
  2674. if test -n "$ac_tool_prefix"; then
  2675. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2676. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2678. $as_echo_n "checking for $ac_word... " >&6; }
  2679. if ${ac_cv_prog_CC+:} false; then :
  2680. $as_echo_n "(cached) " >&6
  2681. else
  2682. if test -n "$CC"; then
  2683. ac_cv_prog_CC="$CC" # Let the user override the test.
  2684. else
  2685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2686. for as_dir in $PATH
  2687. do
  2688. IFS=$as_save_IFS
  2689. test -z "$as_dir" && as_dir=.
  2690. for ac_exec_ext in '' $ac_executable_extensions; do
  2691. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2692. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2693. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2694. break 2
  2695. fi
  2696. done
  2697. done
  2698. IFS=$as_save_IFS
  2699. fi
  2700. fi
  2701. CC=$ac_cv_prog_CC
  2702. if test -n "$CC"; then
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2704. $as_echo "$CC" >&6; }
  2705. else
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2707. $as_echo "no" >&6; }
  2708. fi
  2709. fi
  2710. fi
  2711. if test -z "$CC"; then
  2712. # Extract the first word of "cc", so it can be a program name with args.
  2713. set dummy cc; ac_word=$2
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2715. $as_echo_n "checking for $ac_word... " >&6; }
  2716. if ${ac_cv_prog_CC+:} false; then :
  2717. $as_echo_n "(cached) " >&6
  2718. else
  2719. if test -n "$CC"; then
  2720. ac_cv_prog_CC="$CC" # Let the user override the test.
  2721. else
  2722. ac_prog_rejected=no
  2723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2724. for as_dir in $PATH
  2725. do
  2726. IFS=$as_save_IFS
  2727. test -z "$as_dir" && as_dir=.
  2728. for ac_exec_ext in '' $ac_executable_extensions; do
  2729. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2730. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2731. ac_prog_rejected=yes
  2732. continue
  2733. fi
  2734. ac_cv_prog_CC="cc"
  2735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2736. break 2
  2737. fi
  2738. done
  2739. done
  2740. IFS=$as_save_IFS
  2741. if test $ac_prog_rejected = yes; then
  2742. # We found a bogon in the path, so make sure we never use it.
  2743. set dummy $ac_cv_prog_CC
  2744. shift
  2745. if test $# != 0; then
  2746. # We chose a different compiler from the bogus one.
  2747. # However, it has the same basename, so the bogon will be chosen
  2748. # first if we set CC to just the basename; use the full file name.
  2749. shift
  2750. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2751. fi
  2752. fi
  2753. fi
  2754. fi
  2755. CC=$ac_cv_prog_CC
  2756. if test -n "$CC"; then
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2758. $as_echo "$CC" >&6; }
  2759. else
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2761. $as_echo "no" >&6; }
  2762. fi
  2763. fi
  2764. if test -z "$CC"; then
  2765. if test -n "$ac_tool_prefix"; then
  2766. for ac_prog in cl.exe
  2767. do
  2768. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2769. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2771. $as_echo_n "checking for $ac_word... " >&6; }
  2772. if ${ac_cv_prog_CC+:} false; then :
  2773. $as_echo_n "(cached) " >&6
  2774. else
  2775. if test -n "$CC"; then
  2776. ac_cv_prog_CC="$CC" # Let the user override the test.
  2777. else
  2778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2779. for as_dir in $PATH
  2780. do
  2781. IFS=$as_save_IFS
  2782. test -z "$as_dir" && as_dir=.
  2783. for ac_exec_ext in '' $ac_executable_extensions; do
  2784. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2785. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2787. break 2
  2788. fi
  2789. done
  2790. done
  2791. IFS=$as_save_IFS
  2792. fi
  2793. fi
  2794. CC=$ac_cv_prog_CC
  2795. if test -n "$CC"; then
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2797. $as_echo "$CC" >&6; }
  2798. else
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2800. $as_echo "no" >&6; }
  2801. fi
  2802. test -n "$CC" && break
  2803. done
  2804. fi
  2805. if test -z "$CC"; then
  2806. ac_ct_CC=$CC
  2807. for ac_prog in cl.exe
  2808. do
  2809. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2810. set dummy $ac_prog; ac_word=$2
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2812. $as_echo_n "checking for $ac_word... " >&6; }
  2813. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2814. $as_echo_n "(cached) " >&6
  2815. else
  2816. if test -n "$ac_ct_CC"; then
  2817. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2818. else
  2819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2820. for as_dir in $PATH
  2821. do
  2822. IFS=$as_save_IFS
  2823. test -z "$as_dir" && as_dir=.
  2824. for ac_exec_ext in '' $ac_executable_extensions; do
  2825. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2826. ac_cv_prog_ac_ct_CC="$ac_prog"
  2827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2828. break 2
  2829. fi
  2830. done
  2831. done
  2832. IFS=$as_save_IFS
  2833. fi
  2834. fi
  2835. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2836. if test -n "$ac_ct_CC"; then
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2838. $as_echo "$ac_ct_CC" >&6; }
  2839. else
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2841. $as_echo "no" >&6; }
  2842. fi
  2843. test -n "$ac_ct_CC" && break
  2844. done
  2845. if test "x$ac_ct_CC" = x; then
  2846. CC=""
  2847. else
  2848. case $cross_compiling:$ac_tool_warned in
  2849. yes:)
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2851. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2852. ac_tool_warned=yes ;;
  2853. esac
  2854. CC=$ac_ct_CC
  2855. fi
  2856. fi
  2857. fi
  2858. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2859. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2860. as_fn_error $? "no acceptable C compiler found in \$PATH
  2861. See \`config.log' for more details" "$LINENO" 5; }
  2862. # Provide some information about the compiler.
  2863. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2864. set X $ac_compile
  2865. ac_compiler=$2
  2866. for ac_option in --version -v -V -qversion; do
  2867. { { ac_try="$ac_compiler $ac_option >&5"
  2868. case "(($ac_try" in
  2869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2870. *) ac_try_echo=$ac_try;;
  2871. esac
  2872. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2873. $as_echo "$ac_try_echo"; } >&5
  2874. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2875. ac_status=$?
  2876. if test -s conftest.err; then
  2877. sed '10a\
  2878. ... rest of stderr output deleted ...
  2879. 10q' conftest.err >conftest.er1
  2880. cat conftest.er1 >&5
  2881. fi
  2882. rm -f conftest.er1 conftest.err
  2883. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2884. test $ac_status = 0; }
  2885. done
  2886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2887. /* end confdefs.h. */
  2888. int
  2889. main ()
  2890. {
  2891. ;
  2892. return 0;
  2893. }
  2894. _ACEOF
  2895. ac_clean_files_save=$ac_clean_files
  2896. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2897. # Try to create an executable without -o first, disregard a.out.
  2898. # It will help us diagnose broken compilers, and finding out an intuition
  2899. # of exeext.
  2900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2901. $as_echo_n "checking whether the C compiler works... " >&6; }
  2902. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2903. # The possible output files:
  2904. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2905. ac_rmfiles=
  2906. for ac_file in $ac_files
  2907. do
  2908. case $ac_file in
  2909. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2910. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2911. esac
  2912. done
  2913. rm -f $ac_rmfiles
  2914. if { { ac_try="$ac_link_default"
  2915. case "(($ac_try" in
  2916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2917. *) ac_try_echo=$ac_try;;
  2918. esac
  2919. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2920. $as_echo "$ac_try_echo"; } >&5
  2921. (eval "$ac_link_default") 2>&5
  2922. ac_status=$?
  2923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2924. test $ac_status = 0; }; then :
  2925. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2926. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2927. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2928. # so that the user can short-circuit this test for compilers unknown to
  2929. # Autoconf.
  2930. for ac_file in $ac_files ''
  2931. do
  2932. test -f "$ac_file" || continue
  2933. case $ac_file in
  2934. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2935. ;;
  2936. [ab].out )
  2937. # We found the default executable, but exeext='' is most
  2938. # certainly right.
  2939. break;;
  2940. *.* )
  2941. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2942. then :; else
  2943. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2944. fi
  2945. # We set ac_cv_exeext here because the later test for it is not
  2946. # safe: cross compilers may not add the suffix if given an `-o'
  2947. # argument, so we may need to know it at that point already.
  2948. # Even if this section looks crufty: it has the advantage of
  2949. # actually working.
  2950. break;;
  2951. * )
  2952. break;;
  2953. esac
  2954. done
  2955. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2956. else
  2957. ac_file=''
  2958. fi
  2959. if test -z "$ac_file"; then :
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2961. $as_echo "no" >&6; }
  2962. $as_echo "$as_me: failed program was:" >&5
  2963. sed 's/^/| /' conftest.$ac_ext >&5
  2964. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2965. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2966. as_fn_error 77 "C compiler cannot create executables
  2967. See \`config.log' for more details" "$LINENO" 5; }
  2968. else
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2970. $as_echo "yes" >&6; }
  2971. fi
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2973. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2975. $as_echo "$ac_file" >&6; }
  2976. ac_exeext=$ac_cv_exeext
  2977. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2978. ac_clean_files=$ac_clean_files_save
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2980. $as_echo_n "checking for suffix of executables... " >&6; }
  2981. if { { ac_try="$ac_link"
  2982. case "(($ac_try" in
  2983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2984. *) ac_try_echo=$ac_try;;
  2985. esac
  2986. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2987. $as_echo "$ac_try_echo"; } >&5
  2988. (eval "$ac_link") 2>&5
  2989. ac_status=$?
  2990. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2991. test $ac_status = 0; }; then :
  2992. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2993. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2994. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2995. # `rm'.
  2996. for ac_file in conftest.exe conftest conftest.*; do
  2997. test -f "$ac_file" || continue
  2998. case $ac_file in
  2999. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3000. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3001. break;;
  3002. * ) break;;
  3003. esac
  3004. done
  3005. else
  3006. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3007. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3008. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3009. See \`config.log' for more details" "$LINENO" 5; }
  3010. fi
  3011. rm -f conftest conftest$ac_cv_exeext
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3013. $as_echo "$ac_cv_exeext" >&6; }
  3014. rm -f conftest.$ac_ext
  3015. EXEEXT=$ac_cv_exeext
  3016. ac_exeext=$EXEEXT
  3017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3018. /* end confdefs.h. */
  3019. #include <stdio.h>
  3020. int
  3021. main ()
  3022. {
  3023. FILE *f = fopen ("conftest.out", "w");
  3024. return ferror (f) || fclose (f) != 0;
  3025. ;
  3026. return 0;
  3027. }
  3028. _ACEOF
  3029. ac_clean_files="$ac_clean_files conftest.out"
  3030. # Check that the compiler produces executables we can run. If not, either
  3031. # the compiler is broken, or we cross compile.
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3033. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3034. if test "$cross_compiling" != yes; then
  3035. { { ac_try="$ac_link"
  3036. case "(($ac_try" in
  3037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3038. *) ac_try_echo=$ac_try;;
  3039. esac
  3040. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3041. $as_echo "$ac_try_echo"; } >&5
  3042. (eval "$ac_link") 2>&5
  3043. ac_status=$?
  3044. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3045. test $ac_status = 0; }
  3046. if { ac_try='./conftest$ac_cv_exeext'
  3047. { { case "(($ac_try" in
  3048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3049. *) ac_try_echo=$ac_try;;
  3050. esac
  3051. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3052. $as_echo "$ac_try_echo"; } >&5
  3053. (eval "$ac_try") 2>&5
  3054. ac_status=$?
  3055. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3056. test $ac_status = 0; }; }; then
  3057. cross_compiling=no
  3058. else
  3059. if test "$cross_compiling" = maybe; then
  3060. cross_compiling=yes
  3061. else
  3062. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3063. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3064. as_fn_error $? "cannot run C compiled programs.
  3065. If you meant to cross compile, use \`--host'.
  3066. See \`config.log' for more details" "$LINENO" 5; }
  3067. fi
  3068. fi
  3069. fi
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3071. $as_echo "$cross_compiling" >&6; }
  3072. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3073. ac_clean_files=$ac_clean_files_save
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3075. $as_echo_n "checking for suffix of object files... " >&6; }
  3076. if ${ac_cv_objext+:} false; then :
  3077. $as_echo_n "(cached) " >&6
  3078. else
  3079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3080. /* end confdefs.h. */
  3081. int
  3082. main ()
  3083. {
  3084. ;
  3085. return 0;
  3086. }
  3087. _ACEOF
  3088. rm -f conftest.o conftest.obj
  3089. if { { ac_try="$ac_compile"
  3090. case "(($ac_try" in
  3091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3092. *) ac_try_echo=$ac_try;;
  3093. esac
  3094. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3095. $as_echo "$ac_try_echo"; } >&5
  3096. (eval "$ac_compile") 2>&5
  3097. ac_status=$?
  3098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3099. test $ac_status = 0; }; then :
  3100. for ac_file in conftest.o conftest.obj conftest.*; do
  3101. test -f "$ac_file" || continue;
  3102. case $ac_file in
  3103. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3104. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3105. break;;
  3106. esac
  3107. done
  3108. else
  3109. $as_echo "$as_me: failed program was:" >&5
  3110. sed 's/^/| /' conftest.$ac_ext >&5
  3111. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3112. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3113. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3114. See \`config.log' for more details" "$LINENO" 5; }
  3115. fi
  3116. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3117. fi
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3119. $as_echo "$ac_cv_objext" >&6; }
  3120. OBJEXT=$ac_cv_objext
  3121. ac_objext=$OBJEXT
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3123. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3124. if ${ac_cv_c_compiler_gnu+:} false; then :
  3125. $as_echo_n "(cached) " >&6
  3126. else
  3127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3128. /* end confdefs.h. */
  3129. int
  3130. main ()
  3131. {
  3132. #ifndef __GNUC__
  3133. choke me
  3134. #endif
  3135. ;
  3136. return 0;
  3137. }
  3138. _ACEOF
  3139. if ac_fn_c_try_compile "$LINENO"; then :
  3140. ac_compiler_gnu=yes
  3141. else
  3142. ac_compiler_gnu=no
  3143. fi
  3144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3145. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3146. fi
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3148. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3149. if test $ac_compiler_gnu = yes; then
  3150. GCC=yes
  3151. else
  3152. GCC=
  3153. fi
  3154. ac_test_CFLAGS=${CFLAGS+set}
  3155. ac_save_CFLAGS=$CFLAGS
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3157. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3158. if ${ac_cv_prog_cc_g+:} false; then :
  3159. $as_echo_n "(cached) " >&6
  3160. else
  3161. ac_save_c_werror_flag=$ac_c_werror_flag
  3162. ac_c_werror_flag=yes
  3163. ac_cv_prog_cc_g=no
  3164. CFLAGS="-g"
  3165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3166. /* end confdefs.h. */
  3167. int
  3168. main ()
  3169. {
  3170. ;
  3171. return 0;
  3172. }
  3173. _ACEOF
  3174. if ac_fn_c_try_compile "$LINENO"; then :
  3175. ac_cv_prog_cc_g=yes
  3176. else
  3177. CFLAGS=""
  3178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3179. /* end confdefs.h. */
  3180. int
  3181. main ()
  3182. {
  3183. ;
  3184. return 0;
  3185. }
  3186. _ACEOF
  3187. if ac_fn_c_try_compile "$LINENO"; then :
  3188. else
  3189. ac_c_werror_flag=$ac_save_c_werror_flag
  3190. CFLAGS="-g"
  3191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3192. /* end confdefs.h. */
  3193. int
  3194. main ()
  3195. {
  3196. ;
  3197. return 0;
  3198. }
  3199. _ACEOF
  3200. if ac_fn_c_try_compile "$LINENO"; then :
  3201. ac_cv_prog_cc_g=yes
  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. fi
  3207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3208. ac_c_werror_flag=$ac_save_c_werror_flag
  3209. fi
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3211. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3212. if test "$ac_test_CFLAGS" = set; then
  3213. CFLAGS=$ac_save_CFLAGS
  3214. elif test $ac_cv_prog_cc_g = yes; then
  3215. if test "$GCC" = yes; then
  3216. CFLAGS="-g -O2"
  3217. else
  3218. CFLAGS="-g"
  3219. fi
  3220. else
  3221. if test "$GCC" = yes; then
  3222. CFLAGS="-O2"
  3223. else
  3224. CFLAGS=
  3225. fi
  3226. fi
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3228. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3229. if ${ac_cv_prog_cc_c89+:} false; then :
  3230. $as_echo_n "(cached) " >&6
  3231. else
  3232. ac_cv_prog_cc_c89=no
  3233. ac_save_CC=$CC
  3234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3235. /* end confdefs.h. */
  3236. #include <stdarg.h>
  3237. #include <stdio.h>
  3238. struct stat;
  3239. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3240. struct buf { int x; };
  3241. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3242. static char *e (p, i)
  3243. char **p;
  3244. int i;
  3245. {
  3246. return p[i];
  3247. }
  3248. static char *f (char * (*g) (char **, int), char **p, ...)
  3249. {
  3250. char *s;
  3251. va_list v;
  3252. va_start (v,p);
  3253. s = g (p, va_arg (v,int));
  3254. va_end (v);
  3255. return s;
  3256. }
  3257. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3258. function prototypes and stuff, but not '\xHH' hex character constants.
  3259. These don't provoke an error unfortunately, instead are silently treated
  3260. as 'x'. The following induces an error, until -std is added to get
  3261. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3262. array size at least. It's necessary to write '\x00'==0 to get something
  3263. that's true only with -std. */
  3264. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3265. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3266. inside strings and character constants. */
  3267. #define FOO(x) 'x'
  3268. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3269. int test (int i, double x);
  3270. struct s1 {int (*f) (int a);};
  3271. struct s2 {int (*f) (double a);};
  3272. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3273. int argc;
  3274. char **argv;
  3275. int
  3276. main ()
  3277. {
  3278. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3279. ;
  3280. return 0;
  3281. }
  3282. _ACEOF
  3283. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3284. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3285. do
  3286. CC="$ac_save_CC $ac_arg"
  3287. if ac_fn_c_try_compile "$LINENO"; then :
  3288. ac_cv_prog_cc_c89=$ac_arg
  3289. fi
  3290. rm -f core conftest.err conftest.$ac_objext
  3291. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3292. done
  3293. rm -f conftest.$ac_ext
  3294. CC=$ac_save_CC
  3295. fi
  3296. # AC_CACHE_VAL
  3297. case "x$ac_cv_prog_cc_c89" in
  3298. x)
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3300. $as_echo "none needed" >&6; } ;;
  3301. xno)
  3302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3303. $as_echo "unsupported" >&6; } ;;
  3304. *)
  3305. CC="$CC $ac_cv_prog_cc_c89"
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3307. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3308. esac
  3309. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3310. fi
  3311. ac_ext=c
  3312. ac_cpp='$CPP $CPPFLAGS'
  3313. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3314. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3315. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3317. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3318. if ${ac_cv_path_SED+:} false; then :
  3319. $as_echo_n "(cached) " >&6
  3320. else
  3321. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3322. for ac_i in 1 2 3 4 5 6 7; do
  3323. ac_script="$ac_script$as_nl$ac_script"
  3324. done
  3325. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3326. { ac_script=; unset ac_script;}
  3327. if test -z "$SED"; then
  3328. ac_path_SED_found=false
  3329. # Loop through the user's path and test for each of PROGNAME-LIST
  3330. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3331. for as_dir in $PATH
  3332. do
  3333. IFS=$as_save_IFS
  3334. test -z "$as_dir" && as_dir=.
  3335. for ac_prog in sed gsed; do
  3336. for ac_exec_ext in '' $ac_executable_extensions; do
  3337. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3338. as_fn_executable_p "$ac_path_SED" || continue
  3339. # Check for GNU ac_path_SED and select it if it is found.
  3340. # Check for GNU $ac_path_SED
  3341. case `"$ac_path_SED" --version 2>&1` in
  3342. *GNU*)
  3343. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3344. *)
  3345. ac_count=0
  3346. $as_echo_n 0123456789 >"conftest.in"
  3347. while :
  3348. do
  3349. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3350. mv "conftest.tmp" "conftest.in"
  3351. cp "conftest.in" "conftest.nl"
  3352. $as_echo '' >> "conftest.nl"
  3353. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3354. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3355. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3356. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3357. # Best one so far, save it but keep looking for a better one
  3358. ac_cv_path_SED="$ac_path_SED"
  3359. ac_path_SED_max=$ac_count
  3360. fi
  3361. # 10*(2^10) chars as input seems more than enough
  3362. test $ac_count -gt 10 && break
  3363. done
  3364. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3365. esac
  3366. $ac_path_SED_found && break 3
  3367. done
  3368. done
  3369. done
  3370. IFS=$as_save_IFS
  3371. if test -z "$ac_cv_path_SED"; then
  3372. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3373. fi
  3374. else
  3375. ac_cv_path_SED=$SED
  3376. fi
  3377. fi
  3378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3379. $as_echo "$ac_cv_path_SED" >&6; }
  3380. SED="$ac_cv_path_SED"
  3381. rm -f conftest.sed
  3382. test -z "$SED" && SED=sed
  3383. Xsed="$SED -e 1s/^X//"
  3384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3385. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3386. if ${ac_cv_path_GREP+:} false; then :
  3387. $as_echo_n "(cached) " >&6
  3388. else
  3389. if test -z "$GREP"; then
  3390. ac_path_GREP_found=false
  3391. # Loop through the user's path and test for each of PROGNAME-LIST
  3392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3393. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3394. do
  3395. IFS=$as_save_IFS
  3396. test -z "$as_dir" && as_dir=.
  3397. for ac_prog in grep ggrep; do
  3398. for ac_exec_ext in '' $ac_executable_extensions; do
  3399. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3400. as_fn_executable_p "$ac_path_GREP" || continue
  3401. # Check for GNU ac_path_GREP and select it if it is found.
  3402. # Check for GNU $ac_path_GREP
  3403. case `"$ac_path_GREP" --version 2>&1` in
  3404. *GNU*)
  3405. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3406. *)
  3407. ac_count=0
  3408. $as_echo_n 0123456789 >"conftest.in"
  3409. while :
  3410. do
  3411. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3412. mv "conftest.tmp" "conftest.in"
  3413. cp "conftest.in" "conftest.nl"
  3414. $as_echo 'GREP' >> "conftest.nl"
  3415. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3416. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3417. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3418. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3419. # Best one so far, save it but keep looking for a better one
  3420. ac_cv_path_GREP="$ac_path_GREP"
  3421. ac_path_GREP_max=$ac_count
  3422. fi
  3423. # 10*(2^10) chars as input seems more than enough
  3424. test $ac_count -gt 10 && break
  3425. done
  3426. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3427. esac
  3428. $ac_path_GREP_found && break 3
  3429. done
  3430. done
  3431. done
  3432. IFS=$as_save_IFS
  3433. if test -z "$ac_cv_path_GREP"; then
  3434. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3435. fi
  3436. else
  3437. ac_cv_path_GREP=$GREP
  3438. fi
  3439. fi
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3441. $as_echo "$ac_cv_path_GREP" >&6; }
  3442. GREP="$ac_cv_path_GREP"
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3444. $as_echo_n "checking for egrep... " >&6; }
  3445. if ${ac_cv_path_EGREP+:} false; then :
  3446. $as_echo_n "(cached) " >&6
  3447. else
  3448. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3449. then ac_cv_path_EGREP="$GREP -E"
  3450. else
  3451. if test -z "$EGREP"; then
  3452. ac_path_EGREP_found=false
  3453. # Loop through the user's path and test for each of PROGNAME-LIST
  3454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3455. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3456. do
  3457. IFS=$as_save_IFS
  3458. test -z "$as_dir" && as_dir=.
  3459. for ac_prog in egrep; do
  3460. for ac_exec_ext in '' $ac_executable_extensions; do
  3461. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3462. as_fn_executable_p "$ac_path_EGREP" || continue
  3463. # Check for GNU ac_path_EGREP and select it if it is found.
  3464. # Check for GNU $ac_path_EGREP
  3465. case `"$ac_path_EGREP" --version 2>&1` in
  3466. *GNU*)
  3467. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3468. *)
  3469. ac_count=0
  3470. $as_echo_n 0123456789 >"conftest.in"
  3471. while :
  3472. do
  3473. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3474. mv "conftest.tmp" "conftest.in"
  3475. cp "conftest.in" "conftest.nl"
  3476. $as_echo 'EGREP' >> "conftest.nl"
  3477. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3478. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3479. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3480. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3481. # Best one so far, save it but keep looking for a better one
  3482. ac_cv_path_EGREP="$ac_path_EGREP"
  3483. ac_path_EGREP_max=$ac_count
  3484. fi
  3485. # 10*(2^10) chars as input seems more than enough
  3486. test $ac_count -gt 10 && break
  3487. done
  3488. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3489. esac
  3490. $ac_path_EGREP_found && break 3
  3491. done
  3492. done
  3493. done
  3494. IFS=$as_save_IFS
  3495. if test -z "$ac_cv_path_EGREP"; then
  3496. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3497. fi
  3498. else
  3499. ac_cv_path_EGREP=$EGREP
  3500. fi
  3501. fi
  3502. fi
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3504. $as_echo "$ac_cv_path_EGREP" >&6; }
  3505. EGREP="$ac_cv_path_EGREP"
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3507. $as_echo_n "checking for fgrep... " >&6; }
  3508. if ${ac_cv_path_FGREP+:} false; then :
  3509. $as_echo_n "(cached) " >&6
  3510. else
  3511. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3512. then ac_cv_path_FGREP="$GREP -F"
  3513. else
  3514. if test -z "$FGREP"; then
  3515. ac_path_FGREP_found=false
  3516. # Loop through the user's path and test for each of PROGNAME-LIST
  3517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3518. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3519. do
  3520. IFS=$as_save_IFS
  3521. test -z "$as_dir" && as_dir=.
  3522. for ac_prog in fgrep; do
  3523. for ac_exec_ext in '' $ac_executable_extensions; do
  3524. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3525. as_fn_executable_p "$ac_path_FGREP" || continue
  3526. # Check for GNU ac_path_FGREP and select it if it is found.
  3527. # Check for GNU $ac_path_FGREP
  3528. case `"$ac_path_FGREP" --version 2>&1` in
  3529. *GNU*)
  3530. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3531. *)
  3532. ac_count=0
  3533. $as_echo_n 0123456789 >"conftest.in"
  3534. while :
  3535. do
  3536. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3537. mv "conftest.tmp" "conftest.in"
  3538. cp "conftest.in" "conftest.nl"
  3539. $as_echo 'FGREP' >> "conftest.nl"
  3540. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3541. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3542. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3543. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3544. # Best one so far, save it but keep looking for a better one
  3545. ac_cv_path_FGREP="$ac_path_FGREP"
  3546. ac_path_FGREP_max=$ac_count
  3547. fi
  3548. # 10*(2^10) chars as input seems more than enough
  3549. test $ac_count -gt 10 && break
  3550. done
  3551. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3552. esac
  3553. $ac_path_FGREP_found && break 3
  3554. done
  3555. done
  3556. done
  3557. IFS=$as_save_IFS
  3558. if test -z "$ac_cv_path_FGREP"; then
  3559. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3560. fi
  3561. else
  3562. ac_cv_path_FGREP=$FGREP
  3563. fi
  3564. fi
  3565. fi
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3567. $as_echo "$ac_cv_path_FGREP" >&6; }
  3568. FGREP="$ac_cv_path_FGREP"
  3569. test -z "$GREP" && GREP=grep
  3570. # Check whether --with-gnu-ld was given.
  3571. if test "${with_gnu_ld+set}" = set; then :
  3572. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3573. else
  3574. with_gnu_ld=no
  3575. fi
  3576. ac_prog=ld
  3577. if test "$GCC" = yes; then
  3578. # Check if gcc -print-prog-name=ld gives a path.
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3580. $as_echo_n "checking for ld used by $CC... " >&6; }
  3581. case $host in
  3582. *-*-mingw*)
  3583. # gcc leaves a trailing carriage return which upsets mingw
  3584. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3585. *)
  3586. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3587. esac
  3588. case $ac_prog in
  3589. # Accept absolute paths.
  3590. [\\/]* | ?:[\\/]*)
  3591. re_direlt='/[^/][^/]*/\.\./'
  3592. # Canonicalize the pathname of ld
  3593. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3594. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3595. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3596. done
  3597. test -z "$LD" && LD="$ac_prog"
  3598. ;;
  3599. "")
  3600. # If it fails, then pretend we aren't using GCC.
  3601. ac_prog=ld
  3602. ;;
  3603. *)
  3604. # If it is relative, then search for the first ld in PATH.
  3605. with_gnu_ld=unknown
  3606. ;;
  3607. esac
  3608. elif test "$with_gnu_ld" = yes; then
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3610. $as_echo_n "checking for GNU ld... " >&6; }
  3611. else
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3613. $as_echo_n "checking for non-GNU ld... " >&6; }
  3614. fi
  3615. if ${lt_cv_path_LD+:} false; then :
  3616. $as_echo_n "(cached) " >&6
  3617. else
  3618. if test -z "$LD"; then
  3619. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3620. for ac_dir in $PATH; do
  3621. IFS="$lt_save_ifs"
  3622. test -z "$ac_dir" && ac_dir=.
  3623. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3624. lt_cv_path_LD="$ac_dir/$ac_prog"
  3625. # Check to see if the program is GNU ld. I'd rather use --version,
  3626. # but apparently some variants of GNU ld only accept -v.
  3627. # Break only if it was the GNU/non-GNU ld that we prefer.
  3628. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3629. *GNU* | *'with BFD'*)
  3630. test "$with_gnu_ld" != no && break
  3631. ;;
  3632. *)
  3633. test "$with_gnu_ld" != yes && break
  3634. ;;
  3635. esac
  3636. fi
  3637. done
  3638. IFS="$lt_save_ifs"
  3639. else
  3640. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3641. fi
  3642. fi
  3643. LD="$lt_cv_path_LD"
  3644. if test -n "$LD"; then
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3646. $as_echo "$LD" >&6; }
  3647. else
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3649. $as_echo "no" >&6; }
  3650. fi
  3651. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3653. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3654. if ${lt_cv_prog_gnu_ld+:} false; then :
  3655. $as_echo_n "(cached) " >&6
  3656. else
  3657. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3658. case `$LD -v 2>&1 </dev/null` in
  3659. *GNU* | *'with BFD'*)
  3660. lt_cv_prog_gnu_ld=yes
  3661. ;;
  3662. *)
  3663. lt_cv_prog_gnu_ld=no
  3664. ;;
  3665. esac
  3666. fi
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3668. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3669. with_gnu_ld=$lt_cv_prog_gnu_ld
  3670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3671. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3672. if ${lt_cv_path_NM+:} false; then :
  3673. $as_echo_n "(cached) " >&6
  3674. else
  3675. if test -n "$NM"; then
  3676. # Let the user override the test.
  3677. lt_cv_path_NM="$NM"
  3678. else
  3679. lt_nm_to_check="${ac_tool_prefix}nm"
  3680. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3681. lt_nm_to_check="$lt_nm_to_check nm"
  3682. fi
  3683. for lt_tmp_nm in $lt_nm_to_check; do
  3684. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3685. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3686. IFS="$lt_save_ifs"
  3687. test -z "$ac_dir" && ac_dir=.
  3688. tmp_nm="$ac_dir/$lt_tmp_nm"
  3689. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3690. # Check to see if the nm accepts a BSD-compat flag.
  3691. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3692. # nm: unknown option "B" ignored
  3693. # Tru64's nm complains that /dev/null is an invalid object file
  3694. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3695. */dev/null* | *'Invalid file or object type'*)
  3696. lt_cv_path_NM="$tmp_nm -B"
  3697. break
  3698. ;;
  3699. *)
  3700. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3701. */dev/null*)
  3702. lt_cv_path_NM="$tmp_nm -p"
  3703. break
  3704. ;;
  3705. *)
  3706. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3707. continue # so that we can try to find one that supports BSD flags
  3708. ;;
  3709. esac
  3710. ;;
  3711. esac
  3712. fi
  3713. done
  3714. IFS="$lt_save_ifs"
  3715. done
  3716. : ${lt_cv_path_NM=no}
  3717. fi
  3718. fi
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3720. $as_echo "$lt_cv_path_NM" >&6; }
  3721. if test "$lt_cv_path_NM" != "no"; then
  3722. NM="$lt_cv_path_NM"
  3723. else
  3724. # Didn't find any BSD compatible name lister, look for dumpbin.
  3725. if test -n "$DUMPBIN"; then :
  3726. # Let the user override the test.
  3727. else
  3728. if test -n "$ac_tool_prefix"; then
  3729. for ac_prog in dumpbin "link -dump"
  3730. do
  3731. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3732. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3734. $as_echo_n "checking for $ac_word... " >&6; }
  3735. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3736. $as_echo_n "(cached) " >&6
  3737. else
  3738. if test -n "$DUMPBIN"; then
  3739. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3740. else
  3741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3742. for as_dir in $PATH
  3743. do
  3744. IFS=$as_save_IFS
  3745. test -z "$as_dir" && as_dir=.
  3746. for ac_exec_ext in '' $ac_executable_extensions; do
  3747. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3748. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3750. break 2
  3751. fi
  3752. done
  3753. done
  3754. IFS=$as_save_IFS
  3755. fi
  3756. fi
  3757. DUMPBIN=$ac_cv_prog_DUMPBIN
  3758. if test -n "$DUMPBIN"; then
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3760. $as_echo "$DUMPBIN" >&6; }
  3761. else
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3763. $as_echo "no" >&6; }
  3764. fi
  3765. test -n "$DUMPBIN" && break
  3766. done
  3767. fi
  3768. if test -z "$DUMPBIN"; then
  3769. ac_ct_DUMPBIN=$DUMPBIN
  3770. for ac_prog in dumpbin "link -dump"
  3771. do
  3772. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3773. set dummy $ac_prog; ac_word=$2
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3775. $as_echo_n "checking for $ac_word... " >&6; }
  3776. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3777. $as_echo_n "(cached) " >&6
  3778. else
  3779. if test -n "$ac_ct_DUMPBIN"; then
  3780. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3781. else
  3782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3783. for as_dir in $PATH
  3784. do
  3785. IFS=$as_save_IFS
  3786. test -z "$as_dir" && as_dir=.
  3787. for ac_exec_ext in '' $ac_executable_extensions; do
  3788. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3789. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3791. break 2
  3792. fi
  3793. done
  3794. done
  3795. IFS=$as_save_IFS
  3796. fi
  3797. fi
  3798. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3799. if test -n "$ac_ct_DUMPBIN"; then
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3801. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3802. else
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3804. $as_echo "no" >&6; }
  3805. fi
  3806. test -n "$ac_ct_DUMPBIN" && break
  3807. done
  3808. if test "x$ac_ct_DUMPBIN" = x; then
  3809. DUMPBIN=":"
  3810. else
  3811. case $cross_compiling:$ac_tool_warned in
  3812. yes:)
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3814. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3815. ac_tool_warned=yes ;;
  3816. esac
  3817. DUMPBIN=$ac_ct_DUMPBIN
  3818. fi
  3819. fi
  3820. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3821. *COFF*)
  3822. DUMPBIN="$DUMPBIN -symbols"
  3823. ;;
  3824. *)
  3825. DUMPBIN=:
  3826. ;;
  3827. esac
  3828. fi
  3829. if test "$DUMPBIN" != ":"; then
  3830. NM="$DUMPBIN"
  3831. fi
  3832. fi
  3833. test -z "$NM" && NM=nm
  3834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3835. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3836. if ${lt_cv_nm_interface+:} false; then :
  3837. $as_echo_n "(cached) " >&6
  3838. else
  3839. lt_cv_nm_interface="BSD nm"
  3840. echo "int some_variable = 0;" > conftest.$ac_ext
  3841. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3842. (eval "$ac_compile" 2>conftest.err)
  3843. cat conftest.err >&5
  3844. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3845. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3846. cat conftest.err >&5
  3847. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3848. cat conftest.out >&5
  3849. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3850. lt_cv_nm_interface="MS dumpbin"
  3851. fi
  3852. rm -f conftest*
  3853. fi
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3855. $as_echo "$lt_cv_nm_interface" >&6; }
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3857. $as_echo_n "checking whether ln -s works... " >&6; }
  3858. LN_S=$as_ln_s
  3859. if test "$LN_S" = "ln -s"; then
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3861. $as_echo "yes" >&6; }
  3862. else
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3864. $as_echo "no, using $LN_S" >&6; }
  3865. fi
  3866. # find the maximum length of command line arguments
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3868. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3869. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3870. $as_echo_n "(cached) " >&6
  3871. else
  3872. i=0
  3873. teststring="ABCD"
  3874. case $build_os in
  3875. msdosdjgpp*)
  3876. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3877. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3878. # during glob expansion). Even if it were fixed, the result of this
  3879. # check would be larger than it should be.
  3880. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3881. ;;
  3882. gnu*)
  3883. # Under GNU Hurd, this test is not required because there is
  3884. # no limit to the length of command line arguments.
  3885. # Libtool will interpret -1 as no limit whatsoever
  3886. lt_cv_sys_max_cmd_len=-1;
  3887. ;;
  3888. cygwin* | mingw* | cegcc*)
  3889. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3890. # about 5 minutes as the teststring grows exponentially.
  3891. # Worse, since 9x/ME are not pre-emptively multitasking,
  3892. # you end up with a "frozen" computer, even though with patience
  3893. # the test eventually succeeds (with a max line length of 256k).
  3894. # Instead, let's just punt: use the minimum linelength reported by
  3895. # all of the supported platforms: 8192 (on NT/2K/XP).
  3896. lt_cv_sys_max_cmd_len=8192;
  3897. ;;
  3898. mint*)
  3899. # On MiNT this can take a long time and run out of memory.
  3900. lt_cv_sys_max_cmd_len=8192;
  3901. ;;
  3902. amigaos*)
  3903. # On AmigaOS with pdksh, this test takes hours, literally.
  3904. # So we just punt and use a minimum line length of 8192.
  3905. lt_cv_sys_max_cmd_len=8192;
  3906. ;;
  3907. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3908. # This has been around since 386BSD, at least. Likely further.
  3909. if test -x /sbin/sysctl; then
  3910. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3911. elif test -x /usr/sbin/sysctl; then
  3912. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3913. else
  3914. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3915. fi
  3916. # And add a safety zone
  3917. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3918. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3919. ;;
  3920. interix*)
  3921. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3922. lt_cv_sys_max_cmd_len=196608
  3923. ;;
  3924. os2*)
  3925. # The test takes a long time on OS/2.
  3926. lt_cv_sys_max_cmd_len=8192
  3927. ;;
  3928. osf*)
  3929. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3930. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3931. # nice to cause kernel panics so lets avoid the loop below.
  3932. # First set a reasonable default.
  3933. lt_cv_sys_max_cmd_len=16384
  3934. #
  3935. if test -x /sbin/sysconfig; then
  3936. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3937. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3938. esac
  3939. fi
  3940. ;;
  3941. sco3.2v5*)
  3942. lt_cv_sys_max_cmd_len=102400
  3943. ;;
  3944. sysv5* | sco5v6* | sysv4.2uw2*)
  3945. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3946. if test -n "$kargmax"; then
  3947. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3948. else
  3949. lt_cv_sys_max_cmd_len=32768
  3950. fi
  3951. ;;
  3952. *)
  3953. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3954. if test -n "$lt_cv_sys_max_cmd_len"; then
  3955. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3956. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3957. else
  3958. # Make teststring a little bigger before we do anything with it.
  3959. # a 1K string should be a reasonable start.
  3960. for i in 1 2 3 4 5 6 7 8 ; do
  3961. teststring=$teststring$teststring
  3962. done
  3963. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3964. # If test is not a shell built-in, we'll probably end up computing a
  3965. # maximum length that is only half of the actual maximum length, but
  3966. # we can't tell.
  3967. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3968. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3969. test $i != 17 # 1/2 MB should be enough
  3970. do
  3971. i=`expr $i + 1`
  3972. teststring=$teststring$teststring
  3973. done
  3974. # Only check the string length outside the loop.
  3975. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3976. teststring=
  3977. # Add a significant safety factor because C++ compilers can tack on
  3978. # massive amounts of additional arguments before passing them to the
  3979. # linker. It appears as though 1/2 is a usable value.
  3980. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3981. fi
  3982. ;;
  3983. esac
  3984. fi
  3985. if test -n $lt_cv_sys_max_cmd_len ; then
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3987. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3988. else
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3990. $as_echo "none" >&6; }
  3991. fi
  3992. max_cmd_len=$lt_cv_sys_max_cmd_len
  3993. : ${CP="cp -f"}
  3994. : ${MV="mv -f"}
  3995. : ${RM="rm -f"}
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3997. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3998. # Try some XSI features
  3999. xsi_shell=no
  4000. ( _lt_dummy="a/b/c"
  4001. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4002. = c,a/b,b/c, \
  4003. && eval 'test $(( 1 + 1 )) -eq 2 \
  4004. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4005. && xsi_shell=yes
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4007. $as_echo "$xsi_shell" >&6; }
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4009. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4010. lt_shell_append=no
  4011. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4012. >/dev/null 2>&1 \
  4013. && lt_shell_append=yes
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4015. $as_echo "$lt_shell_append" >&6; }
  4016. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4017. lt_unset=unset
  4018. else
  4019. lt_unset=false
  4020. fi
  4021. # test EBCDIC or ASCII
  4022. case `echo X|tr X '\101'` in
  4023. A) # ASCII based system
  4024. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4025. lt_SP2NL='tr \040 \012'
  4026. lt_NL2SP='tr \015\012 \040\040'
  4027. ;;
  4028. *) # EBCDIC based system
  4029. lt_SP2NL='tr \100 \n'
  4030. lt_NL2SP='tr \r\n \100\100'
  4031. ;;
  4032. esac
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4034. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4035. if ${lt_cv_to_host_file_cmd+:} false; then :
  4036. $as_echo_n "(cached) " >&6
  4037. else
  4038. case $host in
  4039. *-*-mingw* )
  4040. case $build in
  4041. *-*-mingw* ) # actually msys
  4042. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4043. ;;
  4044. *-*-cygwin* )
  4045. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4046. ;;
  4047. * ) # otherwise, assume *nix
  4048. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4049. ;;
  4050. esac
  4051. ;;
  4052. *-*-cygwin* )
  4053. case $build in
  4054. *-*-mingw* ) # actually msys
  4055. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4056. ;;
  4057. *-*-cygwin* )
  4058. lt_cv_to_host_file_cmd=func_convert_file_noop
  4059. ;;
  4060. * ) # otherwise, assume *nix
  4061. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4062. ;;
  4063. esac
  4064. ;;
  4065. * ) # unhandled hosts (and "normal" native builds)
  4066. lt_cv_to_host_file_cmd=func_convert_file_noop
  4067. ;;
  4068. esac
  4069. fi
  4070. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4072. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4074. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4075. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4076. $as_echo_n "(cached) " >&6
  4077. else
  4078. #assume ordinary cross tools, or native build.
  4079. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4080. case $host in
  4081. *-*-mingw* )
  4082. case $build in
  4083. *-*-mingw* ) # actually msys
  4084. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4085. ;;
  4086. esac
  4087. ;;
  4088. esac
  4089. fi
  4090. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4092. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4094. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4095. if ${lt_cv_ld_reload_flag+:} false; then :
  4096. $as_echo_n "(cached) " >&6
  4097. else
  4098. lt_cv_ld_reload_flag='-r'
  4099. fi
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4101. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4102. reload_flag=$lt_cv_ld_reload_flag
  4103. case $reload_flag in
  4104. "" | " "*) ;;
  4105. *) reload_flag=" $reload_flag" ;;
  4106. esac
  4107. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4108. case $host_os in
  4109. cygwin* | mingw* | pw32* | cegcc*)
  4110. if test "$GCC" != yes; then
  4111. reload_cmds=false
  4112. fi
  4113. ;;
  4114. darwin*)
  4115. if test "$GCC" = yes; then
  4116. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4117. else
  4118. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4119. fi
  4120. ;;
  4121. esac
  4122. if test -n "$ac_tool_prefix"; then
  4123. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4124. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4126. $as_echo_n "checking for $ac_word... " >&6; }
  4127. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4128. $as_echo_n "(cached) " >&6
  4129. else
  4130. if test -n "$OBJDUMP"; then
  4131. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4132. else
  4133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4134. for as_dir in $PATH
  4135. do
  4136. IFS=$as_save_IFS
  4137. test -z "$as_dir" && as_dir=.
  4138. for ac_exec_ext in '' $ac_executable_extensions; do
  4139. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4140. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4142. break 2
  4143. fi
  4144. done
  4145. done
  4146. IFS=$as_save_IFS
  4147. fi
  4148. fi
  4149. OBJDUMP=$ac_cv_prog_OBJDUMP
  4150. if test -n "$OBJDUMP"; then
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4152. $as_echo "$OBJDUMP" >&6; }
  4153. else
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4155. $as_echo "no" >&6; }
  4156. fi
  4157. fi
  4158. if test -z "$ac_cv_prog_OBJDUMP"; then
  4159. ac_ct_OBJDUMP=$OBJDUMP
  4160. # Extract the first word of "objdump", so it can be a program name with args.
  4161. set dummy objdump; ac_word=$2
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4163. $as_echo_n "checking for $ac_word... " >&6; }
  4164. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4165. $as_echo_n "(cached) " >&6
  4166. else
  4167. if test -n "$ac_ct_OBJDUMP"; then
  4168. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4169. else
  4170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4171. for as_dir in $PATH
  4172. do
  4173. IFS=$as_save_IFS
  4174. test -z "$as_dir" && as_dir=.
  4175. for ac_exec_ext in '' $ac_executable_extensions; do
  4176. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4177. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4179. break 2
  4180. fi
  4181. done
  4182. done
  4183. IFS=$as_save_IFS
  4184. fi
  4185. fi
  4186. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4187. if test -n "$ac_ct_OBJDUMP"; then
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4189. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4190. else
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4192. $as_echo "no" >&6; }
  4193. fi
  4194. if test "x$ac_ct_OBJDUMP" = x; then
  4195. OBJDUMP="false"
  4196. else
  4197. case $cross_compiling:$ac_tool_warned in
  4198. yes:)
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4200. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4201. ac_tool_warned=yes ;;
  4202. esac
  4203. OBJDUMP=$ac_ct_OBJDUMP
  4204. fi
  4205. else
  4206. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4207. fi
  4208. test -z "$OBJDUMP" && OBJDUMP=objdump
  4209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4210. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4211. if ${lt_cv_deplibs_check_method+:} false; then :
  4212. $as_echo_n "(cached) " >&6
  4213. else
  4214. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4215. lt_cv_file_magic_test_file=
  4216. lt_cv_deplibs_check_method='unknown'
  4217. # Need to set the preceding variable on all platforms that support
  4218. # interlibrary dependencies.
  4219. # 'none' -- dependencies not supported.
  4220. # `unknown' -- same as none, but documents that we really don't know.
  4221. # 'pass_all' -- all dependencies passed with no checks.
  4222. # 'test_compile' -- check by making test program.
  4223. # 'file_magic [[regex]]' -- check by looking for files in library path
  4224. # which responds to the $file_magic_cmd with a given extended regex.
  4225. # If you have `file' or equivalent on your system and you're not sure
  4226. # whether `pass_all' will *always* work, you probably want this one.
  4227. case $host_os in
  4228. aix[4-9]*)
  4229. lt_cv_deplibs_check_method=pass_all
  4230. ;;
  4231. beos*)
  4232. lt_cv_deplibs_check_method=pass_all
  4233. ;;
  4234. bsdi[45]*)
  4235. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4236. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4237. lt_cv_file_magic_test_file=/shlib/libc.so
  4238. ;;
  4239. cygwin*)
  4240. # func_win32_libid is a shell function defined in ltmain.sh
  4241. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4242. lt_cv_file_magic_cmd='func_win32_libid'
  4243. lt_cv_deplibs_check_method=pass_all
  4244. ;;
  4245. mingw* | pw32*)
  4246. # Base MSYS/MinGW do not provide the 'file' command needed by
  4247. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4248. # unless we find 'file', for example because we are cross-compiling.
  4249. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4250. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4251. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4252. lt_cv_file_magic_cmd='func_win32_libid'
  4253. else
  4254. # Keep this pattern in sync with the one in func_win32_libid.
  4255. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4256. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4257. fi
  4258. lt_cv_deplibs_check_method=pass_all
  4259. ;;
  4260. cegcc*)
  4261. # use the weaker test based on 'objdump'. See mingw*.
  4262. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4263. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4264. ;;
  4265. darwin* | rhapsody*)
  4266. lt_cv_deplibs_check_method=pass_all
  4267. ;;
  4268. freebsd* | dragonfly*)
  4269. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4270. case $host_cpu in
  4271. i*86 )
  4272. # Not sure whether the presence of OpenBSD here was a mistake.
  4273. # Let's accept both of them until this is cleared up.
  4274. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4275. lt_cv_file_magic_cmd=/usr/bin/file
  4276. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4277. ;;
  4278. esac
  4279. else
  4280. lt_cv_deplibs_check_method=pass_all
  4281. fi
  4282. ;;
  4283. gnu*)
  4284. lt_cv_deplibs_check_method=pass_all
  4285. ;;
  4286. haiku*)
  4287. lt_cv_deplibs_check_method=pass_all
  4288. ;;
  4289. hpux10.20* | hpux11*)
  4290. lt_cv_file_magic_cmd=/usr/bin/file
  4291. case $host_cpu in
  4292. ia64*)
  4293. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4294. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4295. ;;
  4296. hppa*64*)
  4297. 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]'
  4298. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4299. ;;
  4300. *)
  4301. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4302. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4303. ;;
  4304. esac
  4305. ;;
  4306. interix[3-9]*)
  4307. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4308. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4309. ;;
  4310. irix5* | irix6* | nonstopux*)
  4311. case $LD in
  4312. *-32|*"-32 ") libmagic=32-bit;;
  4313. *-n32|*"-n32 ") libmagic=N32;;
  4314. *-64|*"-64 ") libmagic=64-bit;;
  4315. *) libmagic=never-match;;
  4316. esac
  4317. lt_cv_deplibs_check_method=pass_all
  4318. ;;
  4319. # This must be glibc/ELF.
  4320. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4321. lt_cv_deplibs_check_method=pass_all
  4322. ;;
  4323. netbsd*)
  4324. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4325. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4326. else
  4327. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4328. fi
  4329. ;;
  4330. newos6*)
  4331. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4332. lt_cv_file_magic_cmd=/usr/bin/file
  4333. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4334. ;;
  4335. *nto* | *qnx*)
  4336. lt_cv_deplibs_check_method=pass_all
  4337. ;;
  4338. openbsd*)
  4339. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4340. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4341. else
  4342. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4343. fi
  4344. ;;
  4345. osf3* | osf4* | osf5*)
  4346. lt_cv_deplibs_check_method=pass_all
  4347. ;;
  4348. rdos*)
  4349. lt_cv_deplibs_check_method=pass_all
  4350. ;;
  4351. solaris*)
  4352. lt_cv_deplibs_check_method=pass_all
  4353. ;;
  4354. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4355. lt_cv_deplibs_check_method=pass_all
  4356. ;;
  4357. sysv4 | sysv4.3*)
  4358. case $host_vendor in
  4359. motorola)
  4360. 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]'
  4361. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4362. ;;
  4363. ncr)
  4364. lt_cv_deplibs_check_method=pass_all
  4365. ;;
  4366. sequent)
  4367. lt_cv_file_magic_cmd='/bin/file'
  4368. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4369. ;;
  4370. sni)
  4371. lt_cv_file_magic_cmd='/bin/file'
  4372. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4373. lt_cv_file_magic_test_file=/lib/libc.so
  4374. ;;
  4375. siemens)
  4376. lt_cv_deplibs_check_method=pass_all
  4377. ;;
  4378. pc)
  4379. lt_cv_deplibs_check_method=pass_all
  4380. ;;
  4381. esac
  4382. ;;
  4383. tpf*)
  4384. lt_cv_deplibs_check_method=pass_all
  4385. ;;
  4386. esac
  4387. fi
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4389. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4390. file_magic_glob=
  4391. want_nocaseglob=no
  4392. if test "$build" = "$host"; then
  4393. case $host_os in
  4394. mingw* | pw32*)
  4395. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4396. want_nocaseglob=yes
  4397. else
  4398. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4399. fi
  4400. ;;
  4401. esac
  4402. fi
  4403. file_magic_cmd=$lt_cv_file_magic_cmd
  4404. deplibs_check_method=$lt_cv_deplibs_check_method
  4405. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4406. if test -n "$ac_tool_prefix"; then
  4407. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4408. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4410. $as_echo_n "checking for $ac_word... " >&6; }
  4411. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4412. $as_echo_n "(cached) " >&6
  4413. else
  4414. if test -n "$DLLTOOL"; then
  4415. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4416. else
  4417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4418. for as_dir in $PATH
  4419. do
  4420. IFS=$as_save_IFS
  4421. test -z "$as_dir" && as_dir=.
  4422. for ac_exec_ext in '' $ac_executable_extensions; do
  4423. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4424. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4425. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4426. break 2
  4427. fi
  4428. done
  4429. done
  4430. IFS=$as_save_IFS
  4431. fi
  4432. fi
  4433. DLLTOOL=$ac_cv_prog_DLLTOOL
  4434. if test -n "$DLLTOOL"; then
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4436. $as_echo "$DLLTOOL" >&6; }
  4437. else
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4439. $as_echo "no" >&6; }
  4440. fi
  4441. fi
  4442. if test -z "$ac_cv_prog_DLLTOOL"; then
  4443. ac_ct_DLLTOOL=$DLLTOOL
  4444. # Extract the first word of "dlltool", so it can be a program name with args.
  4445. set dummy dlltool; ac_word=$2
  4446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4447. $as_echo_n "checking for $ac_word... " >&6; }
  4448. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4449. $as_echo_n "(cached) " >&6
  4450. else
  4451. if test -n "$ac_ct_DLLTOOL"; then
  4452. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4453. else
  4454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4455. for as_dir in $PATH
  4456. do
  4457. IFS=$as_save_IFS
  4458. test -z "$as_dir" && as_dir=.
  4459. for ac_exec_ext in '' $ac_executable_extensions; do
  4460. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4461. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4463. break 2
  4464. fi
  4465. done
  4466. done
  4467. IFS=$as_save_IFS
  4468. fi
  4469. fi
  4470. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4471. if test -n "$ac_ct_DLLTOOL"; then
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4473. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4474. else
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4476. $as_echo "no" >&6; }
  4477. fi
  4478. if test "x$ac_ct_DLLTOOL" = x; then
  4479. DLLTOOL="false"
  4480. else
  4481. case $cross_compiling:$ac_tool_warned in
  4482. yes:)
  4483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4484. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4485. ac_tool_warned=yes ;;
  4486. esac
  4487. DLLTOOL=$ac_ct_DLLTOOL
  4488. fi
  4489. else
  4490. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4491. fi
  4492. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4494. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4495. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4496. $as_echo_n "(cached) " >&6
  4497. else
  4498. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4499. case $host_os in
  4500. cygwin* | mingw* | pw32* | cegcc*)
  4501. # two different shell functions defined in ltmain.sh
  4502. # decide which to use based on capabilities of $DLLTOOL
  4503. case `$DLLTOOL --help 2>&1` in
  4504. *--identify-strict*)
  4505. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4506. ;;
  4507. *)
  4508. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4509. ;;
  4510. esac
  4511. ;;
  4512. *)
  4513. # fallback: assume linklib IS sharedlib
  4514. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4515. ;;
  4516. esac
  4517. fi
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4519. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4520. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4521. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4522. if test -n "$ac_tool_prefix"; then
  4523. for ac_prog in ar
  4524. do
  4525. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4526. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4528. $as_echo_n "checking for $ac_word... " >&6; }
  4529. if ${ac_cv_prog_AR+:} false; then :
  4530. $as_echo_n "(cached) " >&6
  4531. else
  4532. if test -n "$AR"; then
  4533. ac_cv_prog_AR="$AR" # Let the user override the test.
  4534. else
  4535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4536. for as_dir in $PATH
  4537. do
  4538. IFS=$as_save_IFS
  4539. test -z "$as_dir" && as_dir=.
  4540. for ac_exec_ext in '' $ac_executable_extensions; do
  4541. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4542. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4543. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4544. break 2
  4545. fi
  4546. done
  4547. done
  4548. IFS=$as_save_IFS
  4549. fi
  4550. fi
  4551. AR=$ac_cv_prog_AR
  4552. if test -n "$AR"; then
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4554. $as_echo "$AR" >&6; }
  4555. else
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4557. $as_echo "no" >&6; }
  4558. fi
  4559. test -n "$AR" && break
  4560. done
  4561. fi
  4562. if test -z "$AR"; then
  4563. ac_ct_AR=$AR
  4564. for ac_prog in ar
  4565. do
  4566. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4567. set dummy $ac_prog; ac_word=$2
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4569. $as_echo_n "checking for $ac_word... " >&6; }
  4570. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4571. $as_echo_n "(cached) " >&6
  4572. else
  4573. if test -n "$ac_ct_AR"; then
  4574. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4575. else
  4576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4577. for as_dir in $PATH
  4578. do
  4579. IFS=$as_save_IFS
  4580. test -z "$as_dir" && as_dir=.
  4581. for ac_exec_ext in '' $ac_executable_extensions; do
  4582. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4583. ac_cv_prog_ac_ct_AR="$ac_prog"
  4584. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4585. break 2
  4586. fi
  4587. done
  4588. done
  4589. IFS=$as_save_IFS
  4590. fi
  4591. fi
  4592. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4593. if test -n "$ac_ct_AR"; then
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4595. $as_echo "$ac_ct_AR" >&6; }
  4596. else
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4598. $as_echo "no" >&6; }
  4599. fi
  4600. test -n "$ac_ct_AR" && break
  4601. done
  4602. if test "x$ac_ct_AR" = x; then
  4603. AR="false"
  4604. else
  4605. case $cross_compiling:$ac_tool_warned in
  4606. yes:)
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4608. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4609. ac_tool_warned=yes ;;
  4610. esac
  4611. AR=$ac_ct_AR
  4612. fi
  4613. fi
  4614. : ${AR=ar}
  4615. : ${AR_FLAGS=cru}
  4616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4617. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4618. if ${lt_cv_ar_at_file+:} false; then :
  4619. $as_echo_n "(cached) " >&6
  4620. else
  4621. lt_cv_ar_at_file=no
  4622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4623. /* end confdefs.h. */
  4624. int
  4625. main ()
  4626. {
  4627. ;
  4628. return 0;
  4629. }
  4630. _ACEOF
  4631. if ac_fn_c_try_compile "$LINENO"; then :
  4632. echo conftest.$ac_objext > conftest.lst
  4633. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4634. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4635. (eval $lt_ar_try) 2>&5
  4636. ac_status=$?
  4637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4638. test $ac_status = 0; }
  4639. if test "$ac_status" -eq 0; then
  4640. # Ensure the archiver fails upon bogus file names.
  4641. rm -f conftest.$ac_objext libconftest.a
  4642. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4643. (eval $lt_ar_try) 2>&5
  4644. ac_status=$?
  4645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4646. test $ac_status = 0; }
  4647. if test "$ac_status" -ne 0; then
  4648. lt_cv_ar_at_file=@
  4649. fi
  4650. fi
  4651. rm -f conftest.* libconftest.a
  4652. fi
  4653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4654. fi
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4656. $as_echo "$lt_cv_ar_at_file" >&6; }
  4657. if test "x$lt_cv_ar_at_file" = xno; then
  4658. archiver_list_spec=
  4659. else
  4660. archiver_list_spec=$lt_cv_ar_at_file
  4661. fi
  4662. if test -n "$ac_tool_prefix"; then
  4663. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4664. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4666. $as_echo_n "checking for $ac_word... " >&6; }
  4667. if ${ac_cv_prog_STRIP+:} false; then :
  4668. $as_echo_n "(cached) " >&6
  4669. else
  4670. if test -n "$STRIP"; then
  4671. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4672. else
  4673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4674. for as_dir in $PATH
  4675. do
  4676. IFS=$as_save_IFS
  4677. test -z "$as_dir" && as_dir=.
  4678. for ac_exec_ext in '' $ac_executable_extensions; do
  4679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4680. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4682. break 2
  4683. fi
  4684. done
  4685. done
  4686. IFS=$as_save_IFS
  4687. fi
  4688. fi
  4689. STRIP=$ac_cv_prog_STRIP
  4690. if test -n "$STRIP"; then
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4692. $as_echo "$STRIP" >&6; }
  4693. else
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4695. $as_echo "no" >&6; }
  4696. fi
  4697. fi
  4698. if test -z "$ac_cv_prog_STRIP"; then
  4699. ac_ct_STRIP=$STRIP
  4700. # Extract the first word of "strip", so it can be a program name with args.
  4701. set dummy strip; ac_word=$2
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4703. $as_echo_n "checking for $ac_word... " >&6; }
  4704. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4705. $as_echo_n "(cached) " >&6
  4706. else
  4707. if test -n "$ac_ct_STRIP"; then
  4708. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4709. else
  4710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4711. for as_dir in $PATH
  4712. do
  4713. IFS=$as_save_IFS
  4714. test -z "$as_dir" && as_dir=.
  4715. for ac_exec_ext in '' $ac_executable_extensions; do
  4716. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4717. ac_cv_prog_ac_ct_STRIP="strip"
  4718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4719. break 2
  4720. fi
  4721. done
  4722. done
  4723. IFS=$as_save_IFS
  4724. fi
  4725. fi
  4726. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4727. if test -n "$ac_ct_STRIP"; then
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4729. $as_echo "$ac_ct_STRIP" >&6; }
  4730. else
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4732. $as_echo "no" >&6; }
  4733. fi
  4734. if test "x$ac_ct_STRIP" = x; then
  4735. STRIP=":"
  4736. else
  4737. case $cross_compiling:$ac_tool_warned in
  4738. yes:)
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4740. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4741. ac_tool_warned=yes ;;
  4742. esac
  4743. STRIP=$ac_ct_STRIP
  4744. fi
  4745. else
  4746. STRIP="$ac_cv_prog_STRIP"
  4747. fi
  4748. test -z "$STRIP" && STRIP=:
  4749. if test -n "$ac_tool_prefix"; then
  4750. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4751. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4753. $as_echo_n "checking for $ac_word... " >&6; }
  4754. if ${ac_cv_prog_RANLIB+:} false; then :
  4755. $as_echo_n "(cached) " >&6
  4756. else
  4757. if test -n "$RANLIB"; then
  4758. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4759. else
  4760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4761. for as_dir in $PATH
  4762. do
  4763. IFS=$as_save_IFS
  4764. test -z "$as_dir" && as_dir=.
  4765. for ac_exec_ext in '' $ac_executable_extensions; do
  4766. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4767. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4769. break 2
  4770. fi
  4771. done
  4772. done
  4773. IFS=$as_save_IFS
  4774. fi
  4775. fi
  4776. RANLIB=$ac_cv_prog_RANLIB
  4777. if test -n "$RANLIB"; then
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4779. $as_echo "$RANLIB" >&6; }
  4780. else
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4782. $as_echo "no" >&6; }
  4783. fi
  4784. fi
  4785. if test -z "$ac_cv_prog_RANLIB"; then
  4786. ac_ct_RANLIB=$RANLIB
  4787. # Extract the first word of "ranlib", so it can be a program name with args.
  4788. set dummy ranlib; ac_word=$2
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4790. $as_echo_n "checking for $ac_word... " >&6; }
  4791. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4792. $as_echo_n "(cached) " >&6
  4793. else
  4794. if test -n "$ac_ct_RANLIB"; then
  4795. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4796. else
  4797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4798. for as_dir in $PATH
  4799. do
  4800. IFS=$as_save_IFS
  4801. test -z "$as_dir" && as_dir=.
  4802. for ac_exec_ext in '' $ac_executable_extensions; do
  4803. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4804. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4806. break 2
  4807. fi
  4808. done
  4809. done
  4810. IFS=$as_save_IFS
  4811. fi
  4812. fi
  4813. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4814. if test -n "$ac_ct_RANLIB"; then
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4816. $as_echo "$ac_ct_RANLIB" >&6; }
  4817. else
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4819. $as_echo "no" >&6; }
  4820. fi
  4821. if test "x$ac_ct_RANLIB" = x; then
  4822. RANLIB=":"
  4823. else
  4824. case $cross_compiling:$ac_tool_warned in
  4825. yes:)
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4827. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4828. ac_tool_warned=yes ;;
  4829. esac
  4830. RANLIB=$ac_ct_RANLIB
  4831. fi
  4832. else
  4833. RANLIB="$ac_cv_prog_RANLIB"
  4834. fi
  4835. test -z "$RANLIB" && RANLIB=:
  4836. # Determine commands to create old-style static archives.
  4837. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4838. old_postinstall_cmds='chmod 644 $oldlib'
  4839. old_postuninstall_cmds=
  4840. if test -n "$RANLIB"; then
  4841. case $host_os in
  4842. openbsd*)
  4843. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4844. ;;
  4845. *)
  4846. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4847. ;;
  4848. esac
  4849. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4850. fi
  4851. case $host_os in
  4852. darwin*)
  4853. lock_old_archive_extraction=yes ;;
  4854. *)
  4855. lock_old_archive_extraction=no ;;
  4856. esac
  4857. for ac_prog in gawk mawk nawk awk
  4858. do
  4859. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4860. set dummy $ac_prog; ac_word=$2
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4862. $as_echo_n "checking for $ac_word... " >&6; }
  4863. if ${ac_cv_prog_AWK+:} false; then :
  4864. $as_echo_n "(cached) " >&6
  4865. else
  4866. if test -n "$AWK"; then
  4867. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4868. else
  4869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4870. for as_dir in $PATH
  4871. do
  4872. IFS=$as_save_IFS
  4873. test -z "$as_dir" && as_dir=.
  4874. for ac_exec_ext in '' $ac_executable_extensions; do
  4875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4876. ac_cv_prog_AWK="$ac_prog"
  4877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4878. break 2
  4879. fi
  4880. done
  4881. done
  4882. IFS=$as_save_IFS
  4883. fi
  4884. fi
  4885. AWK=$ac_cv_prog_AWK
  4886. if test -n "$AWK"; then
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4888. $as_echo "$AWK" >&6; }
  4889. else
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4891. $as_echo "no" >&6; }
  4892. fi
  4893. test -n "$AWK" && break
  4894. done
  4895. # If no C compiler was specified, use CC.
  4896. LTCC=${LTCC-"$CC"}
  4897. # If no C compiler flags were specified, use CFLAGS.
  4898. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4899. # Allow CC to be a program name with arguments.
  4900. compiler=$CC
  4901. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4903. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4904. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4905. $as_echo_n "(cached) " >&6
  4906. else
  4907. # These are sane defaults that work on at least a few old systems.
  4908. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4909. # Character class describing NM global symbol codes.
  4910. symcode='[BCDEGRST]'
  4911. # Regexp to match symbols that can be accessed directly from C.
  4912. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4913. # Define system-specific variables.
  4914. case $host_os in
  4915. aix*)
  4916. symcode='[BCDT]'
  4917. ;;
  4918. cygwin* | mingw* | pw32* | cegcc*)
  4919. symcode='[ABCDGISTW]'
  4920. ;;
  4921. hpux*)
  4922. if test "$host_cpu" = ia64; then
  4923. symcode='[ABCDEGRST]'
  4924. fi
  4925. ;;
  4926. irix* | nonstopux*)
  4927. symcode='[BCDEGRST]'
  4928. ;;
  4929. osf*)
  4930. symcode='[BCDEGQRST]'
  4931. ;;
  4932. solaris*)
  4933. symcode='[BDRT]'
  4934. ;;
  4935. sco3.2v5*)
  4936. symcode='[DT]'
  4937. ;;
  4938. sysv4.2uw2*)
  4939. symcode='[DT]'
  4940. ;;
  4941. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4942. symcode='[ABDT]'
  4943. ;;
  4944. sysv4)
  4945. symcode='[DFNSTU]'
  4946. ;;
  4947. esac
  4948. # If we're using GNU nm, then use its standard symbol codes.
  4949. case `$NM -V 2>&1` in
  4950. *GNU* | *'with BFD'*)
  4951. symcode='[ABCDGIRSTW]' ;;
  4952. esac
  4953. # Transform an extracted symbol line into a proper C declaration.
  4954. # Some systems (esp. on ia64) link data and code symbols differently,
  4955. # so use this general approach.
  4956. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4957. # Transform an extracted symbol line into symbol name and symbol address
  4958. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4959. 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'"
  4960. # Handle CRLF in mingw tool chain
  4961. opt_cr=
  4962. case $build_os in
  4963. mingw*)
  4964. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4965. ;;
  4966. esac
  4967. # Try without a prefix underscore, then with it.
  4968. for ac_symprfx in "" "_"; do
  4969. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4970. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4971. # Write the raw and C identifiers.
  4972. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4973. # Fake it for dumpbin and say T for any non-static function
  4974. # and D for any global variable.
  4975. # Also find C++ and __fastcall symbols from MSVC++,
  4976. # which start with @ or ?.
  4977. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4978. " {last_section=section; section=\$ 3};"\
  4979. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4980. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4981. " \$ 0!~/External *\|/{next};"\
  4982. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4983. " {if(hide[section]) next};"\
  4984. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4985. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4986. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4987. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4988. " ' prfx=^$ac_symprfx"
  4989. else
  4990. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4991. fi
  4992. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4993. # Check to see that the pipe works correctly.
  4994. pipe_works=no
  4995. rm -f conftest*
  4996. cat > conftest.$ac_ext <<_LT_EOF
  4997. #ifdef __cplusplus
  4998. extern "C" {
  4999. #endif
  5000. char nm_test_var;
  5001. void nm_test_func(void);
  5002. void nm_test_func(void){}
  5003. #ifdef __cplusplus
  5004. }
  5005. #endif
  5006. int main(){nm_test_var='a';nm_test_func();return(0);}
  5007. _LT_EOF
  5008. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5009. (eval $ac_compile) 2>&5
  5010. ac_status=$?
  5011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5012. test $ac_status = 0; }; then
  5013. # Now try to grab the symbols.
  5014. nlist=conftest.nm
  5015. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5016. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5017. ac_status=$?
  5018. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5019. test $ac_status = 0; } && test -s "$nlist"; then
  5020. # Try sorting and uniquifying the output.
  5021. if sort "$nlist" | uniq > "$nlist"T; then
  5022. mv -f "$nlist"T "$nlist"
  5023. else
  5024. rm -f "$nlist"T
  5025. fi
  5026. # Make sure that we snagged all the symbols we need.
  5027. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5028. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5029. cat <<_LT_EOF > conftest.$ac_ext
  5030. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5031. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5032. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5033. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5034. # define LT_DLSYM_CONST
  5035. #elif defined(__osf__)
  5036. /* This system does not cope well with relocations in const data. */
  5037. # define LT_DLSYM_CONST
  5038. #else
  5039. # define LT_DLSYM_CONST const
  5040. #endif
  5041. #ifdef __cplusplus
  5042. extern "C" {
  5043. #endif
  5044. _LT_EOF
  5045. # Now generate the symbol file.
  5046. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5047. cat <<_LT_EOF >> conftest.$ac_ext
  5048. /* The mapping between symbol names and symbols. */
  5049. LT_DLSYM_CONST struct {
  5050. const char *name;
  5051. void *address;
  5052. }
  5053. lt__PROGRAM__LTX_preloaded_symbols[] =
  5054. {
  5055. { "@PROGRAM@", (void *) 0 },
  5056. _LT_EOF
  5057. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5058. cat <<\_LT_EOF >> conftest.$ac_ext
  5059. {0, (void *) 0}
  5060. };
  5061. /* This works around a problem in FreeBSD linker */
  5062. #ifdef FREEBSD_WORKAROUND
  5063. static const void *lt_preloaded_setup() {
  5064. return lt__PROGRAM__LTX_preloaded_symbols;
  5065. }
  5066. #endif
  5067. #ifdef __cplusplus
  5068. }
  5069. #endif
  5070. _LT_EOF
  5071. # Now try linking the two files.
  5072. mv conftest.$ac_objext conftstm.$ac_objext
  5073. lt_globsym_save_LIBS=$LIBS
  5074. lt_globsym_save_CFLAGS=$CFLAGS
  5075. LIBS="conftstm.$ac_objext"
  5076. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5077. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5078. (eval $ac_link) 2>&5
  5079. ac_status=$?
  5080. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5081. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5082. pipe_works=yes
  5083. fi
  5084. LIBS=$lt_globsym_save_LIBS
  5085. CFLAGS=$lt_globsym_save_CFLAGS
  5086. else
  5087. echo "cannot find nm_test_func in $nlist" >&5
  5088. fi
  5089. else
  5090. echo "cannot find nm_test_var in $nlist" >&5
  5091. fi
  5092. else
  5093. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5094. fi
  5095. else
  5096. echo "$progname: failed program was:" >&5
  5097. cat conftest.$ac_ext >&5
  5098. fi
  5099. rm -rf conftest* conftst*
  5100. # Do not use the global_symbol_pipe unless it works.
  5101. if test "$pipe_works" = yes; then
  5102. break
  5103. else
  5104. lt_cv_sys_global_symbol_pipe=
  5105. fi
  5106. done
  5107. fi
  5108. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5109. lt_cv_sys_global_symbol_to_cdecl=
  5110. fi
  5111. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5113. $as_echo "failed" >&6; }
  5114. else
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5116. $as_echo "ok" >&6; }
  5117. fi
  5118. # Response file support.
  5119. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5120. nm_file_list_spec='@'
  5121. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5122. nm_file_list_spec='@'
  5123. fi
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5125. $as_echo_n "checking for sysroot... " >&6; }
  5126. # Check whether --with-sysroot was given.
  5127. if test "${with_sysroot+set}" = set; then :
  5128. withval=$with_sysroot;
  5129. else
  5130. with_sysroot=no
  5131. fi
  5132. lt_sysroot=
  5133. case ${with_sysroot} in #(
  5134. yes)
  5135. if test "$GCC" = yes; then
  5136. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5137. fi
  5138. ;; #(
  5139. /*)
  5140. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5141. ;; #(
  5142. no|'')
  5143. ;; #(
  5144. *)
  5145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5146. $as_echo "${with_sysroot}" >&6; }
  5147. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5148. ;;
  5149. esac
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5151. $as_echo "${lt_sysroot:-no}" >&6; }
  5152. # Check whether --enable-libtool-lock was given.
  5153. if test "${enable_libtool_lock+set}" = set; then :
  5154. enableval=$enable_libtool_lock;
  5155. fi
  5156. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5157. # Some flags need to be propagated to the compiler or linker for good
  5158. # libtool support.
  5159. case $host in
  5160. ia64-*-hpux*)
  5161. # Find out which ABI we are using.
  5162. echo 'int i;' > conftest.$ac_ext
  5163. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5164. (eval $ac_compile) 2>&5
  5165. ac_status=$?
  5166. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5167. test $ac_status = 0; }; then
  5168. case `/usr/bin/file conftest.$ac_objext` in
  5169. *ELF-32*)
  5170. HPUX_IA64_MODE="32"
  5171. ;;
  5172. *ELF-64*)
  5173. HPUX_IA64_MODE="64"
  5174. ;;
  5175. esac
  5176. fi
  5177. rm -rf conftest*
  5178. ;;
  5179. *-*-irix6*)
  5180. # Find out which ABI we are using.
  5181. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5182. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5183. (eval $ac_compile) 2>&5
  5184. ac_status=$?
  5185. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5186. test $ac_status = 0; }; then
  5187. if test "$lt_cv_prog_gnu_ld" = yes; then
  5188. case `/usr/bin/file conftest.$ac_objext` in
  5189. *32-bit*)
  5190. LD="${LD-ld} -melf32bsmip"
  5191. ;;
  5192. *N32*)
  5193. LD="${LD-ld} -melf32bmipn32"
  5194. ;;
  5195. *64-bit*)
  5196. LD="${LD-ld} -melf64bmip"
  5197. ;;
  5198. esac
  5199. else
  5200. case `/usr/bin/file conftest.$ac_objext` in
  5201. *32-bit*)
  5202. LD="${LD-ld} -32"
  5203. ;;
  5204. *N32*)
  5205. LD="${LD-ld} -n32"
  5206. ;;
  5207. *64-bit*)
  5208. LD="${LD-ld} -64"
  5209. ;;
  5210. esac
  5211. fi
  5212. fi
  5213. rm -rf conftest*
  5214. ;;
  5215. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5216. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5217. # Find out which ABI we are using.
  5218. echo 'int i;' > conftest.$ac_ext
  5219. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5220. (eval $ac_compile) 2>&5
  5221. ac_status=$?
  5222. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5223. test $ac_status = 0; }; then
  5224. case `/usr/bin/file conftest.o` in
  5225. *32-bit*)
  5226. case $host in
  5227. x86_64-*kfreebsd*-gnu)
  5228. LD="${LD-ld} -m elf_i386_fbsd"
  5229. ;;
  5230. x86_64-*linux*)
  5231. LD="${LD-ld} -m elf_i386"
  5232. ;;
  5233. ppc64-*linux*|powerpc64-*linux*)
  5234. LD="${LD-ld} -m elf32ppclinux"
  5235. ;;
  5236. s390x-*linux*)
  5237. LD="${LD-ld} -m elf_s390"
  5238. ;;
  5239. sparc64-*linux*)
  5240. LD="${LD-ld} -m elf32_sparc"
  5241. ;;
  5242. esac
  5243. ;;
  5244. *64-bit*)
  5245. case $host in
  5246. x86_64-*kfreebsd*-gnu)
  5247. LD="${LD-ld} -m elf_x86_64_fbsd"
  5248. ;;
  5249. x86_64-*linux*)
  5250. LD="${LD-ld} -m elf_x86_64"
  5251. ;;
  5252. ppc*-*linux*|powerpc*-*linux*)
  5253. LD="${LD-ld} -m elf64ppc"
  5254. ;;
  5255. s390*-*linux*|s390*-*tpf*)
  5256. LD="${LD-ld} -m elf64_s390"
  5257. ;;
  5258. sparc*-*linux*)
  5259. LD="${LD-ld} -m elf64_sparc"
  5260. ;;
  5261. esac
  5262. ;;
  5263. esac
  5264. fi
  5265. rm -rf conftest*
  5266. ;;
  5267. *-*-sco3.2v5*)
  5268. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5269. SAVE_CFLAGS="$CFLAGS"
  5270. CFLAGS="$CFLAGS -belf"
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5272. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5273. if ${lt_cv_cc_needs_belf+:} false; then :
  5274. $as_echo_n "(cached) " >&6
  5275. else
  5276. ac_ext=c
  5277. ac_cpp='$CPP $CPPFLAGS'
  5278. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5279. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5280. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5282. /* end confdefs.h. */
  5283. int
  5284. main ()
  5285. {
  5286. ;
  5287. return 0;
  5288. }
  5289. _ACEOF
  5290. if ac_fn_c_try_link "$LINENO"; then :
  5291. lt_cv_cc_needs_belf=yes
  5292. else
  5293. lt_cv_cc_needs_belf=no
  5294. fi
  5295. rm -f core conftest.err conftest.$ac_objext \
  5296. conftest$ac_exeext conftest.$ac_ext
  5297. ac_ext=c
  5298. ac_cpp='$CPP $CPPFLAGS'
  5299. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5300. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5301. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5302. fi
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5304. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5305. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5306. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5307. CFLAGS="$SAVE_CFLAGS"
  5308. fi
  5309. ;;
  5310. *-*solaris*)
  5311. # Find out which ABI we are using.
  5312. echo 'int i;' > conftest.$ac_ext
  5313. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5314. (eval $ac_compile) 2>&5
  5315. ac_status=$?
  5316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5317. test $ac_status = 0; }; then
  5318. case `/usr/bin/file conftest.o` in
  5319. *64-bit*)
  5320. case $lt_cv_prog_gnu_ld in
  5321. yes*)
  5322. case $host in
  5323. i?86-*-solaris*)
  5324. LD="${LD-ld} -m elf_x86_64"
  5325. ;;
  5326. sparc*-*-solaris*)
  5327. LD="${LD-ld} -m elf64_sparc"
  5328. ;;
  5329. esac
  5330. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5331. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5332. LD="${LD-ld}_sol2"
  5333. fi
  5334. ;;
  5335. *)
  5336. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5337. LD="${LD-ld} -64"
  5338. fi
  5339. ;;
  5340. esac
  5341. ;;
  5342. esac
  5343. fi
  5344. rm -rf conftest*
  5345. ;;
  5346. esac
  5347. need_locks="$enable_libtool_lock"
  5348. if test -n "$ac_tool_prefix"; then
  5349. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5350. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5352. $as_echo_n "checking for $ac_word... " >&6; }
  5353. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5354. $as_echo_n "(cached) " >&6
  5355. else
  5356. if test -n "$MANIFEST_TOOL"; then
  5357. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5358. else
  5359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5360. for as_dir in $PATH
  5361. do
  5362. IFS=$as_save_IFS
  5363. test -z "$as_dir" && as_dir=.
  5364. for ac_exec_ext in '' $ac_executable_extensions; do
  5365. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5366. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5368. break 2
  5369. fi
  5370. done
  5371. done
  5372. IFS=$as_save_IFS
  5373. fi
  5374. fi
  5375. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5376. if test -n "$MANIFEST_TOOL"; then
  5377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5378. $as_echo "$MANIFEST_TOOL" >&6; }
  5379. else
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5381. $as_echo "no" >&6; }
  5382. fi
  5383. fi
  5384. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5385. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5386. # Extract the first word of "mt", so it can be a program name with args.
  5387. set dummy mt; ac_word=$2
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5389. $as_echo_n "checking for $ac_word... " >&6; }
  5390. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5391. $as_echo_n "(cached) " >&6
  5392. else
  5393. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5394. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5395. else
  5396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5397. for as_dir in $PATH
  5398. do
  5399. IFS=$as_save_IFS
  5400. test -z "$as_dir" && as_dir=.
  5401. for ac_exec_ext in '' $ac_executable_extensions; do
  5402. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5403. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5405. break 2
  5406. fi
  5407. done
  5408. done
  5409. IFS=$as_save_IFS
  5410. fi
  5411. fi
  5412. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5413. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5415. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5416. else
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5418. $as_echo "no" >&6; }
  5419. fi
  5420. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5421. MANIFEST_TOOL=":"
  5422. else
  5423. case $cross_compiling:$ac_tool_warned in
  5424. yes:)
  5425. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5426. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5427. ac_tool_warned=yes ;;
  5428. esac
  5429. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5430. fi
  5431. else
  5432. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5433. fi
  5434. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5436. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5437. if ${lt_cv_path_mainfest_tool+:} false; then :
  5438. $as_echo_n "(cached) " >&6
  5439. else
  5440. lt_cv_path_mainfest_tool=no
  5441. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5442. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5443. cat conftest.err >&5
  5444. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5445. lt_cv_path_mainfest_tool=yes
  5446. fi
  5447. rm -f conftest*
  5448. fi
  5449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5450. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5451. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5452. MANIFEST_TOOL=:
  5453. fi
  5454. case $host_os in
  5455. rhapsody* | darwin*)
  5456. if test -n "$ac_tool_prefix"; then
  5457. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5458. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5460. $as_echo_n "checking for $ac_word... " >&6; }
  5461. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5462. $as_echo_n "(cached) " >&6
  5463. else
  5464. if test -n "$DSYMUTIL"; then
  5465. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5466. else
  5467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5468. for as_dir in $PATH
  5469. do
  5470. IFS=$as_save_IFS
  5471. test -z "$as_dir" && as_dir=.
  5472. for ac_exec_ext in '' $ac_executable_extensions; do
  5473. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5474. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5475. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5476. break 2
  5477. fi
  5478. done
  5479. done
  5480. IFS=$as_save_IFS
  5481. fi
  5482. fi
  5483. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5484. if test -n "$DSYMUTIL"; then
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5486. $as_echo "$DSYMUTIL" >&6; }
  5487. else
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5489. $as_echo "no" >&6; }
  5490. fi
  5491. fi
  5492. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5493. ac_ct_DSYMUTIL=$DSYMUTIL
  5494. # Extract the first word of "dsymutil", so it can be a program name with args.
  5495. set dummy dsymutil; ac_word=$2
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5497. $as_echo_n "checking for $ac_word... " >&6; }
  5498. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5499. $as_echo_n "(cached) " >&6
  5500. else
  5501. if test -n "$ac_ct_DSYMUTIL"; then
  5502. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5503. else
  5504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5505. for as_dir in $PATH
  5506. do
  5507. IFS=$as_save_IFS
  5508. test -z "$as_dir" && as_dir=.
  5509. for ac_exec_ext in '' $ac_executable_extensions; do
  5510. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5511. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5513. break 2
  5514. fi
  5515. done
  5516. done
  5517. IFS=$as_save_IFS
  5518. fi
  5519. fi
  5520. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5521. if test -n "$ac_ct_DSYMUTIL"; then
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5523. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5524. else
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5526. $as_echo "no" >&6; }
  5527. fi
  5528. if test "x$ac_ct_DSYMUTIL" = x; then
  5529. DSYMUTIL=":"
  5530. else
  5531. case $cross_compiling:$ac_tool_warned in
  5532. yes:)
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5534. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5535. ac_tool_warned=yes ;;
  5536. esac
  5537. DSYMUTIL=$ac_ct_DSYMUTIL
  5538. fi
  5539. else
  5540. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5541. fi
  5542. if test -n "$ac_tool_prefix"; then
  5543. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5544. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5546. $as_echo_n "checking for $ac_word... " >&6; }
  5547. if ${ac_cv_prog_NMEDIT+:} false; then :
  5548. $as_echo_n "(cached) " >&6
  5549. else
  5550. if test -n "$NMEDIT"; then
  5551. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5552. else
  5553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5554. for as_dir in $PATH
  5555. do
  5556. IFS=$as_save_IFS
  5557. test -z "$as_dir" && as_dir=.
  5558. for ac_exec_ext in '' $ac_executable_extensions; do
  5559. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5560. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5562. break 2
  5563. fi
  5564. done
  5565. done
  5566. IFS=$as_save_IFS
  5567. fi
  5568. fi
  5569. NMEDIT=$ac_cv_prog_NMEDIT
  5570. if test -n "$NMEDIT"; then
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5572. $as_echo "$NMEDIT" >&6; }
  5573. else
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5575. $as_echo "no" >&6; }
  5576. fi
  5577. fi
  5578. if test -z "$ac_cv_prog_NMEDIT"; then
  5579. ac_ct_NMEDIT=$NMEDIT
  5580. # Extract the first word of "nmedit", so it can be a program name with args.
  5581. set dummy nmedit; ac_word=$2
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5583. $as_echo_n "checking for $ac_word... " >&6; }
  5584. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5585. $as_echo_n "(cached) " >&6
  5586. else
  5587. if test -n "$ac_ct_NMEDIT"; then
  5588. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5589. else
  5590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5591. for as_dir in $PATH
  5592. do
  5593. IFS=$as_save_IFS
  5594. test -z "$as_dir" && as_dir=.
  5595. for ac_exec_ext in '' $ac_executable_extensions; do
  5596. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5597. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5599. break 2
  5600. fi
  5601. done
  5602. done
  5603. IFS=$as_save_IFS
  5604. fi
  5605. fi
  5606. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5607. if test -n "$ac_ct_NMEDIT"; then
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5609. $as_echo "$ac_ct_NMEDIT" >&6; }
  5610. else
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5612. $as_echo "no" >&6; }
  5613. fi
  5614. if test "x$ac_ct_NMEDIT" = x; then
  5615. NMEDIT=":"
  5616. else
  5617. case $cross_compiling:$ac_tool_warned in
  5618. yes:)
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5620. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5621. ac_tool_warned=yes ;;
  5622. esac
  5623. NMEDIT=$ac_ct_NMEDIT
  5624. fi
  5625. else
  5626. NMEDIT="$ac_cv_prog_NMEDIT"
  5627. fi
  5628. if test -n "$ac_tool_prefix"; then
  5629. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5630. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5632. $as_echo_n "checking for $ac_word... " >&6; }
  5633. if ${ac_cv_prog_LIPO+:} false; then :
  5634. $as_echo_n "(cached) " >&6
  5635. else
  5636. if test -n "$LIPO"; then
  5637. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5638. else
  5639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5640. for as_dir in $PATH
  5641. do
  5642. IFS=$as_save_IFS
  5643. test -z "$as_dir" && as_dir=.
  5644. for ac_exec_ext in '' $ac_executable_extensions; do
  5645. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5646. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5648. break 2
  5649. fi
  5650. done
  5651. done
  5652. IFS=$as_save_IFS
  5653. fi
  5654. fi
  5655. LIPO=$ac_cv_prog_LIPO
  5656. if test -n "$LIPO"; then
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5658. $as_echo "$LIPO" >&6; }
  5659. else
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5661. $as_echo "no" >&6; }
  5662. fi
  5663. fi
  5664. if test -z "$ac_cv_prog_LIPO"; then
  5665. ac_ct_LIPO=$LIPO
  5666. # Extract the first word of "lipo", so it can be a program name with args.
  5667. set dummy lipo; ac_word=$2
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5669. $as_echo_n "checking for $ac_word... " >&6; }
  5670. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5671. $as_echo_n "(cached) " >&6
  5672. else
  5673. if test -n "$ac_ct_LIPO"; then
  5674. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5675. else
  5676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5677. for as_dir in $PATH
  5678. do
  5679. IFS=$as_save_IFS
  5680. test -z "$as_dir" && as_dir=.
  5681. for ac_exec_ext in '' $ac_executable_extensions; do
  5682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5683. ac_cv_prog_ac_ct_LIPO="lipo"
  5684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5685. break 2
  5686. fi
  5687. done
  5688. done
  5689. IFS=$as_save_IFS
  5690. fi
  5691. fi
  5692. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5693. if test -n "$ac_ct_LIPO"; then
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5695. $as_echo "$ac_ct_LIPO" >&6; }
  5696. else
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5698. $as_echo "no" >&6; }
  5699. fi
  5700. if test "x$ac_ct_LIPO" = x; then
  5701. LIPO=":"
  5702. else
  5703. case $cross_compiling:$ac_tool_warned in
  5704. yes:)
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5706. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5707. ac_tool_warned=yes ;;
  5708. esac
  5709. LIPO=$ac_ct_LIPO
  5710. fi
  5711. else
  5712. LIPO="$ac_cv_prog_LIPO"
  5713. fi
  5714. if test -n "$ac_tool_prefix"; then
  5715. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5716. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5718. $as_echo_n "checking for $ac_word... " >&6; }
  5719. if ${ac_cv_prog_OTOOL+:} false; then :
  5720. $as_echo_n "(cached) " >&6
  5721. else
  5722. if test -n "$OTOOL"; then
  5723. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5724. else
  5725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5726. for as_dir in $PATH
  5727. do
  5728. IFS=$as_save_IFS
  5729. test -z "$as_dir" && as_dir=.
  5730. for ac_exec_ext in '' $ac_executable_extensions; do
  5731. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5732. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5734. break 2
  5735. fi
  5736. done
  5737. done
  5738. IFS=$as_save_IFS
  5739. fi
  5740. fi
  5741. OTOOL=$ac_cv_prog_OTOOL
  5742. if test -n "$OTOOL"; then
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5744. $as_echo "$OTOOL" >&6; }
  5745. else
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5747. $as_echo "no" >&6; }
  5748. fi
  5749. fi
  5750. if test -z "$ac_cv_prog_OTOOL"; then
  5751. ac_ct_OTOOL=$OTOOL
  5752. # Extract the first word of "otool", so it can be a program name with args.
  5753. set dummy otool; ac_word=$2
  5754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5755. $as_echo_n "checking for $ac_word... " >&6; }
  5756. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5757. $as_echo_n "(cached) " >&6
  5758. else
  5759. if test -n "$ac_ct_OTOOL"; then
  5760. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5761. else
  5762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5763. for as_dir in $PATH
  5764. do
  5765. IFS=$as_save_IFS
  5766. test -z "$as_dir" && as_dir=.
  5767. for ac_exec_ext in '' $ac_executable_extensions; do
  5768. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5769. ac_cv_prog_ac_ct_OTOOL="otool"
  5770. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5771. break 2
  5772. fi
  5773. done
  5774. done
  5775. IFS=$as_save_IFS
  5776. fi
  5777. fi
  5778. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5779. if test -n "$ac_ct_OTOOL"; then
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5781. $as_echo "$ac_ct_OTOOL" >&6; }
  5782. else
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5784. $as_echo "no" >&6; }
  5785. fi
  5786. if test "x$ac_ct_OTOOL" = x; then
  5787. OTOOL=":"
  5788. else
  5789. case $cross_compiling:$ac_tool_warned in
  5790. yes:)
  5791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5792. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5793. ac_tool_warned=yes ;;
  5794. esac
  5795. OTOOL=$ac_ct_OTOOL
  5796. fi
  5797. else
  5798. OTOOL="$ac_cv_prog_OTOOL"
  5799. fi
  5800. if test -n "$ac_tool_prefix"; then
  5801. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5802. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5804. $as_echo_n "checking for $ac_word... " >&6; }
  5805. if ${ac_cv_prog_OTOOL64+:} false; then :
  5806. $as_echo_n "(cached) " >&6
  5807. else
  5808. if test -n "$OTOOL64"; then
  5809. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5810. else
  5811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5812. for as_dir in $PATH
  5813. do
  5814. IFS=$as_save_IFS
  5815. test -z "$as_dir" && as_dir=.
  5816. for ac_exec_ext in '' $ac_executable_extensions; do
  5817. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5818. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5820. break 2
  5821. fi
  5822. done
  5823. done
  5824. IFS=$as_save_IFS
  5825. fi
  5826. fi
  5827. OTOOL64=$ac_cv_prog_OTOOL64
  5828. if test -n "$OTOOL64"; then
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5830. $as_echo "$OTOOL64" >&6; }
  5831. else
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5833. $as_echo "no" >&6; }
  5834. fi
  5835. fi
  5836. if test -z "$ac_cv_prog_OTOOL64"; then
  5837. ac_ct_OTOOL64=$OTOOL64
  5838. # Extract the first word of "otool64", so it can be a program name with args.
  5839. set dummy otool64; ac_word=$2
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5841. $as_echo_n "checking for $ac_word... " >&6; }
  5842. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5843. $as_echo_n "(cached) " >&6
  5844. else
  5845. if test -n "$ac_ct_OTOOL64"; then
  5846. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5847. else
  5848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5849. for as_dir in $PATH
  5850. do
  5851. IFS=$as_save_IFS
  5852. test -z "$as_dir" && as_dir=.
  5853. for ac_exec_ext in '' $ac_executable_extensions; do
  5854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5855. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5857. break 2
  5858. fi
  5859. done
  5860. done
  5861. IFS=$as_save_IFS
  5862. fi
  5863. fi
  5864. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5865. if test -n "$ac_ct_OTOOL64"; then
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5867. $as_echo "$ac_ct_OTOOL64" >&6; }
  5868. else
  5869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5870. $as_echo "no" >&6; }
  5871. fi
  5872. if test "x$ac_ct_OTOOL64" = x; then
  5873. OTOOL64=":"
  5874. else
  5875. case $cross_compiling:$ac_tool_warned in
  5876. yes:)
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5878. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5879. ac_tool_warned=yes ;;
  5880. esac
  5881. OTOOL64=$ac_ct_OTOOL64
  5882. fi
  5883. else
  5884. OTOOL64="$ac_cv_prog_OTOOL64"
  5885. fi
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5887. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5888. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5889. $as_echo_n "(cached) " >&6
  5890. else
  5891. lt_cv_apple_cc_single_mod=no
  5892. if test -z "${LT_MULTI_MODULE}"; then
  5893. # By default we will add the -single_module flag. You can override
  5894. # by either setting the environment variable LT_MULTI_MODULE
  5895. # non-empty at configure time, or by adding -multi_module to the
  5896. # link flags.
  5897. rm -rf libconftest.dylib*
  5898. echo "int foo(void){return 1;}" > conftest.c
  5899. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5900. -dynamiclib -Wl,-single_module conftest.c" >&5
  5901. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5902. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5903. _lt_result=$?
  5904. # If there is a non-empty error log, and "single_module"
  5905. # appears in it, assume the flag caused a linker warning
  5906. if test -s conftest.err && $GREP single_module conftest.err; then
  5907. cat conftest.err >&5
  5908. # Otherwise, if the output was created with a 0 exit code from
  5909. # the compiler, it worked.
  5910. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5911. lt_cv_apple_cc_single_mod=yes
  5912. else
  5913. cat conftest.err >&5
  5914. fi
  5915. rm -rf libconftest.dylib*
  5916. rm -f conftest.*
  5917. fi
  5918. fi
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5920. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5922. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5923. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5924. $as_echo_n "(cached) " >&6
  5925. else
  5926. lt_cv_ld_exported_symbols_list=no
  5927. save_LDFLAGS=$LDFLAGS
  5928. echo "_main" > conftest.sym
  5929. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5931. /* end confdefs.h. */
  5932. int
  5933. main ()
  5934. {
  5935. ;
  5936. return 0;
  5937. }
  5938. _ACEOF
  5939. if ac_fn_c_try_link "$LINENO"; then :
  5940. lt_cv_ld_exported_symbols_list=yes
  5941. else
  5942. lt_cv_ld_exported_symbols_list=no
  5943. fi
  5944. rm -f core conftest.err conftest.$ac_objext \
  5945. conftest$ac_exeext conftest.$ac_ext
  5946. LDFLAGS="$save_LDFLAGS"
  5947. fi
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5949. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5951. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5952. if ${lt_cv_ld_force_load+:} false; then :
  5953. $as_echo_n "(cached) " >&6
  5954. else
  5955. lt_cv_ld_force_load=no
  5956. cat > conftest.c << _LT_EOF
  5957. int forced_loaded() { return 2;}
  5958. _LT_EOF
  5959. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5960. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5961. echo "$AR cru libconftest.a conftest.o" >&5
  5962. $AR cru libconftest.a conftest.o 2>&5
  5963. echo "$RANLIB libconftest.a" >&5
  5964. $RANLIB libconftest.a 2>&5
  5965. cat > conftest.c << _LT_EOF
  5966. int main() { return 0;}
  5967. _LT_EOF
  5968. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5969. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5970. _lt_result=$?
  5971. if test -s conftest.err && $GREP force_load conftest.err; then
  5972. cat conftest.err >&5
  5973. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5974. lt_cv_ld_force_load=yes
  5975. else
  5976. cat conftest.err >&5
  5977. fi
  5978. rm -f conftest.err libconftest.a conftest conftest.c
  5979. rm -rf conftest.dSYM
  5980. fi
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5982. $as_echo "$lt_cv_ld_force_load" >&6; }
  5983. case $host_os in
  5984. rhapsody* | darwin1.[012])
  5985. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5986. darwin1.*)
  5987. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5988. darwin*) # darwin 5.x on
  5989. # if running on 10.5 or later, the deployment target defaults
  5990. # to the OS version, if on x86, and 10.4, the deployment
  5991. # target defaults to 10.4. Don't you love it?
  5992. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5993. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5994. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5995. 10.[012]*)
  5996. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5997. 10.*)
  5998. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5999. esac
  6000. ;;
  6001. esac
  6002. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6003. _lt_dar_single_mod='$single_module'
  6004. fi
  6005. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6006. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6007. else
  6008. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6009. fi
  6010. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6011. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6012. else
  6013. _lt_dsymutil=
  6014. fi
  6015. ;;
  6016. esac
  6017. ac_ext=c
  6018. ac_cpp='$CPP $CPPFLAGS'
  6019. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6020. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6021. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6023. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6024. # On Suns, sometimes $CPP names a directory.
  6025. if test -n "$CPP" && test -d "$CPP"; then
  6026. CPP=
  6027. fi
  6028. if test -z "$CPP"; then
  6029. if ${ac_cv_prog_CPP+:} false; then :
  6030. $as_echo_n "(cached) " >&6
  6031. else
  6032. # Double quotes because CPP needs to be expanded
  6033. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6034. do
  6035. ac_preproc_ok=false
  6036. for ac_c_preproc_warn_flag in '' yes
  6037. do
  6038. # Use a header file that comes with gcc, so configuring glibc
  6039. # with a fresh cross-compiler works.
  6040. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6041. # <limits.h> exists even on freestanding compilers.
  6042. # On the NeXT, cc -E runs the code through the compiler's parser,
  6043. # not just through cpp. "Syntax error" is here to catch this case.
  6044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6045. /* end confdefs.h. */
  6046. #ifdef __STDC__
  6047. # include <limits.h>
  6048. #else
  6049. # include <assert.h>
  6050. #endif
  6051. Syntax error
  6052. _ACEOF
  6053. if ac_fn_c_try_cpp "$LINENO"; then :
  6054. else
  6055. # Broken: fails on valid input.
  6056. continue
  6057. fi
  6058. rm -f conftest.err conftest.i conftest.$ac_ext
  6059. # OK, works on sane cases. Now check whether nonexistent headers
  6060. # can be detected and how.
  6061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6062. /* end confdefs.h. */
  6063. #include <ac_nonexistent.h>
  6064. _ACEOF
  6065. if ac_fn_c_try_cpp "$LINENO"; then :
  6066. # Broken: success on invalid input.
  6067. continue
  6068. else
  6069. # Passes both tests.
  6070. ac_preproc_ok=:
  6071. break
  6072. fi
  6073. rm -f conftest.err conftest.i conftest.$ac_ext
  6074. done
  6075. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6076. rm -f conftest.i conftest.err conftest.$ac_ext
  6077. if $ac_preproc_ok; then :
  6078. break
  6079. fi
  6080. done
  6081. ac_cv_prog_CPP=$CPP
  6082. fi
  6083. CPP=$ac_cv_prog_CPP
  6084. else
  6085. ac_cv_prog_CPP=$CPP
  6086. fi
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6088. $as_echo "$CPP" >&6; }
  6089. ac_preproc_ok=false
  6090. for ac_c_preproc_warn_flag in '' yes
  6091. do
  6092. # Use a header file that comes with gcc, so configuring glibc
  6093. # with a fresh cross-compiler works.
  6094. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6095. # <limits.h> exists even on freestanding compilers.
  6096. # On the NeXT, cc -E runs the code through the compiler's parser,
  6097. # not just through cpp. "Syntax error" is here to catch this case.
  6098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6099. /* end confdefs.h. */
  6100. #ifdef __STDC__
  6101. # include <limits.h>
  6102. #else
  6103. # include <assert.h>
  6104. #endif
  6105. Syntax error
  6106. _ACEOF
  6107. if ac_fn_c_try_cpp "$LINENO"; then :
  6108. else
  6109. # Broken: fails on valid input.
  6110. continue
  6111. fi
  6112. rm -f conftest.err conftest.i conftest.$ac_ext
  6113. # OK, works on sane cases. Now check whether nonexistent headers
  6114. # can be detected and how.
  6115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6116. /* end confdefs.h. */
  6117. #include <ac_nonexistent.h>
  6118. _ACEOF
  6119. if ac_fn_c_try_cpp "$LINENO"; then :
  6120. # Broken: success on invalid input.
  6121. continue
  6122. else
  6123. # Passes both tests.
  6124. ac_preproc_ok=:
  6125. break
  6126. fi
  6127. rm -f conftest.err conftest.i conftest.$ac_ext
  6128. done
  6129. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6130. rm -f conftest.i conftest.err conftest.$ac_ext
  6131. if $ac_preproc_ok; then :
  6132. else
  6133. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6134. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6135. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6136. See \`config.log' for more details" "$LINENO" 5; }
  6137. fi
  6138. ac_ext=c
  6139. ac_cpp='$CPP $CPPFLAGS'
  6140. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6141. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6142. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6144. $as_echo_n "checking for ANSI C header files... " >&6; }
  6145. if ${ac_cv_header_stdc+:} false; then :
  6146. $as_echo_n "(cached) " >&6
  6147. else
  6148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6149. /* end confdefs.h. */
  6150. #include <stdlib.h>
  6151. #include <stdarg.h>
  6152. #include <string.h>
  6153. #include <float.h>
  6154. int
  6155. main ()
  6156. {
  6157. ;
  6158. return 0;
  6159. }
  6160. _ACEOF
  6161. if ac_fn_c_try_compile "$LINENO"; then :
  6162. ac_cv_header_stdc=yes
  6163. else
  6164. ac_cv_header_stdc=no
  6165. fi
  6166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6167. if test $ac_cv_header_stdc = yes; then
  6168. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6170. /* end confdefs.h. */
  6171. #include <string.h>
  6172. _ACEOF
  6173. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6174. $EGREP "memchr" >/dev/null 2>&1; then :
  6175. else
  6176. ac_cv_header_stdc=no
  6177. fi
  6178. rm -f conftest*
  6179. fi
  6180. if test $ac_cv_header_stdc = yes; then
  6181. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6183. /* end confdefs.h. */
  6184. #include <stdlib.h>
  6185. _ACEOF
  6186. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6187. $EGREP "free" >/dev/null 2>&1; then :
  6188. else
  6189. ac_cv_header_stdc=no
  6190. fi
  6191. rm -f conftest*
  6192. fi
  6193. if test $ac_cv_header_stdc = yes; then
  6194. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6195. if test "$cross_compiling" = yes; then :
  6196. :
  6197. else
  6198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6199. /* end confdefs.h. */
  6200. #include <ctype.h>
  6201. #include <stdlib.h>
  6202. #if ((' ' & 0x0FF) == 0x020)
  6203. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6204. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6205. #else
  6206. # define ISLOWER(c) \
  6207. (('a' <= (c) && (c) <= 'i') \
  6208. || ('j' <= (c) && (c) <= 'r') \
  6209. || ('s' <= (c) && (c) <= 'z'))
  6210. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6211. #endif
  6212. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6213. int
  6214. main ()
  6215. {
  6216. int i;
  6217. for (i = 0; i < 256; i++)
  6218. if (XOR (islower (i), ISLOWER (i))
  6219. || toupper (i) != TOUPPER (i))
  6220. return 2;
  6221. return 0;
  6222. }
  6223. _ACEOF
  6224. if ac_fn_c_try_run "$LINENO"; then :
  6225. else
  6226. ac_cv_header_stdc=no
  6227. fi
  6228. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6229. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6230. fi
  6231. fi
  6232. fi
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6234. $as_echo "$ac_cv_header_stdc" >&6; }
  6235. if test $ac_cv_header_stdc = yes; then
  6236. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6237. fi
  6238. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6239. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6240. inttypes.h stdint.h unistd.h
  6241. do :
  6242. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6243. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6244. "
  6245. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6246. cat >>confdefs.h <<_ACEOF
  6247. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6248. _ACEOF
  6249. fi
  6250. done
  6251. for ac_header in dlfcn.h
  6252. do :
  6253. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6254. "
  6255. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6256. cat >>confdefs.h <<_ACEOF
  6257. #define HAVE_DLFCN_H 1
  6258. _ACEOF
  6259. fi
  6260. done
  6261. # Set options
  6262. enable_win32_dll=yes
  6263. case $host in
  6264. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6265. if test -n "$ac_tool_prefix"; then
  6266. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6267. set dummy ${ac_tool_prefix}as; ac_word=$2
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6269. $as_echo_n "checking for $ac_word... " >&6; }
  6270. if ${ac_cv_prog_AS+:} false; then :
  6271. $as_echo_n "(cached) " >&6
  6272. else
  6273. if test -n "$AS"; then
  6274. ac_cv_prog_AS="$AS" # Let the user override the test.
  6275. else
  6276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6277. for as_dir in $PATH
  6278. do
  6279. IFS=$as_save_IFS
  6280. test -z "$as_dir" && as_dir=.
  6281. for ac_exec_ext in '' $ac_executable_extensions; do
  6282. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6283. ac_cv_prog_AS="${ac_tool_prefix}as"
  6284. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6285. break 2
  6286. fi
  6287. done
  6288. done
  6289. IFS=$as_save_IFS
  6290. fi
  6291. fi
  6292. AS=$ac_cv_prog_AS
  6293. if test -n "$AS"; then
  6294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6295. $as_echo "$AS" >&6; }
  6296. else
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6298. $as_echo "no" >&6; }
  6299. fi
  6300. fi
  6301. if test -z "$ac_cv_prog_AS"; then
  6302. ac_ct_AS=$AS
  6303. # Extract the first word of "as", so it can be a program name with args.
  6304. set dummy as; ac_word=$2
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6306. $as_echo_n "checking for $ac_word... " >&6; }
  6307. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6308. $as_echo_n "(cached) " >&6
  6309. else
  6310. if test -n "$ac_ct_AS"; then
  6311. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6312. else
  6313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6314. for as_dir in $PATH
  6315. do
  6316. IFS=$as_save_IFS
  6317. test -z "$as_dir" && as_dir=.
  6318. for ac_exec_ext in '' $ac_executable_extensions; do
  6319. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6320. ac_cv_prog_ac_ct_AS="as"
  6321. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6322. break 2
  6323. fi
  6324. done
  6325. done
  6326. IFS=$as_save_IFS
  6327. fi
  6328. fi
  6329. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6330. if test -n "$ac_ct_AS"; then
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6332. $as_echo "$ac_ct_AS" >&6; }
  6333. else
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6335. $as_echo "no" >&6; }
  6336. fi
  6337. if test "x$ac_ct_AS" = x; then
  6338. AS="false"
  6339. else
  6340. case $cross_compiling:$ac_tool_warned in
  6341. yes:)
  6342. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6343. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6344. ac_tool_warned=yes ;;
  6345. esac
  6346. AS=$ac_ct_AS
  6347. fi
  6348. else
  6349. AS="$ac_cv_prog_AS"
  6350. fi
  6351. if test -n "$ac_tool_prefix"; then
  6352. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6353. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6355. $as_echo_n "checking for $ac_word... " >&6; }
  6356. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6357. $as_echo_n "(cached) " >&6
  6358. else
  6359. if test -n "$DLLTOOL"; then
  6360. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6361. else
  6362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6363. for as_dir in $PATH
  6364. do
  6365. IFS=$as_save_IFS
  6366. test -z "$as_dir" && as_dir=.
  6367. for ac_exec_ext in '' $ac_executable_extensions; do
  6368. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6369. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6370. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6371. break 2
  6372. fi
  6373. done
  6374. done
  6375. IFS=$as_save_IFS
  6376. fi
  6377. fi
  6378. DLLTOOL=$ac_cv_prog_DLLTOOL
  6379. if test -n "$DLLTOOL"; then
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6381. $as_echo "$DLLTOOL" >&6; }
  6382. else
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6384. $as_echo "no" >&6; }
  6385. fi
  6386. fi
  6387. if test -z "$ac_cv_prog_DLLTOOL"; then
  6388. ac_ct_DLLTOOL=$DLLTOOL
  6389. # Extract the first word of "dlltool", so it can be a program name with args.
  6390. set dummy dlltool; ac_word=$2
  6391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6392. $as_echo_n "checking for $ac_word... " >&6; }
  6393. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6394. $as_echo_n "(cached) " >&6
  6395. else
  6396. if test -n "$ac_ct_DLLTOOL"; then
  6397. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6398. else
  6399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6400. for as_dir in $PATH
  6401. do
  6402. IFS=$as_save_IFS
  6403. test -z "$as_dir" && as_dir=.
  6404. for ac_exec_ext in '' $ac_executable_extensions; do
  6405. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6406. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6408. break 2
  6409. fi
  6410. done
  6411. done
  6412. IFS=$as_save_IFS
  6413. fi
  6414. fi
  6415. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6416. if test -n "$ac_ct_DLLTOOL"; then
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6418. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6419. else
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6421. $as_echo "no" >&6; }
  6422. fi
  6423. if test "x$ac_ct_DLLTOOL" = x; then
  6424. DLLTOOL="false"
  6425. else
  6426. case $cross_compiling:$ac_tool_warned in
  6427. yes:)
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6429. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6430. ac_tool_warned=yes ;;
  6431. esac
  6432. DLLTOOL=$ac_ct_DLLTOOL
  6433. fi
  6434. else
  6435. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6436. fi
  6437. if test -n "$ac_tool_prefix"; then
  6438. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6439. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6441. $as_echo_n "checking for $ac_word... " >&6; }
  6442. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6443. $as_echo_n "(cached) " >&6
  6444. else
  6445. if test -n "$OBJDUMP"; then
  6446. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6447. else
  6448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6449. for as_dir in $PATH
  6450. do
  6451. IFS=$as_save_IFS
  6452. test -z "$as_dir" && as_dir=.
  6453. for ac_exec_ext in '' $ac_executable_extensions; do
  6454. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6455. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6456. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6457. break 2
  6458. fi
  6459. done
  6460. done
  6461. IFS=$as_save_IFS
  6462. fi
  6463. fi
  6464. OBJDUMP=$ac_cv_prog_OBJDUMP
  6465. if test -n "$OBJDUMP"; then
  6466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6467. $as_echo "$OBJDUMP" >&6; }
  6468. else
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6470. $as_echo "no" >&6; }
  6471. fi
  6472. fi
  6473. if test -z "$ac_cv_prog_OBJDUMP"; then
  6474. ac_ct_OBJDUMP=$OBJDUMP
  6475. # Extract the first word of "objdump", so it can be a program name with args.
  6476. set dummy objdump; ac_word=$2
  6477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6478. $as_echo_n "checking for $ac_word... " >&6; }
  6479. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6480. $as_echo_n "(cached) " >&6
  6481. else
  6482. if test -n "$ac_ct_OBJDUMP"; then
  6483. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6484. else
  6485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6486. for as_dir in $PATH
  6487. do
  6488. IFS=$as_save_IFS
  6489. test -z "$as_dir" && as_dir=.
  6490. for ac_exec_ext in '' $ac_executable_extensions; do
  6491. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6492. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6494. break 2
  6495. fi
  6496. done
  6497. done
  6498. IFS=$as_save_IFS
  6499. fi
  6500. fi
  6501. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6502. if test -n "$ac_ct_OBJDUMP"; then
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6504. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6505. else
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6507. $as_echo "no" >&6; }
  6508. fi
  6509. if test "x$ac_ct_OBJDUMP" = x; then
  6510. OBJDUMP="false"
  6511. else
  6512. case $cross_compiling:$ac_tool_warned in
  6513. yes:)
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6515. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6516. ac_tool_warned=yes ;;
  6517. esac
  6518. OBJDUMP=$ac_ct_OBJDUMP
  6519. fi
  6520. else
  6521. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6522. fi
  6523. ;;
  6524. esac
  6525. test -z "$AS" && AS=as
  6526. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6527. test -z "$OBJDUMP" && OBJDUMP=objdump
  6528. enable_dlopen=no
  6529. # Check whether --enable-shared was given.
  6530. if test "${enable_shared+set}" = set; then :
  6531. enableval=$enable_shared; p=${PACKAGE-default}
  6532. case $enableval in
  6533. yes) enable_shared=yes ;;
  6534. no) enable_shared=no ;;
  6535. *)
  6536. enable_shared=no
  6537. # Look at the argument we got. We use all the common list separators.
  6538. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6539. for pkg in $enableval; do
  6540. IFS="$lt_save_ifs"
  6541. if test "X$pkg" = "X$p"; then
  6542. enable_shared=yes
  6543. fi
  6544. done
  6545. IFS="$lt_save_ifs"
  6546. ;;
  6547. esac
  6548. else
  6549. enable_shared=yes
  6550. fi
  6551. # Check whether --enable-static was given.
  6552. if test "${enable_static+set}" = set; then :
  6553. enableval=$enable_static; p=${PACKAGE-default}
  6554. case $enableval in
  6555. yes) enable_static=yes ;;
  6556. no) enable_static=no ;;
  6557. *)
  6558. enable_static=no
  6559. # Look at the argument we got. We use all the common list separators.
  6560. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6561. for pkg in $enableval; do
  6562. IFS="$lt_save_ifs"
  6563. if test "X$pkg" = "X$p"; then
  6564. enable_static=yes
  6565. fi
  6566. done
  6567. IFS="$lt_save_ifs"
  6568. ;;
  6569. esac
  6570. else
  6571. enable_static=yes
  6572. fi
  6573. # Check whether --with-pic was given.
  6574. if test "${with_pic+set}" = set; then :
  6575. withval=$with_pic; lt_p=${PACKAGE-default}
  6576. case $withval in
  6577. yes|no) pic_mode=$withval ;;
  6578. *)
  6579. pic_mode=default
  6580. # Look at the argument we got. We use all the common list separators.
  6581. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6582. for lt_pkg in $withval; do
  6583. IFS="$lt_save_ifs"
  6584. if test "X$lt_pkg" = "X$lt_p"; then
  6585. pic_mode=yes
  6586. fi
  6587. done
  6588. IFS="$lt_save_ifs"
  6589. ;;
  6590. esac
  6591. else
  6592. pic_mode=default
  6593. fi
  6594. test -z "$pic_mode" && pic_mode=default
  6595. # Check whether --enable-fast-install was given.
  6596. if test "${enable_fast_install+set}" = set; then :
  6597. enableval=$enable_fast_install; p=${PACKAGE-default}
  6598. case $enableval in
  6599. yes) enable_fast_install=yes ;;
  6600. no) enable_fast_install=no ;;
  6601. *)
  6602. enable_fast_install=no
  6603. # Look at the argument we got. We use all the common list separators.
  6604. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6605. for pkg in $enableval; do
  6606. IFS="$lt_save_ifs"
  6607. if test "X$pkg" = "X$p"; then
  6608. enable_fast_install=yes
  6609. fi
  6610. done
  6611. IFS="$lt_save_ifs"
  6612. ;;
  6613. esac
  6614. else
  6615. enable_fast_install=yes
  6616. fi
  6617. # This can be used to rebuild libtool when needed
  6618. LIBTOOL_DEPS="$ltmain"
  6619. # Always use our own libtool.
  6620. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6621. test -z "$LN_S" && LN_S="ln -s"
  6622. if test -n "${ZSH_VERSION+set}" ; then
  6623. setopt NO_GLOB_SUBST
  6624. fi
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6626. $as_echo_n "checking for objdir... " >&6; }
  6627. if ${lt_cv_objdir+:} false; then :
  6628. $as_echo_n "(cached) " >&6
  6629. else
  6630. rm -f .libs 2>/dev/null
  6631. mkdir .libs 2>/dev/null
  6632. if test -d .libs; then
  6633. lt_cv_objdir=.libs
  6634. else
  6635. # MS-DOS does not allow filenames that begin with a dot.
  6636. lt_cv_objdir=_libs
  6637. fi
  6638. rmdir .libs 2>/dev/null
  6639. fi
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6641. $as_echo "$lt_cv_objdir" >&6; }
  6642. objdir=$lt_cv_objdir
  6643. cat >>confdefs.h <<_ACEOF
  6644. #define LT_OBJDIR "$lt_cv_objdir/"
  6645. _ACEOF
  6646. case $host_os in
  6647. aix3*)
  6648. # AIX sometimes has problems with the GCC collect2 program. For some
  6649. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6650. # vanish in a puff of smoke.
  6651. if test "X${COLLECT_NAMES+set}" != Xset; then
  6652. COLLECT_NAMES=
  6653. export COLLECT_NAMES
  6654. fi
  6655. ;;
  6656. esac
  6657. # Global variables:
  6658. ofile=libtool
  6659. can_build_shared=yes
  6660. # All known linkers require a `.a' archive for static linking (except MSVC,
  6661. # which needs '.lib').
  6662. libext=a
  6663. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6664. old_CC="$CC"
  6665. old_CFLAGS="$CFLAGS"
  6666. # Set sane defaults for various variables
  6667. test -z "$CC" && CC=cc
  6668. test -z "$LTCC" && LTCC=$CC
  6669. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6670. test -z "$LD" && LD=ld
  6671. test -z "$ac_objext" && ac_objext=o
  6672. for cc_temp in $compiler""; do
  6673. case $cc_temp in
  6674. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6675. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6676. \-*) ;;
  6677. *) break;;
  6678. esac
  6679. done
  6680. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6681. # Only perform the check for file, if the check method requires it
  6682. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6683. case $deplibs_check_method in
  6684. file_magic*)
  6685. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6687. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6688. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6689. $as_echo_n "(cached) " >&6
  6690. else
  6691. case $MAGIC_CMD in
  6692. [\\/*] | ?:[\\/]*)
  6693. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6694. ;;
  6695. *)
  6696. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6697. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6698. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6699. for ac_dir in $ac_dummy; do
  6700. IFS="$lt_save_ifs"
  6701. test -z "$ac_dir" && ac_dir=.
  6702. if test -f $ac_dir/${ac_tool_prefix}file; then
  6703. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6704. if test -n "$file_magic_test_file"; then
  6705. case $deplibs_check_method in
  6706. "file_magic "*)
  6707. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6708. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6709. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6710. $EGREP "$file_magic_regex" > /dev/null; then
  6711. :
  6712. else
  6713. cat <<_LT_EOF 1>&2
  6714. *** Warning: the command libtool uses to detect shared libraries,
  6715. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6716. *** The result is that libtool may fail to recognize shared libraries
  6717. *** as such. This will affect the creation of libtool libraries that
  6718. *** depend on shared libraries, but programs linked with such libtool
  6719. *** libraries will work regardless of this problem. Nevertheless, you
  6720. *** may want to report the problem to your system manager and/or to
  6721. *** bug-libtool@gnu.org
  6722. _LT_EOF
  6723. fi ;;
  6724. esac
  6725. fi
  6726. break
  6727. fi
  6728. done
  6729. IFS="$lt_save_ifs"
  6730. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6731. ;;
  6732. esac
  6733. fi
  6734. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6735. if test -n "$MAGIC_CMD"; then
  6736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6737. $as_echo "$MAGIC_CMD" >&6; }
  6738. else
  6739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6740. $as_echo "no" >&6; }
  6741. fi
  6742. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6743. if test -n "$ac_tool_prefix"; then
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6745. $as_echo_n "checking for file... " >&6; }
  6746. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6747. $as_echo_n "(cached) " >&6
  6748. else
  6749. case $MAGIC_CMD in
  6750. [\\/*] | ?:[\\/]*)
  6751. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6752. ;;
  6753. *)
  6754. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6755. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6756. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6757. for ac_dir in $ac_dummy; do
  6758. IFS="$lt_save_ifs"
  6759. test -z "$ac_dir" && ac_dir=.
  6760. if test -f $ac_dir/file; then
  6761. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6762. if test -n "$file_magic_test_file"; then
  6763. case $deplibs_check_method in
  6764. "file_magic "*)
  6765. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6766. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6767. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6768. $EGREP "$file_magic_regex" > /dev/null; then
  6769. :
  6770. else
  6771. cat <<_LT_EOF 1>&2
  6772. *** Warning: the command libtool uses to detect shared libraries,
  6773. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6774. *** The result is that libtool may fail to recognize shared libraries
  6775. *** as such. This will affect the creation of libtool libraries that
  6776. *** depend on shared libraries, but programs linked with such libtool
  6777. *** libraries will work regardless of this problem. Nevertheless, you
  6778. *** may want to report the problem to your system manager and/or to
  6779. *** bug-libtool@gnu.org
  6780. _LT_EOF
  6781. fi ;;
  6782. esac
  6783. fi
  6784. break
  6785. fi
  6786. done
  6787. IFS="$lt_save_ifs"
  6788. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6789. ;;
  6790. esac
  6791. fi
  6792. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6793. if test -n "$MAGIC_CMD"; then
  6794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6795. $as_echo "$MAGIC_CMD" >&6; }
  6796. else
  6797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6798. $as_echo "no" >&6; }
  6799. fi
  6800. else
  6801. MAGIC_CMD=:
  6802. fi
  6803. fi
  6804. fi
  6805. ;;
  6806. esac
  6807. # Use C for the default configuration in the libtool script
  6808. lt_save_CC="$CC"
  6809. ac_ext=c
  6810. ac_cpp='$CPP $CPPFLAGS'
  6811. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6812. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6813. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6814. # Source file extension for C test sources.
  6815. ac_ext=c
  6816. # Object file extension for compiled C test sources.
  6817. objext=o
  6818. objext=$objext
  6819. # Code to be used in simple compile tests
  6820. lt_simple_compile_test_code="int some_variable = 0;"
  6821. # Code to be used in simple link tests
  6822. lt_simple_link_test_code='int main(){return(0);}'
  6823. # If no C compiler was specified, use CC.
  6824. LTCC=${LTCC-"$CC"}
  6825. # If no C compiler flags were specified, use CFLAGS.
  6826. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6827. # Allow CC to be a program name with arguments.
  6828. compiler=$CC
  6829. # Save the default compiler, since it gets overwritten when the other
  6830. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6831. compiler_DEFAULT=$CC
  6832. # save warnings/boilerplate of simple test code
  6833. ac_outfile=conftest.$ac_objext
  6834. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6835. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6836. _lt_compiler_boilerplate=`cat conftest.err`
  6837. $RM conftest*
  6838. ac_outfile=conftest.$ac_objext
  6839. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6840. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6841. _lt_linker_boilerplate=`cat conftest.err`
  6842. $RM -r conftest*
  6843. ## CAVEAT EMPTOR:
  6844. ## There is no encapsulation within the following macros, do not change
  6845. ## the running order or otherwise move them around unless you know exactly
  6846. ## what you are doing...
  6847. if test -n "$compiler"; then
  6848. lt_prog_compiler_no_builtin_flag=
  6849. if test "$GCC" = yes; then
  6850. case $cc_basename in
  6851. nvcc*)
  6852. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6853. *)
  6854. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6855. esac
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6857. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6858. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6859. $as_echo_n "(cached) " >&6
  6860. else
  6861. lt_cv_prog_compiler_rtti_exceptions=no
  6862. ac_outfile=conftest.$ac_objext
  6863. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6864. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6865. # Insert the option either (1) after the last *FLAGS variable, or
  6866. # (2) before a word containing "conftest.", or (3) at the end.
  6867. # Note that $ac_compile itself does not contain backslashes and begins
  6868. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6869. # The option is referenced via a variable to avoid confusing sed.
  6870. lt_compile=`echo "$ac_compile" | $SED \
  6871. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6872. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6873. -e 's:$: $lt_compiler_flag:'`
  6874. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6875. (eval "$lt_compile" 2>conftest.err)
  6876. ac_status=$?
  6877. cat conftest.err >&5
  6878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6879. if (exit $ac_status) && test -s "$ac_outfile"; then
  6880. # The compiler can only warn and ignore the option if not recognized
  6881. # So say no if there are warnings other than the usual output.
  6882. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6883. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6884. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6885. lt_cv_prog_compiler_rtti_exceptions=yes
  6886. fi
  6887. fi
  6888. $RM conftest*
  6889. fi
  6890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6891. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6892. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6893. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6894. else
  6895. :
  6896. fi
  6897. fi
  6898. lt_prog_compiler_wl=
  6899. lt_prog_compiler_pic=
  6900. lt_prog_compiler_static=
  6901. if test "$GCC" = yes; then
  6902. lt_prog_compiler_wl='-Wl,'
  6903. lt_prog_compiler_static='-static'
  6904. case $host_os in
  6905. aix*)
  6906. # All AIX code is PIC.
  6907. if test "$host_cpu" = ia64; then
  6908. # AIX 5 now supports IA64 processor
  6909. lt_prog_compiler_static='-Bstatic'
  6910. fi
  6911. ;;
  6912. amigaos*)
  6913. case $host_cpu in
  6914. powerpc)
  6915. # see comment about AmigaOS4 .so support
  6916. lt_prog_compiler_pic='-fPIC'
  6917. ;;
  6918. m68k)
  6919. # FIXME: we need at least 68020 code to build shared libraries, but
  6920. # adding the `-m68020' flag to GCC prevents building anything better,
  6921. # like `-m68040'.
  6922. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6923. ;;
  6924. esac
  6925. ;;
  6926. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6927. # PIC is the default for these OSes.
  6928. ;;
  6929. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6930. # This hack is so that the source file can tell whether it is being
  6931. # built for inclusion in a dll (and should export symbols for example).
  6932. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6933. # (--disable-auto-import) libraries
  6934. lt_prog_compiler_pic='-DDLL_EXPORT'
  6935. ;;
  6936. darwin* | rhapsody*)
  6937. # PIC is the default on this platform
  6938. # Common symbols not allowed in MH_DYLIB files
  6939. lt_prog_compiler_pic='-fno-common'
  6940. ;;
  6941. haiku*)
  6942. # PIC is the default for Haiku.
  6943. # The "-static" flag exists, but is broken.
  6944. lt_prog_compiler_static=
  6945. ;;
  6946. hpux*)
  6947. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6948. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6949. # sets the default TLS model and affects inlining.
  6950. case $host_cpu in
  6951. hppa*64*)
  6952. # +Z the default
  6953. ;;
  6954. *)
  6955. lt_prog_compiler_pic='-fPIC'
  6956. ;;
  6957. esac
  6958. ;;
  6959. interix[3-9]*)
  6960. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6961. # Instead, we relocate shared libraries at runtime.
  6962. ;;
  6963. msdosdjgpp*)
  6964. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6965. # on systems that don't support them.
  6966. lt_prog_compiler_can_build_shared=no
  6967. enable_shared=no
  6968. ;;
  6969. *nto* | *qnx*)
  6970. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6971. # it will coredump.
  6972. lt_prog_compiler_pic='-fPIC -shared'
  6973. ;;
  6974. sysv4*MP*)
  6975. if test -d /usr/nec; then
  6976. lt_prog_compiler_pic=-Kconform_pic
  6977. fi
  6978. ;;
  6979. *)
  6980. lt_prog_compiler_pic='-fPIC'
  6981. ;;
  6982. esac
  6983. case $cc_basename in
  6984. nvcc*) # Cuda Compiler Driver 2.2
  6985. lt_prog_compiler_wl='-Xlinker '
  6986. if test -n "$lt_prog_compiler_pic"; then
  6987. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6988. fi
  6989. ;;
  6990. esac
  6991. else
  6992. # PORTME Check for flag to pass linker flags through the system compiler.
  6993. case $host_os in
  6994. aix*)
  6995. lt_prog_compiler_wl='-Wl,'
  6996. if test "$host_cpu" = ia64; then
  6997. # AIX 5 now supports IA64 processor
  6998. lt_prog_compiler_static='-Bstatic'
  6999. else
  7000. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7001. fi
  7002. ;;
  7003. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7004. # This hack is so that the source file can tell whether it is being
  7005. # built for inclusion in a dll (and should export symbols for example).
  7006. lt_prog_compiler_pic='-DDLL_EXPORT'
  7007. ;;
  7008. hpux9* | hpux10* | hpux11*)
  7009. lt_prog_compiler_wl='-Wl,'
  7010. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7011. # not for PA HP-UX.
  7012. case $host_cpu in
  7013. hppa*64*|ia64*)
  7014. # +Z the default
  7015. ;;
  7016. *)
  7017. lt_prog_compiler_pic='+Z'
  7018. ;;
  7019. esac
  7020. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7021. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7022. ;;
  7023. irix5* | irix6* | nonstopux*)
  7024. lt_prog_compiler_wl='-Wl,'
  7025. # PIC (with -KPIC) is the default.
  7026. lt_prog_compiler_static='-non_shared'
  7027. ;;
  7028. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7029. case $cc_basename in
  7030. # old Intel for x86_64 which still supported -KPIC.
  7031. ecc*)
  7032. lt_prog_compiler_wl='-Wl,'
  7033. lt_prog_compiler_pic='-KPIC'
  7034. lt_prog_compiler_static='-static'
  7035. ;;
  7036. # icc used to be incompatible with GCC.
  7037. # ICC 10 doesn't accept -KPIC any more.
  7038. icc* | ifort*)
  7039. lt_prog_compiler_wl='-Wl,'
  7040. lt_prog_compiler_pic='-fPIC'
  7041. lt_prog_compiler_static='-static'
  7042. ;;
  7043. # Lahey Fortran 8.1.
  7044. lf95*)
  7045. lt_prog_compiler_wl='-Wl,'
  7046. lt_prog_compiler_pic='--shared'
  7047. lt_prog_compiler_static='--static'
  7048. ;;
  7049. nagfor*)
  7050. # NAG Fortran compiler
  7051. lt_prog_compiler_wl='-Wl,-Wl,,'
  7052. lt_prog_compiler_pic='-PIC'
  7053. lt_prog_compiler_static='-Bstatic'
  7054. ;;
  7055. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7056. # Portland Group compilers (*not* the Pentium gcc compiler,
  7057. # which looks to be a dead project)
  7058. lt_prog_compiler_wl='-Wl,'
  7059. lt_prog_compiler_pic='-fpic'
  7060. lt_prog_compiler_static='-Bstatic'
  7061. ;;
  7062. ccc*)
  7063. lt_prog_compiler_wl='-Wl,'
  7064. # All Alpha code is PIC.
  7065. lt_prog_compiler_static='-non_shared'
  7066. ;;
  7067. xl* | bgxl* | bgf* | mpixl*)
  7068. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7069. lt_prog_compiler_wl='-Wl,'
  7070. lt_prog_compiler_pic='-qpic'
  7071. lt_prog_compiler_static='-qstaticlink'
  7072. ;;
  7073. *)
  7074. case `$CC -V 2>&1 | sed 5q` in
  7075. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7076. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7077. lt_prog_compiler_pic='-KPIC'
  7078. lt_prog_compiler_static='-Bstatic'
  7079. lt_prog_compiler_wl=''
  7080. ;;
  7081. *Sun\ F* | *Sun*Fortran*)
  7082. lt_prog_compiler_pic='-KPIC'
  7083. lt_prog_compiler_static='-Bstatic'
  7084. lt_prog_compiler_wl='-Qoption ld '
  7085. ;;
  7086. *Sun\ C*)
  7087. # Sun C 5.9
  7088. lt_prog_compiler_pic='-KPIC'
  7089. lt_prog_compiler_static='-Bstatic'
  7090. lt_prog_compiler_wl='-Wl,'
  7091. ;;
  7092. *Intel*\ [CF]*Compiler*)
  7093. lt_prog_compiler_wl='-Wl,'
  7094. lt_prog_compiler_pic='-fPIC'
  7095. lt_prog_compiler_static='-static'
  7096. ;;
  7097. *Portland\ Group*)
  7098. lt_prog_compiler_wl='-Wl,'
  7099. lt_prog_compiler_pic='-fpic'
  7100. lt_prog_compiler_static='-Bstatic'
  7101. ;;
  7102. esac
  7103. ;;
  7104. esac
  7105. ;;
  7106. newsos6)
  7107. lt_prog_compiler_pic='-KPIC'
  7108. lt_prog_compiler_static='-Bstatic'
  7109. ;;
  7110. *nto* | *qnx*)
  7111. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7112. # it will coredump.
  7113. lt_prog_compiler_pic='-fPIC -shared'
  7114. ;;
  7115. osf3* | osf4* | osf5*)
  7116. lt_prog_compiler_wl='-Wl,'
  7117. # All OSF/1 code is PIC.
  7118. lt_prog_compiler_static='-non_shared'
  7119. ;;
  7120. rdos*)
  7121. lt_prog_compiler_static='-non_shared'
  7122. ;;
  7123. solaris*)
  7124. lt_prog_compiler_pic='-KPIC'
  7125. lt_prog_compiler_static='-Bstatic'
  7126. case $cc_basename in
  7127. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7128. lt_prog_compiler_wl='-Qoption ld ';;
  7129. *)
  7130. lt_prog_compiler_wl='-Wl,';;
  7131. esac
  7132. ;;
  7133. sunos4*)
  7134. lt_prog_compiler_wl='-Qoption ld '
  7135. lt_prog_compiler_pic='-PIC'
  7136. lt_prog_compiler_static='-Bstatic'
  7137. ;;
  7138. sysv4 | sysv4.2uw2* | sysv4.3*)
  7139. lt_prog_compiler_wl='-Wl,'
  7140. lt_prog_compiler_pic='-KPIC'
  7141. lt_prog_compiler_static='-Bstatic'
  7142. ;;
  7143. sysv4*MP*)
  7144. if test -d /usr/nec ;then
  7145. lt_prog_compiler_pic='-Kconform_pic'
  7146. lt_prog_compiler_static='-Bstatic'
  7147. fi
  7148. ;;
  7149. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7150. lt_prog_compiler_wl='-Wl,'
  7151. lt_prog_compiler_pic='-KPIC'
  7152. lt_prog_compiler_static='-Bstatic'
  7153. ;;
  7154. unicos*)
  7155. lt_prog_compiler_wl='-Wl,'
  7156. lt_prog_compiler_can_build_shared=no
  7157. ;;
  7158. uts4*)
  7159. lt_prog_compiler_pic='-pic'
  7160. lt_prog_compiler_static='-Bstatic'
  7161. ;;
  7162. *)
  7163. lt_prog_compiler_can_build_shared=no
  7164. ;;
  7165. esac
  7166. fi
  7167. case $host_os in
  7168. # For platforms which do not support PIC, -DPIC is meaningless:
  7169. *djgpp*)
  7170. lt_prog_compiler_pic=
  7171. ;;
  7172. *)
  7173. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7174. ;;
  7175. esac
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7177. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7178. if ${lt_cv_prog_compiler_pic+:} false; then :
  7179. $as_echo_n "(cached) " >&6
  7180. else
  7181. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7182. fi
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7184. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7185. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7186. #
  7187. # Check to make sure the PIC flag actually works.
  7188. #
  7189. if test -n "$lt_prog_compiler_pic"; then
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7191. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7192. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7193. $as_echo_n "(cached) " >&6
  7194. else
  7195. lt_cv_prog_compiler_pic_works=no
  7196. ac_outfile=conftest.$ac_objext
  7197. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7198. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7199. # Insert the option either (1) after the last *FLAGS variable, or
  7200. # (2) before a word containing "conftest.", or (3) at the end.
  7201. # Note that $ac_compile itself does not contain backslashes and begins
  7202. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7203. # The option is referenced via a variable to avoid confusing sed.
  7204. lt_compile=`echo "$ac_compile" | $SED \
  7205. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7206. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7207. -e 's:$: $lt_compiler_flag:'`
  7208. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7209. (eval "$lt_compile" 2>conftest.err)
  7210. ac_status=$?
  7211. cat conftest.err >&5
  7212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7213. if (exit $ac_status) && test -s "$ac_outfile"; then
  7214. # The compiler can only warn and ignore the option if not recognized
  7215. # So say no if there are warnings other than the usual output.
  7216. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7217. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7218. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7219. lt_cv_prog_compiler_pic_works=yes
  7220. fi
  7221. fi
  7222. $RM conftest*
  7223. fi
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7225. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7226. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7227. case $lt_prog_compiler_pic in
  7228. "" | " "*) ;;
  7229. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7230. esac
  7231. else
  7232. lt_prog_compiler_pic=
  7233. lt_prog_compiler_can_build_shared=no
  7234. fi
  7235. fi
  7236. #
  7237. # Check to make sure the static flag actually works.
  7238. #
  7239. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7241. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7242. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7243. $as_echo_n "(cached) " >&6
  7244. else
  7245. lt_cv_prog_compiler_static_works=no
  7246. save_LDFLAGS="$LDFLAGS"
  7247. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7248. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7249. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7250. # The linker can only warn and ignore the option if not recognized
  7251. # So say no if there are warnings
  7252. if test -s conftest.err; then
  7253. # Append any errors to the config.log.
  7254. cat conftest.err 1>&5
  7255. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7256. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7257. if diff conftest.exp conftest.er2 >/dev/null; then
  7258. lt_cv_prog_compiler_static_works=yes
  7259. fi
  7260. else
  7261. lt_cv_prog_compiler_static_works=yes
  7262. fi
  7263. fi
  7264. $RM -r conftest*
  7265. LDFLAGS="$save_LDFLAGS"
  7266. fi
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7268. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7269. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7270. :
  7271. else
  7272. lt_prog_compiler_static=
  7273. fi
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7275. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7276. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7277. $as_echo_n "(cached) " >&6
  7278. else
  7279. lt_cv_prog_compiler_c_o=no
  7280. $RM -r conftest 2>/dev/null
  7281. mkdir conftest
  7282. cd conftest
  7283. mkdir out
  7284. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7285. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7286. # Insert the option either (1) after the last *FLAGS variable, or
  7287. # (2) before a word containing "conftest.", or (3) at the end.
  7288. # Note that $ac_compile itself does not contain backslashes and begins
  7289. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7290. lt_compile=`echo "$ac_compile" | $SED \
  7291. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7292. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7293. -e 's:$: $lt_compiler_flag:'`
  7294. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7295. (eval "$lt_compile" 2>out/conftest.err)
  7296. ac_status=$?
  7297. cat out/conftest.err >&5
  7298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7299. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7300. then
  7301. # The compiler can only warn and ignore the option if not recognized
  7302. # So say no if there are warnings
  7303. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7304. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7305. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7306. lt_cv_prog_compiler_c_o=yes
  7307. fi
  7308. fi
  7309. chmod u+w . 2>&5
  7310. $RM conftest*
  7311. # SGI C++ compiler will create directory out/ii_files/ for
  7312. # template instantiation
  7313. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7314. $RM out/* && rmdir out
  7315. cd ..
  7316. $RM -r conftest
  7317. $RM conftest*
  7318. fi
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7320. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7322. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7323. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7324. $as_echo_n "(cached) " >&6
  7325. else
  7326. lt_cv_prog_compiler_c_o=no
  7327. $RM -r conftest 2>/dev/null
  7328. mkdir conftest
  7329. cd conftest
  7330. mkdir out
  7331. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7332. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7333. # Insert the option either (1) after the last *FLAGS variable, or
  7334. # (2) before a word containing "conftest.", or (3) at the end.
  7335. # Note that $ac_compile itself does not contain backslashes and begins
  7336. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7337. lt_compile=`echo "$ac_compile" | $SED \
  7338. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7339. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7340. -e 's:$: $lt_compiler_flag:'`
  7341. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7342. (eval "$lt_compile" 2>out/conftest.err)
  7343. ac_status=$?
  7344. cat out/conftest.err >&5
  7345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7346. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7347. then
  7348. # The compiler can only warn and ignore the option if not recognized
  7349. # So say no if there are warnings
  7350. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7351. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7352. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7353. lt_cv_prog_compiler_c_o=yes
  7354. fi
  7355. fi
  7356. chmod u+w . 2>&5
  7357. $RM conftest*
  7358. # SGI C++ compiler will create directory out/ii_files/ for
  7359. # template instantiation
  7360. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7361. $RM out/* && rmdir out
  7362. cd ..
  7363. $RM -r conftest
  7364. $RM conftest*
  7365. fi
  7366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7367. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7368. hard_links="nottested"
  7369. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7370. # do not overwrite the value of need_locks provided by the user
  7371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7372. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7373. hard_links=yes
  7374. $RM conftest*
  7375. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7376. touch conftest.a
  7377. ln conftest.a conftest.b 2>&5 || hard_links=no
  7378. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7380. $as_echo "$hard_links" >&6; }
  7381. if test "$hard_links" = no; then
  7382. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7383. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7384. need_locks=warn
  7385. fi
  7386. else
  7387. need_locks=no
  7388. fi
  7389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7390. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7391. runpath_var=
  7392. allow_undefined_flag=
  7393. always_export_symbols=no
  7394. archive_cmds=
  7395. archive_expsym_cmds=
  7396. compiler_needs_object=no
  7397. enable_shared_with_static_runtimes=no
  7398. export_dynamic_flag_spec=
  7399. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7400. hardcode_automatic=no
  7401. hardcode_direct=no
  7402. hardcode_direct_absolute=no
  7403. hardcode_libdir_flag_spec=
  7404. hardcode_libdir_separator=
  7405. hardcode_minus_L=no
  7406. hardcode_shlibpath_var=unsupported
  7407. inherit_rpath=no
  7408. link_all_deplibs=unknown
  7409. module_cmds=
  7410. module_expsym_cmds=
  7411. old_archive_from_new_cmds=
  7412. old_archive_from_expsyms_cmds=
  7413. thread_safe_flag_spec=
  7414. whole_archive_flag_spec=
  7415. # include_expsyms should be a list of space-separated symbols to be *always*
  7416. # included in the symbol list
  7417. include_expsyms=
  7418. # exclude_expsyms can be an extended regexp of symbols to exclude
  7419. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7420. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7421. # as well as any symbol that contains `d'.
  7422. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7423. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7424. # platforms (ab)use it in PIC code, but their linkers get confused if
  7425. # the symbol is explicitly referenced. Since portable code cannot
  7426. # rely on this symbol name, it's probably fine to never include it in
  7427. # preloaded symbol tables.
  7428. # Exclude shared library initialization/finalization symbols.
  7429. extract_expsyms_cmds=
  7430. case $host_os in
  7431. cygwin* | mingw* | pw32* | cegcc*)
  7432. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7433. # When not using gcc, we currently assume that we are using
  7434. # Microsoft Visual C++.
  7435. if test "$GCC" != yes; then
  7436. with_gnu_ld=no
  7437. fi
  7438. ;;
  7439. interix*)
  7440. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7441. with_gnu_ld=yes
  7442. ;;
  7443. openbsd*)
  7444. with_gnu_ld=no
  7445. ;;
  7446. esac
  7447. ld_shlibs=yes
  7448. # On some targets, GNU ld is compatible enough with the native linker
  7449. # that we're better off using the native interface for both.
  7450. lt_use_gnu_ld_interface=no
  7451. if test "$with_gnu_ld" = yes; then
  7452. case $host_os in
  7453. aix*)
  7454. # The AIX port of GNU ld has always aspired to compatibility
  7455. # with the native linker. However, as the warning in the GNU ld
  7456. # block says, versions before 2.19.5* couldn't really create working
  7457. # shared libraries, regardless of the interface used.
  7458. case `$LD -v 2>&1` in
  7459. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7460. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7461. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7462. *)
  7463. lt_use_gnu_ld_interface=yes
  7464. ;;
  7465. esac
  7466. ;;
  7467. *)
  7468. lt_use_gnu_ld_interface=yes
  7469. ;;
  7470. esac
  7471. fi
  7472. if test "$lt_use_gnu_ld_interface" = yes; then
  7473. # If archive_cmds runs LD, not CC, wlarc should be empty
  7474. wlarc='${wl}'
  7475. # Set some defaults for GNU ld with shared library support. These
  7476. # are reset later if shared libraries are not supported. Putting them
  7477. # here allows them to be overridden if necessary.
  7478. runpath_var=LD_RUN_PATH
  7479. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7480. export_dynamic_flag_spec='${wl}--export-dynamic'
  7481. # ancient GNU ld didn't support --whole-archive et. al.
  7482. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7483. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7484. else
  7485. whole_archive_flag_spec=
  7486. fi
  7487. supports_anon_versioning=no
  7488. case `$LD -v 2>&1` in
  7489. *GNU\ gold*) supports_anon_versioning=yes ;;
  7490. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7491. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7492. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7493. *\ 2.11.*) ;; # other 2.11 versions
  7494. *) supports_anon_versioning=yes ;;
  7495. esac
  7496. # See if GNU ld supports shared libraries.
  7497. case $host_os in
  7498. aix[3-9]*)
  7499. # On AIX/PPC, the GNU linker is very broken
  7500. if test "$host_cpu" != ia64; then
  7501. ld_shlibs=no
  7502. cat <<_LT_EOF 1>&2
  7503. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7504. *** to be unable to reliably create shared libraries on AIX.
  7505. *** Therefore, libtool is disabling shared libraries support. If you
  7506. *** really care for shared libraries, you may want to install binutils
  7507. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7508. *** You will then need to restart the configuration process.
  7509. _LT_EOF
  7510. fi
  7511. ;;
  7512. amigaos*)
  7513. case $host_cpu in
  7514. powerpc)
  7515. # see comment about AmigaOS4 .so support
  7516. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7517. archive_expsym_cmds=''
  7518. ;;
  7519. m68k)
  7520. 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)'
  7521. hardcode_libdir_flag_spec='-L$libdir'
  7522. hardcode_minus_L=yes
  7523. ;;
  7524. esac
  7525. ;;
  7526. beos*)
  7527. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7528. allow_undefined_flag=unsupported
  7529. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7530. # support --undefined. This deserves some investigation. FIXME
  7531. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7532. else
  7533. ld_shlibs=no
  7534. fi
  7535. ;;
  7536. cygwin* | mingw* | pw32* | cegcc*)
  7537. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7538. # as there is no search path for DLLs.
  7539. hardcode_libdir_flag_spec='-L$libdir'
  7540. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7541. allow_undefined_flag=unsupported
  7542. always_export_symbols=no
  7543. enable_shared_with_static_runtimes=yes
  7544. 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'
  7545. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7546. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7547. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7548. # If the export-symbols file already is a .def file (1st line
  7549. # is EXPORTS), use it as is; otherwise, prepend...
  7550. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7551. cp $export_symbols $output_objdir/$soname.def;
  7552. else
  7553. echo EXPORTS > $output_objdir/$soname.def;
  7554. cat $export_symbols >> $output_objdir/$soname.def;
  7555. fi~
  7556. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7557. else
  7558. ld_shlibs=no
  7559. fi
  7560. ;;
  7561. haiku*)
  7562. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7563. link_all_deplibs=yes
  7564. ;;
  7565. interix[3-9]*)
  7566. hardcode_direct=no
  7567. hardcode_shlibpath_var=no
  7568. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7569. export_dynamic_flag_spec='${wl}-E'
  7570. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7571. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7572. # default) and relocated if they conflict, which is a slow very memory
  7573. # consuming and fragmenting process. To avoid this, we pick a random,
  7574. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7575. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7576. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7577. 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'
  7578. ;;
  7579. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7580. tmp_diet=no
  7581. if test "$host_os" = linux-dietlibc; then
  7582. case $cc_basename in
  7583. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7584. esac
  7585. fi
  7586. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7587. && test "$tmp_diet" = no
  7588. then
  7589. tmp_addflag=' $pic_flag'
  7590. tmp_sharedflag='-shared'
  7591. case $cc_basename,$host_cpu in
  7592. pgcc*) # Portland Group C compiler
  7593. 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'
  7594. tmp_addflag=' $pic_flag'
  7595. ;;
  7596. pgf77* | pgf90* | pgf95* | pgfortran*)
  7597. # Portland Group f77 and f90 compilers
  7598. 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'
  7599. tmp_addflag=' $pic_flag -Mnomain' ;;
  7600. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7601. tmp_addflag=' -i_dynamic' ;;
  7602. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7603. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7604. ifc* | ifort*) # Intel Fortran compiler
  7605. tmp_addflag=' -nofor_main' ;;
  7606. lf95*) # Lahey Fortran 8.1
  7607. whole_archive_flag_spec=
  7608. tmp_sharedflag='--shared' ;;
  7609. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7610. tmp_sharedflag='-qmkshrobj'
  7611. tmp_addflag= ;;
  7612. nvcc*) # Cuda Compiler Driver 2.2
  7613. 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'
  7614. compiler_needs_object=yes
  7615. ;;
  7616. esac
  7617. case `$CC -V 2>&1 | sed 5q` in
  7618. *Sun\ C*) # Sun C 5.9
  7619. 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'
  7620. compiler_needs_object=yes
  7621. tmp_sharedflag='-G' ;;
  7622. *Sun\ F*) # Sun Fortran 8.3
  7623. tmp_sharedflag='-G' ;;
  7624. esac
  7625. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7626. if test "x$supports_anon_versioning" = xyes; then
  7627. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7628. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7629. echo "local: *; };" >> $output_objdir/$libname.ver~
  7630. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7631. fi
  7632. case $cc_basename in
  7633. xlf* | bgf* | bgxlf* | mpixlf*)
  7634. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7635. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7636. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7637. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7638. if test "x$supports_anon_versioning" = xyes; then
  7639. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7640. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7641. echo "local: *; };" >> $output_objdir/$libname.ver~
  7642. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7643. fi
  7644. ;;
  7645. esac
  7646. else
  7647. ld_shlibs=no
  7648. fi
  7649. ;;
  7650. netbsd*)
  7651. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7652. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7653. wlarc=
  7654. else
  7655. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7656. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7657. fi
  7658. ;;
  7659. solaris*)
  7660. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7661. ld_shlibs=no
  7662. cat <<_LT_EOF 1>&2
  7663. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7664. *** create shared libraries on Solaris systems. Therefore, libtool
  7665. *** is disabling shared libraries support. We urge you to upgrade GNU
  7666. *** binutils to release 2.9.1 or newer. Another option is to modify
  7667. *** your PATH or compiler configuration so that the native linker is
  7668. *** used, and then restart.
  7669. _LT_EOF
  7670. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7671. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7672. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7673. else
  7674. ld_shlibs=no
  7675. fi
  7676. ;;
  7677. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7678. case `$LD -v 2>&1` in
  7679. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7680. ld_shlibs=no
  7681. cat <<_LT_EOF 1>&2
  7682. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7683. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7684. *** is disabling shared libraries support. We urge you to upgrade GNU
  7685. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7686. *** your PATH or compiler configuration so that the native linker is
  7687. *** used, and then restart.
  7688. _LT_EOF
  7689. ;;
  7690. *)
  7691. # For security reasons, it is highly recommended that you always
  7692. # use absolute paths for naming shared libraries, and exclude the
  7693. # DT_RUNPATH tag from executables and libraries. But doing so
  7694. # requires that you compile everything twice, which is a pain.
  7695. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7696. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7697. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7698. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7699. else
  7700. ld_shlibs=no
  7701. fi
  7702. ;;
  7703. esac
  7704. ;;
  7705. sunos4*)
  7706. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7707. wlarc=
  7708. hardcode_direct=yes
  7709. hardcode_shlibpath_var=no
  7710. ;;
  7711. *)
  7712. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7713. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7714. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7715. else
  7716. ld_shlibs=no
  7717. fi
  7718. ;;
  7719. esac
  7720. if test "$ld_shlibs" = no; then
  7721. runpath_var=
  7722. hardcode_libdir_flag_spec=
  7723. export_dynamic_flag_spec=
  7724. whole_archive_flag_spec=
  7725. fi
  7726. else
  7727. # PORTME fill in a description of your system's linker (not GNU ld)
  7728. case $host_os in
  7729. aix3*)
  7730. allow_undefined_flag=unsupported
  7731. always_export_symbols=yes
  7732. 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'
  7733. # Note: this linker hardcodes the directories in LIBPATH if there
  7734. # are no directories specified by -L.
  7735. hardcode_minus_L=yes
  7736. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7737. # Neither direct hardcoding nor static linking is supported with a
  7738. # broken collect2.
  7739. hardcode_direct=unsupported
  7740. fi
  7741. ;;
  7742. aix[4-9]*)
  7743. if test "$host_cpu" = ia64; then
  7744. # On IA64, the linker does run time linking by default, so we don't
  7745. # have to do anything special.
  7746. aix_use_runtimelinking=no
  7747. exp_sym_flag='-Bexport'
  7748. no_entry_flag=""
  7749. else
  7750. # If we're using GNU nm, then we don't want the "-C" option.
  7751. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7752. # Also, AIX nm treats weak defined symbols like other global
  7753. # defined symbols, whereas GNU nm marks them as "W".
  7754. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7755. 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'
  7756. else
  7757. 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'
  7758. fi
  7759. aix_use_runtimelinking=no
  7760. # Test if we are trying to use run time linking or normal
  7761. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7762. # need to do runtime linking.
  7763. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7764. for ld_flag in $LDFLAGS; do
  7765. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7766. aix_use_runtimelinking=yes
  7767. break
  7768. fi
  7769. done
  7770. ;;
  7771. esac
  7772. exp_sym_flag='-bexport'
  7773. no_entry_flag='-bnoentry'
  7774. fi
  7775. # When large executables or shared objects are built, AIX ld can
  7776. # have problems creating the table of contents. If linking a library
  7777. # or program results in "error TOC overflow" add -mminimal-toc to
  7778. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7779. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7780. archive_cmds=''
  7781. hardcode_direct=yes
  7782. hardcode_direct_absolute=yes
  7783. hardcode_libdir_separator=':'
  7784. link_all_deplibs=yes
  7785. file_list_spec='${wl}-f,'
  7786. if test "$GCC" = yes; then
  7787. case $host_os in aix4.[012]|aix4.[012].*)
  7788. # We only want to do this on AIX 4.2 and lower, the check
  7789. # below for broken collect2 doesn't work under 4.3+
  7790. collect2name=`${CC} -print-prog-name=collect2`
  7791. if test -f "$collect2name" &&
  7792. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7793. then
  7794. # We have reworked collect2
  7795. :
  7796. else
  7797. # We have old collect2
  7798. hardcode_direct=unsupported
  7799. # It fails to find uninstalled libraries when the uninstalled
  7800. # path is not listed in the libpath. Setting hardcode_minus_L
  7801. # to unsupported forces relinking
  7802. hardcode_minus_L=yes
  7803. hardcode_libdir_flag_spec='-L$libdir'
  7804. hardcode_libdir_separator=
  7805. fi
  7806. ;;
  7807. esac
  7808. shared_flag='-shared'
  7809. if test "$aix_use_runtimelinking" = yes; then
  7810. shared_flag="$shared_flag "'${wl}-G'
  7811. fi
  7812. else
  7813. # not using gcc
  7814. if test "$host_cpu" = ia64; then
  7815. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7816. # chokes on -Wl,-G. The following line is correct:
  7817. shared_flag='-G'
  7818. else
  7819. if test "$aix_use_runtimelinking" = yes; then
  7820. shared_flag='${wl}-G'
  7821. else
  7822. shared_flag='${wl}-bM:SRE'
  7823. fi
  7824. fi
  7825. fi
  7826. export_dynamic_flag_spec='${wl}-bexpall'
  7827. # It seems that -bexpall does not export symbols beginning with
  7828. # underscore (_), so it is better to generate a list of symbols to export.
  7829. always_export_symbols=yes
  7830. if test "$aix_use_runtimelinking" = yes; then
  7831. # Warning - without using the other runtime loading flags (-brtl),
  7832. # -berok will link without error, but may produce a broken library.
  7833. allow_undefined_flag='-berok'
  7834. # Determine the default libpath from the value encoded in an
  7835. # empty executable.
  7836. if test "${lt_cv_aix_libpath+set}" = set; then
  7837. aix_libpath=$lt_cv_aix_libpath
  7838. else
  7839. if ${lt_cv_aix_libpath_+:} false; then :
  7840. $as_echo_n "(cached) " >&6
  7841. else
  7842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7843. /* end confdefs.h. */
  7844. int
  7845. main ()
  7846. {
  7847. ;
  7848. return 0;
  7849. }
  7850. _ACEOF
  7851. if ac_fn_c_try_link "$LINENO"; then :
  7852. lt_aix_libpath_sed='
  7853. /Import File Strings/,/^$/ {
  7854. /^0/ {
  7855. s/^0 *\([^ ]*\) *$/\1/
  7856. p
  7857. }
  7858. }'
  7859. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7860. # Check for a 64-bit object if we didn't find anything.
  7861. if test -z "$lt_cv_aix_libpath_"; then
  7862. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7863. fi
  7864. fi
  7865. rm -f core conftest.err conftest.$ac_objext \
  7866. conftest$ac_exeext conftest.$ac_ext
  7867. if test -z "$lt_cv_aix_libpath_"; then
  7868. lt_cv_aix_libpath_="/usr/lib:/lib"
  7869. fi
  7870. fi
  7871. aix_libpath=$lt_cv_aix_libpath_
  7872. fi
  7873. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7874. 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"
  7875. else
  7876. if test "$host_cpu" = ia64; then
  7877. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7878. allow_undefined_flag="-z nodefs"
  7879. 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"
  7880. else
  7881. # Determine the default libpath from the value encoded in an
  7882. # empty executable.
  7883. if test "${lt_cv_aix_libpath+set}" = set; then
  7884. aix_libpath=$lt_cv_aix_libpath
  7885. else
  7886. if ${lt_cv_aix_libpath_+:} false; then :
  7887. $as_echo_n "(cached) " >&6
  7888. else
  7889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7890. /* end confdefs.h. */
  7891. int
  7892. main ()
  7893. {
  7894. ;
  7895. return 0;
  7896. }
  7897. _ACEOF
  7898. if ac_fn_c_try_link "$LINENO"; then :
  7899. lt_aix_libpath_sed='
  7900. /Import File Strings/,/^$/ {
  7901. /^0/ {
  7902. s/^0 *\([^ ]*\) *$/\1/
  7903. p
  7904. }
  7905. }'
  7906. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7907. # Check for a 64-bit object if we didn't find anything.
  7908. if test -z "$lt_cv_aix_libpath_"; then
  7909. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7910. fi
  7911. fi
  7912. rm -f core conftest.err conftest.$ac_objext \
  7913. conftest$ac_exeext conftest.$ac_ext
  7914. if test -z "$lt_cv_aix_libpath_"; then
  7915. lt_cv_aix_libpath_="/usr/lib:/lib"
  7916. fi
  7917. fi
  7918. aix_libpath=$lt_cv_aix_libpath_
  7919. fi
  7920. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7921. # Warning - without using the other run time loading flags,
  7922. # -berok will link without error, but may produce a broken library.
  7923. no_undefined_flag=' ${wl}-bernotok'
  7924. allow_undefined_flag=' ${wl}-berok'
  7925. if test "$with_gnu_ld" = yes; then
  7926. # We only use this code for GNU lds that support --whole-archive.
  7927. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7928. else
  7929. # Exported symbols can be pulled into shared objects from archives
  7930. whole_archive_flag_spec='$convenience'
  7931. fi
  7932. archive_cmds_need_lc=yes
  7933. # This is similar to how AIX traditionally builds its shared libraries.
  7934. 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'
  7935. fi
  7936. fi
  7937. ;;
  7938. amigaos*)
  7939. case $host_cpu in
  7940. powerpc)
  7941. # see comment about AmigaOS4 .so support
  7942. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7943. archive_expsym_cmds=''
  7944. ;;
  7945. m68k)
  7946. 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)'
  7947. hardcode_libdir_flag_spec='-L$libdir'
  7948. hardcode_minus_L=yes
  7949. ;;
  7950. esac
  7951. ;;
  7952. bsdi[45]*)
  7953. export_dynamic_flag_spec=-rdynamic
  7954. ;;
  7955. cygwin* | mingw* | pw32* | cegcc*)
  7956. # When not using gcc, we currently assume that we are using
  7957. # Microsoft Visual C++.
  7958. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7959. # no search path for DLLs.
  7960. case $cc_basename in
  7961. cl*)
  7962. # Native MSVC
  7963. hardcode_libdir_flag_spec=' '
  7964. allow_undefined_flag=unsupported
  7965. always_export_symbols=yes
  7966. file_list_spec='@'
  7967. # Tell ltmain to make .lib files, not .a files.
  7968. libext=lib
  7969. # Tell ltmain to make .dll files, not .so files.
  7970. shrext_cmds=".dll"
  7971. # FIXME: Setting linknames here is a bad hack.
  7972. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7973. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7974. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7975. else
  7976. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7977. fi~
  7978. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7979. linknames='
  7980. # The linker will not automatically build a static lib if we build a DLL.
  7981. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7982. enable_shared_with_static_runtimes=yes
  7983. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7984. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7985. # Don't use ranlib
  7986. old_postinstall_cmds='chmod 644 $oldlib'
  7987. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7988. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7989. case $lt_outputfile in
  7990. *.exe|*.EXE) ;;
  7991. *)
  7992. lt_outputfile="$lt_outputfile.exe"
  7993. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7994. ;;
  7995. esac~
  7996. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7997. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7998. $RM "$lt_outputfile.manifest";
  7999. fi'
  8000. ;;
  8001. *)
  8002. # Assume MSVC wrapper
  8003. hardcode_libdir_flag_spec=' '
  8004. allow_undefined_flag=unsupported
  8005. # Tell ltmain to make .lib files, not .a files.
  8006. libext=lib
  8007. # Tell ltmain to make .dll files, not .so files.
  8008. shrext_cmds=".dll"
  8009. # FIXME: Setting linknames here is a bad hack.
  8010. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8011. # The linker will automatically build a .lib file if we build a DLL.
  8012. old_archive_from_new_cmds='true'
  8013. # FIXME: Should let the user specify the lib program.
  8014. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8015. enable_shared_with_static_runtimes=yes
  8016. ;;
  8017. esac
  8018. ;;
  8019. darwin* | rhapsody*)
  8020. archive_cmds_need_lc=no
  8021. hardcode_direct=no
  8022. hardcode_automatic=yes
  8023. hardcode_shlibpath_var=unsupported
  8024. if test "$lt_cv_ld_force_load" = "yes"; then
  8025. 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\"`'
  8026. else
  8027. whole_archive_flag_spec=''
  8028. fi
  8029. link_all_deplibs=yes
  8030. allow_undefined_flag="$_lt_dar_allow_undefined"
  8031. case $cc_basename in
  8032. ifort*) _lt_dar_can_shared=yes ;;
  8033. *) _lt_dar_can_shared=$GCC ;;
  8034. esac
  8035. if test "$_lt_dar_can_shared" = "yes"; then
  8036. output_verbose_link_cmd=func_echo_all
  8037. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8038. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8039. 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}"
  8040. 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}"
  8041. else
  8042. ld_shlibs=no
  8043. fi
  8044. ;;
  8045. dgux*)
  8046. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8047. hardcode_libdir_flag_spec='-L$libdir'
  8048. hardcode_shlibpath_var=no
  8049. ;;
  8050. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8051. # support. Future versions do this automatically, but an explicit c++rt0.o
  8052. # does not break anything, and helps significantly (at the cost of a little
  8053. # extra space).
  8054. freebsd2.2*)
  8055. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8056. hardcode_libdir_flag_spec='-R$libdir'
  8057. hardcode_direct=yes
  8058. hardcode_shlibpath_var=no
  8059. ;;
  8060. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8061. freebsd2.*)
  8062. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8063. hardcode_direct=yes
  8064. hardcode_minus_L=yes
  8065. hardcode_shlibpath_var=no
  8066. ;;
  8067. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8068. freebsd* | dragonfly*)
  8069. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8070. hardcode_libdir_flag_spec='-R$libdir'
  8071. hardcode_direct=yes
  8072. hardcode_shlibpath_var=no
  8073. ;;
  8074. hpux9*)
  8075. if test "$GCC" = yes; then
  8076. 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'
  8077. else
  8078. 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'
  8079. fi
  8080. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8081. hardcode_libdir_separator=:
  8082. hardcode_direct=yes
  8083. # hardcode_minus_L: Not really in the search PATH,
  8084. # but as the default location of the library.
  8085. hardcode_minus_L=yes
  8086. export_dynamic_flag_spec='${wl}-E'
  8087. ;;
  8088. hpux10*)
  8089. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8090. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8091. else
  8092. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8093. fi
  8094. if test "$with_gnu_ld" = no; then
  8095. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8096. hardcode_libdir_separator=:
  8097. hardcode_direct=yes
  8098. hardcode_direct_absolute=yes
  8099. export_dynamic_flag_spec='${wl}-E'
  8100. # hardcode_minus_L: Not really in the search PATH,
  8101. # but as the default location of the library.
  8102. hardcode_minus_L=yes
  8103. fi
  8104. ;;
  8105. hpux11*)
  8106. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8107. case $host_cpu in
  8108. hppa*64*)
  8109. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8110. ;;
  8111. ia64*)
  8112. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8113. ;;
  8114. *)
  8115. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8116. ;;
  8117. esac
  8118. else
  8119. case $host_cpu in
  8120. hppa*64*)
  8121. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8122. ;;
  8123. ia64*)
  8124. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8125. ;;
  8126. *)
  8127. # Older versions of the 11.00 compiler do not understand -b yet
  8128. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8130. $as_echo_n "checking if $CC understands -b... " >&6; }
  8131. if ${lt_cv_prog_compiler__b+:} false; then :
  8132. $as_echo_n "(cached) " >&6
  8133. else
  8134. lt_cv_prog_compiler__b=no
  8135. save_LDFLAGS="$LDFLAGS"
  8136. LDFLAGS="$LDFLAGS -b"
  8137. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8138. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8139. # The linker can only warn and ignore the option if not recognized
  8140. # So say no if there are warnings
  8141. if test -s conftest.err; then
  8142. # Append any errors to the config.log.
  8143. cat conftest.err 1>&5
  8144. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8145. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8146. if diff conftest.exp conftest.er2 >/dev/null; then
  8147. lt_cv_prog_compiler__b=yes
  8148. fi
  8149. else
  8150. lt_cv_prog_compiler__b=yes
  8151. fi
  8152. fi
  8153. $RM -r conftest*
  8154. LDFLAGS="$save_LDFLAGS"
  8155. fi
  8156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8157. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8158. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8159. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8160. else
  8161. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8162. fi
  8163. ;;
  8164. esac
  8165. fi
  8166. if test "$with_gnu_ld" = no; then
  8167. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8168. hardcode_libdir_separator=:
  8169. case $host_cpu in
  8170. hppa*64*|ia64*)
  8171. hardcode_direct=no
  8172. hardcode_shlibpath_var=no
  8173. ;;
  8174. *)
  8175. hardcode_direct=yes
  8176. hardcode_direct_absolute=yes
  8177. export_dynamic_flag_spec='${wl}-E'
  8178. # hardcode_minus_L: Not really in the search PATH,
  8179. # but as the default location of the library.
  8180. hardcode_minus_L=yes
  8181. ;;
  8182. esac
  8183. fi
  8184. ;;
  8185. irix5* | irix6* | nonstopux*)
  8186. if test "$GCC" = yes; then
  8187. 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'
  8188. # Try to use the -exported_symbol ld option, if it does not
  8189. # work, assume that -exports_file does not work either and
  8190. # implicitly export all symbols.
  8191. # This should be the same for all languages, so no per-tag cache variable.
  8192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8193. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8194. if ${lt_cv_irix_exported_symbol+:} false; then :
  8195. $as_echo_n "(cached) " >&6
  8196. else
  8197. save_LDFLAGS="$LDFLAGS"
  8198. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8200. /* end confdefs.h. */
  8201. int foo (void) { return 0; }
  8202. _ACEOF
  8203. if ac_fn_c_try_link "$LINENO"; then :
  8204. lt_cv_irix_exported_symbol=yes
  8205. else
  8206. lt_cv_irix_exported_symbol=no
  8207. fi
  8208. rm -f core conftest.err conftest.$ac_objext \
  8209. conftest$ac_exeext conftest.$ac_ext
  8210. LDFLAGS="$save_LDFLAGS"
  8211. fi
  8212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8213. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8214. if test "$lt_cv_irix_exported_symbol" = yes; then
  8215. 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'
  8216. fi
  8217. else
  8218. 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'
  8219. 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'
  8220. fi
  8221. archive_cmds_need_lc='no'
  8222. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8223. hardcode_libdir_separator=:
  8224. inherit_rpath=yes
  8225. link_all_deplibs=yes
  8226. ;;
  8227. netbsd*)
  8228. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8229. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8230. else
  8231. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8232. fi
  8233. hardcode_libdir_flag_spec='-R$libdir'
  8234. hardcode_direct=yes
  8235. hardcode_shlibpath_var=no
  8236. ;;
  8237. newsos6)
  8238. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8239. hardcode_direct=yes
  8240. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8241. hardcode_libdir_separator=:
  8242. hardcode_shlibpath_var=no
  8243. ;;
  8244. *nto* | *qnx*)
  8245. ;;
  8246. openbsd*)
  8247. if test -f /usr/libexec/ld.so; then
  8248. hardcode_direct=yes
  8249. hardcode_shlibpath_var=no
  8250. hardcode_direct_absolute=yes
  8251. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8252. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8253. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8254. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8255. export_dynamic_flag_spec='${wl}-E'
  8256. else
  8257. case $host_os in
  8258. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8259. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8260. hardcode_libdir_flag_spec='-R$libdir'
  8261. ;;
  8262. *)
  8263. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8264. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8265. ;;
  8266. esac
  8267. fi
  8268. else
  8269. ld_shlibs=no
  8270. fi
  8271. ;;
  8272. os2*)
  8273. hardcode_libdir_flag_spec='-L$libdir'
  8274. hardcode_minus_L=yes
  8275. allow_undefined_flag=unsupported
  8276. 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'
  8277. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8278. ;;
  8279. osf3*)
  8280. if test "$GCC" = yes; then
  8281. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8282. 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'
  8283. else
  8284. allow_undefined_flag=' -expect_unresolved \*'
  8285. 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'
  8286. fi
  8287. archive_cmds_need_lc='no'
  8288. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8289. hardcode_libdir_separator=:
  8290. ;;
  8291. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8292. if test "$GCC" = yes; then
  8293. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8294. 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'
  8295. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8296. else
  8297. allow_undefined_flag=' -expect_unresolved \*'
  8298. 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'
  8299. 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~
  8300. $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'
  8301. # Both c and cxx compiler support -rpath directly
  8302. hardcode_libdir_flag_spec='-rpath $libdir'
  8303. fi
  8304. archive_cmds_need_lc='no'
  8305. hardcode_libdir_separator=:
  8306. ;;
  8307. solaris*)
  8308. no_undefined_flag=' -z defs'
  8309. if test "$GCC" = yes; then
  8310. wlarc='${wl}'
  8311. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8312. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8313. $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'
  8314. else
  8315. case `$CC -V 2>&1` in
  8316. *"Compilers 5.0"*)
  8317. wlarc=''
  8318. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8319. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8320. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8321. ;;
  8322. *)
  8323. wlarc='${wl}'
  8324. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8325. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8326. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8327. ;;
  8328. esac
  8329. fi
  8330. hardcode_libdir_flag_spec='-R$libdir'
  8331. hardcode_shlibpath_var=no
  8332. case $host_os in
  8333. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8334. *)
  8335. # The compiler driver will combine and reorder linker options,
  8336. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8337. # but is careful enough not to reorder.
  8338. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8339. if test "$GCC" = yes; then
  8340. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8341. else
  8342. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8343. fi
  8344. ;;
  8345. esac
  8346. link_all_deplibs=yes
  8347. ;;
  8348. sunos4*)
  8349. if test "x$host_vendor" = xsequent; then
  8350. # Use $CC to link under sequent, because it throws in some extra .o
  8351. # files that make .init and .fini sections work.
  8352. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8353. else
  8354. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8355. fi
  8356. hardcode_libdir_flag_spec='-L$libdir'
  8357. hardcode_direct=yes
  8358. hardcode_minus_L=yes
  8359. hardcode_shlibpath_var=no
  8360. ;;
  8361. sysv4)
  8362. case $host_vendor in
  8363. sni)
  8364. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8365. hardcode_direct=yes # is this really true???
  8366. ;;
  8367. siemens)
  8368. ## LD is ld it makes a PLAMLIB
  8369. ## CC just makes a GrossModule.
  8370. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8371. reload_cmds='$CC -r -o $output$reload_objs'
  8372. hardcode_direct=no
  8373. ;;
  8374. motorola)
  8375. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8376. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8377. ;;
  8378. esac
  8379. runpath_var='LD_RUN_PATH'
  8380. hardcode_shlibpath_var=no
  8381. ;;
  8382. sysv4.3*)
  8383. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8384. hardcode_shlibpath_var=no
  8385. export_dynamic_flag_spec='-Bexport'
  8386. ;;
  8387. sysv4*MP*)
  8388. if test -d /usr/nec; then
  8389. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8390. hardcode_shlibpath_var=no
  8391. runpath_var=LD_RUN_PATH
  8392. hardcode_runpath_var=yes
  8393. ld_shlibs=yes
  8394. fi
  8395. ;;
  8396. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8397. no_undefined_flag='${wl}-z,text'
  8398. archive_cmds_need_lc=no
  8399. hardcode_shlibpath_var=no
  8400. runpath_var='LD_RUN_PATH'
  8401. if test "$GCC" = yes; then
  8402. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8403. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8404. else
  8405. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8406. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8407. fi
  8408. ;;
  8409. sysv5* | sco3.2v5* | sco5v6*)
  8410. # Note: We can NOT use -z defs as we might desire, because we do not
  8411. # link with -lc, and that would cause any symbols used from libc to
  8412. # always be unresolved, which means just about no library would
  8413. # ever link correctly. If we're not using GNU ld we use -z text
  8414. # though, which does catch some bad symbols but isn't as heavy-handed
  8415. # as -z defs.
  8416. no_undefined_flag='${wl}-z,text'
  8417. allow_undefined_flag='${wl}-z,nodefs'
  8418. archive_cmds_need_lc=no
  8419. hardcode_shlibpath_var=no
  8420. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8421. hardcode_libdir_separator=':'
  8422. link_all_deplibs=yes
  8423. export_dynamic_flag_spec='${wl}-Bexport'
  8424. runpath_var='LD_RUN_PATH'
  8425. if test "$GCC" = yes; then
  8426. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8427. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8428. else
  8429. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8430. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8431. fi
  8432. ;;
  8433. uts4*)
  8434. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8435. hardcode_libdir_flag_spec='-L$libdir'
  8436. hardcode_shlibpath_var=no
  8437. ;;
  8438. *)
  8439. ld_shlibs=no
  8440. ;;
  8441. esac
  8442. if test x$host_vendor = xsni; then
  8443. case $host in
  8444. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8445. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8446. ;;
  8447. esac
  8448. fi
  8449. fi
  8450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8451. $as_echo "$ld_shlibs" >&6; }
  8452. test "$ld_shlibs" = no && can_build_shared=no
  8453. with_gnu_ld=$with_gnu_ld
  8454. #
  8455. # Do we need to explicitly link libc?
  8456. #
  8457. case "x$archive_cmds_need_lc" in
  8458. x|xyes)
  8459. # Assume -lc should be added
  8460. archive_cmds_need_lc=yes
  8461. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8462. case $archive_cmds in
  8463. *'~'*)
  8464. # FIXME: we may have to deal with multi-command sequences.
  8465. ;;
  8466. '$CC '*)
  8467. # Test whether the compiler implicitly links with -lc since on some
  8468. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8469. # to ld, don't add -lc before -lgcc.
  8470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8471. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8472. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8473. $as_echo_n "(cached) " >&6
  8474. else
  8475. $RM conftest*
  8476. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8477. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8478. (eval $ac_compile) 2>&5
  8479. ac_status=$?
  8480. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8481. test $ac_status = 0; } 2>conftest.err; then
  8482. soname=conftest
  8483. lib=conftest
  8484. libobjs=conftest.$ac_objext
  8485. deplibs=
  8486. wl=$lt_prog_compiler_wl
  8487. pic_flag=$lt_prog_compiler_pic
  8488. compiler_flags=-v
  8489. linker_flags=-v
  8490. verstring=
  8491. output_objdir=.
  8492. libname=conftest
  8493. lt_save_allow_undefined_flag=$allow_undefined_flag
  8494. allow_undefined_flag=
  8495. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8496. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8497. ac_status=$?
  8498. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8499. test $ac_status = 0; }
  8500. then
  8501. lt_cv_archive_cmds_need_lc=no
  8502. else
  8503. lt_cv_archive_cmds_need_lc=yes
  8504. fi
  8505. allow_undefined_flag=$lt_save_allow_undefined_flag
  8506. else
  8507. cat conftest.err 1>&5
  8508. fi
  8509. $RM conftest*
  8510. fi
  8511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8512. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8513. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8514. ;;
  8515. esac
  8516. fi
  8517. ;;
  8518. esac
  8519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8520. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8521. if test "$GCC" = yes; then
  8522. case $host_os in
  8523. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8524. *) lt_awk_arg="/^libraries:/" ;;
  8525. esac
  8526. case $host_os in
  8527. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8528. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8529. esac
  8530. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8531. case $lt_search_path_spec in
  8532. *\;*)
  8533. # if the path contains ";" then we assume it to be the separator
  8534. # otherwise default to the standard path separator (i.e. ":") - it is
  8535. # assumed that no part of a normal pathname contains ";" but that should
  8536. # okay in the real world where ";" in dirpaths is itself problematic.
  8537. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8538. ;;
  8539. *)
  8540. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8541. ;;
  8542. esac
  8543. # Ok, now we have the path, separated by spaces, we can step through it
  8544. # and add multilib dir if necessary...
  8545. lt_tmp_lt_search_path_spec=
  8546. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8547. # ...but if some path already ends with the multilib dir we assume
  8548. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8549. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8550. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8551. lt_multi_os_dir=
  8552. ;;
  8553. esac
  8554. for lt_sys_path in $lt_search_path_spec; do
  8555. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8556. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8557. elif test -n "$lt_multi_os_dir"; then
  8558. test -d "$lt_sys_path" && \
  8559. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8560. fi
  8561. done
  8562. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8563. BEGIN {RS=" "; FS="/|\n";} {
  8564. lt_foo="";
  8565. lt_count=0;
  8566. for (lt_i = NF; lt_i > 0; lt_i--) {
  8567. if ($lt_i != "" && $lt_i != ".") {
  8568. if ($lt_i == "..") {
  8569. lt_count++;
  8570. } else {
  8571. if (lt_count == 0) {
  8572. lt_foo="/" $lt_i lt_foo;
  8573. } else {
  8574. lt_count--;
  8575. }
  8576. }
  8577. }
  8578. }
  8579. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8580. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8581. }'`
  8582. # AWK program above erroneously prepends '/' to C:/dos/paths
  8583. # for these hosts.
  8584. case $host_os in
  8585. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8586. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8587. esac
  8588. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8589. else
  8590. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8591. fi
  8592. library_names_spec=
  8593. libname_spec='lib$name'
  8594. soname_spec=
  8595. shrext_cmds=".so"
  8596. postinstall_cmds=
  8597. postuninstall_cmds=
  8598. finish_cmds=
  8599. finish_eval=
  8600. shlibpath_var=
  8601. shlibpath_overrides_runpath=unknown
  8602. version_type=none
  8603. dynamic_linker="$host_os ld.so"
  8604. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8605. need_lib_prefix=unknown
  8606. hardcode_into_libs=no
  8607. # when you set need_version to no, make sure it does not cause -set_version
  8608. # flags to be left without arguments
  8609. need_version=unknown
  8610. case $host_os in
  8611. aix3*)
  8612. version_type=linux # correct to gnu/linux during the next big refactor
  8613. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8614. shlibpath_var=LIBPATH
  8615. # AIX 3 has no versioning support, so we append a major version to the name.
  8616. soname_spec='${libname}${release}${shared_ext}$major'
  8617. ;;
  8618. aix[4-9]*)
  8619. version_type=linux # correct to gnu/linux during the next big refactor
  8620. need_lib_prefix=no
  8621. need_version=no
  8622. hardcode_into_libs=yes
  8623. if test "$host_cpu" = ia64; then
  8624. # AIX 5 supports IA64
  8625. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8626. shlibpath_var=LD_LIBRARY_PATH
  8627. else
  8628. # With GCC up to 2.95.x, collect2 would create an import file
  8629. # for dependence libraries. The import file would start with
  8630. # the line `#! .'. This would cause the generated library to
  8631. # depend on `.', always an invalid library. This was fixed in
  8632. # development snapshots of GCC prior to 3.0.
  8633. case $host_os in
  8634. aix4 | aix4.[01] | aix4.[01].*)
  8635. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8636. echo ' yes '
  8637. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8638. :
  8639. else
  8640. can_build_shared=no
  8641. fi
  8642. ;;
  8643. esac
  8644. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8645. # soname into executable. Probably we can add versioning support to
  8646. # collect2, so additional links can be useful in future.
  8647. if test "$aix_use_runtimelinking" = yes; then
  8648. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8649. # instead of lib<name>.a to let people know that these are not
  8650. # typical AIX shared libraries.
  8651. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8652. else
  8653. # We preserve .a as extension for shared libraries through AIX4.2
  8654. # and later when we are not doing run time linking.
  8655. library_names_spec='${libname}${release}.a $libname.a'
  8656. soname_spec='${libname}${release}${shared_ext}$major'
  8657. fi
  8658. shlibpath_var=LIBPATH
  8659. fi
  8660. ;;
  8661. amigaos*)
  8662. case $host_cpu in
  8663. powerpc)
  8664. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8665. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8666. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8667. ;;
  8668. m68k)
  8669. library_names_spec='$libname.ixlibrary $libname.a'
  8670. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8671. 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'
  8672. ;;
  8673. esac
  8674. ;;
  8675. beos*)
  8676. library_names_spec='${libname}${shared_ext}'
  8677. dynamic_linker="$host_os ld.so"
  8678. shlibpath_var=LIBRARY_PATH
  8679. ;;
  8680. bsdi[45]*)
  8681. version_type=linux # correct to gnu/linux during the next big refactor
  8682. need_version=no
  8683. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8684. soname_spec='${libname}${release}${shared_ext}$major'
  8685. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8686. shlibpath_var=LD_LIBRARY_PATH
  8687. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8688. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8689. # the default ld.so.conf also contains /usr/contrib/lib and
  8690. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8691. # libtool to hard-code these into programs
  8692. ;;
  8693. cygwin* | mingw* | pw32* | cegcc*)
  8694. version_type=windows
  8695. shrext_cmds=".dll"
  8696. need_version=no
  8697. need_lib_prefix=no
  8698. case $GCC,$cc_basename in
  8699. yes,*)
  8700. # gcc
  8701. library_names_spec='$libname.dll.a'
  8702. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8703. postinstall_cmds='base_file=`basename \${file}`~
  8704. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8705. dldir=$destdir/`dirname \$dlpath`~
  8706. test -d \$dldir || mkdir -p \$dldir~
  8707. $install_prog $dir/$dlname \$dldir/$dlname~
  8708. chmod a+x \$dldir/$dlname~
  8709. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8710. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8711. fi'
  8712. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8713. dlpath=$dir/\$dldll~
  8714. $RM \$dlpath'
  8715. shlibpath_overrides_runpath=yes
  8716. case $host_os in
  8717. cygwin*)
  8718. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8719. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8720. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8721. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8722. ;;
  8723. mingw* | cegcc*)
  8724. # MinGW DLLs use traditional 'lib' prefix
  8725. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8726. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8727. ;;
  8728. pw32*)
  8729. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8730. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8731. ;;
  8732. esac
  8733. dynamic_linker='Win32 ld.exe'
  8734. ;;
  8735. *,cl*)
  8736. # Native MSVC
  8737. libname_spec='$name'
  8738. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8739. library_names_spec='${libname}.dll.lib'
  8740. case $build_os in
  8741. mingw*)
  8742. sys_lib_search_path_spec=
  8743. lt_save_ifs=$IFS
  8744. IFS=';'
  8745. for lt_path in $LIB
  8746. do
  8747. IFS=$lt_save_ifs
  8748. # Let DOS variable expansion print the short 8.3 style file name.
  8749. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8750. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8751. done
  8752. IFS=$lt_save_ifs
  8753. # Convert to MSYS style.
  8754. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8755. ;;
  8756. cygwin*)
  8757. # Convert to unix form, then to dos form, then back to unix form
  8758. # but this time dos style (no spaces!) so that the unix form looks
  8759. # like /cygdrive/c/PROGRA~1:/cygdr...
  8760. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8761. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8762. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8763. ;;
  8764. *)
  8765. sys_lib_search_path_spec="$LIB"
  8766. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8767. # It is most probably a Windows format PATH.
  8768. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8769. else
  8770. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8771. fi
  8772. # FIXME: find the short name or the path components, as spaces are
  8773. # common. (e.g. "Program Files" -> "PROGRA~1")
  8774. ;;
  8775. esac
  8776. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8777. postinstall_cmds='base_file=`basename \${file}`~
  8778. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8779. dldir=$destdir/`dirname \$dlpath`~
  8780. test -d \$dldir || mkdir -p \$dldir~
  8781. $install_prog $dir/$dlname \$dldir/$dlname'
  8782. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8783. dlpath=$dir/\$dldll~
  8784. $RM \$dlpath'
  8785. shlibpath_overrides_runpath=yes
  8786. dynamic_linker='Win32 link.exe'
  8787. ;;
  8788. *)
  8789. # Assume MSVC wrapper
  8790. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8791. dynamic_linker='Win32 ld.exe'
  8792. ;;
  8793. esac
  8794. # FIXME: first we should search . and the directory the executable is in
  8795. shlibpath_var=PATH
  8796. ;;
  8797. darwin* | rhapsody*)
  8798. dynamic_linker="$host_os dyld"
  8799. version_type=darwin
  8800. need_lib_prefix=no
  8801. need_version=no
  8802. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8803. soname_spec='${libname}${release}${major}$shared_ext'
  8804. shlibpath_overrides_runpath=yes
  8805. shlibpath_var=DYLD_LIBRARY_PATH
  8806. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8807. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8808. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8809. ;;
  8810. dgux*)
  8811. version_type=linux # correct to gnu/linux during the next big refactor
  8812. need_lib_prefix=no
  8813. need_version=no
  8814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8815. soname_spec='${libname}${release}${shared_ext}$major'
  8816. shlibpath_var=LD_LIBRARY_PATH
  8817. ;;
  8818. freebsd* | dragonfly*)
  8819. # DragonFly does not have aout. When/if they implement a new
  8820. # versioning mechanism, adjust this.
  8821. if test -x /usr/bin/objformat; then
  8822. objformat=`/usr/bin/objformat`
  8823. else
  8824. case $host_os in
  8825. freebsd[23].*) objformat=aout ;;
  8826. *) objformat=elf ;;
  8827. esac
  8828. fi
  8829. version_type=freebsd-$objformat
  8830. case $version_type in
  8831. freebsd-elf*)
  8832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8833. need_version=no
  8834. need_lib_prefix=no
  8835. ;;
  8836. freebsd-*)
  8837. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8838. need_version=yes
  8839. ;;
  8840. esac
  8841. shlibpath_var=LD_LIBRARY_PATH
  8842. case $host_os in
  8843. freebsd2.*)
  8844. shlibpath_overrides_runpath=yes
  8845. ;;
  8846. freebsd3.[01]* | freebsdelf3.[01]*)
  8847. shlibpath_overrides_runpath=yes
  8848. hardcode_into_libs=yes
  8849. ;;
  8850. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8851. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8852. shlibpath_overrides_runpath=no
  8853. hardcode_into_libs=yes
  8854. ;;
  8855. *) # from 4.6 on, and DragonFly
  8856. shlibpath_overrides_runpath=yes
  8857. hardcode_into_libs=yes
  8858. ;;
  8859. esac
  8860. ;;
  8861. gnu*)
  8862. version_type=linux # correct to gnu/linux during the next big refactor
  8863. need_lib_prefix=no
  8864. need_version=no
  8865. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8866. soname_spec='${libname}${release}${shared_ext}$major'
  8867. shlibpath_var=LD_LIBRARY_PATH
  8868. shlibpath_overrides_runpath=no
  8869. hardcode_into_libs=yes
  8870. ;;
  8871. haiku*)
  8872. version_type=linux # correct to gnu/linux during the next big refactor
  8873. need_lib_prefix=no
  8874. need_version=no
  8875. dynamic_linker="$host_os runtime_loader"
  8876. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8877. soname_spec='${libname}${release}${shared_ext}$major'
  8878. shlibpath_var=LIBRARY_PATH
  8879. shlibpath_overrides_runpath=yes
  8880. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8881. hardcode_into_libs=yes
  8882. ;;
  8883. hpux9* | hpux10* | hpux11*)
  8884. # Give a soname corresponding to the major version so that dld.sl refuses to
  8885. # link against other versions.
  8886. version_type=sunos
  8887. need_lib_prefix=no
  8888. need_version=no
  8889. case $host_cpu in
  8890. ia64*)
  8891. shrext_cmds='.so'
  8892. hardcode_into_libs=yes
  8893. dynamic_linker="$host_os dld.so"
  8894. shlibpath_var=LD_LIBRARY_PATH
  8895. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8897. soname_spec='${libname}${release}${shared_ext}$major'
  8898. if test "X$HPUX_IA64_MODE" = X32; then
  8899. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8900. else
  8901. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8902. fi
  8903. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8904. ;;
  8905. hppa*64*)
  8906. shrext_cmds='.sl'
  8907. hardcode_into_libs=yes
  8908. dynamic_linker="$host_os dld.sl"
  8909. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8910. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8911. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8912. soname_spec='${libname}${release}${shared_ext}$major'
  8913. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8914. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8915. ;;
  8916. *)
  8917. shrext_cmds='.sl'
  8918. dynamic_linker="$host_os dld.sl"
  8919. shlibpath_var=SHLIB_PATH
  8920. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8922. soname_spec='${libname}${release}${shared_ext}$major'
  8923. ;;
  8924. esac
  8925. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8926. postinstall_cmds='chmod 555 $lib'
  8927. # or fails outright, so override atomically:
  8928. install_override_mode=555
  8929. ;;
  8930. interix[3-9]*)
  8931. version_type=linux # correct to gnu/linux during the next big refactor
  8932. need_lib_prefix=no
  8933. need_version=no
  8934. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8935. soname_spec='${libname}${release}${shared_ext}$major'
  8936. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8937. shlibpath_var=LD_LIBRARY_PATH
  8938. shlibpath_overrides_runpath=no
  8939. hardcode_into_libs=yes
  8940. ;;
  8941. irix5* | irix6* | nonstopux*)
  8942. case $host_os in
  8943. nonstopux*) version_type=nonstopux ;;
  8944. *)
  8945. if test "$lt_cv_prog_gnu_ld" = yes; then
  8946. version_type=linux # correct to gnu/linux during the next big refactor
  8947. else
  8948. version_type=irix
  8949. fi ;;
  8950. esac
  8951. need_lib_prefix=no
  8952. need_version=no
  8953. soname_spec='${libname}${release}${shared_ext}$major'
  8954. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8955. case $host_os in
  8956. irix5* | nonstopux*)
  8957. libsuff= shlibsuff=
  8958. ;;
  8959. *)
  8960. case $LD in # libtool.m4 will add one of these switches to LD
  8961. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8962. libsuff= shlibsuff= libmagic=32-bit;;
  8963. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8964. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8965. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8966. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8967. *) libsuff= shlibsuff= libmagic=never-match;;
  8968. esac
  8969. ;;
  8970. esac
  8971. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8972. shlibpath_overrides_runpath=no
  8973. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8974. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8975. hardcode_into_libs=yes
  8976. ;;
  8977. # No shared lib support for Linux oldld, aout, or coff.
  8978. linux*oldld* | linux*aout* | linux*coff*)
  8979. dynamic_linker=no
  8980. ;;
  8981. # This must be glibc/ELF.
  8982. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8983. version_type=linux # correct to gnu/linux during the next big refactor
  8984. need_lib_prefix=no
  8985. need_version=no
  8986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8987. soname_spec='${libname}${release}${shared_ext}$major'
  8988. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8989. shlibpath_var=LD_LIBRARY_PATH
  8990. shlibpath_overrides_runpath=no
  8991. # Some binutils ld are patched to set DT_RUNPATH
  8992. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8993. $as_echo_n "(cached) " >&6
  8994. else
  8995. lt_cv_shlibpath_overrides_runpath=no
  8996. save_LDFLAGS=$LDFLAGS
  8997. save_libdir=$libdir
  8998. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8999. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9001. /* end confdefs.h. */
  9002. int
  9003. main ()
  9004. {
  9005. ;
  9006. return 0;
  9007. }
  9008. _ACEOF
  9009. if ac_fn_c_try_link "$LINENO"; then :
  9010. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9011. lt_cv_shlibpath_overrides_runpath=yes
  9012. fi
  9013. fi
  9014. rm -f core conftest.err conftest.$ac_objext \
  9015. conftest$ac_exeext conftest.$ac_ext
  9016. LDFLAGS=$save_LDFLAGS
  9017. libdir=$save_libdir
  9018. fi
  9019. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9020. # This implies no fast_install, which is unacceptable.
  9021. # Some rework will be needed to allow for fast_install
  9022. # before this can be enabled.
  9023. hardcode_into_libs=yes
  9024. # Append ld.so.conf contents to the search path
  9025. if test -f /etc/ld.so.conf; then
  9026. 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' ' '`
  9027. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9028. fi
  9029. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9030. # powerpc, because MkLinux only supported shared libraries with the
  9031. # GNU dynamic linker. Since this was broken with cross compilers,
  9032. # most powerpc-linux boxes support dynamic linking these days and
  9033. # people can always --disable-shared, the test was removed, and we
  9034. # assume the GNU/Linux dynamic linker is in use.
  9035. dynamic_linker='GNU/Linux ld.so'
  9036. ;;
  9037. netbsd*)
  9038. version_type=sunos
  9039. need_lib_prefix=no
  9040. need_version=no
  9041. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9043. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9044. dynamic_linker='NetBSD (a.out) ld.so'
  9045. else
  9046. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9047. soname_spec='${libname}${release}${shared_ext}$major'
  9048. dynamic_linker='NetBSD ld.elf_so'
  9049. fi
  9050. shlibpath_var=LD_LIBRARY_PATH
  9051. shlibpath_overrides_runpath=yes
  9052. hardcode_into_libs=yes
  9053. ;;
  9054. newsos6)
  9055. version_type=linux # correct to gnu/linux during the next big refactor
  9056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9057. shlibpath_var=LD_LIBRARY_PATH
  9058. shlibpath_overrides_runpath=yes
  9059. ;;
  9060. *nto* | *qnx*)
  9061. version_type=qnx
  9062. need_lib_prefix=no
  9063. need_version=no
  9064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9065. soname_spec='${libname}${release}${shared_ext}$major'
  9066. shlibpath_var=LD_LIBRARY_PATH
  9067. shlibpath_overrides_runpath=no
  9068. hardcode_into_libs=yes
  9069. dynamic_linker='ldqnx.so'
  9070. ;;
  9071. openbsd*)
  9072. version_type=sunos
  9073. sys_lib_dlsearch_path_spec="/usr/lib"
  9074. need_lib_prefix=no
  9075. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9076. case $host_os in
  9077. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9078. *) need_version=no ;;
  9079. esac
  9080. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9081. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9082. shlibpath_var=LD_LIBRARY_PATH
  9083. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9084. case $host_os in
  9085. openbsd2.[89] | openbsd2.[89].*)
  9086. shlibpath_overrides_runpath=no
  9087. ;;
  9088. *)
  9089. shlibpath_overrides_runpath=yes
  9090. ;;
  9091. esac
  9092. else
  9093. shlibpath_overrides_runpath=yes
  9094. fi
  9095. ;;
  9096. os2*)
  9097. libname_spec='$name'
  9098. shrext_cmds=".dll"
  9099. need_lib_prefix=no
  9100. library_names_spec='$libname${shared_ext} $libname.a'
  9101. dynamic_linker='OS/2 ld.exe'
  9102. shlibpath_var=LIBPATH
  9103. ;;
  9104. osf3* | osf4* | osf5*)
  9105. version_type=osf
  9106. need_lib_prefix=no
  9107. need_version=no
  9108. soname_spec='${libname}${release}${shared_ext}$major'
  9109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9110. shlibpath_var=LD_LIBRARY_PATH
  9111. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9112. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9113. ;;
  9114. rdos*)
  9115. dynamic_linker=no
  9116. ;;
  9117. solaris*)
  9118. version_type=linux # correct to gnu/linux during the next big refactor
  9119. need_lib_prefix=no
  9120. need_version=no
  9121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9122. soname_spec='${libname}${release}${shared_ext}$major'
  9123. shlibpath_var=LD_LIBRARY_PATH
  9124. shlibpath_overrides_runpath=yes
  9125. hardcode_into_libs=yes
  9126. # ldd complains unless libraries are executable
  9127. postinstall_cmds='chmod +x $lib'
  9128. ;;
  9129. sunos4*)
  9130. version_type=sunos
  9131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9132. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9133. shlibpath_var=LD_LIBRARY_PATH
  9134. shlibpath_overrides_runpath=yes
  9135. if test "$with_gnu_ld" = yes; then
  9136. need_lib_prefix=no
  9137. fi
  9138. need_version=yes
  9139. ;;
  9140. sysv4 | sysv4.3*)
  9141. version_type=linux # correct to gnu/linux during the next big refactor
  9142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9143. soname_spec='${libname}${release}${shared_ext}$major'
  9144. shlibpath_var=LD_LIBRARY_PATH
  9145. case $host_vendor in
  9146. sni)
  9147. shlibpath_overrides_runpath=no
  9148. need_lib_prefix=no
  9149. runpath_var=LD_RUN_PATH
  9150. ;;
  9151. siemens)
  9152. need_lib_prefix=no
  9153. ;;
  9154. motorola)
  9155. need_lib_prefix=no
  9156. need_version=no
  9157. shlibpath_overrides_runpath=no
  9158. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9159. ;;
  9160. esac
  9161. ;;
  9162. sysv4*MP*)
  9163. if test -d /usr/nec ;then
  9164. version_type=linux # correct to gnu/linux during the next big refactor
  9165. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9166. soname_spec='$libname${shared_ext}.$major'
  9167. shlibpath_var=LD_LIBRARY_PATH
  9168. fi
  9169. ;;
  9170. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9171. version_type=freebsd-elf
  9172. need_lib_prefix=no
  9173. need_version=no
  9174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9175. soname_spec='${libname}${release}${shared_ext}$major'
  9176. shlibpath_var=LD_LIBRARY_PATH
  9177. shlibpath_overrides_runpath=yes
  9178. hardcode_into_libs=yes
  9179. if test "$with_gnu_ld" = yes; then
  9180. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9181. else
  9182. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9183. case $host_os in
  9184. sco3.2v5*)
  9185. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9186. ;;
  9187. esac
  9188. fi
  9189. sys_lib_dlsearch_path_spec='/usr/lib'
  9190. ;;
  9191. tpf*)
  9192. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9193. version_type=linux # correct to gnu/linux during the next big refactor
  9194. need_lib_prefix=no
  9195. need_version=no
  9196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9197. shlibpath_var=LD_LIBRARY_PATH
  9198. shlibpath_overrides_runpath=no
  9199. hardcode_into_libs=yes
  9200. ;;
  9201. uts4*)
  9202. version_type=linux # correct to gnu/linux during the next big refactor
  9203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9204. soname_spec='${libname}${release}${shared_ext}$major'
  9205. shlibpath_var=LD_LIBRARY_PATH
  9206. ;;
  9207. *)
  9208. dynamic_linker=no
  9209. ;;
  9210. esac
  9211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9212. $as_echo "$dynamic_linker" >&6; }
  9213. test "$dynamic_linker" = no && can_build_shared=no
  9214. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9215. if test "$GCC" = yes; then
  9216. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9217. fi
  9218. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9219. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9220. fi
  9221. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9222. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9223. fi
  9224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9225. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9226. hardcode_action=
  9227. if test -n "$hardcode_libdir_flag_spec" ||
  9228. test -n "$runpath_var" ||
  9229. test "X$hardcode_automatic" = "Xyes" ; then
  9230. # We can hardcode non-existent directories.
  9231. if test "$hardcode_direct" != no &&
  9232. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9233. # have to relink, otherwise we might link with an installed library
  9234. # when we should be linking with a yet-to-be-installed one
  9235. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9236. test "$hardcode_minus_L" != no; then
  9237. # Linking always hardcodes the temporary library directory.
  9238. hardcode_action=relink
  9239. else
  9240. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9241. hardcode_action=immediate
  9242. fi
  9243. else
  9244. # We cannot hardcode anything, or else we can only hardcode existing
  9245. # directories.
  9246. hardcode_action=unsupported
  9247. fi
  9248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9249. $as_echo "$hardcode_action" >&6; }
  9250. if test "$hardcode_action" = relink ||
  9251. test "$inherit_rpath" = yes; then
  9252. # Fast installation is not supported
  9253. enable_fast_install=no
  9254. elif test "$shlibpath_overrides_runpath" = yes ||
  9255. test "$enable_shared" = no; then
  9256. # Fast installation is not necessary
  9257. enable_fast_install=needless
  9258. fi
  9259. if test "x$enable_dlopen" != xyes; then
  9260. enable_dlopen=unknown
  9261. enable_dlopen_self=unknown
  9262. enable_dlopen_self_static=unknown
  9263. else
  9264. lt_cv_dlopen=no
  9265. lt_cv_dlopen_libs=
  9266. case $host_os in
  9267. beos*)
  9268. lt_cv_dlopen="load_add_on"
  9269. lt_cv_dlopen_libs=
  9270. lt_cv_dlopen_self=yes
  9271. ;;
  9272. mingw* | pw32* | cegcc*)
  9273. lt_cv_dlopen="LoadLibrary"
  9274. lt_cv_dlopen_libs=
  9275. ;;
  9276. cygwin*)
  9277. lt_cv_dlopen="dlopen"
  9278. lt_cv_dlopen_libs=
  9279. ;;
  9280. darwin*)
  9281. # if libdl is installed we need to link against it
  9282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9283. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9284. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9285. $as_echo_n "(cached) " >&6
  9286. else
  9287. ac_check_lib_save_LIBS=$LIBS
  9288. LIBS="-ldl $LIBS"
  9289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9290. /* end confdefs.h. */
  9291. /* Override any GCC internal prototype to avoid an error.
  9292. Use char because int might match the return type of a GCC
  9293. builtin and then its argument prototype would still apply. */
  9294. #ifdef __cplusplus
  9295. extern "C"
  9296. #endif
  9297. char dlopen ();
  9298. int
  9299. main ()
  9300. {
  9301. return dlopen ();
  9302. ;
  9303. return 0;
  9304. }
  9305. _ACEOF
  9306. if ac_fn_c_try_link "$LINENO"; then :
  9307. ac_cv_lib_dl_dlopen=yes
  9308. else
  9309. ac_cv_lib_dl_dlopen=no
  9310. fi
  9311. rm -f core conftest.err conftest.$ac_objext \
  9312. conftest$ac_exeext conftest.$ac_ext
  9313. LIBS=$ac_check_lib_save_LIBS
  9314. fi
  9315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9316. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9317. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9318. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9319. else
  9320. lt_cv_dlopen="dyld"
  9321. lt_cv_dlopen_libs=
  9322. lt_cv_dlopen_self=yes
  9323. fi
  9324. ;;
  9325. *)
  9326. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9327. if test "x$ac_cv_func_shl_load" = xyes; then :
  9328. lt_cv_dlopen="shl_load"
  9329. else
  9330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9331. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9332. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9333. $as_echo_n "(cached) " >&6
  9334. else
  9335. ac_check_lib_save_LIBS=$LIBS
  9336. LIBS="-ldld $LIBS"
  9337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9338. /* end confdefs.h. */
  9339. /* Override any GCC internal prototype to avoid an error.
  9340. Use char because int might match the return type of a GCC
  9341. builtin and then its argument prototype would still apply. */
  9342. #ifdef __cplusplus
  9343. extern "C"
  9344. #endif
  9345. char shl_load ();
  9346. int
  9347. main ()
  9348. {
  9349. return shl_load ();
  9350. ;
  9351. return 0;
  9352. }
  9353. _ACEOF
  9354. if ac_fn_c_try_link "$LINENO"; then :
  9355. ac_cv_lib_dld_shl_load=yes
  9356. else
  9357. ac_cv_lib_dld_shl_load=no
  9358. fi
  9359. rm -f core conftest.err conftest.$ac_objext \
  9360. conftest$ac_exeext conftest.$ac_ext
  9361. LIBS=$ac_check_lib_save_LIBS
  9362. fi
  9363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9364. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9365. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9366. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9367. else
  9368. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9369. if test "x$ac_cv_func_dlopen" = xyes; then :
  9370. lt_cv_dlopen="dlopen"
  9371. else
  9372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9373. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9374. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9375. $as_echo_n "(cached) " >&6
  9376. else
  9377. ac_check_lib_save_LIBS=$LIBS
  9378. LIBS="-ldl $LIBS"
  9379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9380. /* end confdefs.h. */
  9381. /* Override any GCC internal prototype to avoid an error.
  9382. Use char because int might match the return type of a GCC
  9383. builtin and then its argument prototype would still apply. */
  9384. #ifdef __cplusplus
  9385. extern "C"
  9386. #endif
  9387. char dlopen ();
  9388. int
  9389. main ()
  9390. {
  9391. return dlopen ();
  9392. ;
  9393. return 0;
  9394. }
  9395. _ACEOF
  9396. if ac_fn_c_try_link "$LINENO"; then :
  9397. ac_cv_lib_dl_dlopen=yes
  9398. else
  9399. ac_cv_lib_dl_dlopen=no
  9400. fi
  9401. rm -f core conftest.err conftest.$ac_objext \
  9402. conftest$ac_exeext conftest.$ac_ext
  9403. LIBS=$ac_check_lib_save_LIBS
  9404. fi
  9405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9406. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9407. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9408. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9409. else
  9410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9411. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9412. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9413. $as_echo_n "(cached) " >&6
  9414. else
  9415. ac_check_lib_save_LIBS=$LIBS
  9416. LIBS="-lsvld $LIBS"
  9417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9418. /* end confdefs.h. */
  9419. /* Override any GCC internal prototype to avoid an error.
  9420. Use char because int might match the return type of a GCC
  9421. builtin and then its argument prototype would still apply. */
  9422. #ifdef __cplusplus
  9423. extern "C"
  9424. #endif
  9425. char dlopen ();
  9426. int
  9427. main ()
  9428. {
  9429. return dlopen ();
  9430. ;
  9431. return 0;
  9432. }
  9433. _ACEOF
  9434. if ac_fn_c_try_link "$LINENO"; then :
  9435. ac_cv_lib_svld_dlopen=yes
  9436. else
  9437. ac_cv_lib_svld_dlopen=no
  9438. fi
  9439. rm -f core conftest.err conftest.$ac_objext \
  9440. conftest$ac_exeext conftest.$ac_ext
  9441. LIBS=$ac_check_lib_save_LIBS
  9442. fi
  9443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9444. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9445. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9446. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9447. else
  9448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9449. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9450. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9451. $as_echo_n "(cached) " >&6
  9452. else
  9453. ac_check_lib_save_LIBS=$LIBS
  9454. LIBS="-ldld $LIBS"
  9455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9456. /* end confdefs.h. */
  9457. /* Override any GCC internal prototype to avoid an error.
  9458. Use char because int might match the return type of a GCC
  9459. builtin and then its argument prototype would still apply. */
  9460. #ifdef __cplusplus
  9461. extern "C"
  9462. #endif
  9463. char dld_link ();
  9464. int
  9465. main ()
  9466. {
  9467. return dld_link ();
  9468. ;
  9469. return 0;
  9470. }
  9471. _ACEOF
  9472. if ac_fn_c_try_link "$LINENO"; then :
  9473. ac_cv_lib_dld_dld_link=yes
  9474. else
  9475. ac_cv_lib_dld_dld_link=no
  9476. fi
  9477. rm -f core conftest.err conftest.$ac_objext \
  9478. conftest$ac_exeext conftest.$ac_ext
  9479. LIBS=$ac_check_lib_save_LIBS
  9480. fi
  9481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9482. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9483. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9484. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9485. fi
  9486. fi
  9487. fi
  9488. fi
  9489. fi
  9490. fi
  9491. ;;
  9492. esac
  9493. if test "x$lt_cv_dlopen" != xno; then
  9494. enable_dlopen=yes
  9495. else
  9496. enable_dlopen=no
  9497. fi
  9498. case $lt_cv_dlopen in
  9499. dlopen)
  9500. save_CPPFLAGS="$CPPFLAGS"
  9501. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9502. save_LDFLAGS="$LDFLAGS"
  9503. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9504. save_LIBS="$LIBS"
  9505. LIBS="$lt_cv_dlopen_libs $LIBS"
  9506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9507. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9508. if ${lt_cv_dlopen_self+:} false; then :
  9509. $as_echo_n "(cached) " >&6
  9510. else
  9511. if test "$cross_compiling" = yes; then :
  9512. lt_cv_dlopen_self=cross
  9513. else
  9514. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9515. lt_status=$lt_dlunknown
  9516. cat > conftest.$ac_ext <<_LT_EOF
  9517. #line $LINENO "configure"
  9518. #include "confdefs.h"
  9519. #if HAVE_DLFCN_H
  9520. #include <dlfcn.h>
  9521. #endif
  9522. #include <stdio.h>
  9523. #ifdef RTLD_GLOBAL
  9524. # define LT_DLGLOBAL RTLD_GLOBAL
  9525. #else
  9526. # ifdef DL_GLOBAL
  9527. # define LT_DLGLOBAL DL_GLOBAL
  9528. # else
  9529. # define LT_DLGLOBAL 0
  9530. # endif
  9531. #endif
  9532. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9533. find out it does not work in some platform. */
  9534. #ifndef LT_DLLAZY_OR_NOW
  9535. # ifdef RTLD_LAZY
  9536. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9537. # else
  9538. # ifdef DL_LAZY
  9539. # define LT_DLLAZY_OR_NOW DL_LAZY
  9540. # else
  9541. # ifdef RTLD_NOW
  9542. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9543. # else
  9544. # ifdef DL_NOW
  9545. # define LT_DLLAZY_OR_NOW DL_NOW
  9546. # else
  9547. # define LT_DLLAZY_OR_NOW 0
  9548. # endif
  9549. # endif
  9550. # endif
  9551. # endif
  9552. #endif
  9553. /* When -fvisbility=hidden is used, assume the code has been annotated
  9554. correspondingly for the symbols needed. */
  9555. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9556. int fnord () __attribute__((visibility("default")));
  9557. #endif
  9558. int fnord () { return 42; }
  9559. int main ()
  9560. {
  9561. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9562. int status = $lt_dlunknown;
  9563. if (self)
  9564. {
  9565. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9566. else
  9567. {
  9568. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9569. else puts (dlerror ());
  9570. }
  9571. /* dlclose (self); */
  9572. }
  9573. else
  9574. puts (dlerror ());
  9575. return status;
  9576. }
  9577. _LT_EOF
  9578. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9579. (eval $ac_link) 2>&5
  9580. ac_status=$?
  9581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9582. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9583. (./conftest; exit; ) >&5 2>/dev/null
  9584. lt_status=$?
  9585. case x$lt_status in
  9586. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9587. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9588. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9589. esac
  9590. else :
  9591. # compilation failed
  9592. lt_cv_dlopen_self=no
  9593. fi
  9594. fi
  9595. rm -fr conftest*
  9596. fi
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9598. $as_echo "$lt_cv_dlopen_self" >&6; }
  9599. if test "x$lt_cv_dlopen_self" = xyes; then
  9600. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9602. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9603. if ${lt_cv_dlopen_self_static+:} false; then :
  9604. $as_echo_n "(cached) " >&6
  9605. else
  9606. if test "$cross_compiling" = yes; then :
  9607. lt_cv_dlopen_self_static=cross
  9608. else
  9609. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9610. lt_status=$lt_dlunknown
  9611. cat > conftest.$ac_ext <<_LT_EOF
  9612. #line $LINENO "configure"
  9613. #include "confdefs.h"
  9614. #if HAVE_DLFCN_H
  9615. #include <dlfcn.h>
  9616. #endif
  9617. #include <stdio.h>
  9618. #ifdef RTLD_GLOBAL
  9619. # define LT_DLGLOBAL RTLD_GLOBAL
  9620. #else
  9621. # ifdef DL_GLOBAL
  9622. # define LT_DLGLOBAL DL_GLOBAL
  9623. # else
  9624. # define LT_DLGLOBAL 0
  9625. # endif
  9626. #endif
  9627. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9628. find out it does not work in some platform. */
  9629. #ifndef LT_DLLAZY_OR_NOW
  9630. # ifdef RTLD_LAZY
  9631. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9632. # else
  9633. # ifdef DL_LAZY
  9634. # define LT_DLLAZY_OR_NOW DL_LAZY
  9635. # else
  9636. # ifdef RTLD_NOW
  9637. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9638. # else
  9639. # ifdef DL_NOW
  9640. # define LT_DLLAZY_OR_NOW DL_NOW
  9641. # else
  9642. # define LT_DLLAZY_OR_NOW 0
  9643. # endif
  9644. # endif
  9645. # endif
  9646. # endif
  9647. #endif
  9648. /* When -fvisbility=hidden is used, assume the code has been annotated
  9649. correspondingly for the symbols needed. */
  9650. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9651. int fnord () __attribute__((visibility("default")));
  9652. #endif
  9653. int fnord () { return 42; }
  9654. int main ()
  9655. {
  9656. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9657. int status = $lt_dlunknown;
  9658. if (self)
  9659. {
  9660. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9661. else
  9662. {
  9663. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9664. else puts (dlerror ());
  9665. }
  9666. /* dlclose (self); */
  9667. }
  9668. else
  9669. puts (dlerror ());
  9670. return status;
  9671. }
  9672. _LT_EOF
  9673. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9674. (eval $ac_link) 2>&5
  9675. ac_status=$?
  9676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9677. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9678. (./conftest; exit; ) >&5 2>/dev/null
  9679. lt_status=$?
  9680. case x$lt_status in
  9681. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9682. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9683. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9684. esac
  9685. else :
  9686. # compilation failed
  9687. lt_cv_dlopen_self_static=no
  9688. fi
  9689. fi
  9690. rm -fr conftest*
  9691. fi
  9692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9693. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9694. fi
  9695. CPPFLAGS="$save_CPPFLAGS"
  9696. LDFLAGS="$save_LDFLAGS"
  9697. LIBS="$save_LIBS"
  9698. ;;
  9699. esac
  9700. case $lt_cv_dlopen_self in
  9701. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9702. *) enable_dlopen_self=unknown ;;
  9703. esac
  9704. case $lt_cv_dlopen_self_static in
  9705. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9706. *) enable_dlopen_self_static=unknown ;;
  9707. esac
  9708. fi
  9709. striplib=
  9710. old_striplib=
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9712. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9713. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9714. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9715. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9717. $as_echo "yes" >&6; }
  9718. else
  9719. # FIXME - insert some real tests, host_os isn't really good enough
  9720. case $host_os in
  9721. darwin*)
  9722. if test -n "$STRIP" ; then
  9723. striplib="$STRIP -x"
  9724. old_striplib="$STRIP -S"
  9725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9726. $as_echo "yes" >&6; }
  9727. else
  9728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9729. $as_echo "no" >&6; }
  9730. fi
  9731. ;;
  9732. *)
  9733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9734. $as_echo "no" >&6; }
  9735. ;;
  9736. esac
  9737. fi
  9738. # Report which library types will actually be built
  9739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9740. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9742. $as_echo "$can_build_shared" >&6; }
  9743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9744. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9745. test "$can_build_shared" = "no" && enable_shared=no
  9746. # On AIX, shared libraries and static libraries use the same namespace, and
  9747. # are all built from PIC.
  9748. case $host_os in
  9749. aix3*)
  9750. test "$enable_shared" = yes && enable_static=no
  9751. if test -n "$RANLIB"; then
  9752. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9753. postinstall_cmds='$RANLIB $lib'
  9754. fi
  9755. ;;
  9756. aix[4-9]*)
  9757. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9758. test "$enable_shared" = yes && enable_static=no
  9759. fi
  9760. ;;
  9761. esac
  9762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9763. $as_echo "$enable_shared" >&6; }
  9764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9765. $as_echo_n "checking whether to build static libraries... " >&6; }
  9766. # Make sure either enable_shared or enable_static is yes.
  9767. test "$enable_shared" = yes || enable_static=yes
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9769. $as_echo "$enable_static" >&6; }
  9770. fi
  9771. ac_ext=c
  9772. ac_cpp='$CPP $CPPFLAGS'
  9773. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9774. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9775. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9776. CC="$lt_save_CC"
  9777. ac_config_commands="$ac_config_commands libtool"
  9778. # Only expand once:
  9779. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9780. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9781. LT_REVISION=$SDL_INTERFACE_AGE
  9782. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9783. ac_ext=c
  9784. ac_cpp='$CPP $CPPFLAGS'
  9785. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9786. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9787. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9788. if test -n "$ac_tool_prefix"; then
  9789. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9790. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9792. $as_echo_n "checking for $ac_word... " >&6; }
  9793. if ${ac_cv_prog_CC+:} false; then :
  9794. $as_echo_n "(cached) " >&6
  9795. else
  9796. if test -n "$CC"; then
  9797. ac_cv_prog_CC="$CC" # Let the user override the test.
  9798. else
  9799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9800. for as_dir in $PATH
  9801. do
  9802. IFS=$as_save_IFS
  9803. test -z "$as_dir" && as_dir=.
  9804. for ac_exec_ext in '' $ac_executable_extensions; do
  9805. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9806. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9808. break 2
  9809. fi
  9810. done
  9811. done
  9812. IFS=$as_save_IFS
  9813. fi
  9814. fi
  9815. CC=$ac_cv_prog_CC
  9816. if test -n "$CC"; then
  9817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9818. $as_echo "$CC" >&6; }
  9819. else
  9820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9821. $as_echo "no" >&6; }
  9822. fi
  9823. fi
  9824. if test -z "$ac_cv_prog_CC"; then
  9825. ac_ct_CC=$CC
  9826. # Extract the first word of "gcc", so it can be a program name with args.
  9827. set dummy gcc; ac_word=$2
  9828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9829. $as_echo_n "checking for $ac_word... " >&6; }
  9830. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9831. $as_echo_n "(cached) " >&6
  9832. else
  9833. if test -n "$ac_ct_CC"; then
  9834. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9835. else
  9836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9837. for as_dir in $PATH
  9838. do
  9839. IFS=$as_save_IFS
  9840. test -z "$as_dir" && as_dir=.
  9841. for ac_exec_ext in '' $ac_executable_extensions; do
  9842. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9843. ac_cv_prog_ac_ct_CC="gcc"
  9844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9845. break 2
  9846. fi
  9847. done
  9848. done
  9849. IFS=$as_save_IFS
  9850. fi
  9851. fi
  9852. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9853. if test -n "$ac_ct_CC"; then
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9855. $as_echo "$ac_ct_CC" >&6; }
  9856. else
  9857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9858. $as_echo "no" >&6; }
  9859. fi
  9860. if test "x$ac_ct_CC" = x; then
  9861. CC=""
  9862. else
  9863. case $cross_compiling:$ac_tool_warned in
  9864. yes:)
  9865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9866. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9867. ac_tool_warned=yes ;;
  9868. esac
  9869. CC=$ac_ct_CC
  9870. fi
  9871. else
  9872. CC="$ac_cv_prog_CC"
  9873. fi
  9874. if test -z "$CC"; then
  9875. if test -n "$ac_tool_prefix"; then
  9876. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9877. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9879. $as_echo_n "checking for $ac_word... " >&6; }
  9880. if ${ac_cv_prog_CC+:} false; then :
  9881. $as_echo_n "(cached) " >&6
  9882. else
  9883. if test -n "$CC"; then
  9884. ac_cv_prog_CC="$CC" # Let the user override the test.
  9885. else
  9886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9887. for as_dir in $PATH
  9888. do
  9889. IFS=$as_save_IFS
  9890. test -z "$as_dir" && as_dir=.
  9891. for ac_exec_ext in '' $ac_executable_extensions; do
  9892. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9893. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9895. break 2
  9896. fi
  9897. done
  9898. done
  9899. IFS=$as_save_IFS
  9900. fi
  9901. fi
  9902. CC=$ac_cv_prog_CC
  9903. if test -n "$CC"; then
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9905. $as_echo "$CC" >&6; }
  9906. else
  9907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9908. $as_echo "no" >&6; }
  9909. fi
  9910. fi
  9911. fi
  9912. if test -z "$CC"; then
  9913. # Extract the first word of "cc", so it can be a program name with args.
  9914. set dummy cc; ac_word=$2
  9915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9916. $as_echo_n "checking for $ac_word... " >&6; }
  9917. if ${ac_cv_prog_CC+:} false; then :
  9918. $as_echo_n "(cached) " >&6
  9919. else
  9920. if test -n "$CC"; then
  9921. ac_cv_prog_CC="$CC" # Let the user override the test.
  9922. else
  9923. ac_prog_rejected=no
  9924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9925. for as_dir in $PATH
  9926. do
  9927. IFS=$as_save_IFS
  9928. test -z "$as_dir" && as_dir=.
  9929. for ac_exec_ext in '' $ac_executable_extensions; do
  9930. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9931. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9932. ac_prog_rejected=yes
  9933. continue
  9934. fi
  9935. ac_cv_prog_CC="cc"
  9936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9937. break 2
  9938. fi
  9939. done
  9940. done
  9941. IFS=$as_save_IFS
  9942. if test $ac_prog_rejected = yes; then
  9943. # We found a bogon in the path, so make sure we never use it.
  9944. set dummy $ac_cv_prog_CC
  9945. shift
  9946. if test $# != 0; then
  9947. # We chose a different compiler from the bogus one.
  9948. # However, it has the same basename, so the bogon will be chosen
  9949. # first if we set CC to just the basename; use the full file name.
  9950. shift
  9951. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9952. fi
  9953. fi
  9954. fi
  9955. fi
  9956. CC=$ac_cv_prog_CC
  9957. if test -n "$CC"; then
  9958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9959. $as_echo "$CC" >&6; }
  9960. else
  9961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9962. $as_echo "no" >&6; }
  9963. fi
  9964. fi
  9965. if test -z "$CC"; then
  9966. if test -n "$ac_tool_prefix"; then
  9967. for ac_prog in cl.exe
  9968. do
  9969. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9970. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9972. $as_echo_n "checking for $ac_word... " >&6; }
  9973. if ${ac_cv_prog_CC+:} false; then :
  9974. $as_echo_n "(cached) " >&6
  9975. else
  9976. if test -n "$CC"; then
  9977. ac_cv_prog_CC="$CC" # Let the user override the test.
  9978. else
  9979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9980. for as_dir in $PATH
  9981. do
  9982. IFS=$as_save_IFS
  9983. test -z "$as_dir" && as_dir=.
  9984. for ac_exec_ext in '' $ac_executable_extensions; do
  9985. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9986. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9988. break 2
  9989. fi
  9990. done
  9991. done
  9992. IFS=$as_save_IFS
  9993. fi
  9994. fi
  9995. CC=$ac_cv_prog_CC
  9996. if test -n "$CC"; then
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9998. $as_echo "$CC" >&6; }
  9999. else
  10000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10001. $as_echo "no" >&6; }
  10002. fi
  10003. test -n "$CC" && break
  10004. done
  10005. fi
  10006. if test -z "$CC"; then
  10007. ac_ct_CC=$CC
  10008. for ac_prog in cl.exe
  10009. do
  10010. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10011. set dummy $ac_prog; ac_word=$2
  10012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10013. $as_echo_n "checking for $ac_word... " >&6; }
  10014. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10015. $as_echo_n "(cached) " >&6
  10016. else
  10017. if test -n "$ac_ct_CC"; then
  10018. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10019. else
  10020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10021. for as_dir in $PATH
  10022. do
  10023. IFS=$as_save_IFS
  10024. test -z "$as_dir" && as_dir=.
  10025. for ac_exec_ext in '' $ac_executable_extensions; do
  10026. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10027. ac_cv_prog_ac_ct_CC="$ac_prog"
  10028. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10029. break 2
  10030. fi
  10031. done
  10032. done
  10033. IFS=$as_save_IFS
  10034. fi
  10035. fi
  10036. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10037. if test -n "$ac_ct_CC"; then
  10038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10039. $as_echo "$ac_ct_CC" >&6; }
  10040. else
  10041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10042. $as_echo "no" >&6; }
  10043. fi
  10044. test -n "$ac_ct_CC" && break
  10045. done
  10046. if test "x$ac_ct_CC" = x; then
  10047. CC=""
  10048. else
  10049. case $cross_compiling:$ac_tool_warned in
  10050. yes:)
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10052. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10053. ac_tool_warned=yes ;;
  10054. esac
  10055. CC=$ac_ct_CC
  10056. fi
  10057. fi
  10058. fi
  10059. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10060. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10061. as_fn_error $? "no acceptable C compiler found in \$PATH
  10062. See \`config.log' for more details" "$LINENO" 5; }
  10063. # Provide some information about the compiler.
  10064. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10065. set X $ac_compile
  10066. ac_compiler=$2
  10067. for ac_option in --version -v -V -qversion; do
  10068. { { ac_try="$ac_compiler $ac_option >&5"
  10069. case "(($ac_try" in
  10070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10071. *) ac_try_echo=$ac_try;;
  10072. esac
  10073. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10074. $as_echo "$ac_try_echo"; } >&5
  10075. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10076. ac_status=$?
  10077. if test -s conftest.err; then
  10078. sed '10a\
  10079. ... rest of stderr output deleted ...
  10080. 10q' conftest.err >conftest.er1
  10081. cat conftest.er1 >&5
  10082. fi
  10083. rm -f conftest.er1 conftest.err
  10084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10085. test $ac_status = 0; }
  10086. done
  10087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10088. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10089. if ${ac_cv_c_compiler_gnu+:} false; then :
  10090. $as_echo_n "(cached) " >&6
  10091. else
  10092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10093. /* end confdefs.h. */
  10094. int
  10095. main ()
  10096. {
  10097. #ifndef __GNUC__
  10098. choke me
  10099. #endif
  10100. ;
  10101. return 0;
  10102. }
  10103. _ACEOF
  10104. if ac_fn_c_try_compile "$LINENO"; then :
  10105. ac_compiler_gnu=yes
  10106. else
  10107. ac_compiler_gnu=no
  10108. fi
  10109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10110. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10111. fi
  10112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10113. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10114. if test $ac_compiler_gnu = yes; then
  10115. GCC=yes
  10116. else
  10117. GCC=
  10118. fi
  10119. ac_test_CFLAGS=${CFLAGS+set}
  10120. ac_save_CFLAGS=$CFLAGS
  10121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10122. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10123. if ${ac_cv_prog_cc_g+:} false; then :
  10124. $as_echo_n "(cached) " >&6
  10125. else
  10126. ac_save_c_werror_flag=$ac_c_werror_flag
  10127. ac_c_werror_flag=yes
  10128. ac_cv_prog_cc_g=no
  10129. CFLAGS="-g"
  10130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10131. /* end confdefs.h. */
  10132. int
  10133. main ()
  10134. {
  10135. ;
  10136. return 0;
  10137. }
  10138. _ACEOF
  10139. if ac_fn_c_try_compile "$LINENO"; then :
  10140. ac_cv_prog_cc_g=yes
  10141. else
  10142. CFLAGS=""
  10143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10144. /* end confdefs.h. */
  10145. int
  10146. main ()
  10147. {
  10148. ;
  10149. return 0;
  10150. }
  10151. _ACEOF
  10152. if ac_fn_c_try_compile "$LINENO"; then :
  10153. else
  10154. ac_c_werror_flag=$ac_save_c_werror_flag
  10155. CFLAGS="-g"
  10156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10157. /* end confdefs.h. */
  10158. int
  10159. main ()
  10160. {
  10161. ;
  10162. return 0;
  10163. }
  10164. _ACEOF
  10165. if ac_fn_c_try_compile "$LINENO"; then :
  10166. ac_cv_prog_cc_g=yes
  10167. fi
  10168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10169. fi
  10170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10171. fi
  10172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10173. ac_c_werror_flag=$ac_save_c_werror_flag
  10174. fi
  10175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10176. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10177. if test "$ac_test_CFLAGS" = set; then
  10178. CFLAGS=$ac_save_CFLAGS
  10179. elif test $ac_cv_prog_cc_g = yes; then
  10180. if test "$GCC" = yes; then
  10181. CFLAGS="-g -O2"
  10182. else
  10183. CFLAGS="-g"
  10184. fi
  10185. else
  10186. if test "$GCC" = yes; then
  10187. CFLAGS="-O2"
  10188. else
  10189. CFLAGS=
  10190. fi
  10191. fi
  10192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10193. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10194. if ${ac_cv_prog_cc_c89+:} false; then :
  10195. $as_echo_n "(cached) " >&6
  10196. else
  10197. ac_cv_prog_cc_c89=no
  10198. ac_save_CC=$CC
  10199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10200. /* end confdefs.h. */
  10201. #include <stdarg.h>
  10202. #include <stdio.h>
  10203. struct stat;
  10204. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10205. struct buf { int x; };
  10206. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10207. static char *e (p, i)
  10208. char **p;
  10209. int i;
  10210. {
  10211. return p[i];
  10212. }
  10213. static char *f (char * (*g) (char **, int), char **p, ...)
  10214. {
  10215. char *s;
  10216. va_list v;
  10217. va_start (v,p);
  10218. s = g (p, va_arg (v,int));
  10219. va_end (v);
  10220. return s;
  10221. }
  10222. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10223. function prototypes and stuff, but not '\xHH' hex character constants.
  10224. These don't provoke an error unfortunately, instead are silently treated
  10225. as 'x'. The following induces an error, until -std is added to get
  10226. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10227. array size at least. It's necessary to write '\x00'==0 to get something
  10228. that's true only with -std. */
  10229. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10230. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10231. inside strings and character constants. */
  10232. #define FOO(x) 'x'
  10233. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10234. int test (int i, double x);
  10235. struct s1 {int (*f) (int a);};
  10236. struct s2 {int (*f) (double a);};
  10237. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10238. int argc;
  10239. char **argv;
  10240. int
  10241. main ()
  10242. {
  10243. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10244. ;
  10245. return 0;
  10246. }
  10247. _ACEOF
  10248. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10249. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10250. do
  10251. CC="$ac_save_CC $ac_arg"
  10252. if ac_fn_c_try_compile "$LINENO"; then :
  10253. ac_cv_prog_cc_c89=$ac_arg
  10254. fi
  10255. rm -f core conftest.err conftest.$ac_objext
  10256. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10257. done
  10258. rm -f conftest.$ac_ext
  10259. CC=$ac_save_CC
  10260. fi
  10261. # AC_CACHE_VAL
  10262. case "x$ac_cv_prog_cc_c89" in
  10263. x)
  10264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10265. $as_echo "none needed" >&6; } ;;
  10266. xno)
  10267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10268. $as_echo "unsupported" >&6; } ;;
  10269. *)
  10270. CC="$CC $ac_cv_prog_cc_c89"
  10271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10272. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10273. esac
  10274. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10275. fi
  10276. ac_ext=c
  10277. ac_cpp='$CPP $CPPFLAGS'
  10278. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10279. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10280. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10281. ac_ext=cpp
  10282. ac_cpp='$CXXCPP $CPPFLAGS'
  10283. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10284. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10285. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10286. if test -z "$CXX"; then
  10287. if test -n "$CCC"; then
  10288. CXX=$CCC
  10289. else
  10290. if test -n "$ac_tool_prefix"; then
  10291. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10292. do
  10293. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10294. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10296. $as_echo_n "checking for $ac_word... " >&6; }
  10297. if ${ac_cv_prog_CXX+:} false; then :
  10298. $as_echo_n "(cached) " >&6
  10299. else
  10300. if test -n "$CXX"; then
  10301. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10302. else
  10303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10304. for as_dir in $PATH
  10305. do
  10306. IFS=$as_save_IFS
  10307. test -z "$as_dir" && as_dir=.
  10308. for ac_exec_ext in '' $ac_executable_extensions; do
  10309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10310. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10312. break 2
  10313. fi
  10314. done
  10315. done
  10316. IFS=$as_save_IFS
  10317. fi
  10318. fi
  10319. CXX=$ac_cv_prog_CXX
  10320. if test -n "$CXX"; then
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10322. $as_echo "$CXX" >&6; }
  10323. else
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10325. $as_echo "no" >&6; }
  10326. fi
  10327. test -n "$CXX" && break
  10328. done
  10329. fi
  10330. if test -z "$CXX"; then
  10331. ac_ct_CXX=$CXX
  10332. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10333. do
  10334. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10335. set dummy $ac_prog; ac_word=$2
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10337. $as_echo_n "checking for $ac_word... " >&6; }
  10338. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10339. $as_echo_n "(cached) " >&6
  10340. else
  10341. if test -n "$ac_ct_CXX"; then
  10342. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10343. else
  10344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10345. for as_dir in $PATH
  10346. do
  10347. IFS=$as_save_IFS
  10348. test -z "$as_dir" && as_dir=.
  10349. for ac_exec_ext in '' $ac_executable_extensions; do
  10350. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10351. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10353. break 2
  10354. fi
  10355. done
  10356. done
  10357. IFS=$as_save_IFS
  10358. fi
  10359. fi
  10360. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10361. if test -n "$ac_ct_CXX"; then
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10363. $as_echo "$ac_ct_CXX" >&6; }
  10364. else
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10366. $as_echo "no" >&6; }
  10367. fi
  10368. test -n "$ac_ct_CXX" && break
  10369. done
  10370. if test "x$ac_ct_CXX" = x; then
  10371. CXX="g++"
  10372. else
  10373. case $cross_compiling:$ac_tool_warned in
  10374. yes:)
  10375. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10376. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10377. ac_tool_warned=yes ;;
  10378. esac
  10379. CXX=$ac_ct_CXX
  10380. fi
  10381. fi
  10382. fi
  10383. fi
  10384. # Provide some information about the compiler.
  10385. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10386. set X $ac_compile
  10387. ac_compiler=$2
  10388. for ac_option in --version -v -V -qversion; do
  10389. { { ac_try="$ac_compiler $ac_option >&5"
  10390. case "(($ac_try" in
  10391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10392. *) ac_try_echo=$ac_try;;
  10393. esac
  10394. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10395. $as_echo "$ac_try_echo"; } >&5
  10396. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10397. ac_status=$?
  10398. if test -s conftest.err; then
  10399. sed '10a\
  10400. ... rest of stderr output deleted ...
  10401. 10q' conftest.err >conftest.er1
  10402. cat conftest.er1 >&5
  10403. fi
  10404. rm -f conftest.er1 conftest.err
  10405. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10406. test $ac_status = 0; }
  10407. done
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10409. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10410. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10411. $as_echo_n "(cached) " >&6
  10412. else
  10413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10414. /* end confdefs.h. */
  10415. int
  10416. main ()
  10417. {
  10418. #ifndef __GNUC__
  10419. choke me
  10420. #endif
  10421. ;
  10422. return 0;
  10423. }
  10424. _ACEOF
  10425. if ac_fn_cxx_try_compile "$LINENO"; then :
  10426. ac_compiler_gnu=yes
  10427. else
  10428. ac_compiler_gnu=no
  10429. fi
  10430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10431. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10432. fi
  10433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10434. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10435. if test $ac_compiler_gnu = yes; then
  10436. GXX=yes
  10437. else
  10438. GXX=
  10439. fi
  10440. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10441. ac_save_CXXFLAGS=$CXXFLAGS
  10442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10443. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10444. if ${ac_cv_prog_cxx_g+:} false; then :
  10445. $as_echo_n "(cached) " >&6
  10446. else
  10447. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10448. ac_cxx_werror_flag=yes
  10449. ac_cv_prog_cxx_g=no
  10450. CXXFLAGS="-g"
  10451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10452. /* end confdefs.h. */
  10453. int
  10454. main ()
  10455. {
  10456. ;
  10457. return 0;
  10458. }
  10459. _ACEOF
  10460. if ac_fn_cxx_try_compile "$LINENO"; then :
  10461. ac_cv_prog_cxx_g=yes
  10462. else
  10463. CXXFLAGS=""
  10464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10465. /* end confdefs.h. */
  10466. int
  10467. main ()
  10468. {
  10469. ;
  10470. return 0;
  10471. }
  10472. _ACEOF
  10473. if ac_fn_cxx_try_compile "$LINENO"; then :
  10474. else
  10475. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10476. CXXFLAGS="-g"
  10477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10478. /* end confdefs.h. */
  10479. int
  10480. main ()
  10481. {
  10482. ;
  10483. return 0;
  10484. }
  10485. _ACEOF
  10486. if ac_fn_cxx_try_compile "$LINENO"; then :
  10487. ac_cv_prog_cxx_g=yes
  10488. fi
  10489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10490. fi
  10491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10492. fi
  10493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10494. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10495. fi
  10496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10497. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10498. if test "$ac_test_CXXFLAGS" = set; then
  10499. CXXFLAGS=$ac_save_CXXFLAGS
  10500. elif test $ac_cv_prog_cxx_g = yes; then
  10501. if test "$GXX" = yes; then
  10502. CXXFLAGS="-g -O2"
  10503. else
  10504. CXXFLAGS="-g"
  10505. fi
  10506. else
  10507. if test "$GXX" = yes; then
  10508. CXXFLAGS="-O2"
  10509. else
  10510. CXXFLAGS=
  10511. fi
  10512. fi
  10513. ac_ext=c
  10514. ac_cpp='$CPP $CPPFLAGS'
  10515. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10516. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10517. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10518. func_stripname_cnf ()
  10519. {
  10520. case ${2} in
  10521. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10522. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10523. esac
  10524. } # func_stripname_cnf
  10525. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10526. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10527. (test "X$CXX" != "Xg++"))) ; then
  10528. ac_ext=cpp
  10529. ac_cpp='$CXXCPP $CPPFLAGS'
  10530. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10531. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10532. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10534. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10535. if test -z "$CXXCPP"; then
  10536. if ${ac_cv_prog_CXXCPP+:} false; then :
  10537. $as_echo_n "(cached) " >&6
  10538. else
  10539. # Double quotes because CXXCPP needs to be expanded
  10540. for CXXCPP in "$CXX -E" "/lib/cpp"
  10541. do
  10542. ac_preproc_ok=false
  10543. for ac_cxx_preproc_warn_flag in '' yes
  10544. do
  10545. # Use a header file that comes with gcc, so configuring glibc
  10546. # with a fresh cross-compiler works.
  10547. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10548. # <limits.h> exists even on freestanding compilers.
  10549. # On the NeXT, cc -E runs the code through the compiler's parser,
  10550. # not just through cpp. "Syntax error" is here to catch this case.
  10551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10552. /* end confdefs.h. */
  10553. #ifdef __STDC__
  10554. # include <limits.h>
  10555. #else
  10556. # include <assert.h>
  10557. #endif
  10558. Syntax error
  10559. _ACEOF
  10560. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10561. else
  10562. # Broken: fails on valid input.
  10563. continue
  10564. fi
  10565. rm -f conftest.err conftest.i conftest.$ac_ext
  10566. # OK, works on sane cases. Now check whether nonexistent headers
  10567. # can be detected and how.
  10568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10569. /* end confdefs.h. */
  10570. #include <ac_nonexistent.h>
  10571. _ACEOF
  10572. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10573. # Broken: success on invalid input.
  10574. continue
  10575. else
  10576. # Passes both tests.
  10577. ac_preproc_ok=:
  10578. break
  10579. fi
  10580. rm -f conftest.err conftest.i conftest.$ac_ext
  10581. done
  10582. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10583. rm -f conftest.i conftest.err conftest.$ac_ext
  10584. if $ac_preproc_ok; then :
  10585. break
  10586. fi
  10587. done
  10588. ac_cv_prog_CXXCPP=$CXXCPP
  10589. fi
  10590. CXXCPP=$ac_cv_prog_CXXCPP
  10591. else
  10592. ac_cv_prog_CXXCPP=$CXXCPP
  10593. fi
  10594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10595. $as_echo "$CXXCPP" >&6; }
  10596. ac_preproc_ok=false
  10597. for ac_cxx_preproc_warn_flag in '' yes
  10598. do
  10599. # Use a header file that comes with gcc, so configuring glibc
  10600. # with a fresh cross-compiler works.
  10601. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10602. # <limits.h> exists even on freestanding compilers.
  10603. # On the NeXT, cc -E runs the code through the compiler's parser,
  10604. # not just through cpp. "Syntax error" is here to catch this case.
  10605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10606. /* end confdefs.h. */
  10607. #ifdef __STDC__
  10608. # include <limits.h>
  10609. #else
  10610. # include <assert.h>
  10611. #endif
  10612. Syntax error
  10613. _ACEOF
  10614. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10615. else
  10616. # Broken: fails on valid input.
  10617. continue
  10618. fi
  10619. rm -f conftest.err conftest.i conftest.$ac_ext
  10620. # OK, works on sane cases. Now check whether nonexistent headers
  10621. # can be detected and how.
  10622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10623. /* end confdefs.h. */
  10624. #include <ac_nonexistent.h>
  10625. _ACEOF
  10626. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10627. # Broken: success on invalid input.
  10628. continue
  10629. else
  10630. # Passes both tests.
  10631. ac_preproc_ok=:
  10632. break
  10633. fi
  10634. rm -f conftest.err conftest.i conftest.$ac_ext
  10635. done
  10636. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10637. rm -f conftest.i conftest.err conftest.$ac_ext
  10638. if $ac_preproc_ok; then :
  10639. else
  10640. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10641. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10642. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10643. See \`config.log' for more details" "$LINENO" 5; }
  10644. fi
  10645. ac_ext=c
  10646. ac_cpp='$CPP $CPPFLAGS'
  10647. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10648. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10649. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10650. else
  10651. _lt_caught_CXX_error=yes
  10652. fi
  10653. ac_ext=cpp
  10654. ac_cpp='$CXXCPP $CPPFLAGS'
  10655. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10656. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10657. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10658. archive_cmds_need_lc_CXX=no
  10659. allow_undefined_flag_CXX=
  10660. always_export_symbols_CXX=no
  10661. archive_expsym_cmds_CXX=
  10662. compiler_needs_object_CXX=no
  10663. export_dynamic_flag_spec_CXX=
  10664. hardcode_direct_CXX=no
  10665. hardcode_direct_absolute_CXX=no
  10666. hardcode_libdir_flag_spec_CXX=
  10667. hardcode_libdir_separator_CXX=
  10668. hardcode_minus_L_CXX=no
  10669. hardcode_shlibpath_var_CXX=unsupported
  10670. hardcode_automatic_CXX=no
  10671. inherit_rpath_CXX=no
  10672. module_cmds_CXX=
  10673. module_expsym_cmds_CXX=
  10674. link_all_deplibs_CXX=unknown
  10675. old_archive_cmds_CXX=$old_archive_cmds
  10676. reload_flag_CXX=$reload_flag
  10677. reload_cmds_CXX=$reload_cmds
  10678. no_undefined_flag_CXX=
  10679. whole_archive_flag_spec_CXX=
  10680. enable_shared_with_static_runtimes_CXX=no
  10681. # Source file extension for C++ test sources.
  10682. ac_ext=cpp
  10683. # Object file extension for compiled C++ test sources.
  10684. objext=o
  10685. objext_CXX=$objext
  10686. # No sense in running all these tests if we already determined that
  10687. # the CXX compiler isn't working. Some variables (like enable_shared)
  10688. # are currently assumed to apply to all compilers on this platform,
  10689. # and will be corrupted by setting them based on a non-working compiler.
  10690. if test "$_lt_caught_CXX_error" != yes; then
  10691. # Code to be used in simple compile tests
  10692. lt_simple_compile_test_code="int some_variable = 0;"
  10693. # Code to be used in simple link tests
  10694. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10695. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10696. # If no C compiler was specified, use CC.
  10697. LTCC=${LTCC-"$CC"}
  10698. # If no C compiler flags were specified, use CFLAGS.
  10699. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10700. # Allow CC to be a program name with arguments.
  10701. compiler=$CC
  10702. # save warnings/boilerplate of simple test code
  10703. ac_outfile=conftest.$ac_objext
  10704. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10705. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10706. _lt_compiler_boilerplate=`cat conftest.err`
  10707. $RM conftest*
  10708. ac_outfile=conftest.$ac_objext
  10709. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10710. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10711. _lt_linker_boilerplate=`cat conftest.err`
  10712. $RM -r conftest*
  10713. # Allow CC to be a program name with arguments.
  10714. lt_save_CC=$CC
  10715. lt_save_CFLAGS=$CFLAGS
  10716. lt_save_LD=$LD
  10717. lt_save_GCC=$GCC
  10718. GCC=$GXX
  10719. lt_save_with_gnu_ld=$with_gnu_ld
  10720. lt_save_path_LD=$lt_cv_path_LD
  10721. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10722. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10723. else
  10724. $as_unset lt_cv_prog_gnu_ld
  10725. fi
  10726. if test -n "${lt_cv_path_LDCXX+set}"; then
  10727. lt_cv_path_LD=$lt_cv_path_LDCXX
  10728. else
  10729. $as_unset lt_cv_path_LD
  10730. fi
  10731. test -z "${LDCXX+set}" || LD=$LDCXX
  10732. CC=${CXX-"c++"}
  10733. CFLAGS=$CXXFLAGS
  10734. compiler=$CC
  10735. compiler_CXX=$CC
  10736. for cc_temp in $compiler""; do
  10737. case $cc_temp in
  10738. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10739. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10740. \-*) ;;
  10741. *) break;;
  10742. esac
  10743. done
  10744. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10745. if test -n "$compiler"; then
  10746. # We don't want -fno-exception when compiling C++ code, so set the
  10747. # no_builtin_flag separately
  10748. if test "$GXX" = yes; then
  10749. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10750. else
  10751. lt_prog_compiler_no_builtin_flag_CXX=
  10752. fi
  10753. if test "$GXX" = yes; then
  10754. # Set up default GNU C++ configuration
  10755. # Check whether --with-gnu-ld was given.
  10756. if test "${with_gnu_ld+set}" = set; then :
  10757. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10758. else
  10759. with_gnu_ld=no
  10760. fi
  10761. ac_prog=ld
  10762. if test "$GCC" = yes; then
  10763. # Check if gcc -print-prog-name=ld gives a path.
  10764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10765. $as_echo_n "checking for ld used by $CC... " >&6; }
  10766. case $host in
  10767. *-*-mingw*)
  10768. # gcc leaves a trailing carriage return which upsets mingw
  10769. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10770. *)
  10771. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10772. esac
  10773. case $ac_prog in
  10774. # Accept absolute paths.
  10775. [\\/]* | ?:[\\/]*)
  10776. re_direlt='/[^/][^/]*/\.\./'
  10777. # Canonicalize the pathname of ld
  10778. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10779. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10780. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10781. done
  10782. test -z "$LD" && LD="$ac_prog"
  10783. ;;
  10784. "")
  10785. # If it fails, then pretend we aren't using GCC.
  10786. ac_prog=ld
  10787. ;;
  10788. *)
  10789. # If it is relative, then search for the first ld in PATH.
  10790. with_gnu_ld=unknown
  10791. ;;
  10792. esac
  10793. elif test "$with_gnu_ld" = yes; then
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10795. $as_echo_n "checking for GNU ld... " >&6; }
  10796. else
  10797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10798. $as_echo_n "checking for non-GNU ld... " >&6; }
  10799. fi
  10800. if ${lt_cv_path_LD+:} false; then :
  10801. $as_echo_n "(cached) " >&6
  10802. else
  10803. if test -z "$LD"; then
  10804. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10805. for ac_dir in $PATH; do
  10806. IFS="$lt_save_ifs"
  10807. test -z "$ac_dir" && ac_dir=.
  10808. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10809. lt_cv_path_LD="$ac_dir/$ac_prog"
  10810. # Check to see if the program is GNU ld. I'd rather use --version,
  10811. # but apparently some variants of GNU ld only accept -v.
  10812. # Break only if it was the GNU/non-GNU ld that we prefer.
  10813. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10814. *GNU* | *'with BFD'*)
  10815. test "$with_gnu_ld" != no && break
  10816. ;;
  10817. *)
  10818. test "$with_gnu_ld" != yes && break
  10819. ;;
  10820. esac
  10821. fi
  10822. done
  10823. IFS="$lt_save_ifs"
  10824. else
  10825. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10826. fi
  10827. fi
  10828. LD="$lt_cv_path_LD"
  10829. if test -n "$LD"; then
  10830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10831. $as_echo "$LD" >&6; }
  10832. else
  10833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10834. $as_echo "no" >&6; }
  10835. fi
  10836. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10838. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10839. if ${lt_cv_prog_gnu_ld+:} false; then :
  10840. $as_echo_n "(cached) " >&6
  10841. else
  10842. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10843. case `$LD -v 2>&1 </dev/null` in
  10844. *GNU* | *'with BFD'*)
  10845. lt_cv_prog_gnu_ld=yes
  10846. ;;
  10847. *)
  10848. lt_cv_prog_gnu_ld=no
  10849. ;;
  10850. esac
  10851. fi
  10852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10853. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10854. with_gnu_ld=$lt_cv_prog_gnu_ld
  10855. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10856. # archiving commands below assume that GNU ld is being used.
  10857. if test "$with_gnu_ld" = yes; then
  10858. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10859. 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'
  10860. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10861. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10862. # If archive_cmds runs LD, not CC, wlarc should be empty
  10863. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10864. # investigate it a little bit more. (MM)
  10865. wlarc='${wl}'
  10866. # ancient GNU ld didn't support --whole-archive et. al.
  10867. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10868. $GREP 'no-whole-archive' > /dev/null; then
  10869. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10870. else
  10871. whole_archive_flag_spec_CXX=
  10872. fi
  10873. else
  10874. with_gnu_ld=no
  10875. wlarc=
  10876. # A generic and very simple default shared library creation
  10877. # command for GNU C++ for the case where it uses the native
  10878. # linker, instead of GNU ld. If possible, this setting should
  10879. # overridden to take advantage of the native linker features on
  10880. # the platform it is being used on.
  10881. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10882. fi
  10883. # Commands to make compiler produce verbose output that lists
  10884. # what "hidden" libraries, object files and flags are used when
  10885. # linking a shared library.
  10886. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10887. else
  10888. GXX=no
  10889. with_gnu_ld=no
  10890. wlarc=
  10891. fi
  10892. # PORTME: fill in a description of your system's C++ link characteristics
  10893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10894. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10895. ld_shlibs_CXX=yes
  10896. case $host_os in
  10897. aix3*)
  10898. # FIXME: insert proper C++ library support
  10899. ld_shlibs_CXX=no
  10900. ;;
  10901. aix[4-9]*)
  10902. if test "$host_cpu" = ia64; then
  10903. # On IA64, the linker does run time linking by default, so we don't
  10904. # have to do anything special.
  10905. aix_use_runtimelinking=no
  10906. exp_sym_flag='-Bexport'
  10907. no_entry_flag=""
  10908. else
  10909. aix_use_runtimelinking=no
  10910. # Test if we are trying to use run time linking or normal
  10911. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10912. # need to do runtime linking.
  10913. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10914. for ld_flag in $LDFLAGS; do
  10915. case $ld_flag in
  10916. *-brtl*)
  10917. aix_use_runtimelinking=yes
  10918. break
  10919. ;;
  10920. esac
  10921. done
  10922. ;;
  10923. esac
  10924. exp_sym_flag='-bexport'
  10925. no_entry_flag='-bnoentry'
  10926. fi
  10927. # When large executables or shared objects are built, AIX ld can
  10928. # have problems creating the table of contents. If linking a library
  10929. # or program results in "error TOC overflow" add -mminimal-toc to
  10930. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10931. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10932. archive_cmds_CXX=''
  10933. hardcode_direct_CXX=yes
  10934. hardcode_direct_absolute_CXX=yes
  10935. hardcode_libdir_separator_CXX=':'
  10936. link_all_deplibs_CXX=yes
  10937. file_list_spec_CXX='${wl}-f,'
  10938. if test "$GXX" = yes; then
  10939. case $host_os in aix4.[012]|aix4.[012].*)
  10940. # We only want to do this on AIX 4.2 and lower, the check
  10941. # below for broken collect2 doesn't work under 4.3+
  10942. collect2name=`${CC} -print-prog-name=collect2`
  10943. if test -f "$collect2name" &&
  10944. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10945. then
  10946. # We have reworked collect2
  10947. :
  10948. else
  10949. # We have old collect2
  10950. hardcode_direct_CXX=unsupported
  10951. # It fails to find uninstalled libraries when the uninstalled
  10952. # path is not listed in the libpath. Setting hardcode_minus_L
  10953. # to unsupported forces relinking
  10954. hardcode_minus_L_CXX=yes
  10955. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10956. hardcode_libdir_separator_CXX=
  10957. fi
  10958. esac
  10959. shared_flag='-shared'
  10960. if test "$aix_use_runtimelinking" = yes; then
  10961. shared_flag="$shared_flag "'${wl}-G'
  10962. fi
  10963. else
  10964. # not using gcc
  10965. if test "$host_cpu" = ia64; then
  10966. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10967. # chokes on -Wl,-G. The following line is correct:
  10968. shared_flag='-G'
  10969. else
  10970. if test "$aix_use_runtimelinking" = yes; then
  10971. shared_flag='${wl}-G'
  10972. else
  10973. shared_flag='${wl}-bM:SRE'
  10974. fi
  10975. fi
  10976. fi
  10977. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10978. # It seems that -bexpall does not export symbols beginning with
  10979. # underscore (_), so it is better to generate a list of symbols to
  10980. # export.
  10981. always_export_symbols_CXX=yes
  10982. if test "$aix_use_runtimelinking" = yes; then
  10983. # Warning - without using the other runtime loading flags (-brtl),
  10984. # -berok will link without error, but may produce a broken library.
  10985. allow_undefined_flag_CXX='-berok'
  10986. # Determine the default libpath from the value encoded in an empty
  10987. # executable.
  10988. if test "${lt_cv_aix_libpath+set}" = set; then
  10989. aix_libpath=$lt_cv_aix_libpath
  10990. else
  10991. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10992. $as_echo_n "(cached) " >&6
  10993. else
  10994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10995. /* end confdefs.h. */
  10996. int
  10997. main ()
  10998. {
  10999. ;
  11000. return 0;
  11001. }
  11002. _ACEOF
  11003. if ac_fn_cxx_try_link "$LINENO"; then :
  11004. lt_aix_libpath_sed='
  11005. /Import File Strings/,/^$/ {
  11006. /^0/ {
  11007. s/^0 *\([^ ]*\) *$/\1/
  11008. p
  11009. }
  11010. }'
  11011. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11012. # Check for a 64-bit object if we didn't find anything.
  11013. if test -z "$lt_cv_aix_libpath__CXX"; then
  11014. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11015. fi
  11016. fi
  11017. rm -f core conftest.err conftest.$ac_objext \
  11018. conftest$ac_exeext conftest.$ac_ext
  11019. if test -z "$lt_cv_aix_libpath__CXX"; then
  11020. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11021. fi
  11022. fi
  11023. aix_libpath=$lt_cv_aix_libpath__CXX
  11024. fi
  11025. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11026. 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"
  11027. else
  11028. if test "$host_cpu" = ia64; then
  11029. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11030. allow_undefined_flag_CXX="-z nodefs"
  11031. 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"
  11032. else
  11033. # Determine the default libpath from the value encoded in an
  11034. # empty executable.
  11035. if test "${lt_cv_aix_libpath+set}" = set; then
  11036. aix_libpath=$lt_cv_aix_libpath
  11037. else
  11038. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11039. $as_echo_n "(cached) " >&6
  11040. else
  11041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11042. /* end confdefs.h. */
  11043. int
  11044. main ()
  11045. {
  11046. ;
  11047. return 0;
  11048. }
  11049. _ACEOF
  11050. if ac_fn_cxx_try_link "$LINENO"; then :
  11051. lt_aix_libpath_sed='
  11052. /Import File Strings/,/^$/ {
  11053. /^0/ {
  11054. s/^0 *\([^ ]*\) *$/\1/
  11055. p
  11056. }
  11057. }'
  11058. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11059. # Check for a 64-bit object if we didn't find anything.
  11060. if test -z "$lt_cv_aix_libpath__CXX"; then
  11061. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11062. fi
  11063. fi
  11064. rm -f core conftest.err conftest.$ac_objext \
  11065. conftest$ac_exeext conftest.$ac_ext
  11066. if test -z "$lt_cv_aix_libpath__CXX"; then
  11067. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11068. fi
  11069. fi
  11070. aix_libpath=$lt_cv_aix_libpath__CXX
  11071. fi
  11072. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11073. # Warning - without using the other run time loading flags,
  11074. # -berok will link without error, but may produce a broken library.
  11075. no_undefined_flag_CXX=' ${wl}-bernotok'
  11076. allow_undefined_flag_CXX=' ${wl}-berok'
  11077. if test "$with_gnu_ld" = yes; then
  11078. # We only use this code for GNU lds that support --whole-archive.
  11079. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11080. else
  11081. # Exported symbols can be pulled into shared objects from archives
  11082. whole_archive_flag_spec_CXX='$convenience'
  11083. fi
  11084. archive_cmds_need_lc_CXX=yes
  11085. # This is similar to how AIX traditionally builds its shared
  11086. # libraries.
  11087. 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'
  11088. fi
  11089. fi
  11090. ;;
  11091. beos*)
  11092. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11093. allow_undefined_flag_CXX=unsupported
  11094. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11095. # support --undefined. This deserves some investigation. FIXME
  11096. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11097. else
  11098. ld_shlibs_CXX=no
  11099. fi
  11100. ;;
  11101. chorus*)
  11102. case $cc_basename in
  11103. *)
  11104. # FIXME: insert proper C++ library support
  11105. ld_shlibs_CXX=no
  11106. ;;
  11107. esac
  11108. ;;
  11109. cygwin* | mingw* | pw32* | cegcc*)
  11110. case $GXX,$cc_basename in
  11111. ,cl* | no,cl*)
  11112. # Native MSVC
  11113. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11114. # no search path for DLLs.
  11115. hardcode_libdir_flag_spec_CXX=' '
  11116. allow_undefined_flag_CXX=unsupported
  11117. always_export_symbols_CXX=yes
  11118. file_list_spec_CXX='@'
  11119. # Tell ltmain to make .lib files, not .a files.
  11120. libext=lib
  11121. # Tell ltmain to make .dll files, not .so files.
  11122. shrext_cmds=".dll"
  11123. # FIXME: Setting linknames here is a bad hack.
  11124. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11125. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11126. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11127. else
  11128. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11129. fi~
  11130. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11131. linknames='
  11132. # The linker will not automatically build a static lib if we build a DLL.
  11133. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11134. enable_shared_with_static_runtimes_CXX=yes
  11135. # Don't use ranlib
  11136. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11137. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11138. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11139. case $lt_outputfile in
  11140. *.exe|*.EXE) ;;
  11141. *)
  11142. lt_outputfile="$lt_outputfile.exe"
  11143. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11144. ;;
  11145. esac~
  11146. func_to_tool_file "$lt_outputfile"~
  11147. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11148. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11149. $RM "$lt_outputfile.manifest";
  11150. fi'
  11151. ;;
  11152. *)
  11153. # g++
  11154. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11155. # as there is no search path for DLLs.
  11156. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11157. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11158. allow_undefined_flag_CXX=unsupported
  11159. always_export_symbols_CXX=no
  11160. enable_shared_with_static_runtimes_CXX=yes
  11161. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11162. 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'
  11163. # If the export-symbols file already is a .def file (1st line
  11164. # is EXPORTS), use it as is; otherwise, prepend...
  11165. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11166. cp $export_symbols $output_objdir/$soname.def;
  11167. else
  11168. echo EXPORTS > $output_objdir/$soname.def;
  11169. cat $export_symbols >> $output_objdir/$soname.def;
  11170. fi~
  11171. $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'
  11172. else
  11173. ld_shlibs_CXX=no
  11174. fi
  11175. ;;
  11176. esac
  11177. ;;
  11178. darwin* | rhapsody*)
  11179. archive_cmds_need_lc_CXX=no
  11180. hardcode_direct_CXX=no
  11181. hardcode_automatic_CXX=yes
  11182. hardcode_shlibpath_var_CXX=unsupported
  11183. if test "$lt_cv_ld_force_load" = "yes"; then
  11184. 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\"`'
  11185. else
  11186. whole_archive_flag_spec_CXX=''
  11187. fi
  11188. link_all_deplibs_CXX=yes
  11189. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11190. case $cc_basename in
  11191. ifort*) _lt_dar_can_shared=yes ;;
  11192. *) _lt_dar_can_shared=$GCC ;;
  11193. esac
  11194. if test "$_lt_dar_can_shared" = "yes"; then
  11195. output_verbose_link_cmd=func_echo_all
  11196. 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}"
  11197. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11198. 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}"
  11199. 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}"
  11200. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11201. 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}"
  11202. 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}"
  11203. fi
  11204. else
  11205. ld_shlibs_CXX=no
  11206. fi
  11207. ;;
  11208. dgux*)
  11209. case $cc_basename in
  11210. ec++*)
  11211. # FIXME: insert proper C++ library support
  11212. ld_shlibs_CXX=no
  11213. ;;
  11214. ghcx*)
  11215. # Green Hills C++ Compiler
  11216. # FIXME: insert proper C++ library support
  11217. ld_shlibs_CXX=no
  11218. ;;
  11219. *)
  11220. # FIXME: insert proper C++ library support
  11221. ld_shlibs_CXX=no
  11222. ;;
  11223. esac
  11224. ;;
  11225. freebsd2.*)
  11226. # C++ shared libraries reported to be fairly broken before
  11227. # switch to ELF
  11228. ld_shlibs_CXX=no
  11229. ;;
  11230. freebsd-elf*)
  11231. archive_cmds_need_lc_CXX=no
  11232. ;;
  11233. freebsd* | dragonfly*)
  11234. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11235. # conventions
  11236. ld_shlibs_CXX=yes
  11237. ;;
  11238. gnu*)
  11239. ;;
  11240. haiku*)
  11241. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11242. link_all_deplibs_CXX=yes
  11243. ;;
  11244. hpux9*)
  11245. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11246. hardcode_libdir_separator_CXX=:
  11247. export_dynamic_flag_spec_CXX='${wl}-E'
  11248. hardcode_direct_CXX=yes
  11249. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11250. # but as the default
  11251. # location of the library.
  11252. case $cc_basename in
  11253. CC*)
  11254. # FIXME: insert proper C++ library support
  11255. ld_shlibs_CXX=no
  11256. ;;
  11257. aCC*)
  11258. 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'
  11259. # Commands to make compiler produce verbose output that lists
  11260. # what "hidden" libraries, object files and flags are used when
  11261. # linking a shared library.
  11262. #
  11263. # There doesn't appear to be a way to prevent this compiler from
  11264. # explicitly linking system object files so we need to strip them
  11265. # from the output so that they don't get included in the library
  11266. # dependencies.
  11267. 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"'
  11268. ;;
  11269. *)
  11270. if test "$GXX" = yes; then
  11271. 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'
  11272. else
  11273. # FIXME: insert proper C++ library support
  11274. ld_shlibs_CXX=no
  11275. fi
  11276. ;;
  11277. esac
  11278. ;;
  11279. hpux10*|hpux11*)
  11280. if test $with_gnu_ld = no; then
  11281. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11282. hardcode_libdir_separator_CXX=:
  11283. case $host_cpu in
  11284. hppa*64*|ia64*)
  11285. ;;
  11286. *)
  11287. export_dynamic_flag_spec_CXX='${wl}-E'
  11288. ;;
  11289. esac
  11290. fi
  11291. case $host_cpu in
  11292. hppa*64*|ia64*)
  11293. hardcode_direct_CXX=no
  11294. hardcode_shlibpath_var_CXX=no
  11295. ;;
  11296. *)
  11297. hardcode_direct_CXX=yes
  11298. hardcode_direct_absolute_CXX=yes
  11299. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11300. # but as the default
  11301. # location of the library.
  11302. ;;
  11303. esac
  11304. case $cc_basename in
  11305. CC*)
  11306. # FIXME: insert proper C++ library support
  11307. ld_shlibs_CXX=no
  11308. ;;
  11309. aCC*)
  11310. case $host_cpu in
  11311. hppa*64*)
  11312. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11313. ;;
  11314. ia64*)
  11315. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11316. ;;
  11317. *)
  11318. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11319. ;;
  11320. esac
  11321. # Commands to make compiler produce verbose output that lists
  11322. # what "hidden" libraries, object files and flags are used when
  11323. # linking a shared library.
  11324. #
  11325. # There doesn't appear to be a way to prevent this compiler from
  11326. # explicitly linking system object files so we need to strip them
  11327. # from the output so that they don't get included in the library
  11328. # dependencies.
  11329. 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"'
  11330. ;;
  11331. *)
  11332. if test "$GXX" = yes; then
  11333. if test $with_gnu_ld = no; then
  11334. case $host_cpu in
  11335. hppa*64*)
  11336. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11337. ;;
  11338. ia64*)
  11339. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11340. ;;
  11341. *)
  11342. 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'
  11343. ;;
  11344. esac
  11345. fi
  11346. else
  11347. # FIXME: insert proper C++ library support
  11348. ld_shlibs_CXX=no
  11349. fi
  11350. ;;
  11351. esac
  11352. ;;
  11353. interix[3-9]*)
  11354. hardcode_direct_CXX=no
  11355. hardcode_shlibpath_var_CXX=no
  11356. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11357. export_dynamic_flag_spec_CXX='${wl}-E'
  11358. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11359. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11360. # default) and relocated if they conflict, which is a slow very memory
  11361. # consuming and fragmenting process. To avoid this, we pick a random,
  11362. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11363. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11364. 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'
  11365. 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'
  11366. ;;
  11367. irix5* | irix6*)
  11368. case $cc_basename in
  11369. CC*)
  11370. # SGI C++
  11371. 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'
  11372. # Archives containing C++ object files must be created using
  11373. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11374. # necessary to make sure instantiated templates are included
  11375. # in the archive.
  11376. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11377. ;;
  11378. *)
  11379. if test "$GXX" = yes; then
  11380. if test "$with_gnu_ld" = no; then
  11381. 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'
  11382. else
  11383. 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'
  11384. fi
  11385. fi
  11386. link_all_deplibs_CXX=yes
  11387. ;;
  11388. esac
  11389. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11390. hardcode_libdir_separator_CXX=:
  11391. inherit_rpath_CXX=yes
  11392. ;;
  11393. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11394. case $cc_basename in
  11395. KCC*)
  11396. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11397. # KCC will only create a shared library if the output file
  11398. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11399. # to its proper name (with version) after linking.
  11400. 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'
  11401. 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'
  11402. # Commands to make compiler produce verbose output that lists
  11403. # what "hidden" libraries, object files and flags are used when
  11404. # linking a shared library.
  11405. #
  11406. # There doesn't appear to be a way to prevent this compiler from
  11407. # explicitly linking system object files so we need to strip them
  11408. # from the output so that they don't get included in the library
  11409. # dependencies.
  11410. 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"'
  11411. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11412. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11413. # Archives containing C++ object files must be created using
  11414. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11415. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11416. ;;
  11417. icpc* | ecpc* )
  11418. # Intel C++
  11419. with_gnu_ld=yes
  11420. # version 8.0 and above of icpc choke on multiply defined symbols
  11421. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11422. # earlier do not add the objects themselves.
  11423. case `$CC -V 2>&1` in
  11424. *"Version 7."*)
  11425. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11426. 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'
  11427. ;;
  11428. *) # Version 8.0 or newer
  11429. tmp_idyn=
  11430. case $host_cpu in
  11431. ia64*) tmp_idyn=' -i_dynamic';;
  11432. esac
  11433. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11434. 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'
  11435. ;;
  11436. esac
  11437. archive_cmds_need_lc_CXX=no
  11438. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11439. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11440. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11441. ;;
  11442. pgCC* | pgcpp*)
  11443. # Portland Group C++ compiler
  11444. case `$CC -V` in
  11445. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11446. prelink_cmds_CXX='tpldir=Template.dir~
  11447. rm -rf $tpldir~
  11448. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11449. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11450. old_archive_cmds_CXX='tpldir=Template.dir~
  11451. rm -rf $tpldir~
  11452. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11453. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11454. $RANLIB $oldlib'
  11455. archive_cmds_CXX='tpldir=Template.dir~
  11456. rm -rf $tpldir~
  11457. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11458. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11459. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11460. rm -rf $tpldir~
  11461. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11462. $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'
  11463. ;;
  11464. *) # Version 6 and above use weak symbols
  11465. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11466. 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'
  11467. ;;
  11468. esac
  11469. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11470. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11471. 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'
  11472. ;;
  11473. cxx*)
  11474. # Compaq C++
  11475. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11476. 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'
  11477. runpath_var=LD_RUN_PATH
  11478. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11479. hardcode_libdir_separator_CXX=:
  11480. # Commands to make compiler produce verbose output that lists
  11481. # what "hidden" libraries, object files and flags are used when
  11482. # linking a shared library.
  11483. #
  11484. # There doesn't appear to be a way to prevent this compiler from
  11485. # explicitly linking system object files so we need to strip them
  11486. # from the output so that they don't get included in the library
  11487. # dependencies.
  11488. 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'
  11489. ;;
  11490. xl* | mpixl* | bgxl*)
  11491. # IBM XL 8.0 on PPC, with GNU ld
  11492. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11493. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11494. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11495. if test "x$supports_anon_versioning" = xyes; then
  11496. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11497. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11498. echo "local: *; };" >> $output_objdir/$libname.ver~
  11499. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11500. fi
  11501. ;;
  11502. *)
  11503. case `$CC -V 2>&1 | sed 5q` in
  11504. *Sun\ C*)
  11505. # Sun C++ 5.9
  11506. no_undefined_flag_CXX=' -zdefs'
  11507. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11508. 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'
  11509. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11510. 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'
  11511. compiler_needs_object_CXX=yes
  11512. # Not sure whether something based on
  11513. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11514. # would be better.
  11515. output_verbose_link_cmd='func_echo_all'
  11516. # Archives containing C++ object files must be created using
  11517. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11518. # necessary to make sure instantiated templates are included
  11519. # in the archive.
  11520. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11521. ;;
  11522. esac
  11523. ;;
  11524. esac
  11525. ;;
  11526. lynxos*)
  11527. # FIXME: insert proper C++ library support
  11528. ld_shlibs_CXX=no
  11529. ;;
  11530. m88k*)
  11531. # FIXME: insert proper C++ library support
  11532. ld_shlibs_CXX=no
  11533. ;;
  11534. mvs*)
  11535. case $cc_basename in
  11536. cxx*)
  11537. # FIXME: insert proper C++ library support
  11538. ld_shlibs_CXX=no
  11539. ;;
  11540. *)
  11541. # FIXME: insert proper C++ library support
  11542. ld_shlibs_CXX=no
  11543. ;;
  11544. esac
  11545. ;;
  11546. netbsd*)
  11547. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11548. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11549. wlarc=
  11550. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11551. hardcode_direct_CXX=yes
  11552. hardcode_shlibpath_var_CXX=no
  11553. fi
  11554. # Workaround some broken pre-1.5 toolchains
  11555. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11556. ;;
  11557. *nto* | *qnx*)
  11558. ld_shlibs_CXX=yes
  11559. ;;
  11560. openbsd2*)
  11561. # C++ shared libraries are fairly broken
  11562. ld_shlibs_CXX=no
  11563. ;;
  11564. openbsd*)
  11565. if test -f /usr/libexec/ld.so; then
  11566. hardcode_direct_CXX=yes
  11567. hardcode_shlibpath_var_CXX=no
  11568. hardcode_direct_absolute_CXX=yes
  11569. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11570. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11571. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11572. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11573. export_dynamic_flag_spec_CXX='${wl}-E'
  11574. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11575. fi
  11576. output_verbose_link_cmd=func_echo_all
  11577. else
  11578. ld_shlibs_CXX=no
  11579. fi
  11580. ;;
  11581. osf3* | osf4* | osf5*)
  11582. case $cc_basename in
  11583. KCC*)
  11584. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11585. # KCC will only create a shared library if the output file
  11586. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11587. # to its proper name (with version) after linking.
  11588. 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'
  11589. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11590. hardcode_libdir_separator_CXX=:
  11591. # Archives containing C++ object files must be created using
  11592. # the KAI C++ compiler.
  11593. case $host in
  11594. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11595. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11596. esac
  11597. ;;
  11598. RCC*)
  11599. # Rational C++ 2.4.1
  11600. # FIXME: insert proper C++ library support
  11601. ld_shlibs_CXX=no
  11602. ;;
  11603. cxx*)
  11604. case $host in
  11605. osf3*)
  11606. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11607. 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'
  11608. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11609. ;;
  11610. *)
  11611. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11612. 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'
  11613. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11614. echo "-hidden">> $lib.exp~
  11615. $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~
  11616. $RM $lib.exp'
  11617. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11618. ;;
  11619. esac
  11620. hardcode_libdir_separator_CXX=:
  11621. # Commands to make compiler produce verbose output that lists
  11622. # what "hidden" libraries, object files and flags are used when
  11623. # linking a shared library.
  11624. #
  11625. # There doesn't appear to be a way to prevent this compiler from
  11626. # explicitly linking system object files so we need to strip them
  11627. # from the output so that they don't get included in the library
  11628. # dependencies.
  11629. 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"'
  11630. ;;
  11631. *)
  11632. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11633. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11634. case $host in
  11635. osf3*)
  11636. 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'
  11637. ;;
  11638. *)
  11639. 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'
  11640. ;;
  11641. esac
  11642. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11643. hardcode_libdir_separator_CXX=:
  11644. # Commands to make compiler produce verbose output that lists
  11645. # what "hidden" libraries, object files and flags are used when
  11646. # linking a shared library.
  11647. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11648. else
  11649. # FIXME: insert proper C++ library support
  11650. ld_shlibs_CXX=no
  11651. fi
  11652. ;;
  11653. esac
  11654. ;;
  11655. psos*)
  11656. # FIXME: insert proper C++ library support
  11657. ld_shlibs_CXX=no
  11658. ;;
  11659. sunos4*)
  11660. case $cc_basename in
  11661. CC*)
  11662. # Sun C++ 4.x
  11663. # FIXME: insert proper C++ library support
  11664. ld_shlibs_CXX=no
  11665. ;;
  11666. lcc*)
  11667. # Lucid
  11668. # FIXME: insert proper C++ library support
  11669. ld_shlibs_CXX=no
  11670. ;;
  11671. *)
  11672. # FIXME: insert proper C++ library support
  11673. ld_shlibs_CXX=no
  11674. ;;
  11675. esac
  11676. ;;
  11677. solaris*)
  11678. case $cc_basename in
  11679. CC* | sunCC*)
  11680. # Sun C++ 4.2, 5.x and Centerline C++
  11681. archive_cmds_need_lc_CXX=yes
  11682. no_undefined_flag_CXX=' -zdefs'
  11683. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11684. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11685. $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'
  11686. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11687. hardcode_shlibpath_var_CXX=no
  11688. case $host_os in
  11689. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11690. *)
  11691. # The compiler driver will combine and reorder linker options,
  11692. # but understands `-z linker_flag'.
  11693. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11694. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11695. ;;
  11696. esac
  11697. link_all_deplibs_CXX=yes
  11698. output_verbose_link_cmd='func_echo_all'
  11699. # Archives containing C++ object files must be created using
  11700. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11701. # necessary to make sure instantiated templates are included
  11702. # in the archive.
  11703. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11704. ;;
  11705. gcx*)
  11706. # Green Hills C++ Compiler
  11707. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11708. # The C++ compiler must be used to create the archive.
  11709. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11710. ;;
  11711. *)
  11712. # GNU C++ compiler with Solaris linker
  11713. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11714. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11715. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11716. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11717. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11718. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11719. # Commands to make compiler produce verbose output that lists
  11720. # what "hidden" libraries, object files and flags are used when
  11721. # linking a shared library.
  11722. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11723. else
  11724. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11725. # platform.
  11726. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11727. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11728. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11729. # Commands to make compiler produce verbose output that lists
  11730. # what "hidden" libraries, object files and flags are used when
  11731. # linking a shared library.
  11732. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11733. fi
  11734. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11735. case $host_os in
  11736. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11737. *)
  11738. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11739. ;;
  11740. esac
  11741. fi
  11742. ;;
  11743. esac
  11744. ;;
  11745. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11746. no_undefined_flag_CXX='${wl}-z,text'
  11747. archive_cmds_need_lc_CXX=no
  11748. hardcode_shlibpath_var_CXX=no
  11749. runpath_var='LD_RUN_PATH'
  11750. case $cc_basename in
  11751. CC*)
  11752. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11753. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11754. ;;
  11755. *)
  11756. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11757. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11758. ;;
  11759. esac
  11760. ;;
  11761. sysv5* | sco3.2v5* | sco5v6*)
  11762. # Note: We can NOT use -z defs as we might desire, because we do not
  11763. # link with -lc, and that would cause any symbols used from libc to
  11764. # always be unresolved, which means just about no library would
  11765. # ever link correctly. If we're not using GNU ld we use -z text
  11766. # though, which does catch some bad symbols but isn't as heavy-handed
  11767. # as -z defs.
  11768. no_undefined_flag_CXX='${wl}-z,text'
  11769. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11770. archive_cmds_need_lc_CXX=no
  11771. hardcode_shlibpath_var_CXX=no
  11772. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11773. hardcode_libdir_separator_CXX=':'
  11774. link_all_deplibs_CXX=yes
  11775. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11776. runpath_var='LD_RUN_PATH'
  11777. case $cc_basename in
  11778. CC*)
  11779. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11780. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11781. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11782. '"$old_archive_cmds_CXX"
  11783. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11784. '"$reload_cmds_CXX"
  11785. ;;
  11786. *)
  11787. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11788. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11789. ;;
  11790. esac
  11791. ;;
  11792. tandem*)
  11793. case $cc_basename in
  11794. NCC*)
  11795. # NonStop-UX NCC 3.20
  11796. # FIXME: insert proper C++ library support
  11797. ld_shlibs_CXX=no
  11798. ;;
  11799. *)
  11800. # FIXME: insert proper C++ library support
  11801. ld_shlibs_CXX=no
  11802. ;;
  11803. esac
  11804. ;;
  11805. vxworks*)
  11806. # FIXME: insert proper C++ library support
  11807. ld_shlibs_CXX=no
  11808. ;;
  11809. *)
  11810. # FIXME: insert proper C++ library support
  11811. ld_shlibs_CXX=no
  11812. ;;
  11813. esac
  11814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11815. $as_echo "$ld_shlibs_CXX" >&6; }
  11816. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11817. GCC_CXX="$GXX"
  11818. LD_CXX="$LD"
  11819. ## CAVEAT EMPTOR:
  11820. ## There is no encapsulation within the following macros, do not change
  11821. ## the running order or otherwise move them around unless you know exactly
  11822. ## what you are doing...
  11823. # Dependencies to place before and after the object being linked:
  11824. predep_objects_CXX=
  11825. postdep_objects_CXX=
  11826. predeps_CXX=
  11827. postdeps_CXX=
  11828. compiler_lib_search_path_CXX=
  11829. cat > conftest.$ac_ext <<_LT_EOF
  11830. class Foo
  11831. {
  11832. public:
  11833. Foo (void) { a = 0; }
  11834. private:
  11835. int a;
  11836. };
  11837. _LT_EOF
  11838. _lt_libdeps_save_CFLAGS=$CFLAGS
  11839. case "$CC $CFLAGS " in #(
  11840. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11841. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11842. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11843. esac
  11844. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11845. (eval $ac_compile) 2>&5
  11846. ac_status=$?
  11847. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11848. test $ac_status = 0; }; then
  11849. # Parse the compiler output and extract the necessary
  11850. # objects, libraries and library flags.
  11851. # Sentinel used to keep track of whether or not we are before
  11852. # the conftest object file.
  11853. pre_test_object_deps_done=no
  11854. for p in `eval "$output_verbose_link_cmd"`; do
  11855. case ${prev}${p} in
  11856. -L* | -R* | -l*)
  11857. # Some compilers place space between "-{L,R}" and the path.
  11858. # Remove the space.
  11859. if test $p = "-L" ||
  11860. test $p = "-R"; then
  11861. prev=$p
  11862. continue
  11863. fi
  11864. # Expand the sysroot to ease extracting the directories later.
  11865. if test -z "$prev"; then
  11866. case $p in
  11867. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11868. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11869. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11870. esac
  11871. fi
  11872. case $p in
  11873. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11874. esac
  11875. if test "$pre_test_object_deps_done" = no; then
  11876. case ${prev} in
  11877. -L | -R)
  11878. # Internal compiler library paths should come after those
  11879. # provided the user. The postdeps already come after the
  11880. # user supplied libs so there is no need to process them.
  11881. if test -z "$compiler_lib_search_path_CXX"; then
  11882. compiler_lib_search_path_CXX="${prev}${p}"
  11883. else
  11884. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11885. fi
  11886. ;;
  11887. # The "-l" case would never come before the object being
  11888. # linked, so don't bother handling this case.
  11889. esac
  11890. else
  11891. if test -z "$postdeps_CXX"; then
  11892. postdeps_CXX="${prev}${p}"
  11893. else
  11894. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11895. fi
  11896. fi
  11897. prev=
  11898. ;;
  11899. *.lto.$objext) ;; # Ignore GCC LTO objects
  11900. *.$objext)
  11901. # This assumes that the test object file only shows up
  11902. # once in the compiler output.
  11903. if test "$p" = "conftest.$objext"; then
  11904. pre_test_object_deps_done=yes
  11905. continue
  11906. fi
  11907. if test "$pre_test_object_deps_done" = no; then
  11908. if test -z "$predep_objects_CXX"; then
  11909. predep_objects_CXX="$p"
  11910. else
  11911. predep_objects_CXX="$predep_objects_CXX $p"
  11912. fi
  11913. else
  11914. if test -z "$postdep_objects_CXX"; then
  11915. postdep_objects_CXX="$p"
  11916. else
  11917. postdep_objects_CXX="$postdep_objects_CXX $p"
  11918. fi
  11919. fi
  11920. ;;
  11921. *) ;; # Ignore the rest.
  11922. esac
  11923. done
  11924. # Clean up.
  11925. rm -f a.out a.exe
  11926. else
  11927. echo "libtool.m4: error: problem compiling CXX test program"
  11928. fi
  11929. $RM -f confest.$objext
  11930. CFLAGS=$_lt_libdeps_save_CFLAGS
  11931. # PORTME: override above test on systems where it is broken
  11932. case $host_os in
  11933. interix[3-9]*)
  11934. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11935. # hack all around it, let's just trust "g++" to DTRT.
  11936. predep_objects_CXX=
  11937. postdep_objects_CXX=
  11938. postdeps_CXX=
  11939. ;;
  11940. linux*)
  11941. case `$CC -V 2>&1 | sed 5q` in
  11942. *Sun\ C*)
  11943. # Sun C++ 5.9
  11944. # The more standards-conforming stlport4 library is
  11945. # incompatible with the Cstd library. Avoid specifying
  11946. # it if it's in CXXFLAGS. Ignore libCrun as
  11947. # -library=stlport4 depends on it.
  11948. case " $CXX $CXXFLAGS " in
  11949. *" -library=stlport4 "*)
  11950. solaris_use_stlport4=yes
  11951. ;;
  11952. esac
  11953. if test "$solaris_use_stlport4" != yes; then
  11954. postdeps_CXX='-library=Cstd -library=Crun'
  11955. fi
  11956. ;;
  11957. esac
  11958. ;;
  11959. solaris*)
  11960. case $cc_basename in
  11961. CC* | sunCC*)
  11962. # The more standards-conforming stlport4 library is
  11963. # incompatible with the Cstd library. Avoid specifying
  11964. # it if it's in CXXFLAGS. Ignore libCrun as
  11965. # -library=stlport4 depends on it.
  11966. case " $CXX $CXXFLAGS " in
  11967. *" -library=stlport4 "*)
  11968. solaris_use_stlport4=yes
  11969. ;;
  11970. esac
  11971. # Adding this requires a known-good setup of shared libraries for
  11972. # Sun compiler versions before 5.6, else PIC objects from an old
  11973. # archive will be linked into the output, leading to subtle bugs.
  11974. if test "$solaris_use_stlport4" != yes; then
  11975. postdeps_CXX='-library=Cstd -library=Crun'
  11976. fi
  11977. ;;
  11978. esac
  11979. ;;
  11980. esac
  11981. case " $postdeps_CXX " in
  11982. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11983. esac
  11984. compiler_lib_search_dirs_CXX=
  11985. if test -n "${compiler_lib_search_path_CXX}"; then
  11986. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11987. fi
  11988. lt_prog_compiler_wl_CXX=
  11989. lt_prog_compiler_pic_CXX=
  11990. lt_prog_compiler_static_CXX=
  11991. # C++ specific cases for pic, static, wl, etc.
  11992. if test "$GXX" = yes; then
  11993. lt_prog_compiler_wl_CXX='-Wl,'
  11994. lt_prog_compiler_static_CXX='-static'
  11995. case $host_os in
  11996. aix*)
  11997. # All AIX code is PIC.
  11998. if test "$host_cpu" = ia64; then
  11999. # AIX 5 now supports IA64 processor
  12000. lt_prog_compiler_static_CXX='-Bstatic'
  12001. fi
  12002. ;;
  12003. amigaos*)
  12004. case $host_cpu in
  12005. powerpc)
  12006. # see comment about AmigaOS4 .so support
  12007. lt_prog_compiler_pic_CXX='-fPIC'
  12008. ;;
  12009. m68k)
  12010. # FIXME: we need at least 68020 code to build shared libraries, but
  12011. # adding the `-m68020' flag to GCC prevents building anything better,
  12012. # like `-m68040'.
  12013. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12014. ;;
  12015. esac
  12016. ;;
  12017. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12018. # PIC is the default for these OSes.
  12019. ;;
  12020. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12021. # This hack is so that the source file can tell whether it is being
  12022. # built for inclusion in a dll (and should export symbols for example).
  12023. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12024. # (--disable-auto-import) libraries
  12025. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12026. ;;
  12027. darwin* | rhapsody*)
  12028. # PIC is the default on this platform
  12029. # Common symbols not allowed in MH_DYLIB files
  12030. lt_prog_compiler_pic_CXX='-fno-common'
  12031. ;;
  12032. *djgpp*)
  12033. # DJGPP does not support shared libraries at all
  12034. lt_prog_compiler_pic_CXX=
  12035. ;;
  12036. haiku*)
  12037. # PIC is the default for Haiku.
  12038. # The "-static" flag exists, but is broken.
  12039. lt_prog_compiler_static_CXX=
  12040. ;;
  12041. interix[3-9]*)
  12042. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12043. # Instead, we relocate shared libraries at runtime.
  12044. ;;
  12045. sysv4*MP*)
  12046. if test -d /usr/nec; then
  12047. lt_prog_compiler_pic_CXX=-Kconform_pic
  12048. fi
  12049. ;;
  12050. hpux*)
  12051. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12052. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12053. # sets the default TLS model and affects inlining.
  12054. case $host_cpu in
  12055. hppa*64*)
  12056. ;;
  12057. *)
  12058. lt_prog_compiler_pic_CXX='-fPIC'
  12059. ;;
  12060. esac
  12061. ;;
  12062. *qnx* | *nto*)
  12063. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12064. # it will coredump.
  12065. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12066. ;;
  12067. *)
  12068. lt_prog_compiler_pic_CXX='-fPIC'
  12069. ;;
  12070. esac
  12071. else
  12072. case $host_os in
  12073. aix[4-9]*)
  12074. # All AIX code is PIC.
  12075. if test "$host_cpu" = ia64; then
  12076. # AIX 5 now supports IA64 processor
  12077. lt_prog_compiler_static_CXX='-Bstatic'
  12078. else
  12079. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12080. fi
  12081. ;;
  12082. chorus*)
  12083. case $cc_basename in
  12084. cxch68*)
  12085. # Green Hills C++ Compiler
  12086. # _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"
  12087. ;;
  12088. esac
  12089. ;;
  12090. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12091. # This hack is so that the source file can tell whether it is being
  12092. # built for inclusion in a dll (and should export symbols for example).
  12093. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12094. ;;
  12095. dgux*)
  12096. case $cc_basename in
  12097. ec++*)
  12098. lt_prog_compiler_pic_CXX='-KPIC'
  12099. ;;
  12100. ghcx*)
  12101. # Green Hills C++ Compiler
  12102. lt_prog_compiler_pic_CXX='-pic'
  12103. ;;
  12104. *)
  12105. ;;
  12106. esac
  12107. ;;
  12108. freebsd* | dragonfly*)
  12109. # FreeBSD uses GNU C++
  12110. ;;
  12111. hpux9* | hpux10* | hpux11*)
  12112. case $cc_basename in
  12113. CC*)
  12114. lt_prog_compiler_wl_CXX='-Wl,'
  12115. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12116. if test "$host_cpu" != ia64; then
  12117. lt_prog_compiler_pic_CXX='+Z'
  12118. fi
  12119. ;;
  12120. aCC*)
  12121. lt_prog_compiler_wl_CXX='-Wl,'
  12122. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12123. case $host_cpu in
  12124. hppa*64*|ia64*)
  12125. # +Z the default
  12126. ;;
  12127. *)
  12128. lt_prog_compiler_pic_CXX='+Z'
  12129. ;;
  12130. esac
  12131. ;;
  12132. *)
  12133. ;;
  12134. esac
  12135. ;;
  12136. interix*)
  12137. # This is c89, which is MS Visual C++ (no shared libs)
  12138. # Anyone wants to do a port?
  12139. ;;
  12140. irix5* | irix6* | nonstopux*)
  12141. case $cc_basename in
  12142. CC*)
  12143. lt_prog_compiler_wl_CXX='-Wl,'
  12144. lt_prog_compiler_static_CXX='-non_shared'
  12145. # CC pic flag -KPIC is the default.
  12146. ;;
  12147. *)
  12148. ;;
  12149. esac
  12150. ;;
  12151. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12152. case $cc_basename in
  12153. KCC*)
  12154. # KAI C++ Compiler
  12155. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12156. lt_prog_compiler_pic_CXX='-fPIC'
  12157. ;;
  12158. ecpc* )
  12159. # old Intel C++ for x86_64 which still supported -KPIC.
  12160. lt_prog_compiler_wl_CXX='-Wl,'
  12161. lt_prog_compiler_pic_CXX='-KPIC'
  12162. lt_prog_compiler_static_CXX='-static'
  12163. ;;
  12164. icpc* )
  12165. # Intel C++, used to be incompatible with GCC.
  12166. # ICC 10 doesn't accept -KPIC any more.
  12167. lt_prog_compiler_wl_CXX='-Wl,'
  12168. lt_prog_compiler_pic_CXX='-fPIC'
  12169. lt_prog_compiler_static_CXX='-static'
  12170. ;;
  12171. pgCC* | pgcpp*)
  12172. # Portland Group C++ compiler
  12173. lt_prog_compiler_wl_CXX='-Wl,'
  12174. lt_prog_compiler_pic_CXX='-fpic'
  12175. lt_prog_compiler_static_CXX='-Bstatic'
  12176. ;;
  12177. cxx*)
  12178. # Compaq C++
  12179. # Make sure the PIC flag is empty. It appears that all Alpha
  12180. # Linux and Compaq Tru64 Unix objects are PIC.
  12181. lt_prog_compiler_pic_CXX=
  12182. lt_prog_compiler_static_CXX='-non_shared'
  12183. ;;
  12184. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12185. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12186. lt_prog_compiler_wl_CXX='-Wl,'
  12187. lt_prog_compiler_pic_CXX='-qpic'
  12188. lt_prog_compiler_static_CXX='-qstaticlink'
  12189. ;;
  12190. *)
  12191. case `$CC -V 2>&1 | sed 5q` in
  12192. *Sun\ C*)
  12193. # Sun C++ 5.9
  12194. lt_prog_compiler_pic_CXX='-KPIC'
  12195. lt_prog_compiler_static_CXX='-Bstatic'
  12196. lt_prog_compiler_wl_CXX='-Qoption ld '
  12197. ;;
  12198. esac
  12199. ;;
  12200. esac
  12201. ;;
  12202. lynxos*)
  12203. ;;
  12204. m88k*)
  12205. ;;
  12206. mvs*)
  12207. case $cc_basename in
  12208. cxx*)
  12209. lt_prog_compiler_pic_CXX='-W c,exportall'
  12210. ;;
  12211. *)
  12212. ;;
  12213. esac
  12214. ;;
  12215. netbsd*)
  12216. ;;
  12217. *qnx* | *nto*)
  12218. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12219. # it will coredump.
  12220. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12221. ;;
  12222. osf3* | osf4* | osf5*)
  12223. case $cc_basename in
  12224. KCC*)
  12225. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12226. ;;
  12227. RCC*)
  12228. # Rational C++ 2.4.1
  12229. lt_prog_compiler_pic_CXX='-pic'
  12230. ;;
  12231. cxx*)
  12232. # Digital/Compaq C++
  12233. lt_prog_compiler_wl_CXX='-Wl,'
  12234. # Make sure the PIC flag is empty. It appears that all Alpha
  12235. # Linux and Compaq Tru64 Unix objects are PIC.
  12236. lt_prog_compiler_pic_CXX=
  12237. lt_prog_compiler_static_CXX='-non_shared'
  12238. ;;
  12239. *)
  12240. ;;
  12241. esac
  12242. ;;
  12243. psos*)
  12244. ;;
  12245. solaris*)
  12246. case $cc_basename in
  12247. CC* | sunCC*)
  12248. # Sun C++ 4.2, 5.x and Centerline C++
  12249. lt_prog_compiler_pic_CXX='-KPIC'
  12250. lt_prog_compiler_static_CXX='-Bstatic'
  12251. lt_prog_compiler_wl_CXX='-Qoption ld '
  12252. ;;
  12253. gcx*)
  12254. # Green Hills C++ Compiler
  12255. lt_prog_compiler_pic_CXX='-PIC'
  12256. ;;
  12257. *)
  12258. ;;
  12259. esac
  12260. ;;
  12261. sunos4*)
  12262. case $cc_basename in
  12263. CC*)
  12264. # Sun C++ 4.x
  12265. lt_prog_compiler_pic_CXX='-pic'
  12266. lt_prog_compiler_static_CXX='-Bstatic'
  12267. ;;
  12268. lcc*)
  12269. # Lucid
  12270. lt_prog_compiler_pic_CXX='-pic'
  12271. ;;
  12272. *)
  12273. ;;
  12274. esac
  12275. ;;
  12276. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12277. case $cc_basename in
  12278. CC*)
  12279. lt_prog_compiler_wl_CXX='-Wl,'
  12280. lt_prog_compiler_pic_CXX='-KPIC'
  12281. lt_prog_compiler_static_CXX='-Bstatic'
  12282. ;;
  12283. esac
  12284. ;;
  12285. tandem*)
  12286. case $cc_basename in
  12287. NCC*)
  12288. # NonStop-UX NCC 3.20
  12289. lt_prog_compiler_pic_CXX='-KPIC'
  12290. ;;
  12291. *)
  12292. ;;
  12293. esac
  12294. ;;
  12295. vxworks*)
  12296. ;;
  12297. *)
  12298. lt_prog_compiler_can_build_shared_CXX=no
  12299. ;;
  12300. esac
  12301. fi
  12302. case $host_os in
  12303. # For platforms which do not support PIC, -DPIC is meaningless:
  12304. *djgpp*)
  12305. lt_prog_compiler_pic_CXX=
  12306. ;;
  12307. *)
  12308. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12309. ;;
  12310. esac
  12311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12312. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12313. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12314. $as_echo_n "(cached) " >&6
  12315. else
  12316. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12317. fi
  12318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12319. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12320. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12321. #
  12322. # Check to make sure the PIC flag actually works.
  12323. #
  12324. if test -n "$lt_prog_compiler_pic_CXX"; then
  12325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12326. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12327. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12328. $as_echo_n "(cached) " >&6
  12329. else
  12330. lt_cv_prog_compiler_pic_works_CXX=no
  12331. ac_outfile=conftest.$ac_objext
  12332. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12333. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12334. # Insert the option either (1) after the last *FLAGS variable, or
  12335. # (2) before a word containing "conftest.", or (3) at the end.
  12336. # Note that $ac_compile itself does not contain backslashes and begins
  12337. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12338. # The option is referenced via a variable to avoid confusing sed.
  12339. lt_compile=`echo "$ac_compile" | $SED \
  12340. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12341. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12342. -e 's:$: $lt_compiler_flag:'`
  12343. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12344. (eval "$lt_compile" 2>conftest.err)
  12345. ac_status=$?
  12346. cat conftest.err >&5
  12347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12348. if (exit $ac_status) && test -s "$ac_outfile"; then
  12349. # The compiler can only warn and ignore the option if not recognized
  12350. # So say no if there are warnings other than the usual output.
  12351. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12352. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12353. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12354. lt_cv_prog_compiler_pic_works_CXX=yes
  12355. fi
  12356. fi
  12357. $RM conftest*
  12358. fi
  12359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12360. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12361. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12362. case $lt_prog_compiler_pic_CXX in
  12363. "" | " "*) ;;
  12364. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12365. esac
  12366. else
  12367. lt_prog_compiler_pic_CXX=
  12368. lt_prog_compiler_can_build_shared_CXX=no
  12369. fi
  12370. fi
  12371. #
  12372. # Check to make sure the static flag actually works.
  12373. #
  12374. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12376. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12377. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12378. $as_echo_n "(cached) " >&6
  12379. else
  12380. lt_cv_prog_compiler_static_works_CXX=no
  12381. save_LDFLAGS="$LDFLAGS"
  12382. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12383. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12384. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12385. # The linker can only warn and ignore the option if not recognized
  12386. # So say no if there are warnings
  12387. if test -s conftest.err; then
  12388. # Append any errors to the config.log.
  12389. cat conftest.err 1>&5
  12390. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12391. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12392. if diff conftest.exp conftest.er2 >/dev/null; then
  12393. lt_cv_prog_compiler_static_works_CXX=yes
  12394. fi
  12395. else
  12396. lt_cv_prog_compiler_static_works_CXX=yes
  12397. fi
  12398. fi
  12399. $RM -r conftest*
  12400. LDFLAGS="$save_LDFLAGS"
  12401. fi
  12402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12403. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12404. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12405. :
  12406. else
  12407. lt_prog_compiler_static_CXX=
  12408. fi
  12409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12410. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12411. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12412. $as_echo_n "(cached) " >&6
  12413. else
  12414. lt_cv_prog_compiler_c_o_CXX=no
  12415. $RM -r conftest 2>/dev/null
  12416. mkdir conftest
  12417. cd conftest
  12418. mkdir out
  12419. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12420. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12421. # Insert the option either (1) after the last *FLAGS variable, or
  12422. # (2) before a word containing "conftest.", or (3) at the end.
  12423. # Note that $ac_compile itself does not contain backslashes and begins
  12424. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12425. lt_compile=`echo "$ac_compile" | $SED \
  12426. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12427. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12428. -e 's:$: $lt_compiler_flag:'`
  12429. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12430. (eval "$lt_compile" 2>out/conftest.err)
  12431. ac_status=$?
  12432. cat out/conftest.err >&5
  12433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12434. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12435. then
  12436. # The compiler can only warn and ignore the option if not recognized
  12437. # So say no if there are warnings
  12438. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12439. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12440. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12441. lt_cv_prog_compiler_c_o_CXX=yes
  12442. fi
  12443. fi
  12444. chmod u+w . 2>&5
  12445. $RM conftest*
  12446. # SGI C++ compiler will create directory out/ii_files/ for
  12447. # template instantiation
  12448. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12449. $RM out/* && rmdir out
  12450. cd ..
  12451. $RM -r conftest
  12452. $RM conftest*
  12453. fi
  12454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12455. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12457. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12458. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12459. $as_echo_n "(cached) " >&6
  12460. else
  12461. lt_cv_prog_compiler_c_o_CXX=no
  12462. $RM -r conftest 2>/dev/null
  12463. mkdir conftest
  12464. cd conftest
  12465. mkdir out
  12466. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12467. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12468. # Insert the option either (1) after the last *FLAGS variable, or
  12469. # (2) before a word containing "conftest.", or (3) at the end.
  12470. # Note that $ac_compile itself does not contain backslashes and begins
  12471. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12472. lt_compile=`echo "$ac_compile" | $SED \
  12473. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12474. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12475. -e 's:$: $lt_compiler_flag:'`
  12476. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12477. (eval "$lt_compile" 2>out/conftest.err)
  12478. ac_status=$?
  12479. cat out/conftest.err >&5
  12480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12481. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12482. then
  12483. # The compiler can only warn and ignore the option if not recognized
  12484. # So say no if there are warnings
  12485. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12486. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12487. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12488. lt_cv_prog_compiler_c_o_CXX=yes
  12489. fi
  12490. fi
  12491. chmod u+w . 2>&5
  12492. $RM conftest*
  12493. # SGI C++ compiler will create directory out/ii_files/ for
  12494. # template instantiation
  12495. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12496. $RM out/* && rmdir out
  12497. cd ..
  12498. $RM -r conftest
  12499. $RM conftest*
  12500. fi
  12501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12502. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12503. hard_links="nottested"
  12504. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12505. # do not overwrite the value of need_locks provided by the user
  12506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12507. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12508. hard_links=yes
  12509. $RM conftest*
  12510. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12511. touch conftest.a
  12512. ln conftest.a conftest.b 2>&5 || hard_links=no
  12513. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12515. $as_echo "$hard_links" >&6; }
  12516. if test "$hard_links" = no; then
  12517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12518. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12519. need_locks=warn
  12520. fi
  12521. else
  12522. need_locks=no
  12523. fi
  12524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12525. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12526. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12527. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12528. case $host_os in
  12529. aix[4-9]*)
  12530. # If we're using GNU nm, then we don't want the "-C" option.
  12531. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12532. # Also, AIX nm treats weak defined symbols like other global defined
  12533. # symbols, whereas GNU nm marks them as "W".
  12534. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12535. 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'
  12536. else
  12537. 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'
  12538. fi
  12539. ;;
  12540. pw32*)
  12541. export_symbols_cmds_CXX="$ltdll_cmds"
  12542. ;;
  12543. cygwin* | mingw* | cegcc*)
  12544. case $cc_basename in
  12545. cl*)
  12546. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12547. ;;
  12548. *)
  12549. 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'
  12550. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12551. ;;
  12552. esac
  12553. ;;
  12554. *)
  12555. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12556. ;;
  12557. esac
  12558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12559. $as_echo "$ld_shlibs_CXX" >&6; }
  12560. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12561. with_gnu_ld_CXX=$with_gnu_ld
  12562. #
  12563. # Do we need to explicitly link libc?
  12564. #
  12565. case "x$archive_cmds_need_lc_CXX" in
  12566. x|xyes)
  12567. # Assume -lc should be added
  12568. archive_cmds_need_lc_CXX=yes
  12569. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12570. case $archive_cmds_CXX in
  12571. *'~'*)
  12572. # FIXME: we may have to deal with multi-command sequences.
  12573. ;;
  12574. '$CC '*)
  12575. # Test whether the compiler implicitly links with -lc since on some
  12576. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12577. # to ld, don't add -lc before -lgcc.
  12578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12579. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12580. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12581. $as_echo_n "(cached) " >&6
  12582. else
  12583. $RM conftest*
  12584. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12585. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12586. (eval $ac_compile) 2>&5
  12587. ac_status=$?
  12588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12589. test $ac_status = 0; } 2>conftest.err; then
  12590. soname=conftest
  12591. lib=conftest
  12592. libobjs=conftest.$ac_objext
  12593. deplibs=
  12594. wl=$lt_prog_compiler_wl_CXX
  12595. pic_flag=$lt_prog_compiler_pic_CXX
  12596. compiler_flags=-v
  12597. linker_flags=-v
  12598. verstring=
  12599. output_objdir=.
  12600. libname=conftest
  12601. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12602. allow_undefined_flag_CXX=
  12603. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12604. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12605. ac_status=$?
  12606. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12607. test $ac_status = 0; }
  12608. then
  12609. lt_cv_archive_cmds_need_lc_CXX=no
  12610. else
  12611. lt_cv_archive_cmds_need_lc_CXX=yes
  12612. fi
  12613. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12614. else
  12615. cat conftest.err 1>&5
  12616. fi
  12617. $RM conftest*
  12618. fi
  12619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12620. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12621. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12622. ;;
  12623. esac
  12624. fi
  12625. ;;
  12626. esac
  12627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12628. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12629. library_names_spec=
  12630. libname_spec='lib$name'
  12631. soname_spec=
  12632. shrext_cmds=".so"
  12633. postinstall_cmds=
  12634. postuninstall_cmds=
  12635. finish_cmds=
  12636. finish_eval=
  12637. shlibpath_var=
  12638. shlibpath_overrides_runpath=unknown
  12639. version_type=none
  12640. dynamic_linker="$host_os ld.so"
  12641. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12642. need_lib_prefix=unknown
  12643. hardcode_into_libs=no
  12644. # when you set need_version to no, make sure it does not cause -set_version
  12645. # flags to be left without arguments
  12646. need_version=unknown
  12647. case $host_os in
  12648. aix3*)
  12649. version_type=linux # correct to gnu/linux during the next big refactor
  12650. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12651. shlibpath_var=LIBPATH
  12652. # AIX 3 has no versioning support, so we append a major version to the name.
  12653. soname_spec='${libname}${release}${shared_ext}$major'
  12654. ;;
  12655. aix[4-9]*)
  12656. version_type=linux # correct to gnu/linux during the next big refactor
  12657. need_lib_prefix=no
  12658. need_version=no
  12659. hardcode_into_libs=yes
  12660. if test "$host_cpu" = ia64; then
  12661. # AIX 5 supports IA64
  12662. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12663. shlibpath_var=LD_LIBRARY_PATH
  12664. else
  12665. # With GCC up to 2.95.x, collect2 would create an import file
  12666. # for dependence libraries. The import file would start with
  12667. # the line `#! .'. This would cause the generated library to
  12668. # depend on `.', always an invalid library. This was fixed in
  12669. # development snapshots of GCC prior to 3.0.
  12670. case $host_os in
  12671. aix4 | aix4.[01] | aix4.[01].*)
  12672. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12673. echo ' yes '
  12674. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12675. :
  12676. else
  12677. can_build_shared=no
  12678. fi
  12679. ;;
  12680. esac
  12681. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12682. # soname into executable. Probably we can add versioning support to
  12683. # collect2, so additional links can be useful in future.
  12684. if test "$aix_use_runtimelinking" = yes; then
  12685. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12686. # instead of lib<name>.a to let people know that these are not
  12687. # typical AIX shared libraries.
  12688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12689. else
  12690. # We preserve .a as extension for shared libraries through AIX4.2
  12691. # and later when we are not doing run time linking.
  12692. library_names_spec='${libname}${release}.a $libname.a'
  12693. soname_spec='${libname}${release}${shared_ext}$major'
  12694. fi
  12695. shlibpath_var=LIBPATH
  12696. fi
  12697. ;;
  12698. amigaos*)
  12699. case $host_cpu in
  12700. powerpc)
  12701. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12702. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12704. ;;
  12705. m68k)
  12706. library_names_spec='$libname.ixlibrary $libname.a'
  12707. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12708. 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'
  12709. ;;
  12710. esac
  12711. ;;
  12712. beos*)
  12713. library_names_spec='${libname}${shared_ext}'
  12714. dynamic_linker="$host_os ld.so"
  12715. shlibpath_var=LIBRARY_PATH
  12716. ;;
  12717. bsdi[45]*)
  12718. version_type=linux # correct to gnu/linux during the next big refactor
  12719. need_version=no
  12720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12721. soname_spec='${libname}${release}${shared_ext}$major'
  12722. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12723. shlibpath_var=LD_LIBRARY_PATH
  12724. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12725. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12726. # the default ld.so.conf also contains /usr/contrib/lib and
  12727. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12728. # libtool to hard-code these into programs
  12729. ;;
  12730. cygwin* | mingw* | pw32* | cegcc*)
  12731. version_type=windows
  12732. shrext_cmds=".dll"
  12733. need_version=no
  12734. need_lib_prefix=no
  12735. case $GCC,$cc_basename in
  12736. yes,*)
  12737. # gcc
  12738. library_names_spec='$libname.dll.a'
  12739. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12740. postinstall_cmds='base_file=`basename \${file}`~
  12741. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12742. dldir=$destdir/`dirname \$dlpath`~
  12743. test -d \$dldir || mkdir -p \$dldir~
  12744. $install_prog $dir/$dlname \$dldir/$dlname~
  12745. chmod a+x \$dldir/$dlname~
  12746. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12747. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12748. fi'
  12749. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12750. dlpath=$dir/\$dldll~
  12751. $RM \$dlpath'
  12752. shlibpath_overrides_runpath=yes
  12753. case $host_os in
  12754. cygwin*)
  12755. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12756. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12757. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12758. ;;
  12759. mingw* | cegcc*)
  12760. # MinGW DLLs use traditional 'lib' prefix
  12761. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12762. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12763. ;;
  12764. pw32*)
  12765. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12766. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12767. ;;
  12768. esac
  12769. dynamic_linker='Win32 ld.exe'
  12770. ;;
  12771. *,cl*)
  12772. # Native MSVC
  12773. libname_spec='$name'
  12774. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12775. library_names_spec='${libname}.dll.lib'
  12776. case $build_os in
  12777. mingw*)
  12778. sys_lib_search_path_spec=
  12779. lt_save_ifs=$IFS
  12780. IFS=';'
  12781. for lt_path in $LIB
  12782. do
  12783. IFS=$lt_save_ifs
  12784. # Let DOS variable expansion print the short 8.3 style file name.
  12785. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12786. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12787. done
  12788. IFS=$lt_save_ifs
  12789. # Convert to MSYS style.
  12790. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12791. ;;
  12792. cygwin*)
  12793. # Convert to unix form, then to dos form, then back to unix form
  12794. # but this time dos style (no spaces!) so that the unix form looks
  12795. # like /cygdrive/c/PROGRA~1:/cygdr...
  12796. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12797. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12798. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12799. ;;
  12800. *)
  12801. sys_lib_search_path_spec="$LIB"
  12802. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12803. # It is most probably a Windows format PATH.
  12804. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12805. else
  12806. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12807. fi
  12808. # FIXME: find the short name or the path components, as spaces are
  12809. # common. (e.g. "Program Files" -> "PROGRA~1")
  12810. ;;
  12811. esac
  12812. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12813. postinstall_cmds='base_file=`basename \${file}`~
  12814. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12815. dldir=$destdir/`dirname \$dlpath`~
  12816. test -d \$dldir || mkdir -p \$dldir~
  12817. $install_prog $dir/$dlname \$dldir/$dlname'
  12818. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12819. dlpath=$dir/\$dldll~
  12820. $RM \$dlpath'
  12821. shlibpath_overrides_runpath=yes
  12822. dynamic_linker='Win32 link.exe'
  12823. ;;
  12824. *)
  12825. # Assume MSVC wrapper
  12826. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12827. dynamic_linker='Win32 ld.exe'
  12828. ;;
  12829. esac
  12830. # FIXME: first we should search . and the directory the executable is in
  12831. shlibpath_var=PATH
  12832. ;;
  12833. darwin* | rhapsody*)
  12834. dynamic_linker="$host_os dyld"
  12835. version_type=darwin
  12836. need_lib_prefix=no
  12837. need_version=no
  12838. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12839. soname_spec='${libname}${release}${major}$shared_ext'
  12840. shlibpath_overrides_runpath=yes
  12841. shlibpath_var=DYLD_LIBRARY_PATH
  12842. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12843. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12844. ;;
  12845. dgux*)
  12846. version_type=linux # correct to gnu/linux during the next big refactor
  12847. need_lib_prefix=no
  12848. need_version=no
  12849. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12850. soname_spec='${libname}${release}${shared_ext}$major'
  12851. shlibpath_var=LD_LIBRARY_PATH
  12852. ;;
  12853. freebsd* | dragonfly*)
  12854. # DragonFly does not have aout. When/if they implement a new
  12855. # versioning mechanism, adjust this.
  12856. if test -x /usr/bin/objformat; then
  12857. objformat=`/usr/bin/objformat`
  12858. else
  12859. case $host_os in
  12860. freebsd[23].*) objformat=aout ;;
  12861. *) objformat=elf ;;
  12862. esac
  12863. fi
  12864. version_type=freebsd-$objformat
  12865. case $version_type in
  12866. freebsd-elf*)
  12867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12868. need_version=no
  12869. need_lib_prefix=no
  12870. ;;
  12871. freebsd-*)
  12872. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12873. need_version=yes
  12874. ;;
  12875. esac
  12876. shlibpath_var=LD_LIBRARY_PATH
  12877. case $host_os in
  12878. freebsd2.*)
  12879. shlibpath_overrides_runpath=yes
  12880. ;;
  12881. freebsd3.[01]* | freebsdelf3.[01]*)
  12882. shlibpath_overrides_runpath=yes
  12883. hardcode_into_libs=yes
  12884. ;;
  12885. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12886. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12887. shlibpath_overrides_runpath=no
  12888. hardcode_into_libs=yes
  12889. ;;
  12890. *) # from 4.6 on, and DragonFly
  12891. shlibpath_overrides_runpath=yes
  12892. hardcode_into_libs=yes
  12893. ;;
  12894. esac
  12895. ;;
  12896. gnu*)
  12897. version_type=linux # correct to gnu/linux during the next big refactor
  12898. need_lib_prefix=no
  12899. need_version=no
  12900. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12901. soname_spec='${libname}${release}${shared_ext}$major'
  12902. shlibpath_var=LD_LIBRARY_PATH
  12903. shlibpath_overrides_runpath=no
  12904. hardcode_into_libs=yes
  12905. ;;
  12906. haiku*)
  12907. version_type=linux # correct to gnu/linux during the next big refactor
  12908. need_lib_prefix=no
  12909. need_version=no
  12910. dynamic_linker="$host_os runtime_loader"
  12911. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12912. soname_spec='${libname}${release}${shared_ext}$major'
  12913. shlibpath_var=LIBRARY_PATH
  12914. shlibpath_overrides_runpath=yes
  12915. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12916. hardcode_into_libs=yes
  12917. ;;
  12918. hpux9* | hpux10* | hpux11*)
  12919. # Give a soname corresponding to the major version so that dld.sl refuses to
  12920. # link against other versions.
  12921. version_type=sunos
  12922. need_lib_prefix=no
  12923. need_version=no
  12924. case $host_cpu in
  12925. ia64*)
  12926. shrext_cmds='.so'
  12927. hardcode_into_libs=yes
  12928. dynamic_linker="$host_os dld.so"
  12929. shlibpath_var=LD_LIBRARY_PATH
  12930. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12931. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12932. soname_spec='${libname}${release}${shared_ext}$major'
  12933. if test "X$HPUX_IA64_MODE" = X32; then
  12934. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12935. else
  12936. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12937. fi
  12938. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12939. ;;
  12940. hppa*64*)
  12941. shrext_cmds='.sl'
  12942. hardcode_into_libs=yes
  12943. dynamic_linker="$host_os dld.sl"
  12944. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12945. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12947. soname_spec='${libname}${release}${shared_ext}$major'
  12948. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12949. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12950. ;;
  12951. *)
  12952. shrext_cmds='.sl'
  12953. dynamic_linker="$host_os dld.sl"
  12954. shlibpath_var=SHLIB_PATH
  12955. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12957. soname_spec='${libname}${release}${shared_ext}$major'
  12958. ;;
  12959. esac
  12960. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12961. postinstall_cmds='chmod 555 $lib'
  12962. # or fails outright, so override atomically:
  12963. install_override_mode=555
  12964. ;;
  12965. interix[3-9]*)
  12966. version_type=linux # correct to gnu/linux during the next big refactor
  12967. need_lib_prefix=no
  12968. need_version=no
  12969. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12970. soname_spec='${libname}${release}${shared_ext}$major'
  12971. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12972. shlibpath_var=LD_LIBRARY_PATH
  12973. shlibpath_overrides_runpath=no
  12974. hardcode_into_libs=yes
  12975. ;;
  12976. irix5* | irix6* | nonstopux*)
  12977. case $host_os in
  12978. nonstopux*) version_type=nonstopux ;;
  12979. *)
  12980. if test "$lt_cv_prog_gnu_ld" = yes; then
  12981. version_type=linux # correct to gnu/linux during the next big refactor
  12982. else
  12983. version_type=irix
  12984. fi ;;
  12985. esac
  12986. need_lib_prefix=no
  12987. need_version=no
  12988. soname_spec='${libname}${release}${shared_ext}$major'
  12989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12990. case $host_os in
  12991. irix5* | nonstopux*)
  12992. libsuff= shlibsuff=
  12993. ;;
  12994. *)
  12995. case $LD in # libtool.m4 will add one of these switches to LD
  12996. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12997. libsuff= shlibsuff= libmagic=32-bit;;
  12998. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12999. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13000. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13001. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13002. *) libsuff= shlibsuff= libmagic=never-match;;
  13003. esac
  13004. ;;
  13005. esac
  13006. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13007. shlibpath_overrides_runpath=no
  13008. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13009. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13010. hardcode_into_libs=yes
  13011. ;;
  13012. # No shared lib support for Linux oldld, aout, or coff.
  13013. linux*oldld* | linux*aout* | linux*coff*)
  13014. dynamic_linker=no
  13015. ;;
  13016. # This must be glibc/ELF.
  13017. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13018. version_type=linux # correct to gnu/linux during the next big refactor
  13019. need_lib_prefix=no
  13020. need_version=no
  13021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13022. soname_spec='${libname}${release}${shared_ext}$major'
  13023. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13024. shlibpath_var=LD_LIBRARY_PATH
  13025. shlibpath_overrides_runpath=no
  13026. # Some binutils ld are patched to set DT_RUNPATH
  13027. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13028. $as_echo_n "(cached) " >&6
  13029. else
  13030. lt_cv_shlibpath_overrides_runpath=no
  13031. save_LDFLAGS=$LDFLAGS
  13032. save_libdir=$libdir
  13033. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13034. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13036. /* end confdefs.h. */
  13037. int
  13038. main ()
  13039. {
  13040. ;
  13041. return 0;
  13042. }
  13043. _ACEOF
  13044. if ac_fn_cxx_try_link "$LINENO"; then :
  13045. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13046. lt_cv_shlibpath_overrides_runpath=yes
  13047. fi
  13048. fi
  13049. rm -f core conftest.err conftest.$ac_objext \
  13050. conftest$ac_exeext conftest.$ac_ext
  13051. LDFLAGS=$save_LDFLAGS
  13052. libdir=$save_libdir
  13053. fi
  13054. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13055. # This implies no fast_install, which is unacceptable.
  13056. # Some rework will be needed to allow for fast_install
  13057. # before this can be enabled.
  13058. hardcode_into_libs=yes
  13059. # Append ld.so.conf contents to the search path
  13060. if test -f /etc/ld.so.conf; then
  13061. 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' ' '`
  13062. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13063. fi
  13064. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13065. # powerpc, because MkLinux only supported shared libraries with the
  13066. # GNU dynamic linker. Since this was broken with cross compilers,
  13067. # most powerpc-linux boxes support dynamic linking these days and
  13068. # people can always --disable-shared, the test was removed, and we
  13069. # assume the GNU/Linux dynamic linker is in use.
  13070. dynamic_linker='GNU/Linux ld.so'
  13071. ;;
  13072. netbsd*)
  13073. version_type=sunos
  13074. need_lib_prefix=no
  13075. need_version=no
  13076. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13077. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13078. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13079. dynamic_linker='NetBSD (a.out) ld.so'
  13080. else
  13081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13082. soname_spec='${libname}${release}${shared_ext}$major'
  13083. dynamic_linker='NetBSD ld.elf_so'
  13084. fi
  13085. shlibpath_var=LD_LIBRARY_PATH
  13086. shlibpath_overrides_runpath=yes
  13087. hardcode_into_libs=yes
  13088. ;;
  13089. newsos6)
  13090. version_type=linux # correct to gnu/linux during the next big refactor
  13091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13092. shlibpath_var=LD_LIBRARY_PATH
  13093. shlibpath_overrides_runpath=yes
  13094. ;;
  13095. *nto* | *qnx*)
  13096. version_type=qnx
  13097. need_lib_prefix=no
  13098. need_version=no
  13099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13100. soname_spec='${libname}${release}${shared_ext}$major'
  13101. shlibpath_var=LD_LIBRARY_PATH
  13102. shlibpath_overrides_runpath=no
  13103. hardcode_into_libs=yes
  13104. dynamic_linker='ldqnx.so'
  13105. ;;
  13106. openbsd*)
  13107. version_type=sunos
  13108. sys_lib_dlsearch_path_spec="/usr/lib"
  13109. need_lib_prefix=no
  13110. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13111. case $host_os in
  13112. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13113. *) need_version=no ;;
  13114. esac
  13115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13116. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13117. shlibpath_var=LD_LIBRARY_PATH
  13118. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13119. case $host_os in
  13120. openbsd2.[89] | openbsd2.[89].*)
  13121. shlibpath_overrides_runpath=no
  13122. ;;
  13123. *)
  13124. shlibpath_overrides_runpath=yes
  13125. ;;
  13126. esac
  13127. else
  13128. shlibpath_overrides_runpath=yes
  13129. fi
  13130. ;;
  13131. os2*)
  13132. libname_spec='$name'
  13133. shrext_cmds=".dll"
  13134. need_lib_prefix=no
  13135. library_names_spec='$libname${shared_ext} $libname.a'
  13136. dynamic_linker='OS/2 ld.exe'
  13137. shlibpath_var=LIBPATH
  13138. ;;
  13139. osf3* | osf4* | osf5*)
  13140. version_type=osf
  13141. need_lib_prefix=no
  13142. need_version=no
  13143. soname_spec='${libname}${release}${shared_ext}$major'
  13144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13145. shlibpath_var=LD_LIBRARY_PATH
  13146. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13147. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13148. ;;
  13149. rdos*)
  13150. dynamic_linker=no
  13151. ;;
  13152. solaris*)
  13153. version_type=linux # correct to gnu/linux during the next big refactor
  13154. need_lib_prefix=no
  13155. need_version=no
  13156. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13157. soname_spec='${libname}${release}${shared_ext}$major'
  13158. shlibpath_var=LD_LIBRARY_PATH
  13159. shlibpath_overrides_runpath=yes
  13160. hardcode_into_libs=yes
  13161. # ldd complains unless libraries are executable
  13162. postinstall_cmds='chmod +x $lib'
  13163. ;;
  13164. sunos4*)
  13165. version_type=sunos
  13166. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13167. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13168. shlibpath_var=LD_LIBRARY_PATH
  13169. shlibpath_overrides_runpath=yes
  13170. if test "$with_gnu_ld" = yes; then
  13171. need_lib_prefix=no
  13172. fi
  13173. need_version=yes
  13174. ;;
  13175. sysv4 | sysv4.3*)
  13176. version_type=linux # correct to gnu/linux during the next big refactor
  13177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13178. soname_spec='${libname}${release}${shared_ext}$major'
  13179. shlibpath_var=LD_LIBRARY_PATH
  13180. case $host_vendor in
  13181. sni)
  13182. shlibpath_overrides_runpath=no
  13183. need_lib_prefix=no
  13184. runpath_var=LD_RUN_PATH
  13185. ;;
  13186. siemens)
  13187. need_lib_prefix=no
  13188. ;;
  13189. motorola)
  13190. need_lib_prefix=no
  13191. need_version=no
  13192. shlibpath_overrides_runpath=no
  13193. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13194. ;;
  13195. esac
  13196. ;;
  13197. sysv4*MP*)
  13198. if test -d /usr/nec ;then
  13199. version_type=linux # correct to gnu/linux during the next big refactor
  13200. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13201. soname_spec='$libname${shared_ext}.$major'
  13202. shlibpath_var=LD_LIBRARY_PATH
  13203. fi
  13204. ;;
  13205. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13206. version_type=freebsd-elf
  13207. need_lib_prefix=no
  13208. need_version=no
  13209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13210. soname_spec='${libname}${release}${shared_ext}$major'
  13211. shlibpath_var=LD_LIBRARY_PATH
  13212. shlibpath_overrides_runpath=yes
  13213. hardcode_into_libs=yes
  13214. if test "$with_gnu_ld" = yes; then
  13215. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13216. else
  13217. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13218. case $host_os in
  13219. sco3.2v5*)
  13220. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13221. ;;
  13222. esac
  13223. fi
  13224. sys_lib_dlsearch_path_spec='/usr/lib'
  13225. ;;
  13226. tpf*)
  13227. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13228. version_type=linux # correct to gnu/linux during the next big refactor
  13229. need_lib_prefix=no
  13230. need_version=no
  13231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13232. shlibpath_var=LD_LIBRARY_PATH
  13233. shlibpath_overrides_runpath=no
  13234. hardcode_into_libs=yes
  13235. ;;
  13236. uts4*)
  13237. version_type=linux # correct to gnu/linux during the next big refactor
  13238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13239. soname_spec='${libname}${release}${shared_ext}$major'
  13240. shlibpath_var=LD_LIBRARY_PATH
  13241. ;;
  13242. *)
  13243. dynamic_linker=no
  13244. ;;
  13245. esac
  13246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13247. $as_echo "$dynamic_linker" >&6; }
  13248. test "$dynamic_linker" = no && can_build_shared=no
  13249. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13250. if test "$GCC" = yes; then
  13251. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13252. fi
  13253. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13254. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13255. fi
  13256. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13257. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13258. fi
  13259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13260. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13261. hardcode_action_CXX=
  13262. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13263. test -n "$runpath_var_CXX" ||
  13264. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13265. # We can hardcode non-existent directories.
  13266. if test "$hardcode_direct_CXX" != no &&
  13267. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13268. # have to relink, otherwise we might link with an installed library
  13269. # when we should be linking with a yet-to-be-installed one
  13270. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13271. test "$hardcode_minus_L_CXX" != no; then
  13272. # Linking always hardcodes the temporary library directory.
  13273. hardcode_action_CXX=relink
  13274. else
  13275. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13276. hardcode_action_CXX=immediate
  13277. fi
  13278. else
  13279. # We cannot hardcode anything, or else we can only hardcode existing
  13280. # directories.
  13281. hardcode_action_CXX=unsupported
  13282. fi
  13283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13284. $as_echo "$hardcode_action_CXX" >&6; }
  13285. if test "$hardcode_action_CXX" = relink ||
  13286. test "$inherit_rpath_CXX" = yes; then
  13287. # Fast installation is not supported
  13288. enable_fast_install=no
  13289. elif test "$shlibpath_overrides_runpath" = yes ||
  13290. test "$enable_shared" = no; then
  13291. # Fast installation is not necessary
  13292. enable_fast_install=needless
  13293. fi
  13294. fi # test -n "$compiler"
  13295. CC=$lt_save_CC
  13296. CFLAGS=$lt_save_CFLAGS
  13297. LDCXX=$LD
  13298. LD=$lt_save_LD
  13299. GCC=$lt_save_GCC
  13300. with_gnu_ld=$lt_save_with_gnu_ld
  13301. lt_cv_path_LDCXX=$lt_cv_path_LD
  13302. lt_cv_path_LD=$lt_save_path_LD
  13303. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13304. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13305. fi # test "$_lt_caught_CXX_error" != yes
  13306. ac_ext=c
  13307. ac_cpp='$CPP $CPPFLAGS'
  13308. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13309. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13310. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13311. # Find a good install program. We prefer a C program (faster),
  13312. # so one script is as good as another. But avoid the broken or
  13313. # incompatible versions:
  13314. # SysV /etc/install, /usr/sbin/install
  13315. # SunOS /usr/etc/install
  13316. # IRIX /sbin/install
  13317. # AIX /bin/install
  13318. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13319. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13320. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13321. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13322. # OS/2's system install, which has a completely different semantic
  13323. # ./install, which can be erroneously created by make from ./install.sh.
  13324. # Reject install programs that cannot install multiple files.
  13325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13326. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13327. if test -z "$INSTALL"; then
  13328. if ${ac_cv_path_install+:} false; then :
  13329. $as_echo_n "(cached) " >&6
  13330. else
  13331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13332. for as_dir in $PATH
  13333. do
  13334. IFS=$as_save_IFS
  13335. test -z "$as_dir" && as_dir=.
  13336. # Account for people who put trailing slashes in PATH elements.
  13337. case $as_dir/ in #((
  13338. ./ | .// | /[cC]/* | \
  13339. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13340. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13341. /usr/ucb/* ) ;;
  13342. *)
  13343. # OSF1 and SCO ODT 3.0 have their own names for install.
  13344. # Don't use installbsd from OSF since it installs stuff as root
  13345. # by default.
  13346. for ac_prog in ginstall scoinst install; do
  13347. for ac_exec_ext in '' $ac_executable_extensions; do
  13348. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13349. if test $ac_prog = install &&
  13350. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13351. # AIX install. It has an incompatible calling convention.
  13352. :
  13353. elif test $ac_prog = install &&
  13354. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13355. # program-specific install script used by HP pwplus--don't use.
  13356. :
  13357. else
  13358. rm -rf conftest.one conftest.two conftest.dir
  13359. echo one > conftest.one
  13360. echo two > conftest.two
  13361. mkdir conftest.dir
  13362. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13363. test -s conftest.one && test -s conftest.two &&
  13364. test -s conftest.dir/conftest.one &&
  13365. test -s conftest.dir/conftest.two
  13366. then
  13367. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13368. break 3
  13369. fi
  13370. fi
  13371. fi
  13372. done
  13373. done
  13374. ;;
  13375. esac
  13376. done
  13377. IFS=$as_save_IFS
  13378. rm -rf conftest.one conftest.two conftest.dir
  13379. fi
  13380. if test "${ac_cv_path_install+set}" = set; then
  13381. INSTALL=$ac_cv_path_install
  13382. else
  13383. # As a last resort, use the slow shell script. Don't cache a
  13384. # value for INSTALL within a source directory, because that will
  13385. # break other packages using the cache if that directory is
  13386. # removed, or if the value is a relative name.
  13387. INSTALL=$ac_install_sh
  13388. fi
  13389. fi
  13390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13391. $as_echo "$INSTALL" >&6; }
  13392. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13393. # It thinks the first close brace ends the variable substitution.
  13394. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13395. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13396. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13398. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13399. set x ${MAKE-make}
  13400. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13401. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13402. $as_echo_n "(cached) " >&6
  13403. else
  13404. cat >conftest.make <<\_ACEOF
  13405. SHELL = /bin/sh
  13406. all:
  13407. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13408. _ACEOF
  13409. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13410. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13411. *@@@%%%=?*=@@@%%%*)
  13412. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13413. *)
  13414. eval ac_cv_prog_make_${ac_make}_set=no;;
  13415. esac
  13416. rm -f conftest.make
  13417. fi
  13418. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13420. $as_echo "yes" >&6; }
  13421. SET_MAKE=
  13422. else
  13423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13424. $as_echo "no" >&6; }
  13425. SET_MAKE="MAKE=${MAKE-make}"
  13426. fi
  13427. if test -n "$ac_tool_prefix"; then
  13428. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13429. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13431. $as_echo_n "checking for $ac_word... " >&6; }
  13432. if ${ac_cv_prog_WINDRES+:} false; then :
  13433. $as_echo_n "(cached) " >&6
  13434. else
  13435. if test -n "$WINDRES"; then
  13436. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13437. else
  13438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13439. for as_dir in $PATH
  13440. do
  13441. IFS=$as_save_IFS
  13442. test -z "$as_dir" && as_dir=.
  13443. for ac_exec_ext in '' $ac_executable_extensions; do
  13444. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13445. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13446. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13447. break 2
  13448. fi
  13449. done
  13450. done
  13451. IFS=$as_save_IFS
  13452. fi
  13453. fi
  13454. WINDRES=$ac_cv_prog_WINDRES
  13455. if test -n "$WINDRES"; then
  13456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13457. $as_echo "$WINDRES" >&6; }
  13458. else
  13459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13460. $as_echo "no" >&6; }
  13461. fi
  13462. fi
  13463. if test -z "$ac_cv_prog_WINDRES"; then
  13464. ac_ct_WINDRES=$WINDRES
  13465. # Extract the first word of "windres", so it can be a program name with args.
  13466. set dummy windres; ac_word=$2
  13467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13468. $as_echo_n "checking for $ac_word... " >&6; }
  13469. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13470. $as_echo_n "(cached) " >&6
  13471. else
  13472. if test -n "$ac_ct_WINDRES"; then
  13473. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13474. else
  13475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13476. for as_dir in $PATH
  13477. do
  13478. IFS=$as_save_IFS
  13479. test -z "$as_dir" && as_dir=.
  13480. for ac_exec_ext in '' $ac_executable_extensions; do
  13481. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13482. ac_cv_prog_ac_ct_WINDRES="windres"
  13483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13484. break 2
  13485. fi
  13486. done
  13487. done
  13488. IFS=$as_save_IFS
  13489. fi
  13490. fi
  13491. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13492. if test -n "$ac_ct_WINDRES"; then
  13493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13494. $as_echo "$ac_ct_WINDRES" >&6; }
  13495. else
  13496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13497. $as_echo "no" >&6; }
  13498. fi
  13499. if test "x$ac_ct_WINDRES" = x; then
  13500. WINDRES=":"
  13501. else
  13502. case $cross_compiling:$ac_tool_warned in
  13503. yes:)
  13504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13505. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13506. ac_tool_warned=yes ;;
  13507. esac
  13508. WINDRES=$ac_ct_WINDRES
  13509. fi
  13510. else
  13511. WINDRES="$ac_cv_prog_WINDRES"
  13512. fi
  13513. case "$host" in
  13514. *-*-mingw32*)
  13515. # Except on msys, where make can't handle full pathnames (bug 1972)
  13516. ;;
  13517. *)
  13518. srcdir=`cd $srcdir && pwd`
  13519. ;;
  13520. esac
  13521. INCLUDE="-I$srcdir/include"
  13522. if test x$srcdir != x.; then
  13523. INCLUDE="-Iinclude $INCLUDE"
  13524. elif test -d .hg; then
  13525. as_fn_error $? "
  13526. *** When building from Mercurial you should configure and build in a
  13527. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13528. " "$LINENO" 5
  13529. fi
  13530. BASE_CFLAGS=""
  13531. BASE_LDFLAGS=""
  13532. case "$host" in
  13533. *-*-cygwin*)
  13534. # We build SDL on cygwin without the UNIX emulation layer
  13535. save_CFLAGS="$CFLAGS"
  13536. have_no_cygwin=no
  13537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13538. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13539. CFLAGS="$save_CFLAGS -mno-cygwin"
  13540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13541. /* end confdefs.h. */
  13542. int
  13543. main ()
  13544. {
  13545. ;
  13546. return 0;
  13547. }
  13548. _ACEOF
  13549. if ac_fn_c_try_compile "$LINENO"; then :
  13550. have_no_cygwin=yes
  13551. fi
  13552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13554. $as_echo "$have_no_cygwin" >&6; }
  13555. CFLAGS="$save_CFLAGS"
  13556. if test x$have_no_cygwin = xyes; then
  13557. BASE_CFLAGS="-mno-cygwin"
  13558. BASE_LDFLAGS="-mno-cygwin"
  13559. fi
  13560. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13561. ;;
  13562. esac
  13563. # Uncomment the following line if you want to force SDL and applications
  13564. # built with it to be compiled for a particular architecture.
  13565. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13566. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13567. # The default optimization for SDL is -O3 (Bug #31)
  13568. if test "x$orig_CFLAGS" = x; then
  13569. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13570. fi
  13571. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13572. BUILD_LDFLAGS="$LDFLAGS"
  13573. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13574. ## These are common directories to find software packages
  13575. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13576. # if test -d $path/include; then
  13577. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13578. # fi
  13579. # if test -d $path/lib; then
  13580. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13581. # fi
  13582. #done
  13583. SDL_CFLAGS="$BASE_CFLAGS"
  13584. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13585. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13586. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13587. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13588. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13589. find_lib()
  13590. {
  13591. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13592. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13593. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13594. if test "$cross_compiling" = yes; then
  13595. host_lib_path=""
  13596. else
  13597. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13598. fi
  13599. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13600. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13601. if test x$lib != x; then
  13602. echo $lib
  13603. return
  13604. fi
  13605. done
  13606. }
  13607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13608. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13609. if ${ac_cv_c_const+:} false; then :
  13610. $as_echo_n "(cached) " >&6
  13611. else
  13612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13613. /* end confdefs.h. */
  13614. int
  13615. main ()
  13616. {
  13617. #ifndef __cplusplus
  13618. /* Ultrix mips cc rejects this sort of thing. */
  13619. typedef int charset[2];
  13620. const charset cs = { 0, 0 };
  13621. /* SunOS 4.1.1 cc rejects this. */
  13622. char const *const *pcpcc;
  13623. char **ppc;
  13624. /* NEC SVR4.0.2 mips cc rejects this. */
  13625. struct point {int x, y;};
  13626. static struct point const zero = {0,0};
  13627. /* AIX XL C 1.02.0.0 rejects this.
  13628. It does not let you subtract one const X* pointer from another in
  13629. an arm of an if-expression whose if-part is not a constant
  13630. expression */
  13631. const char *g = "string";
  13632. pcpcc = &g + (g ? g-g : 0);
  13633. /* HPUX 7.0 cc rejects these. */
  13634. ++pcpcc;
  13635. ppc = (char**) pcpcc;
  13636. pcpcc = (char const *const *) ppc;
  13637. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13638. char tx;
  13639. char *t = &tx;
  13640. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13641. *t++ = 0;
  13642. if (s) return 0;
  13643. }
  13644. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13645. int x[] = {25, 17};
  13646. const int *foo = &x[0];
  13647. ++foo;
  13648. }
  13649. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13650. typedef const int *iptr;
  13651. iptr p = 0;
  13652. ++p;
  13653. }
  13654. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13655. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13656. struct s { int j; const int *ap[3]; } bx;
  13657. struct s *b = &bx; b->j = 5;
  13658. }
  13659. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13660. const int foo = 10;
  13661. if (!foo) return 0;
  13662. }
  13663. return !cs[0] && !zero.x;
  13664. #endif
  13665. ;
  13666. return 0;
  13667. }
  13668. _ACEOF
  13669. if ac_fn_c_try_compile "$LINENO"; then :
  13670. ac_cv_c_const=yes
  13671. else
  13672. ac_cv_c_const=no
  13673. fi
  13674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13675. fi
  13676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13677. $as_echo "$ac_cv_c_const" >&6; }
  13678. if test $ac_cv_c_const = no; then
  13679. $as_echo "#define const /**/" >>confdefs.h
  13680. fi
  13681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13682. $as_echo_n "checking for inline... " >&6; }
  13683. if ${ac_cv_c_inline+:} false; then :
  13684. $as_echo_n "(cached) " >&6
  13685. else
  13686. ac_cv_c_inline=no
  13687. for ac_kw in inline __inline__ __inline; do
  13688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13689. /* end confdefs.h. */
  13690. #ifndef __cplusplus
  13691. typedef int foo_t;
  13692. static $ac_kw foo_t static_foo () {return 0; }
  13693. $ac_kw foo_t foo () {return 0; }
  13694. #endif
  13695. _ACEOF
  13696. if ac_fn_c_try_compile "$LINENO"; then :
  13697. ac_cv_c_inline=$ac_kw
  13698. fi
  13699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13700. test "$ac_cv_c_inline" != no && break
  13701. done
  13702. fi
  13703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13704. $as_echo "$ac_cv_c_inline" >&6; }
  13705. case $ac_cv_c_inline in
  13706. inline | yes) ;;
  13707. *)
  13708. case $ac_cv_c_inline in
  13709. no) ac_val=;;
  13710. *) ac_val=$ac_cv_c_inline;;
  13711. esac
  13712. cat >>confdefs.h <<_ACEOF
  13713. #ifndef __cplusplus
  13714. #define inline $ac_val
  13715. #endif
  13716. _ACEOF
  13717. ;;
  13718. esac
  13719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13720. $as_echo_n "checking for working volatile... " >&6; }
  13721. if ${ac_cv_c_volatile+:} false; then :
  13722. $as_echo_n "(cached) " >&6
  13723. else
  13724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13725. /* end confdefs.h. */
  13726. int
  13727. main ()
  13728. {
  13729. volatile int x;
  13730. int * volatile y = (int *) 0;
  13731. return !x && !y;
  13732. ;
  13733. return 0;
  13734. }
  13735. _ACEOF
  13736. if ac_fn_c_try_compile "$LINENO"; then :
  13737. ac_cv_c_volatile=yes
  13738. else
  13739. ac_cv_c_volatile=no
  13740. fi
  13741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13742. fi
  13743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13744. $as_echo "$ac_cv_c_volatile" >&6; }
  13745. if test $ac_cv_c_volatile = no; then
  13746. $as_echo "#define volatile /**/" >>confdefs.h
  13747. fi
  13748. # Check whether --enable-assertions was given.
  13749. if test "${enable_assertions+set}" = set; then :
  13750. enableval=$enable_assertions;
  13751. else
  13752. enable_assertions=auto
  13753. fi
  13754. case "$enable_assertions" in
  13755. auto) # Use optimization settings to determine assertion level
  13756. ;;
  13757. disabled)
  13758. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13759. ;;
  13760. release)
  13761. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13762. ;;
  13763. enabled)
  13764. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13765. ;;
  13766. paranoid)
  13767. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13768. ;;
  13769. *)
  13770. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13771. ;;
  13772. esac
  13773. # Check whether --enable-dependency-tracking was given.
  13774. if test "${enable_dependency_tracking+set}" = set; then :
  13775. enableval=$enable_dependency_tracking;
  13776. else
  13777. enable_dependency_tracking=yes
  13778. fi
  13779. if test x$enable_dependency_tracking = xyes; then
  13780. have_gcc_mmd_mt=no
  13781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13782. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13784. /* end confdefs.h. */
  13785. #if !defined(__GNUC__) || __GNUC__ < 3
  13786. #error Dependency tracking requires GCC 3.0 or newer
  13787. #endif
  13788. int
  13789. main ()
  13790. {
  13791. ;
  13792. return 0;
  13793. }
  13794. _ACEOF
  13795. if ac_fn_c_try_compile "$LINENO"; then :
  13796. have_gcc_mmd_mt=yes
  13797. fi
  13798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13800. $as_echo "$have_gcc_mmd_mt" >&6; }
  13801. if test x$have_gcc_mmd_mt = xyes; then
  13802. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13803. fi
  13804. fi
  13805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13806. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13807. have_no_undefined=no
  13808. case "$host" in
  13809. *-*-openbsd*)
  13810. ;;
  13811. *)
  13812. save_LDFLAGS="$LDFLAGS"
  13813. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13815. /* end confdefs.h. */
  13816. int
  13817. main ()
  13818. {
  13819. ;
  13820. return 0;
  13821. }
  13822. _ACEOF
  13823. if ac_fn_c_try_link "$LINENO"; then :
  13824. have_no_undefined=yes
  13825. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13826. fi
  13827. rm -f core conftest.err conftest.$ac_objext \
  13828. conftest$ac_exeext conftest.$ac_ext
  13829. LDFLAGS="$save_LDFLAGS"
  13830. ;;
  13831. esac
  13832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13833. $as_echo "$have_no_undefined" >&6; }
  13834. # Check whether --enable-libc was given.
  13835. if test "${enable_libc+set}" = set; then :
  13836. enableval=$enable_libc;
  13837. else
  13838. enable_libc=yes
  13839. fi
  13840. if test x$enable_libc = xyes; then
  13841. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13843. $as_echo_n "checking for ANSI C header files... " >&6; }
  13844. if ${ac_cv_header_stdc+:} false; then :
  13845. $as_echo_n "(cached) " >&6
  13846. else
  13847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13848. /* end confdefs.h. */
  13849. #include <stdlib.h>
  13850. #include <stdarg.h>
  13851. #include <string.h>
  13852. #include <float.h>
  13853. int
  13854. main ()
  13855. {
  13856. ;
  13857. return 0;
  13858. }
  13859. _ACEOF
  13860. if ac_fn_c_try_compile "$LINENO"; then :
  13861. ac_cv_header_stdc=yes
  13862. else
  13863. ac_cv_header_stdc=no
  13864. fi
  13865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13866. if test $ac_cv_header_stdc = yes; then
  13867. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13869. /* end confdefs.h. */
  13870. #include <string.h>
  13871. _ACEOF
  13872. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13873. $EGREP "memchr" >/dev/null 2>&1; then :
  13874. else
  13875. ac_cv_header_stdc=no
  13876. fi
  13877. rm -f conftest*
  13878. fi
  13879. if test $ac_cv_header_stdc = yes; then
  13880. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13882. /* end confdefs.h. */
  13883. #include <stdlib.h>
  13884. _ACEOF
  13885. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13886. $EGREP "free" >/dev/null 2>&1; then :
  13887. else
  13888. ac_cv_header_stdc=no
  13889. fi
  13890. rm -f conftest*
  13891. fi
  13892. if test $ac_cv_header_stdc = yes; then
  13893. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13894. if test "$cross_compiling" = yes; then :
  13895. :
  13896. else
  13897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13898. /* end confdefs.h. */
  13899. #include <ctype.h>
  13900. #include <stdlib.h>
  13901. #if ((' ' & 0x0FF) == 0x020)
  13902. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13903. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13904. #else
  13905. # define ISLOWER(c) \
  13906. (('a' <= (c) && (c) <= 'i') \
  13907. || ('j' <= (c) && (c) <= 'r') \
  13908. || ('s' <= (c) && (c) <= 'z'))
  13909. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13910. #endif
  13911. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13912. int
  13913. main ()
  13914. {
  13915. int i;
  13916. for (i = 0; i < 256; i++)
  13917. if (XOR (islower (i), ISLOWER (i))
  13918. || toupper (i) != TOUPPER (i))
  13919. return 2;
  13920. return 0;
  13921. }
  13922. _ACEOF
  13923. if ac_fn_c_try_run "$LINENO"; then :
  13924. else
  13925. ac_cv_header_stdc=no
  13926. fi
  13927. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13928. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13929. fi
  13930. fi
  13931. fi
  13932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13933. $as_echo "$ac_cv_header_stdc" >&6; }
  13934. if test $ac_cv_header_stdc = yes; then
  13935. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13936. fi
  13937. 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
  13938. do :
  13939. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13940. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13941. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13942. cat >>confdefs.h <<_ACEOF
  13943. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13944. _ACEOF
  13945. fi
  13946. done
  13947. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13948. if test "x$ac_cv_type_size_t" = xyes; then :
  13949. else
  13950. cat >>confdefs.h <<_ACEOF
  13951. #define size_t unsigned int
  13952. _ACEOF
  13953. fi
  13954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13955. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13956. if ${ac_cv_define_M_PI+:} false; then :
  13957. $as_echo_n "(cached) " >&6
  13958. else
  13959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13960. /* end confdefs.h. */
  13961. #include <math.h>
  13962. #ifdef M_PI
  13963. YES_IS_DEFINED
  13964. #endif
  13965. _ACEOF
  13966. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13967. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13968. ac_cv_define_M_PI=yes
  13969. else
  13970. ac_cv_define_M_PI=no
  13971. fi
  13972. rm -f conftest*
  13973. fi
  13974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13975. $as_echo "$ac_cv_define_M_PI" >&6; }
  13976. if test "$ac_cv_define_M_PI" = "yes" ; then
  13977. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13978. fi
  13979. case "$host" in
  13980. *-*-cygwin* | *-*-mingw32*)
  13981. ;;
  13982. *)
  13983. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13984. # for constant arguments. Useless!
  13985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13986. $as_echo_n "checking for working alloca.h... " >&6; }
  13987. if ${ac_cv_working_alloca_h+:} false; then :
  13988. $as_echo_n "(cached) " >&6
  13989. else
  13990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13991. /* end confdefs.h. */
  13992. #include <alloca.h>
  13993. int
  13994. main ()
  13995. {
  13996. char *p = (char *) alloca (2 * sizeof (int));
  13997. if (p) return 0;
  13998. ;
  13999. return 0;
  14000. }
  14001. _ACEOF
  14002. if ac_fn_c_try_link "$LINENO"; then :
  14003. ac_cv_working_alloca_h=yes
  14004. else
  14005. ac_cv_working_alloca_h=no
  14006. fi
  14007. rm -f core conftest.err conftest.$ac_objext \
  14008. conftest$ac_exeext conftest.$ac_ext
  14009. fi
  14010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14011. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14012. if test $ac_cv_working_alloca_h = yes; then
  14013. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14014. fi
  14015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14016. $as_echo_n "checking for alloca... " >&6; }
  14017. if ${ac_cv_func_alloca_works+:} false; then :
  14018. $as_echo_n "(cached) " >&6
  14019. else
  14020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14021. /* end confdefs.h. */
  14022. #ifdef __GNUC__
  14023. # define alloca __builtin_alloca
  14024. #else
  14025. # ifdef _MSC_VER
  14026. # include <malloc.h>
  14027. # define alloca _alloca
  14028. # else
  14029. # ifdef HAVE_ALLOCA_H
  14030. # include <alloca.h>
  14031. # else
  14032. # ifdef _AIX
  14033. #pragma alloca
  14034. # else
  14035. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14036. void *alloca (size_t);
  14037. # endif
  14038. # endif
  14039. # endif
  14040. # endif
  14041. #endif
  14042. int
  14043. main ()
  14044. {
  14045. char *p = (char *) alloca (1);
  14046. if (p) return 0;
  14047. ;
  14048. return 0;
  14049. }
  14050. _ACEOF
  14051. if ac_fn_c_try_link "$LINENO"; then :
  14052. ac_cv_func_alloca_works=yes
  14053. else
  14054. ac_cv_func_alloca_works=no
  14055. fi
  14056. rm -f core conftest.err conftest.$ac_objext \
  14057. conftest$ac_exeext conftest.$ac_ext
  14058. fi
  14059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14060. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14061. if test $ac_cv_func_alloca_works = yes; then
  14062. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14063. else
  14064. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14065. # that cause trouble. Some versions do not even contain alloca or
  14066. # contain a buggy version. If you still want to use their alloca,
  14067. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14068. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14069. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14071. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14072. if ${ac_cv_os_cray+:} false; then :
  14073. $as_echo_n "(cached) " >&6
  14074. else
  14075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14076. /* end confdefs.h. */
  14077. #if defined CRAY && ! defined CRAY2
  14078. webecray
  14079. #else
  14080. wenotbecray
  14081. #endif
  14082. _ACEOF
  14083. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14084. $EGREP "webecray" >/dev/null 2>&1; then :
  14085. ac_cv_os_cray=yes
  14086. else
  14087. ac_cv_os_cray=no
  14088. fi
  14089. rm -f conftest*
  14090. fi
  14091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14092. $as_echo "$ac_cv_os_cray" >&6; }
  14093. if test $ac_cv_os_cray = yes; then
  14094. for ac_func in _getb67 GETB67 getb67; do
  14095. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14096. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14097. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14098. cat >>confdefs.h <<_ACEOF
  14099. #define CRAY_STACKSEG_END $ac_func
  14100. _ACEOF
  14101. break
  14102. fi
  14103. done
  14104. fi
  14105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14106. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14107. if ${ac_cv_c_stack_direction+:} false; then :
  14108. $as_echo_n "(cached) " >&6
  14109. else
  14110. if test "$cross_compiling" = yes; then :
  14111. ac_cv_c_stack_direction=0
  14112. else
  14113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14114. /* end confdefs.h. */
  14115. $ac_includes_default
  14116. int
  14117. find_stack_direction (int *addr, int depth)
  14118. {
  14119. int dir, dummy = 0;
  14120. if (! addr)
  14121. addr = &dummy;
  14122. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14123. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14124. return dir + dummy;
  14125. }
  14126. int
  14127. main (int argc, char **argv)
  14128. {
  14129. return find_stack_direction (0, argc + !argv + 20) < 0;
  14130. }
  14131. _ACEOF
  14132. if ac_fn_c_try_run "$LINENO"; then :
  14133. ac_cv_c_stack_direction=1
  14134. else
  14135. ac_cv_c_stack_direction=-1
  14136. fi
  14137. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14138. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14139. fi
  14140. fi
  14141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14142. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14143. cat >>confdefs.h <<_ACEOF
  14144. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14145. _ACEOF
  14146. fi
  14147. ;;
  14148. esac
  14149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14150. $as_echo_n "checking for working memcmp... " >&6; }
  14151. if ${ac_cv_func_memcmp_working+:} false; then :
  14152. $as_echo_n "(cached) " >&6
  14153. else
  14154. if test "$cross_compiling" = yes; then :
  14155. ac_cv_func_memcmp_working=no
  14156. else
  14157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14158. /* end confdefs.h. */
  14159. $ac_includes_default
  14160. int
  14161. main ()
  14162. {
  14163. /* Some versions of memcmp are not 8-bit clean. */
  14164. char c0 = '\100', c1 = '\200', c2 = '\201';
  14165. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14166. return 1;
  14167. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14168. or more and with at least one buffer not starting on a 4-byte boundary.
  14169. William Lewis provided this test program. */
  14170. {
  14171. char foo[21];
  14172. char bar[21];
  14173. int i;
  14174. for (i = 0; i < 4; i++)
  14175. {
  14176. char *a = foo + i;
  14177. char *b = bar + i;
  14178. strcpy (a, "--------01111111");
  14179. strcpy (b, "--------10000000");
  14180. if (memcmp (a, b, 16) >= 0)
  14181. return 1;
  14182. }
  14183. return 0;
  14184. }
  14185. ;
  14186. return 0;
  14187. }
  14188. _ACEOF
  14189. if ac_fn_c_try_run "$LINENO"; then :
  14190. ac_cv_func_memcmp_working=yes
  14191. else
  14192. ac_cv_func_memcmp_working=no
  14193. fi
  14194. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14195. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14196. fi
  14197. fi
  14198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14199. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14200. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14201. *" memcmp.$ac_objext "* ) ;;
  14202. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14203. ;;
  14204. esac
  14205. if test x$ac_cv_func_memcmp_working = xyes; then
  14206. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14207. fi
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14209. $as_echo_n "checking for working strtod... " >&6; }
  14210. if ${ac_cv_func_strtod+:} false; then :
  14211. $as_echo_n "(cached) " >&6
  14212. else
  14213. if test "$cross_compiling" = yes; then :
  14214. ac_cv_func_strtod=no
  14215. else
  14216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14217. /* end confdefs.h. */
  14218. $ac_includes_default
  14219. #ifndef strtod
  14220. double strtod ();
  14221. #endif
  14222. int
  14223. main()
  14224. {
  14225. {
  14226. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14227. char *string = " +69";
  14228. char *term;
  14229. double value;
  14230. value = strtod (string, &term);
  14231. if (value != 69 || term != (string + 4))
  14232. return 1;
  14233. }
  14234. {
  14235. /* Under Solaris 2.4, strtod returns the wrong value for the
  14236. terminating character under some conditions. */
  14237. char *string = "NaN";
  14238. char *term;
  14239. strtod (string, &term);
  14240. if (term != string && *(term - 1) == 0)
  14241. return 1;
  14242. }
  14243. return 0;
  14244. }
  14245. _ACEOF
  14246. if ac_fn_c_try_run "$LINENO"; then :
  14247. ac_cv_func_strtod=yes
  14248. else
  14249. ac_cv_func_strtod=no
  14250. fi
  14251. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14252. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14253. fi
  14254. fi
  14255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14256. $as_echo "$ac_cv_func_strtod" >&6; }
  14257. if test $ac_cv_func_strtod = no; then
  14258. case " $LIBOBJS " in
  14259. *" strtod.$ac_objext "* ) ;;
  14260. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14261. ;;
  14262. esac
  14263. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14264. if test "x$ac_cv_func_pow" = xyes; then :
  14265. fi
  14266. if test $ac_cv_func_pow = no; then
  14267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14268. $as_echo_n "checking for pow in -lm... " >&6; }
  14269. if ${ac_cv_lib_m_pow+:} false; then :
  14270. $as_echo_n "(cached) " >&6
  14271. else
  14272. ac_check_lib_save_LIBS=$LIBS
  14273. LIBS="-lm $LIBS"
  14274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14275. /* end confdefs.h. */
  14276. /* Override any GCC internal prototype to avoid an error.
  14277. Use char because int might match the return type of a GCC
  14278. builtin and then its argument prototype would still apply. */
  14279. #ifdef __cplusplus
  14280. extern "C"
  14281. #endif
  14282. char pow ();
  14283. int
  14284. main ()
  14285. {
  14286. return pow ();
  14287. ;
  14288. return 0;
  14289. }
  14290. _ACEOF
  14291. if ac_fn_c_try_link "$LINENO"; then :
  14292. ac_cv_lib_m_pow=yes
  14293. else
  14294. ac_cv_lib_m_pow=no
  14295. fi
  14296. rm -f core conftest.err conftest.$ac_objext \
  14297. conftest$ac_exeext conftest.$ac_ext
  14298. LIBS=$ac_check_lib_save_LIBS
  14299. fi
  14300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14301. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14302. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14303. POW_LIB=-lm
  14304. else
  14305. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14306. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14307. fi
  14308. fi
  14309. fi
  14310. if test x$ac_cv_func_strtod = xyes; then
  14311. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14312. fi
  14313. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14314. if test "x$ac_cv_func_mprotect" = xyes; then :
  14315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14316. /* end confdefs.h. */
  14317. #include <sys/types.h>
  14318. #include <sys/mman.h>
  14319. int
  14320. main ()
  14321. {
  14322. ;
  14323. return 0;
  14324. }
  14325. _ACEOF
  14326. if ac_fn_c_try_compile "$LINENO"; then :
  14327. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14328. fi
  14329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14330. fi
  14331. 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
  14332. do :
  14333. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14334. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14335. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14336. cat >>confdefs.h <<_ACEOF
  14337. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14338. _ACEOF
  14339. fi
  14340. done
  14341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14342. $as_echo_n "checking for pow in -lm... " >&6; }
  14343. if ${ac_cv_lib_m_pow+:} false; then :
  14344. $as_echo_n "(cached) " >&6
  14345. else
  14346. ac_check_lib_save_LIBS=$LIBS
  14347. LIBS="-lm $LIBS"
  14348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14349. /* end confdefs.h. */
  14350. /* Override any GCC internal prototype to avoid an error.
  14351. Use char because int might match the return type of a GCC
  14352. builtin and then its argument prototype would still apply. */
  14353. #ifdef __cplusplus
  14354. extern "C"
  14355. #endif
  14356. char pow ();
  14357. int
  14358. main ()
  14359. {
  14360. return pow ();
  14361. ;
  14362. return 0;
  14363. }
  14364. _ACEOF
  14365. if ac_fn_c_try_link "$LINENO"; then :
  14366. ac_cv_lib_m_pow=yes
  14367. else
  14368. ac_cv_lib_m_pow=no
  14369. fi
  14370. rm -f core conftest.err conftest.$ac_objext \
  14371. conftest$ac_exeext conftest.$ac_ext
  14372. LIBS=$ac_check_lib_save_LIBS
  14373. fi
  14374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14375. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14376. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14377. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14378. fi
  14379. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14380. do :
  14381. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14382. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14383. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14384. cat >>confdefs.h <<_ACEOF
  14385. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14386. _ACEOF
  14387. fi
  14388. done
  14389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14390. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14391. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14392. $as_echo_n "(cached) " >&6
  14393. else
  14394. ac_check_lib_save_LIBS=$LIBS
  14395. LIBS="-liconv $LIBS"
  14396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14397. /* end confdefs.h. */
  14398. /* Override any GCC internal prototype to avoid an error.
  14399. Use char because int might match the return type of a GCC
  14400. builtin and then its argument prototype would still apply. */
  14401. #ifdef __cplusplus
  14402. extern "C"
  14403. #endif
  14404. char iconv_open ();
  14405. int
  14406. main ()
  14407. {
  14408. return iconv_open ();
  14409. ;
  14410. return 0;
  14411. }
  14412. _ACEOF
  14413. if ac_fn_c_try_link "$LINENO"; then :
  14414. ac_cv_lib_iconv_iconv_open=yes
  14415. else
  14416. ac_cv_lib_iconv_iconv_open=no
  14417. fi
  14418. rm -f core conftest.err conftest.$ac_objext \
  14419. conftest$ac_exeext conftest.$ac_ext
  14420. LIBS=$ac_check_lib_save_LIBS
  14421. fi
  14422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14423. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14424. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14425. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14426. fi
  14427. for ac_func in iconv
  14428. do :
  14429. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14430. if test "x$ac_cv_func_iconv" = xyes; then :
  14431. cat >>confdefs.h <<_ACEOF
  14432. #define HAVE_ICONV 1
  14433. _ACEOF
  14434. fi
  14435. done
  14436. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14437. "
  14438. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14439. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14440. fi
  14441. fi
  14442. # Check whether --enable-gcc-atomics was given.
  14443. if test "${enable_gcc_atomics+set}" = set; then :
  14444. enableval=$enable_gcc_atomics;
  14445. else
  14446. enable_gcc_atomics=yes
  14447. fi
  14448. if test x$enable_gcc_atomics = xyes; then
  14449. have_gcc_atomics=no
  14450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14451. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14453. /* end confdefs.h. */
  14454. int
  14455. main ()
  14456. {
  14457. int a;
  14458. void *x, *y, *z;
  14459. __sync_lock_test_and_set(&a, 4);
  14460. __sync_lock_test_and_set(&x, y);
  14461. __sync_fetch_and_add(&a, 1);
  14462. __sync_bool_compare_and_swap(&a, 5, 10);
  14463. __sync_bool_compare_and_swap(&x, y, z);
  14464. ;
  14465. return 0;
  14466. }
  14467. _ACEOF
  14468. if ac_fn_c_try_link "$LINENO"; then :
  14469. have_gcc_atomics=yes
  14470. fi
  14471. rm -f core conftest.err conftest.$ac_objext \
  14472. conftest$ac_exeext conftest.$ac_ext
  14473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14474. $as_echo "$have_gcc_atomics" >&6; }
  14475. if test x$have_gcc_atomics = xyes; then
  14476. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14477. else
  14478. # See if we have the minimum operation needed for GCC atomics
  14479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14480. /* end confdefs.h. */
  14481. int
  14482. main ()
  14483. {
  14484. int a;
  14485. __sync_lock_test_and_set(&a, 1);
  14486. __sync_lock_release(&a);
  14487. ;
  14488. return 0;
  14489. }
  14490. _ACEOF
  14491. if ac_fn_c_try_link "$LINENO"; then :
  14492. have_gcc_sync_lock_test_and_set=yes
  14493. fi
  14494. rm -f core conftest.err conftest.$ac_objext \
  14495. conftest$ac_exeext conftest.$ac_ext
  14496. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14497. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14498. fi
  14499. fi
  14500. fi
  14501. # Standard C sources
  14502. SOURCES="$SOURCES $srcdir/src/*.c"
  14503. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14504. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14505. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14506. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14507. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14508. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14509. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14510. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14511. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14512. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14513. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14514. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14515. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14516. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14517. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14518. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14519. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14520. # Check whether --enable-atomic was given.
  14521. if test "${enable_atomic+set}" = set; then :
  14522. enableval=$enable_atomic;
  14523. else
  14524. enable_atomic=yes
  14525. fi
  14526. if test x$enable_atomic != xyes; then
  14527. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14528. else
  14529. SUMMARY_modules="${SUMMARY_modules} atomic"
  14530. fi
  14531. # Check whether --enable-audio was given.
  14532. if test "${enable_audio+set}" = set; then :
  14533. enableval=$enable_audio;
  14534. else
  14535. enable_audio=yes
  14536. fi
  14537. if test x$enable_audio != xyes; then
  14538. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14539. else
  14540. SUMMARY_modules="${SUMMARY_modules} audio"
  14541. fi
  14542. # Check whether --enable-video was given.
  14543. if test "${enable_video+set}" = set; then :
  14544. enableval=$enable_video;
  14545. else
  14546. enable_video=yes
  14547. fi
  14548. if test x$enable_video != xyes; then
  14549. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14550. else
  14551. SUMMARY_modules="${SUMMARY_modules} video"
  14552. fi
  14553. # Check whether --enable-render was given.
  14554. if test "${enable_render+set}" = set; then :
  14555. enableval=$enable_render;
  14556. else
  14557. enable_render=yes
  14558. fi
  14559. if test x$enable_render != xyes; then
  14560. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14561. else
  14562. SUMMARY_modules="${SUMMARY_modules} render"
  14563. fi
  14564. # Check whether --enable-events was given.
  14565. if test "${enable_events+set}" = set; then :
  14566. enableval=$enable_events;
  14567. else
  14568. enable_events=yes
  14569. fi
  14570. if test x$enable_events != xyes; then
  14571. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14572. else
  14573. SUMMARY_modules="${SUMMARY_modules} events"
  14574. fi
  14575. # Check whether --enable-joystick was given.
  14576. if test "${enable_joystick+set}" = set; then :
  14577. enableval=$enable_joystick;
  14578. else
  14579. enable_joystick=yes
  14580. fi
  14581. if test x$enable_joystick != xyes; then
  14582. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14583. else
  14584. SUMMARY_modules="${SUMMARY_modules} joystick"
  14585. fi
  14586. # Check whether --enable-haptic was given.
  14587. if test "${enable_haptic+set}" = set; then :
  14588. enableval=$enable_haptic;
  14589. else
  14590. enable_haptic=yes
  14591. fi
  14592. if test x$enable_haptic != xyes; then
  14593. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14594. else
  14595. SUMMARY_modules="${SUMMARY_modules} haptic"
  14596. fi
  14597. # Check whether --enable-power was given.
  14598. if test "${enable_power+set}" = set; then :
  14599. enableval=$enable_power;
  14600. else
  14601. enable_power=yes
  14602. fi
  14603. if test x$enable_power != xyes; then
  14604. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14605. else
  14606. SUMMARY_modules="${SUMMARY_modules} power"
  14607. fi
  14608. # Check whether --enable-filesystem was given.
  14609. if test "${enable_filesystem+set}" = set; then :
  14610. enableval=$enable_filesystem;
  14611. else
  14612. enable_filesystem=yes
  14613. fi
  14614. if test x$enable_filesystem != xyes; then
  14615. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14616. else
  14617. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14618. fi
  14619. # Check whether --enable-threads was given.
  14620. if test "${enable_threads+set}" = set; then :
  14621. enableval=$enable_threads;
  14622. else
  14623. enable_threads=yes
  14624. fi
  14625. if test x$enable_threads != xyes; then
  14626. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14627. else
  14628. SUMMARY_modules="${SUMMARY_modules} threads"
  14629. fi
  14630. # Check whether --enable-timers was given.
  14631. if test "${enable_timers+set}" = set; then :
  14632. enableval=$enable_timers;
  14633. else
  14634. enable_timers=yes
  14635. fi
  14636. if test x$enable_timers != xyes; then
  14637. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14638. else
  14639. SUMMARY_modules="${SUMMARY_modules} timers"
  14640. fi
  14641. # Check whether --enable-file was given.
  14642. if test "${enable_file+set}" = set; then :
  14643. enableval=$enable_file;
  14644. else
  14645. enable_file=yes
  14646. fi
  14647. if test x$enable_file != xyes; then
  14648. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14649. else
  14650. SUMMARY_modules="${SUMMARY_modules} file"
  14651. fi
  14652. # Check whether --enable-loadso was given.
  14653. if test "${enable_loadso+set}" = set; then :
  14654. enableval=$enable_loadso;
  14655. else
  14656. enable_loadso=yes
  14657. fi
  14658. if test x$enable_loadso != xyes; then
  14659. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14660. else
  14661. SUMMARY_modules="${SUMMARY_modules} loadso"
  14662. fi
  14663. # Check whether --enable-cpuinfo was given.
  14664. if test "${enable_cpuinfo+set}" = set; then :
  14665. enableval=$enable_cpuinfo;
  14666. else
  14667. enable_cpuinfo=yes
  14668. fi
  14669. if test x$enable_cpuinfo != xyes; then
  14670. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14671. else
  14672. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14673. fi
  14674. # Check whether --enable-assembly was given.
  14675. if test "${enable_assembly+set}" = set; then :
  14676. enableval=$enable_assembly;
  14677. else
  14678. enable_assembly=yes
  14679. fi
  14680. if test x$enable_assembly = xyes; then
  14681. SUMMARY_modules="${SUMMARY_modules} assembly"
  14682. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14683. # Make sure that we don't generate floating point code that would
  14684. # cause illegal instruction exceptions on older processors
  14685. case "$host" in
  14686. *-*-darwin*)
  14687. # Don't need to worry about Apple hardware, it's all SSE capable
  14688. default_ssemath=yes
  14689. ;;
  14690. *64-*-*)
  14691. # x86 64-bit architectures all have SSE instructions
  14692. default_ssemath=yes
  14693. ;;
  14694. *)
  14695. default_ssemath=no
  14696. ;;
  14697. esac
  14698. # Check whether --enable-ssemath was given.
  14699. if test "${enable_ssemath+set}" = set; then :
  14700. enableval=$enable_ssemath;
  14701. else
  14702. enable_ssemath=$default_ssemath
  14703. fi
  14704. if test x$enable_ssemath = xno; then
  14705. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14706. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14707. fi
  14708. fi
  14709. # Check whether --enable-mmx was given.
  14710. if test "${enable_mmx+set}" = set; then :
  14711. enableval=$enable_mmx;
  14712. else
  14713. enable_mmx=yes
  14714. fi
  14715. if test x$enable_mmx = xyes; then
  14716. save_CFLAGS="$CFLAGS"
  14717. have_gcc_mmx=no
  14718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14719. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14720. mmx_CFLAGS="-mmmx"
  14721. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14723. /* end confdefs.h. */
  14724. #ifdef __MINGW32__
  14725. #include <_mingw.h>
  14726. #ifdef __MINGW64_VERSION_MAJOR
  14727. #include <intrin.h>
  14728. #else
  14729. #include <mmintrin.h>
  14730. #endif
  14731. #else
  14732. #include <mmintrin.h>
  14733. #endif
  14734. #ifndef __MMX__
  14735. #error Assembler CPP flag not enabled
  14736. #endif
  14737. int
  14738. main ()
  14739. {
  14740. ;
  14741. return 0;
  14742. }
  14743. _ACEOF
  14744. if ac_fn_c_try_compile "$LINENO"; then :
  14745. have_gcc_mmx=yes
  14746. fi
  14747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14749. $as_echo "$have_gcc_mmx" >&6; }
  14750. CFLAGS="$save_CFLAGS"
  14751. if test x$have_gcc_mmx = xyes; then
  14752. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14753. SUMMARY_math="${SUMMARY_math} mmx"
  14754. fi
  14755. fi
  14756. # Check whether --enable-3dnow was given.
  14757. if test "${enable_3dnow+set}" = set; then :
  14758. enableval=$enable_3dnow;
  14759. else
  14760. enable_3dnow=yes
  14761. fi
  14762. if test x$enable_3dnow = xyes; then
  14763. save_CFLAGS="$CFLAGS"
  14764. have_gcc_3dnow=no
  14765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14766. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14767. amd3dnow_CFLAGS="-m3dnow"
  14768. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14770. /* end confdefs.h. */
  14771. #include <mm3dnow.h>
  14772. #ifndef __3dNOW__
  14773. #error Assembler CPP flag not enabled
  14774. #endif
  14775. int
  14776. main ()
  14777. {
  14778. void *p = 0;
  14779. _m_prefetch(p);
  14780. ;
  14781. return 0;
  14782. }
  14783. _ACEOF
  14784. if ac_fn_c_try_link "$LINENO"; then :
  14785. have_gcc_3dnow=yes
  14786. fi
  14787. rm -f core conftest.err conftest.$ac_objext \
  14788. conftest$ac_exeext conftest.$ac_ext
  14789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14790. $as_echo "$have_gcc_3dnow" >&6; }
  14791. CFLAGS="$save_CFLAGS"
  14792. if test x$have_gcc_3dnow = xyes; then
  14793. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14794. SUMMARY_math="${SUMMARY_math} 3dnow"
  14795. fi
  14796. fi
  14797. # Check whether --enable-sse was given.
  14798. if test "${enable_sse+set}" = set; then :
  14799. enableval=$enable_sse;
  14800. else
  14801. enable_sse=yes
  14802. fi
  14803. if test x$enable_sse = xyes; then
  14804. save_CFLAGS="$CFLAGS"
  14805. have_gcc_sse=no
  14806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14807. $as_echo_n "checking for GCC -msse option... " >&6; }
  14808. sse_CFLAGS="-msse"
  14809. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14811. /* end confdefs.h. */
  14812. #ifdef __MINGW32__
  14813. #include <_mingw.h>
  14814. #ifdef __MINGW64_VERSION_MAJOR
  14815. #include <intrin.h>
  14816. #else
  14817. #include <xmmintrin.h>
  14818. #endif
  14819. #else
  14820. #include <xmmintrin.h>
  14821. #endif
  14822. #ifndef __SSE__
  14823. #error Assembler CPP flag not enabled
  14824. #endif
  14825. int
  14826. main ()
  14827. {
  14828. ;
  14829. return 0;
  14830. }
  14831. _ACEOF
  14832. if ac_fn_c_try_compile "$LINENO"; then :
  14833. have_gcc_sse=yes
  14834. fi
  14835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14837. $as_echo "$have_gcc_sse" >&6; }
  14838. CFLAGS="$save_CFLAGS"
  14839. if test x$have_gcc_sse = xyes; then
  14840. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14841. SUMMARY_math="${SUMMARY_math} sse"
  14842. fi
  14843. fi
  14844. # Check whether --enable-sse2 was given.
  14845. if test "${enable_sse2+set}" = set; then :
  14846. enableval=$enable_sse2;
  14847. else
  14848. enable_sse2=$default_ssemath
  14849. fi
  14850. if test x$enable_sse2 = xyes; then
  14851. save_CFLAGS="$CFLAGS"
  14852. have_gcc_sse2=no
  14853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14854. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14855. sse2_CFLAGS="-msse2"
  14856. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14858. /* end confdefs.h. */
  14859. #ifdef __MINGW32__
  14860. #include <_mingw.h>
  14861. #ifdef __MINGW64_VERSION_MAJOR
  14862. #include <intrin.h>
  14863. #else
  14864. #include <emmintrin.h>
  14865. #endif
  14866. #else
  14867. #include <emmintrin.h>
  14868. #endif
  14869. #ifndef __SSE2__
  14870. #error Assembler CPP flag not enabled
  14871. #endif
  14872. int
  14873. main ()
  14874. {
  14875. ;
  14876. return 0;
  14877. }
  14878. _ACEOF
  14879. if ac_fn_c_try_compile "$LINENO"; then :
  14880. have_gcc_sse2=yes
  14881. fi
  14882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14884. $as_echo "$have_gcc_sse2" >&6; }
  14885. CFLAGS="$save_CFLAGS"
  14886. if test x$have_gcc_sse2 = xyes; then
  14887. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14888. SUMMARY_math="${SUMMARY_math} sse2"
  14889. fi
  14890. fi
  14891. # Check whether --enable-altivec was given.
  14892. if test "${enable_altivec+set}" = set; then :
  14893. enableval=$enable_altivec;
  14894. else
  14895. enable_altivec=yes
  14896. fi
  14897. if test x$enable_altivec = xyes; then
  14898. save_CFLAGS="$CFLAGS"
  14899. have_gcc_altivec=no
  14900. have_altivec_h_hdr=no
  14901. altivec_CFLAGS="-maltivec"
  14902. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14904. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14906. /* end confdefs.h. */
  14907. #include <altivec.h>
  14908. vector unsigned int vzero() {
  14909. return vec_splat_u32(0);
  14910. }
  14911. int
  14912. main ()
  14913. {
  14914. ;
  14915. return 0;
  14916. }
  14917. _ACEOF
  14918. if ac_fn_c_try_compile "$LINENO"; then :
  14919. have_gcc_altivec=yes
  14920. have_altivec_h_hdr=yes
  14921. fi
  14922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14924. $as_echo "$have_gcc_altivec" >&6; }
  14925. if test x$have_gcc_altivec = xno; then
  14926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14927. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14929. /* end confdefs.h. */
  14930. vector unsigned int vzero() {
  14931. return vec_splat_u32(0);
  14932. }
  14933. int
  14934. main ()
  14935. {
  14936. ;
  14937. return 0;
  14938. }
  14939. _ACEOF
  14940. if ac_fn_c_try_compile "$LINENO"; then :
  14941. have_gcc_altivec=yes
  14942. fi
  14943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14945. $as_echo "$have_gcc_altivec" >&6; }
  14946. fi
  14947. if test x$have_gcc_altivec = xno; then
  14948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14949. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14950. altivec_CFLAGS="-faltivec"
  14951. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14953. /* end confdefs.h. */
  14954. #include <altivec.h>
  14955. vector unsigned int vzero() {
  14956. return vec_splat_u32(0);
  14957. }
  14958. int
  14959. main ()
  14960. {
  14961. ;
  14962. return 0;
  14963. }
  14964. _ACEOF
  14965. if ac_fn_c_try_compile "$LINENO"; then :
  14966. have_gcc_altivec=yes
  14967. have_altivec_h_hdr=yes
  14968. fi
  14969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14971. $as_echo "$have_gcc_altivec" >&6; }
  14972. fi
  14973. if test x$have_gcc_altivec = xno; then
  14974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14975. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14977. /* end confdefs.h. */
  14978. vector unsigned int vzero() {
  14979. return vec_splat_u32(0);
  14980. }
  14981. int
  14982. main ()
  14983. {
  14984. ;
  14985. return 0;
  14986. }
  14987. _ACEOF
  14988. if ac_fn_c_try_compile "$LINENO"; then :
  14989. have_gcc_altivec=yes
  14990. fi
  14991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14993. $as_echo "$have_gcc_altivec" >&6; }
  14994. fi
  14995. CFLAGS="$save_CFLAGS"
  14996. if test x$have_gcc_altivec = xyes; then
  14997. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  14998. if test x$have_altivec_h_hdr = xyes; then
  14999. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15000. fi
  15001. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15002. SUMMARY_math="${SUMMARY_math} altivec"
  15003. fi
  15004. fi
  15005. fi
  15006. CheckOSS()
  15007. {
  15008. # Check whether --enable-oss was given.
  15009. if test "${enable_oss+set}" = set; then :
  15010. enableval=$enable_oss;
  15011. else
  15012. enable_oss=maybe
  15013. fi
  15014. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15015. # use sndio instead. So on there, we default to disabled. You can force
  15016. # it on if you really want, though.
  15017. if test x$enable_oss = xmaybe; then
  15018. enable_oss=yes
  15019. case "$host" in
  15020. *-*-openbsd*)
  15021. enable_oss=no;;
  15022. esac
  15023. fi
  15024. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15026. $as_echo_n "checking for OSS audio support... " >&6; }
  15027. have_oss=no
  15028. if test x$have_oss != xyes; then
  15029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15030. /* end confdefs.h. */
  15031. #include <sys/soundcard.h>
  15032. int
  15033. main ()
  15034. {
  15035. int arg = SNDCTL_DSP_SETFRAGMENT;
  15036. ;
  15037. return 0;
  15038. }
  15039. _ACEOF
  15040. if ac_fn_c_try_compile "$LINENO"; then :
  15041. have_oss=yes
  15042. fi
  15043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15044. fi
  15045. if test x$have_oss != xyes; then
  15046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15047. /* end confdefs.h. */
  15048. #include <soundcard.h>
  15049. int
  15050. main ()
  15051. {
  15052. int arg = SNDCTL_DSP_SETFRAGMENT;
  15053. ;
  15054. return 0;
  15055. }
  15056. _ACEOF
  15057. if ac_fn_c_try_compile "$LINENO"; then :
  15058. have_oss=yes
  15059. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15060. fi
  15061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15062. fi
  15063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15064. $as_echo "$have_oss" >&6; }
  15065. if test x$have_oss = xyes; then
  15066. SUMMARY_audio="${SUMMARY_audio} oss"
  15067. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15068. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15069. have_audio=yes
  15070. # We may need to link with ossaudio emulation library
  15071. case "$host" in
  15072. *-*-openbsd*|*-*-netbsd*)
  15073. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15074. esac
  15075. fi
  15076. fi
  15077. }
  15078. CheckALSA()
  15079. {
  15080. # Check whether --enable-alsa was given.
  15081. if test "${enable_alsa+set}" = set; then :
  15082. enableval=$enable_alsa;
  15083. else
  15084. enable_alsa=yes
  15085. fi
  15086. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15087. alsa_save_CFLAGS="$CFLAGS"
  15088. alsa_save_LDFLAGS="$LDFLAGS"
  15089. alsa_save_LIBS="$LIBS"
  15090. alsa_found=yes
  15091. # Check whether --with-alsa-prefix was given.
  15092. if test "${with_alsa_prefix+set}" = set; then :
  15093. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15094. else
  15095. alsa_prefix=""
  15096. fi
  15097. # Check whether --with-alsa-inc-prefix was given.
  15098. if test "${with_alsa_inc_prefix+set}" = set; then :
  15099. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15100. else
  15101. alsa_inc_prefix=""
  15102. fi
  15103. # Check whether --enable-alsatest was given.
  15104. if test "${enable_alsatest+set}" = set; then :
  15105. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15106. else
  15107. enable_alsatest=yes
  15108. fi
  15109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15110. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15111. if test "$alsa_inc_prefix" != "" ; then
  15112. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15113. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15114. fi
  15115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15116. $as_echo "$ALSA_CFLAGS" >&6; }
  15117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15118. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15119. if test "$alsa_prefix" != "" ; then
  15120. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15121. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15122. fi
  15123. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15124. LIBS=`echo $LIBS | sed 's/-lm//'`
  15125. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15126. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15127. LIBS=`echo $LIBS | sed 's/ //'`
  15128. LIBS="$ALSA_LIBS $LIBS"
  15129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15130. $as_echo "$ALSA_LIBS" >&6; }
  15131. min_alsa_version=0.9.0
  15132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15133. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15134. no_alsa=""
  15135. alsa_min_major_version=`echo $min_alsa_version | \
  15136. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15137. alsa_min_minor_version=`echo $min_alsa_version | \
  15138. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15139. alsa_min_micro_version=`echo $min_alsa_version | \
  15140. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15141. ac_ext=c
  15142. ac_cpp='$CPP $CPPFLAGS'
  15143. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15144. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15145. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15147. /* end confdefs.h. */
  15148. #include <alsa/asoundlib.h>
  15149. int
  15150. main ()
  15151. {
  15152. /* ensure backward compatibility */
  15153. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15154. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15155. #endif
  15156. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15157. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15158. #endif
  15159. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15160. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15161. #endif
  15162. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15163. exit(0);
  15164. # else
  15165. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15166. # error not present
  15167. # endif
  15168. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15169. exit(0);
  15170. # else
  15171. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15172. # error not present
  15173. # endif
  15174. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15175. # error not present
  15176. # endif
  15177. # endif
  15178. # endif
  15179. exit(0);
  15180. ;
  15181. return 0;
  15182. }
  15183. _ACEOF
  15184. if ac_fn_c_try_compile "$LINENO"; then :
  15185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15186. $as_echo "found." >&6; }
  15187. else
  15188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15189. $as_echo "not present." >&6; }
  15190. alsa_found=no
  15191. fi
  15192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15193. ac_ext=c
  15194. ac_cpp='$CPP $CPPFLAGS'
  15195. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15196. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15197. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15198. if test "x$enable_alsatest" = "xyes"; then
  15199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15200. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15201. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15202. $as_echo_n "(cached) " >&6
  15203. else
  15204. ac_check_lib_save_LIBS=$LIBS
  15205. LIBS="-lasound $LIBS"
  15206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15207. /* end confdefs.h. */
  15208. /* Override any GCC internal prototype to avoid an error.
  15209. Use char because int might match the return type of a GCC
  15210. builtin and then its argument prototype would still apply. */
  15211. #ifdef __cplusplus
  15212. extern "C"
  15213. #endif
  15214. char snd_ctl_open ();
  15215. int
  15216. main ()
  15217. {
  15218. return snd_ctl_open ();
  15219. ;
  15220. return 0;
  15221. }
  15222. _ACEOF
  15223. if ac_fn_c_try_link "$LINENO"; then :
  15224. ac_cv_lib_asound_snd_ctl_open=yes
  15225. else
  15226. ac_cv_lib_asound_snd_ctl_open=no
  15227. fi
  15228. rm -f core conftest.err conftest.$ac_objext \
  15229. conftest$ac_exeext conftest.$ac_ext
  15230. LIBS=$ac_check_lib_save_LIBS
  15231. fi
  15232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15233. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15234. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15235. cat >>confdefs.h <<_ACEOF
  15236. #define HAVE_LIBASOUND 1
  15237. _ACEOF
  15238. LIBS="-lasound $LIBS"
  15239. else
  15240. alsa_found=no
  15241. fi
  15242. fi
  15243. if test "x$alsa_found" = "xyes" ; then
  15244. have_alsa=yes
  15245. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15246. LIBS=`echo $LIBS | sed 's/ //'`
  15247. LIBS="-lasound $LIBS"
  15248. fi
  15249. if test "x$alsa_found" = "xno" ; then
  15250. have_alsa=no
  15251. CFLAGS="$alsa_save_CFLAGS"
  15252. LDFLAGS="$alsa_save_LDFLAGS"
  15253. LIBS="$alsa_save_LIBS"
  15254. ALSA_CFLAGS=""
  15255. ALSA_LIBS=""
  15256. fi
  15257. # Restore all flags from before the ALSA detection runs
  15258. CFLAGS="$alsa_save_CFLAGS"
  15259. LDFLAGS="$alsa_save_LDFLAGS"
  15260. LIBS="$alsa_save_LIBS"
  15261. if test x$have_alsa = xyes; then
  15262. # Check whether --enable-alsa-shared was given.
  15263. if test "${enable_alsa_shared+set}" = set; then :
  15264. enableval=$enable_alsa_shared;
  15265. else
  15266. enable_alsa_shared=yes
  15267. fi
  15268. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15269. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15270. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15271. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15272. if test x$have_loadso != xyes && \
  15273. test x$enable_alsa_shared = xyes; then
  15274. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15275. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15276. fi
  15277. if test x$have_loadso = xyes && \
  15278. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15279. echo "-- dynamic libasound -> $alsa_lib"
  15280. cat >>confdefs.h <<_ACEOF
  15281. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15282. _ACEOF
  15283. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15284. else
  15285. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15286. SUMMARY_audio="${SUMMARY_audio} alsa"
  15287. fi
  15288. have_audio=yes
  15289. fi
  15290. fi
  15291. }
  15292. CheckESD()
  15293. {
  15294. # Check whether --enable-esd was given.
  15295. if test "${enable_esd+set}" = set; then :
  15296. enableval=$enable_esd;
  15297. else
  15298. enable_esd=yes
  15299. fi
  15300. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15301. # Check whether --with-esd-prefix was given.
  15302. if test "${with_esd_prefix+set}" = set; then :
  15303. withval=$with_esd_prefix; esd_prefix="$withval"
  15304. else
  15305. esd_prefix=""
  15306. fi
  15307. # Check whether --with-esd-exec-prefix was given.
  15308. if test "${with_esd_exec_prefix+set}" = set; then :
  15309. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15310. else
  15311. esd_exec_prefix=""
  15312. fi
  15313. # Check whether --enable-esdtest was given.
  15314. if test "${enable_esdtest+set}" = set; then :
  15315. enableval=$enable_esdtest;
  15316. else
  15317. enable_esdtest=yes
  15318. fi
  15319. if test x$esd_exec_prefix != x ; then
  15320. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15321. if test x${ESD_CONFIG+set} != xset ; then
  15322. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15323. fi
  15324. fi
  15325. if test x$esd_prefix != x ; then
  15326. esd_args="$esd_args --prefix=$esd_prefix"
  15327. if test x${ESD_CONFIG+set} != xset ; then
  15328. ESD_CONFIG=$esd_prefix/bin/esd-config
  15329. fi
  15330. fi
  15331. # Extract the first word of "esd-config", so it can be a program name with args.
  15332. set dummy esd-config; ac_word=$2
  15333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15334. $as_echo_n "checking for $ac_word... " >&6; }
  15335. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15336. $as_echo_n "(cached) " >&6
  15337. else
  15338. case $ESD_CONFIG in
  15339. [\\/]* | ?:[\\/]*)
  15340. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15341. ;;
  15342. *)
  15343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15344. for as_dir in $PATH
  15345. do
  15346. IFS=$as_save_IFS
  15347. test -z "$as_dir" && as_dir=.
  15348. for ac_exec_ext in '' $ac_executable_extensions; do
  15349. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15350. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15352. break 2
  15353. fi
  15354. done
  15355. done
  15356. IFS=$as_save_IFS
  15357. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15358. ;;
  15359. esac
  15360. fi
  15361. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15362. if test -n "$ESD_CONFIG"; then
  15363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15364. $as_echo "$ESD_CONFIG" >&6; }
  15365. else
  15366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15367. $as_echo "no" >&6; }
  15368. fi
  15369. min_esd_version=0.2.8
  15370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15371. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15372. no_esd=""
  15373. if test "$ESD_CONFIG" = "no" ; then
  15374. no_esd=yes
  15375. else
  15376. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15377. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15378. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15379. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15380. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15381. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15382. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15383. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15384. if test "x$enable_esdtest" = "xyes" ; then
  15385. ac_save_CFLAGS="$CFLAGS"
  15386. ac_save_LIBS="$LIBS"
  15387. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15388. LIBS="$LIBS $ESD_LIBS"
  15389. rm -f conf.esdtest
  15390. if test "$cross_compiling" = yes; then :
  15391. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15392. else
  15393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15394. /* end confdefs.h. */
  15395. #include <stdio.h>
  15396. #include <stdlib.h>
  15397. #include <string.h>
  15398. #include <esd.h>
  15399. char*
  15400. my_strdup (char *str)
  15401. {
  15402. char *new_str;
  15403. if (str)
  15404. {
  15405. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15406. strcpy (new_str, str);
  15407. }
  15408. else
  15409. new_str = NULL;
  15410. return new_str;
  15411. }
  15412. int main ()
  15413. {
  15414. int major, minor, micro;
  15415. char *tmp_version;
  15416. system ("touch conf.esdtest");
  15417. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15418. tmp_version = my_strdup("$min_esd_version");
  15419. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15420. printf("%s, bad version string\n", "$min_esd_version");
  15421. exit(1);
  15422. }
  15423. if (($esd_major_version > major) ||
  15424. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15425. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15426. {
  15427. return 0;
  15428. }
  15429. else
  15430. {
  15431. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15432. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15433. printf("*** best to upgrade to the required version.\n");
  15434. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15435. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15436. printf("*** config.cache before re-running configure\n");
  15437. return 1;
  15438. }
  15439. }
  15440. _ACEOF
  15441. if ac_fn_c_try_run "$LINENO"; then :
  15442. else
  15443. no_esd=yes
  15444. fi
  15445. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15446. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15447. fi
  15448. CFLAGS="$ac_save_CFLAGS"
  15449. LIBS="$ac_save_LIBS"
  15450. fi
  15451. fi
  15452. if test "x$no_esd" = x ; then
  15453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15454. $as_echo "yes" >&6; }
  15455. have_esd=yes
  15456. else
  15457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15458. $as_echo "no" >&6; }
  15459. if test "$ESD_CONFIG" = "no" ; then
  15460. echo "*** The esd-config script installed by ESD could not be found"
  15461. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15462. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15463. echo "*** full path to esd-config."
  15464. else
  15465. if test -f conf.esdtest ; then
  15466. :
  15467. else
  15468. echo "*** Could not run ESD test program, checking why..."
  15469. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15470. LIBS="$LIBS $ESD_LIBS"
  15471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15472. /* end confdefs.h. */
  15473. #include <stdio.h>
  15474. #include <esd.h>
  15475. int
  15476. main ()
  15477. {
  15478. return 0;
  15479. ;
  15480. return 0;
  15481. }
  15482. _ACEOF
  15483. if ac_fn_c_try_link "$LINENO"; then :
  15484. echo "*** The test program compiled, but did not run. This usually means"
  15485. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15486. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15487. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15488. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15489. echo "*** is required on your system"
  15490. echo "***"
  15491. echo "*** If you have an old version installed, it is best to remove it, although"
  15492. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15493. else
  15494. echo "*** The test program failed to compile or link. See the file config.log for the"
  15495. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15496. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15497. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15498. fi
  15499. rm -f core conftest.err conftest.$ac_objext \
  15500. conftest$ac_exeext conftest.$ac_ext
  15501. CFLAGS="$ac_save_CFLAGS"
  15502. LIBS="$ac_save_LIBS"
  15503. fi
  15504. fi
  15505. ESD_CFLAGS=""
  15506. ESD_LIBS=""
  15507. have_esd=no
  15508. fi
  15509. rm -f conf.esdtest
  15510. if test x$have_esd = xyes; then
  15511. # Check whether --enable-esd-shared was given.
  15512. if test "${enable_esd_shared+set}" = set; then :
  15513. enableval=$enable_esd_shared;
  15514. else
  15515. enable_esd_shared=yes
  15516. fi
  15517. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15518. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15519. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15520. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15521. if test x$have_loadso != xyes && \
  15522. test x$enable_esd_shared = xyes; then
  15523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15524. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15525. fi
  15526. if test x$have_loadso = xyes && \
  15527. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15528. echo "-- dynamic libesd -> $esd_lib"
  15529. cat >>confdefs.h <<_ACEOF
  15530. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15531. _ACEOF
  15532. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15533. else
  15534. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15535. SUMMARY_audio="${SUMMARY_audio} esd"
  15536. fi
  15537. have_audio=yes
  15538. fi
  15539. fi
  15540. }
  15541. CheckPulseAudio()
  15542. {
  15543. # Check whether --enable-pulseaudio was given.
  15544. if test "${enable_pulseaudio+set}" = set; then :
  15545. enableval=$enable_pulseaudio;
  15546. else
  15547. enable_pulseaudio=yes
  15548. fi
  15549. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15550. audio_pulseaudio=no
  15551. PULSEAUDIO_REQUIRED_VERSION=0.9
  15552. # Extract the first word of "pkg-config", so it can be a program name with args.
  15553. set dummy pkg-config; ac_word=$2
  15554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15555. $as_echo_n "checking for $ac_word... " >&6; }
  15556. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15557. $as_echo_n "(cached) " >&6
  15558. else
  15559. case $PKG_CONFIG in
  15560. [\\/]* | ?:[\\/]*)
  15561. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15562. ;;
  15563. *)
  15564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15565. for as_dir in $PATH
  15566. do
  15567. IFS=$as_save_IFS
  15568. test -z "$as_dir" && as_dir=.
  15569. for ac_exec_ext in '' $ac_executable_extensions; do
  15570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15571. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15573. break 2
  15574. fi
  15575. done
  15576. done
  15577. IFS=$as_save_IFS
  15578. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15579. ;;
  15580. esac
  15581. fi
  15582. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15583. if test -n "$PKG_CONFIG"; then
  15584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15585. $as_echo "$PKG_CONFIG" >&6; }
  15586. else
  15587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15588. $as_echo "no" >&6; }
  15589. fi
  15590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15591. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15592. if test x$PKG_CONFIG != xno; then
  15593. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15594. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15595. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15596. audio_pulseaudio=yes
  15597. fi
  15598. fi
  15599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15600. $as_echo "$audio_pulseaudio" >&6; }
  15601. if test x$audio_pulseaudio = xyes; then
  15602. # Check whether --enable-pulseaudio-shared was given.
  15603. if test "${enable_pulseaudio_shared+set}" = set; then :
  15604. enableval=$enable_pulseaudio_shared;
  15605. else
  15606. enable_pulseaudio_shared=yes
  15607. fi
  15608. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15609. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15610. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15611. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15612. if test x$have_loadso != xyes && \
  15613. test x$enable_pulseaudio_shared = xyes; then
  15614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15615. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15616. fi
  15617. if test x$have_loadso = xyes && \
  15618. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15619. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15620. cat >>confdefs.h <<_ACEOF
  15621. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15622. _ACEOF
  15623. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15624. case "$host" in
  15625. # On Solaris, pulseaudio must be linked deferred explicitly
  15626. # to prevent undefined symbol failures.
  15627. *-*-solaris*)
  15628. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15629. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15630. esac
  15631. else
  15632. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15633. SUMMARY_audio="${SUMMARY_audio} pulse"
  15634. fi
  15635. have_audio=yes
  15636. fi
  15637. fi
  15638. }
  15639. CheckARTSC()
  15640. {
  15641. # Check whether --enable-arts was given.
  15642. if test "${enable_arts+set}" = set; then :
  15643. enableval=$enable_arts;
  15644. else
  15645. enable_arts=yes
  15646. fi
  15647. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15648. # Extract the first word of "artsc-config", so it can be a program name with args.
  15649. set dummy artsc-config; ac_word=$2
  15650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15651. $as_echo_n "checking for $ac_word... " >&6; }
  15652. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15653. $as_echo_n "(cached) " >&6
  15654. else
  15655. case $ARTSCONFIG in
  15656. [\\/]* | ?:[\\/]*)
  15657. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15658. ;;
  15659. *)
  15660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15661. for as_dir in $PATH
  15662. do
  15663. IFS=$as_save_IFS
  15664. test -z "$as_dir" && as_dir=.
  15665. for ac_exec_ext in '' $ac_executable_extensions; do
  15666. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15667. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15669. break 2
  15670. fi
  15671. done
  15672. done
  15673. IFS=$as_save_IFS
  15674. ;;
  15675. esac
  15676. fi
  15677. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15678. if test -n "$ARTSCONFIG"; then
  15679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15680. $as_echo "$ARTSCONFIG" >&6; }
  15681. else
  15682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15683. $as_echo "no" >&6; }
  15684. fi
  15685. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15686. : # arts isn't installed
  15687. else
  15688. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15689. ARTS_LIBS=`$ARTSCONFIG --libs`
  15690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15691. $as_echo_n "checking for aRts development environment... " >&6; }
  15692. audio_arts=no
  15693. save_CFLAGS="$CFLAGS"
  15694. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15696. /* end confdefs.h. */
  15697. #include <artsc.h>
  15698. int
  15699. main ()
  15700. {
  15701. arts_stream_t stream;
  15702. ;
  15703. return 0;
  15704. }
  15705. _ACEOF
  15706. if ac_fn_c_try_compile "$LINENO"; then :
  15707. audio_arts=yes
  15708. fi
  15709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15710. CFLAGS="$save_CFLAGS"
  15711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15712. $as_echo "$audio_arts" >&6; }
  15713. if test x$audio_arts = xyes; then
  15714. # Check whether --enable-arts-shared was given.
  15715. if test "${enable_arts_shared+set}" = set; then :
  15716. enableval=$enable_arts_shared;
  15717. else
  15718. enable_arts_shared=yes
  15719. fi
  15720. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15721. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15722. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15723. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15724. if test x$have_loadso != xyes && \
  15725. test x$enable_arts_shared = xyes; then
  15726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15727. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15728. fi
  15729. if test x$have_loadso = xyes && \
  15730. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15731. echo "-- dynamic libartsc -> $arts_lib"
  15732. cat >>confdefs.h <<_ACEOF
  15733. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15734. _ACEOF
  15735. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15736. else
  15737. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15738. SUMMARY_audio="${SUMMARY_audio} arts"
  15739. fi
  15740. have_audio=yes
  15741. fi
  15742. fi
  15743. fi
  15744. }
  15745. CheckNAS()
  15746. {
  15747. # Check whether --enable-nas was given.
  15748. if test "${enable_nas+set}" = set; then :
  15749. enableval=$enable_nas;
  15750. else
  15751. enable_nas=yes
  15752. fi
  15753. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15754. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15755. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15756. have_nas_hdr=yes
  15757. fi
  15758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15759. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15760. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15761. $as_echo_n "(cached) " >&6
  15762. else
  15763. ac_check_lib_save_LIBS=$LIBS
  15764. LIBS="-laudio $LIBS"
  15765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15766. /* end confdefs.h. */
  15767. /* Override any GCC internal prototype to avoid an error.
  15768. Use char because int might match the return type of a GCC
  15769. builtin and then its argument prototype would still apply. */
  15770. #ifdef __cplusplus
  15771. extern "C"
  15772. #endif
  15773. char AuOpenServer ();
  15774. int
  15775. main ()
  15776. {
  15777. return AuOpenServer ();
  15778. ;
  15779. return 0;
  15780. }
  15781. _ACEOF
  15782. if ac_fn_c_try_link "$LINENO"; then :
  15783. ac_cv_lib_audio_AuOpenServer=yes
  15784. else
  15785. ac_cv_lib_audio_AuOpenServer=no
  15786. fi
  15787. rm -f core conftest.err conftest.$ac_objext \
  15788. conftest$ac_exeext conftest.$ac_ext
  15789. LIBS=$ac_check_lib_save_LIBS
  15790. fi
  15791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15792. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15793. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15794. have_nas_lib=yes
  15795. fi
  15796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15797. $as_echo_n "checking for NAS audio support... " >&6; }
  15798. have_nas=no
  15799. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15800. have_nas=yes
  15801. NAS_LIBS="-laudio"
  15802. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15803. have_nas=yes
  15804. NAS_CFLAGS="-I/usr/X11R6/include/"
  15805. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15806. fi
  15807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15808. $as_echo "$have_nas" >&6; }
  15809. if test x$have_nas = xyes; then
  15810. # Check whether --enable-nas-shared was given.
  15811. if test "${enable_nas_shared+set}" = set; then :
  15812. enableval=$enable_nas_shared;
  15813. else
  15814. enable_nas_shared=yes
  15815. fi
  15816. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15817. if test x$have_loadso != xyes && \
  15818. test x$enable_nas_shared = xyes; then
  15819. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15820. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15821. fi
  15822. if test x$have_loadso = xyes && \
  15823. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15824. echo "-- dynamic libaudio -> $nas_lib"
  15825. cat >>confdefs.h <<_ACEOF
  15826. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15827. _ACEOF
  15828. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15829. else
  15830. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15831. SUMMARY_audio="${SUMMARY_audio} nas"
  15832. fi
  15833. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15834. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15835. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15836. have_audio=yes
  15837. fi
  15838. fi
  15839. }
  15840. CheckSNDIO()
  15841. {
  15842. # Check whether --enable-sndio was given.
  15843. if test "${enable_sndio+set}" = set; then :
  15844. enableval=$enable_sndio;
  15845. else
  15846. enable_sndio=yes
  15847. fi
  15848. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15849. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15850. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15851. have_sndio_hdr=yes
  15852. fi
  15853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15854. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15855. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15856. $as_echo_n "(cached) " >&6
  15857. else
  15858. ac_check_lib_save_LIBS=$LIBS
  15859. LIBS="-lsndio $LIBS"
  15860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15861. /* end confdefs.h. */
  15862. /* Override any GCC internal prototype to avoid an error.
  15863. Use char because int might match the return type of a GCC
  15864. builtin and then its argument prototype would still apply. */
  15865. #ifdef __cplusplus
  15866. extern "C"
  15867. #endif
  15868. char sio_open ();
  15869. int
  15870. main ()
  15871. {
  15872. return sio_open ();
  15873. ;
  15874. return 0;
  15875. }
  15876. _ACEOF
  15877. if ac_fn_c_try_link "$LINENO"; then :
  15878. ac_cv_lib_sndio_sio_open=yes
  15879. else
  15880. ac_cv_lib_sndio_sio_open=no
  15881. fi
  15882. rm -f core conftest.err conftest.$ac_objext \
  15883. conftest$ac_exeext conftest.$ac_ext
  15884. LIBS=$ac_check_lib_save_LIBS
  15885. fi
  15886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15887. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15888. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15889. have_sndio_lib=yes
  15890. fi
  15891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15892. $as_echo_n "checking for sndio audio support... " >&6; }
  15893. have_sndio=no
  15894. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15895. have_sndio=yes
  15896. SNDIO_LIBS="-lsndio"
  15897. fi
  15898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15899. $as_echo "$have_sndio" >&6; }
  15900. if test x$have_sndio = xyes; then
  15901. # Check whether --enable-sndio-shared was given.
  15902. if test "${enable_sndio_shared+set}" = set; then :
  15903. enableval=$enable_sndio_shared;
  15904. else
  15905. enable_sndio_shared=yes
  15906. fi
  15907. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15908. if test x$have_loadso != xyes && \
  15909. test x$enable_sndio_shared = xyes; then
  15910. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15911. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15912. fi
  15913. if test x$have_loadso = xyes && \
  15914. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15915. echo "-- dynamic libsndio -> $sndio_lib"
  15916. cat >>confdefs.h <<_ACEOF
  15917. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15918. _ACEOF
  15919. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  15920. else
  15921. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15922. SUMMARY_audio="${SUMMARY_audio} sndio"
  15923. fi
  15924. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15925. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15926. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15927. have_audio=yes
  15928. fi
  15929. fi
  15930. }
  15931. CheckDiskAudio()
  15932. {
  15933. # Check whether --enable-diskaudio was given.
  15934. if test "${enable_diskaudio+set}" = set; then :
  15935. enableval=$enable_diskaudio;
  15936. else
  15937. enable_diskaudio=yes
  15938. fi
  15939. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15940. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15941. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15942. SUMMARY_audio="${SUMMARY_audio} disk"
  15943. fi
  15944. }
  15945. CheckDummyAudio()
  15946. {
  15947. # Check whether --enable-dummyaudio was given.
  15948. if test "${enable_dummyaudio+set}" = set; then :
  15949. enableval=$enable_dummyaudio;
  15950. else
  15951. enable_dummyaudio=yes
  15952. fi
  15953. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15954. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15955. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15956. SUMMARY_audio="${SUMMARY_audio} dummy"
  15957. fi
  15958. }
  15959. CheckVisibilityHidden()
  15960. {
  15961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15962. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15963. have_gcc_fvisibility=no
  15964. visibility_CFLAGS="-fvisibility=hidden"
  15965. save_CFLAGS="$CFLAGS"
  15966. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15968. /* end confdefs.h. */
  15969. #if !defined(__GNUC__) || __GNUC__ < 4
  15970. #error SDL only uses visibility attributes in GCC 4 or newer
  15971. #endif
  15972. int
  15973. main ()
  15974. {
  15975. ;
  15976. return 0;
  15977. }
  15978. _ACEOF
  15979. if ac_fn_c_try_compile "$LINENO"; then :
  15980. have_gcc_fvisibility=yes
  15981. fi
  15982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15984. $as_echo "$have_gcc_fvisibility" >&6; }
  15985. CFLAGS="$save_CFLAGS"
  15986. if test x$have_gcc_fvisibility = xyes; then
  15987. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15988. fi
  15989. }
  15990. CheckStackBoundary()
  15991. {
  15992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  15993. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  15994. have_gcc_preferred_stack_boundary=no
  15995. save_CFLAGS="$CFLAGS"
  15996. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  15997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15998. /* end confdefs.h. */
  15999. int x = 0;
  16000. int
  16001. main ()
  16002. {
  16003. ;
  16004. return 0;
  16005. }
  16006. _ACEOF
  16007. if ac_fn_c_try_compile "$LINENO"; then :
  16008. have_gcc_preferred_stack_boundary=yes
  16009. fi
  16010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16012. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16013. CFLAGS="$save_CFLAGS"
  16014. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16015. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16016. fi
  16017. }
  16018. CheckWarnAll()
  16019. {
  16020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16021. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16022. have_gcc_Wall=no
  16023. save_CFLAGS="$CFLAGS"
  16024. CFLAGS="$save_CFLAGS -Wall"
  16025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16026. /* end confdefs.h. */
  16027. int x = 0;
  16028. int
  16029. main ()
  16030. {
  16031. ;
  16032. return 0;
  16033. }
  16034. _ACEOF
  16035. if ac_fn_c_try_compile "$LINENO"; then :
  16036. have_gcc_Wall=yes
  16037. fi
  16038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16040. $as_echo "$have_gcc_Wall" >&6; }
  16041. CFLAGS="$save_CFLAGS"
  16042. if test x$have_gcc_Wall = xyes; then
  16043. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16045. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16046. need_gcc_Wno_multichar=no
  16047. case "$host" in
  16048. *-*-haiku*)
  16049. need_gcc_Wno_multichar=yes
  16050. ;;
  16051. esac
  16052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16053. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16054. if test x$need_gcc_Wno_multichar = xyes; then
  16055. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16056. fi
  16057. fi
  16058. }
  16059. CheckWayland()
  16060. {
  16061. # Check whether --enable-video-wayland was given.
  16062. if test "${enable_video_wayland+set}" = set; then :
  16063. enableval=$enable_video_wayland;
  16064. else
  16065. enable_video_wayland=yes
  16066. fi
  16067. # Check whether --enable-video-wayland-qt-touch was given.
  16068. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16069. enableval=$enable_video_wayland_qt_touch;
  16070. else
  16071. enable_video_wayland_qt_touch=yes
  16072. fi
  16073. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16074. # Extract the first word of "pkg-config", so it can be a program name with args.
  16075. set dummy pkg-config; ac_word=$2
  16076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16077. $as_echo_n "checking for $ac_word... " >&6; }
  16078. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16079. $as_echo_n "(cached) " >&6
  16080. else
  16081. case $PKG_CONFIG in
  16082. [\\/]* | ?:[\\/]*)
  16083. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16084. ;;
  16085. *)
  16086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16087. for as_dir in $PATH
  16088. do
  16089. IFS=$as_save_IFS
  16090. test -z "$as_dir" && as_dir=.
  16091. for ac_exec_ext in '' $ac_executable_extensions; do
  16092. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16093. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16094. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16095. break 2
  16096. fi
  16097. done
  16098. done
  16099. IFS=$as_save_IFS
  16100. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16101. ;;
  16102. esac
  16103. fi
  16104. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16105. if test -n "$PKG_CONFIG"; then
  16106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16107. $as_echo "$PKG_CONFIG" >&6; }
  16108. else
  16109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16110. $as_echo "no" >&6; }
  16111. fi
  16112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16113. $as_echo_n "checking for Wayland support... " >&6; }
  16114. video_wayland=no
  16115. if test x$PKG_CONFIG != xno && \
  16116. test x$video_opengl_egl = xyes && \
  16117. test x$video_opengles_v2 = xyes; then
  16118. if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
  16119. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16120. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16121. video_wayland=yes
  16122. fi
  16123. fi
  16124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16125. $as_echo "$video_wayland" >&6; }
  16126. if test x$video_wayland = xyes; then
  16127. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16128. if test x$enable_video_wayland_qt_touch = xyes; then
  16129. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16130. fi
  16131. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16132. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
  16133. # Check whether --enable-wayland-shared was given.
  16134. if test "${enable_wayland_shared+set}" = set; then :
  16135. enableval=$enable_wayland_shared;
  16136. else
  16137. enable_wayland_shared=maybe
  16138. fi
  16139. case "$host" in
  16140. *)
  16141. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16142. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16143. if test x$wayland_egl_lib = x; then
  16144. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16145. fi
  16146. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16147. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16148. ;;
  16149. esac
  16150. if test x$enable_wayland_shared = xmaybe; then
  16151. enable_wayland_shared=yes
  16152. fi
  16153. if test x$have_loadso != xyes && \
  16154. test x$enable_wayland_shared = xyes; then
  16155. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16156. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16157. enable_wayland_shared=no
  16158. fi
  16159. if test x$have_loadso = xyes && \
  16160. test x$enable_wayland_shared = xyes && \
  16161. test x$wayland_client_lib != x && \
  16162. test x$wayland_egl_lib != x && \
  16163. test x$wayland_cursor_lib != x && \
  16164. test x$xkbcommon_lib != x; then
  16165. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16166. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16167. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16168. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16169. cat >>confdefs.h <<_ACEOF
  16170. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16171. _ACEOF
  16172. cat >>confdefs.h <<_ACEOF
  16173. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16174. _ACEOF
  16175. cat >>confdefs.h <<_ACEOF
  16176. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16177. _ACEOF
  16178. cat >>confdefs.h <<_ACEOF
  16179. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16180. _ACEOF
  16181. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16182. else
  16183. enable_wayland_shared=no
  16184. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16185. SUMMARY_video="${SUMMARY_video} wayland"
  16186. fi
  16187. have_video=yes
  16188. fi
  16189. fi
  16190. }
  16191. CheckMir()
  16192. {
  16193. # Check whether --enable-video-mir was given.
  16194. if test "${enable_video_mir+set}" = set; then :
  16195. enableval=$enable_video_mir;
  16196. else
  16197. enable_video_mir=yes
  16198. fi
  16199. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16200. # Extract the first word of "pkg-config", so it can be a program name with args.
  16201. set dummy pkg-config; ac_word=$2
  16202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16203. $as_echo_n "checking for $ac_word... " >&6; }
  16204. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16205. $as_echo_n "(cached) " >&6
  16206. else
  16207. case $PKG_CONFIG in
  16208. [\\/]* | ?:[\\/]*)
  16209. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16210. ;;
  16211. *)
  16212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16213. for as_dir in $PATH
  16214. do
  16215. IFS=$as_save_IFS
  16216. test -z "$as_dir" && as_dir=.
  16217. for ac_exec_ext in '' $ac_executable_extensions; do
  16218. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16219. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16220. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16221. break 2
  16222. fi
  16223. done
  16224. done
  16225. IFS=$as_save_IFS
  16226. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16227. ;;
  16228. esac
  16229. fi
  16230. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16231. if test -n "$PKG_CONFIG"; then
  16232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16233. $as_echo "$PKG_CONFIG" >&6; }
  16234. else
  16235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16236. $as_echo "no" >&6; }
  16237. fi
  16238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16239. $as_echo_n "checking for Mir support... " >&6; }
  16240. video_mir=no
  16241. if test x$PKG_CONFIG != xno; then
  16242. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16243. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16244. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16245. save_CFLAGS="$CFLAGS"
  16246. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16248. /* end confdefs.h. */
  16249. #include <mir_toolkit/mir_client_library.h>
  16250. int
  16251. main ()
  16252. {
  16253. MirMotionToolType tool = mir_motion_tool_type_mouse;
  16254. ;
  16255. return 0;
  16256. }
  16257. _ACEOF
  16258. if ac_fn_c_try_compile "$LINENO"; then :
  16259. video_mir=yes
  16260. fi
  16261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16262. CFLAGS="$save_CFLAGS"
  16263. fi
  16264. fi
  16265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16266. $as_echo "$video_mir" >&6; }
  16267. if test x$video_mir = xyes; then
  16268. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16269. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16270. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16271. # Check whether --enable-mir-shared was given.
  16272. if test "${enable_mir_shared+set}" = set; then :
  16273. enableval=$enable_mir_shared;
  16274. else
  16275. enable_mir_shared=maybe
  16276. fi
  16277. case "$host" in
  16278. *)
  16279. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16280. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16281. ;;
  16282. esac
  16283. if test x$enable_mir_shared = xmaybe; then
  16284. enable_mir_shared=yes
  16285. fi
  16286. if test x$have_loadso != xyes && \
  16287. test x$enable_mir_shared = xyes; then
  16288. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16289. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16290. enable_mir_shared=no
  16291. fi
  16292. if test x$have_loadso = xyes && \
  16293. test x$enable_mir_shared = xyes && \
  16294. test x$mirclient_lib != x && \
  16295. test x$xkbcommon_lib != x; then
  16296. echo "-- dynamic libmirclient -> $mirclient_lib"
  16297. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16298. cat >>confdefs.h <<_ACEOF
  16299. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16300. _ACEOF
  16301. cat >>confdefs.h <<_ACEOF
  16302. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16303. _ACEOF
  16304. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16305. else
  16306. enable_mir_shared=no
  16307. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16308. SUMMARY_video="${SUMMARY_video} mir"
  16309. fi
  16310. have_video=yes
  16311. fi
  16312. fi
  16313. }
  16314. CheckNativeClient()
  16315. {
  16316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16317. /* end confdefs.h. */
  16318. #if !defined(__native_client__)
  16319. #error "NO NACL"
  16320. #endif
  16321. int
  16322. main ()
  16323. {
  16324. ;
  16325. return 0;
  16326. }
  16327. _ACEOF
  16328. if ac_fn_c_try_compile "$LINENO"; then :
  16329. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16330. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16331. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16332. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16333. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16334. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16335. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16336. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16337. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16338. SUMMARY_audio="${SUMMARY_audio} nacl"
  16339. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16340. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16341. fi
  16342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16343. }
  16344. CheckX11()
  16345. {
  16346. # Check whether --enable-video-x11 was given.
  16347. if test "${enable_video_x11+set}" = set; then :
  16348. enableval=$enable_video_x11;
  16349. else
  16350. enable_video_x11=yes
  16351. fi
  16352. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16353. case "$host" in
  16354. *-*-darwin*)
  16355. # This isn't necessary for X11, but fixes GLX detection
  16356. if test "x$x_includes" = xNONE && \
  16357. test "x$x_libraries" = xNONE && \
  16358. test -d /usr/X11R6/include && \
  16359. test -d /usr/X11R6/lib; then
  16360. x_includes="/usr/X11R6/include"
  16361. x_libraries="/usr/X11R6/lib"
  16362. fi
  16363. ;;
  16364. esac
  16365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16366. $as_echo_n "checking for X... " >&6; }
  16367. # Check whether --with-x was given.
  16368. if test "${with_x+set}" = set; then :
  16369. withval=$with_x;
  16370. fi
  16371. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16372. if test "x$with_x" = xno; then
  16373. # The user explicitly disabled X.
  16374. have_x=disabled
  16375. else
  16376. case $x_includes,$x_libraries in #(
  16377. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16378. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16379. $as_echo_n "(cached) " >&6
  16380. else
  16381. # One or both of the vars are not set, and there is no cached value.
  16382. ac_x_includes=no ac_x_libraries=no
  16383. rm -f -r conftest.dir
  16384. if mkdir conftest.dir; then
  16385. cd conftest.dir
  16386. cat >Imakefile <<'_ACEOF'
  16387. incroot:
  16388. @echo incroot='${INCROOT}'
  16389. usrlibdir:
  16390. @echo usrlibdir='${USRLIBDIR}'
  16391. libdir:
  16392. @echo libdir='${LIBDIR}'
  16393. _ACEOF
  16394. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16395. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16396. for ac_var in incroot usrlibdir libdir; do
  16397. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16398. done
  16399. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16400. for ac_extension in a so sl dylib la dll; do
  16401. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16402. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16403. ac_im_usrlibdir=$ac_im_libdir; break
  16404. fi
  16405. done
  16406. # Screen out bogus values from the imake configuration. They are
  16407. # bogus both because they are the default anyway, and because
  16408. # using them would break gcc on systems where it needs fixed includes.
  16409. case $ac_im_incroot in
  16410. /usr/include) ac_x_includes= ;;
  16411. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16412. esac
  16413. case $ac_im_usrlibdir in
  16414. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16415. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16416. esac
  16417. fi
  16418. cd ..
  16419. rm -f -r conftest.dir
  16420. fi
  16421. # Standard set of common directories for X headers.
  16422. # Check X11 before X11Rn because it is often a symlink to the current release.
  16423. ac_x_header_dirs='
  16424. /usr/X11/include
  16425. /usr/X11R7/include
  16426. /usr/X11R6/include
  16427. /usr/X11R5/include
  16428. /usr/X11R4/include
  16429. /usr/include/X11
  16430. /usr/include/X11R7
  16431. /usr/include/X11R6
  16432. /usr/include/X11R5
  16433. /usr/include/X11R4
  16434. /usr/local/X11/include
  16435. /usr/local/X11R7/include
  16436. /usr/local/X11R6/include
  16437. /usr/local/X11R5/include
  16438. /usr/local/X11R4/include
  16439. /usr/local/include/X11
  16440. /usr/local/include/X11R7
  16441. /usr/local/include/X11R6
  16442. /usr/local/include/X11R5
  16443. /usr/local/include/X11R4
  16444. /usr/X386/include
  16445. /usr/x386/include
  16446. /usr/XFree86/include/X11
  16447. /usr/include
  16448. /usr/local/include
  16449. /usr/unsupported/include
  16450. /usr/athena/include
  16451. /usr/local/x11r5/include
  16452. /usr/lpp/Xamples/include
  16453. /usr/openwin/include
  16454. /usr/openwin/share/include'
  16455. if test "$ac_x_includes" = no; then
  16456. # Guess where to find include files, by looking for Xlib.h.
  16457. # First, try using that file with no special directory specified.
  16458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16459. /* end confdefs.h. */
  16460. #include <X11/Xlib.h>
  16461. _ACEOF
  16462. if ac_fn_c_try_cpp "$LINENO"; then :
  16463. # We can compile using X headers with no special include directory.
  16464. ac_x_includes=
  16465. else
  16466. for ac_dir in $ac_x_header_dirs; do
  16467. if test -r "$ac_dir/X11/Xlib.h"; then
  16468. ac_x_includes=$ac_dir
  16469. break
  16470. fi
  16471. done
  16472. fi
  16473. rm -f conftest.err conftest.i conftest.$ac_ext
  16474. fi # $ac_x_includes = no
  16475. if test "$ac_x_libraries" = no; then
  16476. # Check for the libraries.
  16477. # See if we find them without any special options.
  16478. # Don't add to $LIBS permanently.
  16479. ac_save_LIBS=$LIBS
  16480. LIBS="-lX11 $LIBS"
  16481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16482. /* end confdefs.h. */
  16483. #include <X11/Xlib.h>
  16484. int
  16485. main ()
  16486. {
  16487. XrmInitialize ()
  16488. ;
  16489. return 0;
  16490. }
  16491. _ACEOF
  16492. if ac_fn_c_try_link "$LINENO"; then :
  16493. LIBS=$ac_save_LIBS
  16494. # We can link X programs with no special library path.
  16495. ac_x_libraries=
  16496. else
  16497. LIBS=$ac_save_LIBS
  16498. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16499. do
  16500. # Don't even attempt the hair of trying to link an X program!
  16501. for ac_extension in a so sl dylib la dll; do
  16502. if test -r "$ac_dir/libX11.$ac_extension"; then
  16503. ac_x_libraries=$ac_dir
  16504. break 2
  16505. fi
  16506. done
  16507. done
  16508. fi
  16509. rm -f core conftest.err conftest.$ac_objext \
  16510. conftest$ac_exeext conftest.$ac_ext
  16511. fi # $ac_x_libraries = no
  16512. case $ac_x_includes,$ac_x_libraries in #(
  16513. no,* | *,no | *\'*)
  16514. # Didn't find X, or a directory has "'" in its name.
  16515. ac_cv_have_x="have_x=no";; #(
  16516. *)
  16517. # Record where we found X for the cache.
  16518. ac_cv_have_x="have_x=yes\
  16519. ac_x_includes='$ac_x_includes'\
  16520. ac_x_libraries='$ac_x_libraries'"
  16521. esac
  16522. fi
  16523. ;; #(
  16524. *) have_x=yes;;
  16525. esac
  16526. eval "$ac_cv_have_x"
  16527. fi # $with_x != no
  16528. if test "$have_x" != yes; then
  16529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16530. $as_echo "$have_x" >&6; }
  16531. no_x=yes
  16532. else
  16533. # If each of the values was on the command line, it overrides each guess.
  16534. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16535. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16536. # Update the cache value to reflect the command line values.
  16537. ac_cv_have_x="have_x=yes\
  16538. ac_x_includes='$x_includes'\
  16539. ac_x_libraries='$x_libraries'"
  16540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16541. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16542. fi
  16543. if test "$no_x" = yes; then
  16544. # Not all programs may use this symbol, but it does not hurt to define it.
  16545. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16546. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16547. else
  16548. if test -n "$x_includes"; then
  16549. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16550. fi
  16551. # It would also be nice to do this for all -L options, not just this one.
  16552. if test -n "$x_libraries"; then
  16553. X_LIBS="$X_LIBS -L$x_libraries"
  16554. # For Solaris; some versions of Sun CC require a space after -R and
  16555. # others require no space. Words are not sufficient . . . .
  16556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16557. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16558. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16559. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16560. ac_c_werror_flag=yes
  16561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16562. /* end confdefs.h. */
  16563. int
  16564. main ()
  16565. {
  16566. ;
  16567. return 0;
  16568. }
  16569. _ACEOF
  16570. if ac_fn_c_try_link "$LINENO"; then :
  16571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16572. $as_echo "no" >&6; }
  16573. X_LIBS="$X_LIBS -R$x_libraries"
  16574. else
  16575. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16577. /* end confdefs.h. */
  16578. int
  16579. main ()
  16580. {
  16581. ;
  16582. return 0;
  16583. }
  16584. _ACEOF
  16585. if ac_fn_c_try_link "$LINENO"; then :
  16586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16587. $as_echo "yes" >&6; }
  16588. X_LIBS="$X_LIBS -R $x_libraries"
  16589. else
  16590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16591. $as_echo "neither works" >&6; }
  16592. fi
  16593. rm -f core conftest.err conftest.$ac_objext \
  16594. conftest$ac_exeext conftest.$ac_ext
  16595. fi
  16596. rm -f core conftest.err conftest.$ac_objext \
  16597. conftest$ac_exeext conftest.$ac_ext
  16598. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16599. LIBS=$ac_xsave_LIBS
  16600. fi
  16601. # Check for system-dependent libraries X programs must link with.
  16602. # Do this before checking for the system-independent R6 libraries
  16603. # (-lICE), since we may need -lsocket or whatever for X linking.
  16604. if test "$ISC" = yes; then
  16605. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16606. else
  16607. # Martyn Johnson says this is needed for Ultrix, if the X
  16608. # libraries were built with DECnet support. And Karl Berry says
  16609. # the Alpha needs dnet_stub (dnet does not exist).
  16610. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16612. /* end confdefs.h. */
  16613. /* Override any GCC internal prototype to avoid an error.
  16614. Use char because int might match the return type of a GCC
  16615. builtin and then its argument prototype would still apply. */
  16616. #ifdef __cplusplus
  16617. extern "C"
  16618. #endif
  16619. char XOpenDisplay ();
  16620. int
  16621. main ()
  16622. {
  16623. return XOpenDisplay ();
  16624. ;
  16625. return 0;
  16626. }
  16627. _ACEOF
  16628. if ac_fn_c_try_link "$LINENO"; then :
  16629. else
  16630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16631. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16632. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16633. $as_echo_n "(cached) " >&6
  16634. else
  16635. ac_check_lib_save_LIBS=$LIBS
  16636. LIBS="-ldnet $LIBS"
  16637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16638. /* end confdefs.h. */
  16639. /* Override any GCC internal prototype to avoid an error.
  16640. Use char because int might match the return type of a GCC
  16641. builtin and then its argument prototype would still apply. */
  16642. #ifdef __cplusplus
  16643. extern "C"
  16644. #endif
  16645. char dnet_ntoa ();
  16646. int
  16647. main ()
  16648. {
  16649. return dnet_ntoa ();
  16650. ;
  16651. return 0;
  16652. }
  16653. _ACEOF
  16654. if ac_fn_c_try_link "$LINENO"; then :
  16655. ac_cv_lib_dnet_dnet_ntoa=yes
  16656. else
  16657. ac_cv_lib_dnet_dnet_ntoa=no
  16658. fi
  16659. rm -f core conftest.err conftest.$ac_objext \
  16660. conftest$ac_exeext conftest.$ac_ext
  16661. LIBS=$ac_check_lib_save_LIBS
  16662. fi
  16663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16664. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16665. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16666. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16667. fi
  16668. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16670. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16671. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16672. $as_echo_n "(cached) " >&6
  16673. else
  16674. ac_check_lib_save_LIBS=$LIBS
  16675. LIBS="-ldnet_stub $LIBS"
  16676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16677. /* end confdefs.h. */
  16678. /* Override any GCC internal prototype to avoid an error.
  16679. Use char because int might match the return type of a GCC
  16680. builtin and then its argument prototype would still apply. */
  16681. #ifdef __cplusplus
  16682. extern "C"
  16683. #endif
  16684. char dnet_ntoa ();
  16685. int
  16686. main ()
  16687. {
  16688. return dnet_ntoa ();
  16689. ;
  16690. return 0;
  16691. }
  16692. _ACEOF
  16693. if ac_fn_c_try_link "$LINENO"; then :
  16694. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16695. else
  16696. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16697. fi
  16698. rm -f core conftest.err conftest.$ac_objext \
  16699. conftest$ac_exeext conftest.$ac_ext
  16700. LIBS=$ac_check_lib_save_LIBS
  16701. fi
  16702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16703. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16704. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16705. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16706. fi
  16707. fi
  16708. fi
  16709. rm -f core conftest.err conftest.$ac_objext \
  16710. conftest$ac_exeext conftest.$ac_ext
  16711. LIBS="$ac_xsave_LIBS"
  16712. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16713. # to get the SysV transport functions.
  16714. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16715. # needs -lnsl.
  16716. # The nsl library prevents programs from opening the X display
  16717. # on Irix 5.2, according to T.E. Dickey.
  16718. # The functions gethostbyname, getservbyname, and inet_addr are
  16719. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16720. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16721. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16722. fi
  16723. if test $ac_cv_func_gethostbyname = no; then
  16724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16725. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16726. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16727. $as_echo_n "(cached) " >&6
  16728. else
  16729. ac_check_lib_save_LIBS=$LIBS
  16730. LIBS="-lnsl $LIBS"
  16731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16732. /* end confdefs.h. */
  16733. /* Override any GCC internal prototype to avoid an error.
  16734. Use char because int might match the return type of a GCC
  16735. builtin and then its argument prototype would still apply. */
  16736. #ifdef __cplusplus
  16737. extern "C"
  16738. #endif
  16739. char gethostbyname ();
  16740. int
  16741. main ()
  16742. {
  16743. return gethostbyname ();
  16744. ;
  16745. return 0;
  16746. }
  16747. _ACEOF
  16748. if ac_fn_c_try_link "$LINENO"; then :
  16749. ac_cv_lib_nsl_gethostbyname=yes
  16750. else
  16751. ac_cv_lib_nsl_gethostbyname=no
  16752. fi
  16753. rm -f core conftest.err conftest.$ac_objext \
  16754. conftest$ac_exeext conftest.$ac_ext
  16755. LIBS=$ac_check_lib_save_LIBS
  16756. fi
  16757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16758. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16759. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16760. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16761. fi
  16762. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16764. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16765. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16766. $as_echo_n "(cached) " >&6
  16767. else
  16768. ac_check_lib_save_LIBS=$LIBS
  16769. LIBS="-lbsd $LIBS"
  16770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16771. /* end confdefs.h. */
  16772. /* Override any GCC internal prototype to avoid an error.
  16773. Use char because int might match the return type of a GCC
  16774. builtin and then its argument prototype would still apply. */
  16775. #ifdef __cplusplus
  16776. extern "C"
  16777. #endif
  16778. char gethostbyname ();
  16779. int
  16780. main ()
  16781. {
  16782. return gethostbyname ();
  16783. ;
  16784. return 0;
  16785. }
  16786. _ACEOF
  16787. if ac_fn_c_try_link "$LINENO"; then :
  16788. ac_cv_lib_bsd_gethostbyname=yes
  16789. else
  16790. ac_cv_lib_bsd_gethostbyname=no
  16791. fi
  16792. rm -f core conftest.err conftest.$ac_objext \
  16793. conftest$ac_exeext conftest.$ac_ext
  16794. LIBS=$ac_check_lib_save_LIBS
  16795. fi
  16796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16797. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16798. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16799. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16800. fi
  16801. fi
  16802. fi
  16803. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16804. # socket/setsockopt and other routines are undefined under SCO ODT
  16805. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16806. # on later versions), says Simon Leinen: it contains gethostby*
  16807. # variants that don't use the name server (or something). -lsocket
  16808. # must be given before -lnsl if both are needed. We assume that
  16809. # if connect needs -lnsl, so does gethostbyname.
  16810. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16811. if test "x$ac_cv_func_connect" = xyes; then :
  16812. fi
  16813. if test $ac_cv_func_connect = no; then
  16814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16815. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16816. if ${ac_cv_lib_socket_connect+:} false; then :
  16817. $as_echo_n "(cached) " >&6
  16818. else
  16819. ac_check_lib_save_LIBS=$LIBS
  16820. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16822. /* end confdefs.h. */
  16823. /* Override any GCC internal prototype to avoid an error.
  16824. Use char because int might match the return type of a GCC
  16825. builtin and then its argument prototype would still apply. */
  16826. #ifdef __cplusplus
  16827. extern "C"
  16828. #endif
  16829. char connect ();
  16830. int
  16831. main ()
  16832. {
  16833. return connect ();
  16834. ;
  16835. return 0;
  16836. }
  16837. _ACEOF
  16838. if ac_fn_c_try_link "$LINENO"; then :
  16839. ac_cv_lib_socket_connect=yes
  16840. else
  16841. ac_cv_lib_socket_connect=no
  16842. fi
  16843. rm -f core conftest.err conftest.$ac_objext \
  16844. conftest$ac_exeext conftest.$ac_ext
  16845. LIBS=$ac_check_lib_save_LIBS
  16846. fi
  16847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16848. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16849. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16850. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16851. fi
  16852. fi
  16853. # Guillermo Gomez says -lposix is necessary on A/UX.
  16854. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16855. if test "x$ac_cv_func_remove" = xyes; then :
  16856. fi
  16857. if test $ac_cv_func_remove = no; then
  16858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16859. $as_echo_n "checking for remove in -lposix... " >&6; }
  16860. if ${ac_cv_lib_posix_remove+:} false; then :
  16861. $as_echo_n "(cached) " >&6
  16862. else
  16863. ac_check_lib_save_LIBS=$LIBS
  16864. LIBS="-lposix $LIBS"
  16865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16866. /* end confdefs.h. */
  16867. /* Override any GCC internal prototype to avoid an error.
  16868. Use char because int might match the return type of a GCC
  16869. builtin and then its argument prototype would still apply. */
  16870. #ifdef __cplusplus
  16871. extern "C"
  16872. #endif
  16873. char remove ();
  16874. int
  16875. main ()
  16876. {
  16877. return remove ();
  16878. ;
  16879. return 0;
  16880. }
  16881. _ACEOF
  16882. if ac_fn_c_try_link "$LINENO"; then :
  16883. ac_cv_lib_posix_remove=yes
  16884. else
  16885. ac_cv_lib_posix_remove=no
  16886. fi
  16887. rm -f core conftest.err conftest.$ac_objext \
  16888. conftest$ac_exeext conftest.$ac_ext
  16889. LIBS=$ac_check_lib_save_LIBS
  16890. fi
  16891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16892. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16893. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16894. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16895. fi
  16896. fi
  16897. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16898. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16899. if test "x$ac_cv_func_shmat" = xyes; then :
  16900. fi
  16901. if test $ac_cv_func_shmat = no; then
  16902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16903. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16904. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16905. $as_echo_n "(cached) " >&6
  16906. else
  16907. ac_check_lib_save_LIBS=$LIBS
  16908. LIBS="-lipc $LIBS"
  16909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16910. /* end confdefs.h. */
  16911. /* Override any GCC internal prototype to avoid an error.
  16912. Use char because int might match the return type of a GCC
  16913. builtin and then its argument prototype would still apply. */
  16914. #ifdef __cplusplus
  16915. extern "C"
  16916. #endif
  16917. char shmat ();
  16918. int
  16919. main ()
  16920. {
  16921. return shmat ();
  16922. ;
  16923. return 0;
  16924. }
  16925. _ACEOF
  16926. if ac_fn_c_try_link "$LINENO"; then :
  16927. ac_cv_lib_ipc_shmat=yes
  16928. else
  16929. ac_cv_lib_ipc_shmat=no
  16930. fi
  16931. rm -f core conftest.err conftest.$ac_objext \
  16932. conftest$ac_exeext conftest.$ac_ext
  16933. LIBS=$ac_check_lib_save_LIBS
  16934. fi
  16935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16936. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16937. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16938. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16939. fi
  16940. fi
  16941. fi
  16942. # Check for libraries that X11R6 Xt/Xaw programs need.
  16943. ac_save_LDFLAGS=$LDFLAGS
  16944. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16945. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16946. # check for ICE first), but we must link in the order -lSM -lICE or
  16947. # we get undefined symbols. So assume we have SM if we have ICE.
  16948. # These have to be linked with before -lX11, unlike the other
  16949. # libraries we check for below, so use a different variable.
  16950. # John Interrante, Karl Berry
  16951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16952. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16953. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16954. $as_echo_n "(cached) " >&6
  16955. else
  16956. ac_check_lib_save_LIBS=$LIBS
  16957. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  16958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16959. /* end confdefs.h. */
  16960. /* Override any GCC internal prototype to avoid an error.
  16961. Use char because int might match the return type of a GCC
  16962. builtin and then its argument prototype would still apply. */
  16963. #ifdef __cplusplus
  16964. extern "C"
  16965. #endif
  16966. char IceConnectionNumber ();
  16967. int
  16968. main ()
  16969. {
  16970. return IceConnectionNumber ();
  16971. ;
  16972. return 0;
  16973. }
  16974. _ACEOF
  16975. if ac_fn_c_try_link "$LINENO"; then :
  16976. ac_cv_lib_ICE_IceConnectionNumber=yes
  16977. else
  16978. ac_cv_lib_ICE_IceConnectionNumber=no
  16979. fi
  16980. rm -f core conftest.err conftest.$ac_objext \
  16981. conftest$ac_exeext conftest.$ac_ext
  16982. LIBS=$ac_check_lib_save_LIBS
  16983. fi
  16984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  16985. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  16986. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  16987. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  16988. fi
  16989. LDFLAGS=$ac_save_LDFLAGS
  16990. fi
  16991. if test x$have_x = xyes; then
  16992. # Check whether --enable-x11-shared was given.
  16993. if test "${enable_x11_shared+set}" = set; then :
  16994. enableval=$enable_x11_shared;
  16995. else
  16996. enable_x11_shared=maybe
  16997. fi
  16998. case "$host" in
  16999. *-*-darwin*)
  17000. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17001. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17002. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17003. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17004. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17005. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17006. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17007. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17008. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17009. ;;
  17010. *-*-openbsd*)
  17011. x11_lib='libX11.so'
  17012. x11ext_lib='libXext.so'
  17013. xcursor_lib='libXcursor.so'
  17014. xinerama_lib='libXinerama.so'
  17015. xinput_lib='libXi.so'
  17016. xrandr_lib='libXrandr.so'
  17017. xrender_lib='libXrender.so'
  17018. xss_lib='libXss.so'
  17019. xvidmode_lib='libXxf86vm.so'
  17020. ;;
  17021. *)
  17022. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17023. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17024. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17025. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17026. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17027. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17028. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17029. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17030. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17031. ;;
  17032. esac
  17033. if test x$ac_cv_func_shmat != xyes; then
  17034. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17035. fi
  17036. CFLAGS="$CFLAGS $X_CFLAGS"
  17037. LDFLAGS="$LDFLAGS $X_LIBS"
  17038. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17039. #include <X11/Xproto.h>
  17040. "
  17041. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17042. have_xext_h_hdr=yes
  17043. else
  17044. have_xext_h_hdr=no
  17045. fi
  17046. if test x$have_xext_h_hdr != xyes; then
  17047. as_fn_error $? "
  17048. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17049. " "$LINENO" 5
  17050. fi
  17051. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17052. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17053. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17054. # Needed so SDL applications can include SDL_syswm.h
  17055. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17056. if test x$enable_x11_shared = xmaybe; then
  17057. enable_x11_shared=yes
  17058. fi
  17059. if test x$have_loadso != xyes && \
  17060. test x$enable_x11_shared = xyes; then
  17061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17062. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17063. enable_x11_shared=no
  17064. fi
  17065. if test x$have_loadso = xyes && \
  17066. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17067. echo "-- dynamic libX11 -> $x11_lib"
  17068. echo "-- dynamic libX11ext -> $x11ext_lib"
  17069. cat >>confdefs.h <<_ACEOF
  17070. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17071. _ACEOF
  17072. cat >>confdefs.h <<_ACEOF
  17073. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17074. _ACEOF
  17075. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17076. else
  17077. enable_x11_shared=no
  17078. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17079. SUMMARY_video="${SUMMARY_video} x11"
  17080. fi
  17081. have_video=yes
  17082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17083. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17084. have_const_param_XextAddDisplay=no
  17085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17086. /* end confdefs.h. */
  17087. #include <X11/Xlib.h>
  17088. #include <X11/Xproto.h>
  17089. #include <X11/extensions/Xext.h>
  17090. #include <X11/extensions/extutil.h>
  17091. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17092. int
  17093. main ()
  17094. {
  17095. ;
  17096. return 0;
  17097. }
  17098. _ACEOF
  17099. if ac_fn_c_try_compile "$LINENO"; then :
  17100. have_const_param_XextAddDisplay=yes
  17101. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17102. fi
  17103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17105. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17107. $as_echo_n "checking for XGenericEvent... " >&6; }
  17108. have_XGenericEvent=no
  17109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17110. /* end confdefs.h. */
  17111. #include <X11/Xlib.h>
  17112. int
  17113. main ()
  17114. {
  17115. Display *display;
  17116. XEvent event;
  17117. XGenericEventCookie *cookie = &event.xcookie;
  17118. XNextEvent(display, &event);
  17119. XGetEventData(display, cookie);
  17120. XFreeEventData(display, cookie);
  17121. ;
  17122. return 0;
  17123. }
  17124. _ACEOF
  17125. if ac_fn_c_try_compile "$LINENO"; then :
  17126. have_XGenericEvent=yes
  17127. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17128. fi
  17129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17131. $as_echo "$have_XGenericEvent" >&6; }
  17132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17133. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17134. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17135. $as_echo_n "(cached) " >&6
  17136. else
  17137. ac_check_lib_save_LIBS=$LIBS
  17138. LIBS="-lX11 $LIBS"
  17139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17140. /* end confdefs.h. */
  17141. /* Override any GCC internal prototype to avoid an error.
  17142. Use char because int might match the return type of a GCC
  17143. builtin and then its argument prototype would still apply. */
  17144. #ifdef __cplusplus
  17145. extern "C"
  17146. #endif
  17147. char XkbKeycodeToKeysym ();
  17148. int
  17149. main ()
  17150. {
  17151. return XkbKeycodeToKeysym ();
  17152. ;
  17153. return 0;
  17154. }
  17155. _ACEOF
  17156. if ac_fn_c_try_link "$LINENO"; then :
  17157. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17158. else
  17159. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17160. fi
  17161. rm -f core conftest.err conftest.$ac_objext \
  17162. conftest$ac_exeext conftest.$ac_ext
  17163. LIBS=$ac_check_lib_save_LIBS
  17164. fi
  17165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17166. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17167. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17168. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17169. fi
  17170. # Check whether --enable-video-x11-xcursor was given.
  17171. if test "${enable_video_x11_xcursor+set}" = set; then :
  17172. enableval=$enable_video_x11_xcursor;
  17173. else
  17174. enable_video_x11_xcursor=yes
  17175. fi
  17176. if test x$enable_video_x11_xcursor = xyes; then
  17177. definitely_enable_video_x11_xcursor=no
  17178. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17179. "
  17180. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17181. have_xcursor_h_hdr=yes
  17182. else
  17183. have_xcursor_h_hdr=no
  17184. fi
  17185. if test x$have_xcursor_h_hdr = xyes; then
  17186. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17187. echo "-- dynamic libXcursor -> $xcursor_lib"
  17188. cat >>confdefs.h <<_ACEOF
  17189. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17190. _ACEOF
  17191. definitely_enable_video_x11_xcursor=yes
  17192. else
  17193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17194. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17195. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17196. $as_echo_n "(cached) " >&6
  17197. else
  17198. ac_check_lib_save_LIBS=$LIBS
  17199. LIBS="-lXcursor $LIBS"
  17200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17201. /* end confdefs.h. */
  17202. /* Override any GCC internal prototype to avoid an error.
  17203. Use char because int might match the return type of a GCC
  17204. builtin and then its argument prototype would still apply. */
  17205. #ifdef __cplusplus
  17206. extern "C"
  17207. #endif
  17208. char XcursorImageCreate ();
  17209. int
  17210. main ()
  17211. {
  17212. return XcursorImageCreate ();
  17213. ;
  17214. return 0;
  17215. }
  17216. _ACEOF
  17217. if ac_fn_c_try_link "$LINENO"; then :
  17218. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17219. else
  17220. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17221. fi
  17222. rm -f core conftest.err conftest.$ac_objext \
  17223. conftest$ac_exeext conftest.$ac_ext
  17224. LIBS=$ac_check_lib_save_LIBS
  17225. fi
  17226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17227. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17228. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17229. have_xcursor_lib=yes
  17230. fi
  17231. if test x$have_xcursor_lib = xyes ; then
  17232. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17233. definitely_enable_video_x11_xcursor=yes
  17234. fi
  17235. fi
  17236. fi
  17237. fi
  17238. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17239. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17240. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17241. fi
  17242. # Check whether --enable-video-x11-xdbe was given.
  17243. if test "${enable_video_x11_xdbe+set}" = set; then :
  17244. enableval=$enable_video_x11_xdbe;
  17245. else
  17246. enable_video_x11_xdbe=yes
  17247. fi
  17248. if test x$enable_video_x11_xdbe = xyes; then
  17249. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17250. "
  17251. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17252. have_dbe_h_hdr=yes
  17253. else
  17254. have_dbe_h_hdr=no
  17255. fi
  17256. if test x$have_dbe_h_hdr = xyes; then
  17257. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17258. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17259. fi
  17260. fi
  17261. # Check whether --enable-video-x11-xinerama was given.
  17262. if test "${enable_video_x11_xinerama+set}" = set; then :
  17263. enableval=$enable_video_x11_xinerama;
  17264. else
  17265. enable_video_x11_xinerama=yes
  17266. fi
  17267. if test x$enable_video_x11_xinerama = xyes; then
  17268. definitely_enable_video_x11_xinerama=no
  17269. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17270. "
  17271. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17272. have_xinerama_h_hdr=yes
  17273. else
  17274. have_xinerama_h_hdr=no
  17275. fi
  17276. if test x$have_xinerama_h_hdr = xyes; then
  17277. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17278. echo "-- dynamic libXinerama -> $xinerama_lib"
  17279. cat >>confdefs.h <<_ACEOF
  17280. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17281. _ACEOF
  17282. definitely_enable_video_x11_xinerama=yes
  17283. else
  17284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17285. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17286. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17287. $as_echo_n "(cached) " >&6
  17288. else
  17289. ac_check_lib_save_LIBS=$LIBS
  17290. LIBS="-lXinerama $LIBS"
  17291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17292. /* end confdefs.h. */
  17293. /* Override any GCC internal prototype to avoid an error.
  17294. Use char because int might match the return type of a GCC
  17295. builtin and then its argument prototype would still apply. */
  17296. #ifdef __cplusplus
  17297. extern "C"
  17298. #endif
  17299. char XineramaQueryExtension ();
  17300. int
  17301. main ()
  17302. {
  17303. return XineramaQueryExtension ();
  17304. ;
  17305. return 0;
  17306. }
  17307. _ACEOF
  17308. if ac_fn_c_try_link "$LINENO"; then :
  17309. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17310. else
  17311. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17312. fi
  17313. rm -f core conftest.err conftest.$ac_objext \
  17314. conftest$ac_exeext conftest.$ac_ext
  17315. LIBS=$ac_check_lib_save_LIBS
  17316. fi
  17317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17318. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17319. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17320. have_xinerama_lib=yes
  17321. fi
  17322. if test x$have_xinerama_lib = xyes ; then
  17323. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17324. definitely_enable_video_x11_xinerama=yes
  17325. fi
  17326. fi
  17327. fi
  17328. fi
  17329. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17330. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17331. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17332. fi
  17333. # Check whether --enable-video-x11-xinput was given.
  17334. if test "${enable_video_x11_xinput+set}" = set; then :
  17335. enableval=$enable_video_x11_xinput;
  17336. else
  17337. enable_video_x11_xinput=yes
  17338. fi
  17339. if test x$enable_video_x11_xinput = xyes; then
  17340. definitely_enable_video_x11_xinput=no
  17341. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17342. "
  17343. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17344. have_xinput_h_hdr=yes
  17345. else
  17346. have_xinput_h_hdr=no
  17347. fi
  17348. if test x$have_xinput_h_hdr = xyes; then
  17349. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17350. echo "-- dynamic libXi -> $xinput_lib"
  17351. cat >>confdefs.h <<_ACEOF
  17352. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17353. _ACEOF
  17354. definitely_enable_video_x11_xinput=yes
  17355. else
  17356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17357. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17358. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17359. $as_echo_n "(cached) " >&6
  17360. else
  17361. ac_check_lib_save_LIBS=$LIBS
  17362. LIBS="-lXi $LIBS"
  17363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17364. /* end confdefs.h. */
  17365. /* Override any GCC internal prototype to avoid an error.
  17366. Use char because int might match the return type of a GCC
  17367. builtin and then its argument prototype would still apply. */
  17368. #ifdef __cplusplus
  17369. extern "C"
  17370. #endif
  17371. char XOpenDevice ();
  17372. int
  17373. main ()
  17374. {
  17375. return XOpenDevice ();
  17376. ;
  17377. return 0;
  17378. }
  17379. _ACEOF
  17380. if ac_fn_c_try_link "$LINENO"; then :
  17381. ac_cv_lib_Xi_XOpenDevice=yes
  17382. else
  17383. ac_cv_lib_Xi_XOpenDevice=no
  17384. fi
  17385. rm -f core conftest.err conftest.$ac_objext \
  17386. conftest$ac_exeext conftest.$ac_ext
  17387. LIBS=$ac_check_lib_save_LIBS
  17388. fi
  17389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17390. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17391. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17392. have_xinput_lib=yes
  17393. fi
  17394. if test x$have_xinput_lib = xyes ; then
  17395. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17396. definitely_enable_video_x11_xinput=yes
  17397. fi
  17398. fi
  17399. fi
  17400. fi
  17401. if test x$definitely_enable_video_x11_xinput = xyes; then
  17402. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17403. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17405. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17406. have_xinput2_multitouch=no
  17407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17408. /* end confdefs.h. */
  17409. #include <X11/Xlib.h>
  17410. #include <X11/Xproto.h>
  17411. #include <X11/extensions/XInput2.h>
  17412. int
  17413. main ()
  17414. {
  17415. int event_type = XI_TouchBegin;
  17416. XITouchClassInfo *t;
  17417. ;
  17418. return 0;
  17419. }
  17420. _ACEOF
  17421. if ac_fn_c_try_compile "$LINENO"; then :
  17422. have_xinput2_multitouch=yes
  17423. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17424. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17425. fi
  17426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17428. $as_echo "$have_xinput2_multitouch" >&6; }
  17429. fi
  17430. # Check whether --enable-video-x11-xrandr was given.
  17431. if test "${enable_video_x11_xrandr+set}" = set; then :
  17432. enableval=$enable_video_x11_xrandr;
  17433. else
  17434. enable_video_x11_xrandr=yes
  17435. fi
  17436. if test x$enable_video_x11_xrandr = xyes; then
  17437. definitely_enable_video_x11_xrandr=no
  17438. have_xrandr_h_hdr=no
  17439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17440. /* end confdefs.h. */
  17441. #include <X11/Xlib.h>
  17442. #include <X11/extensions/Xrandr.h>
  17443. int
  17444. main ()
  17445. {
  17446. XRRScreenResources *res = NULL;
  17447. ;
  17448. return 0;
  17449. }
  17450. _ACEOF
  17451. if ac_fn_c_try_compile "$LINENO"; then :
  17452. have_xrandr_h_hdr=yes
  17453. fi
  17454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17455. if test x$have_xrandr_h_hdr = xyes; then
  17456. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17457. echo "-- dynamic libXrandr -> $xrandr_lib"
  17458. cat >>confdefs.h <<_ACEOF
  17459. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17460. _ACEOF
  17461. definitely_enable_video_x11_xrandr=yes
  17462. else
  17463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17464. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17465. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17466. $as_echo_n "(cached) " >&6
  17467. else
  17468. ac_check_lib_save_LIBS=$LIBS
  17469. LIBS="-lXrandr $LIBS"
  17470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17471. /* end confdefs.h. */
  17472. /* Override any GCC internal prototype to avoid an error.
  17473. Use char because int might match the return type of a GCC
  17474. builtin and then its argument prototype would still apply. */
  17475. #ifdef __cplusplus
  17476. extern "C"
  17477. #endif
  17478. char XRRQueryExtension ();
  17479. int
  17480. main ()
  17481. {
  17482. return XRRQueryExtension ();
  17483. ;
  17484. return 0;
  17485. }
  17486. _ACEOF
  17487. if ac_fn_c_try_link "$LINENO"; then :
  17488. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17489. else
  17490. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17491. fi
  17492. rm -f core conftest.err conftest.$ac_objext \
  17493. conftest$ac_exeext conftest.$ac_ext
  17494. LIBS=$ac_check_lib_save_LIBS
  17495. fi
  17496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17497. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17498. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17499. have_xrandr_lib=yes
  17500. fi
  17501. if test x$have_xrandr_lib = xyes ; then
  17502. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17503. definitely_enable_video_x11_xrandr=yes
  17504. fi
  17505. fi
  17506. fi
  17507. fi
  17508. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17509. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17510. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17511. fi
  17512. # Check whether --enable-video-x11-scrnsaver was given.
  17513. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17514. enableval=$enable_video_x11_scrnsaver;
  17515. else
  17516. enable_video_x11_scrnsaver=yes
  17517. fi
  17518. if test x$enable_video_x11_scrnsaver = xyes; then
  17519. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17520. "
  17521. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17522. have_scrnsaver_h_hdr=yes
  17523. else
  17524. have_scrnsaver_h_hdr=no
  17525. fi
  17526. if test x$have_scrnsaver_h_hdr = xyes; then
  17527. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17528. echo "-- dynamic libXss -> $xss_lib"
  17529. cat >>confdefs.h <<_ACEOF
  17530. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17531. _ACEOF
  17532. definitely_enable_video_x11_scrnsaver=yes
  17533. else
  17534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17535. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17536. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17537. $as_echo_n "(cached) " >&6
  17538. else
  17539. ac_check_lib_save_LIBS=$LIBS
  17540. LIBS="-lXss $LIBS"
  17541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17542. /* end confdefs.h. */
  17543. /* Override any GCC internal prototype to avoid an error.
  17544. Use char because int might match the return type of a GCC
  17545. builtin and then its argument prototype would still apply. */
  17546. #ifdef __cplusplus
  17547. extern "C"
  17548. #endif
  17549. char XScreenSaverSuspend ();
  17550. int
  17551. main ()
  17552. {
  17553. return XScreenSaverSuspend ();
  17554. ;
  17555. return 0;
  17556. }
  17557. _ACEOF
  17558. if ac_fn_c_try_link "$LINENO"; then :
  17559. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17560. else
  17561. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17562. fi
  17563. rm -f core conftest.err conftest.$ac_objext \
  17564. conftest$ac_exeext conftest.$ac_ext
  17565. LIBS=$ac_check_lib_save_LIBS
  17566. fi
  17567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17568. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17569. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17570. have_xss_lib=yes
  17571. fi
  17572. if test x$have_xss_lib = xyes ; then
  17573. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17574. definitely_enable_video_x11_scrnsaver=yes
  17575. fi
  17576. fi
  17577. fi
  17578. fi
  17579. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17580. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17581. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17582. fi
  17583. # Check whether --enable-video-x11-xshape was given.
  17584. if test "${enable_video_x11_xshape+set}" = set; then :
  17585. enableval=$enable_video_x11_xshape;
  17586. else
  17587. enable_video_x11_xshape=yes
  17588. fi
  17589. if test x$enable_video_x11_xshape = xyes; then
  17590. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17591. "
  17592. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17593. have_shape_h_hdr=yes
  17594. else
  17595. have_shape_h_hdr=no
  17596. fi
  17597. if test x$have_shape_h_hdr = xyes; then
  17598. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17599. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17600. fi
  17601. fi
  17602. # Check whether --enable-video-x11-vm was given.
  17603. if test "${enable_video_x11_vm+set}" = set; then :
  17604. enableval=$enable_video_x11_vm;
  17605. else
  17606. enable_video_x11_vm=yes
  17607. fi
  17608. if test x$enable_video_x11_vm = xyes; then
  17609. definitely_enable_video_x11_vm=no
  17610. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17611. "
  17612. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17613. have_vm_h_hdr=yes
  17614. else
  17615. have_vm_h_hdr=no
  17616. fi
  17617. if test x$have_vm_h_hdr = xyes; then
  17618. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17619. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17620. cat >>confdefs.h <<_ACEOF
  17621. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17622. _ACEOF
  17623. definitely_enable_video_x11_vm=yes
  17624. else
  17625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17626. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17627. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17628. $as_echo_n "(cached) " >&6
  17629. else
  17630. ac_check_lib_save_LIBS=$LIBS
  17631. LIBS="-lXxf86vm $LIBS"
  17632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17633. /* end confdefs.h. */
  17634. /* Override any GCC internal prototype to avoid an error.
  17635. Use char because int might match the return type of a GCC
  17636. builtin and then its argument prototype would still apply. */
  17637. #ifdef __cplusplus
  17638. extern "C"
  17639. #endif
  17640. char XF86VidModeQueryVersion ();
  17641. int
  17642. main ()
  17643. {
  17644. return XF86VidModeQueryVersion ();
  17645. ;
  17646. return 0;
  17647. }
  17648. _ACEOF
  17649. if ac_fn_c_try_link "$LINENO"; then :
  17650. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17651. else
  17652. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17653. fi
  17654. rm -f core conftest.err conftest.$ac_objext \
  17655. conftest$ac_exeext conftest.$ac_ext
  17656. LIBS=$ac_check_lib_save_LIBS
  17657. fi
  17658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17659. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17660. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17661. have_vm_lib=yes
  17662. fi
  17663. if test x$have_vm_lib = xyes ; then
  17664. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17665. definitely_enable_video_x11_vm=yes
  17666. fi
  17667. fi
  17668. fi
  17669. fi
  17670. if test x$definitely_enable_video_x11_vm = xyes; then
  17671. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17672. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  17673. fi
  17674. fi
  17675. fi
  17676. }
  17677. CheckVivanteVideo()
  17678. {
  17679. # Check whether --enable-video-vivante was given.
  17680. if test "${enable_video_vivante+set}" = set; then :
  17681. enableval=$enable_video_vivante;
  17682. else
  17683. enable_video_vivante=yes
  17684. fi
  17685. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  17686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  17687. $as_echo_n "checking for Vivante VDK API... " >&6; }
  17688. have_vivante_vdk=no
  17689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17690. /* end confdefs.h. */
  17691. #define LINUX
  17692. #define EGL_API_FB
  17693. #include <gc_vdk.h>
  17694. int
  17695. main ()
  17696. {
  17697. ;
  17698. return 0;
  17699. }
  17700. _ACEOF
  17701. if ac_fn_c_try_compile "$LINENO"; then :
  17702. have_vivante_vdk=yes
  17703. fi
  17704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  17706. $as_echo "$have_vivante_vdk" >&6; }
  17707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  17708. $as_echo_n "checking for Vivante FB API... " >&6; }
  17709. have_vivante_egl=no
  17710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17711. /* end confdefs.h. */
  17712. #define LINUX
  17713. #define EGL_API_FB
  17714. #include <EGL/eglvivante.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_egl=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_egl" >&5
  17727. $as_echo "$have_vivante_egl" >&6; }
  17728. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  17729. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  17730. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  17731. if test x$have_vivante_vdk = xyes; then
  17732. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  17733. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  17734. fi
  17735. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  17736. SUMMARY_video="${SUMMARY_video} vivante"
  17737. have_video=yes
  17738. fi
  17739. fi
  17740. }
  17741. CheckHaikuVideo()
  17742. {
  17743. if test x$enable_video = xyes; then
  17744. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17745. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17746. have_video=yes
  17747. SUMMARY_video="${SUMMARY_video} haiku"
  17748. fi
  17749. }
  17750. CheckCOCOA()
  17751. {
  17752. # Check whether --enable-video-cocoa was given.
  17753. if test "${enable_video_cocoa+set}" = set; then :
  17754. enableval=$enable_video_cocoa;
  17755. else
  17756. enable_video_cocoa=yes
  17757. fi
  17758. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17759. save_CFLAGS="$CFLAGS"
  17760. CFLAGS="$CFLAGS -x objective-c"
  17761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17762. $as_echo_n "checking for Cocoa framework... " >&6; }
  17763. have_cocoa=no
  17764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17765. /* end confdefs.h. */
  17766. #import <Cocoa/Cocoa.h>
  17767. int
  17768. main ()
  17769. {
  17770. ;
  17771. return 0;
  17772. }
  17773. _ACEOF
  17774. if ac_fn_c_try_compile "$LINENO"; then :
  17775. have_cocoa=yes
  17776. fi
  17777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17779. $as_echo "$have_cocoa" >&6; }
  17780. CFLAGS="$save_CFLAGS"
  17781. if test x$have_cocoa = xyes; then
  17782. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17783. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17784. SUMMARY_video="${SUMMARY_video} cocoa"
  17785. have_video=yes
  17786. fi
  17787. fi
  17788. }
  17789. CheckDirectFB()
  17790. {
  17791. # Check whether --enable-video-directfb was given.
  17792. if test "${enable_video_directfb+set}" = set; then :
  17793. enableval=$enable_video_directfb;
  17794. else
  17795. enable_video_directfb=no
  17796. fi
  17797. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17798. video_directfb=no
  17799. DIRECTFB_REQUIRED_VERSION=1.0.0
  17800. for ac_prog in directfb-config
  17801. do
  17802. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17803. set dummy $ac_prog; ac_word=$2
  17804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17805. $as_echo_n "checking for $ac_word... " >&6; }
  17806. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17807. $as_echo_n "(cached) " >&6
  17808. else
  17809. case $DIRECTFBCONFIG in
  17810. [\\/]* | ?:[\\/]*)
  17811. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17812. ;;
  17813. *)
  17814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17815. as_dummy="$prefix/bin:$PATH"
  17816. for as_dir in $as_dummy
  17817. do
  17818. IFS=$as_save_IFS
  17819. test -z "$as_dir" && as_dir=.
  17820. for ac_exec_ext in '' $ac_executable_extensions; do
  17821. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17822. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17824. break 2
  17825. fi
  17826. done
  17827. done
  17828. IFS=$as_save_IFS
  17829. ;;
  17830. esac
  17831. fi
  17832. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17833. if test -n "$DIRECTFBCONFIG"; then
  17834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17835. $as_echo "$DIRECTFBCONFIG" >&6; }
  17836. else
  17837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17838. $as_echo "no" >&6; }
  17839. fi
  17840. test -n "$DIRECTFBCONFIG" && break
  17841. done
  17842. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17843. if test x$DIRECTFBCONFIG = xno; then
  17844. # Extract the first word of "pkg-config", so it can be a program name with args.
  17845. set dummy pkg-config; ac_word=$2
  17846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17847. $as_echo_n "checking for $ac_word... " >&6; }
  17848. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17849. $as_echo_n "(cached) " >&6
  17850. else
  17851. case $PKG_CONFIG in
  17852. [\\/]* | ?:[\\/]*)
  17853. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17854. ;;
  17855. *)
  17856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17857. for as_dir in $PATH
  17858. do
  17859. IFS=$as_save_IFS
  17860. test -z "$as_dir" && as_dir=.
  17861. for ac_exec_ext in '' $ac_executable_extensions; do
  17862. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17863. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17865. break 2
  17866. fi
  17867. done
  17868. done
  17869. IFS=$as_save_IFS
  17870. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17871. ;;
  17872. esac
  17873. fi
  17874. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17875. if test -n "$PKG_CONFIG"; then
  17876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17877. $as_echo "$PKG_CONFIG" >&6; }
  17878. else
  17879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17880. $as_echo "no" >&6; }
  17881. fi
  17882. if test x$PKG_CONFIG != xno; then
  17883. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17884. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17885. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17886. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17887. video_directfb=yes
  17888. fi
  17889. fi
  17890. else
  17891. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17892. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17893. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17894. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17895. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17896. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17897. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17898. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17899. video_directfb=yes
  17900. fi
  17901. fi
  17902. if test x$video_directfb = xyes; then
  17903. # SuSE 11.1 installs directfb-config without directfb-devel
  17904. save_CPPFLAGS="$CPPFLAGS"
  17905. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17906. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17907. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17908. have_directfb_hdr=yes
  17909. else
  17910. have_directfb_hdr=no
  17911. fi
  17912. CPPFLAGS="$save_CPPFLAGS"
  17913. video_directfb=$have_directfb_hdr
  17914. fi
  17915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17916. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17918. $as_echo "$video_directfb" >&6; }
  17919. if test x$video_directfb = xyes; then
  17920. # Check whether --enable-directfb-shared was given.
  17921. if test "${enable_directfb_shared+set}" = set; then :
  17922. enableval=$enable_directfb_shared;
  17923. else
  17924. enable_directfb_shared=yes
  17925. fi
  17926. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17927. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17928. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17929. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17931. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17932. directfb_shared=no
  17933. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17934. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17935. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17936. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17937. if test x$have_loadso != xyes && \
  17938. test x$enable_directfb_shared = xyes; then
  17939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17940. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17941. fi
  17942. if test x$have_loadso = xyes && \
  17943. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17944. directfb_shared=yes
  17945. echo "-- $directfb_lib_spec -> $directfb_lib"
  17946. cat >>confdefs.h <<_ACEOF
  17947. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17948. _ACEOF
  17949. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  17950. else
  17951. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17952. SUMMARY_video="${SUMMARY_video} directfb"
  17953. fi
  17954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17955. $as_echo "$directfb_shared" >&6; }
  17956. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  17957. have_video=yes
  17958. fi
  17959. fi
  17960. }
  17961. CheckFusionSound()
  17962. {
  17963. # Check whether --enable-fusionsound was given.
  17964. if test "${enable_fusionsound+set}" = set; then :
  17965. enableval=$enable_fusionsound;
  17966. else
  17967. enable_fusionsound=no
  17968. fi
  17969. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17970. fusionsound=no
  17971. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  17972. # Extract the first word of "pkg-config", so it can be a program name with args.
  17973. set dummy pkg-config; ac_word=$2
  17974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17975. $as_echo_n "checking for $ac_word... " >&6; }
  17976. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17977. $as_echo_n "(cached) " >&6
  17978. else
  17979. case $PKG_CONFIG in
  17980. [\\/]* | ?:[\\/]*)
  17981. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17982. ;;
  17983. *)
  17984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17985. for as_dir in $PATH
  17986. do
  17987. IFS=$as_save_IFS
  17988. test -z "$as_dir" && as_dir=.
  17989. for ac_exec_ext in '' $ac_executable_extensions; do
  17990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17991. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17993. break 2
  17994. fi
  17995. done
  17996. done
  17997. IFS=$as_save_IFS
  17998. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17999. ;;
  18000. esac
  18001. fi
  18002. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18003. if test -n "$PKG_CONFIG"; then
  18004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18005. $as_echo "$PKG_CONFIG" >&6; }
  18006. else
  18007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18008. $as_echo "no" >&6; }
  18009. fi
  18010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  18011. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  18012. if test x$PKG_CONFIG != xno; then
  18013. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  18014. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  18015. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  18016. fusionsound=yes
  18017. fi
  18018. fi
  18019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  18020. $as_echo "$fusionsound" >&6; }
  18021. if test x$fusionsound = xyes; then
  18022. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  18023. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  18024. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  18025. # Check whether --enable-fusionsound-shared was given.
  18026. if test "${enable_fusionsound_shared+set}" = set; then :
  18027. enableval=$enable_fusionsound_shared;
  18028. else
  18029. enable_fusionsound_shared=yes
  18030. fi
  18031. fusionsound_shared=no
  18032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  18033. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  18034. if test x$have_loadso != xyes && \
  18035. test x$enable_fusionsound_shared = xyes; then
  18036. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  18037. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  18038. fi
  18039. if test x$have_loadso = xyes && \
  18040. test x$enable_fusionsound_shared = xyes; then
  18041. cat >>confdefs.h <<_ACEOF
  18042. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  18043. _ACEOF
  18044. fusionsound_shared=yes
  18045. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  18046. else
  18047. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  18048. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  18049. fi
  18050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  18051. $as_echo "$fusionsound_shared" >&6; }
  18052. have_audio=yes
  18053. fi
  18054. fi
  18055. }
  18056. CheckDummyVideo()
  18057. {
  18058. # Check whether --enable-video-dummy was given.
  18059. if test "${enable_video_dummy+set}" = set; then :
  18060. enableval=$enable_video_dummy;
  18061. else
  18062. enable_video_dummy=yes
  18063. fi
  18064. if test x$enable_video_dummy = xyes; then
  18065. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18066. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18067. have_video=yes
  18068. SUMMARY_video="${SUMMARY_video} dummy"
  18069. fi
  18070. }
  18071. # Check whether --enable-video-opengl was given.
  18072. if test "${enable_video_opengl+set}" = set; then :
  18073. enableval=$enable_video_opengl;
  18074. else
  18075. enable_video_opengl=yes
  18076. fi
  18077. CheckOpenGLX11()
  18078. {
  18079. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18081. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18082. video_opengl=no
  18083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18084. /* end confdefs.h. */
  18085. #include <GL/gl.h>
  18086. #include <GL/glx.h>
  18087. int
  18088. main ()
  18089. {
  18090. ;
  18091. return 0;
  18092. }
  18093. _ACEOF
  18094. if ac_fn_c_try_compile "$LINENO"; then :
  18095. video_opengl=yes
  18096. fi
  18097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18099. $as_echo "$video_opengl" >&6; }
  18100. if test x$video_opengl = xyes; then
  18101. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18102. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18103. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18104. SUMMARY_video="${SUMMARY_video} opengl"
  18105. fi
  18106. fi
  18107. }
  18108. # Check whether --enable-video-opengles was given.
  18109. if test "${enable_video_opengles+set}" = set; then :
  18110. enableval=$enable_video_opengles;
  18111. else
  18112. enable_video_opengles=yes
  18113. fi
  18114. # Check whether --enable-video-opengles1 was given.
  18115. if test "${enable_video_opengles1+set}" = set; then :
  18116. enableval=$enable_video_opengles1;
  18117. else
  18118. enable_video_opengles1=yes
  18119. fi
  18120. # Check whether --enable-video-opengles2 was given.
  18121. if test "${enable_video_opengles2+set}" = set; then :
  18122. enableval=$enable_video_opengles2;
  18123. else
  18124. enable_video_opengles2=yes
  18125. fi
  18126. CheckOpenGLESX11()
  18127. {
  18128. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18130. $as_echo_n "checking for EGL support... " >&6; }
  18131. video_opengl_egl=no
  18132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18133. /* end confdefs.h. */
  18134. #define LINUX
  18135. #define EGL_API_FB
  18136. #include <EGL/egl.h>
  18137. #include <EGL/eglext.h>
  18138. int
  18139. main ()
  18140. {
  18141. ;
  18142. return 0;
  18143. }
  18144. _ACEOF
  18145. if ac_fn_c_try_compile "$LINENO"; then :
  18146. video_opengl_egl=yes
  18147. fi
  18148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18150. $as_echo "$video_opengl_egl" >&6; }
  18151. if test x$video_opengl_egl = xyes; then
  18152. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18153. fi
  18154. if test x$enable_video_opengles1 = xyes; then
  18155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18156. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18157. video_opengles_v1=no
  18158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18159. /* end confdefs.h. */
  18160. #include <GLES/gl.h>
  18161. #include <GLES/glext.h>
  18162. int
  18163. main ()
  18164. {
  18165. ;
  18166. return 0;
  18167. }
  18168. _ACEOF
  18169. if ac_fn_c_try_compile "$LINENO"; then :
  18170. video_opengles_v1=yes
  18171. fi
  18172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18174. $as_echo "$video_opengles_v1" >&6; }
  18175. if test x$video_opengles_v1 = xyes; then
  18176. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18177. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18178. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18179. fi
  18180. fi
  18181. if test x$enable_video_opengles2 = xyes; then
  18182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18183. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18184. video_opengles_v2=no
  18185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18186. /* end confdefs.h. */
  18187. #include <GLES2/gl2.h>
  18188. #include <GLES2/gl2ext.h>
  18189. int
  18190. main ()
  18191. {
  18192. ;
  18193. return 0;
  18194. }
  18195. _ACEOF
  18196. if ac_fn_c_try_compile "$LINENO"; then :
  18197. video_opengles_v2=yes
  18198. fi
  18199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18201. $as_echo "$video_opengles_v2" >&6; }
  18202. if test x$video_opengles_v2 = xyes; then
  18203. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18204. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18205. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18206. fi
  18207. fi
  18208. fi
  18209. }
  18210. CheckWINDOWSGL()
  18211. {
  18212. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18213. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18214. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18215. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18216. SUMMARY_video="${SUMMARY_video} opengl"
  18217. fi
  18218. }
  18219. CheckWINDOWSGLES()
  18220. {
  18221. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18223. $as_echo_n "checking for EGL support... " >&6; }
  18224. video_opengl_egl=no
  18225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18226. /* end confdefs.h. */
  18227. #include <EGL/egl.h>
  18228. int
  18229. main ()
  18230. {
  18231. ;
  18232. return 0;
  18233. }
  18234. _ACEOF
  18235. if ac_fn_c_try_compile "$LINENO"; then :
  18236. video_opengl_egl=yes
  18237. fi
  18238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18240. $as_echo "$video_opengl_egl" >&6; }
  18241. if test x$video_opengl_egl = xyes; then
  18242. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18243. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18244. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18245. fi
  18246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18247. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18248. video_opengles_v2=no
  18249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18250. /* end confdefs.h. */
  18251. #include <GLES2/gl2.h>
  18252. #include <GLES2/gl2ext.h>
  18253. int
  18254. main ()
  18255. {
  18256. ;
  18257. return 0;
  18258. }
  18259. _ACEOF
  18260. if ac_fn_c_try_compile "$LINENO"; then :
  18261. video_opengles_v2=yes
  18262. fi
  18263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18265. $as_echo "$video_opengles_v2" >&6; }
  18266. if test x$video_opengles_v2 = xyes; then
  18267. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18268. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18269. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18270. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18271. fi
  18272. fi
  18273. }
  18274. CheckHaikuGL()
  18275. {
  18276. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18277. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18278. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18279. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18280. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18281. SUMMARY_video="${SUMMARY_video} opengl"
  18282. fi
  18283. }
  18284. CheckMacGL()
  18285. {
  18286. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18287. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18288. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18289. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18290. SUMMARY_video="${SUMMARY_video} opengl"
  18291. fi
  18292. }
  18293. CheckEmscriptenGLES()
  18294. {
  18295. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18297. $as_echo_n "checking for EGL support... " >&6; }
  18298. video_opengl_egl=no
  18299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18300. /* end confdefs.h. */
  18301. #include <EGL/egl.h>
  18302. int
  18303. main ()
  18304. {
  18305. ;
  18306. return 0;
  18307. }
  18308. _ACEOF
  18309. if ac_fn_c_try_compile "$LINENO"; then :
  18310. video_opengl_egl=yes
  18311. fi
  18312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18314. $as_echo "$video_opengl_egl" >&6; }
  18315. if test x$video_opengl_egl = xyes; then
  18316. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18317. fi
  18318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18319. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18320. video_opengles_v2=no
  18321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18322. /* end confdefs.h. */
  18323. #include <GLES2/gl2.h>
  18324. #include <GLES2/gl2ext.h>
  18325. int
  18326. main ()
  18327. {
  18328. ;
  18329. return 0;
  18330. }
  18331. _ACEOF
  18332. if ac_fn_c_try_compile "$LINENO"; then :
  18333. video_opengles_v2=yes
  18334. fi
  18335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18337. $as_echo "$video_opengles_v2" >&6; }
  18338. if test x$video_opengles_v2 = xyes; then
  18339. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18340. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18341. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18342. fi
  18343. fi
  18344. }
  18345. CheckInputEvents()
  18346. {
  18347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18348. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18349. use_input_events=no
  18350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18351. /* end confdefs.h. */
  18352. #include <linux/input.h>
  18353. int
  18354. main ()
  18355. {
  18356. #ifndef EVIOCGNAME
  18357. #error EVIOCGNAME() ioctl not available
  18358. #endif
  18359. ;
  18360. return 0;
  18361. }
  18362. _ACEOF
  18363. if ac_fn_c_try_compile "$LINENO"; then :
  18364. use_input_events=yes
  18365. fi
  18366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18368. $as_echo "$use_input_events" >&6; }
  18369. if test x$use_input_events = xyes; then
  18370. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18371. SUMMARY_input="${SUMMARY_input} linuxev"
  18372. fi
  18373. }
  18374. CheckInputKD()
  18375. {
  18376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18377. $as_echo_n "checking for Linux kd.h... " >&6; }
  18378. use_input_kd=no
  18379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18380. /* end confdefs.h. */
  18381. #include <linux/kd.h>
  18382. #include <linux/keyboard.h>
  18383. int
  18384. main ()
  18385. {
  18386. struct kbentry kbe;
  18387. kbe.kb_table = KG_CTRL;
  18388. ioctl(0, KDGKBENT, &kbe);
  18389. ;
  18390. return 0;
  18391. }
  18392. _ACEOF
  18393. if ac_fn_c_try_compile "$LINENO"; then :
  18394. use_input_kd=yes
  18395. fi
  18396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18398. $as_echo "$use_input_kd" >&6; }
  18399. if test x$use_input_kd = xyes; then
  18400. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18401. SUMMARY_input="${SUMMARY_input} linuxkd"
  18402. fi
  18403. }
  18404. CheckLibUDev()
  18405. {
  18406. # Check whether --enable-libudev was given.
  18407. if test "${enable_libudev+set}" = set; then :
  18408. enableval=$enable_libudev;
  18409. else
  18410. enable_libudev=yes
  18411. fi
  18412. if test x$enable_libudev = xyes; then
  18413. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18414. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18415. have_libudev_h_hdr=yes
  18416. else
  18417. have_libudev_h_hdr=no
  18418. fi
  18419. if test x$have_libudev_h_hdr = xyes; then
  18420. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18421. fi
  18422. fi
  18423. }
  18424. CheckDBus()
  18425. {
  18426. # Check whether --enable-dbus was given.
  18427. if test "${enable_dbus+set}" = set; then :
  18428. enableval=$enable_dbus;
  18429. else
  18430. enable_dbus=yes
  18431. fi
  18432. if test x$enable_dbus = xyes; then
  18433. # Extract the first word of "pkg-config", so it can be a program name with args.
  18434. set dummy pkg-config; ac_word=$2
  18435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18436. $as_echo_n "checking for $ac_word... " >&6; }
  18437. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18438. $as_echo_n "(cached) " >&6
  18439. else
  18440. case $PKG_CONFIG in
  18441. [\\/]* | ?:[\\/]*)
  18442. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18443. ;;
  18444. *)
  18445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18446. for as_dir in $PATH
  18447. do
  18448. IFS=$as_save_IFS
  18449. test -z "$as_dir" && as_dir=.
  18450. for ac_exec_ext in '' $ac_executable_extensions; do
  18451. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18452. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18454. break 2
  18455. fi
  18456. done
  18457. done
  18458. IFS=$as_save_IFS
  18459. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18460. ;;
  18461. esac
  18462. fi
  18463. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18464. if test -n "$PKG_CONFIG"; then
  18465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18466. $as_echo "$PKG_CONFIG" >&6; }
  18467. else
  18468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18469. $as_echo "no" >&6; }
  18470. fi
  18471. if test x$PKG_CONFIG != xno; then
  18472. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18473. save_CFLAGS="$CFLAGS"
  18474. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18475. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18476. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18477. have_dbus_dbus_h_hdr=yes
  18478. else
  18479. have_dbus_dbus_h_hdr=no
  18480. fi
  18481. CFLAGS="$save_CFLAGS"
  18482. if test x$have_dbus_dbus_h_hdr = xyes; then
  18483. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18484. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18485. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18486. fi
  18487. fi
  18488. fi
  18489. }
  18490. CheckIBus()
  18491. {
  18492. # Check whether --enable-ibus was given.
  18493. if test "${enable_ibus+set}" = set; then :
  18494. enableval=$enable_ibus;
  18495. else
  18496. enable_ibus=yes
  18497. fi
  18498. if test x$enable_ibus = xyes; then
  18499. # Extract the first word of "pkg-config", so it can be a program name with args.
  18500. set dummy pkg-config; ac_word=$2
  18501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18502. $as_echo_n "checking for $ac_word... " >&6; }
  18503. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18504. $as_echo_n "(cached) " >&6
  18505. else
  18506. case $PKG_CONFIG in
  18507. [\\/]* | ?:[\\/]*)
  18508. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18509. ;;
  18510. *)
  18511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18512. for as_dir in $PATH
  18513. do
  18514. IFS=$as_save_IFS
  18515. test -z "$as_dir" && as_dir=.
  18516. for ac_exec_ext in '' $ac_executable_extensions; do
  18517. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18518. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18520. break 2
  18521. fi
  18522. done
  18523. done
  18524. IFS=$as_save_IFS
  18525. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18526. ;;
  18527. esac
  18528. fi
  18529. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18530. if test -n "$PKG_CONFIG"; then
  18531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18532. $as_echo "$PKG_CONFIG" >&6; }
  18533. else
  18534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18535. $as_echo "no" >&6; }
  18536. fi
  18537. if test x$PKG_CONFIG != xno; then
  18538. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  18539. save_CFLAGS="$CFLAGS"
  18540. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  18541. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  18542. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  18543. have_ibus_ibus_h_hdr=yes
  18544. else
  18545. have_ibus_ibus_h_hdr=no
  18546. fi
  18547. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  18548. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  18549. have_inotify_inotify_h_hdr=yes
  18550. else
  18551. have_inotify_inotify_h_hdr=no
  18552. fi
  18553. CFLAGS="$save_CFLAGS"
  18554. if test x$have_ibus_ibus_h_hdr = xyes; then
  18555. if test x$enable_dbus != xyes; then
  18556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  18557. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  18558. have_ibus_ibus_h_hdr=no
  18559. elif test x$have_inotify_inotify_h_hdr != xyes; then
  18560. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  18561. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  18562. have_ibus_ibus_h_hdr=no
  18563. else
  18564. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  18565. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  18566. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  18567. fi
  18568. fi
  18569. fi
  18570. fi
  18571. }
  18572. CheckTslib()
  18573. {
  18574. # Check whether --enable-input-tslib was given.
  18575. if test "${enable_input_tslib+set}" = set; then :
  18576. enableval=$enable_input_tslib;
  18577. else
  18578. enable_input_tslib=yes
  18579. fi
  18580. if test x$enable_input_tslib = xyes; then
  18581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18582. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18583. enable_input_tslib=no
  18584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18585. /* end confdefs.h. */
  18586. #include "tslib.h"
  18587. int
  18588. main ()
  18589. {
  18590. ;
  18591. return 0;
  18592. }
  18593. _ACEOF
  18594. if ac_fn_c_try_compile "$LINENO"; then :
  18595. enable_input_tslib=yes
  18596. fi
  18597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18599. $as_echo "$enable_input_tslib" >&6; }
  18600. if test x$enable_input_tslib = xyes; then
  18601. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18602. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18603. SUMMARY_input="${SUMMARY_input} ts"
  18604. fi
  18605. fi
  18606. }
  18607. CheckPTHREAD()
  18608. {
  18609. # Check whether --enable-pthreads was given.
  18610. if test "${enable_pthreads+set}" = set; then :
  18611. enableval=$enable_pthreads;
  18612. else
  18613. enable_pthreads=yes
  18614. fi
  18615. # Check whether --enable-pthread-sem was given.
  18616. if test "${enable_pthread_sem+set}" = set; then :
  18617. enableval=$enable_pthread_sem;
  18618. else
  18619. enable_pthread_sem=yes
  18620. fi
  18621. case "$host" in
  18622. *-*-androideabi*)
  18623. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18624. pthread_lib=""
  18625. ;;
  18626. *-*-linux*|*-*-uclinux*)
  18627. pthread_cflags="-D_REENTRANT"
  18628. pthread_lib="-lpthread"
  18629. ;;
  18630. *-*-bsdi*)
  18631. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18632. pthread_lib=""
  18633. ;;
  18634. *-*-darwin*)
  18635. pthread_cflags="-D_THREAD_SAFE"
  18636. # causes Carbon.p complaints?
  18637. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18638. ;;
  18639. *-*-freebsd*|*-*-dragonfly*)
  18640. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18641. pthread_lib="-pthread"
  18642. ;;
  18643. *-*-netbsd*)
  18644. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18645. pthread_lib="-lpthread"
  18646. ;;
  18647. *-*-openbsd*)
  18648. pthread_cflags="-D_REENTRANT"
  18649. pthread_lib="-pthread"
  18650. ;;
  18651. *-*-solaris2.9)
  18652. # From Solaris 9+, posix4's preferred name is rt.
  18653. pthread_cflags="-D_REENTRANT"
  18654. pthread_lib="-lpthread -lrt"
  18655. ;;
  18656. *-*-solaris2.10)
  18657. # Solaris 10+ merged pthread into libc.
  18658. pthread_cflags="-D_REENTRANT"
  18659. pthread_lib="-lrt"
  18660. ;;
  18661. *-*-solaris*)
  18662. # Solaris 11+ merged rt into libc.
  18663. pthread_cflags="-D_REENTRANT"
  18664. pthread_lib=""
  18665. ;;
  18666. *-*-sysv5*)
  18667. pthread_cflags="-D_REENTRANT -Kthread"
  18668. pthread_lib=""
  18669. ;;
  18670. *-*-aix*)
  18671. pthread_cflags="-D_REENTRANT -mthreads"
  18672. pthread_lib="-lpthread"
  18673. ;;
  18674. *-*-hpux11*)
  18675. pthread_cflags="-D_REENTRANT"
  18676. pthread_lib="-L/usr/lib -lpthread"
  18677. ;;
  18678. *-*-haiku*)
  18679. pthread_cflags="-D_REENTRANT"
  18680. pthread_lib=""
  18681. ;;
  18682. *)
  18683. pthread_cflags="-D_REENTRANT"
  18684. pthread_lib="-lpthread"
  18685. ;;
  18686. esac
  18687. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18688. # Save the original compiler flags and libraries
  18689. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18690. # Add the pthread compiler flags and libraries
  18691. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18692. # Check to see if we have pthread support on this system
  18693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18694. $as_echo_n "checking for pthreads... " >&6; }
  18695. use_pthreads=no
  18696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18697. /* end confdefs.h. */
  18698. #include <pthread.h>
  18699. int
  18700. main ()
  18701. {
  18702. pthread_attr_t type;
  18703. pthread_attr_init(&type);
  18704. ;
  18705. return 0;
  18706. }
  18707. _ACEOF
  18708. if ac_fn_c_try_link "$LINENO"; then :
  18709. use_pthreads=yes
  18710. fi
  18711. rm -f core conftest.err conftest.$ac_objext \
  18712. conftest$ac_exeext conftest.$ac_ext
  18713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18714. $as_echo "$use_pthreads" >&6; }
  18715. # Restore the compiler flags and libraries
  18716. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18717. # Do futher testing if we have pthread support...
  18718. if test x$use_pthreads = xyes; then
  18719. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18720. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18721. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18722. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18723. # Save the original compiler flags and libraries
  18724. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18725. # Add the pthread compiler flags and libraries
  18726. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18727. # Check to see if recursive mutexes are available
  18728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18729. $as_echo_n "checking for recursive mutexes... " >&6; }
  18730. has_recursive_mutexes=no
  18731. if test x$has_recursive_mutexes = xno; then
  18732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18733. /* end confdefs.h. */
  18734. #define _GNU_SOURCE 1
  18735. #include <pthread.h>
  18736. int
  18737. main ()
  18738. {
  18739. pthread_mutexattr_t attr;
  18740. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18741. ;
  18742. return 0;
  18743. }
  18744. _ACEOF
  18745. if ac_fn_c_try_link "$LINENO"; then :
  18746. has_recursive_mutexes=yes
  18747. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18748. fi
  18749. rm -f core conftest.err conftest.$ac_objext \
  18750. conftest$ac_exeext conftest.$ac_ext
  18751. fi
  18752. if test x$has_recursive_mutexes = xno; then
  18753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18754. /* end confdefs.h. */
  18755. #define _GNU_SOURCE 1
  18756. #include <pthread.h>
  18757. int
  18758. main ()
  18759. {
  18760. pthread_mutexattr_t attr;
  18761. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18762. ;
  18763. return 0;
  18764. }
  18765. _ACEOF
  18766. if ac_fn_c_try_link "$LINENO"; then :
  18767. has_recursive_mutexes=yes
  18768. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18769. fi
  18770. rm -f core conftest.err conftest.$ac_objext \
  18771. conftest$ac_exeext conftest.$ac_ext
  18772. fi
  18773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18774. $as_echo "$has_recursive_mutexes" >&6; }
  18775. # Check to see if pthread semaphore support is missing
  18776. if test x$enable_pthread_sem = xyes; then
  18777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18778. $as_echo_n "checking for pthread semaphores... " >&6; }
  18779. have_pthread_sem=no
  18780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18781. /* end confdefs.h. */
  18782. #include <pthread.h>
  18783. #include <semaphore.h>
  18784. int
  18785. main ()
  18786. {
  18787. ;
  18788. return 0;
  18789. }
  18790. _ACEOF
  18791. if ac_fn_c_try_compile "$LINENO"; then :
  18792. have_pthread_sem=yes
  18793. fi
  18794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18796. $as_echo "$have_pthread_sem" >&6; }
  18797. fi
  18798. if test x$have_pthread_sem = xyes; then
  18799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18800. $as_echo_n "checking for sem_timedwait... " >&6; }
  18801. have_sem_timedwait=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. sem_timedwait(NULL, NULL);
  18810. ;
  18811. return 0;
  18812. }
  18813. _ACEOF
  18814. if ac_fn_c_try_link "$LINENO"; then :
  18815. have_sem_timedwait=yes
  18816. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18817. fi
  18818. rm -f core conftest.err conftest.$ac_objext \
  18819. conftest$ac_exeext conftest.$ac_ext
  18820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18821. $as_echo "$have_sem_timedwait" >&6; }
  18822. fi
  18823. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18824. "
  18825. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18826. have_pthread_np_h=yes
  18827. else
  18828. have_pthread_np_h=no
  18829. fi
  18830. if test x$have_pthread_np_h = xyes; then
  18831. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18832. fi
  18833. # Check to see if pthread naming is available
  18834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18835. $as_echo_n "checking for pthread_setname_np... " >&6; }
  18836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18837. /* end confdefs.h. */
  18838. /* Override any GCC internal prototype to avoid an error.
  18839. Use char because int might match the return type of a GCC
  18840. builtin and then its argument prototype would still apply. */
  18841. #ifdef __cplusplus
  18842. extern "C"
  18843. #endif
  18844. char pthread_setname_np ();
  18845. int
  18846. main ()
  18847. {
  18848. return pthread_setname_np ();
  18849. ;
  18850. return 0;
  18851. }
  18852. _ACEOF
  18853. if ac_fn_c_try_link "$LINENO"; then :
  18854. has_pthread_setname_np=yes
  18855. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18856. else
  18857. has_pthread_setname_np=no
  18858. fi
  18859. rm -f core conftest.err conftest.$ac_objext \
  18860. conftest$ac_exeext conftest.$ac_ext
  18861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  18862. $as_echo "$has_pthread_setname_np" >&6; }
  18863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  18864. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  18865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18866. /* end confdefs.h. */
  18867. /* Override any GCC internal prototype to avoid an error.
  18868. Use char because int might match the return type of a GCC
  18869. builtin and then its argument prototype would still apply. */
  18870. #ifdef __cplusplus
  18871. extern "C"
  18872. #endif
  18873. char pthread_set_name_np ();
  18874. int
  18875. main ()
  18876. {
  18877. return pthread_set_name_np ();
  18878. ;
  18879. return 0;
  18880. }
  18881. _ACEOF
  18882. if ac_fn_c_try_link "$LINENO"; then :
  18883. has_pthread_set_name_np=yes
  18884. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  18885. else
  18886. has_pthread_set_name_np=no
  18887. fi
  18888. rm -f core conftest.err conftest.$ac_objext \
  18889. conftest$ac_exeext conftest.$ac_ext
  18890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  18891. $as_echo "$has_pthread_set_name_np" >&6; }
  18892. # Restore the compiler flags and libraries
  18893. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18894. # Basic thread creation functions
  18895. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  18896. # Semaphores
  18897. # We can fake these with mutexes and condition variables if necessary
  18898. if test x$have_pthread_sem = xyes; then
  18899. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  18900. else
  18901. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  18902. fi
  18903. # Mutexes
  18904. # We can fake these with semaphores if necessary
  18905. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  18906. # Condition variables
  18907. # We can fake these with semaphores and mutexes if necessary
  18908. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  18909. # Thread local storage
  18910. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  18911. have_threads=yes
  18912. fi
  18913. fi
  18914. }
  18915. CheckWINDOWS()
  18916. {
  18917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  18918. $as_echo_n "checking Windows compiler... " >&6; }
  18919. have_win32_gcc=no
  18920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18921. /* end confdefs.h. */
  18922. #include <windows.h>
  18923. int
  18924. main ()
  18925. {
  18926. ;
  18927. return 0;
  18928. }
  18929. _ACEOF
  18930. if ac_fn_c_try_compile "$LINENO"; then :
  18931. have_win32_gcc=yes
  18932. fi
  18933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  18935. $as_echo "$have_win32_gcc" >&6; }
  18936. if test x$have_win32_gcc != xyes; then
  18937. as_fn_error $? "
  18938. *** Your compiler ($CC) does not produce Windows executables!
  18939. " "$LINENO" 5
  18940. fi
  18941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  18942. $as_echo_n "checking Windows CE... " >&6; }
  18943. have_wince=no
  18944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18945. /* end confdefs.h. */
  18946. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  18947. #error This is not Windows CE
  18948. #endif
  18949. int
  18950. main ()
  18951. {
  18952. ;
  18953. return 0;
  18954. }
  18955. _ACEOF
  18956. if ac_fn_c_try_compile "$LINENO"; then :
  18957. have_wince=yes
  18958. as_fn_error $? "
  18959. *** Sorry, Windows CE is no longer supported.
  18960. " "$LINENO" 5
  18961. fi
  18962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  18964. $as_echo "$have_wince" >&6; }
  18965. # This fixes Windows stack alignment with newer GCC
  18966. CheckStackBoundary
  18967. }
  18968. CheckDIRECTX()
  18969. {
  18970. # Check whether --enable-directx was given.
  18971. if test "${enable_directx+set}" = set; then :
  18972. enableval=$enable_directx;
  18973. else
  18974. enable_directx=yes
  18975. fi
  18976. if test x$enable_directx = xyes; then
  18977. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  18978. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  18979. have_d3d=yes
  18980. fi
  18981. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  18982. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  18983. have_d3d11=yes
  18984. fi
  18985. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  18986. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  18987. have_ddraw=yes
  18988. fi
  18989. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  18990. if test "x$ac_cv_header_dsound_h" = xyes; then :
  18991. have_dsound=yes
  18992. fi
  18993. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  18994. if test "x$ac_cv_header_dinput_h" = xyes; then :
  18995. have_dinput=yes
  18996. fi
  18997. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  18998. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  18999. have_dxgi=yes
  19000. fi
  19001. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19002. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19003. have_xaudio2=yes
  19004. fi
  19005. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19006. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19007. have_xinput=yes
  19008. fi
  19009. if test x$have_ddraw = xyes; then
  19010. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19011. fi
  19012. if test x$have_dinput = xyes; then
  19013. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19014. fi
  19015. if test x$have_dsound = xyes; then
  19016. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19017. fi
  19018. if test x$have_dxgi = xyes; then
  19019. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19020. fi
  19021. if test x$have_xinput = xyes; then
  19022. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19023. fi
  19024. SUMMARY_video="${SUMMARY_video} directx"
  19025. SUMMARY_audio="${SUMMARY_audio} directx"
  19026. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19027. # FIXME: ...so force it off for now.
  19028. case "$host" in
  19029. *-*-cygwin*)
  19030. have_dinput=false
  19031. ;;
  19032. esac
  19033. fi
  19034. }
  19035. CheckDLOPEN()
  19036. {
  19037. # Check whether --enable-sdl-dlopen was given.
  19038. if test "${enable_sdl_dlopen+set}" = set; then :
  19039. enableval=$enable_sdl_dlopen;
  19040. else
  19041. enable_sdl_dlopen=yes
  19042. fi
  19043. if test x$enable_sdl_dlopen = xyes; then
  19044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19045. $as_echo_n "checking for dlopen... " >&6; }
  19046. have_dlopen=no
  19047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19048. /* end confdefs.h. */
  19049. #include <dlfcn.h>
  19050. int
  19051. main ()
  19052. {
  19053. void *handle = dlopen("", RTLD_NOW);
  19054. const char *loaderror = (char *) dlerror();
  19055. ;
  19056. return 0;
  19057. }
  19058. _ACEOF
  19059. if ac_fn_c_try_compile "$LINENO"; then :
  19060. have_dlopen=yes
  19061. fi
  19062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19064. $as_echo "$have_dlopen" >&6; }
  19065. if test x$have_dlopen = xyes; then
  19066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19067. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19068. if ${ac_cv_lib_c_dlopen+:} false; then :
  19069. $as_echo_n "(cached) " >&6
  19070. else
  19071. ac_check_lib_save_LIBS=$LIBS
  19072. LIBS="-lc $LIBS"
  19073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19074. /* end confdefs.h. */
  19075. /* Override any GCC internal prototype to avoid an error.
  19076. Use char because int might match the return type of a GCC
  19077. builtin and then its argument prototype would still apply. */
  19078. #ifdef __cplusplus
  19079. extern "C"
  19080. #endif
  19081. char dlopen ();
  19082. int
  19083. main ()
  19084. {
  19085. return dlopen ();
  19086. ;
  19087. return 0;
  19088. }
  19089. _ACEOF
  19090. if ac_fn_c_try_link "$LINENO"; then :
  19091. ac_cv_lib_c_dlopen=yes
  19092. else
  19093. ac_cv_lib_c_dlopen=no
  19094. fi
  19095. rm -f core conftest.err conftest.$ac_objext \
  19096. conftest$ac_exeext conftest.$ac_ext
  19097. LIBS=$ac_check_lib_save_LIBS
  19098. fi
  19099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19100. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19101. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19102. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19103. else
  19104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19105. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19106. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19107. $as_echo_n "(cached) " >&6
  19108. else
  19109. ac_check_lib_save_LIBS=$LIBS
  19110. LIBS="-ldl $LIBS"
  19111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19112. /* end confdefs.h. */
  19113. /* Override any GCC internal prototype to avoid an error.
  19114. Use char because int might match the return type of a GCC
  19115. builtin and then its argument prototype would still apply. */
  19116. #ifdef __cplusplus
  19117. extern "C"
  19118. #endif
  19119. char dlopen ();
  19120. int
  19121. main ()
  19122. {
  19123. return dlopen ();
  19124. ;
  19125. return 0;
  19126. }
  19127. _ACEOF
  19128. if ac_fn_c_try_link "$LINENO"; then :
  19129. ac_cv_lib_dl_dlopen=yes
  19130. else
  19131. ac_cv_lib_dl_dlopen=no
  19132. fi
  19133. rm -f core conftest.err conftest.$ac_objext \
  19134. conftest$ac_exeext conftest.$ac_ext
  19135. LIBS=$ac_check_lib_save_LIBS
  19136. fi
  19137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19138. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19139. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19140. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19141. else
  19142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19143. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19144. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19145. $as_echo_n "(cached) " >&6
  19146. else
  19147. ac_check_lib_save_LIBS=$LIBS
  19148. LIBS="-lltdl $LIBS"
  19149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19150. /* end confdefs.h. */
  19151. /* Override any GCC internal prototype to avoid an error.
  19152. Use char because int might match the return type of a GCC
  19153. builtin and then its argument prototype would still apply. */
  19154. #ifdef __cplusplus
  19155. extern "C"
  19156. #endif
  19157. char dlopen ();
  19158. int
  19159. main ()
  19160. {
  19161. return dlopen ();
  19162. ;
  19163. return 0;
  19164. }
  19165. _ACEOF
  19166. if ac_fn_c_try_link "$LINENO"; then :
  19167. ac_cv_lib_ltdl_dlopen=yes
  19168. else
  19169. ac_cv_lib_ltdl_dlopen=no
  19170. fi
  19171. rm -f core conftest.err conftest.$ac_objext \
  19172. conftest$ac_exeext conftest.$ac_ext
  19173. LIBS=$ac_check_lib_save_LIBS
  19174. fi
  19175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19176. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19177. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19178. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19179. fi
  19180. fi
  19181. fi
  19182. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19183. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19184. have_loadso=yes
  19185. fi
  19186. fi
  19187. }
  19188. CheckUSBHID()
  19189. {
  19190. case "$host" in
  19191. *-*-*bsd*)
  19192. if test x$enable_joystick = xyes; then
  19193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19194. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19195. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19196. $as_echo_n "(cached) " >&6
  19197. else
  19198. ac_check_lib_save_LIBS=$LIBS
  19199. LIBS="-lusbhid $LIBS"
  19200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19201. /* end confdefs.h. */
  19202. /* Override any GCC internal prototype to avoid an error.
  19203. Use char because int might match the return type of a GCC
  19204. builtin and then its argument prototype would still apply. */
  19205. #ifdef __cplusplus
  19206. extern "C"
  19207. #endif
  19208. char hid_init ();
  19209. int
  19210. main ()
  19211. {
  19212. return hid_init ();
  19213. ;
  19214. return 0;
  19215. }
  19216. _ACEOF
  19217. if ac_fn_c_try_link "$LINENO"; then :
  19218. ac_cv_lib_usbhid_hid_init=yes
  19219. else
  19220. ac_cv_lib_usbhid_hid_init=no
  19221. fi
  19222. rm -f core conftest.err conftest.$ac_objext \
  19223. conftest$ac_exeext conftest.$ac_ext
  19224. LIBS=$ac_check_lib_save_LIBS
  19225. fi
  19226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19227. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19228. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19229. have_libusbhid=yes
  19230. fi
  19231. if test x$have_libusbhid = xyes; then
  19232. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19233. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19234. USB_CFLAGS="-DHAVE_USBHID_H"
  19235. fi
  19236. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19237. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19238. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19239. fi
  19240. USB_LIBS="$USB_LIBS -lusbhid"
  19241. else
  19242. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19243. if test "x$ac_cv_header_usb_h" = xyes; then :
  19244. USB_CFLAGS="-DHAVE_USB_H"
  19245. fi
  19246. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19247. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19248. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19249. fi
  19250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19251. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19252. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19253. $as_echo_n "(cached) " >&6
  19254. else
  19255. ac_check_lib_save_LIBS=$LIBS
  19256. LIBS="-lusb $LIBS"
  19257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19258. /* end confdefs.h. */
  19259. /* Override any GCC internal prototype to avoid an error.
  19260. Use char because int might match the return type of a GCC
  19261. builtin and then its argument prototype would still apply. */
  19262. #ifdef __cplusplus
  19263. extern "C"
  19264. #endif
  19265. char hid_init ();
  19266. int
  19267. main ()
  19268. {
  19269. return hid_init ();
  19270. ;
  19271. return 0;
  19272. }
  19273. _ACEOF
  19274. if ac_fn_c_try_link "$LINENO"; then :
  19275. ac_cv_lib_usb_hid_init=yes
  19276. else
  19277. ac_cv_lib_usb_hid_init=no
  19278. fi
  19279. rm -f core conftest.err conftest.$ac_objext \
  19280. conftest$ac_exeext conftest.$ac_ext
  19281. LIBS=$ac_check_lib_save_LIBS
  19282. fi
  19283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19284. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19285. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19286. USB_LIBS="$USB_LIBS -lusb"
  19287. fi
  19288. fi
  19289. save_CFLAGS="$CFLAGS"
  19290. CFLAGS="$CFLAGS $USB_CFLAGS"
  19291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19292. $as_echo_n "checking for usbhid... " >&6; }
  19293. have_usbhid=no
  19294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19295. /* end confdefs.h. */
  19296. #include <sys/types.h>
  19297. #if defined(HAVE_USB_H)
  19298. #include <usb.h>
  19299. #endif
  19300. #ifdef __DragonFly__
  19301. # include <bus/usb/usb.h>
  19302. # include <bus/usb/usbhid.h>
  19303. #else
  19304. # include <dev/usb/usb.h>
  19305. # include <dev/usb/usbhid.h>
  19306. #endif
  19307. #if defined(HAVE_USBHID_H)
  19308. #include <usbhid.h>
  19309. #elif defined(HAVE_LIBUSB_H)
  19310. #include <libusb.h>
  19311. #elif defined(HAVE_LIBUSBHID_H)
  19312. #include <libusbhid.h>
  19313. #endif
  19314. int
  19315. main ()
  19316. {
  19317. struct report_desc *repdesc;
  19318. struct usb_ctl_report *repbuf;
  19319. hid_kind_t hidkind;
  19320. ;
  19321. return 0;
  19322. }
  19323. _ACEOF
  19324. if ac_fn_c_try_compile "$LINENO"; then :
  19325. have_usbhid=yes
  19326. fi
  19327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19329. $as_echo "$have_usbhid" >&6; }
  19330. if test x$have_usbhid = xyes; then
  19331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19332. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19333. have_usbhid_ucr_data=no
  19334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19335. /* end confdefs.h. */
  19336. #include <sys/types.h>
  19337. #if defined(HAVE_USB_H)
  19338. #include <usb.h>
  19339. #endif
  19340. #ifdef __DragonFly__
  19341. # include <bus/usb/usb.h>
  19342. # include <bus/usb/usbhid.h>
  19343. #else
  19344. # include <dev/usb/usb.h>
  19345. # include <dev/usb/usbhid.h>
  19346. #endif
  19347. #if defined(HAVE_USBHID_H)
  19348. #include <usbhid.h>
  19349. #elif defined(HAVE_LIBUSB_H)
  19350. #include <libusb.h>
  19351. #elif defined(HAVE_LIBUSBHID_H)
  19352. #include <libusbhid.h>
  19353. #endif
  19354. int
  19355. main ()
  19356. {
  19357. struct usb_ctl_report buf;
  19358. if (buf.ucr_data) { }
  19359. ;
  19360. return 0;
  19361. }
  19362. _ACEOF
  19363. if ac_fn_c_try_compile "$LINENO"; then :
  19364. have_usbhid_ucr_data=yes
  19365. fi
  19366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19367. if test x$have_usbhid_ucr_data = xyes; then
  19368. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19369. fi
  19370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19371. $as_echo "$have_usbhid_ucr_data" >&6; }
  19372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19373. $as_echo_n "checking for new usbhid API... " >&6; }
  19374. have_usbhid_new=no
  19375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19376. /* end confdefs.h. */
  19377. #include <sys/types.h>
  19378. #if defined(HAVE_USB_H)
  19379. #include <usb.h>
  19380. #endif
  19381. #ifdef __DragonFly__
  19382. #include <bus/usb/usb.h>
  19383. #include <bus/usb/usbhid.h>
  19384. #else
  19385. #include <dev/usb/usb.h>
  19386. #include <dev/usb/usbhid.h>
  19387. #endif
  19388. #if defined(HAVE_USBHID_H)
  19389. #include <usbhid.h>
  19390. #elif defined(HAVE_LIBUSB_H)
  19391. #include <libusb.h>
  19392. #elif defined(HAVE_LIBUSBHID_H)
  19393. #include <libusbhid.h>
  19394. #endif
  19395. int
  19396. main ()
  19397. {
  19398. report_desc_t d;
  19399. hid_start_parse(d, 1, 1);
  19400. ;
  19401. return 0;
  19402. }
  19403. _ACEOF
  19404. if ac_fn_c_try_compile "$LINENO"; then :
  19405. have_usbhid_new=yes
  19406. fi
  19407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19408. if test x$have_usbhid_new = xyes; then
  19409. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19410. fi
  19411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19412. $as_echo "$have_usbhid_new" >&6; }
  19413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19414. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19415. have_machine_joystick=no
  19416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19417. /* end confdefs.h. */
  19418. #include <machine/joystick.h>
  19419. int
  19420. main ()
  19421. {
  19422. struct joystick t;
  19423. ;
  19424. return 0;
  19425. }
  19426. _ACEOF
  19427. if ac_fn_c_try_compile "$LINENO"; then :
  19428. have_machine_joystick=yes
  19429. fi
  19430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19431. if test x$have_machine_joystick = xyes; then
  19432. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19433. fi
  19434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19435. $as_echo "$have_machine_joystick" >&6; }
  19436. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19437. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19438. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19439. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19440. have_joystick=yes
  19441. fi
  19442. CFLAGS="$save_CFLAGS"
  19443. fi
  19444. ;;
  19445. esac
  19446. }
  19447. CheckClockGettime()
  19448. {
  19449. # Check whether --enable-clock_gettime was given.
  19450. if test "${enable_clock_gettime+set}" = set; then :
  19451. enableval=$enable_clock_gettime;
  19452. else
  19453. enable_clock_gettime=yes
  19454. fi
  19455. if test x$enable_clock_gettime = xyes; then
  19456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19457. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19458. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19459. $as_echo_n "(cached) " >&6
  19460. else
  19461. ac_check_lib_save_LIBS=$LIBS
  19462. LIBS="-lrt $LIBS"
  19463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19464. /* end confdefs.h. */
  19465. /* Override any GCC internal prototype to avoid an error.
  19466. Use char because int might match the return type of a GCC
  19467. builtin and then its argument prototype would still apply. */
  19468. #ifdef __cplusplus
  19469. extern "C"
  19470. #endif
  19471. char clock_gettime ();
  19472. int
  19473. main ()
  19474. {
  19475. return clock_gettime ();
  19476. ;
  19477. return 0;
  19478. }
  19479. _ACEOF
  19480. if ac_fn_c_try_link "$LINENO"; then :
  19481. ac_cv_lib_rt_clock_gettime=yes
  19482. else
  19483. ac_cv_lib_rt_clock_gettime=no
  19484. fi
  19485. rm -f core conftest.err conftest.$ac_objext \
  19486. conftest$ac_exeext conftest.$ac_ext
  19487. LIBS=$ac_check_lib_save_LIBS
  19488. fi
  19489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19490. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19491. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19492. have_clock_gettime=yes
  19493. fi
  19494. if test x$have_clock_gettime = xyes; then
  19495. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19496. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19497. else
  19498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19499. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19500. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19501. $as_echo_n "(cached) " >&6
  19502. else
  19503. ac_check_lib_save_LIBS=$LIBS
  19504. LIBS="-lc $LIBS"
  19505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19506. /* end confdefs.h. */
  19507. /* Override any GCC internal prototype to avoid an error.
  19508. Use char because int might match the return type of a GCC
  19509. builtin and then its argument prototype would still apply. */
  19510. #ifdef __cplusplus
  19511. extern "C"
  19512. #endif
  19513. char clock_gettime ();
  19514. int
  19515. main ()
  19516. {
  19517. return clock_gettime ();
  19518. ;
  19519. return 0;
  19520. }
  19521. _ACEOF
  19522. if ac_fn_c_try_link "$LINENO"; then :
  19523. ac_cv_lib_c_clock_gettime=yes
  19524. else
  19525. ac_cv_lib_c_clock_gettime=no
  19526. fi
  19527. rm -f core conftest.err conftest.$ac_objext \
  19528. conftest$ac_exeext conftest.$ac_ext
  19529. LIBS=$ac_check_lib_save_LIBS
  19530. fi
  19531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19532. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19533. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19534. have_clock_gettime=yes
  19535. fi
  19536. if test x$have_clock_gettime = xyes; then
  19537. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19538. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19539. fi
  19540. fi
  19541. fi
  19542. }
  19543. CheckLinuxVersion()
  19544. {
  19545. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19546. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19547. have_linux_version_h=yes
  19548. fi
  19549. if test x$have_linux_version_h = xyes; then
  19550. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19551. fi
  19552. }
  19553. CheckRPATH()
  19554. {
  19555. # Check whether --enable-rpath was given.
  19556. if test "${enable_rpath+set}" = set; then :
  19557. enableval=$enable_rpath;
  19558. else
  19559. enable_rpath=yes
  19560. fi
  19561. }
  19562. case "$host" in
  19563. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19564. case "$host" in
  19565. *-raspberry-linux*)
  19566. # Raspberry Pi
  19567. ARCH=linux
  19568. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19569. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19570. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19571. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19572. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19573. if test x$enable_video = xyes; then
  19574. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19575. # FIXME: confdefs? Not AC_DEFINE?
  19576. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19577. SUMMARY_video="${SUMMARY_video} rpi"
  19578. fi
  19579. ;;
  19580. *-*-androideabi*)
  19581. # Android
  19582. ARCH=android
  19583. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  19584. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  19585. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  19586. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  19587. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  19588. if test x$enable_video = xyes; then
  19589. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  19590. # FIXME: confdefs? Not AC_DEFINE?
  19591. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  19592. SUMMARY_video="${SUMMARY_video} android"
  19593. fi
  19594. ;;
  19595. *-*-linux*) ARCH=linux ;;
  19596. *-*-uclinux*) ARCH=linux ;;
  19597. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19598. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19599. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19600. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19601. *-*-bsdi*) ARCH=bsdi ;;
  19602. *-*-freebsd*) ARCH=freebsd ;;
  19603. *-*-dragonfly*) ARCH=freebsd ;;
  19604. *-raspberry-netbsd*)
  19605. # Raspberry Pi
  19606. ARCH=netbsd
  19607. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19608. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19609. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19610. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19611. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
  19612. if test x$enable_video = xyes; then
  19613. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19614. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19615. SUMMARY_video="${SUMMARY_video} raspberry"
  19616. fi
  19617. ;;
  19618. *-*-netbsd*) ARCH=netbsd ;;
  19619. *-*-openbsd*) ARCH=openbsd ;;
  19620. *-*-sysv5*) ARCH=sysv5 ;;
  19621. *-*-solaris*) ARCH=solaris ;;
  19622. *-*-hpux*) ARCH=hpux ;;
  19623. *-*-aix*) ARCH=aix ;;
  19624. *-*-minix*) ARCH=minix ;;
  19625. esac
  19626. CheckVisibilityHidden
  19627. CheckDummyVideo
  19628. CheckDiskAudio
  19629. CheckDummyAudio
  19630. CheckDLOPEN
  19631. CheckOSS
  19632. CheckALSA
  19633. CheckPulseAudio
  19634. CheckARTSC
  19635. CheckESD
  19636. CheckNAS
  19637. CheckSNDIO
  19638. CheckX11
  19639. CheckDirectFB
  19640. CheckFusionSound
  19641. CheckOpenGLX11
  19642. CheckOpenGLESX11
  19643. CheckMir
  19644. CheckWayland
  19645. CheckLibUDev
  19646. CheckDBus
  19647. CheckIBus
  19648. case $ARCH in
  19649. linux)
  19650. CheckInputEvents
  19651. CheckInputKD
  19652. ;;
  19653. esac
  19654. CheckTslib
  19655. CheckUSBHID
  19656. CheckPTHREAD
  19657. CheckClockGettime
  19658. CheckLinuxVersion
  19659. CheckRPATH
  19660. CheckVivanteVideo
  19661. # Set up files for the audio library
  19662. if test x$enable_audio = xyes; then
  19663. case $ARCH in
  19664. sysv5|solaris|hpux)
  19665. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19666. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19667. have_audio=yes
  19668. ;;
  19669. netbsd) # Don't use this on OpenBSD, it's busted.
  19670. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19671. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19672. have_audio=yes
  19673. ;;
  19674. aix)
  19675. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19676. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19677. have_audio=yes
  19678. ;;
  19679. android)
  19680. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  19681. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  19682. SUMMARY_audio="${SUMMARY_audio} android"
  19683. have_audio=yes
  19684. ;;
  19685. esac
  19686. fi
  19687. # Set up files for the joystick library
  19688. if test x$enable_joystick = xyes; then
  19689. case $ARCH in
  19690. linux)
  19691. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19692. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19693. have_joystick=yes
  19694. ;;
  19695. android)
  19696. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  19697. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  19698. have_joystick=yes
  19699. ;;
  19700. esac
  19701. fi
  19702. # Set up files for the haptic library
  19703. if test x$enable_haptic = xyes; then
  19704. if test x$use_input_events = xyes; then
  19705. case $ARCH in
  19706. linux)
  19707. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19708. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19709. have_haptic=yes
  19710. ;;
  19711. esac
  19712. fi
  19713. fi
  19714. # Set up files for the power library
  19715. if test x$enable_power = xyes; then
  19716. case $ARCH in
  19717. linux)
  19718. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19719. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19720. have_power=yes
  19721. ;;
  19722. android)
  19723. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  19724. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  19725. have_power=yes
  19726. ;;
  19727. esac
  19728. fi
  19729. # Set up files for the filesystem library
  19730. if test x$enable_filesystem = xyes; then
  19731. case $ARCH in
  19732. android)
  19733. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  19734. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  19735. have_filesystem=yes
  19736. ;;
  19737. *)
  19738. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19739. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19740. have_filesystem=yes
  19741. ;;
  19742. esac
  19743. fi
  19744. # Set up files for the timer library
  19745. if test x$enable_timers = xyes; then
  19746. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19747. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19748. have_timers=yes
  19749. fi
  19750. # Set up files for udev hotplugging support
  19751. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19752. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19753. fi
  19754. # Set up files for evdev input
  19755. if test x$use_input_events = xyes; then
  19756. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19757. fi
  19758. ;;
  19759. *-*-cygwin* | *-*-mingw32*)
  19760. ARCH=win32
  19761. if test "$build" != "$host"; then # cross-compiling
  19762. # Default cross-compile location
  19763. ac_default_prefix=/usr/local/cross-tools/$host
  19764. else
  19765. # Look for the location of the tools and install there
  19766. if test "$BUILD_PREFIX" != ""; then
  19767. ac_default_prefix=$BUILD_PREFIX
  19768. fi
  19769. fi
  19770. CheckDummyVideo
  19771. CheckDiskAudio
  19772. CheckDummyAudio
  19773. CheckWINDOWS
  19774. CheckWINDOWSGL
  19775. CheckWINDOWSGLES
  19776. CheckDIRECTX
  19777. # Set up the core platform files
  19778. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19779. # Set up files for the video library
  19780. if test x$enable_video = xyes; then
  19781. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19782. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19783. have_video=yes
  19784. # Check whether --enable-render-d3d was given.
  19785. if test "${enable_render_d3d+set}" = set; then :
  19786. enableval=$enable_render_d3d;
  19787. else
  19788. enable_render_d3d=yes
  19789. fi
  19790. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19791. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19792. fi
  19793. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  19794. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  19795. fi
  19796. fi
  19797. # Set up files for the audio library
  19798. if test x$enable_audio = xyes; then
  19799. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19800. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19801. if test x$have_dsound = xyes; then
  19802. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19803. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19804. fi
  19805. if test x$have_xaudio2 = xyes; then
  19806. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19807. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19808. fi
  19809. have_audio=yes
  19810. fi
  19811. # Set up files for the joystick library
  19812. if test x$enable_joystick = xyes; then
  19813. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  19814. if test x$have_xinput = xyes; then
  19815. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  19816. fi
  19817. if test x$have_dinput = xyes; then
  19818. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19819. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19820. fi
  19821. else
  19822. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19823. fi
  19824. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  19825. have_joystick=yes
  19826. fi
  19827. if test x$enable_haptic = xyes; then
  19828. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  19829. if test x$have_xinput = xyes; then
  19830. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  19831. fi
  19832. if test x$have_dinput = xyes; then
  19833. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19834. fi
  19835. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  19836. have_haptic=yes
  19837. fi
  19838. fi
  19839. if test x$enable_power = xyes; then
  19840. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  19841. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19842. have_power=yes
  19843. fi
  19844. if test x$enable_filesystem = xyes; then
  19845. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  19846. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  19847. have_filesystem=yes
  19848. fi
  19849. # Set up files for the thread library
  19850. if test x$enable_threads = xyes; then
  19851. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19852. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19853. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19854. have_threads=yes
  19855. fi
  19856. # Set up files for the timer library
  19857. if test x$enable_timers = xyes; then
  19858. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  19859. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  19860. have_timers=yes
  19861. fi
  19862. # Set up files for the shared object loading library
  19863. if test x$enable_loadso = xyes; then
  19864. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  19865. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  19866. have_loadso=yes
  19867. fi
  19868. # Set up the system libraries we need
  19869. if test -f /lib/w32api/libuuid.a; then
  19870. LIBUUID=/lib/w32api/libuuid.a
  19871. else
  19872. LIBUUID=-luuid
  19873. fi
  19874. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  19875. # The Windows platform requires special setup
  19876. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  19877. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  19878. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  19879. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  19880. # Check to see if this is a mingw or cygwin build
  19881. have_mingw32=
  19882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  19883. $as_echo_n "checking for main in -lmingw32... " >&6; }
  19884. if ${ac_cv_lib_mingw32_main+:} false; then :
  19885. $as_echo_n "(cached) " >&6
  19886. else
  19887. ac_check_lib_save_LIBS=$LIBS
  19888. LIBS="-lmingw32 $LIBS"
  19889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19890. /* end confdefs.h. */
  19891. int
  19892. main ()
  19893. {
  19894. return main ();
  19895. ;
  19896. return 0;
  19897. }
  19898. _ACEOF
  19899. if ac_fn_c_try_link "$LINENO"; then :
  19900. ac_cv_lib_mingw32_main=yes
  19901. else
  19902. ac_cv_lib_mingw32_main=no
  19903. fi
  19904. rm -f core conftest.err conftest.$ac_objext \
  19905. conftest$ac_exeext conftest.$ac_ext
  19906. LIBS=$ac_check_lib_save_LIBS
  19907. fi
  19908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  19909. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  19910. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  19911. have_mingw32=yes
  19912. fi
  19913. if test x$have_mingw32 = xyes; then
  19914. SDL_LIBS="-lmingw32 $SDL_LIBS"
  19915. else
  19916. SDL_LIBS="-lcygwin $SDL_LIBS"
  19917. fi
  19918. ;;
  19919. *-*-beos*)
  19920. as_fn_error $? "
  19921. *** BeOS support has been removed as of SDL 2.0.2.
  19922. " "$LINENO" 5
  19923. ;;
  19924. *-*-haiku*)
  19925. ARCH=haiku
  19926. ac_default_prefix=/boot/system
  19927. CheckDummyVideo
  19928. CheckDiskAudio
  19929. CheckDummyAudio
  19930. CheckHaikuVideo
  19931. CheckHaikuGL
  19932. CheckPTHREAD
  19933. # Set up files for the audio library
  19934. if test x$enable_audio = xyes; then
  19935. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  19936. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  19937. have_audio=yes
  19938. fi
  19939. # Set up files for the joystick library
  19940. if test x$enable_joystick = xyes; then
  19941. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  19942. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  19943. have_joystick=yes
  19944. fi
  19945. # Set up files for the timer library
  19946. if test x$enable_timers = xyes; then
  19947. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  19948. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  19949. have_timers=yes
  19950. fi
  19951. # Set up files for the shared object loading library
  19952. if test x$enable_loadso = xyes; then
  19953. $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
  19954. SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
  19955. have_loadso=yes
  19956. fi
  19957. # Set up files for the system power library
  19958. if test x$enable_power = xyes; then
  19959. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  19960. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  19961. have_power=yes
  19962. fi
  19963. # Set up files for the system filesystem library
  19964. if test x$enable_filesystem = xyes; then
  19965. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  19966. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  19967. have_filesystem=yes
  19968. fi
  19969. # The Haiku platform requires special setup.
  19970. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  19971. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  19972. ;;
  19973. arm*-apple-darwin*)
  19974. # iOS - We are not writing anything to confdefs.h because you have to replace
  19975. # SDL_config.h for SDL_config_iphoneos.h anyway
  19976. ARCH=ios
  19977. CheckVisibilityHidden
  19978. CheckDummyVideo
  19979. CheckDiskAudio
  19980. CheckDummyAudio
  19981. CheckDLOPEN
  19982. CheckCOCOA
  19983. CheckPTHREAD
  19984. # Set up files for the audio library
  19985. if test x$enable_audio = xyes; then
  19986. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19987. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  19988. have_audio=yes
  19989. fi
  19990. # Set up files for the joystick library
  19991. if test x$enable_joystick = xyes; then
  19992. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  19993. have_joystick=yes
  19994. fi
  19995. # Set up files for the haptic library
  19996. #if test x$enable_haptic = xyes; then
  19997. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19998. # have_haptic=yes
  19999. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20000. #fi
  20001. # Set up files for the power library
  20002. if test x$enable_power = xyes; then
  20003. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20004. have_power=yes
  20005. fi
  20006. # Set up files for the filesystem library
  20007. if test x$enable_filesystem = xyes; then
  20008. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20009. have_filesystem=yes
  20010. fi
  20011. # Set up files for the timer library
  20012. if test x$enable_timers = xyes; then
  20013. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20014. have_timers=yes
  20015. fi
  20016. # Set up additional files for the file library
  20017. if test x$enable_file = xyes; then
  20018. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20019. fi
  20020. # The iOS platform requires special setup.
  20021. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20022. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20023. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20024. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20025. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20026. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20027. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20028. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20029. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20030. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20031. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20032. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20033. ;;
  20034. *-*-darwin* )
  20035. # This could be either full "Mac OS X", or plain "Darwin" which is
  20036. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20037. # Next line is broken, and a few files below require Mac OS X (full)
  20038. ARCH=macosx
  20039. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20040. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20041. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20042. CheckVisibilityHidden
  20043. CheckDummyVideo
  20044. CheckDiskAudio
  20045. CheckDummyAudio
  20046. CheckDLOPEN
  20047. CheckCOCOA
  20048. CheckX11
  20049. CheckMacGL
  20050. CheckOpenGLX11
  20051. CheckPTHREAD
  20052. # Set up files for the audio library
  20053. if test x$enable_audio = xyes; then
  20054. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20055. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  20056. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20057. have_audio=yes
  20058. fi
  20059. # Set up files for the joystick library
  20060. if test x$enable_joystick = xyes; then
  20061. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20062. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20063. have_joystick=yes
  20064. fi
  20065. # Set up files for the haptic library
  20066. if test x$enable_haptic = xyes; then
  20067. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20068. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20069. have_haptic=yes
  20070. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20071. fi
  20072. # Set up files for the power library
  20073. if test x$enable_power = xyes; then
  20074. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20075. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20076. have_power=yes
  20077. fi
  20078. # Set up files for the filesystem library
  20079. if test x$enable_filesystem = xyes; then
  20080. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20081. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20082. have_filesystem=yes
  20083. fi
  20084. # Set up files for the timer library
  20085. if test x$enable_timers = xyes; then
  20086. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20087. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20088. have_timers=yes
  20089. fi
  20090. # Set up additional files for the file library
  20091. if test x$enable_file = xyes; then
  20092. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20093. fi
  20094. # The Mac OS X platform requires special setup.
  20095. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20096. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20097. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20098. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20099. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20100. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20101. # If audio is used, add the AudioUnit framework
  20102. if test x$enable_audio = xyes; then
  20103. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
  20104. fi
  20105. ;;
  20106. *-nacl|*-pnacl)
  20107. ARCH=nacl
  20108. CheckNativeClient
  20109. CheckDummyAudio
  20110. CheckDummyVideo
  20111. CheckInputEvents
  20112. CheckPTHREAD
  20113. # Set up files for the timer library
  20114. if test x$enable_timers = xyes; then
  20115. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20116. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20117. have_timers=yes
  20118. fi
  20119. if test x$enable_filesystem = xyes; then
  20120. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20121. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20122. have_filesystem=yes
  20123. fi
  20124. ;;
  20125. *-*-emscripten* )
  20126. if test x$enable_video = xyes; then
  20127. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20128. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20129. have_video=yes
  20130. SUMMARY_video="${SUMMARY_video} emscripten"
  20131. fi
  20132. if test x$enable_audio = xyes; then
  20133. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20134. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20135. have_audio=yes
  20136. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20137. fi
  20138. CheckVisibilityHidden
  20139. CheckDummyVideo
  20140. CheckDiskAudio
  20141. CheckDummyAudio
  20142. CheckDLOPEN
  20143. CheckClockGettime
  20144. CheckEmscriptenGLES
  20145. # Set up files for the power library
  20146. if test x$enable_power = xyes; then
  20147. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20148. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20149. have_power=yes
  20150. fi
  20151. # Set up files for the power library
  20152. if test x$enable_joystick = xyes; then
  20153. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20154. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20155. have_joystick=yes
  20156. fi
  20157. # Set up files for the filesystem library
  20158. if test x$enable_filesystem = xyes; then
  20159. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20160. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20161. have_filesystem=yes
  20162. fi
  20163. # Set up files for the timer library
  20164. if test x$enable_timers = xyes; then
  20165. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20166. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20167. have_timers=yes
  20168. fi
  20169. ;;
  20170. *)
  20171. as_fn_error $? "
  20172. *** Unsupported host: Please add to configure.in
  20173. " "$LINENO" 5
  20174. ;;
  20175. esac
  20176. CheckWarnAll
  20177. # Verify that we have all the platform specific files we need
  20178. if test x$have_joystick != xyes; then
  20179. if test x$enable_joystick = xyes; then
  20180. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20181. fi
  20182. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20183. fi
  20184. if test x$have_haptic != xyes; then
  20185. if test x$enable_haptic = xyes; then
  20186. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20187. fi
  20188. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20189. fi
  20190. if test x$have_threads != xyes; then
  20191. if test x$enable_threads = xyes; then
  20192. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20193. fi
  20194. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20195. fi
  20196. if test x$have_timers != xyes; then
  20197. if test x$enable_timers = xyes; then
  20198. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20199. fi
  20200. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20201. fi
  20202. if test x$have_filesystem != xyes; then
  20203. if test x$enable_filesystem = xyes; then
  20204. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20205. fi
  20206. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20207. fi
  20208. if test x$have_loadso != xyes; then
  20209. if test x$enable_loadso = xyes; then
  20210. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20211. fi
  20212. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20213. fi
  20214. if test x$SDLMAIN_SOURCES = x; then
  20215. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20216. fi
  20217. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20218. OBJECTS=`echo $SOURCES`
  20219. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20220. for EXT in asm cc m c S; do
  20221. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20222. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20223. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20224. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20225. done
  20226. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20227. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20228. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20229. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20230. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20231. \\$(WINDRES) \\$< \\$@,g"`
  20232. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20233. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20234. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20235. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20236. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20237. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20238. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20239. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20240. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20241. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20242. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20243. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20244. # Set runtime shared library paths as needed
  20245. if test "x$enable_rpath" = "xyes"; then
  20246. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20247. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20248. fi
  20249. if test $ARCH = solaris; then
  20250. SDL_RLD_FLAGS="-R\${libdir}"
  20251. fi
  20252. else
  20253. SDL_RLD_FLAGS=""
  20254. fi
  20255. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20256. if test x$enable_shared = xyes; then
  20257. ENABLE_SHARED_TRUE=
  20258. ENABLE_SHARED_FALSE="#"
  20259. else
  20260. ENABLE_SHARED_TRUE="#"
  20261. ENABLE_SHARED_FALSE=
  20262. fi
  20263. if test x$enable_static = xyes; then
  20264. ENABLE_STATIC_TRUE=
  20265. ENABLE_STATIC_FALSE="#"
  20266. else
  20267. ENABLE_STATIC_TRUE="#"
  20268. ENABLE_STATIC_FALSE=
  20269. fi
  20270. cat >Makefile.rules <<__EOF__
  20271. # Build rules for objects
  20272. -include \$(OBJECTS:.lo=.d)
  20273. # Special dependency for SDL.c, since it depends on SDL_revision.h
  20274. $srcdir/src/SDL.c: update-revision
  20275. $DEPENDS
  20276. $VERSION_DEPENDS
  20277. $SDLMAIN_DEPENDS
  20278. $SDLTEST_DEPENDS
  20279. __EOF__
  20280. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  20281. ac_config_commands="$ac_config_commands sdl2_config"
  20282. SUMMARY="SDL2 Configure Summary:\n"
  20283. if test x$enable_shared = xyes; then
  20284. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  20285. fi
  20286. if test x$enable_static = xyes; then
  20287. SUMMARY="${SUMMARY}Building Static Libraries\n"
  20288. fi
  20289. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  20290. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  20291. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  20292. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  20293. if test x$have_x = xyes; then
  20294. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  20295. fi
  20296. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  20297. if test x$enable_libudev = xyes; then
  20298. SUMMARY="${SUMMARY}Using libudev : YES\n"
  20299. else
  20300. SUMMARY="${SUMMARY}Using libudev : NO\n"
  20301. fi
  20302. if test x$have_dbus_dbus_h_hdr = xyes; then
  20303. SUMMARY="${SUMMARY}Using dbus : YES\n"
  20304. else
  20305. SUMMARY="${SUMMARY}Using dbus : NO\n"
  20306. fi
  20307. if test x$have_ibus_ibus_h_hdr = xyes; then
  20308. SUMMARY="${SUMMARY}Using ibus : YES\n"
  20309. else
  20310. SUMMARY="${SUMMARY}Using ibus : NO\n"
  20311. fi
  20312. ac_config_commands="$ac_config_commands summary"
  20313. cat >confcache <<\_ACEOF
  20314. # This file is a shell script that caches the results of configure
  20315. # tests run on this system so they can be shared between configure
  20316. # scripts and configure runs, see configure's option --config-cache.
  20317. # It is not useful on other systems. If it contains results you don't
  20318. # want to keep, you may remove or edit it.
  20319. #
  20320. # config.status only pays attention to the cache file if you give it
  20321. # the --recheck option to rerun configure.
  20322. #
  20323. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20324. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20325. # following values.
  20326. _ACEOF
  20327. # The following way of writing the cache mishandles newlines in values,
  20328. # but we know of no workaround that is simple, portable, and efficient.
  20329. # So, we kill variables containing newlines.
  20330. # Ultrix sh set writes to stderr and can't be redirected directly,
  20331. # and sets the high bit in the cache file unless we assign to the vars.
  20332. (
  20333. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20334. eval ac_val=\$$ac_var
  20335. case $ac_val in #(
  20336. *${as_nl}*)
  20337. case $ac_var in #(
  20338. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20339. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20340. esac
  20341. case $ac_var in #(
  20342. _ | IFS | as_nl) ;; #(
  20343. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20344. *) { eval $ac_var=; unset $ac_var;} ;;
  20345. esac ;;
  20346. esac
  20347. done
  20348. (set) 2>&1 |
  20349. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20350. *${as_nl}ac_space=\ *)
  20351. # `set' does not quote correctly, so add quotes: double-quote
  20352. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20353. sed -n \
  20354. "s/'/'\\\\''/g;
  20355. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20356. ;; #(
  20357. *)
  20358. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20359. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20360. ;;
  20361. esac |
  20362. sort
  20363. ) |
  20364. sed '
  20365. /^ac_cv_env_/b end
  20366. t clear
  20367. :clear
  20368. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20369. t end
  20370. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20371. :end' >>confcache
  20372. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20373. if test -w "$cache_file"; then
  20374. if test "x$cache_file" != "x/dev/null"; then
  20375. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20376. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20377. if test ! -f "$cache_file" || test -h "$cache_file"; then
  20378. cat confcache >"$cache_file"
  20379. else
  20380. case $cache_file in #(
  20381. */* | ?:*)
  20382. mv -f confcache "$cache_file"$$ &&
  20383. mv -f "$cache_file"$$ "$cache_file" ;; #(
  20384. *)
  20385. mv -f confcache "$cache_file" ;;
  20386. esac
  20387. fi
  20388. fi
  20389. else
  20390. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20391. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20392. fi
  20393. fi
  20394. rm -f confcache
  20395. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20396. # Let make expand exec_prefix.
  20397. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20398. DEFS=-DHAVE_CONFIG_H
  20399. ac_libobjs=
  20400. ac_ltlibobjs=
  20401. U=
  20402. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20403. # 1. Remove the extension, and $U if already installed.
  20404. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20405. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20406. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20407. # will be set to the directory where LIBOBJS objects are built.
  20408. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20409. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20410. done
  20411. LIBOBJS=$ac_libobjs
  20412. LTLIBOBJS=$ac_ltlibobjs
  20413. : "${CONFIG_STATUS=./config.status}"
  20414. ac_write_fail=0
  20415. ac_clean_files_save=$ac_clean_files
  20416. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20417. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20418. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20419. as_write_fail=0
  20420. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20421. #! $SHELL
  20422. # Generated by $as_me.
  20423. # Run this file to recreate the current configuration.
  20424. # Compiler output produced by configure, useful for debugging
  20425. # configure, is in config.log if it exists.
  20426. debug=false
  20427. ac_cs_recheck=false
  20428. ac_cs_silent=false
  20429. SHELL=\${CONFIG_SHELL-$SHELL}
  20430. export SHELL
  20431. _ASEOF
  20432. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20433. ## -------------------- ##
  20434. ## M4sh Initialization. ##
  20435. ## -------------------- ##
  20436. # Be more Bourne compatible
  20437. DUALCASE=1; export DUALCASE # for MKS sh
  20438. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20439. emulate sh
  20440. NULLCMD=:
  20441. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20442. # is contrary to our usage. Disable this feature.
  20443. alias -g '${1+"$@"}'='"$@"'
  20444. setopt NO_GLOB_SUBST
  20445. else
  20446. case `(set -o) 2>/dev/null` in #(
  20447. *posix*) :
  20448. set -o posix ;; #(
  20449. *) :
  20450. ;;
  20451. esac
  20452. fi
  20453. as_nl='
  20454. '
  20455. export as_nl
  20456. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20457. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20458. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20459. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20460. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20461. # but without wasting forks for bash or zsh.
  20462. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20463. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20464. as_echo='print -r --'
  20465. as_echo_n='print -rn --'
  20466. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20467. as_echo='printf %s\n'
  20468. as_echo_n='printf %s'
  20469. else
  20470. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20471. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20472. as_echo_n='/usr/ucb/echo -n'
  20473. else
  20474. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20475. as_echo_n_body='eval
  20476. arg=$1;
  20477. case $arg in #(
  20478. *"$as_nl"*)
  20479. expr "X$arg" : "X\\(.*\\)$as_nl";
  20480. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20481. esac;
  20482. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20483. '
  20484. export as_echo_n_body
  20485. as_echo_n='sh -c $as_echo_n_body as_echo'
  20486. fi
  20487. export as_echo_body
  20488. as_echo='sh -c $as_echo_body as_echo'
  20489. fi
  20490. # The user is always right.
  20491. if test "${PATH_SEPARATOR+set}" != set; then
  20492. PATH_SEPARATOR=:
  20493. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20494. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20495. PATH_SEPARATOR=';'
  20496. }
  20497. fi
  20498. # IFS
  20499. # We need space, tab and new line, in precisely that order. Quoting is
  20500. # there to prevent editors from complaining about space-tab.
  20501. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20502. # splitting by setting IFS to empty value.)
  20503. IFS=" "" $as_nl"
  20504. # Find who we are. Look in the path if we contain no directory separator.
  20505. as_myself=
  20506. case $0 in #((
  20507. *[\\/]* ) as_myself=$0 ;;
  20508. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20509. for as_dir in $PATH
  20510. do
  20511. IFS=$as_save_IFS
  20512. test -z "$as_dir" && as_dir=.
  20513. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20514. done
  20515. IFS=$as_save_IFS
  20516. ;;
  20517. esac
  20518. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20519. # in which case we are not to be found in the path.
  20520. if test "x$as_myself" = x; then
  20521. as_myself=$0
  20522. fi
  20523. if test ! -f "$as_myself"; then
  20524. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20525. exit 1
  20526. fi
  20527. # Unset variables that we do not need and which cause bugs (e.g. in
  20528. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20529. # suppresses any "Segmentation fault" message there. '((' could
  20530. # trigger a bug in pdksh 5.2.14.
  20531. for as_var in BASH_ENV ENV MAIL MAILPATH
  20532. do eval test x\${$as_var+set} = xset \
  20533. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20534. done
  20535. PS1='$ '
  20536. PS2='> '
  20537. PS4='+ '
  20538. # NLS nuisances.
  20539. LC_ALL=C
  20540. export LC_ALL
  20541. LANGUAGE=C
  20542. export LANGUAGE
  20543. # CDPATH.
  20544. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20545. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20546. # ----------------------------------------
  20547. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20548. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20549. # script with STATUS, using 1 if that was 0.
  20550. as_fn_error ()
  20551. {
  20552. as_status=$1; test $as_status -eq 0 && as_status=1
  20553. if test "$4"; then
  20554. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20555. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20556. fi
  20557. $as_echo "$as_me: error: $2" >&2
  20558. as_fn_exit $as_status
  20559. } # as_fn_error
  20560. # as_fn_set_status STATUS
  20561. # -----------------------
  20562. # Set $? to STATUS, without forking.
  20563. as_fn_set_status ()
  20564. {
  20565. return $1
  20566. } # as_fn_set_status
  20567. # as_fn_exit STATUS
  20568. # -----------------
  20569. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20570. as_fn_exit ()
  20571. {
  20572. set +e
  20573. as_fn_set_status $1
  20574. exit $1
  20575. } # as_fn_exit
  20576. # as_fn_unset VAR
  20577. # ---------------
  20578. # Portably unset VAR.
  20579. as_fn_unset ()
  20580. {
  20581. { eval $1=; unset $1;}
  20582. }
  20583. as_unset=as_fn_unset
  20584. # as_fn_append VAR VALUE
  20585. # ----------------------
  20586. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20587. # advantage of any shell optimizations that allow amortized linear growth over
  20588. # repeated appends, instead of the typical quadratic growth present in naive
  20589. # implementations.
  20590. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20591. eval 'as_fn_append ()
  20592. {
  20593. eval $1+=\$2
  20594. }'
  20595. else
  20596. as_fn_append ()
  20597. {
  20598. eval $1=\$$1\$2
  20599. }
  20600. fi # as_fn_append
  20601. # as_fn_arith ARG...
  20602. # ------------------
  20603. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20604. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20605. # must be portable across $(()) and expr.
  20606. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20607. eval 'as_fn_arith ()
  20608. {
  20609. as_val=$(( $* ))
  20610. }'
  20611. else
  20612. as_fn_arith ()
  20613. {
  20614. as_val=`expr "$@" || test $? -eq 1`
  20615. }
  20616. fi # as_fn_arith
  20617. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20618. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20619. as_expr=expr
  20620. else
  20621. as_expr=false
  20622. fi
  20623. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20624. as_basename=basename
  20625. else
  20626. as_basename=false
  20627. fi
  20628. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20629. as_dirname=dirname
  20630. else
  20631. as_dirname=false
  20632. fi
  20633. as_me=`$as_basename -- "$0" ||
  20634. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20635. X"$0" : 'X\(//\)$' \| \
  20636. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20637. $as_echo X/"$0" |
  20638. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20639. s//\1/
  20640. q
  20641. }
  20642. /^X\/\(\/\/\)$/{
  20643. s//\1/
  20644. q
  20645. }
  20646. /^X\/\(\/\).*/{
  20647. s//\1/
  20648. q
  20649. }
  20650. s/.*/./; q'`
  20651. # Avoid depending upon Character Ranges.
  20652. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20653. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20654. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20655. as_cr_digits='0123456789'
  20656. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20657. ECHO_C= ECHO_N= ECHO_T=
  20658. case `echo -n x` in #(((((
  20659. -n*)
  20660. case `echo 'xy\c'` in
  20661. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20662. xy) ECHO_C='\c';;
  20663. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20664. ECHO_T=' ';;
  20665. esac;;
  20666. *)
  20667. ECHO_N='-n';;
  20668. esac
  20669. rm -f conf$$ conf$$.exe conf$$.file
  20670. if test -d conf$$.dir; then
  20671. rm -f conf$$.dir/conf$$.file
  20672. else
  20673. rm -f conf$$.dir
  20674. mkdir conf$$.dir 2>/dev/null
  20675. fi
  20676. if (echo >conf$$.file) 2>/dev/null; then
  20677. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20678. as_ln_s='ln -s'
  20679. # ... but there are two gotchas:
  20680. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20681. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20682. # In both cases, we have to default to `cp -pR'.
  20683. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20684. as_ln_s='cp -pR'
  20685. elif ln conf$$.file conf$$ 2>/dev/null; then
  20686. as_ln_s=ln
  20687. else
  20688. as_ln_s='cp -pR'
  20689. fi
  20690. else
  20691. as_ln_s='cp -pR'
  20692. fi
  20693. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20694. rmdir conf$$.dir 2>/dev/null
  20695. # as_fn_mkdir_p
  20696. # -------------
  20697. # Create "$as_dir" as a directory, including parents if necessary.
  20698. as_fn_mkdir_p ()
  20699. {
  20700. case $as_dir in #(
  20701. -*) as_dir=./$as_dir;;
  20702. esac
  20703. test -d "$as_dir" || eval $as_mkdir_p || {
  20704. as_dirs=
  20705. while :; do
  20706. case $as_dir in #(
  20707. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20708. *) as_qdir=$as_dir;;
  20709. esac
  20710. as_dirs="'$as_qdir' $as_dirs"
  20711. as_dir=`$as_dirname -- "$as_dir" ||
  20712. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20713. X"$as_dir" : 'X\(//\)[^/]' \| \
  20714. X"$as_dir" : 'X\(//\)$' \| \
  20715. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20716. $as_echo X"$as_dir" |
  20717. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20718. s//\1/
  20719. q
  20720. }
  20721. /^X\(\/\/\)[^/].*/{
  20722. s//\1/
  20723. q
  20724. }
  20725. /^X\(\/\/\)$/{
  20726. s//\1/
  20727. q
  20728. }
  20729. /^X\(\/\).*/{
  20730. s//\1/
  20731. q
  20732. }
  20733. s/.*/./; q'`
  20734. test -d "$as_dir" && break
  20735. done
  20736. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20737. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20738. } # as_fn_mkdir_p
  20739. if mkdir -p . 2>/dev/null; then
  20740. as_mkdir_p='mkdir -p "$as_dir"'
  20741. else
  20742. test -d ./-p && rmdir ./-p
  20743. as_mkdir_p=false
  20744. fi
  20745. # as_fn_executable_p FILE
  20746. # -----------------------
  20747. # Test if FILE is an executable regular file.
  20748. as_fn_executable_p ()
  20749. {
  20750. test -f "$1" && test -x "$1"
  20751. } # as_fn_executable_p
  20752. as_test_x='test -x'
  20753. as_executable_p=as_fn_executable_p
  20754. # Sed expression to map a string onto a valid CPP name.
  20755. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20756. # Sed expression to map a string onto a valid variable name.
  20757. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20758. exec 6>&1
  20759. ## ----------------------------------- ##
  20760. ## Main body of $CONFIG_STATUS script. ##
  20761. ## ----------------------------------- ##
  20762. _ASEOF
  20763. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20764. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20765. # Save the log message, to keep $0 and so on meaningful, and to
  20766. # report actual input values of CONFIG_FILES etc. instead of their
  20767. # values after options handling.
  20768. ac_log="
  20769. This file was extended by $as_me, which was
  20770. generated by GNU Autoconf 2.69. Invocation command line was
  20771. CONFIG_FILES = $CONFIG_FILES
  20772. CONFIG_HEADERS = $CONFIG_HEADERS
  20773. CONFIG_LINKS = $CONFIG_LINKS
  20774. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20775. $ $0 $@
  20776. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20777. "
  20778. _ACEOF
  20779. case $ac_config_files in *"
  20780. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20781. esac
  20782. case $ac_config_headers in *"
  20783. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20784. esac
  20785. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20786. # Files that config.status was made for.
  20787. config_files="$ac_config_files"
  20788. config_headers="$ac_config_headers"
  20789. config_commands="$ac_config_commands"
  20790. _ACEOF
  20791. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20792. ac_cs_usage="\
  20793. \`$as_me' instantiates files and other configuration actions
  20794. from templates according to the current configuration. Unless the files
  20795. and actions are specified as TAGs, all are instantiated by default.
  20796. Usage: $0 [OPTION]... [TAG]...
  20797. -h, --help print this help, then exit
  20798. -V, --version print version number and configuration settings, then exit
  20799. --config print configuration, then exit
  20800. -q, --quiet, --silent
  20801. do not print progress messages
  20802. -d, --debug don't remove temporary files
  20803. --recheck update $as_me by reconfiguring in the same conditions
  20804. --file=FILE[:TEMPLATE]
  20805. instantiate the configuration file FILE
  20806. --header=FILE[:TEMPLATE]
  20807. instantiate the configuration header FILE
  20808. Configuration files:
  20809. $config_files
  20810. Configuration headers:
  20811. $config_headers
  20812. Configuration commands:
  20813. $config_commands
  20814. Report bugs to the package provider."
  20815. _ACEOF
  20816. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20817. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  20818. ac_cs_version="\\
  20819. config.status
  20820. configured by $0, generated by GNU Autoconf 2.69,
  20821. with options \\"\$ac_cs_config\\"
  20822. Copyright (C) 2012 Free Software Foundation, Inc.
  20823. This config.status script is free software; the Free Software Foundation
  20824. gives unlimited permission to copy, distribute and modify it."
  20825. ac_pwd='$ac_pwd'
  20826. srcdir='$srcdir'
  20827. INSTALL='$INSTALL'
  20828. AWK='$AWK'
  20829. test -n "\$AWK" || AWK=awk
  20830. _ACEOF
  20831. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20832. # The default lists apply if the user does not specify any file.
  20833. ac_need_defaults=:
  20834. while test $# != 0
  20835. do
  20836. case $1 in
  20837. --*=?*)
  20838. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20839. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20840. ac_shift=:
  20841. ;;
  20842. --*=)
  20843. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20844. ac_optarg=
  20845. ac_shift=:
  20846. ;;
  20847. *)
  20848. ac_option=$1
  20849. ac_optarg=$2
  20850. ac_shift=shift
  20851. ;;
  20852. esac
  20853. case $ac_option in
  20854. # Handling of the options.
  20855. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20856. ac_cs_recheck=: ;;
  20857. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20858. $as_echo "$ac_cs_version"; exit ;;
  20859. --config | --confi | --conf | --con | --co | --c )
  20860. $as_echo "$ac_cs_config"; exit ;;
  20861. --debug | --debu | --deb | --de | --d | -d )
  20862. debug=: ;;
  20863. --file | --fil | --fi | --f )
  20864. $ac_shift
  20865. case $ac_optarg in
  20866. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20867. '') as_fn_error $? "missing file argument" ;;
  20868. esac
  20869. as_fn_append CONFIG_FILES " '$ac_optarg'"
  20870. ac_need_defaults=false;;
  20871. --header | --heade | --head | --hea )
  20872. $ac_shift
  20873. case $ac_optarg in
  20874. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20875. esac
  20876. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  20877. ac_need_defaults=false;;
  20878. --he | --h)
  20879. # Conflict between --help and --header
  20880. as_fn_error $? "ambiguous option: \`$1'
  20881. Try \`$0 --help' for more information.";;
  20882. --help | --hel | -h )
  20883. $as_echo "$ac_cs_usage"; exit ;;
  20884. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20885. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20886. ac_cs_silent=: ;;
  20887. # This is an error.
  20888. -*) as_fn_error $? "unrecognized option: \`$1'
  20889. Try \`$0 --help' for more information." ;;
  20890. *) as_fn_append ac_config_targets " $1"
  20891. ac_need_defaults=false ;;
  20892. esac
  20893. shift
  20894. done
  20895. ac_configure_extra_args=
  20896. if $ac_cs_silent; then
  20897. exec 6>/dev/null
  20898. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20899. fi
  20900. _ACEOF
  20901. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20902. if \$ac_cs_recheck; then
  20903. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20904. shift
  20905. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  20906. CONFIG_SHELL='$SHELL'
  20907. export CONFIG_SHELL
  20908. exec "\$@"
  20909. fi
  20910. _ACEOF
  20911. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20912. exec 5>>config.log
  20913. {
  20914. echo
  20915. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20916. ## Running $as_me. ##
  20917. _ASBOX
  20918. $as_echo "$ac_log"
  20919. } >&5
  20920. _ACEOF
  20921. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20922. #
  20923. # INIT-COMMANDS
  20924. #
  20925. # The HP-UX ksh and POSIX shell print the target directory to stdout
  20926. # if CDPATH is set.
  20927. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20928. sed_quote_subst='$sed_quote_subst'
  20929. double_quote_subst='$double_quote_subst'
  20930. delay_variable_subst='$delay_variable_subst'
  20931. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  20932. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  20933. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  20934. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  20935. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  20936. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  20937. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  20938. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  20939. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  20940. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  20941. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  20942. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  20943. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  20944. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  20945. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  20946. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  20947. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20948. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20949. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20950. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20951. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20952. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20953. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20954. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20955. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20956. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20957. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20958. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20959. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20960. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20961. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20962. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20963. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20964. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20965. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20966. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20967. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20968. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20969. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20970. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20971. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20972. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20973. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20974. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20975. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20976. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20977. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20978. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20979. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20980. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20981. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20982. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20983. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20984. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20985. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  20986. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  20987. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  20988. 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"`'
  20989. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  20990. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  20991. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  20992. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  20993. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  20994. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  20995. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  20996. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  20997. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  20998. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  20999. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21000. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21001. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21002. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21003. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21004. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21005. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21006. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21007. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21008. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21009. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21010. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21011. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21012. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21013. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21014. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21015. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21016. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21017. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21018. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21019. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21020. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21021. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21022. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21023. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21024. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21025. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21026. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21027. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21028. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21029. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21030. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21031. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21032. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21033. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21034. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21035. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21036. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21037. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21038. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21039. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21040. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21041. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21042. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21043. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21044. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21045. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21046. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21047. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21048. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21049. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21050. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21051. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21052. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21053. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21054. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21055. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21056. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21057. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21058. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21059. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21060. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21061. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21062. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21063. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21064. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21065. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21066. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21067. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21068. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21069. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21070. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21071. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21072. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21073. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21074. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21075. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21076. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21077. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21078. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21079. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21080. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21081. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21082. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21083. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21084. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21085. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21086. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21087. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21088. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21089. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21090. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21091. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21092. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21093. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21094. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21095. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21096. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21097. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21098. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21099. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21100. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21101. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21102. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21103. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21104. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21105. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21106. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21107. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21108. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21109. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21110. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21111. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21112. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21113. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21114. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21115. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21116. LTCC='$LTCC'
  21117. LTCFLAGS='$LTCFLAGS'
  21118. compiler='$compiler_DEFAULT'
  21119. # A function that is used when there is no print builtin or printf.
  21120. func_fallback_echo ()
  21121. {
  21122. eval 'cat <<_LTECHO_EOF
  21123. \$1
  21124. _LTECHO_EOF'
  21125. }
  21126. # Quote evaled strings.
  21127. for var in AS \
  21128. DLLTOOL \
  21129. OBJDUMP \
  21130. SHELL \
  21131. ECHO \
  21132. PATH_SEPARATOR \
  21133. SED \
  21134. GREP \
  21135. EGREP \
  21136. FGREP \
  21137. LD \
  21138. NM \
  21139. LN_S \
  21140. lt_SP2NL \
  21141. lt_NL2SP \
  21142. reload_flag \
  21143. deplibs_check_method \
  21144. file_magic_cmd \
  21145. file_magic_glob \
  21146. want_nocaseglob \
  21147. sharedlib_from_linklib_cmd \
  21148. AR \
  21149. AR_FLAGS \
  21150. archiver_list_spec \
  21151. STRIP \
  21152. RANLIB \
  21153. CC \
  21154. CFLAGS \
  21155. compiler \
  21156. lt_cv_sys_global_symbol_pipe \
  21157. lt_cv_sys_global_symbol_to_cdecl \
  21158. lt_cv_sys_global_symbol_to_c_name_address \
  21159. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21160. nm_file_list_spec \
  21161. lt_prog_compiler_no_builtin_flag \
  21162. lt_prog_compiler_pic \
  21163. lt_prog_compiler_wl \
  21164. lt_prog_compiler_static \
  21165. lt_cv_prog_compiler_c_o \
  21166. need_locks \
  21167. MANIFEST_TOOL \
  21168. DSYMUTIL \
  21169. NMEDIT \
  21170. LIPO \
  21171. OTOOL \
  21172. OTOOL64 \
  21173. shrext_cmds \
  21174. export_dynamic_flag_spec \
  21175. whole_archive_flag_spec \
  21176. compiler_needs_object \
  21177. with_gnu_ld \
  21178. allow_undefined_flag \
  21179. no_undefined_flag \
  21180. hardcode_libdir_flag_spec \
  21181. hardcode_libdir_separator \
  21182. exclude_expsyms \
  21183. include_expsyms \
  21184. file_list_spec \
  21185. variables_saved_for_relink \
  21186. libname_spec \
  21187. library_names_spec \
  21188. soname_spec \
  21189. install_override_mode \
  21190. finish_eval \
  21191. old_striplib \
  21192. striplib \
  21193. compiler_lib_search_dirs \
  21194. predep_objects \
  21195. postdep_objects \
  21196. predeps \
  21197. postdeps \
  21198. compiler_lib_search_path \
  21199. LD_CXX \
  21200. reload_flag_CXX \
  21201. compiler_CXX \
  21202. lt_prog_compiler_no_builtin_flag_CXX \
  21203. lt_prog_compiler_pic_CXX \
  21204. lt_prog_compiler_wl_CXX \
  21205. lt_prog_compiler_static_CXX \
  21206. lt_cv_prog_compiler_c_o_CXX \
  21207. export_dynamic_flag_spec_CXX \
  21208. whole_archive_flag_spec_CXX \
  21209. compiler_needs_object_CXX \
  21210. with_gnu_ld_CXX \
  21211. allow_undefined_flag_CXX \
  21212. no_undefined_flag_CXX \
  21213. hardcode_libdir_flag_spec_CXX \
  21214. hardcode_libdir_separator_CXX \
  21215. exclude_expsyms_CXX \
  21216. include_expsyms_CXX \
  21217. file_list_spec_CXX \
  21218. compiler_lib_search_dirs_CXX \
  21219. predep_objects_CXX \
  21220. postdep_objects_CXX \
  21221. predeps_CXX \
  21222. postdeps_CXX \
  21223. compiler_lib_search_path_CXX; do
  21224. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21225. *[\\\\\\\`\\"\\\$]*)
  21226. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21227. ;;
  21228. *)
  21229. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21230. ;;
  21231. esac
  21232. done
  21233. # Double-quote double-evaled strings.
  21234. for var in reload_cmds \
  21235. old_postinstall_cmds \
  21236. old_postuninstall_cmds \
  21237. old_archive_cmds \
  21238. extract_expsyms_cmds \
  21239. old_archive_from_new_cmds \
  21240. old_archive_from_expsyms_cmds \
  21241. archive_cmds \
  21242. archive_expsym_cmds \
  21243. module_cmds \
  21244. module_expsym_cmds \
  21245. export_symbols_cmds \
  21246. prelink_cmds \
  21247. postlink_cmds \
  21248. postinstall_cmds \
  21249. postuninstall_cmds \
  21250. finish_cmds \
  21251. sys_lib_search_path_spec \
  21252. sys_lib_dlsearch_path_spec \
  21253. reload_cmds_CXX \
  21254. old_archive_cmds_CXX \
  21255. old_archive_from_new_cmds_CXX \
  21256. old_archive_from_expsyms_cmds_CXX \
  21257. archive_cmds_CXX \
  21258. archive_expsym_cmds_CXX \
  21259. module_cmds_CXX \
  21260. module_expsym_cmds_CXX \
  21261. export_symbols_cmds_CXX \
  21262. prelink_cmds_CXX \
  21263. postlink_cmds_CXX; do
  21264. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21265. *[\\\\\\\`\\"\\\$]*)
  21266. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21267. ;;
  21268. *)
  21269. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21270. ;;
  21271. esac
  21272. done
  21273. ac_aux_dir='$ac_aux_dir'
  21274. xsi_shell='$xsi_shell'
  21275. lt_shell_append='$lt_shell_append'
  21276. # See if we are running on zsh, and set the options which allow our
  21277. # commands through without removal of \ escapes INIT.
  21278. if test -n "\${ZSH_VERSION+set}" ; then
  21279. setopt NO_GLOB_SUBST
  21280. fi
  21281. PACKAGE='$PACKAGE'
  21282. VERSION='$VERSION'
  21283. TIMESTAMP='$TIMESTAMP'
  21284. RM='$RM'
  21285. ofile='$ofile'
  21286. SUMMARY="$SUMMARY"
  21287. _ACEOF
  21288. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21289. # Handling of arguments.
  21290. for ac_config_target in $ac_config_targets
  21291. do
  21292. case $ac_config_target in
  21293. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  21294. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21295. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  21296. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  21297. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  21298. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  21299. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  21300. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  21301. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  21302. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21303. esac
  21304. done
  21305. # If the user did not use the arguments to specify the items to instantiate,
  21306. # then the envvar interface is used. Set only those that are not.
  21307. # We use the long form for the default assignment because of an extremely
  21308. # bizarre bug on SunOS 4.1.3.
  21309. if $ac_need_defaults; then
  21310. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21311. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21312. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21313. fi
  21314. # Have a temporary directory for convenience. Make it in the build tree
  21315. # simply because there is no reason against having it here, and in addition,
  21316. # creating and moving files from /tmp can sometimes cause problems.
  21317. # Hook for its removal unless debugging.
  21318. # Note that there is a small window in which the directory will not be cleaned:
  21319. # after its creation but before its name has been assigned to `$tmp'.
  21320. $debug ||
  21321. {
  21322. tmp= ac_tmp=
  21323. trap 'exit_status=$?
  21324. : "${ac_tmp:=$tmp}"
  21325. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21326. ' 0
  21327. trap 'as_fn_exit 1' 1 2 13 15
  21328. }
  21329. # Create a (secure) tmp directory for tmp files.
  21330. {
  21331. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21332. test -d "$tmp"
  21333. } ||
  21334. {
  21335. tmp=./conf$$-$RANDOM
  21336. (umask 077 && mkdir "$tmp")
  21337. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  21338. ac_tmp=$tmp
  21339. # Set up the scripts for CONFIG_FILES section.
  21340. # No need to generate them if there are no CONFIG_FILES.
  21341. # This happens for instance with `./config.status config.h'.
  21342. if test -n "$CONFIG_FILES"; then
  21343. ac_cr=`echo X | tr X '\015'`
  21344. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  21345. # But we know of no other shell where ac_cr would be empty at this
  21346. # point, so we can use a bashism as a fallback.
  21347. if test "x$ac_cr" = x; then
  21348. eval ac_cr=\$\'\\r\'
  21349. fi
  21350. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21351. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21352. ac_cs_awk_cr='\\r'
  21353. else
  21354. ac_cs_awk_cr=$ac_cr
  21355. fi
  21356. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  21357. _ACEOF
  21358. {
  21359. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21360. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21361. echo "_ACEOF"
  21362. } >conf$$subs.sh ||
  21363. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21364. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  21365. ac_delim='%!_!# '
  21366. for ac_last_try in false false false false false :; do
  21367. . ./conf$$subs.sh ||
  21368. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21369. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21370. if test $ac_delim_n = $ac_delim_num; then
  21371. break
  21372. elif $ac_last_try; then
  21373. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21374. else
  21375. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21376. fi
  21377. done
  21378. rm -f conf$$subs.sh
  21379. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21380. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  21381. _ACEOF
  21382. sed -n '
  21383. h
  21384. s/^/S["/; s/!.*/"]=/
  21385. p
  21386. g
  21387. s/^[^!]*!//
  21388. :repl
  21389. t repl
  21390. s/'"$ac_delim"'$//
  21391. t delim
  21392. :nl
  21393. h
  21394. s/\(.\{148\}\)..*/\1/
  21395. t more1
  21396. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21397. p
  21398. n
  21399. b repl
  21400. :more1
  21401. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21402. p
  21403. g
  21404. s/.\{148\}//
  21405. t nl
  21406. :delim
  21407. h
  21408. s/\(.\{148\}\)..*/\1/
  21409. t more2
  21410. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21411. p
  21412. b
  21413. :more2
  21414. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21415. p
  21416. g
  21417. s/.\{148\}//
  21418. t delim
  21419. ' <conf$$subs.awk | sed '
  21420. /^[^""]/{
  21421. N
  21422. s/\n//
  21423. }
  21424. ' >>$CONFIG_STATUS || ac_write_fail=1
  21425. rm -f conf$$subs.awk
  21426. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21427. _ACAWK
  21428. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21429. for (key in S) S_is_set[key] = 1
  21430. FS = ""
  21431. }
  21432. {
  21433. line = $ 0
  21434. nfields = split(line, field, "@")
  21435. substed = 0
  21436. len = length(field[1])
  21437. for (i = 2; i < nfields; i++) {
  21438. key = field[i]
  21439. keylen = length(key)
  21440. if (S_is_set[key]) {
  21441. value = S[key]
  21442. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21443. len += length(value) + length(field[++i])
  21444. substed = 1
  21445. } else
  21446. len += 1 + keylen
  21447. }
  21448. print line
  21449. }
  21450. _ACAWK
  21451. _ACEOF
  21452. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21453. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21454. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21455. else
  21456. cat
  21457. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21458. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21459. _ACEOF
  21460. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21461. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21462. # trailing colons and then remove the whole line if VPATH becomes empty
  21463. # (actually we leave an empty line to preserve line numbers).
  21464. if test "x$srcdir" = x.; then
  21465. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21466. h
  21467. s///
  21468. s/^/:/
  21469. s/[ ]*$/:/
  21470. s/:\$(srcdir):/:/g
  21471. s/:\${srcdir}:/:/g
  21472. s/:@srcdir@:/:/g
  21473. s/^:*//
  21474. s/:*$//
  21475. x
  21476. s/\(=[ ]*\).*/\1/
  21477. G
  21478. s/\n//
  21479. s/^[^=]*=[ ]*$//
  21480. }'
  21481. fi
  21482. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21483. fi # test -n "$CONFIG_FILES"
  21484. # Set up the scripts for CONFIG_HEADERS section.
  21485. # No need to generate them if there are no CONFIG_HEADERS.
  21486. # This happens for instance with `./config.status Makefile'.
  21487. if test -n "$CONFIG_HEADERS"; then
  21488. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21489. BEGIN {
  21490. _ACEOF
  21491. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21492. # here-document in config.status, that substitutes the proper values into
  21493. # config.h.in to produce config.h.
  21494. # Create a delimiter string that does not exist in confdefs.h, to ease
  21495. # handling of long lines.
  21496. ac_delim='%!_!# '
  21497. for ac_last_try in false false :; do
  21498. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21499. if test -z "$ac_tt"; then
  21500. break
  21501. elif $ac_last_try; then
  21502. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21503. else
  21504. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21505. fi
  21506. done
  21507. # For the awk script, D is an array of macro values keyed by name,
  21508. # likewise P contains macro parameters if any. Preserve backslash
  21509. # newline sequences.
  21510. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21511. sed -n '
  21512. s/.\{148\}/&'"$ac_delim"'/g
  21513. t rset
  21514. :rset
  21515. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21516. t def
  21517. d
  21518. :def
  21519. s/\\$//
  21520. t bsnl
  21521. s/["\\]/\\&/g
  21522. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21523. D["\1"]=" \3"/p
  21524. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21525. d
  21526. :bsnl
  21527. s/["\\]/\\&/g
  21528. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21529. D["\1"]=" \3\\\\\\n"\\/p
  21530. t cont
  21531. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21532. t cont
  21533. d
  21534. :cont
  21535. n
  21536. s/.\{148\}/&'"$ac_delim"'/g
  21537. t clear
  21538. :clear
  21539. s/\\$//
  21540. t bsnlc
  21541. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21542. d
  21543. :bsnlc
  21544. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21545. b cont
  21546. ' <confdefs.h | sed '
  21547. s/'"$ac_delim"'/"\\\
  21548. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21549. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21550. for (key in D) D_is_set[key] = 1
  21551. FS = ""
  21552. }
  21553. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21554. line = \$ 0
  21555. split(line, arg, " ")
  21556. if (arg[1] == "#") {
  21557. defundef = arg[2]
  21558. mac1 = arg[3]
  21559. } else {
  21560. defundef = substr(arg[1], 2)
  21561. mac1 = arg[2]
  21562. }
  21563. split(mac1, mac2, "(") #)
  21564. macro = mac2[1]
  21565. prefix = substr(line, 1, index(line, defundef) - 1)
  21566. if (D_is_set[macro]) {
  21567. # Preserve the white space surrounding the "#".
  21568. print prefix "define", macro P[macro] D[macro]
  21569. next
  21570. } else {
  21571. # Replace #undef with comments. This is necessary, for example,
  21572. # in the case of _POSIX_SOURCE, which is predefined and required
  21573. # on some systems where configure will not decide to define it.
  21574. if (defundef == "undef") {
  21575. print "/*", prefix defundef, macro, "*/"
  21576. next
  21577. }
  21578. }
  21579. }
  21580. { print }
  21581. _ACAWK
  21582. _ACEOF
  21583. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21584. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21585. fi # test -n "$CONFIG_HEADERS"
  21586. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21587. shift
  21588. for ac_tag
  21589. do
  21590. case $ac_tag in
  21591. :[FHLC]) ac_mode=$ac_tag; continue;;
  21592. esac
  21593. case $ac_mode$ac_tag in
  21594. :[FHL]*:*);;
  21595. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21596. :[FH]-) ac_tag=-:-;;
  21597. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21598. esac
  21599. ac_save_IFS=$IFS
  21600. IFS=:
  21601. set x $ac_tag
  21602. IFS=$ac_save_IFS
  21603. shift
  21604. ac_file=$1
  21605. shift
  21606. case $ac_mode in
  21607. :L) ac_source=$1;;
  21608. :[FH])
  21609. ac_file_inputs=
  21610. for ac_f
  21611. do
  21612. case $ac_f in
  21613. -) ac_f="$ac_tmp/stdin";;
  21614. *) # Look for the file first in the build tree, then in the source tree
  21615. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21616. # because $ac_f cannot contain `:'.
  21617. test -f "$ac_f" ||
  21618. case $ac_f in
  21619. [\\/$]*) false;;
  21620. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21621. esac ||
  21622. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21623. esac
  21624. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21625. as_fn_append ac_file_inputs " '$ac_f'"
  21626. done
  21627. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21628. # use $as_me), people would be surprised to read:
  21629. # /* config.h. Generated by config.status. */
  21630. configure_input='Generated from '`
  21631. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21632. `' by configure.'
  21633. if test x"$ac_file" != x-; then
  21634. configure_input="$ac_file. $configure_input"
  21635. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21636. $as_echo "$as_me: creating $ac_file" >&6;}
  21637. fi
  21638. # Neutralize special characters interpreted by sed in replacement strings.
  21639. case $configure_input in #(
  21640. *\&* | *\|* | *\\* )
  21641. ac_sed_conf_input=`$as_echo "$configure_input" |
  21642. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21643. *) ac_sed_conf_input=$configure_input;;
  21644. esac
  21645. case $ac_tag in
  21646. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21647. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21648. esac
  21649. ;;
  21650. esac
  21651. ac_dir=`$as_dirname -- "$ac_file" ||
  21652. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21653. X"$ac_file" : 'X\(//\)[^/]' \| \
  21654. X"$ac_file" : 'X\(//\)$' \| \
  21655. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21656. $as_echo X"$ac_file" |
  21657. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21658. s//\1/
  21659. q
  21660. }
  21661. /^X\(\/\/\)[^/].*/{
  21662. s//\1/
  21663. q
  21664. }
  21665. /^X\(\/\/\)$/{
  21666. s//\1/
  21667. q
  21668. }
  21669. /^X\(\/\).*/{
  21670. s//\1/
  21671. q
  21672. }
  21673. s/.*/./; q'`
  21674. as_dir="$ac_dir"; as_fn_mkdir_p
  21675. ac_builddir=.
  21676. case "$ac_dir" in
  21677. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21678. *)
  21679. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21680. # A ".." for each directory in $ac_dir_suffix.
  21681. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21682. case $ac_top_builddir_sub in
  21683. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21684. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21685. esac ;;
  21686. esac
  21687. ac_abs_top_builddir=$ac_pwd
  21688. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21689. # for backward compatibility:
  21690. ac_top_builddir=$ac_top_build_prefix
  21691. case $srcdir in
  21692. .) # We are building in place.
  21693. ac_srcdir=.
  21694. ac_top_srcdir=$ac_top_builddir_sub
  21695. ac_abs_top_srcdir=$ac_pwd ;;
  21696. [\\/]* | ?:[\\/]* ) # Absolute name.
  21697. ac_srcdir=$srcdir$ac_dir_suffix;
  21698. ac_top_srcdir=$srcdir
  21699. ac_abs_top_srcdir=$srcdir ;;
  21700. *) # Relative name.
  21701. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21702. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21703. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21704. esac
  21705. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21706. case $ac_mode in
  21707. :F)
  21708. #
  21709. # CONFIG_FILE
  21710. #
  21711. case $INSTALL in
  21712. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21713. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21714. esac
  21715. _ACEOF
  21716. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21717. # If the template does not know about datarootdir, expand it.
  21718. # FIXME: This hack should be removed a few years after 2.60.
  21719. ac_datarootdir_hack=; ac_datarootdir_seen=
  21720. ac_sed_dataroot='
  21721. /datarootdir/ {
  21722. p
  21723. q
  21724. }
  21725. /@datadir@/p
  21726. /@docdir@/p
  21727. /@infodir@/p
  21728. /@localedir@/p
  21729. /@mandir@/p'
  21730. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21731. *datarootdir*) ac_datarootdir_seen=yes;;
  21732. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21734. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21735. _ACEOF
  21736. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21737. ac_datarootdir_hack='
  21738. s&@datadir@&$datadir&g
  21739. s&@docdir@&$docdir&g
  21740. s&@infodir@&$infodir&g
  21741. s&@localedir@&$localedir&g
  21742. s&@mandir@&$mandir&g
  21743. s&\\\${datarootdir}&$datarootdir&g' ;;
  21744. esac
  21745. _ACEOF
  21746. # Neutralize VPATH when `$srcdir' = `.'.
  21747. # Shell code in configure.ac might set extrasub.
  21748. # FIXME: do we really want to maintain this feature?
  21749. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21750. ac_sed_extra="$ac_vpsub
  21751. $extrasub
  21752. _ACEOF
  21753. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21754. :t
  21755. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21756. s|@configure_input@|$ac_sed_conf_input|;t t
  21757. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21758. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21759. s&@srcdir@&$ac_srcdir&;t t
  21760. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21761. s&@top_srcdir@&$ac_top_srcdir&;t t
  21762. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21763. s&@builddir@&$ac_builddir&;t t
  21764. s&@abs_builddir@&$ac_abs_builddir&;t t
  21765. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21766. s&@INSTALL@&$ac_INSTALL&;t t
  21767. $ac_datarootdir_hack
  21768. "
  21769. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21770. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21771. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21772. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21773. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21774. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21776. which seems to be undefined. Please make sure it is defined" >&5
  21777. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21778. which seems to be undefined. Please make sure it is defined" >&2;}
  21779. rm -f "$ac_tmp/stdin"
  21780. case $ac_file in
  21781. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21782. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  21783. esac \
  21784. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21785. ;;
  21786. :H)
  21787. #
  21788. # CONFIG_HEADER
  21789. #
  21790. if test x"$ac_file" != x-; then
  21791. {
  21792. $as_echo "/* $configure_input */" \
  21793. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  21794. } >"$ac_tmp/config.h" \
  21795. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21796. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  21797. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  21798. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21799. else
  21800. rm -f "$ac_file"
  21801. mv "$ac_tmp/config.h" "$ac_file" \
  21802. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21803. fi
  21804. else
  21805. $as_echo "/* $configure_input */" \
  21806. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  21807. || as_fn_error $? "could not create -" "$LINENO" 5
  21808. fi
  21809. ;;
  21810. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  21811. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21812. ;;
  21813. esac
  21814. case $ac_file$ac_mode in
  21815. "libtool":C)
  21816. # See if we are running on zsh, and set the options which allow our
  21817. # commands through without removal of \ escapes.
  21818. if test -n "${ZSH_VERSION+set}" ; then
  21819. setopt NO_GLOB_SUBST
  21820. fi
  21821. cfgfile="${ofile}T"
  21822. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  21823. $RM "$cfgfile"
  21824. cat <<_LT_EOF >> "$cfgfile"
  21825. #! $SHELL
  21826. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  21827. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  21828. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21829. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  21830. #
  21831. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21832. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  21833. # Foundation, Inc.
  21834. # Written by Gordon Matzigkeit, 1996
  21835. #
  21836. # This file is part of GNU Libtool.
  21837. #
  21838. # GNU Libtool is free software; you can redistribute it and/or
  21839. # modify it under the terms of the GNU General Public License as
  21840. # published by the Free Software Foundation; either version 2 of
  21841. # the License, or (at your option) any later version.
  21842. #
  21843. # As a special exception to the GNU General Public License,
  21844. # if you distribute this file as part of a program or library that
  21845. # is built using GNU Libtool, you may include this file under the
  21846. # same distribution terms that you use for the rest of that program.
  21847. #
  21848. # GNU Libtool is distributed in the hope that it will be useful,
  21849. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21850. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21851. # GNU General Public License for more details.
  21852. #
  21853. # You should have received a copy of the GNU General Public License
  21854. # along with GNU Libtool; see the file COPYING. If not, a copy
  21855. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  21856. # obtained by writing to the Free Software Foundation, Inc.,
  21857. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21858. # The names of the tagged configurations supported by this script.
  21859. available_tags="CXX "
  21860. # ### BEGIN LIBTOOL CONFIG
  21861. # Which release of libtool.m4 was used?
  21862. macro_version=$macro_version
  21863. macro_revision=$macro_revision
  21864. # Assembler program.
  21865. AS=$lt_AS
  21866. # DLL creation program.
  21867. DLLTOOL=$lt_DLLTOOL
  21868. # Object dumper program.
  21869. OBJDUMP=$lt_OBJDUMP
  21870. # Whether or not to build shared libraries.
  21871. build_libtool_libs=$enable_shared
  21872. # Whether or not to build static libraries.
  21873. build_old_libs=$enable_static
  21874. # What type of objects to build.
  21875. pic_mode=$pic_mode
  21876. # Whether or not to optimize for fast installation.
  21877. fast_install=$enable_fast_install
  21878. # Shell to use when invoking shell scripts.
  21879. SHELL=$lt_SHELL
  21880. # An echo program that protects backslashes.
  21881. ECHO=$lt_ECHO
  21882. # The PATH separator for the build system.
  21883. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21884. # The host system.
  21885. host_alias=$host_alias
  21886. host=$host
  21887. host_os=$host_os
  21888. # The build system.
  21889. build_alias=$build_alias
  21890. build=$build
  21891. build_os=$build_os
  21892. # A sed program that does not truncate output.
  21893. SED=$lt_SED
  21894. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21895. Xsed="\$SED -e 1s/^X//"
  21896. # A grep program that handles long lines.
  21897. GREP=$lt_GREP
  21898. # An ERE matcher.
  21899. EGREP=$lt_EGREP
  21900. # A literal string matcher.
  21901. FGREP=$lt_FGREP
  21902. # A BSD- or MS-compatible name lister.
  21903. NM=$lt_NM
  21904. # Whether we need soft or hard links.
  21905. LN_S=$lt_LN_S
  21906. # What is the maximum length of a command?
  21907. max_cmd_len=$max_cmd_len
  21908. # Object file suffix (normally "o").
  21909. objext=$ac_objext
  21910. # Executable file suffix (normally "").
  21911. exeext=$exeext
  21912. # whether the shell understands "unset".
  21913. lt_unset=$lt_unset
  21914. # turn spaces into newlines.
  21915. SP2NL=$lt_lt_SP2NL
  21916. # turn newlines into spaces.
  21917. NL2SP=$lt_lt_NL2SP
  21918. # convert \$build file names to \$host format.
  21919. to_host_file_cmd=$lt_cv_to_host_file_cmd
  21920. # convert \$build files to toolchain format.
  21921. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  21922. # Method to check whether dependent libraries are shared objects.
  21923. deplibs_check_method=$lt_deplibs_check_method
  21924. # Command to use when deplibs_check_method = "file_magic".
  21925. file_magic_cmd=$lt_file_magic_cmd
  21926. # How to find potential files when deplibs_check_method = "file_magic".
  21927. file_magic_glob=$lt_file_magic_glob
  21928. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  21929. want_nocaseglob=$lt_want_nocaseglob
  21930. # Command to associate shared and link libraries.
  21931. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  21932. # The archiver.
  21933. AR=$lt_AR
  21934. # Flags to create an archive.
  21935. AR_FLAGS=$lt_AR_FLAGS
  21936. # How to feed a file listing to the archiver.
  21937. archiver_list_spec=$lt_archiver_list_spec
  21938. # A symbol stripping program.
  21939. STRIP=$lt_STRIP
  21940. # Commands used to install an old-style archive.
  21941. RANLIB=$lt_RANLIB
  21942. old_postinstall_cmds=$lt_old_postinstall_cmds
  21943. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21944. # Whether to use a lock for old archive extraction.
  21945. lock_old_archive_extraction=$lock_old_archive_extraction
  21946. # A C compiler.
  21947. LTCC=$lt_CC
  21948. # LTCC compiler flags.
  21949. LTCFLAGS=$lt_CFLAGS
  21950. # Take the output of nm and produce a listing of raw symbols and C names.
  21951. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21952. # Transform the output of nm in a proper C declaration.
  21953. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21954. # Transform the output of nm in a C name address pair.
  21955. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21956. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21957. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21958. # Specify filename containing input files for \$NM.
  21959. nm_file_list_spec=$lt_nm_file_list_spec
  21960. # The root where to search for dependent libraries,and in which our libraries should be installed.
  21961. lt_sysroot=$lt_sysroot
  21962. # The name of the directory that contains temporary libtool files.
  21963. objdir=$objdir
  21964. # Used to examine libraries when file_magic_cmd begins with "file".
  21965. MAGIC_CMD=$MAGIC_CMD
  21966. # Must we lock files when doing compilation?
  21967. need_locks=$lt_need_locks
  21968. # Manifest tool.
  21969. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21970. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21971. DSYMUTIL=$lt_DSYMUTIL
  21972. # Tool to change global to local symbols on Mac OS X.
  21973. NMEDIT=$lt_NMEDIT
  21974. # Tool to manipulate fat objects and archives on Mac OS X.
  21975. LIPO=$lt_LIPO
  21976. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21977. OTOOL=$lt_OTOOL
  21978. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21979. OTOOL64=$lt_OTOOL64
  21980. # Old archive suffix (normally "a").
  21981. libext=$libext
  21982. # Shared library suffix (normally ".so").
  21983. shrext_cmds=$lt_shrext_cmds
  21984. # The commands to extract the exported symbol list from a shared archive.
  21985. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21986. # Variables whose values should be saved in libtool wrapper scripts and
  21987. # restored at link time.
  21988. variables_saved_for_relink=$lt_variables_saved_for_relink
  21989. # Do we need the "lib" prefix for modules?
  21990. need_lib_prefix=$need_lib_prefix
  21991. # Do we need a version for libraries?
  21992. need_version=$need_version
  21993. # Library versioning type.
  21994. version_type=$version_type
  21995. # Shared library runtime path variable.
  21996. runpath_var=$runpath_var
  21997. # Shared library path variable.
  21998. shlibpath_var=$shlibpath_var
  21999. # Is shlibpath searched before the hard-coded library search path?
  22000. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22001. # Format of library name prefix.
  22002. libname_spec=$lt_libname_spec
  22003. # List of archive names. First name is the real one, the rest are links.
  22004. # The last name is the one that the linker finds with -lNAME
  22005. library_names_spec=$lt_library_names_spec
  22006. # The coded name of the library, if different from the real name.
  22007. soname_spec=$lt_soname_spec
  22008. # Permission mode override for installation of shared libraries.
  22009. install_override_mode=$lt_install_override_mode
  22010. # Command to use after installation of a shared archive.
  22011. postinstall_cmds=$lt_postinstall_cmds
  22012. # Command to use after uninstallation of a shared archive.
  22013. postuninstall_cmds=$lt_postuninstall_cmds
  22014. # Commands used to finish a libtool library installation in a directory.
  22015. finish_cmds=$lt_finish_cmds
  22016. # As "finish_cmds", except a single script fragment to be evaled but
  22017. # not shown.
  22018. finish_eval=$lt_finish_eval
  22019. # Whether we should hardcode library paths into libraries.
  22020. hardcode_into_libs=$hardcode_into_libs
  22021. # Compile-time system search path for libraries.
  22022. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22023. # Run-time system search path for libraries.
  22024. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22025. # Whether dlopen is supported.
  22026. dlopen_support=$enable_dlopen
  22027. # Whether dlopen of programs is supported.
  22028. dlopen_self=$enable_dlopen_self
  22029. # Whether dlopen of statically linked programs is supported.
  22030. dlopen_self_static=$enable_dlopen_self_static
  22031. # Commands to strip libraries.
  22032. old_striplib=$lt_old_striplib
  22033. striplib=$lt_striplib
  22034. # The linker used to build libraries.
  22035. LD=$lt_LD
  22036. # How to create reloadable object files.
  22037. reload_flag=$lt_reload_flag
  22038. reload_cmds=$lt_reload_cmds
  22039. # Commands used to build an old-style archive.
  22040. old_archive_cmds=$lt_old_archive_cmds
  22041. # A language specific compiler.
  22042. CC=$lt_compiler
  22043. # Is the compiler the GNU compiler?
  22044. with_gcc=$GCC
  22045. # Compiler flag to turn off builtin functions.
  22046. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22047. # Additional compiler flags for building library objects.
  22048. pic_flag=$lt_lt_prog_compiler_pic
  22049. # How to pass a linker flag through the compiler.
  22050. wl=$lt_lt_prog_compiler_wl
  22051. # Compiler flag to prevent dynamic linking.
  22052. link_static_flag=$lt_lt_prog_compiler_static
  22053. # Does compiler simultaneously support -c and -o options?
  22054. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22055. # Whether or not to add -lc for building shared libraries.
  22056. build_libtool_need_lc=$archive_cmds_need_lc
  22057. # Whether or not to disallow shared libs when runtime libs are static.
  22058. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22059. # Compiler flag to allow reflexive dlopens.
  22060. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22061. # Compiler flag to generate shared objects directly from archives.
  22062. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22063. # Whether the compiler copes with passing no objects directly.
  22064. compiler_needs_object=$lt_compiler_needs_object
  22065. # Create an old-style archive from a shared archive.
  22066. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22067. # Create a temporary old-style archive to link instead of a shared archive.
  22068. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22069. # Commands used to build a shared archive.
  22070. archive_cmds=$lt_archive_cmds
  22071. archive_expsym_cmds=$lt_archive_expsym_cmds
  22072. # Commands used to build a loadable module if different from building
  22073. # a shared archive.
  22074. module_cmds=$lt_module_cmds
  22075. module_expsym_cmds=$lt_module_expsym_cmds
  22076. # Whether we are building with GNU ld or not.
  22077. with_gnu_ld=$lt_with_gnu_ld
  22078. # Flag that allows shared libraries with undefined symbols to be built.
  22079. allow_undefined_flag=$lt_allow_undefined_flag
  22080. # Flag that enforces no undefined symbols.
  22081. no_undefined_flag=$lt_no_undefined_flag
  22082. # Flag to hardcode \$libdir into a binary during linking.
  22083. # This must work even if \$libdir does not exist
  22084. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22085. # Whether we need a single "-rpath" flag with a separated argument.
  22086. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22087. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22088. # DIR into the resulting binary.
  22089. hardcode_direct=$hardcode_direct
  22090. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22091. # DIR into the resulting binary and the resulting library dependency is
  22092. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22093. # library is relocated.
  22094. hardcode_direct_absolute=$hardcode_direct_absolute
  22095. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22096. # into the resulting binary.
  22097. hardcode_minus_L=$hardcode_minus_L
  22098. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22099. # into the resulting binary.
  22100. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22101. # Set to "yes" if building a shared library automatically hardcodes DIR
  22102. # into the library and all subsequent libraries and executables linked
  22103. # against it.
  22104. hardcode_automatic=$hardcode_automatic
  22105. # Set to yes if linker adds runtime paths of dependent libraries
  22106. # to runtime path list.
  22107. inherit_rpath=$inherit_rpath
  22108. # Whether libtool must link a program against all its dependency libraries.
  22109. link_all_deplibs=$link_all_deplibs
  22110. # Set to "yes" if exported symbols are required.
  22111. always_export_symbols=$always_export_symbols
  22112. # The commands to list exported symbols.
  22113. export_symbols_cmds=$lt_export_symbols_cmds
  22114. # Symbols that should not be listed in the preloaded symbols.
  22115. exclude_expsyms=$lt_exclude_expsyms
  22116. # Symbols that must always be exported.
  22117. include_expsyms=$lt_include_expsyms
  22118. # Commands necessary for linking programs (against libraries) with templates.
  22119. prelink_cmds=$lt_prelink_cmds
  22120. # Commands necessary for finishing linking programs.
  22121. postlink_cmds=$lt_postlink_cmds
  22122. # Specify filename containing input files.
  22123. file_list_spec=$lt_file_list_spec
  22124. # How to hardcode a shared library path into an executable.
  22125. hardcode_action=$hardcode_action
  22126. # The directories searched by this compiler when creating a shared library.
  22127. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22128. # Dependencies to place before and after the objects being linked to
  22129. # create a shared library.
  22130. predep_objects=$lt_predep_objects
  22131. postdep_objects=$lt_postdep_objects
  22132. predeps=$lt_predeps
  22133. postdeps=$lt_postdeps
  22134. # The library search path used internally by the compiler when linking
  22135. # a shared library.
  22136. compiler_lib_search_path=$lt_compiler_lib_search_path
  22137. # ### END LIBTOOL CONFIG
  22138. _LT_EOF
  22139. case $host_os in
  22140. aix3*)
  22141. cat <<\_LT_EOF >> "$cfgfile"
  22142. # AIX sometimes has problems with the GCC collect2 program. For some
  22143. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22144. # vanish in a puff of smoke.
  22145. if test "X${COLLECT_NAMES+set}" != Xset; then
  22146. COLLECT_NAMES=
  22147. export COLLECT_NAMES
  22148. fi
  22149. _LT_EOF
  22150. ;;
  22151. esac
  22152. ltmain="$ac_aux_dir/ltmain.sh"
  22153. # We use sed instead of cat because bash on DJGPP gets confused if
  22154. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22155. # text mode, it properly converts lines to CR/LF. This bash problem
  22156. # is reportedly fixed, but why not run on old versions too?
  22157. sed '$q' "$ltmain" >> "$cfgfile" \
  22158. || (rm -f "$cfgfile"; exit 1)
  22159. if test x"$xsi_shell" = xyes; then
  22160. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22161. func_dirname ()\
  22162. {\
  22163. \ case ${1} in\
  22164. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22165. \ * ) func_dirname_result="${3}" ;;\
  22166. \ esac\
  22167. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22168. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22169. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22170. test 0 -eq $? || _lt_function_replace_fail=:
  22171. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22172. func_basename ()\
  22173. {\
  22174. \ func_basename_result="${1##*/}"\
  22175. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22176. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22177. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22178. test 0 -eq $? || _lt_function_replace_fail=:
  22179. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22180. func_dirname_and_basename ()\
  22181. {\
  22182. \ case ${1} in\
  22183. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22184. \ * ) func_dirname_result="${3}" ;;\
  22185. \ esac\
  22186. \ func_basename_result="${1##*/}"\
  22187. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22188. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22189. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22190. test 0 -eq $? || _lt_function_replace_fail=:
  22191. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22192. func_stripname ()\
  22193. {\
  22194. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22195. \ # positional parameters, so assign one to ordinary parameter first.\
  22196. \ func_stripname_result=${3}\
  22197. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22198. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22199. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22200. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22201. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22202. test 0 -eq $? || _lt_function_replace_fail=:
  22203. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22204. func_split_long_opt ()\
  22205. {\
  22206. \ func_split_long_opt_name=${1%%=*}\
  22207. \ func_split_long_opt_arg=${1#*=}\
  22208. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22209. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22210. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22211. test 0 -eq $? || _lt_function_replace_fail=:
  22212. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22213. func_split_short_opt ()\
  22214. {\
  22215. \ func_split_short_opt_arg=${1#??}\
  22216. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22217. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22218. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22219. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22220. test 0 -eq $? || _lt_function_replace_fail=:
  22221. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22222. func_lo2o ()\
  22223. {\
  22224. \ case ${1} in\
  22225. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22226. \ *) func_lo2o_result=${1} ;;\
  22227. \ esac\
  22228. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22229. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22230. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22231. test 0 -eq $? || _lt_function_replace_fail=:
  22232. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22233. func_xform ()\
  22234. {\
  22235. func_xform_result=${1%.*}.lo\
  22236. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22237. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22238. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22239. test 0 -eq $? || _lt_function_replace_fail=:
  22240. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22241. func_arith ()\
  22242. {\
  22243. func_arith_result=$(( $* ))\
  22244. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22245. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22246. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22247. test 0 -eq $? || _lt_function_replace_fail=:
  22248. sed -e '/^func_len ()$/,/^} # func_len /c\
  22249. func_len ()\
  22250. {\
  22251. func_len_result=${#1}\
  22252. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22253. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22254. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22255. test 0 -eq $? || _lt_function_replace_fail=:
  22256. fi
  22257. if test x"$lt_shell_append" = xyes; then
  22258. sed -e '/^func_append ()$/,/^} # func_append /c\
  22259. func_append ()\
  22260. {\
  22261. eval "${1}+=\\${2}"\
  22262. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  22263. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22264. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22265. test 0 -eq $? || _lt_function_replace_fail=:
  22266. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  22267. func_append_quoted ()\
  22268. {\
  22269. \ func_quote_for_eval "${2}"\
  22270. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  22271. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  22272. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22273. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22274. test 0 -eq $? || _lt_function_replace_fail=:
  22275. # Save a `func_append' function call where possible by direct use of '+='
  22276. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  22277. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22278. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22279. test 0 -eq $? || _lt_function_replace_fail=:
  22280. else
  22281. # Save a `func_append' function call even when '+=' is not available
  22282. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  22283. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22284. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22285. test 0 -eq $? || _lt_function_replace_fail=:
  22286. fi
  22287. if test x"$_lt_function_replace_fail" = x":"; then
  22288. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  22289. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  22290. fi
  22291. mv -f "$cfgfile" "$ofile" ||
  22292. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22293. chmod +x "$ofile"
  22294. cat <<_LT_EOF >> "$ofile"
  22295. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  22296. # The linker used to build libraries.
  22297. LD=$lt_LD_CXX
  22298. # How to create reloadable object files.
  22299. reload_flag=$lt_reload_flag_CXX
  22300. reload_cmds=$lt_reload_cmds_CXX
  22301. # Commands used to build an old-style archive.
  22302. old_archive_cmds=$lt_old_archive_cmds_CXX
  22303. # A language specific compiler.
  22304. CC=$lt_compiler_CXX
  22305. # Is the compiler the GNU compiler?
  22306. with_gcc=$GCC_CXX
  22307. # Compiler flag to turn off builtin functions.
  22308. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22309. # Additional compiler flags for building library objects.
  22310. pic_flag=$lt_lt_prog_compiler_pic_CXX
  22311. # How to pass a linker flag through the compiler.
  22312. wl=$lt_lt_prog_compiler_wl_CXX
  22313. # Compiler flag to prevent dynamic linking.
  22314. link_static_flag=$lt_lt_prog_compiler_static_CXX
  22315. # Does compiler simultaneously support -c and -o options?
  22316. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22317. # Whether or not to add -lc for building shared libraries.
  22318. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22319. # Whether or not to disallow shared libs when runtime libs are static.
  22320. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22321. # Compiler flag to allow reflexive dlopens.
  22322. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22323. # Compiler flag to generate shared objects directly from archives.
  22324. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22325. # Whether the compiler copes with passing no objects directly.
  22326. compiler_needs_object=$lt_compiler_needs_object_CXX
  22327. # Create an old-style archive from a shared archive.
  22328. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22329. # Create a temporary old-style archive to link instead of a shared archive.
  22330. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22331. # Commands used to build a shared archive.
  22332. archive_cmds=$lt_archive_cmds_CXX
  22333. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22334. # Commands used to build a loadable module if different from building
  22335. # a shared archive.
  22336. module_cmds=$lt_module_cmds_CXX
  22337. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  22338. # Whether we are building with GNU ld or not.
  22339. with_gnu_ld=$lt_with_gnu_ld_CXX
  22340. # Flag that allows shared libraries with undefined symbols to be built.
  22341. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  22342. # Flag that enforces no undefined symbols.
  22343. no_undefined_flag=$lt_no_undefined_flag_CXX
  22344. # Flag to hardcode \$libdir into a binary during linking.
  22345. # This must work even if \$libdir does not exist
  22346. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  22347. # Whether we need a single "-rpath" flag with a separated argument.
  22348. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  22349. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22350. # DIR into the resulting binary.
  22351. hardcode_direct=$hardcode_direct_CXX
  22352. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22353. # DIR into the resulting binary and the resulting library dependency is
  22354. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22355. # library is relocated.
  22356. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  22357. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22358. # into the resulting binary.
  22359. hardcode_minus_L=$hardcode_minus_L_CXX
  22360. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22361. # into the resulting binary.
  22362. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  22363. # Set to "yes" if building a shared library automatically hardcodes DIR
  22364. # into the library and all subsequent libraries and executables linked
  22365. # against it.
  22366. hardcode_automatic=$hardcode_automatic_CXX
  22367. # Set to yes if linker adds runtime paths of dependent libraries
  22368. # to runtime path list.
  22369. inherit_rpath=$inherit_rpath_CXX
  22370. # Whether libtool must link a program against all its dependency libraries.
  22371. link_all_deplibs=$link_all_deplibs_CXX
  22372. # Set to "yes" if exported symbols are required.
  22373. always_export_symbols=$always_export_symbols_CXX
  22374. # The commands to list exported symbols.
  22375. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  22376. # Symbols that should not be listed in the preloaded symbols.
  22377. exclude_expsyms=$lt_exclude_expsyms_CXX
  22378. # Symbols that must always be exported.
  22379. include_expsyms=$lt_include_expsyms_CXX
  22380. # Commands necessary for linking programs (against libraries) with templates.
  22381. prelink_cmds=$lt_prelink_cmds_CXX
  22382. # Commands necessary for finishing linking programs.
  22383. postlink_cmds=$lt_postlink_cmds_CXX
  22384. # Specify filename containing input files.
  22385. file_list_spec=$lt_file_list_spec_CXX
  22386. # How to hardcode a shared library path into an executable.
  22387. hardcode_action=$hardcode_action_CXX
  22388. # The directories searched by this compiler when creating a shared library.
  22389. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  22390. # Dependencies to place before and after the objects being linked to
  22391. # create a shared library.
  22392. predep_objects=$lt_predep_objects_CXX
  22393. postdep_objects=$lt_postdep_objects_CXX
  22394. predeps=$lt_predeps_CXX
  22395. postdeps=$lt_postdeps_CXX
  22396. # The library search path used internally by the compiler when linking
  22397. # a shared library.
  22398. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  22399. # ### END LIBTOOL TAG CONFIG: CXX
  22400. _LT_EOF
  22401. ;;
  22402. "sdl2_config":C) chmod a+x sdl2-config ;;
  22403. "summary":C) echo -en "$SUMMARY" ;;
  22404. esac
  22405. done # for ac_tag
  22406. as_fn_exit 0
  22407. _ACEOF
  22408. ac_clean_files=$ac_clean_files_save
  22409. test $ac_write_fail = 0 ||
  22410. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  22411. # configure is writing to config.log, and then calls config.status.
  22412. # config.status does its own redirection, appending to config.log.
  22413. # Unfortunately, on DOS this fails, as config.log is still kept open
  22414. # by configure, so config.status won't be able to write to it; its
  22415. # output is simply discarded. So we exec the FD to /dev/null,
  22416. # effectively closing config.log, so it can be properly (re)opened and
  22417. # appended to by config.status. When coming back to configure, we
  22418. # need to make the FD available again.
  22419. if test "$no_create" != yes; then
  22420. ac_cs_success=:
  22421. ac_config_status_args=
  22422. test "$silent" = yes &&
  22423. ac_config_status_args="$ac_config_status_args --quiet"
  22424. exec 5>/dev/null
  22425. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22426. exec 5>>config.log
  22427. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22428. # would make configure fail if this is the last instruction.
  22429. $ac_cs_success || as_fn_exit 1
  22430. fi
  22431. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22432. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22433. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22434. fi