configure 738 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253
  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_x11
  769. with_x
  770. enable_x11_shared
  771. enable_video_x11_xcursor
  772. enable_video_x11_xinerama
  773. enable_video_x11_xinput
  774. enable_video_x11_xrandr
  775. enable_video_x11_scrnsaver
  776. enable_video_x11_xshape
  777. enable_video_x11_vm
  778. enable_video_cocoa
  779. enable_video_directfb
  780. enable_directfb_shared
  781. enable_fusionsound
  782. enable_fusionsound_shared
  783. enable_video_dummy
  784. enable_video_opengl
  785. enable_video_opengles
  786. enable_libudev
  787. enable_dbus
  788. enable_input_tslib
  789. enable_pthreads
  790. enable_pthread_sem
  791. enable_directx
  792. enable_sdl_dlopen
  793. enable_clock_gettime
  794. enable_rpath
  795. enable_render_d3d
  796. '
  797. ac_precious_vars='build_alias
  798. host_alias
  799. target_alias
  800. CC
  801. CFLAGS
  802. LDFLAGS
  803. LIBS
  804. CPPFLAGS
  805. CPP
  806. CXX
  807. CXXFLAGS
  808. CCC
  809. CXXCPP
  810. XMKMF'
  811. # Initialize some variables set by options.
  812. ac_init_help=
  813. ac_init_version=false
  814. ac_unrecognized_opts=
  815. ac_unrecognized_sep=
  816. # The variables have the same names as the options, with
  817. # dashes changed to underlines.
  818. cache_file=/dev/null
  819. exec_prefix=NONE
  820. no_create=
  821. no_recursion=
  822. prefix=NONE
  823. program_prefix=NONE
  824. program_suffix=NONE
  825. program_transform_name=s,x,x,
  826. silent=
  827. site=
  828. srcdir=
  829. verbose=
  830. x_includes=NONE
  831. x_libraries=NONE
  832. # Installation directory options.
  833. # These are left unexpanded so users can "make install exec_prefix=/foo"
  834. # and all the variables that are supposed to be based on exec_prefix
  835. # by default will actually change.
  836. # Use braces instead of parens because sh, perl, etc. also accept them.
  837. # (The list follows the same order as the GNU Coding Standards.)
  838. bindir='${exec_prefix}/bin'
  839. sbindir='${exec_prefix}/sbin'
  840. libexecdir='${exec_prefix}/libexec'
  841. datarootdir='${prefix}/share'
  842. datadir='${datarootdir}'
  843. sysconfdir='${prefix}/etc'
  844. sharedstatedir='${prefix}/com'
  845. localstatedir='${prefix}/var'
  846. includedir='${prefix}/include'
  847. oldincludedir='/usr/include'
  848. docdir='${datarootdir}/doc/${PACKAGE}'
  849. infodir='${datarootdir}/info'
  850. htmldir='${docdir}'
  851. dvidir='${docdir}'
  852. pdfdir='${docdir}'
  853. psdir='${docdir}'
  854. libdir='${exec_prefix}/lib'
  855. localedir='${datarootdir}/locale'
  856. mandir='${datarootdir}/man'
  857. ac_prev=
  858. ac_dashdash=
  859. for ac_option
  860. do
  861. # If the previous option needs an argument, assign it.
  862. if test -n "$ac_prev"; then
  863. eval $ac_prev=\$ac_option
  864. ac_prev=
  865. continue
  866. fi
  867. case $ac_option in
  868. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  869. *=) ac_optarg= ;;
  870. *) ac_optarg=yes ;;
  871. esac
  872. # Accept the important Cygnus configure options, so we can diagnose typos.
  873. case $ac_dashdash$ac_option in
  874. --)
  875. ac_dashdash=yes ;;
  876. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  877. ac_prev=bindir ;;
  878. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  879. bindir=$ac_optarg ;;
  880. -build | --build | --buil | --bui | --bu)
  881. ac_prev=build_alias ;;
  882. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  883. build_alias=$ac_optarg ;;
  884. -cache-file | --cache-file | --cache-fil | --cache-fi \
  885. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  886. ac_prev=cache_file ;;
  887. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  888. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  889. cache_file=$ac_optarg ;;
  890. --config-cache | -C)
  891. cache_file=config.cache ;;
  892. -datadir | --datadir | --datadi | --datad)
  893. ac_prev=datadir ;;
  894. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  895. datadir=$ac_optarg ;;
  896. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  897. | --dataroo | --dataro | --datar)
  898. ac_prev=datarootdir ;;
  899. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  900. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  901. datarootdir=$ac_optarg ;;
  902. -disable-* | --disable-*)
  903. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  904. # Reject names that are not valid shell variable names.
  905. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  906. as_fn_error $? "invalid feature name: $ac_useropt"
  907. ac_useropt_orig=$ac_useropt
  908. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  909. case $ac_user_opts in
  910. *"
  911. "enable_$ac_useropt"
  912. "*) ;;
  913. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  914. ac_unrecognized_sep=', ';;
  915. esac
  916. eval enable_$ac_useropt=no ;;
  917. -docdir | --docdir | --docdi | --doc | --do)
  918. ac_prev=docdir ;;
  919. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  920. docdir=$ac_optarg ;;
  921. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  922. ac_prev=dvidir ;;
  923. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  924. dvidir=$ac_optarg ;;
  925. -enable-* | --enable-*)
  926. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  927. # Reject names that are not valid shell variable names.
  928. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  929. as_fn_error $? "invalid feature name: $ac_useropt"
  930. ac_useropt_orig=$ac_useropt
  931. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  932. case $ac_user_opts in
  933. *"
  934. "enable_$ac_useropt"
  935. "*) ;;
  936. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  937. ac_unrecognized_sep=', ';;
  938. esac
  939. eval enable_$ac_useropt=\$ac_optarg ;;
  940. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  941. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  942. | --exec | --exe | --ex)
  943. ac_prev=exec_prefix ;;
  944. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  945. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  946. | --exec=* | --exe=* | --ex=*)
  947. exec_prefix=$ac_optarg ;;
  948. -gas | --gas | --ga | --g)
  949. # Obsolete; use --with-gas.
  950. with_gas=yes ;;
  951. -help | --help | --hel | --he | -h)
  952. ac_init_help=long ;;
  953. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  954. ac_init_help=recursive ;;
  955. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  956. ac_init_help=short ;;
  957. -host | --host | --hos | --ho)
  958. ac_prev=host_alias ;;
  959. -host=* | --host=* | --hos=* | --ho=*)
  960. host_alias=$ac_optarg ;;
  961. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  962. ac_prev=htmldir ;;
  963. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  964. | --ht=*)
  965. htmldir=$ac_optarg ;;
  966. -includedir | --includedir | --includedi | --included | --include \
  967. | --includ | --inclu | --incl | --inc)
  968. ac_prev=includedir ;;
  969. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  970. | --includ=* | --inclu=* | --incl=* | --inc=*)
  971. includedir=$ac_optarg ;;
  972. -infodir | --infodir | --infodi | --infod | --info | --inf)
  973. ac_prev=infodir ;;
  974. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  975. infodir=$ac_optarg ;;
  976. -libdir | --libdir | --libdi | --libd)
  977. ac_prev=libdir ;;
  978. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  979. libdir=$ac_optarg ;;
  980. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  981. | --libexe | --libex | --libe)
  982. ac_prev=libexecdir ;;
  983. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  984. | --libexe=* | --libex=* | --libe=*)
  985. libexecdir=$ac_optarg ;;
  986. -localedir | --localedir | --localedi | --localed | --locale)
  987. ac_prev=localedir ;;
  988. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  989. localedir=$ac_optarg ;;
  990. -localstatedir | --localstatedir | --localstatedi | --localstated \
  991. | --localstate | --localstat | --localsta | --localst | --locals)
  992. ac_prev=localstatedir ;;
  993. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  994. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  995. localstatedir=$ac_optarg ;;
  996. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  997. ac_prev=mandir ;;
  998. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  999. mandir=$ac_optarg ;;
  1000. -nfp | --nfp | --nf)
  1001. # Obsolete; use --without-fp.
  1002. with_fp=no ;;
  1003. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1004. | --no-cr | --no-c | -n)
  1005. no_create=yes ;;
  1006. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1007. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1008. no_recursion=yes ;;
  1009. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1010. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1011. | --oldin | --oldi | --old | --ol | --o)
  1012. ac_prev=oldincludedir ;;
  1013. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1014. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1015. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1016. oldincludedir=$ac_optarg ;;
  1017. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1018. ac_prev=prefix ;;
  1019. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1020. prefix=$ac_optarg ;;
  1021. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1022. | --program-pre | --program-pr | --program-p)
  1023. ac_prev=program_prefix ;;
  1024. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1025. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1026. program_prefix=$ac_optarg ;;
  1027. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1028. | --program-suf | --program-su | --program-s)
  1029. ac_prev=program_suffix ;;
  1030. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1031. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1032. program_suffix=$ac_optarg ;;
  1033. -program-transform-name | --program-transform-name \
  1034. | --program-transform-nam | --program-transform-na \
  1035. | --program-transform-n | --program-transform- \
  1036. | --program-transform | --program-transfor \
  1037. | --program-transfo | --program-transf \
  1038. | --program-trans | --program-tran \
  1039. | --progr-tra | --program-tr | --program-t)
  1040. ac_prev=program_transform_name ;;
  1041. -program-transform-name=* | --program-transform-name=* \
  1042. | --program-transform-nam=* | --program-transform-na=* \
  1043. | --program-transform-n=* | --program-transform-=* \
  1044. | --program-transform=* | --program-transfor=* \
  1045. | --program-transfo=* | --program-transf=* \
  1046. | --program-trans=* | --program-tran=* \
  1047. | --progr-tra=* | --program-tr=* | --program-t=*)
  1048. program_transform_name=$ac_optarg ;;
  1049. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1050. ac_prev=pdfdir ;;
  1051. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1052. pdfdir=$ac_optarg ;;
  1053. -psdir | --psdir | --psdi | --psd | --ps)
  1054. ac_prev=psdir ;;
  1055. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1056. psdir=$ac_optarg ;;
  1057. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1058. | -silent | --silent | --silen | --sile | --sil)
  1059. silent=yes ;;
  1060. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1061. ac_prev=sbindir ;;
  1062. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1063. | --sbi=* | --sb=*)
  1064. sbindir=$ac_optarg ;;
  1065. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1066. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1067. | --sharedst | --shareds | --shared | --share | --shar \
  1068. | --sha | --sh)
  1069. ac_prev=sharedstatedir ;;
  1070. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1071. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1072. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1073. | --sha=* | --sh=*)
  1074. sharedstatedir=$ac_optarg ;;
  1075. -site | --site | --sit)
  1076. ac_prev=site ;;
  1077. -site=* | --site=* | --sit=*)
  1078. site=$ac_optarg ;;
  1079. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1080. ac_prev=srcdir ;;
  1081. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1082. srcdir=$ac_optarg ;;
  1083. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1084. | --syscon | --sysco | --sysc | --sys | --sy)
  1085. ac_prev=sysconfdir ;;
  1086. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1087. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1088. sysconfdir=$ac_optarg ;;
  1089. -target | --target | --targe | --targ | --tar | --ta | --t)
  1090. ac_prev=target_alias ;;
  1091. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1092. target_alias=$ac_optarg ;;
  1093. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1094. verbose=yes ;;
  1095. -version | --version | --versio | --versi | --vers | -V)
  1096. ac_init_version=: ;;
  1097. -with-* | --with-*)
  1098. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1099. # Reject names that are not valid shell variable names.
  1100. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1101. as_fn_error $? "invalid package name: $ac_useropt"
  1102. ac_useropt_orig=$ac_useropt
  1103. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1104. case $ac_user_opts in
  1105. *"
  1106. "with_$ac_useropt"
  1107. "*) ;;
  1108. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1109. ac_unrecognized_sep=', ';;
  1110. esac
  1111. eval with_$ac_useropt=\$ac_optarg ;;
  1112. -without-* | --without-*)
  1113. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1114. # Reject names that are not valid shell variable names.
  1115. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1116. as_fn_error $? "invalid package name: $ac_useropt"
  1117. ac_useropt_orig=$ac_useropt
  1118. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1119. case $ac_user_opts in
  1120. *"
  1121. "with_$ac_useropt"
  1122. "*) ;;
  1123. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1124. ac_unrecognized_sep=', ';;
  1125. esac
  1126. eval with_$ac_useropt=no ;;
  1127. --x)
  1128. # Obsolete; use --with-x.
  1129. with_x=yes ;;
  1130. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1131. | --x-incl | --x-inc | --x-in | --x-i)
  1132. ac_prev=x_includes ;;
  1133. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1134. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1135. x_includes=$ac_optarg ;;
  1136. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1137. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1138. ac_prev=x_libraries ;;
  1139. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1140. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1141. x_libraries=$ac_optarg ;;
  1142. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1143. Try \`$0 --help' for more information"
  1144. ;;
  1145. *=*)
  1146. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1147. # Reject names that are not valid shell variable names.
  1148. case $ac_envvar in #(
  1149. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1150. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1151. esac
  1152. eval $ac_envvar=\$ac_optarg
  1153. export $ac_envvar ;;
  1154. *)
  1155. # FIXME: should be removed in autoconf 3.0.
  1156. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1157. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1158. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1159. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1160. ;;
  1161. esac
  1162. done
  1163. if test -n "$ac_prev"; then
  1164. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1165. as_fn_error $? "missing argument to $ac_option"
  1166. fi
  1167. if test -n "$ac_unrecognized_opts"; then
  1168. case $enable_option_checking in
  1169. no) ;;
  1170. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1171. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1172. esac
  1173. fi
  1174. # Check all directory arguments for consistency.
  1175. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1176. datadir sysconfdir sharedstatedir localstatedir includedir \
  1177. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1178. libdir localedir mandir
  1179. do
  1180. eval ac_val=\$$ac_var
  1181. # Remove trailing slashes.
  1182. case $ac_val in
  1183. */ )
  1184. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1185. eval $ac_var=\$ac_val;;
  1186. esac
  1187. # Be sure to have absolute directory names.
  1188. case $ac_val in
  1189. [\\/$]* | ?:[\\/]* ) continue;;
  1190. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1191. esac
  1192. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1193. done
  1194. # There might be people who depend on the old broken behavior: `$host'
  1195. # used to hold the argument of --host etc.
  1196. # FIXME: To remove some day.
  1197. build=$build_alias
  1198. host=$host_alias
  1199. target=$target_alias
  1200. # FIXME: To remove some day.
  1201. if test "x$host_alias" != x; then
  1202. if test "x$build_alias" = x; then
  1203. cross_compiling=maybe
  1204. elif test "x$build_alias" != "x$host_alias"; then
  1205. cross_compiling=yes
  1206. fi
  1207. fi
  1208. ac_tool_prefix=
  1209. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1210. test "$silent" = yes && exec 6>/dev/null
  1211. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1212. ac_ls_di=`ls -di .` &&
  1213. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1214. as_fn_error $? "working directory cannot be determined"
  1215. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1216. as_fn_error $? "pwd does not report name of working directory"
  1217. # Find the source files, if location was not specified.
  1218. if test -z "$srcdir"; then
  1219. ac_srcdir_defaulted=yes
  1220. # Try the directory containing this script, then the parent directory.
  1221. ac_confdir=`$as_dirname -- "$as_myself" ||
  1222. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1223. X"$as_myself" : 'X\(//\)[^/]' \| \
  1224. X"$as_myself" : 'X\(//\)$' \| \
  1225. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1226. $as_echo X"$as_myself" |
  1227. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1228. s//\1/
  1229. q
  1230. }
  1231. /^X\(\/\/\)[^/].*/{
  1232. s//\1/
  1233. q
  1234. }
  1235. /^X\(\/\/\)$/{
  1236. s//\1/
  1237. q
  1238. }
  1239. /^X\(\/\).*/{
  1240. s//\1/
  1241. q
  1242. }
  1243. s/.*/./; q'`
  1244. srcdir=$ac_confdir
  1245. if test ! -r "$srcdir/$ac_unique_file"; then
  1246. srcdir=..
  1247. fi
  1248. else
  1249. ac_srcdir_defaulted=no
  1250. fi
  1251. if test ! -r "$srcdir/$ac_unique_file"; then
  1252. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1253. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1254. fi
  1255. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1256. ac_abs_confdir=`(
  1257. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1258. pwd)`
  1259. # When building in place, set srcdir=.
  1260. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1261. srcdir=.
  1262. fi
  1263. # Remove unnecessary trailing slashes from srcdir.
  1264. # Double slashes in file names in object file debugging info
  1265. # mess up M-x gdb in Emacs.
  1266. case $srcdir in
  1267. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1268. esac
  1269. for ac_var in $ac_precious_vars; do
  1270. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1271. eval ac_env_${ac_var}_value=\$${ac_var}
  1272. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1273. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1274. done
  1275. #
  1276. # Report the --help message.
  1277. #
  1278. if test "$ac_init_help" = "long"; then
  1279. # Omit some internal or obsolete options to make the list less imposing.
  1280. # This message is too long to be a string in the A/UX 3.1 sh.
  1281. cat <<_ACEOF
  1282. \`configure' configures this package to adapt to many kinds of systems.
  1283. Usage: $0 [OPTION]... [VAR=VALUE]...
  1284. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1285. VAR=VALUE. See below for descriptions of some of the useful variables.
  1286. Defaults for the options are specified in brackets.
  1287. Configuration:
  1288. -h, --help display this help and exit
  1289. --help=short display options specific to this package
  1290. --help=recursive display the short help of all the included packages
  1291. -V, --version display version information and exit
  1292. -q, --quiet, --silent do not print \`checking ...' messages
  1293. --cache-file=FILE cache test results in FILE [disabled]
  1294. -C, --config-cache alias for \`--cache-file=config.cache'
  1295. -n, --no-create do not create output files
  1296. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1297. Installation directories:
  1298. --prefix=PREFIX install architecture-independent files in PREFIX
  1299. [$ac_default_prefix]
  1300. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1301. [PREFIX]
  1302. By default, \`make install' will install all the files in
  1303. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1304. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1305. for instance \`--prefix=\$HOME'.
  1306. For better control, use the options below.
  1307. Fine tuning of the installation directories:
  1308. --bindir=DIR user executables [EPREFIX/bin]
  1309. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1310. --libexecdir=DIR program executables [EPREFIX/libexec]
  1311. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1312. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1313. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1314. --libdir=DIR object code libraries [EPREFIX/lib]
  1315. --includedir=DIR C header files [PREFIX/include]
  1316. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1317. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1318. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1319. --infodir=DIR info documentation [DATAROOTDIR/info]
  1320. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1321. --mandir=DIR man documentation [DATAROOTDIR/man]
  1322. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1323. --htmldir=DIR html documentation [DOCDIR]
  1324. --dvidir=DIR dvi documentation [DOCDIR]
  1325. --pdfdir=DIR pdf documentation [DOCDIR]
  1326. --psdir=DIR ps documentation [DOCDIR]
  1327. _ACEOF
  1328. cat <<\_ACEOF
  1329. X features:
  1330. --x-includes=DIR X include files are in DIR
  1331. --x-libraries=DIR X library files are in DIR
  1332. System types:
  1333. --build=BUILD configure for building on BUILD [guessed]
  1334. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1335. _ACEOF
  1336. fi
  1337. if test -n "$ac_init_help"; then
  1338. cat <<\_ACEOF
  1339. Optional Features:
  1340. --disable-option-checking ignore unrecognized --enable/--with options
  1341. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1342. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1343. --enable-shared[=PKGS] build shared libraries [default=yes]
  1344. --enable-static[=PKGS] build static libraries [default=yes]
  1345. --enable-fast-install[=PKGS]
  1346. optimize for fast installation [default=yes]
  1347. --disable-libtool-lock avoid locking (might break parallel builds)
  1348. --enable-assertions Enable internal sanity checks
  1349. (auto/disabled/release/enabled/paranoid)
  1350. [[default=auto]]
  1351. --enable-dependency-tracking
  1352. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1353. --enable-libc Use the system C library [[default=yes]]
  1354. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1355. --enable-atomic Enable the atomic operations subsystem
  1356. [[default=yes]]
  1357. --enable-audio Enable the audio subsystem [[default=yes]]
  1358. --enable-video Enable the video subsystem [[default=yes]]
  1359. --enable-render Enable the render subsystem [[default=yes]]
  1360. --enable-events Enable the events subsystem [[default=yes]]
  1361. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1362. --enable-haptic Enable the haptic (force feedback) subsystem
  1363. [[default=yes]]
  1364. --enable-power Enable the power subsystem [[default=yes]]
  1365. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1366. --enable-threads Enable the threading subsystem [[default=yes]]
  1367. --enable-timers Enable the timer subsystem [[default=yes]]
  1368. --enable-file Enable the file subsystem [[default=yes]]
  1369. --enable-loadso Enable the shared object loading subsystem
  1370. [[default=yes]]
  1371. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1372. --enable-atomic Enable the atomic operations [[default=yes]]
  1373. --enable-assembly Enable assembly routines [[default=yes]]
  1374. --enable-ssemath Allow GCC to use SSE floating point math
  1375. [[default=no]]
  1376. --enable-mmx use MMX assembly routines [[default=yes]]
  1377. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1378. --enable-sse use SSE assembly routines [[default=yes]]
  1379. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1380. --enable-altivec use Altivec assembly routines [[default=yes]]
  1381. --enable-oss support the OSS audio API [[default=maybe]]
  1382. --enable-alsa support the ALSA audio API [[default=yes]]
  1383. --disable-alsatest Do not try to compile and run a test Alsa program
  1384. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1385. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1386. --disable-esdtest Do not try to compile and run a test ESD program
  1387. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1388. --enable-pulseaudio use PulseAudio [[default=yes]]
  1389. --enable-pulseaudio-shared
  1390. dynamically load PulseAudio support [[default=yes]]
  1391. --enable-arts support the Analog Real Time Synthesizer
  1392. [[default=yes]]
  1393. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1394. --enable-nas support the NAS audio API [[default=yes]]
  1395. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1396. --enable-sndio support the sndio audio API [[default=yes]]
  1397. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1398. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1399. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1400. --enable-video-x11 use X11 video driver [[default=yes]]
  1401. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1402. --enable-video-x11-xcursor
  1403. enable X11 Xcursor support [[default=yes]]
  1404. --enable-video-x11-xinerama
  1405. enable X11 Xinerama support [[default=yes]]
  1406. --enable-video-x11-xinput
  1407. enable X11 XInput extension for manymouse, tablets,
  1408. etc [[default=yes]]
  1409. --enable-video-x11-xrandr
  1410. enable X11 Xrandr extension for fullscreen
  1411. [[default=yes]]
  1412. --enable-video-x11-scrnsaver
  1413. enable X11 screensaver extension [[default=yes]]
  1414. --enable-video-x11-xshape
  1415. enable X11 XShape support [[default=yes]]
  1416. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1417. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1418. --enable-video-directfb use DirectFB video driver [[default=no]]
  1419. --enable-directfb-shared
  1420. dynamically load directfb support [[default=yes]]
  1421. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1422. --enable-fusionsound-shared
  1423. dynamically load fusionsound audio support
  1424. [[default=yes]]
  1425. --enable-video-dummy use dummy video driver [[default=yes]]
  1426. --enable-video-opengl include OpenGL support [[default=yes]]
  1427. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1428. --enable-libudev enable libudev support [[default=yes]]
  1429. --enable-dbus enable D-Bus support [[default=yes]]
  1430. --enable-input-tslib use the Touchscreen library for input
  1431. [[default=yes]]
  1432. --enable-pthreads use POSIX threads for multi-threading
  1433. [[default=yes]]
  1434. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1435. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1436. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1437. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1438. UNIX [[default=yes]]
  1439. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1440. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1441. Optional Packages:
  1442. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1443. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1444. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1445. both]
  1446. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1447. --with-sysroot=DIR Search for dependent libraries within DIR
  1448. (or the compiler's sysroot if not specified).
  1449. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1450. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1451. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1452. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1453. --with-x use the X Window System
  1454. Some influential environment variables:
  1455. CC C compiler command
  1456. CFLAGS C compiler flags
  1457. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1458. nonstandard directory <lib dir>
  1459. LIBS libraries to pass to the linker, e.g. -l<library>
  1460. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1461. you have headers in a nonstandard directory <include dir>
  1462. CPP C preprocessor
  1463. CXX C++ compiler command
  1464. CXXFLAGS C++ compiler flags
  1465. CXXCPP C++ preprocessor
  1466. XMKMF Path to xmkmf, Makefile generator for X Window System
  1467. Use these variables to override the choices made by `configure' or to help
  1468. it to find libraries and programs with nonstandard names/locations.
  1469. Report bugs to the package provider.
  1470. _ACEOF
  1471. ac_status=$?
  1472. fi
  1473. if test "$ac_init_help" = "recursive"; then
  1474. # If there are subdirs, report their specific --help.
  1475. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1476. test -d "$ac_dir" ||
  1477. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1478. continue
  1479. ac_builddir=.
  1480. case "$ac_dir" in
  1481. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1482. *)
  1483. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1484. # A ".." for each directory in $ac_dir_suffix.
  1485. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1486. case $ac_top_builddir_sub in
  1487. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1488. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1489. esac ;;
  1490. esac
  1491. ac_abs_top_builddir=$ac_pwd
  1492. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1493. # for backward compatibility:
  1494. ac_top_builddir=$ac_top_build_prefix
  1495. case $srcdir in
  1496. .) # We are building in place.
  1497. ac_srcdir=.
  1498. ac_top_srcdir=$ac_top_builddir_sub
  1499. ac_abs_top_srcdir=$ac_pwd ;;
  1500. [\\/]* | ?:[\\/]* ) # Absolute name.
  1501. ac_srcdir=$srcdir$ac_dir_suffix;
  1502. ac_top_srcdir=$srcdir
  1503. ac_abs_top_srcdir=$srcdir ;;
  1504. *) # Relative name.
  1505. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1506. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1507. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1508. esac
  1509. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1510. cd "$ac_dir" || { ac_status=$?; continue; }
  1511. # Check for guested configure.
  1512. if test -f "$ac_srcdir/configure.gnu"; then
  1513. echo &&
  1514. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1515. elif test -f "$ac_srcdir/configure"; then
  1516. echo &&
  1517. $SHELL "$ac_srcdir/configure" --help=recursive
  1518. else
  1519. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1520. fi || ac_status=$?
  1521. cd "$ac_pwd" || { ac_status=$?; break; }
  1522. done
  1523. fi
  1524. test -n "$ac_init_help" && exit $ac_status
  1525. if $ac_init_version; then
  1526. cat <<\_ACEOF
  1527. configure
  1528. generated by GNU Autoconf 2.69
  1529. Copyright (C) 2012 Free Software Foundation, Inc.
  1530. This configure script is free software; the Free Software Foundation
  1531. gives unlimited permission to copy, distribute and modify it.
  1532. _ACEOF
  1533. exit
  1534. fi
  1535. ## ------------------------ ##
  1536. ## Autoconf initialization. ##
  1537. ## ------------------------ ##
  1538. # ac_fn_c_try_compile LINENO
  1539. # --------------------------
  1540. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1541. ac_fn_c_try_compile ()
  1542. {
  1543. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1544. rm -f conftest.$ac_objext
  1545. if { { ac_try="$ac_compile"
  1546. case "(($ac_try" in
  1547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1548. *) ac_try_echo=$ac_try;;
  1549. esac
  1550. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1551. $as_echo "$ac_try_echo"; } >&5
  1552. (eval "$ac_compile") 2>conftest.err
  1553. ac_status=$?
  1554. if test -s conftest.err; then
  1555. grep -v '^ *+' conftest.err >conftest.er1
  1556. cat conftest.er1 >&5
  1557. mv -f conftest.er1 conftest.err
  1558. fi
  1559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1560. test $ac_status = 0; } && {
  1561. test -z "$ac_c_werror_flag" ||
  1562. test ! -s conftest.err
  1563. } && test -s conftest.$ac_objext; then :
  1564. ac_retval=0
  1565. else
  1566. $as_echo "$as_me: failed program was:" >&5
  1567. sed 's/^/| /' conftest.$ac_ext >&5
  1568. ac_retval=1
  1569. fi
  1570. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1571. as_fn_set_status $ac_retval
  1572. } # ac_fn_c_try_compile
  1573. # ac_fn_c_try_link LINENO
  1574. # -----------------------
  1575. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1576. ac_fn_c_try_link ()
  1577. {
  1578. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1579. rm -f conftest.$ac_objext conftest$ac_exeext
  1580. if { { ac_try="$ac_link"
  1581. case "(($ac_try" in
  1582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1583. *) ac_try_echo=$ac_try;;
  1584. esac
  1585. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1586. $as_echo "$ac_try_echo"; } >&5
  1587. (eval "$ac_link") 2>conftest.err
  1588. ac_status=$?
  1589. if test -s conftest.err; then
  1590. grep -v '^ *+' conftest.err >conftest.er1
  1591. cat conftest.er1 >&5
  1592. mv -f conftest.er1 conftest.err
  1593. fi
  1594. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1595. test $ac_status = 0; } && {
  1596. test -z "$ac_c_werror_flag" ||
  1597. test ! -s conftest.err
  1598. } && test -s conftest$ac_exeext && {
  1599. test "$cross_compiling" = yes ||
  1600. test -x conftest$ac_exeext
  1601. }; then :
  1602. ac_retval=0
  1603. else
  1604. $as_echo "$as_me: failed program was:" >&5
  1605. sed 's/^/| /' conftest.$ac_ext >&5
  1606. ac_retval=1
  1607. fi
  1608. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1609. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1610. # interfere with the next link command; also delete a directory that is
  1611. # left behind by Apple's compiler. We do this before executing the actions.
  1612. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1613. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1614. as_fn_set_status $ac_retval
  1615. } # ac_fn_c_try_link
  1616. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1617. # -------------------------------------------------------
  1618. # Tests whether HEADER exists and can be compiled using the include files in
  1619. # INCLUDES, setting the cache variable VAR accordingly.
  1620. ac_fn_c_check_header_compile ()
  1621. {
  1622. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1624. $as_echo_n "checking for $2... " >&6; }
  1625. if eval \${$3+:} false; then :
  1626. $as_echo_n "(cached) " >&6
  1627. else
  1628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1629. /* end confdefs.h. */
  1630. $4
  1631. #include <$2>
  1632. _ACEOF
  1633. if ac_fn_c_try_compile "$LINENO"; then :
  1634. eval "$3=yes"
  1635. else
  1636. eval "$3=no"
  1637. fi
  1638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1639. fi
  1640. eval ac_res=\$$3
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1642. $as_echo "$ac_res" >&6; }
  1643. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1644. } # ac_fn_c_check_header_compile
  1645. # ac_fn_c_try_cpp LINENO
  1646. # ----------------------
  1647. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1648. ac_fn_c_try_cpp ()
  1649. {
  1650. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1651. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1652. case "(($ac_try" in
  1653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1654. *) ac_try_echo=$ac_try;;
  1655. esac
  1656. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1657. $as_echo "$ac_try_echo"; } >&5
  1658. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1659. ac_status=$?
  1660. if test -s conftest.err; then
  1661. grep -v '^ *+' conftest.err >conftest.er1
  1662. cat conftest.er1 >&5
  1663. mv -f conftest.er1 conftest.err
  1664. fi
  1665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1666. test $ac_status = 0; } > conftest.i && {
  1667. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1668. test ! -s conftest.err
  1669. }; then :
  1670. ac_retval=0
  1671. else
  1672. $as_echo "$as_me: failed program was:" >&5
  1673. sed 's/^/| /' conftest.$ac_ext >&5
  1674. ac_retval=1
  1675. fi
  1676. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1677. as_fn_set_status $ac_retval
  1678. } # ac_fn_c_try_cpp
  1679. # ac_fn_c_try_run LINENO
  1680. # ----------------------
  1681. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1682. # that executables *can* be run.
  1683. ac_fn_c_try_run ()
  1684. {
  1685. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1686. if { { ac_try="$ac_link"
  1687. case "(($ac_try" in
  1688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1689. *) ac_try_echo=$ac_try;;
  1690. esac
  1691. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1692. $as_echo "$ac_try_echo"; } >&5
  1693. (eval "$ac_link") 2>&5
  1694. ac_status=$?
  1695. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1696. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1697. { { case "(($ac_try" in
  1698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1699. *) ac_try_echo=$ac_try;;
  1700. esac
  1701. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1702. $as_echo "$ac_try_echo"; } >&5
  1703. (eval "$ac_try") 2>&5
  1704. ac_status=$?
  1705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1706. test $ac_status = 0; }; }; then :
  1707. ac_retval=0
  1708. else
  1709. $as_echo "$as_me: program exited with status $ac_status" >&5
  1710. $as_echo "$as_me: failed program was:" >&5
  1711. sed 's/^/| /' conftest.$ac_ext >&5
  1712. ac_retval=$ac_status
  1713. fi
  1714. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1715. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1716. as_fn_set_status $ac_retval
  1717. } # ac_fn_c_try_run
  1718. # ac_fn_c_check_func LINENO FUNC VAR
  1719. # ----------------------------------
  1720. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1721. ac_fn_c_check_func ()
  1722. {
  1723. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1725. $as_echo_n "checking for $2... " >&6; }
  1726. if eval \${$3+:} false; then :
  1727. $as_echo_n "(cached) " >&6
  1728. else
  1729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1730. /* end confdefs.h. */
  1731. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1732. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1733. #define $2 innocuous_$2
  1734. /* System header to define __stub macros and hopefully few prototypes,
  1735. which can conflict with char $2 (); below.
  1736. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1737. <limits.h> exists even on freestanding compilers. */
  1738. #ifdef __STDC__
  1739. # include <limits.h>
  1740. #else
  1741. # include <assert.h>
  1742. #endif
  1743. #undef $2
  1744. /* Override any GCC internal prototype to avoid an error.
  1745. Use char because int might match the return type of a GCC
  1746. builtin and then its argument prototype would still apply. */
  1747. #ifdef __cplusplus
  1748. extern "C"
  1749. #endif
  1750. char $2 ();
  1751. /* The GNU C library defines this for functions which it implements
  1752. to always fail with ENOSYS. Some functions are actually named
  1753. something starting with __ and the normal name is an alias. */
  1754. #if defined __stub_$2 || defined __stub___$2
  1755. choke me
  1756. #endif
  1757. int
  1758. main ()
  1759. {
  1760. return $2 ();
  1761. ;
  1762. return 0;
  1763. }
  1764. _ACEOF
  1765. if ac_fn_c_try_link "$LINENO"; then :
  1766. eval "$3=yes"
  1767. else
  1768. eval "$3=no"
  1769. fi
  1770. rm -f core conftest.err conftest.$ac_objext \
  1771. conftest$ac_exeext conftest.$ac_ext
  1772. fi
  1773. eval ac_res=\$$3
  1774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1775. $as_echo "$ac_res" >&6; }
  1776. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1777. } # ac_fn_c_check_func
  1778. # ac_fn_cxx_try_compile LINENO
  1779. # ----------------------------
  1780. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1781. ac_fn_cxx_try_compile ()
  1782. {
  1783. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1784. rm -f conftest.$ac_objext
  1785. if { { ac_try="$ac_compile"
  1786. case "(($ac_try" in
  1787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1788. *) ac_try_echo=$ac_try;;
  1789. esac
  1790. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1791. $as_echo "$ac_try_echo"; } >&5
  1792. (eval "$ac_compile") 2>conftest.err
  1793. ac_status=$?
  1794. if test -s conftest.err; then
  1795. grep -v '^ *+' conftest.err >conftest.er1
  1796. cat conftest.er1 >&5
  1797. mv -f conftest.er1 conftest.err
  1798. fi
  1799. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1800. test $ac_status = 0; } && {
  1801. test -z "$ac_cxx_werror_flag" ||
  1802. test ! -s conftest.err
  1803. } && test -s conftest.$ac_objext; then :
  1804. ac_retval=0
  1805. else
  1806. $as_echo "$as_me: failed program was:" >&5
  1807. sed 's/^/| /' conftest.$ac_ext >&5
  1808. ac_retval=1
  1809. fi
  1810. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1811. as_fn_set_status $ac_retval
  1812. } # ac_fn_cxx_try_compile
  1813. # ac_fn_cxx_try_cpp LINENO
  1814. # ------------------------
  1815. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1816. ac_fn_cxx_try_cpp ()
  1817. {
  1818. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1819. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1820. case "(($ac_try" in
  1821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1822. *) ac_try_echo=$ac_try;;
  1823. esac
  1824. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1825. $as_echo "$ac_try_echo"; } >&5
  1826. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1827. ac_status=$?
  1828. if test -s conftest.err; then
  1829. grep -v '^ *+' conftest.err >conftest.er1
  1830. cat conftest.er1 >&5
  1831. mv -f conftest.er1 conftest.err
  1832. fi
  1833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1834. test $ac_status = 0; } > conftest.i && {
  1835. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1836. test ! -s conftest.err
  1837. }; then :
  1838. ac_retval=0
  1839. else
  1840. $as_echo "$as_me: failed program was:" >&5
  1841. sed 's/^/| /' conftest.$ac_ext >&5
  1842. ac_retval=1
  1843. fi
  1844. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1845. as_fn_set_status $ac_retval
  1846. } # ac_fn_cxx_try_cpp
  1847. # ac_fn_cxx_try_link LINENO
  1848. # -------------------------
  1849. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1850. ac_fn_cxx_try_link ()
  1851. {
  1852. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1853. rm -f conftest.$ac_objext conftest$ac_exeext
  1854. if { { ac_try="$ac_link"
  1855. case "(($ac_try" in
  1856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1857. *) ac_try_echo=$ac_try;;
  1858. esac
  1859. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1860. $as_echo "$ac_try_echo"; } >&5
  1861. (eval "$ac_link") 2>conftest.err
  1862. ac_status=$?
  1863. if test -s conftest.err; then
  1864. grep -v '^ *+' conftest.err >conftest.er1
  1865. cat conftest.er1 >&5
  1866. mv -f conftest.er1 conftest.err
  1867. fi
  1868. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1869. test $ac_status = 0; } && {
  1870. test -z "$ac_cxx_werror_flag" ||
  1871. test ! -s conftest.err
  1872. } && test -s conftest$ac_exeext && {
  1873. test "$cross_compiling" = yes ||
  1874. test -x conftest$ac_exeext
  1875. }; then :
  1876. ac_retval=0
  1877. else
  1878. $as_echo "$as_me: failed program was:" >&5
  1879. sed 's/^/| /' conftest.$ac_ext >&5
  1880. ac_retval=1
  1881. fi
  1882. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1883. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1884. # interfere with the next link command; also delete a directory that is
  1885. # left behind by Apple's compiler. We do this before executing the actions.
  1886. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1887. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1888. as_fn_set_status $ac_retval
  1889. } # ac_fn_cxx_try_link
  1890. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1891. # -------------------------------------------------------
  1892. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1893. # the include files in INCLUDES and setting the cache variable VAR
  1894. # accordingly.
  1895. ac_fn_c_check_header_mongrel ()
  1896. {
  1897. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1898. if eval \${$3+:} false; then :
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1900. $as_echo_n "checking for $2... " >&6; }
  1901. if eval \${$3+:} false; then :
  1902. $as_echo_n "(cached) " >&6
  1903. fi
  1904. eval ac_res=\$$3
  1905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1906. $as_echo "$ac_res" >&6; }
  1907. else
  1908. # Is the header compilable?
  1909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1910. $as_echo_n "checking $2 usability... " >&6; }
  1911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1912. /* end confdefs.h. */
  1913. $4
  1914. #include <$2>
  1915. _ACEOF
  1916. if ac_fn_c_try_compile "$LINENO"; then :
  1917. ac_header_compiler=yes
  1918. else
  1919. ac_header_compiler=no
  1920. fi
  1921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1923. $as_echo "$ac_header_compiler" >&6; }
  1924. # Is the header present?
  1925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1926. $as_echo_n "checking $2 presence... " >&6; }
  1927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1928. /* end confdefs.h. */
  1929. #include <$2>
  1930. _ACEOF
  1931. if ac_fn_c_try_cpp "$LINENO"; then :
  1932. ac_header_preproc=yes
  1933. else
  1934. ac_header_preproc=no
  1935. fi
  1936. rm -f conftest.err conftest.i conftest.$ac_ext
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1938. $as_echo "$ac_header_preproc" >&6; }
  1939. # So? What about this header?
  1940. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1941. yes:no: )
  1942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1943. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1945. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1946. ;;
  1947. no:yes:* )
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1949. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1951. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1953. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1955. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1957. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1958. ;;
  1959. esac
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1961. $as_echo_n "checking for $2... " >&6; }
  1962. if eval \${$3+:} false; then :
  1963. $as_echo_n "(cached) " >&6
  1964. else
  1965. eval "$3=\$ac_header_compiler"
  1966. fi
  1967. eval ac_res=\$$3
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1969. $as_echo "$ac_res" >&6; }
  1970. fi
  1971. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1972. } # ac_fn_c_check_header_mongrel
  1973. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1974. # -------------------------------------------
  1975. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1976. # variable VAR accordingly.
  1977. ac_fn_c_check_type ()
  1978. {
  1979. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1981. $as_echo_n "checking for $2... " >&6; }
  1982. if eval \${$3+:} false; then :
  1983. $as_echo_n "(cached) " >&6
  1984. else
  1985. eval "$3=no"
  1986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1987. /* end confdefs.h. */
  1988. $4
  1989. int
  1990. main ()
  1991. {
  1992. if (sizeof ($2))
  1993. return 0;
  1994. ;
  1995. return 0;
  1996. }
  1997. _ACEOF
  1998. if ac_fn_c_try_compile "$LINENO"; then :
  1999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2000. /* end confdefs.h. */
  2001. $4
  2002. int
  2003. main ()
  2004. {
  2005. if (sizeof (($2)))
  2006. return 0;
  2007. ;
  2008. return 0;
  2009. }
  2010. _ACEOF
  2011. if ac_fn_c_try_compile "$LINENO"; then :
  2012. else
  2013. eval "$3=yes"
  2014. fi
  2015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2016. fi
  2017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2018. fi
  2019. eval ac_res=\$$3
  2020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2021. $as_echo "$ac_res" >&6; }
  2022. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2023. } # ac_fn_c_check_type
  2024. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2025. # ----------------------------------------------------
  2026. # Tries to find if the field MEMBER exists in type AGGR, after including
  2027. # INCLUDES, setting cache variable VAR accordingly.
  2028. ac_fn_c_check_member ()
  2029. {
  2030. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2032. $as_echo_n "checking for $2.$3... " >&6; }
  2033. if eval \${$4+:} false; then :
  2034. $as_echo_n "(cached) " >&6
  2035. else
  2036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2037. /* end confdefs.h. */
  2038. $5
  2039. int
  2040. main ()
  2041. {
  2042. static $2 ac_aggr;
  2043. if (ac_aggr.$3)
  2044. return 0;
  2045. ;
  2046. return 0;
  2047. }
  2048. _ACEOF
  2049. if ac_fn_c_try_compile "$LINENO"; then :
  2050. eval "$4=yes"
  2051. else
  2052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2053. /* end confdefs.h. */
  2054. $5
  2055. int
  2056. main ()
  2057. {
  2058. static $2 ac_aggr;
  2059. if (sizeof ac_aggr.$3)
  2060. return 0;
  2061. ;
  2062. return 0;
  2063. }
  2064. _ACEOF
  2065. if ac_fn_c_try_compile "$LINENO"; then :
  2066. eval "$4=yes"
  2067. else
  2068. eval "$4=no"
  2069. fi
  2070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2071. fi
  2072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2073. fi
  2074. eval ac_res=\$$4
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2076. $as_echo "$ac_res" >&6; }
  2077. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2078. } # ac_fn_c_check_member
  2079. cat >config.log <<_ACEOF
  2080. This file contains any messages produced by compilers while
  2081. running configure, to aid debugging if configure makes a mistake.
  2082. It was created by $as_me, which was
  2083. generated by GNU Autoconf 2.69. Invocation command line was
  2084. $ $0 $@
  2085. _ACEOF
  2086. exec 5>>config.log
  2087. {
  2088. cat <<_ASUNAME
  2089. ## --------- ##
  2090. ## Platform. ##
  2091. ## --------- ##
  2092. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2093. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2094. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2095. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2096. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2097. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2098. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2099. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2100. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2101. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2102. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2103. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2104. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2105. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2106. _ASUNAME
  2107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2108. for as_dir in $PATH
  2109. do
  2110. IFS=$as_save_IFS
  2111. test -z "$as_dir" && as_dir=.
  2112. $as_echo "PATH: $as_dir"
  2113. done
  2114. IFS=$as_save_IFS
  2115. } >&5
  2116. cat >&5 <<_ACEOF
  2117. ## ----------- ##
  2118. ## Core tests. ##
  2119. ## ----------- ##
  2120. _ACEOF
  2121. # Keep a trace of the command line.
  2122. # Strip out --no-create and --no-recursion so they do not pile up.
  2123. # Strip out --silent because we don't want to record it for future runs.
  2124. # Also quote any args containing shell meta-characters.
  2125. # Make two passes to allow for proper duplicate-argument suppression.
  2126. ac_configure_args=
  2127. ac_configure_args0=
  2128. ac_configure_args1=
  2129. ac_must_keep_next=false
  2130. for ac_pass in 1 2
  2131. do
  2132. for ac_arg
  2133. do
  2134. case $ac_arg in
  2135. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2136. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2137. | -silent | --silent | --silen | --sile | --sil)
  2138. continue ;;
  2139. *\'*)
  2140. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2141. esac
  2142. case $ac_pass in
  2143. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2144. 2)
  2145. as_fn_append ac_configure_args1 " '$ac_arg'"
  2146. if test $ac_must_keep_next = true; then
  2147. ac_must_keep_next=false # Got value, back to normal.
  2148. else
  2149. case $ac_arg in
  2150. *=* | --config-cache | -C | -disable-* | --disable-* \
  2151. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2152. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2153. | -with-* | --with-* | -without-* | --without-* | --x)
  2154. case "$ac_configure_args0 " in
  2155. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2156. esac
  2157. ;;
  2158. -* ) ac_must_keep_next=true ;;
  2159. esac
  2160. fi
  2161. as_fn_append ac_configure_args " '$ac_arg'"
  2162. ;;
  2163. esac
  2164. done
  2165. done
  2166. { ac_configure_args0=; unset ac_configure_args0;}
  2167. { ac_configure_args1=; unset ac_configure_args1;}
  2168. # When interrupted or exit'd, cleanup temporary files, and complete
  2169. # config.log. We remove comments because anyway the quotes in there
  2170. # would cause problems or look ugly.
  2171. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2172. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2173. trap 'exit_status=$?
  2174. # Save into config.log some information that might help in debugging.
  2175. {
  2176. echo
  2177. $as_echo "## ---------------- ##
  2178. ## Cache variables. ##
  2179. ## ---------------- ##"
  2180. echo
  2181. # The following way of writing the cache mishandles newlines in values,
  2182. (
  2183. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2184. eval ac_val=\$$ac_var
  2185. case $ac_val in #(
  2186. *${as_nl}*)
  2187. case $ac_var in #(
  2188. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2189. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2190. esac
  2191. case $ac_var in #(
  2192. _ | IFS | as_nl) ;; #(
  2193. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2194. *) { eval $ac_var=; unset $ac_var;} ;;
  2195. esac ;;
  2196. esac
  2197. done
  2198. (set) 2>&1 |
  2199. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2200. *${as_nl}ac_space=\ *)
  2201. sed -n \
  2202. "s/'\''/'\''\\\\'\'''\''/g;
  2203. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2204. ;; #(
  2205. *)
  2206. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2207. ;;
  2208. esac |
  2209. sort
  2210. )
  2211. echo
  2212. $as_echo "## ----------------- ##
  2213. ## Output variables. ##
  2214. ## ----------------- ##"
  2215. echo
  2216. for ac_var in $ac_subst_vars
  2217. do
  2218. eval ac_val=\$$ac_var
  2219. case $ac_val in
  2220. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2221. esac
  2222. $as_echo "$ac_var='\''$ac_val'\''"
  2223. done | sort
  2224. echo
  2225. if test -n "$ac_subst_files"; then
  2226. $as_echo "## ------------------- ##
  2227. ## File substitutions. ##
  2228. ## ------------------- ##"
  2229. echo
  2230. for ac_var in $ac_subst_files
  2231. do
  2232. eval ac_val=\$$ac_var
  2233. case $ac_val in
  2234. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2235. esac
  2236. $as_echo "$ac_var='\''$ac_val'\''"
  2237. done | sort
  2238. echo
  2239. fi
  2240. if test -s confdefs.h; then
  2241. $as_echo "## ----------- ##
  2242. ## confdefs.h. ##
  2243. ## ----------- ##"
  2244. echo
  2245. cat confdefs.h
  2246. echo
  2247. fi
  2248. test "$ac_signal" != 0 &&
  2249. $as_echo "$as_me: caught signal $ac_signal"
  2250. $as_echo "$as_me: exit $exit_status"
  2251. } >&5
  2252. rm -f core *.core core.conftest.* &&
  2253. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2254. exit $exit_status
  2255. ' 0
  2256. for ac_signal in 1 2 13 15; do
  2257. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2258. done
  2259. ac_signal=0
  2260. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2261. rm -f -r conftest* confdefs.h
  2262. $as_echo "/* confdefs.h */" > confdefs.h
  2263. # Predefined preprocessor variables.
  2264. cat >>confdefs.h <<_ACEOF
  2265. #define PACKAGE_NAME "$PACKAGE_NAME"
  2266. _ACEOF
  2267. cat >>confdefs.h <<_ACEOF
  2268. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2269. _ACEOF
  2270. cat >>confdefs.h <<_ACEOF
  2271. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2272. _ACEOF
  2273. cat >>confdefs.h <<_ACEOF
  2274. #define PACKAGE_STRING "$PACKAGE_STRING"
  2275. _ACEOF
  2276. cat >>confdefs.h <<_ACEOF
  2277. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2278. _ACEOF
  2279. cat >>confdefs.h <<_ACEOF
  2280. #define PACKAGE_URL "$PACKAGE_URL"
  2281. _ACEOF
  2282. # Let the site file select an alternate cache file if it wants to.
  2283. # Prefer an explicitly selected file to automatically selected ones.
  2284. ac_site_file1=NONE
  2285. ac_site_file2=NONE
  2286. if test -n "$CONFIG_SITE"; then
  2287. # We do not want a PATH search for config.site.
  2288. case $CONFIG_SITE in #((
  2289. -*) ac_site_file1=./$CONFIG_SITE;;
  2290. */*) ac_site_file1=$CONFIG_SITE;;
  2291. *) ac_site_file1=./$CONFIG_SITE;;
  2292. esac
  2293. elif test "x$prefix" != xNONE; then
  2294. ac_site_file1=$prefix/share/config.site
  2295. ac_site_file2=$prefix/etc/config.site
  2296. else
  2297. ac_site_file1=$ac_default_prefix/share/config.site
  2298. ac_site_file2=$ac_default_prefix/etc/config.site
  2299. fi
  2300. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2301. do
  2302. test "x$ac_site_file" = xNONE && continue
  2303. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2305. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2306. sed 's/^/| /' "$ac_site_file" >&5
  2307. . "$ac_site_file" \
  2308. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2309. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2310. as_fn_error $? "failed to load site script $ac_site_file
  2311. See \`config.log' for more details" "$LINENO" 5; }
  2312. fi
  2313. done
  2314. if test -r "$cache_file"; then
  2315. # Some versions of bash will fail to source /dev/null (special files
  2316. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2317. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2318. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2319. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2320. case $cache_file in
  2321. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2322. *) . "./$cache_file";;
  2323. esac
  2324. fi
  2325. else
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2327. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2328. >$cache_file
  2329. fi
  2330. # Check that the precious variables saved in the cache have kept the same
  2331. # value.
  2332. ac_cache_corrupted=false
  2333. for ac_var in $ac_precious_vars; do
  2334. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2335. eval ac_new_set=\$ac_env_${ac_var}_set
  2336. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2337. eval ac_new_val=\$ac_env_${ac_var}_value
  2338. case $ac_old_set,$ac_new_set in
  2339. set,)
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2341. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2342. ac_cache_corrupted=: ;;
  2343. ,set)
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2345. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2346. ac_cache_corrupted=: ;;
  2347. ,);;
  2348. *)
  2349. if test "x$ac_old_val" != "x$ac_new_val"; then
  2350. # differences in whitespace do not lead to failure.
  2351. ac_old_val_w=`echo x $ac_old_val`
  2352. ac_new_val_w=`echo x $ac_new_val`
  2353. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2355. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2356. ac_cache_corrupted=:
  2357. else
  2358. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2359. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2360. eval $ac_var=\$ac_old_val
  2361. fi
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2363. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2365. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2366. fi;;
  2367. esac
  2368. # Pass precious variables to config.status.
  2369. if test "$ac_new_set" = set; then
  2370. case $ac_new_val in
  2371. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2372. *) ac_arg=$ac_var=$ac_new_val ;;
  2373. esac
  2374. case " $ac_configure_args " in
  2375. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2376. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2377. esac
  2378. fi
  2379. done
  2380. if $ac_cache_corrupted; then
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2382. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2384. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2385. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2386. fi
  2387. ## -------------------- ##
  2388. ## Main body of script. ##
  2389. ## -------------------- ##
  2390. ac_ext=c
  2391. ac_cpp='$CPP $CPPFLAGS'
  2392. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2393. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2394. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2395. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2396. ac_aux_dir=
  2397. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2398. if test -f "$ac_dir/install-sh"; then
  2399. ac_aux_dir=$ac_dir
  2400. ac_install_sh="$ac_aux_dir/install-sh -c"
  2401. break
  2402. elif test -f "$ac_dir/install.sh"; then
  2403. ac_aux_dir=$ac_dir
  2404. ac_install_sh="$ac_aux_dir/install.sh -c"
  2405. break
  2406. elif test -f "$ac_dir/shtool"; then
  2407. ac_aux_dir=$ac_dir
  2408. ac_install_sh="$ac_aux_dir/shtool install -c"
  2409. break
  2410. fi
  2411. done
  2412. if test -z "$ac_aux_dir"; then
  2413. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2414. fi
  2415. # These three variables are undocumented and unsupported,
  2416. # and are intended to be withdrawn in a future Autoconf release.
  2417. # They can cause serious problems if a builder's source tree is in a directory
  2418. # whose full name contains unusual characters.
  2419. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2420. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2421. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2422. orig_CFLAGS="$CFLAGS"
  2423. #
  2424. # Making releases:
  2425. # Edit include/SDL_version.h and change the version, then:
  2426. # SDL_MICRO_VERSION += 1;
  2427. # SDL_INTERFACE_AGE += 1;
  2428. # SDL_BINARY_AGE += 1;
  2429. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2430. # if backwards compatibility has been broken,
  2431. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2432. #
  2433. SDL_MAJOR_VERSION=2
  2434. SDL_MINOR_VERSION=0
  2435. SDL_MICRO_VERSION=1
  2436. SDL_INTERFACE_AGE=0
  2437. SDL_BINARY_AGE=1
  2438. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2439. # libtool versioning
  2440. case `pwd` in
  2441. *\ * | *\ *)
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2443. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2444. esac
  2445. macro_version='2.4.2'
  2446. macro_revision='1.3337'
  2447. ltmain="$ac_aux_dir/ltmain.sh"
  2448. # Make sure we can run config.sub.
  2449. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2450. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2452. $as_echo_n "checking build system type... " >&6; }
  2453. if ${ac_cv_build+:} false; then :
  2454. $as_echo_n "(cached) " >&6
  2455. else
  2456. ac_build_alias=$build_alias
  2457. test "x$ac_build_alias" = x &&
  2458. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2459. test "x$ac_build_alias" = x &&
  2460. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2461. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2462. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2463. fi
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2465. $as_echo "$ac_cv_build" >&6; }
  2466. case $ac_cv_build in
  2467. *-*-*) ;;
  2468. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2469. esac
  2470. build=$ac_cv_build
  2471. ac_save_IFS=$IFS; IFS='-'
  2472. set x $ac_cv_build
  2473. shift
  2474. build_cpu=$1
  2475. build_vendor=$2
  2476. shift; shift
  2477. # Remember, the first character of IFS is used to create $*,
  2478. # except with old shells:
  2479. build_os=$*
  2480. IFS=$ac_save_IFS
  2481. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2483. $as_echo_n "checking host system type... " >&6; }
  2484. if ${ac_cv_host+:} false; then :
  2485. $as_echo_n "(cached) " >&6
  2486. else
  2487. if test "x$host_alias" = x; then
  2488. ac_cv_host=$ac_cv_build
  2489. else
  2490. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2491. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2492. fi
  2493. fi
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2495. $as_echo "$ac_cv_host" >&6; }
  2496. case $ac_cv_host in
  2497. *-*-*) ;;
  2498. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2499. esac
  2500. host=$ac_cv_host
  2501. ac_save_IFS=$IFS; IFS='-'
  2502. set x $ac_cv_host
  2503. shift
  2504. host_cpu=$1
  2505. host_vendor=$2
  2506. shift; shift
  2507. # Remember, the first character of IFS is used to create $*,
  2508. # except with old shells:
  2509. host_os=$*
  2510. IFS=$ac_save_IFS
  2511. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2512. # Backslashify metacharacters that are still active within
  2513. # double-quoted strings.
  2514. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2515. # Same as above, but do not quote variable references.
  2516. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2517. # Sed substitution to delay expansion of an escaped shell variable in a
  2518. # double_quote_subst'ed string.
  2519. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2520. # Sed substitution to delay expansion of an escaped single quote.
  2521. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2522. # Sed substitution to avoid accidental globbing in evaled expressions
  2523. no_glob_subst='s/\*/\\\*/g'
  2524. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2525. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2526. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2528. $as_echo_n "checking how to print strings... " >&6; }
  2529. # Test print first, because it will be a builtin if present.
  2530. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2531. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2532. ECHO='print -r --'
  2533. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2534. ECHO='printf %s\n'
  2535. else
  2536. # Use this function as a fallback that always works.
  2537. func_fallback_echo ()
  2538. {
  2539. eval 'cat <<_LTECHO_EOF
  2540. $1
  2541. _LTECHO_EOF'
  2542. }
  2543. ECHO='func_fallback_echo'
  2544. fi
  2545. # func_echo_all arg...
  2546. # Invoke $ECHO with all args, space-separated.
  2547. func_echo_all ()
  2548. {
  2549. $ECHO ""
  2550. }
  2551. case "$ECHO" in
  2552. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2553. $as_echo "printf" >&6; } ;;
  2554. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2555. $as_echo "print -r" >&6; } ;;
  2556. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2557. $as_echo "cat" >&6; } ;;
  2558. esac
  2559. ac_ext=c
  2560. ac_cpp='$CPP $CPPFLAGS'
  2561. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2562. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2563. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2564. if test -n "$ac_tool_prefix"; then
  2565. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2566. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2568. $as_echo_n "checking for $ac_word... " >&6; }
  2569. if ${ac_cv_prog_CC+:} false; then :
  2570. $as_echo_n "(cached) " >&6
  2571. else
  2572. if test -n "$CC"; then
  2573. ac_cv_prog_CC="$CC" # Let the user override the test.
  2574. else
  2575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2576. for as_dir in $PATH
  2577. do
  2578. IFS=$as_save_IFS
  2579. test -z "$as_dir" && as_dir=.
  2580. for ac_exec_ext in '' $ac_executable_extensions; do
  2581. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2582. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2584. break 2
  2585. fi
  2586. done
  2587. done
  2588. IFS=$as_save_IFS
  2589. fi
  2590. fi
  2591. CC=$ac_cv_prog_CC
  2592. if test -n "$CC"; then
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2594. $as_echo "$CC" >&6; }
  2595. else
  2596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2597. $as_echo "no" >&6; }
  2598. fi
  2599. fi
  2600. if test -z "$ac_cv_prog_CC"; then
  2601. ac_ct_CC=$CC
  2602. # Extract the first word of "gcc", so it can be a program name with args.
  2603. set dummy gcc; ac_word=$2
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2605. $as_echo_n "checking for $ac_word... " >&6; }
  2606. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2607. $as_echo_n "(cached) " >&6
  2608. else
  2609. if test -n "$ac_ct_CC"; then
  2610. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2611. else
  2612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2613. for as_dir in $PATH
  2614. do
  2615. IFS=$as_save_IFS
  2616. test -z "$as_dir" && as_dir=.
  2617. for ac_exec_ext in '' $ac_executable_extensions; do
  2618. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2619. ac_cv_prog_ac_ct_CC="gcc"
  2620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2621. break 2
  2622. fi
  2623. done
  2624. done
  2625. IFS=$as_save_IFS
  2626. fi
  2627. fi
  2628. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2629. if test -n "$ac_ct_CC"; then
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2631. $as_echo "$ac_ct_CC" >&6; }
  2632. else
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2634. $as_echo "no" >&6; }
  2635. fi
  2636. if test "x$ac_ct_CC" = x; then
  2637. CC=""
  2638. else
  2639. case $cross_compiling:$ac_tool_warned in
  2640. yes:)
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2642. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2643. ac_tool_warned=yes ;;
  2644. esac
  2645. CC=$ac_ct_CC
  2646. fi
  2647. else
  2648. CC="$ac_cv_prog_CC"
  2649. fi
  2650. if test -z "$CC"; then
  2651. if test -n "$ac_tool_prefix"; then
  2652. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2653. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2655. $as_echo_n "checking for $ac_word... " >&6; }
  2656. if ${ac_cv_prog_CC+:} false; then :
  2657. $as_echo_n "(cached) " >&6
  2658. else
  2659. if test -n "$CC"; then
  2660. ac_cv_prog_CC="$CC" # Let the user override the test.
  2661. else
  2662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2663. for as_dir in $PATH
  2664. do
  2665. IFS=$as_save_IFS
  2666. test -z "$as_dir" && as_dir=.
  2667. for ac_exec_ext in '' $ac_executable_extensions; do
  2668. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2669. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2670. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2671. break 2
  2672. fi
  2673. done
  2674. done
  2675. IFS=$as_save_IFS
  2676. fi
  2677. fi
  2678. CC=$ac_cv_prog_CC
  2679. if test -n "$CC"; then
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2681. $as_echo "$CC" >&6; }
  2682. else
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2684. $as_echo "no" >&6; }
  2685. fi
  2686. fi
  2687. fi
  2688. if test -z "$CC"; then
  2689. # Extract the first word of "cc", so it can be a program name with args.
  2690. set dummy cc; ac_word=$2
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2692. $as_echo_n "checking for $ac_word... " >&6; }
  2693. if ${ac_cv_prog_CC+:} false; then :
  2694. $as_echo_n "(cached) " >&6
  2695. else
  2696. if test -n "$CC"; then
  2697. ac_cv_prog_CC="$CC" # Let the user override the test.
  2698. else
  2699. ac_prog_rejected=no
  2700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2701. for as_dir in $PATH
  2702. do
  2703. IFS=$as_save_IFS
  2704. test -z "$as_dir" && as_dir=.
  2705. for ac_exec_ext in '' $ac_executable_extensions; do
  2706. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2707. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2708. ac_prog_rejected=yes
  2709. continue
  2710. fi
  2711. ac_cv_prog_CC="cc"
  2712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2713. break 2
  2714. fi
  2715. done
  2716. done
  2717. IFS=$as_save_IFS
  2718. if test $ac_prog_rejected = yes; then
  2719. # We found a bogon in the path, so make sure we never use it.
  2720. set dummy $ac_cv_prog_CC
  2721. shift
  2722. if test $# != 0; then
  2723. # We chose a different compiler from the bogus one.
  2724. # However, it has the same basename, so the bogon will be chosen
  2725. # first if we set CC to just the basename; use the full file name.
  2726. shift
  2727. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2728. fi
  2729. fi
  2730. fi
  2731. fi
  2732. CC=$ac_cv_prog_CC
  2733. if test -n "$CC"; then
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2735. $as_echo "$CC" >&6; }
  2736. else
  2737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2738. $as_echo "no" >&6; }
  2739. fi
  2740. fi
  2741. if test -z "$CC"; then
  2742. if test -n "$ac_tool_prefix"; then
  2743. for ac_prog in cl.exe
  2744. do
  2745. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2746. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2748. $as_echo_n "checking for $ac_word... " >&6; }
  2749. if ${ac_cv_prog_CC+:} false; then :
  2750. $as_echo_n "(cached) " >&6
  2751. else
  2752. if test -n "$CC"; then
  2753. ac_cv_prog_CC="$CC" # Let the user override the test.
  2754. else
  2755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2756. for as_dir in $PATH
  2757. do
  2758. IFS=$as_save_IFS
  2759. test -z "$as_dir" && as_dir=.
  2760. for ac_exec_ext in '' $ac_executable_extensions; do
  2761. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2762. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2763. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2764. break 2
  2765. fi
  2766. done
  2767. done
  2768. IFS=$as_save_IFS
  2769. fi
  2770. fi
  2771. CC=$ac_cv_prog_CC
  2772. if test -n "$CC"; then
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2774. $as_echo "$CC" >&6; }
  2775. else
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2777. $as_echo "no" >&6; }
  2778. fi
  2779. test -n "$CC" && break
  2780. done
  2781. fi
  2782. if test -z "$CC"; then
  2783. ac_ct_CC=$CC
  2784. for ac_prog in cl.exe
  2785. do
  2786. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2787. set dummy $ac_prog; ac_word=$2
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2789. $as_echo_n "checking for $ac_word... " >&6; }
  2790. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2791. $as_echo_n "(cached) " >&6
  2792. else
  2793. if test -n "$ac_ct_CC"; then
  2794. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2795. else
  2796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2797. for as_dir in $PATH
  2798. do
  2799. IFS=$as_save_IFS
  2800. test -z "$as_dir" && as_dir=.
  2801. for ac_exec_ext in '' $ac_executable_extensions; do
  2802. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2803. ac_cv_prog_ac_ct_CC="$ac_prog"
  2804. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2805. break 2
  2806. fi
  2807. done
  2808. done
  2809. IFS=$as_save_IFS
  2810. fi
  2811. fi
  2812. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2813. if test -n "$ac_ct_CC"; then
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2815. $as_echo "$ac_ct_CC" >&6; }
  2816. else
  2817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2818. $as_echo "no" >&6; }
  2819. fi
  2820. test -n "$ac_ct_CC" && break
  2821. done
  2822. if test "x$ac_ct_CC" = x; then
  2823. CC=""
  2824. else
  2825. case $cross_compiling:$ac_tool_warned in
  2826. yes:)
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2828. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2829. ac_tool_warned=yes ;;
  2830. esac
  2831. CC=$ac_ct_CC
  2832. fi
  2833. fi
  2834. fi
  2835. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2836. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2837. as_fn_error $? "no acceptable C compiler found in \$PATH
  2838. See \`config.log' for more details" "$LINENO" 5; }
  2839. # Provide some information about the compiler.
  2840. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2841. set X $ac_compile
  2842. ac_compiler=$2
  2843. for ac_option in --version -v -V -qversion; do
  2844. { { ac_try="$ac_compiler $ac_option >&5"
  2845. case "(($ac_try" in
  2846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2847. *) ac_try_echo=$ac_try;;
  2848. esac
  2849. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2850. $as_echo "$ac_try_echo"; } >&5
  2851. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2852. ac_status=$?
  2853. if test -s conftest.err; then
  2854. sed '10a\
  2855. ... rest of stderr output deleted ...
  2856. 10q' conftest.err >conftest.er1
  2857. cat conftest.er1 >&5
  2858. fi
  2859. rm -f conftest.er1 conftest.err
  2860. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2861. test $ac_status = 0; }
  2862. done
  2863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2864. /* end confdefs.h. */
  2865. int
  2866. main ()
  2867. {
  2868. ;
  2869. return 0;
  2870. }
  2871. _ACEOF
  2872. ac_clean_files_save=$ac_clean_files
  2873. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2874. # Try to create an executable without -o first, disregard a.out.
  2875. # It will help us diagnose broken compilers, and finding out an intuition
  2876. # of exeext.
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2878. $as_echo_n "checking whether the C compiler works... " >&6; }
  2879. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2880. # The possible output files:
  2881. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2882. ac_rmfiles=
  2883. for ac_file in $ac_files
  2884. do
  2885. case $ac_file in
  2886. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2887. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2888. esac
  2889. done
  2890. rm -f $ac_rmfiles
  2891. if { { ac_try="$ac_link_default"
  2892. case "(($ac_try" in
  2893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2894. *) ac_try_echo=$ac_try;;
  2895. esac
  2896. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2897. $as_echo "$ac_try_echo"; } >&5
  2898. (eval "$ac_link_default") 2>&5
  2899. ac_status=$?
  2900. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2901. test $ac_status = 0; }; then :
  2902. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2903. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2904. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2905. # so that the user can short-circuit this test for compilers unknown to
  2906. # Autoconf.
  2907. for ac_file in $ac_files ''
  2908. do
  2909. test -f "$ac_file" || continue
  2910. case $ac_file in
  2911. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2912. ;;
  2913. [ab].out )
  2914. # We found the default executable, but exeext='' is most
  2915. # certainly right.
  2916. break;;
  2917. *.* )
  2918. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2919. then :; else
  2920. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2921. fi
  2922. # We set ac_cv_exeext here because the later test for it is not
  2923. # safe: cross compilers may not add the suffix if given an `-o'
  2924. # argument, so we may need to know it at that point already.
  2925. # Even if this section looks crufty: it has the advantage of
  2926. # actually working.
  2927. break;;
  2928. * )
  2929. break;;
  2930. esac
  2931. done
  2932. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2933. else
  2934. ac_file=''
  2935. fi
  2936. if test -z "$ac_file"; then :
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2938. $as_echo "no" >&6; }
  2939. $as_echo "$as_me: failed program was:" >&5
  2940. sed 's/^/| /' conftest.$ac_ext >&5
  2941. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2942. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2943. as_fn_error 77 "C compiler cannot create executables
  2944. See \`config.log' for more details" "$LINENO" 5; }
  2945. else
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2947. $as_echo "yes" >&6; }
  2948. fi
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2950. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2952. $as_echo "$ac_file" >&6; }
  2953. ac_exeext=$ac_cv_exeext
  2954. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2955. ac_clean_files=$ac_clean_files_save
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2957. $as_echo_n "checking for suffix of executables... " >&6; }
  2958. if { { ac_try="$ac_link"
  2959. case "(($ac_try" in
  2960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2961. *) ac_try_echo=$ac_try;;
  2962. esac
  2963. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2964. $as_echo "$ac_try_echo"; } >&5
  2965. (eval "$ac_link") 2>&5
  2966. ac_status=$?
  2967. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2968. test $ac_status = 0; }; then :
  2969. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2970. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2971. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2972. # `rm'.
  2973. for ac_file in conftest.exe conftest conftest.*; do
  2974. test -f "$ac_file" || continue
  2975. case $ac_file in
  2976. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2977. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2978. break;;
  2979. * ) break;;
  2980. esac
  2981. done
  2982. else
  2983. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2984. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2985. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2986. See \`config.log' for more details" "$LINENO" 5; }
  2987. fi
  2988. rm -f conftest conftest$ac_cv_exeext
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2990. $as_echo "$ac_cv_exeext" >&6; }
  2991. rm -f conftest.$ac_ext
  2992. EXEEXT=$ac_cv_exeext
  2993. ac_exeext=$EXEEXT
  2994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2995. /* end confdefs.h. */
  2996. #include <stdio.h>
  2997. int
  2998. main ()
  2999. {
  3000. FILE *f = fopen ("conftest.out", "w");
  3001. return ferror (f) || fclose (f) != 0;
  3002. ;
  3003. return 0;
  3004. }
  3005. _ACEOF
  3006. ac_clean_files="$ac_clean_files conftest.out"
  3007. # Check that the compiler produces executables we can run. If not, either
  3008. # the compiler is broken, or we cross compile.
  3009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3010. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3011. if test "$cross_compiling" != yes; then
  3012. { { ac_try="$ac_link"
  3013. case "(($ac_try" in
  3014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3015. *) ac_try_echo=$ac_try;;
  3016. esac
  3017. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3018. $as_echo "$ac_try_echo"; } >&5
  3019. (eval "$ac_link") 2>&5
  3020. ac_status=$?
  3021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3022. test $ac_status = 0; }
  3023. if { ac_try='./conftest$ac_cv_exeext'
  3024. { { case "(($ac_try" in
  3025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3026. *) ac_try_echo=$ac_try;;
  3027. esac
  3028. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3029. $as_echo "$ac_try_echo"; } >&5
  3030. (eval "$ac_try") 2>&5
  3031. ac_status=$?
  3032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3033. test $ac_status = 0; }; }; then
  3034. cross_compiling=no
  3035. else
  3036. if test "$cross_compiling" = maybe; then
  3037. cross_compiling=yes
  3038. else
  3039. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3040. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3041. as_fn_error $? "cannot run C compiled programs.
  3042. If you meant to cross compile, use \`--host'.
  3043. See \`config.log' for more details" "$LINENO" 5; }
  3044. fi
  3045. fi
  3046. fi
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3048. $as_echo "$cross_compiling" >&6; }
  3049. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3050. ac_clean_files=$ac_clean_files_save
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3052. $as_echo_n "checking for suffix of object files... " >&6; }
  3053. if ${ac_cv_objext+:} false; then :
  3054. $as_echo_n "(cached) " >&6
  3055. else
  3056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3057. /* end confdefs.h. */
  3058. int
  3059. main ()
  3060. {
  3061. ;
  3062. return 0;
  3063. }
  3064. _ACEOF
  3065. rm -f conftest.o conftest.obj
  3066. if { { ac_try="$ac_compile"
  3067. case "(($ac_try" in
  3068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3069. *) ac_try_echo=$ac_try;;
  3070. esac
  3071. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3072. $as_echo "$ac_try_echo"; } >&5
  3073. (eval "$ac_compile") 2>&5
  3074. ac_status=$?
  3075. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3076. test $ac_status = 0; }; then :
  3077. for ac_file in conftest.o conftest.obj conftest.*; do
  3078. test -f "$ac_file" || continue;
  3079. case $ac_file in
  3080. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3081. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3082. break;;
  3083. esac
  3084. done
  3085. else
  3086. $as_echo "$as_me: failed program was:" >&5
  3087. sed 's/^/| /' conftest.$ac_ext >&5
  3088. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3089. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3090. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3091. See \`config.log' for more details" "$LINENO" 5; }
  3092. fi
  3093. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3094. fi
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3096. $as_echo "$ac_cv_objext" >&6; }
  3097. OBJEXT=$ac_cv_objext
  3098. ac_objext=$OBJEXT
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3100. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3101. if ${ac_cv_c_compiler_gnu+:} false; then :
  3102. $as_echo_n "(cached) " >&6
  3103. else
  3104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3105. /* end confdefs.h. */
  3106. int
  3107. main ()
  3108. {
  3109. #ifndef __GNUC__
  3110. choke me
  3111. #endif
  3112. ;
  3113. return 0;
  3114. }
  3115. _ACEOF
  3116. if ac_fn_c_try_compile "$LINENO"; then :
  3117. ac_compiler_gnu=yes
  3118. else
  3119. ac_compiler_gnu=no
  3120. fi
  3121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3122. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3123. fi
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3125. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3126. if test $ac_compiler_gnu = yes; then
  3127. GCC=yes
  3128. else
  3129. GCC=
  3130. fi
  3131. ac_test_CFLAGS=${CFLAGS+set}
  3132. ac_save_CFLAGS=$CFLAGS
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3134. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3135. if ${ac_cv_prog_cc_g+:} false; then :
  3136. $as_echo_n "(cached) " >&6
  3137. else
  3138. ac_save_c_werror_flag=$ac_c_werror_flag
  3139. ac_c_werror_flag=yes
  3140. ac_cv_prog_cc_g=no
  3141. CFLAGS="-g"
  3142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3143. /* end confdefs.h. */
  3144. int
  3145. main ()
  3146. {
  3147. ;
  3148. return 0;
  3149. }
  3150. _ACEOF
  3151. if ac_fn_c_try_compile "$LINENO"; then :
  3152. ac_cv_prog_cc_g=yes
  3153. else
  3154. CFLAGS=""
  3155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3156. /* end confdefs.h. */
  3157. int
  3158. main ()
  3159. {
  3160. ;
  3161. return 0;
  3162. }
  3163. _ACEOF
  3164. if ac_fn_c_try_compile "$LINENO"; then :
  3165. else
  3166. ac_c_werror_flag=$ac_save_c_werror_flag
  3167. CFLAGS="-g"
  3168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3169. /* end confdefs.h. */
  3170. int
  3171. main ()
  3172. {
  3173. ;
  3174. return 0;
  3175. }
  3176. _ACEOF
  3177. if ac_fn_c_try_compile "$LINENO"; then :
  3178. ac_cv_prog_cc_g=yes
  3179. fi
  3180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3181. fi
  3182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3183. fi
  3184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3185. ac_c_werror_flag=$ac_save_c_werror_flag
  3186. fi
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3188. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3189. if test "$ac_test_CFLAGS" = set; then
  3190. CFLAGS=$ac_save_CFLAGS
  3191. elif test $ac_cv_prog_cc_g = yes; then
  3192. if test "$GCC" = yes; then
  3193. CFLAGS="-g -O2"
  3194. else
  3195. CFLAGS="-g"
  3196. fi
  3197. else
  3198. if test "$GCC" = yes; then
  3199. CFLAGS="-O2"
  3200. else
  3201. CFLAGS=
  3202. fi
  3203. fi
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3205. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3206. if ${ac_cv_prog_cc_c89+:} false; then :
  3207. $as_echo_n "(cached) " >&6
  3208. else
  3209. ac_cv_prog_cc_c89=no
  3210. ac_save_CC=$CC
  3211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3212. /* end confdefs.h. */
  3213. #include <stdarg.h>
  3214. #include <stdio.h>
  3215. struct stat;
  3216. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3217. struct buf { int x; };
  3218. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3219. static char *e (p, i)
  3220. char **p;
  3221. int i;
  3222. {
  3223. return p[i];
  3224. }
  3225. static char *f (char * (*g) (char **, int), char **p, ...)
  3226. {
  3227. char *s;
  3228. va_list v;
  3229. va_start (v,p);
  3230. s = g (p, va_arg (v,int));
  3231. va_end (v);
  3232. return s;
  3233. }
  3234. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3235. function prototypes and stuff, but not '\xHH' hex character constants.
  3236. These don't provoke an error unfortunately, instead are silently treated
  3237. as 'x'. The following induces an error, until -std is added to get
  3238. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3239. array size at least. It's necessary to write '\x00'==0 to get something
  3240. that's true only with -std. */
  3241. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3242. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3243. inside strings and character constants. */
  3244. #define FOO(x) 'x'
  3245. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3246. int test (int i, double x);
  3247. struct s1 {int (*f) (int a);};
  3248. struct s2 {int (*f) (double a);};
  3249. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3250. int argc;
  3251. char **argv;
  3252. int
  3253. main ()
  3254. {
  3255. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3256. ;
  3257. return 0;
  3258. }
  3259. _ACEOF
  3260. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3261. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3262. do
  3263. CC="$ac_save_CC $ac_arg"
  3264. if ac_fn_c_try_compile "$LINENO"; then :
  3265. ac_cv_prog_cc_c89=$ac_arg
  3266. fi
  3267. rm -f core conftest.err conftest.$ac_objext
  3268. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3269. done
  3270. rm -f conftest.$ac_ext
  3271. CC=$ac_save_CC
  3272. fi
  3273. # AC_CACHE_VAL
  3274. case "x$ac_cv_prog_cc_c89" in
  3275. x)
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3277. $as_echo "none needed" >&6; } ;;
  3278. xno)
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3280. $as_echo "unsupported" >&6; } ;;
  3281. *)
  3282. CC="$CC $ac_cv_prog_cc_c89"
  3283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3284. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3285. esac
  3286. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3287. fi
  3288. ac_ext=c
  3289. ac_cpp='$CPP $CPPFLAGS'
  3290. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3291. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3292. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3294. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3295. if ${ac_cv_path_SED+:} false; then :
  3296. $as_echo_n "(cached) " >&6
  3297. else
  3298. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3299. for ac_i in 1 2 3 4 5 6 7; do
  3300. ac_script="$ac_script$as_nl$ac_script"
  3301. done
  3302. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3303. { ac_script=; unset ac_script;}
  3304. if test -z "$SED"; then
  3305. ac_path_SED_found=false
  3306. # Loop through the user's path and test for each of PROGNAME-LIST
  3307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3308. for as_dir in $PATH
  3309. do
  3310. IFS=$as_save_IFS
  3311. test -z "$as_dir" && as_dir=.
  3312. for ac_prog in sed gsed; do
  3313. for ac_exec_ext in '' $ac_executable_extensions; do
  3314. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3315. as_fn_executable_p "$ac_path_SED" || continue
  3316. # Check for GNU ac_path_SED and select it if it is found.
  3317. # Check for GNU $ac_path_SED
  3318. case `"$ac_path_SED" --version 2>&1` in
  3319. *GNU*)
  3320. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3321. *)
  3322. ac_count=0
  3323. $as_echo_n 0123456789 >"conftest.in"
  3324. while :
  3325. do
  3326. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3327. mv "conftest.tmp" "conftest.in"
  3328. cp "conftest.in" "conftest.nl"
  3329. $as_echo '' >> "conftest.nl"
  3330. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3331. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3332. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3333. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3334. # Best one so far, save it but keep looking for a better one
  3335. ac_cv_path_SED="$ac_path_SED"
  3336. ac_path_SED_max=$ac_count
  3337. fi
  3338. # 10*(2^10) chars as input seems more than enough
  3339. test $ac_count -gt 10 && break
  3340. done
  3341. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3342. esac
  3343. $ac_path_SED_found && break 3
  3344. done
  3345. done
  3346. done
  3347. IFS=$as_save_IFS
  3348. if test -z "$ac_cv_path_SED"; then
  3349. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3350. fi
  3351. else
  3352. ac_cv_path_SED=$SED
  3353. fi
  3354. fi
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3356. $as_echo "$ac_cv_path_SED" >&6; }
  3357. SED="$ac_cv_path_SED"
  3358. rm -f conftest.sed
  3359. test -z "$SED" && SED=sed
  3360. Xsed="$SED -e 1s/^X//"
  3361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3362. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3363. if ${ac_cv_path_GREP+:} false; then :
  3364. $as_echo_n "(cached) " >&6
  3365. else
  3366. if test -z "$GREP"; then
  3367. ac_path_GREP_found=false
  3368. # Loop through the user's path and test for each of PROGNAME-LIST
  3369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3370. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3371. do
  3372. IFS=$as_save_IFS
  3373. test -z "$as_dir" && as_dir=.
  3374. for ac_prog in grep ggrep; do
  3375. for ac_exec_ext in '' $ac_executable_extensions; do
  3376. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3377. as_fn_executable_p "$ac_path_GREP" || continue
  3378. # Check for GNU ac_path_GREP and select it if it is found.
  3379. # Check for GNU $ac_path_GREP
  3380. case `"$ac_path_GREP" --version 2>&1` in
  3381. *GNU*)
  3382. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3383. *)
  3384. ac_count=0
  3385. $as_echo_n 0123456789 >"conftest.in"
  3386. while :
  3387. do
  3388. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3389. mv "conftest.tmp" "conftest.in"
  3390. cp "conftest.in" "conftest.nl"
  3391. $as_echo 'GREP' >> "conftest.nl"
  3392. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3393. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3394. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3395. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3396. # Best one so far, save it but keep looking for a better one
  3397. ac_cv_path_GREP="$ac_path_GREP"
  3398. ac_path_GREP_max=$ac_count
  3399. fi
  3400. # 10*(2^10) chars as input seems more than enough
  3401. test $ac_count -gt 10 && break
  3402. done
  3403. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3404. esac
  3405. $ac_path_GREP_found && break 3
  3406. done
  3407. done
  3408. done
  3409. IFS=$as_save_IFS
  3410. if test -z "$ac_cv_path_GREP"; then
  3411. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3412. fi
  3413. else
  3414. ac_cv_path_GREP=$GREP
  3415. fi
  3416. fi
  3417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3418. $as_echo "$ac_cv_path_GREP" >&6; }
  3419. GREP="$ac_cv_path_GREP"
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3421. $as_echo_n "checking for egrep... " >&6; }
  3422. if ${ac_cv_path_EGREP+:} false; then :
  3423. $as_echo_n "(cached) " >&6
  3424. else
  3425. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3426. then ac_cv_path_EGREP="$GREP -E"
  3427. else
  3428. if test -z "$EGREP"; then
  3429. ac_path_EGREP_found=false
  3430. # Loop through the user's path and test for each of PROGNAME-LIST
  3431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3432. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3433. do
  3434. IFS=$as_save_IFS
  3435. test -z "$as_dir" && as_dir=.
  3436. for ac_prog in egrep; do
  3437. for ac_exec_ext in '' $ac_executable_extensions; do
  3438. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3439. as_fn_executable_p "$ac_path_EGREP" || continue
  3440. # Check for GNU ac_path_EGREP and select it if it is found.
  3441. # Check for GNU $ac_path_EGREP
  3442. case `"$ac_path_EGREP" --version 2>&1` in
  3443. *GNU*)
  3444. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3445. *)
  3446. ac_count=0
  3447. $as_echo_n 0123456789 >"conftest.in"
  3448. while :
  3449. do
  3450. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3451. mv "conftest.tmp" "conftest.in"
  3452. cp "conftest.in" "conftest.nl"
  3453. $as_echo 'EGREP' >> "conftest.nl"
  3454. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3455. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3456. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3457. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3458. # Best one so far, save it but keep looking for a better one
  3459. ac_cv_path_EGREP="$ac_path_EGREP"
  3460. ac_path_EGREP_max=$ac_count
  3461. fi
  3462. # 10*(2^10) chars as input seems more than enough
  3463. test $ac_count -gt 10 && break
  3464. done
  3465. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3466. esac
  3467. $ac_path_EGREP_found && break 3
  3468. done
  3469. done
  3470. done
  3471. IFS=$as_save_IFS
  3472. if test -z "$ac_cv_path_EGREP"; then
  3473. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3474. fi
  3475. else
  3476. ac_cv_path_EGREP=$EGREP
  3477. fi
  3478. fi
  3479. fi
  3480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3481. $as_echo "$ac_cv_path_EGREP" >&6; }
  3482. EGREP="$ac_cv_path_EGREP"
  3483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3484. $as_echo_n "checking for fgrep... " >&6; }
  3485. if ${ac_cv_path_FGREP+:} false; then :
  3486. $as_echo_n "(cached) " >&6
  3487. else
  3488. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3489. then ac_cv_path_FGREP="$GREP -F"
  3490. else
  3491. if test -z "$FGREP"; then
  3492. ac_path_FGREP_found=false
  3493. # Loop through the user's path and test for each of PROGNAME-LIST
  3494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3495. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3496. do
  3497. IFS=$as_save_IFS
  3498. test -z "$as_dir" && as_dir=.
  3499. for ac_prog in fgrep; do
  3500. for ac_exec_ext in '' $ac_executable_extensions; do
  3501. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3502. as_fn_executable_p "$ac_path_FGREP" || continue
  3503. # Check for GNU ac_path_FGREP and select it if it is found.
  3504. # Check for GNU $ac_path_FGREP
  3505. case `"$ac_path_FGREP" --version 2>&1` in
  3506. *GNU*)
  3507. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3508. *)
  3509. ac_count=0
  3510. $as_echo_n 0123456789 >"conftest.in"
  3511. while :
  3512. do
  3513. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3514. mv "conftest.tmp" "conftest.in"
  3515. cp "conftest.in" "conftest.nl"
  3516. $as_echo 'FGREP' >> "conftest.nl"
  3517. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3518. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3519. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3520. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3521. # Best one so far, save it but keep looking for a better one
  3522. ac_cv_path_FGREP="$ac_path_FGREP"
  3523. ac_path_FGREP_max=$ac_count
  3524. fi
  3525. # 10*(2^10) chars as input seems more than enough
  3526. test $ac_count -gt 10 && break
  3527. done
  3528. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3529. esac
  3530. $ac_path_FGREP_found && break 3
  3531. done
  3532. done
  3533. done
  3534. IFS=$as_save_IFS
  3535. if test -z "$ac_cv_path_FGREP"; then
  3536. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3537. fi
  3538. else
  3539. ac_cv_path_FGREP=$FGREP
  3540. fi
  3541. fi
  3542. fi
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3544. $as_echo "$ac_cv_path_FGREP" >&6; }
  3545. FGREP="$ac_cv_path_FGREP"
  3546. test -z "$GREP" && GREP=grep
  3547. # Check whether --with-gnu-ld was given.
  3548. if test "${with_gnu_ld+set}" = set; then :
  3549. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3550. else
  3551. with_gnu_ld=no
  3552. fi
  3553. ac_prog=ld
  3554. if test "$GCC" = yes; then
  3555. # Check if gcc -print-prog-name=ld gives a path.
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3557. $as_echo_n "checking for ld used by $CC... " >&6; }
  3558. case $host in
  3559. *-*-mingw*)
  3560. # gcc leaves a trailing carriage return which upsets mingw
  3561. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3562. *)
  3563. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3564. esac
  3565. case $ac_prog in
  3566. # Accept absolute paths.
  3567. [\\/]* | ?:[\\/]*)
  3568. re_direlt='/[^/][^/]*/\.\./'
  3569. # Canonicalize the pathname of ld
  3570. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3571. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3572. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3573. done
  3574. test -z "$LD" && LD="$ac_prog"
  3575. ;;
  3576. "")
  3577. # If it fails, then pretend we aren't using GCC.
  3578. ac_prog=ld
  3579. ;;
  3580. *)
  3581. # If it is relative, then search for the first ld in PATH.
  3582. with_gnu_ld=unknown
  3583. ;;
  3584. esac
  3585. elif test "$with_gnu_ld" = yes; then
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3587. $as_echo_n "checking for GNU ld... " >&6; }
  3588. else
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3590. $as_echo_n "checking for non-GNU ld... " >&6; }
  3591. fi
  3592. if ${lt_cv_path_LD+:} false; then :
  3593. $as_echo_n "(cached) " >&6
  3594. else
  3595. if test -z "$LD"; then
  3596. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3597. for ac_dir in $PATH; do
  3598. IFS="$lt_save_ifs"
  3599. test -z "$ac_dir" && ac_dir=.
  3600. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3601. lt_cv_path_LD="$ac_dir/$ac_prog"
  3602. # Check to see if the program is GNU ld. I'd rather use --version,
  3603. # but apparently some variants of GNU ld only accept -v.
  3604. # Break only if it was the GNU/non-GNU ld that we prefer.
  3605. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3606. *GNU* | *'with BFD'*)
  3607. test "$with_gnu_ld" != no && break
  3608. ;;
  3609. *)
  3610. test "$with_gnu_ld" != yes && break
  3611. ;;
  3612. esac
  3613. fi
  3614. done
  3615. IFS="$lt_save_ifs"
  3616. else
  3617. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3618. fi
  3619. fi
  3620. LD="$lt_cv_path_LD"
  3621. if test -n "$LD"; then
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3623. $as_echo "$LD" >&6; }
  3624. else
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3626. $as_echo "no" >&6; }
  3627. fi
  3628. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3630. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3631. if ${lt_cv_prog_gnu_ld+:} false; then :
  3632. $as_echo_n "(cached) " >&6
  3633. else
  3634. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3635. case `$LD -v 2>&1 </dev/null` in
  3636. *GNU* | *'with BFD'*)
  3637. lt_cv_prog_gnu_ld=yes
  3638. ;;
  3639. *)
  3640. lt_cv_prog_gnu_ld=no
  3641. ;;
  3642. esac
  3643. fi
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3645. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3646. with_gnu_ld=$lt_cv_prog_gnu_ld
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3648. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3649. if ${lt_cv_path_NM+:} false; then :
  3650. $as_echo_n "(cached) " >&6
  3651. else
  3652. if test -n "$NM"; then
  3653. # Let the user override the test.
  3654. lt_cv_path_NM="$NM"
  3655. else
  3656. lt_nm_to_check="${ac_tool_prefix}nm"
  3657. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3658. lt_nm_to_check="$lt_nm_to_check nm"
  3659. fi
  3660. for lt_tmp_nm in $lt_nm_to_check; do
  3661. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3662. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3663. IFS="$lt_save_ifs"
  3664. test -z "$ac_dir" && ac_dir=.
  3665. tmp_nm="$ac_dir/$lt_tmp_nm"
  3666. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3667. # Check to see if the nm accepts a BSD-compat flag.
  3668. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3669. # nm: unknown option "B" ignored
  3670. # Tru64's nm complains that /dev/null is an invalid object file
  3671. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3672. */dev/null* | *'Invalid file or object type'*)
  3673. lt_cv_path_NM="$tmp_nm -B"
  3674. break
  3675. ;;
  3676. *)
  3677. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3678. */dev/null*)
  3679. lt_cv_path_NM="$tmp_nm -p"
  3680. break
  3681. ;;
  3682. *)
  3683. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3684. continue # so that we can try to find one that supports BSD flags
  3685. ;;
  3686. esac
  3687. ;;
  3688. esac
  3689. fi
  3690. done
  3691. IFS="$lt_save_ifs"
  3692. done
  3693. : ${lt_cv_path_NM=no}
  3694. fi
  3695. fi
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3697. $as_echo "$lt_cv_path_NM" >&6; }
  3698. if test "$lt_cv_path_NM" != "no"; then
  3699. NM="$lt_cv_path_NM"
  3700. else
  3701. # Didn't find any BSD compatible name lister, look for dumpbin.
  3702. if test -n "$DUMPBIN"; then :
  3703. # Let the user override the test.
  3704. else
  3705. if test -n "$ac_tool_prefix"; then
  3706. for ac_prog in dumpbin "link -dump"
  3707. do
  3708. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3709. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3711. $as_echo_n "checking for $ac_word... " >&6; }
  3712. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3713. $as_echo_n "(cached) " >&6
  3714. else
  3715. if test -n "$DUMPBIN"; then
  3716. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3717. else
  3718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3719. for as_dir in $PATH
  3720. do
  3721. IFS=$as_save_IFS
  3722. test -z "$as_dir" && as_dir=.
  3723. for ac_exec_ext in '' $ac_executable_extensions; do
  3724. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3725. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3727. break 2
  3728. fi
  3729. done
  3730. done
  3731. IFS=$as_save_IFS
  3732. fi
  3733. fi
  3734. DUMPBIN=$ac_cv_prog_DUMPBIN
  3735. if test -n "$DUMPBIN"; then
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3737. $as_echo "$DUMPBIN" >&6; }
  3738. else
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3740. $as_echo "no" >&6; }
  3741. fi
  3742. test -n "$DUMPBIN" && break
  3743. done
  3744. fi
  3745. if test -z "$DUMPBIN"; then
  3746. ac_ct_DUMPBIN=$DUMPBIN
  3747. for ac_prog in dumpbin "link -dump"
  3748. do
  3749. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3750. set dummy $ac_prog; ac_word=$2
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3752. $as_echo_n "checking for $ac_word... " >&6; }
  3753. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3754. $as_echo_n "(cached) " >&6
  3755. else
  3756. if test -n "$ac_ct_DUMPBIN"; then
  3757. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3758. else
  3759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3760. for as_dir in $PATH
  3761. do
  3762. IFS=$as_save_IFS
  3763. test -z "$as_dir" && as_dir=.
  3764. for ac_exec_ext in '' $ac_executable_extensions; do
  3765. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3766. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3767. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3768. break 2
  3769. fi
  3770. done
  3771. done
  3772. IFS=$as_save_IFS
  3773. fi
  3774. fi
  3775. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3776. if test -n "$ac_ct_DUMPBIN"; then
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3778. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3779. else
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3781. $as_echo "no" >&6; }
  3782. fi
  3783. test -n "$ac_ct_DUMPBIN" && break
  3784. done
  3785. if test "x$ac_ct_DUMPBIN" = x; then
  3786. DUMPBIN=":"
  3787. else
  3788. case $cross_compiling:$ac_tool_warned in
  3789. yes:)
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3791. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3792. ac_tool_warned=yes ;;
  3793. esac
  3794. DUMPBIN=$ac_ct_DUMPBIN
  3795. fi
  3796. fi
  3797. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3798. *COFF*)
  3799. DUMPBIN="$DUMPBIN -symbols"
  3800. ;;
  3801. *)
  3802. DUMPBIN=:
  3803. ;;
  3804. esac
  3805. fi
  3806. if test "$DUMPBIN" != ":"; then
  3807. NM="$DUMPBIN"
  3808. fi
  3809. fi
  3810. test -z "$NM" && NM=nm
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3812. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3813. if ${lt_cv_nm_interface+:} false; then :
  3814. $as_echo_n "(cached) " >&6
  3815. else
  3816. lt_cv_nm_interface="BSD nm"
  3817. echo "int some_variable = 0;" > conftest.$ac_ext
  3818. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3819. (eval "$ac_compile" 2>conftest.err)
  3820. cat conftest.err >&5
  3821. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3822. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3823. cat conftest.err >&5
  3824. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3825. cat conftest.out >&5
  3826. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3827. lt_cv_nm_interface="MS dumpbin"
  3828. fi
  3829. rm -f conftest*
  3830. fi
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3832. $as_echo "$lt_cv_nm_interface" >&6; }
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3834. $as_echo_n "checking whether ln -s works... " >&6; }
  3835. LN_S=$as_ln_s
  3836. if test "$LN_S" = "ln -s"; then
  3837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3838. $as_echo "yes" >&6; }
  3839. else
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3841. $as_echo "no, using $LN_S" >&6; }
  3842. fi
  3843. # find the maximum length of command line arguments
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3845. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3846. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3847. $as_echo_n "(cached) " >&6
  3848. else
  3849. i=0
  3850. teststring="ABCD"
  3851. case $build_os in
  3852. msdosdjgpp*)
  3853. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3854. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3855. # during glob expansion). Even if it were fixed, the result of this
  3856. # check would be larger than it should be.
  3857. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3858. ;;
  3859. gnu*)
  3860. # Under GNU Hurd, this test is not required because there is
  3861. # no limit to the length of command line arguments.
  3862. # Libtool will interpret -1 as no limit whatsoever
  3863. lt_cv_sys_max_cmd_len=-1;
  3864. ;;
  3865. cygwin* | mingw* | cegcc*)
  3866. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3867. # about 5 minutes as the teststring grows exponentially.
  3868. # Worse, since 9x/ME are not pre-emptively multitasking,
  3869. # you end up with a "frozen" computer, even though with patience
  3870. # the test eventually succeeds (with a max line length of 256k).
  3871. # Instead, let's just punt: use the minimum linelength reported by
  3872. # all of the supported platforms: 8192 (on NT/2K/XP).
  3873. lt_cv_sys_max_cmd_len=8192;
  3874. ;;
  3875. mint*)
  3876. # On MiNT this can take a long time and run out of memory.
  3877. lt_cv_sys_max_cmd_len=8192;
  3878. ;;
  3879. amigaos*)
  3880. # On AmigaOS with pdksh, this test takes hours, literally.
  3881. # So we just punt and use a minimum line length of 8192.
  3882. lt_cv_sys_max_cmd_len=8192;
  3883. ;;
  3884. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3885. # This has been around since 386BSD, at least. Likely further.
  3886. if test -x /sbin/sysctl; then
  3887. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3888. elif test -x /usr/sbin/sysctl; then
  3889. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3890. else
  3891. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3892. fi
  3893. # And add a safety zone
  3894. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3895. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3896. ;;
  3897. interix*)
  3898. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3899. lt_cv_sys_max_cmd_len=196608
  3900. ;;
  3901. os2*)
  3902. # The test takes a long time on OS/2.
  3903. lt_cv_sys_max_cmd_len=8192
  3904. ;;
  3905. osf*)
  3906. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3907. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3908. # nice to cause kernel panics so lets avoid the loop below.
  3909. # First set a reasonable default.
  3910. lt_cv_sys_max_cmd_len=16384
  3911. #
  3912. if test -x /sbin/sysconfig; then
  3913. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3914. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3915. esac
  3916. fi
  3917. ;;
  3918. sco3.2v5*)
  3919. lt_cv_sys_max_cmd_len=102400
  3920. ;;
  3921. sysv5* | sco5v6* | sysv4.2uw2*)
  3922. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3923. if test -n "$kargmax"; then
  3924. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3925. else
  3926. lt_cv_sys_max_cmd_len=32768
  3927. fi
  3928. ;;
  3929. *)
  3930. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3931. if test -n "$lt_cv_sys_max_cmd_len"; then
  3932. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3933. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3934. else
  3935. # Make teststring a little bigger before we do anything with it.
  3936. # a 1K string should be a reasonable start.
  3937. for i in 1 2 3 4 5 6 7 8 ; do
  3938. teststring=$teststring$teststring
  3939. done
  3940. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3941. # If test is not a shell built-in, we'll probably end up computing a
  3942. # maximum length that is only half of the actual maximum length, but
  3943. # we can't tell.
  3944. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3945. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3946. test $i != 17 # 1/2 MB should be enough
  3947. do
  3948. i=`expr $i + 1`
  3949. teststring=$teststring$teststring
  3950. done
  3951. # Only check the string length outside the loop.
  3952. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3953. teststring=
  3954. # Add a significant safety factor because C++ compilers can tack on
  3955. # massive amounts of additional arguments before passing them to the
  3956. # linker. It appears as though 1/2 is a usable value.
  3957. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3958. fi
  3959. ;;
  3960. esac
  3961. fi
  3962. if test -n $lt_cv_sys_max_cmd_len ; then
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3964. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3965. else
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3967. $as_echo "none" >&6; }
  3968. fi
  3969. max_cmd_len=$lt_cv_sys_max_cmd_len
  3970. : ${CP="cp -f"}
  3971. : ${MV="mv -f"}
  3972. : ${RM="rm -f"}
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3974. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3975. # Try some XSI features
  3976. xsi_shell=no
  3977. ( _lt_dummy="a/b/c"
  3978. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  3979. = c,a/b,b/c, \
  3980. && eval 'test $(( 1 + 1 )) -eq 2 \
  3981. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3982. && xsi_shell=yes
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  3984. $as_echo "$xsi_shell" >&6; }
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  3986. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  3987. lt_shell_append=no
  3988. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  3989. >/dev/null 2>&1 \
  3990. && lt_shell_append=yes
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  3992. $as_echo "$lt_shell_append" >&6; }
  3993. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  3994. lt_unset=unset
  3995. else
  3996. lt_unset=false
  3997. fi
  3998. # test EBCDIC or ASCII
  3999. case `echo X|tr X '\101'` in
  4000. A) # ASCII based system
  4001. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4002. lt_SP2NL='tr \040 \012'
  4003. lt_NL2SP='tr \015\012 \040\040'
  4004. ;;
  4005. *) # EBCDIC based system
  4006. lt_SP2NL='tr \100 \n'
  4007. lt_NL2SP='tr \r\n \100\100'
  4008. ;;
  4009. esac
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4011. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4012. if ${lt_cv_to_host_file_cmd+:} false; then :
  4013. $as_echo_n "(cached) " >&6
  4014. else
  4015. case $host in
  4016. *-*-mingw* )
  4017. case $build in
  4018. *-*-mingw* ) # actually msys
  4019. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4020. ;;
  4021. *-*-cygwin* )
  4022. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4023. ;;
  4024. * ) # otherwise, assume *nix
  4025. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4026. ;;
  4027. esac
  4028. ;;
  4029. *-*-cygwin* )
  4030. case $build in
  4031. *-*-mingw* ) # actually msys
  4032. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4033. ;;
  4034. *-*-cygwin* )
  4035. lt_cv_to_host_file_cmd=func_convert_file_noop
  4036. ;;
  4037. * ) # otherwise, assume *nix
  4038. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4039. ;;
  4040. esac
  4041. ;;
  4042. * ) # unhandled hosts (and "normal" native builds)
  4043. lt_cv_to_host_file_cmd=func_convert_file_noop
  4044. ;;
  4045. esac
  4046. fi
  4047. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4049. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4051. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4052. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4053. $as_echo_n "(cached) " >&6
  4054. else
  4055. #assume ordinary cross tools, or native build.
  4056. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4057. case $host in
  4058. *-*-mingw* )
  4059. case $build in
  4060. *-*-mingw* ) # actually msys
  4061. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4062. ;;
  4063. esac
  4064. ;;
  4065. esac
  4066. fi
  4067. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4069. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4071. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4072. if ${lt_cv_ld_reload_flag+:} false; then :
  4073. $as_echo_n "(cached) " >&6
  4074. else
  4075. lt_cv_ld_reload_flag='-r'
  4076. fi
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4078. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4079. reload_flag=$lt_cv_ld_reload_flag
  4080. case $reload_flag in
  4081. "" | " "*) ;;
  4082. *) reload_flag=" $reload_flag" ;;
  4083. esac
  4084. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4085. case $host_os in
  4086. cygwin* | mingw* | pw32* | cegcc*)
  4087. if test "$GCC" != yes; then
  4088. reload_cmds=false
  4089. fi
  4090. ;;
  4091. darwin*)
  4092. if test "$GCC" = yes; then
  4093. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4094. else
  4095. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4096. fi
  4097. ;;
  4098. esac
  4099. if test -n "$ac_tool_prefix"; then
  4100. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4101. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4103. $as_echo_n "checking for $ac_word... " >&6; }
  4104. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4105. $as_echo_n "(cached) " >&6
  4106. else
  4107. if test -n "$OBJDUMP"; then
  4108. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4109. else
  4110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4111. for as_dir in $PATH
  4112. do
  4113. IFS=$as_save_IFS
  4114. test -z "$as_dir" && as_dir=.
  4115. for ac_exec_ext in '' $ac_executable_extensions; do
  4116. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4117. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4118. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4119. break 2
  4120. fi
  4121. done
  4122. done
  4123. IFS=$as_save_IFS
  4124. fi
  4125. fi
  4126. OBJDUMP=$ac_cv_prog_OBJDUMP
  4127. if test -n "$OBJDUMP"; then
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4129. $as_echo "$OBJDUMP" >&6; }
  4130. else
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4132. $as_echo "no" >&6; }
  4133. fi
  4134. fi
  4135. if test -z "$ac_cv_prog_OBJDUMP"; then
  4136. ac_ct_OBJDUMP=$OBJDUMP
  4137. # Extract the first word of "objdump", so it can be a program name with args.
  4138. set dummy objdump; ac_word=$2
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4140. $as_echo_n "checking for $ac_word... " >&6; }
  4141. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4142. $as_echo_n "(cached) " >&6
  4143. else
  4144. if test -n "$ac_ct_OBJDUMP"; then
  4145. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4146. else
  4147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4148. for as_dir in $PATH
  4149. do
  4150. IFS=$as_save_IFS
  4151. test -z "$as_dir" && as_dir=.
  4152. for ac_exec_ext in '' $ac_executable_extensions; do
  4153. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4154. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4155. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4156. break 2
  4157. fi
  4158. done
  4159. done
  4160. IFS=$as_save_IFS
  4161. fi
  4162. fi
  4163. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4164. if test -n "$ac_ct_OBJDUMP"; then
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4166. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4167. else
  4168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4169. $as_echo "no" >&6; }
  4170. fi
  4171. if test "x$ac_ct_OBJDUMP" = x; then
  4172. OBJDUMP="false"
  4173. else
  4174. case $cross_compiling:$ac_tool_warned in
  4175. yes:)
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4177. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4178. ac_tool_warned=yes ;;
  4179. esac
  4180. OBJDUMP=$ac_ct_OBJDUMP
  4181. fi
  4182. else
  4183. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4184. fi
  4185. test -z "$OBJDUMP" && OBJDUMP=objdump
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4187. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4188. if ${lt_cv_deplibs_check_method+:} false; then :
  4189. $as_echo_n "(cached) " >&6
  4190. else
  4191. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4192. lt_cv_file_magic_test_file=
  4193. lt_cv_deplibs_check_method='unknown'
  4194. # Need to set the preceding variable on all platforms that support
  4195. # interlibrary dependencies.
  4196. # 'none' -- dependencies not supported.
  4197. # `unknown' -- same as none, but documents that we really don't know.
  4198. # 'pass_all' -- all dependencies passed with no checks.
  4199. # 'test_compile' -- check by making test program.
  4200. # 'file_magic [[regex]]' -- check by looking for files in library path
  4201. # which responds to the $file_magic_cmd with a given extended regex.
  4202. # If you have `file' or equivalent on your system and you're not sure
  4203. # whether `pass_all' will *always* work, you probably want this one.
  4204. case $host_os in
  4205. aix[4-9]*)
  4206. lt_cv_deplibs_check_method=pass_all
  4207. ;;
  4208. beos*)
  4209. lt_cv_deplibs_check_method=pass_all
  4210. ;;
  4211. bsdi[45]*)
  4212. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4213. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4214. lt_cv_file_magic_test_file=/shlib/libc.so
  4215. ;;
  4216. cygwin*)
  4217. # func_win32_libid is a shell function defined in ltmain.sh
  4218. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4219. lt_cv_file_magic_cmd='func_win32_libid'
  4220. lt_cv_deplibs_check_method=pass_all
  4221. ;;
  4222. mingw* | pw32*)
  4223. # Base MSYS/MinGW do not provide the 'file' command needed by
  4224. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4225. # unless we find 'file', for example because we are cross-compiling.
  4226. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4227. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4228. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4229. lt_cv_file_magic_cmd='func_win32_libid'
  4230. else
  4231. # Keep this pattern in sync with the one in func_win32_libid.
  4232. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4233. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4234. fi
  4235. lt_cv_deplibs_check_method=pass_all
  4236. ;;
  4237. cegcc*)
  4238. # use the weaker test based on 'objdump'. See mingw*.
  4239. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4240. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4241. ;;
  4242. darwin* | rhapsody*)
  4243. lt_cv_deplibs_check_method=pass_all
  4244. ;;
  4245. freebsd* | dragonfly*)
  4246. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4247. case $host_cpu in
  4248. i*86 )
  4249. # Not sure whether the presence of OpenBSD here was a mistake.
  4250. # Let's accept both of them until this is cleared up.
  4251. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4252. lt_cv_file_magic_cmd=/usr/bin/file
  4253. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4254. ;;
  4255. esac
  4256. else
  4257. lt_cv_deplibs_check_method=pass_all
  4258. fi
  4259. ;;
  4260. gnu*)
  4261. lt_cv_deplibs_check_method=pass_all
  4262. ;;
  4263. haiku*)
  4264. lt_cv_deplibs_check_method=pass_all
  4265. ;;
  4266. hpux10.20* | hpux11*)
  4267. lt_cv_file_magic_cmd=/usr/bin/file
  4268. case $host_cpu in
  4269. ia64*)
  4270. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4271. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4272. ;;
  4273. hppa*64*)
  4274. 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]'
  4275. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4276. ;;
  4277. *)
  4278. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4279. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4280. ;;
  4281. esac
  4282. ;;
  4283. interix[3-9]*)
  4284. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4285. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4286. ;;
  4287. irix5* | irix6* | nonstopux*)
  4288. case $LD in
  4289. *-32|*"-32 ") libmagic=32-bit;;
  4290. *-n32|*"-n32 ") libmagic=N32;;
  4291. *-64|*"-64 ") libmagic=64-bit;;
  4292. *) libmagic=never-match;;
  4293. esac
  4294. lt_cv_deplibs_check_method=pass_all
  4295. ;;
  4296. # This must be glibc/ELF.
  4297. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4298. lt_cv_deplibs_check_method=pass_all
  4299. ;;
  4300. netbsd*)
  4301. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4302. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4303. else
  4304. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4305. fi
  4306. ;;
  4307. newos6*)
  4308. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4309. lt_cv_file_magic_cmd=/usr/bin/file
  4310. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4311. ;;
  4312. *nto* | *qnx*)
  4313. lt_cv_deplibs_check_method=pass_all
  4314. ;;
  4315. openbsd*)
  4316. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4317. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4318. else
  4319. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4320. fi
  4321. ;;
  4322. osf3* | osf4* | osf5*)
  4323. lt_cv_deplibs_check_method=pass_all
  4324. ;;
  4325. rdos*)
  4326. lt_cv_deplibs_check_method=pass_all
  4327. ;;
  4328. solaris*)
  4329. lt_cv_deplibs_check_method=pass_all
  4330. ;;
  4331. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4332. lt_cv_deplibs_check_method=pass_all
  4333. ;;
  4334. sysv4 | sysv4.3*)
  4335. case $host_vendor in
  4336. motorola)
  4337. 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]'
  4338. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4339. ;;
  4340. ncr)
  4341. lt_cv_deplibs_check_method=pass_all
  4342. ;;
  4343. sequent)
  4344. lt_cv_file_magic_cmd='/bin/file'
  4345. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4346. ;;
  4347. sni)
  4348. lt_cv_file_magic_cmd='/bin/file'
  4349. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4350. lt_cv_file_magic_test_file=/lib/libc.so
  4351. ;;
  4352. siemens)
  4353. lt_cv_deplibs_check_method=pass_all
  4354. ;;
  4355. pc)
  4356. lt_cv_deplibs_check_method=pass_all
  4357. ;;
  4358. esac
  4359. ;;
  4360. tpf*)
  4361. lt_cv_deplibs_check_method=pass_all
  4362. ;;
  4363. esac
  4364. fi
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4366. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4367. file_magic_glob=
  4368. want_nocaseglob=no
  4369. if test "$build" = "$host"; then
  4370. case $host_os in
  4371. mingw* | pw32*)
  4372. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4373. want_nocaseglob=yes
  4374. else
  4375. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4376. fi
  4377. ;;
  4378. esac
  4379. fi
  4380. file_magic_cmd=$lt_cv_file_magic_cmd
  4381. deplibs_check_method=$lt_cv_deplibs_check_method
  4382. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4383. if test -n "$ac_tool_prefix"; then
  4384. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4385. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4387. $as_echo_n "checking for $ac_word... " >&6; }
  4388. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4389. $as_echo_n "(cached) " >&6
  4390. else
  4391. if test -n "$DLLTOOL"; then
  4392. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4393. else
  4394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4395. for as_dir in $PATH
  4396. do
  4397. IFS=$as_save_IFS
  4398. test -z "$as_dir" && as_dir=.
  4399. for ac_exec_ext in '' $ac_executable_extensions; do
  4400. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4401. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4403. break 2
  4404. fi
  4405. done
  4406. done
  4407. IFS=$as_save_IFS
  4408. fi
  4409. fi
  4410. DLLTOOL=$ac_cv_prog_DLLTOOL
  4411. if test -n "$DLLTOOL"; then
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4413. $as_echo "$DLLTOOL" >&6; }
  4414. else
  4415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4416. $as_echo "no" >&6; }
  4417. fi
  4418. fi
  4419. if test -z "$ac_cv_prog_DLLTOOL"; then
  4420. ac_ct_DLLTOOL=$DLLTOOL
  4421. # Extract the first word of "dlltool", so it can be a program name with args.
  4422. set dummy dlltool; ac_word=$2
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4424. $as_echo_n "checking for $ac_word... " >&6; }
  4425. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4426. $as_echo_n "(cached) " >&6
  4427. else
  4428. if test -n "$ac_ct_DLLTOOL"; then
  4429. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4430. else
  4431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4432. for as_dir in $PATH
  4433. do
  4434. IFS=$as_save_IFS
  4435. test -z "$as_dir" && as_dir=.
  4436. for ac_exec_ext in '' $ac_executable_extensions; do
  4437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4438. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4440. break 2
  4441. fi
  4442. done
  4443. done
  4444. IFS=$as_save_IFS
  4445. fi
  4446. fi
  4447. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4448. if test -n "$ac_ct_DLLTOOL"; then
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4450. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4451. else
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4453. $as_echo "no" >&6; }
  4454. fi
  4455. if test "x$ac_ct_DLLTOOL" = x; then
  4456. DLLTOOL="false"
  4457. else
  4458. case $cross_compiling:$ac_tool_warned in
  4459. yes:)
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4461. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4462. ac_tool_warned=yes ;;
  4463. esac
  4464. DLLTOOL=$ac_ct_DLLTOOL
  4465. fi
  4466. else
  4467. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4468. fi
  4469. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4471. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4472. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4473. $as_echo_n "(cached) " >&6
  4474. else
  4475. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4476. case $host_os in
  4477. cygwin* | mingw* | pw32* | cegcc*)
  4478. # two different shell functions defined in ltmain.sh
  4479. # decide which to use based on capabilities of $DLLTOOL
  4480. case `$DLLTOOL --help 2>&1` in
  4481. *--identify-strict*)
  4482. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4483. ;;
  4484. *)
  4485. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4486. ;;
  4487. esac
  4488. ;;
  4489. *)
  4490. # fallback: assume linklib IS sharedlib
  4491. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4492. ;;
  4493. esac
  4494. fi
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4496. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4497. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4498. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4499. if test -n "$ac_tool_prefix"; then
  4500. for ac_prog in ar
  4501. do
  4502. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4503. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4505. $as_echo_n "checking for $ac_word... " >&6; }
  4506. if ${ac_cv_prog_AR+:} false; then :
  4507. $as_echo_n "(cached) " >&6
  4508. else
  4509. if test -n "$AR"; then
  4510. ac_cv_prog_AR="$AR" # Let the user override the test.
  4511. else
  4512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4513. for as_dir in $PATH
  4514. do
  4515. IFS=$as_save_IFS
  4516. test -z "$as_dir" && as_dir=.
  4517. for ac_exec_ext in '' $ac_executable_extensions; do
  4518. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4519. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4521. break 2
  4522. fi
  4523. done
  4524. done
  4525. IFS=$as_save_IFS
  4526. fi
  4527. fi
  4528. AR=$ac_cv_prog_AR
  4529. if test -n "$AR"; then
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4531. $as_echo "$AR" >&6; }
  4532. else
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4534. $as_echo "no" >&6; }
  4535. fi
  4536. test -n "$AR" && break
  4537. done
  4538. fi
  4539. if test -z "$AR"; then
  4540. ac_ct_AR=$AR
  4541. for ac_prog in ar
  4542. do
  4543. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4544. set dummy $ac_prog; ac_word=$2
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4546. $as_echo_n "checking for $ac_word... " >&6; }
  4547. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4548. $as_echo_n "(cached) " >&6
  4549. else
  4550. if test -n "$ac_ct_AR"; then
  4551. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4552. else
  4553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4554. for as_dir in $PATH
  4555. do
  4556. IFS=$as_save_IFS
  4557. test -z "$as_dir" && as_dir=.
  4558. for ac_exec_ext in '' $ac_executable_extensions; do
  4559. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4560. ac_cv_prog_ac_ct_AR="$ac_prog"
  4561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4562. break 2
  4563. fi
  4564. done
  4565. done
  4566. IFS=$as_save_IFS
  4567. fi
  4568. fi
  4569. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4570. if test -n "$ac_ct_AR"; then
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4572. $as_echo "$ac_ct_AR" >&6; }
  4573. else
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4575. $as_echo "no" >&6; }
  4576. fi
  4577. test -n "$ac_ct_AR" && break
  4578. done
  4579. if test "x$ac_ct_AR" = x; then
  4580. AR="false"
  4581. else
  4582. case $cross_compiling:$ac_tool_warned in
  4583. yes:)
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4585. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4586. ac_tool_warned=yes ;;
  4587. esac
  4588. AR=$ac_ct_AR
  4589. fi
  4590. fi
  4591. : ${AR=ar}
  4592. : ${AR_FLAGS=cru}
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4594. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4595. if ${lt_cv_ar_at_file+:} false; then :
  4596. $as_echo_n "(cached) " >&6
  4597. else
  4598. lt_cv_ar_at_file=no
  4599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4600. /* end confdefs.h. */
  4601. int
  4602. main ()
  4603. {
  4604. ;
  4605. return 0;
  4606. }
  4607. _ACEOF
  4608. if ac_fn_c_try_compile "$LINENO"; then :
  4609. echo conftest.$ac_objext > conftest.lst
  4610. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4611. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4612. (eval $lt_ar_try) 2>&5
  4613. ac_status=$?
  4614. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4615. test $ac_status = 0; }
  4616. if test "$ac_status" -eq 0; then
  4617. # Ensure the archiver fails upon bogus file names.
  4618. rm -f conftest.$ac_objext libconftest.a
  4619. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4620. (eval $lt_ar_try) 2>&5
  4621. ac_status=$?
  4622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4623. test $ac_status = 0; }
  4624. if test "$ac_status" -ne 0; then
  4625. lt_cv_ar_at_file=@
  4626. fi
  4627. fi
  4628. rm -f conftest.* libconftest.a
  4629. fi
  4630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4631. fi
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4633. $as_echo "$lt_cv_ar_at_file" >&6; }
  4634. if test "x$lt_cv_ar_at_file" = xno; then
  4635. archiver_list_spec=
  4636. else
  4637. archiver_list_spec=$lt_cv_ar_at_file
  4638. fi
  4639. if test -n "$ac_tool_prefix"; then
  4640. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4641. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4643. $as_echo_n "checking for $ac_word... " >&6; }
  4644. if ${ac_cv_prog_STRIP+:} false; then :
  4645. $as_echo_n "(cached) " >&6
  4646. else
  4647. if test -n "$STRIP"; then
  4648. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4649. else
  4650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4651. for as_dir in $PATH
  4652. do
  4653. IFS=$as_save_IFS
  4654. test -z "$as_dir" && as_dir=.
  4655. for ac_exec_ext in '' $ac_executable_extensions; do
  4656. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4657. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4659. break 2
  4660. fi
  4661. done
  4662. done
  4663. IFS=$as_save_IFS
  4664. fi
  4665. fi
  4666. STRIP=$ac_cv_prog_STRIP
  4667. if test -n "$STRIP"; then
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4669. $as_echo "$STRIP" >&6; }
  4670. else
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4672. $as_echo "no" >&6; }
  4673. fi
  4674. fi
  4675. if test -z "$ac_cv_prog_STRIP"; then
  4676. ac_ct_STRIP=$STRIP
  4677. # Extract the first word of "strip", so it can be a program name with args.
  4678. set dummy strip; ac_word=$2
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4680. $as_echo_n "checking for $ac_word... " >&6; }
  4681. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4682. $as_echo_n "(cached) " >&6
  4683. else
  4684. if test -n "$ac_ct_STRIP"; then
  4685. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4686. else
  4687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4688. for as_dir in $PATH
  4689. do
  4690. IFS=$as_save_IFS
  4691. test -z "$as_dir" && as_dir=.
  4692. for ac_exec_ext in '' $ac_executable_extensions; do
  4693. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4694. ac_cv_prog_ac_ct_STRIP="strip"
  4695. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4696. break 2
  4697. fi
  4698. done
  4699. done
  4700. IFS=$as_save_IFS
  4701. fi
  4702. fi
  4703. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4704. if test -n "$ac_ct_STRIP"; then
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4706. $as_echo "$ac_ct_STRIP" >&6; }
  4707. else
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4709. $as_echo "no" >&6; }
  4710. fi
  4711. if test "x$ac_ct_STRIP" = x; then
  4712. STRIP=":"
  4713. else
  4714. case $cross_compiling:$ac_tool_warned in
  4715. yes:)
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4717. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4718. ac_tool_warned=yes ;;
  4719. esac
  4720. STRIP=$ac_ct_STRIP
  4721. fi
  4722. else
  4723. STRIP="$ac_cv_prog_STRIP"
  4724. fi
  4725. test -z "$STRIP" && STRIP=:
  4726. if test -n "$ac_tool_prefix"; then
  4727. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4728. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4730. $as_echo_n "checking for $ac_word... " >&6; }
  4731. if ${ac_cv_prog_RANLIB+:} false; then :
  4732. $as_echo_n "(cached) " >&6
  4733. else
  4734. if test -n "$RANLIB"; then
  4735. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4736. else
  4737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4738. for as_dir in $PATH
  4739. do
  4740. IFS=$as_save_IFS
  4741. test -z "$as_dir" && as_dir=.
  4742. for ac_exec_ext in '' $ac_executable_extensions; do
  4743. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4744. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4746. break 2
  4747. fi
  4748. done
  4749. done
  4750. IFS=$as_save_IFS
  4751. fi
  4752. fi
  4753. RANLIB=$ac_cv_prog_RANLIB
  4754. if test -n "$RANLIB"; then
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4756. $as_echo "$RANLIB" >&6; }
  4757. else
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4759. $as_echo "no" >&6; }
  4760. fi
  4761. fi
  4762. if test -z "$ac_cv_prog_RANLIB"; then
  4763. ac_ct_RANLIB=$RANLIB
  4764. # Extract the first word of "ranlib", so it can be a program name with args.
  4765. set dummy ranlib; ac_word=$2
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4767. $as_echo_n "checking for $ac_word... " >&6; }
  4768. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4769. $as_echo_n "(cached) " >&6
  4770. else
  4771. if test -n "$ac_ct_RANLIB"; then
  4772. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4773. else
  4774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4775. for as_dir in $PATH
  4776. do
  4777. IFS=$as_save_IFS
  4778. test -z "$as_dir" && as_dir=.
  4779. for ac_exec_ext in '' $ac_executable_extensions; do
  4780. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4781. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4782. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4783. break 2
  4784. fi
  4785. done
  4786. done
  4787. IFS=$as_save_IFS
  4788. fi
  4789. fi
  4790. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4791. if test -n "$ac_ct_RANLIB"; then
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4793. $as_echo "$ac_ct_RANLIB" >&6; }
  4794. else
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4796. $as_echo "no" >&6; }
  4797. fi
  4798. if test "x$ac_ct_RANLIB" = x; then
  4799. RANLIB=":"
  4800. else
  4801. case $cross_compiling:$ac_tool_warned in
  4802. yes:)
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4804. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4805. ac_tool_warned=yes ;;
  4806. esac
  4807. RANLIB=$ac_ct_RANLIB
  4808. fi
  4809. else
  4810. RANLIB="$ac_cv_prog_RANLIB"
  4811. fi
  4812. test -z "$RANLIB" && RANLIB=:
  4813. # Determine commands to create old-style static archives.
  4814. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4815. old_postinstall_cmds='chmod 644 $oldlib'
  4816. old_postuninstall_cmds=
  4817. if test -n "$RANLIB"; then
  4818. case $host_os in
  4819. openbsd*)
  4820. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4821. ;;
  4822. *)
  4823. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4824. ;;
  4825. esac
  4826. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4827. fi
  4828. case $host_os in
  4829. darwin*)
  4830. lock_old_archive_extraction=yes ;;
  4831. *)
  4832. lock_old_archive_extraction=no ;;
  4833. esac
  4834. for ac_prog in gawk mawk nawk awk
  4835. do
  4836. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4837. set dummy $ac_prog; ac_word=$2
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4839. $as_echo_n "checking for $ac_word... " >&6; }
  4840. if ${ac_cv_prog_AWK+:} false; then :
  4841. $as_echo_n "(cached) " >&6
  4842. else
  4843. if test -n "$AWK"; then
  4844. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4845. else
  4846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4847. for as_dir in $PATH
  4848. do
  4849. IFS=$as_save_IFS
  4850. test -z "$as_dir" && as_dir=.
  4851. for ac_exec_ext in '' $ac_executable_extensions; do
  4852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4853. ac_cv_prog_AWK="$ac_prog"
  4854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4855. break 2
  4856. fi
  4857. done
  4858. done
  4859. IFS=$as_save_IFS
  4860. fi
  4861. fi
  4862. AWK=$ac_cv_prog_AWK
  4863. if test -n "$AWK"; then
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4865. $as_echo "$AWK" >&6; }
  4866. else
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4868. $as_echo "no" >&6; }
  4869. fi
  4870. test -n "$AWK" && break
  4871. done
  4872. # If no C compiler was specified, use CC.
  4873. LTCC=${LTCC-"$CC"}
  4874. # If no C compiler flags were specified, use CFLAGS.
  4875. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4876. # Allow CC to be a program name with arguments.
  4877. compiler=$CC
  4878. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4880. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4881. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4882. $as_echo_n "(cached) " >&6
  4883. else
  4884. # These are sane defaults that work on at least a few old systems.
  4885. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4886. # Character class describing NM global symbol codes.
  4887. symcode='[BCDEGRST]'
  4888. # Regexp to match symbols that can be accessed directly from C.
  4889. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4890. # Define system-specific variables.
  4891. case $host_os in
  4892. aix*)
  4893. symcode='[BCDT]'
  4894. ;;
  4895. cygwin* | mingw* | pw32* | cegcc*)
  4896. symcode='[ABCDGISTW]'
  4897. ;;
  4898. hpux*)
  4899. if test "$host_cpu" = ia64; then
  4900. symcode='[ABCDEGRST]'
  4901. fi
  4902. ;;
  4903. irix* | nonstopux*)
  4904. symcode='[BCDEGRST]'
  4905. ;;
  4906. osf*)
  4907. symcode='[BCDEGQRST]'
  4908. ;;
  4909. solaris*)
  4910. symcode='[BDRT]'
  4911. ;;
  4912. sco3.2v5*)
  4913. symcode='[DT]'
  4914. ;;
  4915. sysv4.2uw2*)
  4916. symcode='[DT]'
  4917. ;;
  4918. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4919. symcode='[ABDT]'
  4920. ;;
  4921. sysv4)
  4922. symcode='[DFNSTU]'
  4923. ;;
  4924. esac
  4925. # If we're using GNU nm, then use its standard symbol codes.
  4926. case `$NM -V 2>&1` in
  4927. *GNU* | *'with BFD'*)
  4928. symcode='[ABCDGIRSTW]' ;;
  4929. esac
  4930. # Transform an extracted symbol line into a proper C declaration.
  4931. # Some systems (esp. on ia64) link data and code symbols differently,
  4932. # so use this general approach.
  4933. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4934. # Transform an extracted symbol line into symbol name and symbol address
  4935. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4936. 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'"
  4937. # Handle CRLF in mingw tool chain
  4938. opt_cr=
  4939. case $build_os in
  4940. mingw*)
  4941. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4942. ;;
  4943. esac
  4944. # Try without a prefix underscore, then with it.
  4945. for ac_symprfx in "" "_"; do
  4946. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4947. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4948. # Write the raw and C identifiers.
  4949. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4950. # Fake it for dumpbin and say T for any non-static function
  4951. # and D for any global variable.
  4952. # Also find C++ and __fastcall symbols from MSVC++,
  4953. # which start with @ or ?.
  4954. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4955. " {last_section=section; section=\$ 3};"\
  4956. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4957. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4958. " \$ 0!~/External *\|/{next};"\
  4959. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4960. " {if(hide[section]) next};"\
  4961. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4962. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4963. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4964. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4965. " ' prfx=^$ac_symprfx"
  4966. else
  4967. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4968. fi
  4969. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4970. # Check to see that the pipe works correctly.
  4971. pipe_works=no
  4972. rm -f conftest*
  4973. cat > conftest.$ac_ext <<_LT_EOF
  4974. #ifdef __cplusplus
  4975. extern "C" {
  4976. #endif
  4977. char nm_test_var;
  4978. void nm_test_func(void);
  4979. void nm_test_func(void){}
  4980. #ifdef __cplusplus
  4981. }
  4982. #endif
  4983. int main(){nm_test_var='a';nm_test_func();return(0);}
  4984. _LT_EOF
  4985. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4986. (eval $ac_compile) 2>&5
  4987. ac_status=$?
  4988. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4989. test $ac_status = 0; }; then
  4990. # Now try to grab the symbols.
  4991. nlist=conftest.nm
  4992. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  4993. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  4994. ac_status=$?
  4995. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4996. test $ac_status = 0; } && test -s "$nlist"; then
  4997. # Try sorting and uniquifying the output.
  4998. if sort "$nlist" | uniq > "$nlist"T; then
  4999. mv -f "$nlist"T "$nlist"
  5000. else
  5001. rm -f "$nlist"T
  5002. fi
  5003. # Make sure that we snagged all the symbols we need.
  5004. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5005. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5006. cat <<_LT_EOF > conftest.$ac_ext
  5007. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5008. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5009. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5010. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5011. # define LT_DLSYM_CONST
  5012. #elif defined(__osf__)
  5013. /* This system does not cope well with relocations in const data. */
  5014. # define LT_DLSYM_CONST
  5015. #else
  5016. # define LT_DLSYM_CONST const
  5017. #endif
  5018. #ifdef __cplusplus
  5019. extern "C" {
  5020. #endif
  5021. _LT_EOF
  5022. # Now generate the symbol file.
  5023. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5024. cat <<_LT_EOF >> conftest.$ac_ext
  5025. /* The mapping between symbol names and symbols. */
  5026. LT_DLSYM_CONST struct {
  5027. const char *name;
  5028. void *address;
  5029. }
  5030. lt__PROGRAM__LTX_preloaded_symbols[] =
  5031. {
  5032. { "@PROGRAM@", (void *) 0 },
  5033. _LT_EOF
  5034. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5035. cat <<\_LT_EOF >> conftest.$ac_ext
  5036. {0, (void *) 0}
  5037. };
  5038. /* This works around a problem in FreeBSD linker */
  5039. #ifdef FREEBSD_WORKAROUND
  5040. static const void *lt_preloaded_setup() {
  5041. return lt__PROGRAM__LTX_preloaded_symbols;
  5042. }
  5043. #endif
  5044. #ifdef __cplusplus
  5045. }
  5046. #endif
  5047. _LT_EOF
  5048. # Now try linking the two files.
  5049. mv conftest.$ac_objext conftstm.$ac_objext
  5050. lt_globsym_save_LIBS=$LIBS
  5051. lt_globsym_save_CFLAGS=$CFLAGS
  5052. LIBS="conftstm.$ac_objext"
  5053. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5054. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5055. (eval $ac_link) 2>&5
  5056. ac_status=$?
  5057. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5058. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5059. pipe_works=yes
  5060. fi
  5061. LIBS=$lt_globsym_save_LIBS
  5062. CFLAGS=$lt_globsym_save_CFLAGS
  5063. else
  5064. echo "cannot find nm_test_func in $nlist" >&5
  5065. fi
  5066. else
  5067. echo "cannot find nm_test_var in $nlist" >&5
  5068. fi
  5069. else
  5070. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5071. fi
  5072. else
  5073. echo "$progname: failed program was:" >&5
  5074. cat conftest.$ac_ext >&5
  5075. fi
  5076. rm -rf conftest* conftst*
  5077. # Do not use the global_symbol_pipe unless it works.
  5078. if test "$pipe_works" = yes; then
  5079. break
  5080. else
  5081. lt_cv_sys_global_symbol_pipe=
  5082. fi
  5083. done
  5084. fi
  5085. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5086. lt_cv_sys_global_symbol_to_cdecl=
  5087. fi
  5088. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5090. $as_echo "failed" >&6; }
  5091. else
  5092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5093. $as_echo "ok" >&6; }
  5094. fi
  5095. # Response file support.
  5096. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5097. nm_file_list_spec='@'
  5098. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5099. nm_file_list_spec='@'
  5100. fi
  5101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5102. $as_echo_n "checking for sysroot... " >&6; }
  5103. # Check whether --with-sysroot was given.
  5104. if test "${with_sysroot+set}" = set; then :
  5105. withval=$with_sysroot;
  5106. else
  5107. with_sysroot=no
  5108. fi
  5109. lt_sysroot=
  5110. case ${with_sysroot} in #(
  5111. yes)
  5112. if test "$GCC" = yes; then
  5113. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5114. fi
  5115. ;; #(
  5116. /*)
  5117. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5118. ;; #(
  5119. no|'')
  5120. ;; #(
  5121. *)
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5123. $as_echo "${with_sysroot}" >&6; }
  5124. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5125. ;;
  5126. esac
  5127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5128. $as_echo "${lt_sysroot:-no}" >&6; }
  5129. # Check whether --enable-libtool-lock was given.
  5130. if test "${enable_libtool_lock+set}" = set; then :
  5131. enableval=$enable_libtool_lock;
  5132. fi
  5133. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5134. # Some flags need to be propagated to the compiler or linker for good
  5135. # libtool support.
  5136. case $host in
  5137. ia64-*-hpux*)
  5138. # Find out which ABI we are using.
  5139. echo 'int i;' > conftest.$ac_ext
  5140. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5141. (eval $ac_compile) 2>&5
  5142. ac_status=$?
  5143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5144. test $ac_status = 0; }; then
  5145. case `/usr/bin/file conftest.$ac_objext` in
  5146. *ELF-32*)
  5147. HPUX_IA64_MODE="32"
  5148. ;;
  5149. *ELF-64*)
  5150. HPUX_IA64_MODE="64"
  5151. ;;
  5152. esac
  5153. fi
  5154. rm -rf conftest*
  5155. ;;
  5156. *-*-irix6*)
  5157. # Find out which ABI we are using.
  5158. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5159. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5160. (eval $ac_compile) 2>&5
  5161. ac_status=$?
  5162. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5163. test $ac_status = 0; }; then
  5164. if test "$lt_cv_prog_gnu_ld" = yes; then
  5165. case `/usr/bin/file conftest.$ac_objext` in
  5166. *32-bit*)
  5167. LD="${LD-ld} -melf32bsmip"
  5168. ;;
  5169. *N32*)
  5170. LD="${LD-ld} -melf32bmipn32"
  5171. ;;
  5172. *64-bit*)
  5173. LD="${LD-ld} -melf64bmip"
  5174. ;;
  5175. esac
  5176. else
  5177. case `/usr/bin/file conftest.$ac_objext` in
  5178. *32-bit*)
  5179. LD="${LD-ld} -32"
  5180. ;;
  5181. *N32*)
  5182. LD="${LD-ld} -n32"
  5183. ;;
  5184. *64-bit*)
  5185. LD="${LD-ld} -64"
  5186. ;;
  5187. esac
  5188. fi
  5189. fi
  5190. rm -rf conftest*
  5191. ;;
  5192. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5193. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5194. # Find out which ABI we are using.
  5195. echo 'int i;' > conftest.$ac_ext
  5196. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5197. (eval $ac_compile) 2>&5
  5198. ac_status=$?
  5199. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5200. test $ac_status = 0; }; then
  5201. case `/usr/bin/file conftest.o` in
  5202. *32-bit*)
  5203. case $host in
  5204. x86_64-*kfreebsd*-gnu)
  5205. LD="${LD-ld} -m elf_i386_fbsd"
  5206. ;;
  5207. x86_64-*linux*)
  5208. LD="${LD-ld} -m elf_i386"
  5209. ;;
  5210. ppc64-*linux*|powerpc64-*linux*)
  5211. LD="${LD-ld} -m elf32ppclinux"
  5212. ;;
  5213. s390x-*linux*)
  5214. LD="${LD-ld} -m elf_s390"
  5215. ;;
  5216. sparc64-*linux*)
  5217. LD="${LD-ld} -m elf32_sparc"
  5218. ;;
  5219. esac
  5220. ;;
  5221. *64-bit*)
  5222. case $host in
  5223. x86_64-*kfreebsd*-gnu)
  5224. LD="${LD-ld} -m elf_x86_64_fbsd"
  5225. ;;
  5226. x86_64-*linux*)
  5227. LD="${LD-ld} -m elf_x86_64"
  5228. ;;
  5229. ppc*-*linux*|powerpc*-*linux*)
  5230. LD="${LD-ld} -m elf64ppc"
  5231. ;;
  5232. s390*-*linux*|s390*-*tpf*)
  5233. LD="${LD-ld} -m elf64_s390"
  5234. ;;
  5235. sparc*-*linux*)
  5236. LD="${LD-ld} -m elf64_sparc"
  5237. ;;
  5238. esac
  5239. ;;
  5240. esac
  5241. fi
  5242. rm -rf conftest*
  5243. ;;
  5244. *-*-sco3.2v5*)
  5245. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5246. SAVE_CFLAGS="$CFLAGS"
  5247. CFLAGS="$CFLAGS -belf"
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5249. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5250. if ${lt_cv_cc_needs_belf+:} false; then :
  5251. $as_echo_n "(cached) " >&6
  5252. else
  5253. ac_ext=c
  5254. ac_cpp='$CPP $CPPFLAGS'
  5255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5259. /* end confdefs.h. */
  5260. int
  5261. main ()
  5262. {
  5263. ;
  5264. return 0;
  5265. }
  5266. _ACEOF
  5267. if ac_fn_c_try_link "$LINENO"; then :
  5268. lt_cv_cc_needs_belf=yes
  5269. else
  5270. lt_cv_cc_needs_belf=no
  5271. fi
  5272. rm -f core conftest.err conftest.$ac_objext \
  5273. conftest$ac_exeext conftest.$ac_ext
  5274. ac_ext=c
  5275. ac_cpp='$CPP $CPPFLAGS'
  5276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5279. fi
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5281. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5282. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5283. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5284. CFLAGS="$SAVE_CFLAGS"
  5285. fi
  5286. ;;
  5287. *-*solaris*)
  5288. # Find out which ABI we are using.
  5289. echo 'int i;' > conftest.$ac_ext
  5290. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5291. (eval $ac_compile) 2>&5
  5292. ac_status=$?
  5293. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5294. test $ac_status = 0; }; then
  5295. case `/usr/bin/file conftest.o` in
  5296. *64-bit*)
  5297. case $lt_cv_prog_gnu_ld in
  5298. yes*)
  5299. case $host in
  5300. i?86-*-solaris*)
  5301. LD="${LD-ld} -m elf_x86_64"
  5302. ;;
  5303. sparc*-*-solaris*)
  5304. LD="${LD-ld} -m elf64_sparc"
  5305. ;;
  5306. esac
  5307. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5308. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5309. LD="${LD-ld}_sol2"
  5310. fi
  5311. ;;
  5312. *)
  5313. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5314. LD="${LD-ld} -64"
  5315. fi
  5316. ;;
  5317. esac
  5318. ;;
  5319. esac
  5320. fi
  5321. rm -rf conftest*
  5322. ;;
  5323. esac
  5324. need_locks="$enable_libtool_lock"
  5325. if test -n "$ac_tool_prefix"; then
  5326. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5327. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5329. $as_echo_n "checking for $ac_word... " >&6; }
  5330. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5331. $as_echo_n "(cached) " >&6
  5332. else
  5333. if test -n "$MANIFEST_TOOL"; then
  5334. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5335. else
  5336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5337. for as_dir in $PATH
  5338. do
  5339. IFS=$as_save_IFS
  5340. test -z "$as_dir" && as_dir=.
  5341. for ac_exec_ext in '' $ac_executable_extensions; do
  5342. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5343. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5345. break 2
  5346. fi
  5347. done
  5348. done
  5349. IFS=$as_save_IFS
  5350. fi
  5351. fi
  5352. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5353. if test -n "$MANIFEST_TOOL"; then
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5355. $as_echo "$MANIFEST_TOOL" >&6; }
  5356. else
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5358. $as_echo "no" >&6; }
  5359. fi
  5360. fi
  5361. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5362. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5363. # Extract the first word of "mt", so it can be a program name with args.
  5364. set dummy mt; ac_word=$2
  5365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5366. $as_echo_n "checking for $ac_word... " >&6; }
  5367. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5368. $as_echo_n "(cached) " >&6
  5369. else
  5370. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5371. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5372. else
  5373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5374. for as_dir in $PATH
  5375. do
  5376. IFS=$as_save_IFS
  5377. test -z "$as_dir" && as_dir=.
  5378. for ac_exec_ext in '' $ac_executable_extensions; do
  5379. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5380. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5382. break 2
  5383. fi
  5384. done
  5385. done
  5386. IFS=$as_save_IFS
  5387. fi
  5388. fi
  5389. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5390. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5392. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5393. else
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5395. $as_echo "no" >&6; }
  5396. fi
  5397. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5398. MANIFEST_TOOL=":"
  5399. else
  5400. case $cross_compiling:$ac_tool_warned in
  5401. yes:)
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5403. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5404. ac_tool_warned=yes ;;
  5405. esac
  5406. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5407. fi
  5408. else
  5409. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5410. fi
  5411. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5413. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5414. if ${lt_cv_path_mainfest_tool+:} false; then :
  5415. $as_echo_n "(cached) " >&6
  5416. else
  5417. lt_cv_path_mainfest_tool=no
  5418. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5419. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5420. cat conftest.err >&5
  5421. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5422. lt_cv_path_mainfest_tool=yes
  5423. fi
  5424. rm -f conftest*
  5425. fi
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5427. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5428. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5429. MANIFEST_TOOL=:
  5430. fi
  5431. case $host_os in
  5432. rhapsody* | darwin*)
  5433. if test -n "$ac_tool_prefix"; then
  5434. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5435. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5437. $as_echo_n "checking for $ac_word... " >&6; }
  5438. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5439. $as_echo_n "(cached) " >&6
  5440. else
  5441. if test -n "$DSYMUTIL"; then
  5442. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5443. else
  5444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5445. for as_dir in $PATH
  5446. do
  5447. IFS=$as_save_IFS
  5448. test -z "$as_dir" && as_dir=.
  5449. for ac_exec_ext in '' $ac_executable_extensions; do
  5450. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5451. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5452. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5453. break 2
  5454. fi
  5455. done
  5456. done
  5457. IFS=$as_save_IFS
  5458. fi
  5459. fi
  5460. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5461. if test -n "$DSYMUTIL"; then
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5463. $as_echo "$DSYMUTIL" >&6; }
  5464. else
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5466. $as_echo "no" >&6; }
  5467. fi
  5468. fi
  5469. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5470. ac_ct_DSYMUTIL=$DSYMUTIL
  5471. # Extract the first word of "dsymutil", so it can be a program name with args.
  5472. set dummy dsymutil; ac_word=$2
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5474. $as_echo_n "checking for $ac_word... " >&6; }
  5475. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5476. $as_echo_n "(cached) " >&6
  5477. else
  5478. if test -n "$ac_ct_DSYMUTIL"; then
  5479. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5480. else
  5481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5482. for as_dir in $PATH
  5483. do
  5484. IFS=$as_save_IFS
  5485. test -z "$as_dir" && as_dir=.
  5486. for ac_exec_ext in '' $ac_executable_extensions; do
  5487. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5488. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5490. break 2
  5491. fi
  5492. done
  5493. done
  5494. IFS=$as_save_IFS
  5495. fi
  5496. fi
  5497. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5498. if test -n "$ac_ct_DSYMUTIL"; then
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5500. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5501. else
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5503. $as_echo "no" >&6; }
  5504. fi
  5505. if test "x$ac_ct_DSYMUTIL" = x; then
  5506. DSYMUTIL=":"
  5507. else
  5508. case $cross_compiling:$ac_tool_warned in
  5509. yes:)
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5511. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5512. ac_tool_warned=yes ;;
  5513. esac
  5514. DSYMUTIL=$ac_ct_DSYMUTIL
  5515. fi
  5516. else
  5517. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5518. fi
  5519. if test -n "$ac_tool_prefix"; then
  5520. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5521. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5523. $as_echo_n "checking for $ac_word... " >&6; }
  5524. if ${ac_cv_prog_NMEDIT+:} false; then :
  5525. $as_echo_n "(cached) " >&6
  5526. else
  5527. if test -n "$NMEDIT"; then
  5528. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5529. else
  5530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5531. for as_dir in $PATH
  5532. do
  5533. IFS=$as_save_IFS
  5534. test -z "$as_dir" && as_dir=.
  5535. for ac_exec_ext in '' $ac_executable_extensions; do
  5536. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5537. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5538. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5539. break 2
  5540. fi
  5541. done
  5542. done
  5543. IFS=$as_save_IFS
  5544. fi
  5545. fi
  5546. NMEDIT=$ac_cv_prog_NMEDIT
  5547. if test -n "$NMEDIT"; then
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5549. $as_echo "$NMEDIT" >&6; }
  5550. else
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5552. $as_echo "no" >&6; }
  5553. fi
  5554. fi
  5555. if test -z "$ac_cv_prog_NMEDIT"; then
  5556. ac_ct_NMEDIT=$NMEDIT
  5557. # Extract the first word of "nmedit", so it can be a program name with args.
  5558. set dummy nmedit; ac_word=$2
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5560. $as_echo_n "checking for $ac_word... " >&6; }
  5561. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5562. $as_echo_n "(cached) " >&6
  5563. else
  5564. if test -n "$ac_ct_NMEDIT"; then
  5565. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5566. else
  5567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5568. for as_dir in $PATH
  5569. do
  5570. IFS=$as_save_IFS
  5571. test -z "$as_dir" && as_dir=.
  5572. for ac_exec_ext in '' $ac_executable_extensions; do
  5573. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5574. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5576. break 2
  5577. fi
  5578. done
  5579. done
  5580. IFS=$as_save_IFS
  5581. fi
  5582. fi
  5583. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5584. if test -n "$ac_ct_NMEDIT"; then
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5586. $as_echo "$ac_ct_NMEDIT" >&6; }
  5587. else
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5589. $as_echo "no" >&6; }
  5590. fi
  5591. if test "x$ac_ct_NMEDIT" = x; then
  5592. NMEDIT=":"
  5593. else
  5594. case $cross_compiling:$ac_tool_warned in
  5595. yes:)
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5597. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5598. ac_tool_warned=yes ;;
  5599. esac
  5600. NMEDIT=$ac_ct_NMEDIT
  5601. fi
  5602. else
  5603. NMEDIT="$ac_cv_prog_NMEDIT"
  5604. fi
  5605. if test -n "$ac_tool_prefix"; then
  5606. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5607. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5609. $as_echo_n "checking for $ac_word... " >&6; }
  5610. if ${ac_cv_prog_LIPO+:} false; then :
  5611. $as_echo_n "(cached) " >&6
  5612. else
  5613. if test -n "$LIPO"; then
  5614. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5615. else
  5616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5617. for as_dir in $PATH
  5618. do
  5619. IFS=$as_save_IFS
  5620. test -z "$as_dir" && as_dir=.
  5621. for ac_exec_ext in '' $ac_executable_extensions; do
  5622. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5623. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5624. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5625. break 2
  5626. fi
  5627. done
  5628. done
  5629. IFS=$as_save_IFS
  5630. fi
  5631. fi
  5632. LIPO=$ac_cv_prog_LIPO
  5633. if test -n "$LIPO"; then
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5635. $as_echo "$LIPO" >&6; }
  5636. else
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5638. $as_echo "no" >&6; }
  5639. fi
  5640. fi
  5641. if test -z "$ac_cv_prog_LIPO"; then
  5642. ac_ct_LIPO=$LIPO
  5643. # Extract the first word of "lipo", so it can be a program name with args.
  5644. set dummy lipo; ac_word=$2
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5646. $as_echo_n "checking for $ac_word... " >&6; }
  5647. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5648. $as_echo_n "(cached) " >&6
  5649. else
  5650. if test -n "$ac_ct_LIPO"; then
  5651. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5652. else
  5653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5654. for as_dir in $PATH
  5655. do
  5656. IFS=$as_save_IFS
  5657. test -z "$as_dir" && as_dir=.
  5658. for ac_exec_ext in '' $ac_executable_extensions; do
  5659. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5660. ac_cv_prog_ac_ct_LIPO="lipo"
  5661. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5662. break 2
  5663. fi
  5664. done
  5665. done
  5666. IFS=$as_save_IFS
  5667. fi
  5668. fi
  5669. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5670. if test -n "$ac_ct_LIPO"; then
  5671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5672. $as_echo "$ac_ct_LIPO" >&6; }
  5673. else
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5675. $as_echo "no" >&6; }
  5676. fi
  5677. if test "x$ac_ct_LIPO" = x; then
  5678. LIPO=":"
  5679. else
  5680. case $cross_compiling:$ac_tool_warned in
  5681. yes:)
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5683. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5684. ac_tool_warned=yes ;;
  5685. esac
  5686. LIPO=$ac_ct_LIPO
  5687. fi
  5688. else
  5689. LIPO="$ac_cv_prog_LIPO"
  5690. fi
  5691. if test -n "$ac_tool_prefix"; then
  5692. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5693. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5695. $as_echo_n "checking for $ac_word... " >&6; }
  5696. if ${ac_cv_prog_OTOOL+:} false; then :
  5697. $as_echo_n "(cached) " >&6
  5698. else
  5699. if test -n "$OTOOL"; then
  5700. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5701. else
  5702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5703. for as_dir in $PATH
  5704. do
  5705. IFS=$as_save_IFS
  5706. test -z "$as_dir" && as_dir=.
  5707. for ac_exec_ext in '' $ac_executable_extensions; do
  5708. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5709. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5711. break 2
  5712. fi
  5713. done
  5714. done
  5715. IFS=$as_save_IFS
  5716. fi
  5717. fi
  5718. OTOOL=$ac_cv_prog_OTOOL
  5719. if test -n "$OTOOL"; then
  5720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5721. $as_echo "$OTOOL" >&6; }
  5722. else
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5724. $as_echo "no" >&6; }
  5725. fi
  5726. fi
  5727. if test -z "$ac_cv_prog_OTOOL"; then
  5728. ac_ct_OTOOL=$OTOOL
  5729. # Extract the first word of "otool", so it can be a program name with args.
  5730. set dummy otool; ac_word=$2
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5732. $as_echo_n "checking for $ac_word... " >&6; }
  5733. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5734. $as_echo_n "(cached) " >&6
  5735. else
  5736. if test -n "$ac_ct_OTOOL"; then
  5737. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5738. else
  5739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5740. for as_dir in $PATH
  5741. do
  5742. IFS=$as_save_IFS
  5743. test -z "$as_dir" && as_dir=.
  5744. for ac_exec_ext in '' $ac_executable_extensions; do
  5745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5746. ac_cv_prog_ac_ct_OTOOL="otool"
  5747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5748. break 2
  5749. fi
  5750. done
  5751. done
  5752. IFS=$as_save_IFS
  5753. fi
  5754. fi
  5755. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5756. if test -n "$ac_ct_OTOOL"; then
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5758. $as_echo "$ac_ct_OTOOL" >&6; }
  5759. else
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5761. $as_echo "no" >&6; }
  5762. fi
  5763. if test "x$ac_ct_OTOOL" = x; then
  5764. OTOOL=":"
  5765. else
  5766. case $cross_compiling:$ac_tool_warned in
  5767. yes:)
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5769. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5770. ac_tool_warned=yes ;;
  5771. esac
  5772. OTOOL=$ac_ct_OTOOL
  5773. fi
  5774. else
  5775. OTOOL="$ac_cv_prog_OTOOL"
  5776. fi
  5777. if test -n "$ac_tool_prefix"; then
  5778. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5779. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5781. $as_echo_n "checking for $ac_word... " >&6; }
  5782. if ${ac_cv_prog_OTOOL64+:} false; then :
  5783. $as_echo_n "(cached) " >&6
  5784. else
  5785. if test -n "$OTOOL64"; then
  5786. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5787. else
  5788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5789. for as_dir in $PATH
  5790. do
  5791. IFS=$as_save_IFS
  5792. test -z "$as_dir" && as_dir=.
  5793. for ac_exec_ext in '' $ac_executable_extensions; do
  5794. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5795. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5797. break 2
  5798. fi
  5799. done
  5800. done
  5801. IFS=$as_save_IFS
  5802. fi
  5803. fi
  5804. OTOOL64=$ac_cv_prog_OTOOL64
  5805. if test -n "$OTOOL64"; then
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5807. $as_echo "$OTOOL64" >&6; }
  5808. else
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5810. $as_echo "no" >&6; }
  5811. fi
  5812. fi
  5813. if test -z "$ac_cv_prog_OTOOL64"; then
  5814. ac_ct_OTOOL64=$OTOOL64
  5815. # Extract the first word of "otool64", so it can be a program name with args.
  5816. set dummy otool64; ac_word=$2
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5818. $as_echo_n "checking for $ac_word... " >&6; }
  5819. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5820. $as_echo_n "(cached) " >&6
  5821. else
  5822. if test -n "$ac_ct_OTOOL64"; then
  5823. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5824. else
  5825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5826. for as_dir in $PATH
  5827. do
  5828. IFS=$as_save_IFS
  5829. test -z "$as_dir" && as_dir=.
  5830. for ac_exec_ext in '' $ac_executable_extensions; do
  5831. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5832. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5833. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5834. break 2
  5835. fi
  5836. done
  5837. done
  5838. IFS=$as_save_IFS
  5839. fi
  5840. fi
  5841. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5842. if test -n "$ac_ct_OTOOL64"; then
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5844. $as_echo "$ac_ct_OTOOL64" >&6; }
  5845. else
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5847. $as_echo "no" >&6; }
  5848. fi
  5849. if test "x$ac_ct_OTOOL64" = x; then
  5850. OTOOL64=":"
  5851. else
  5852. case $cross_compiling:$ac_tool_warned in
  5853. yes:)
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5855. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5856. ac_tool_warned=yes ;;
  5857. esac
  5858. OTOOL64=$ac_ct_OTOOL64
  5859. fi
  5860. else
  5861. OTOOL64="$ac_cv_prog_OTOOL64"
  5862. fi
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5864. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5865. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5866. $as_echo_n "(cached) " >&6
  5867. else
  5868. lt_cv_apple_cc_single_mod=no
  5869. if test -z "${LT_MULTI_MODULE}"; then
  5870. # By default we will add the -single_module flag. You can override
  5871. # by either setting the environment variable LT_MULTI_MODULE
  5872. # non-empty at configure time, or by adding -multi_module to the
  5873. # link flags.
  5874. rm -rf libconftest.dylib*
  5875. echo "int foo(void){return 1;}" > conftest.c
  5876. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5877. -dynamiclib -Wl,-single_module conftest.c" >&5
  5878. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5879. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5880. _lt_result=$?
  5881. # If there is a non-empty error log, and "single_module"
  5882. # appears in it, assume the flag caused a linker warning
  5883. if test -s conftest.err && $GREP single_module conftest.err; then
  5884. cat conftest.err >&5
  5885. # Otherwise, if the output was created with a 0 exit code from
  5886. # the compiler, it worked.
  5887. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5888. lt_cv_apple_cc_single_mod=yes
  5889. else
  5890. cat conftest.err >&5
  5891. fi
  5892. rm -rf libconftest.dylib*
  5893. rm -f conftest.*
  5894. fi
  5895. fi
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5897. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5899. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5900. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5901. $as_echo_n "(cached) " >&6
  5902. else
  5903. lt_cv_ld_exported_symbols_list=no
  5904. save_LDFLAGS=$LDFLAGS
  5905. echo "_main" > conftest.sym
  5906. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5908. /* end confdefs.h. */
  5909. int
  5910. main ()
  5911. {
  5912. ;
  5913. return 0;
  5914. }
  5915. _ACEOF
  5916. if ac_fn_c_try_link "$LINENO"; then :
  5917. lt_cv_ld_exported_symbols_list=yes
  5918. else
  5919. lt_cv_ld_exported_symbols_list=no
  5920. fi
  5921. rm -f core conftest.err conftest.$ac_objext \
  5922. conftest$ac_exeext conftest.$ac_ext
  5923. LDFLAGS="$save_LDFLAGS"
  5924. fi
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5926. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5928. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5929. if ${lt_cv_ld_force_load+:} false; then :
  5930. $as_echo_n "(cached) " >&6
  5931. else
  5932. lt_cv_ld_force_load=no
  5933. cat > conftest.c << _LT_EOF
  5934. int forced_loaded() { return 2;}
  5935. _LT_EOF
  5936. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5937. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5938. echo "$AR cru libconftest.a conftest.o" >&5
  5939. $AR cru libconftest.a conftest.o 2>&5
  5940. echo "$RANLIB libconftest.a" >&5
  5941. $RANLIB libconftest.a 2>&5
  5942. cat > conftest.c << _LT_EOF
  5943. int main() { return 0;}
  5944. _LT_EOF
  5945. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5946. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5947. _lt_result=$?
  5948. if test -s conftest.err && $GREP force_load conftest.err; then
  5949. cat conftest.err >&5
  5950. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5951. lt_cv_ld_force_load=yes
  5952. else
  5953. cat conftest.err >&5
  5954. fi
  5955. rm -f conftest.err libconftest.a conftest conftest.c
  5956. rm -rf conftest.dSYM
  5957. fi
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5959. $as_echo "$lt_cv_ld_force_load" >&6; }
  5960. case $host_os in
  5961. rhapsody* | darwin1.[012])
  5962. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5963. darwin1.*)
  5964. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5965. darwin*) # darwin 5.x on
  5966. # if running on 10.5 or later, the deployment target defaults
  5967. # to the OS version, if on x86, and 10.4, the deployment
  5968. # target defaults to 10.4. Don't you love it?
  5969. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5970. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5971. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5972. 10.[012]*)
  5973. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5974. 10.*)
  5975. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5976. esac
  5977. ;;
  5978. esac
  5979. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5980. _lt_dar_single_mod='$single_module'
  5981. fi
  5982. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5983. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5984. else
  5985. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5986. fi
  5987. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  5988. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5989. else
  5990. _lt_dsymutil=
  5991. fi
  5992. ;;
  5993. esac
  5994. ac_ext=c
  5995. ac_cpp='$CPP $CPPFLAGS'
  5996. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5997. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5998. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6000. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6001. # On Suns, sometimes $CPP names a directory.
  6002. if test -n "$CPP" && test -d "$CPP"; then
  6003. CPP=
  6004. fi
  6005. if test -z "$CPP"; then
  6006. if ${ac_cv_prog_CPP+:} false; then :
  6007. $as_echo_n "(cached) " >&6
  6008. else
  6009. # Double quotes because CPP needs to be expanded
  6010. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6011. do
  6012. ac_preproc_ok=false
  6013. for ac_c_preproc_warn_flag in '' yes
  6014. do
  6015. # Use a header file that comes with gcc, so configuring glibc
  6016. # with a fresh cross-compiler works.
  6017. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6018. # <limits.h> exists even on freestanding compilers.
  6019. # On the NeXT, cc -E runs the code through the compiler's parser,
  6020. # not just through cpp. "Syntax error" is here to catch this case.
  6021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6022. /* end confdefs.h. */
  6023. #ifdef __STDC__
  6024. # include <limits.h>
  6025. #else
  6026. # include <assert.h>
  6027. #endif
  6028. Syntax error
  6029. _ACEOF
  6030. if ac_fn_c_try_cpp "$LINENO"; then :
  6031. else
  6032. # Broken: fails on valid input.
  6033. continue
  6034. fi
  6035. rm -f conftest.err conftest.i conftest.$ac_ext
  6036. # OK, works on sane cases. Now check whether nonexistent headers
  6037. # can be detected and how.
  6038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6039. /* end confdefs.h. */
  6040. #include <ac_nonexistent.h>
  6041. _ACEOF
  6042. if ac_fn_c_try_cpp "$LINENO"; then :
  6043. # Broken: success on invalid input.
  6044. continue
  6045. else
  6046. # Passes both tests.
  6047. ac_preproc_ok=:
  6048. break
  6049. fi
  6050. rm -f conftest.err conftest.i conftest.$ac_ext
  6051. done
  6052. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6053. rm -f conftest.i conftest.err conftest.$ac_ext
  6054. if $ac_preproc_ok; then :
  6055. break
  6056. fi
  6057. done
  6058. ac_cv_prog_CPP=$CPP
  6059. fi
  6060. CPP=$ac_cv_prog_CPP
  6061. else
  6062. ac_cv_prog_CPP=$CPP
  6063. fi
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6065. $as_echo "$CPP" >&6; }
  6066. ac_preproc_ok=false
  6067. for ac_c_preproc_warn_flag in '' yes
  6068. do
  6069. # Use a header file that comes with gcc, so configuring glibc
  6070. # with a fresh cross-compiler works.
  6071. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6072. # <limits.h> exists even on freestanding compilers.
  6073. # On the NeXT, cc -E runs the code through the compiler's parser,
  6074. # not just through cpp. "Syntax error" is here to catch this case.
  6075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6076. /* end confdefs.h. */
  6077. #ifdef __STDC__
  6078. # include <limits.h>
  6079. #else
  6080. # include <assert.h>
  6081. #endif
  6082. Syntax error
  6083. _ACEOF
  6084. if ac_fn_c_try_cpp "$LINENO"; then :
  6085. else
  6086. # Broken: fails on valid input.
  6087. continue
  6088. fi
  6089. rm -f conftest.err conftest.i conftest.$ac_ext
  6090. # OK, works on sane cases. Now check whether nonexistent headers
  6091. # can be detected and how.
  6092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6093. /* end confdefs.h. */
  6094. #include <ac_nonexistent.h>
  6095. _ACEOF
  6096. if ac_fn_c_try_cpp "$LINENO"; then :
  6097. # Broken: success on invalid input.
  6098. continue
  6099. else
  6100. # Passes both tests.
  6101. ac_preproc_ok=:
  6102. break
  6103. fi
  6104. rm -f conftest.err conftest.i conftest.$ac_ext
  6105. done
  6106. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6107. rm -f conftest.i conftest.err conftest.$ac_ext
  6108. if $ac_preproc_ok; then :
  6109. else
  6110. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6111. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6112. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6113. See \`config.log' for more details" "$LINENO" 5; }
  6114. fi
  6115. ac_ext=c
  6116. ac_cpp='$CPP $CPPFLAGS'
  6117. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6118. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6119. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6121. $as_echo_n "checking for ANSI C header files... " >&6; }
  6122. if ${ac_cv_header_stdc+:} false; then :
  6123. $as_echo_n "(cached) " >&6
  6124. else
  6125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6126. /* end confdefs.h. */
  6127. #include <stdlib.h>
  6128. #include <stdarg.h>
  6129. #include <string.h>
  6130. #include <float.h>
  6131. int
  6132. main ()
  6133. {
  6134. ;
  6135. return 0;
  6136. }
  6137. _ACEOF
  6138. if ac_fn_c_try_compile "$LINENO"; then :
  6139. ac_cv_header_stdc=yes
  6140. else
  6141. ac_cv_header_stdc=no
  6142. fi
  6143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6144. if test $ac_cv_header_stdc = yes; then
  6145. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6147. /* end confdefs.h. */
  6148. #include <string.h>
  6149. _ACEOF
  6150. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6151. $EGREP "memchr" >/dev/null 2>&1; then :
  6152. else
  6153. ac_cv_header_stdc=no
  6154. fi
  6155. rm -f conftest*
  6156. fi
  6157. if test $ac_cv_header_stdc = yes; then
  6158. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6160. /* end confdefs.h. */
  6161. #include <stdlib.h>
  6162. _ACEOF
  6163. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6164. $EGREP "free" >/dev/null 2>&1; then :
  6165. else
  6166. ac_cv_header_stdc=no
  6167. fi
  6168. rm -f conftest*
  6169. fi
  6170. if test $ac_cv_header_stdc = yes; then
  6171. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6172. if test "$cross_compiling" = yes; then :
  6173. :
  6174. else
  6175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6176. /* end confdefs.h. */
  6177. #include <ctype.h>
  6178. #include <stdlib.h>
  6179. #if ((' ' & 0x0FF) == 0x020)
  6180. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6181. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6182. #else
  6183. # define ISLOWER(c) \
  6184. (('a' <= (c) && (c) <= 'i') \
  6185. || ('j' <= (c) && (c) <= 'r') \
  6186. || ('s' <= (c) && (c) <= 'z'))
  6187. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6188. #endif
  6189. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6190. int
  6191. main ()
  6192. {
  6193. int i;
  6194. for (i = 0; i < 256; i++)
  6195. if (XOR (islower (i), ISLOWER (i))
  6196. || toupper (i) != TOUPPER (i))
  6197. return 2;
  6198. return 0;
  6199. }
  6200. _ACEOF
  6201. if ac_fn_c_try_run "$LINENO"; then :
  6202. else
  6203. ac_cv_header_stdc=no
  6204. fi
  6205. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6206. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6207. fi
  6208. fi
  6209. fi
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6211. $as_echo "$ac_cv_header_stdc" >&6; }
  6212. if test $ac_cv_header_stdc = yes; then
  6213. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6214. fi
  6215. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6216. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6217. inttypes.h stdint.h unistd.h
  6218. do :
  6219. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6220. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6221. "
  6222. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6223. cat >>confdefs.h <<_ACEOF
  6224. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6225. _ACEOF
  6226. fi
  6227. done
  6228. for ac_header in dlfcn.h
  6229. do :
  6230. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6231. "
  6232. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6233. cat >>confdefs.h <<_ACEOF
  6234. #define HAVE_DLFCN_H 1
  6235. _ACEOF
  6236. fi
  6237. done
  6238. # Set options
  6239. enable_win32_dll=yes
  6240. case $host in
  6241. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6242. if test -n "$ac_tool_prefix"; then
  6243. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6244. set dummy ${ac_tool_prefix}as; ac_word=$2
  6245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6246. $as_echo_n "checking for $ac_word... " >&6; }
  6247. if ${ac_cv_prog_AS+:} false; then :
  6248. $as_echo_n "(cached) " >&6
  6249. else
  6250. if test -n "$AS"; then
  6251. ac_cv_prog_AS="$AS" # Let the user override the test.
  6252. else
  6253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6254. for as_dir in $PATH
  6255. do
  6256. IFS=$as_save_IFS
  6257. test -z "$as_dir" && as_dir=.
  6258. for ac_exec_ext in '' $ac_executable_extensions; do
  6259. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6260. ac_cv_prog_AS="${ac_tool_prefix}as"
  6261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6262. break 2
  6263. fi
  6264. done
  6265. done
  6266. IFS=$as_save_IFS
  6267. fi
  6268. fi
  6269. AS=$ac_cv_prog_AS
  6270. if test -n "$AS"; then
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6272. $as_echo "$AS" >&6; }
  6273. else
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6275. $as_echo "no" >&6; }
  6276. fi
  6277. fi
  6278. if test -z "$ac_cv_prog_AS"; then
  6279. ac_ct_AS=$AS
  6280. # Extract the first word of "as", so it can be a program name with args.
  6281. set dummy as; ac_word=$2
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6283. $as_echo_n "checking for $ac_word... " >&6; }
  6284. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6285. $as_echo_n "(cached) " >&6
  6286. else
  6287. if test -n "$ac_ct_AS"; then
  6288. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6289. else
  6290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6291. for as_dir in $PATH
  6292. do
  6293. IFS=$as_save_IFS
  6294. test -z "$as_dir" && as_dir=.
  6295. for ac_exec_ext in '' $ac_executable_extensions; do
  6296. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6297. ac_cv_prog_ac_ct_AS="as"
  6298. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6299. break 2
  6300. fi
  6301. done
  6302. done
  6303. IFS=$as_save_IFS
  6304. fi
  6305. fi
  6306. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6307. if test -n "$ac_ct_AS"; then
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6309. $as_echo "$ac_ct_AS" >&6; }
  6310. else
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6312. $as_echo "no" >&6; }
  6313. fi
  6314. if test "x$ac_ct_AS" = x; then
  6315. AS="false"
  6316. else
  6317. case $cross_compiling:$ac_tool_warned in
  6318. yes:)
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6320. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6321. ac_tool_warned=yes ;;
  6322. esac
  6323. AS=$ac_ct_AS
  6324. fi
  6325. else
  6326. AS="$ac_cv_prog_AS"
  6327. fi
  6328. if test -n "$ac_tool_prefix"; then
  6329. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6330. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6332. $as_echo_n "checking for $ac_word... " >&6; }
  6333. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6334. $as_echo_n "(cached) " >&6
  6335. else
  6336. if test -n "$DLLTOOL"; then
  6337. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6338. else
  6339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6340. for as_dir in $PATH
  6341. do
  6342. IFS=$as_save_IFS
  6343. test -z "$as_dir" && as_dir=.
  6344. for ac_exec_ext in '' $ac_executable_extensions; do
  6345. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6346. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6347. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6348. break 2
  6349. fi
  6350. done
  6351. done
  6352. IFS=$as_save_IFS
  6353. fi
  6354. fi
  6355. DLLTOOL=$ac_cv_prog_DLLTOOL
  6356. if test -n "$DLLTOOL"; then
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6358. $as_echo "$DLLTOOL" >&6; }
  6359. else
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6361. $as_echo "no" >&6; }
  6362. fi
  6363. fi
  6364. if test -z "$ac_cv_prog_DLLTOOL"; then
  6365. ac_ct_DLLTOOL=$DLLTOOL
  6366. # Extract the first word of "dlltool", so it can be a program name with args.
  6367. set dummy dlltool; ac_word=$2
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6369. $as_echo_n "checking for $ac_word... " >&6; }
  6370. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6371. $as_echo_n "(cached) " >&6
  6372. else
  6373. if test -n "$ac_ct_DLLTOOL"; then
  6374. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6375. else
  6376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6377. for as_dir in $PATH
  6378. do
  6379. IFS=$as_save_IFS
  6380. test -z "$as_dir" && as_dir=.
  6381. for ac_exec_ext in '' $ac_executable_extensions; do
  6382. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6383. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6384. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6385. break 2
  6386. fi
  6387. done
  6388. done
  6389. IFS=$as_save_IFS
  6390. fi
  6391. fi
  6392. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6393. if test -n "$ac_ct_DLLTOOL"; then
  6394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6395. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6396. else
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6398. $as_echo "no" >&6; }
  6399. fi
  6400. if test "x$ac_ct_DLLTOOL" = x; then
  6401. DLLTOOL="false"
  6402. else
  6403. case $cross_compiling:$ac_tool_warned in
  6404. yes:)
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6406. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6407. ac_tool_warned=yes ;;
  6408. esac
  6409. DLLTOOL=$ac_ct_DLLTOOL
  6410. fi
  6411. else
  6412. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6413. fi
  6414. if test -n "$ac_tool_prefix"; then
  6415. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6416. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6418. $as_echo_n "checking for $ac_word... " >&6; }
  6419. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6420. $as_echo_n "(cached) " >&6
  6421. else
  6422. if test -n "$OBJDUMP"; then
  6423. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6424. else
  6425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6426. for as_dir in $PATH
  6427. do
  6428. IFS=$as_save_IFS
  6429. test -z "$as_dir" && as_dir=.
  6430. for ac_exec_ext in '' $ac_executable_extensions; do
  6431. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6432. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6434. break 2
  6435. fi
  6436. done
  6437. done
  6438. IFS=$as_save_IFS
  6439. fi
  6440. fi
  6441. OBJDUMP=$ac_cv_prog_OBJDUMP
  6442. if test -n "$OBJDUMP"; then
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6444. $as_echo "$OBJDUMP" >&6; }
  6445. else
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6447. $as_echo "no" >&6; }
  6448. fi
  6449. fi
  6450. if test -z "$ac_cv_prog_OBJDUMP"; then
  6451. ac_ct_OBJDUMP=$OBJDUMP
  6452. # Extract the first word of "objdump", so it can be a program name with args.
  6453. set dummy objdump; ac_word=$2
  6454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6455. $as_echo_n "checking for $ac_word... " >&6; }
  6456. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6457. $as_echo_n "(cached) " >&6
  6458. else
  6459. if test -n "$ac_ct_OBJDUMP"; then
  6460. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6461. else
  6462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6463. for as_dir in $PATH
  6464. do
  6465. IFS=$as_save_IFS
  6466. test -z "$as_dir" && as_dir=.
  6467. for ac_exec_ext in '' $ac_executable_extensions; do
  6468. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6469. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6470. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6471. break 2
  6472. fi
  6473. done
  6474. done
  6475. IFS=$as_save_IFS
  6476. fi
  6477. fi
  6478. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6479. if test -n "$ac_ct_OBJDUMP"; then
  6480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6481. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6482. else
  6483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6484. $as_echo "no" >&6; }
  6485. fi
  6486. if test "x$ac_ct_OBJDUMP" = x; then
  6487. OBJDUMP="false"
  6488. else
  6489. case $cross_compiling:$ac_tool_warned in
  6490. yes:)
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6492. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6493. ac_tool_warned=yes ;;
  6494. esac
  6495. OBJDUMP=$ac_ct_OBJDUMP
  6496. fi
  6497. else
  6498. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6499. fi
  6500. ;;
  6501. esac
  6502. test -z "$AS" && AS=as
  6503. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6504. test -z "$OBJDUMP" && OBJDUMP=objdump
  6505. enable_dlopen=no
  6506. # Check whether --enable-shared was given.
  6507. if test "${enable_shared+set}" = set; then :
  6508. enableval=$enable_shared; p=${PACKAGE-default}
  6509. case $enableval in
  6510. yes) enable_shared=yes ;;
  6511. no) enable_shared=no ;;
  6512. *)
  6513. enable_shared=no
  6514. # Look at the argument we got. We use all the common list separators.
  6515. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6516. for pkg in $enableval; do
  6517. IFS="$lt_save_ifs"
  6518. if test "X$pkg" = "X$p"; then
  6519. enable_shared=yes
  6520. fi
  6521. done
  6522. IFS="$lt_save_ifs"
  6523. ;;
  6524. esac
  6525. else
  6526. enable_shared=yes
  6527. fi
  6528. # Check whether --enable-static was given.
  6529. if test "${enable_static+set}" = set; then :
  6530. enableval=$enable_static; p=${PACKAGE-default}
  6531. case $enableval in
  6532. yes) enable_static=yes ;;
  6533. no) enable_static=no ;;
  6534. *)
  6535. enable_static=no
  6536. # Look at the argument we got. We use all the common list separators.
  6537. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6538. for pkg in $enableval; do
  6539. IFS="$lt_save_ifs"
  6540. if test "X$pkg" = "X$p"; then
  6541. enable_static=yes
  6542. fi
  6543. done
  6544. IFS="$lt_save_ifs"
  6545. ;;
  6546. esac
  6547. else
  6548. enable_static=yes
  6549. fi
  6550. # Check whether --with-pic was given.
  6551. if test "${with_pic+set}" = set; then :
  6552. withval=$with_pic; lt_p=${PACKAGE-default}
  6553. case $withval in
  6554. yes|no) pic_mode=$withval ;;
  6555. *)
  6556. pic_mode=default
  6557. # Look at the argument we got. We use all the common list separators.
  6558. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6559. for lt_pkg in $withval; do
  6560. IFS="$lt_save_ifs"
  6561. if test "X$lt_pkg" = "X$lt_p"; then
  6562. pic_mode=yes
  6563. fi
  6564. done
  6565. IFS="$lt_save_ifs"
  6566. ;;
  6567. esac
  6568. else
  6569. pic_mode=default
  6570. fi
  6571. test -z "$pic_mode" && pic_mode=default
  6572. # Check whether --enable-fast-install was given.
  6573. if test "${enable_fast_install+set}" = set; then :
  6574. enableval=$enable_fast_install; p=${PACKAGE-default}
  6575. case $enableval in
  6576. yes) enable_fast_install=yes ;;
  6577. no) enable_fast_install=no ;;
  6578. *)
  6579. enable_fast_install=no
  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 pkg in $enableval; do
  6583. IFS="$lt_save_ifs"
  6584. if test "X$pkg" = "X$p"; then
  6585. enable_fast_install=yes
  6586. fi
  6587. done
  6588. IFS="$lt_save_ifs"
  6589. ;;
  6590. esac
  6591. else
  6592. enable_fast_install=yes
  6593. fi
  6594. # This can be used to rebuild libtool when needed
  6595. LIBTOOL_DEPS="$ltmain"
  6596. # Always use our own libtool.
  6597. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6598. test -z "$LN_S" && LN_S="ln -s"
  6599. if test -n "${ZSH_VERSION+set}" ; then
  6600. setopt NO_GLOB_SUBST
  6601. fi
  6602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6603. $as_echo_n "checking for objdir... " >&6; }
  6604. if ${lt_cv_objdir+:} false; then :
  6605. $as_echo_n "(cached) " >&6
  6606. else
  6607. rm -f .libs 2>/dev/null
  6608. mkdir .libs 2>/dev/null
  6609. if test -d .libs; then
  6610. lt_cv_objdir=.libs
  6611. else
  6612. # MS-DOS does not allow filenames that begin with a dot.
  6613. lt_cv_objdir=_libs
  6614. fi
  6615. rmdir .libs 2>/dev/null
  6616. fi
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6618. $as_echo "$lt_cv_objdir" >&6; }
  6619. objdir=$lt_cv_objdir
  6620. cat >>confdefs.h <<_ACEOF
  6621. #define LT_OBJDIR "$lt_cv_objdir/"
  6622. _ACEOF
  6623. case $host_os in
  6624. aix3*)
  6625. # AIX sometimes has problems with the GCC collect2 program. For some
  6626. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6627. # vanish in a puff of smoke.
  6628. if test "X${COLLECT_NAMES+set}" != Xset; then
  6629. COLLECT_NAMES=
  6630. export COLLECT_NAMES
  6631. fi
  6632. ;;
  6633. esac
  6634. # Global variables:
  6635. ofile=libtool
  6636. can_build_shared=yes
  6637. # All known linkers require a `.a' archive for static linking (except MSVC,
  6638. # which needs '.lib').
  6639. libext=a
  6640. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6641. old_CC="$CC"
  6642. old_CFLAGS="$CFLAGS"
  6643. # Set sane defaults for various variables
  6644. test -z "$CC" && CC=cc
  6645. test -z "$LTCC" && LTCC=$CC
  6646. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6647. test -z "$LD" && LD=ld
  6648. test -z "$ac_objext" && ac_objext=o
  6649. for cc_temp in $compiler""; do
  6650. case $cc_temp in
  6651. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6652. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6653. \-*) ;;
  6654. *) break;;
  6655. esac
  6656. done
  6657. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6658. # Only perform the check for file, if the check method requires it
  6659. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6660. case $deplibs_check_method in
  6661. file_magic*)
  6662. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6664. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6665. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6666. $as_echo_n "(cached) " >&6
  6667. else
  6668. case $MAGIC_CMD in
  6669. [\\/*] | ?:[\\/]*)
  6670. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6671. ;;
  6672. *)
  6673. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6674. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6675. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6676. for ac_dir in $ac_dummy; do
  6677. IFS="$lt_save_ifs"
  6678. test -z "$ac_dir" && ac_dir=.
  6679. if test -f $ac_dir/${ac_tool_prefix}file; then
  6680. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6681. if test -n "$file_magic_test_file"; then
  6682. case $deplibs_check_method in
  6683. "file_magic "*)
  6684. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6685. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6686. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6687. $EGREP "$file_magic_regex" > /dev/null; then
  6688. :
  6689. else
  6690. cat <<_LT_EOF 1>&2
  6691. *** Warning: the command libtool uses to detect shared libraries,
  6692. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6693. *** The result is that libtool may fail to recognize shared libraries
  6694. *** as such. This will affect the creation of libtool libraries that
  6695. *** depend on shared libraries, but programs linked with such libtool
  6696. *** libraries will work regardless of this problem. Nevertheless, you
  6697. *** may want to report the problem to your system manager and/or to
  6698. *** bug-libtool@gnu.org
  6699. _LT_EOF
  6700. fi ;;
  6701. esac
  6702. fi
  6703. break
  6704. fi
  6705. done
  6706. IFS="$lt_save_ifs"
  6707. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6708. ;;
  6709. esac
  6710. fi
  6711. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6712. if test -n "$MAGIC_CMD"; then
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6714. $as_echo "$MAGIC_CMD" >&6; }
  6715. else
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6717. $as_echo "no" >&6; }
  6718. fi
  6719. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6720. if test -n "$ac_tool_prefix"; then
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6722. $as_echo_n "checking for file... " >&6; }
  6723. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6724. $as_echo_n "(cached) " >&6
  6725. else
  6726. case $MAGIC_CMD in
  6727. [\\/*] | ?:[\\/]*)
  6728. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6729. ;;
  6730. *)
  6731. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6732. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6733. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6734. for ac_dir in $ac_dummy; do
  6735. IFS="$lt_save_ifs"
  6736. test -z "$ac_dir" && ac_dir=.
  6737. if test -f $ac_dir/file; then
  6738. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6739. if test -n "$file_magic_test_file"; then
  6740. case $deplibs_check_method in
  6741. "file_magic "*)
  6742. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6743. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6744. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6745. $EGREP "$file_magic_regex" > /dev/null; then
  6746. :
  6747. else
  6748. cat <<_LT_EOF 1>&2
  6749. *** Warning: the command libtool uses to detect shared libraries,
  6750. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6751. *** The result is that libtool may fail to recognize shared libraries
  6752. *** as such. This will affect the creation of libtool libraries that
  6753. *** depend on shared libraries, but programs linked with such libtool
  6754. *** libraries will work regardless of this problem. Nevertheless, you
  6755. *** may want to report the problem to your system manager and/or to
  6756. *** bug-libtool@gnu.org
  6757. _LT_EOF
  6758. fi ;;
  6759. esac
  6760. fi
  6761. break
  6762. fi
  6763. done
  6764. IFS="$lt_save_ifs"
  6765. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6766. ;;
  6767. esac
  6768. fi
  6769. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6770. if test -n "$MAGIC_CMD"; then
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6772. $as_echo "$MAGIC_CMD" >&6; }
  6773. else
  6774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6775. $as_echo "no" >&6; }
  6776. fi
  6777. else
  6778. MAGIC_CMD=:
  6779. fi
  6780. fi
  6781. fi
  6782. ;;
  6783. esac
  6784. # Use C for the default configuration in the libtool script
  6785. lt_save_CC="$CC"
  6786. ac_ext=c
  6787. ac_cpp='$CPP $CPPFLAGS'
  6788. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6789. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6790. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6791. # Source file extension for C test sources.
  6792. ac_ext=c
  6793. # Object file extension for compiled C test sources.
  6794. objext=o
  6795. objext=$objext
  6796. # Code to be used in simple compile tests
  6797. lt_simple_compile_test_code="int some_variable = 0;"
  6798. # Code to be used in simple link tests
  6799. lt_simple_link_test_code='int main(){return(0);}'
  6800. # If no C compiler was specified, use CC.
  6801. LTCC=${LTCC-"$CC"}
  6802. # If no C compiler flags were specified, use CFLAGS.
  6803. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6804. # Allow CC to be a program name with arguments.
  6805. compiler=$CC
  6806. # Save the default compiler, since it gets overwritten when the other
  6807. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6808. compiler_DEFAULT=$CC
  6809. # save warnings/boilerplate of simple test code
  6810. ac_outfile=conftest.$ac_objext
  6811. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6812. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6813. _lt_compiler_boilerplate=`cat conftest.err`
  6814. $RM conftest*
  6815. ac_outfile=conftest.$ac_objext
  6816. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6817. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6818. _lt_linker_boilerplate=`cat conftest.err`
  6819. $RM -r conftest*
  6820. ## CAVEAT EMPTOR:
  6821. ## There is no encapsulation within the following macros, do not change
  6822. ## the running order or otherwise move them around unless you know exactly
  6823. ## what you are doing...
  6824. if test -n "$compiler"; then
  6825. lt_prog_compiler_no_builtin_flag=
  6826. if test "$GCC" = yes; then
  6827. case $cc_basename in
  6828. nvcc*)
  6829. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6830. *)
  6831. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6832. esac
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6834. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6835. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6836. $as_echo_n "(cached) " >&6
  6837. else
  6838. lt_cv_prog_compiler_rtti_exceptions=no
  6839. ac_outfile=conftest.$ac_objext
  6840. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6841. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6842. # Insert the option either (1) after the last *FLAGS variable, or
  6843. # (2) before a word containing "conftest.", or (3) at the end.
  6844. # Note that $ac_compile itself does not contain backslashes and begins
  6845. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6846. # The option is referenced via a variable to avoid confusing sed.
  6847. lt_compile=`echo "$ac_compile" | $SED \
  6848. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6849. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6850. -e 's:$: $lt_compiler_flag:'`
  6851. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6852. (eval "$lt_compile" 2>conftest.err)
  6853. ac_status=$?
  6854. cat conftest.err >&5
  6855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6856. if (exit $ac_status) && test -s "$ac_outfile"; then
  6857. # The compiler can only warn and ignore the option if not recognized
  6858. # So say no if there are warnings other than the usual output.
  6859. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6860. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6861. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6862. lt_cv_prog_compiler_rtti_exceptions=yes
  6863. fi
  6864. fi
  6865. $RM conftest*
  6866. fi
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6868. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6869. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6870. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6871. else
  6872. :
  6873. fi
  6874. fi
  6875. lt_prog_compiler_wl=
  6876. lt_prog_compiler_pic=
  6877. lt_prog_compiler_static=
  6878. if test "$GCC" = yes; then
  6879. lt_prog_compiler_wl='-Wl,'
  6880. lt_prog_compiler_static='-static'
  6881. case $host_os in
  6882. aix*)
  6883. # All AIX code is PIC.
  6884. if test "$host_cpu" = ia64; then
  6885. # AIX 5 now supports IA64 processor
  6886. lt_prog_compiler_static='-Bstatic'
  6887. fi
  6888. ;;
  6889. amigaos*)
  6890. case $host_cpu in
  6891. powerpc)
  6892. # see comment about AmigaOS4 .so support
  6893. lt_prog_compiler_pic='-fPIC'
  6894. ;;
  6895. m68k)
  6896. # FIXME: we need at least 68020 code to build shared libraries, but
  6897. # adding the `-m68020' flag to GCC prevents building anything better,
  6898. # like `-m68040'.
  6899. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6900. ;;
  6901. esac
  6902. ;;
  6903. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6904. # PIC is the default for these OSes.
  6905. ;;
  6906. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6907. # This hack is so that the source file can tell whether it is being
  6908. # built for inclusion in a dll (and should export symbols for example).
  6909. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6910. # (--disable-auto-import) libraries
  6911. lt_prog_compiler_pic='-DDLL_EXPORT'
  6912. ;;
  6913. darwin* | rhapsody*)
  6914. # PIC is the default on this platform
  6915. # Common symbols not allowed in MH_DYLIB files
  6916. lt_prog_compiler_pic='-fno-common'
  6917. ;;
  6918. haiku*)
  6919. # PIC is the default for Haiku.
  6920. # The "-static" flag exists, but is broken.
  6921. lt_prog_compiler_static=
  6922. ;;
  6923. hpux*)
  6924. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6925. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6926. # sets the default TLS model and affects inlining.
  6927. case $host_cpu in
  6928. hppa*64*)
  6929. # +Z the default
  6930. ;;
  6931. *)
  6932. lt_prog_compiler_pic='-fPIC'
  6933. ;;
  6934. esac
  6935. ;;
  6936. interix[3-9]*)
  6937. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6938. # Instead, we relocate shared libraries at runtime.
  6939. ;;
  6940. msdosdjgpp*)
  6941. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6942. # on systems that don't support them.
  6943. lt_prog_compiler_can_build_shared=no
  6944. enable_shared=no
  6945. ;;
  6946. *nto* | *qnx*)
  6947. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6948. # it will coredump.
  6949. lt_prog_compiler_pic='-fPIC -shared'
  6950. ;;
  6951. sysv4*MP*)
  6952. if test -d /usr/nec; then
  6953. lt_prog_compiler_pic=-Kconform_pic
  6954. fi
  6955. ;;
  6956. *)
  6957. lt_prog_compiler_pic='-fPIC'
  6958. ;;
  6959. esac
  6960. case $cc_basename in
  6961. nvcc*) # Cuda Compiler Driver 2.2
  6962. lt_prog_compiler_wl='-Xlinker '
  6963. if test -n "$lt_prog_compiler_pic"; then
  6964. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6965. fi
  6966. ;;
  6967. esac
  6968. else
  6969. # PORTME Check for flag to pass linker flags through the system compiler.
  6970. case $host_os in
  6971. aix*)
  6972. lt_prog_compiler_wl='-Wl,'
  6973. if test "$host_cpu" = ia64; then
  6974. # AIX 5 now supports IA64 processor
  6975. lt_prog_compiler_static='-Bstatic'
  6976. else
  6977. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6978. fi
  6979. ;;
  6980. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6981. # This hack is so that the source file can tell whether it is being
  6982. # built for inclusion in a dll (and should export symbols for example).
  6983. lt_prog_compiler_pic='-DDLL_EXPORT'
  6984. ;;
  6985. hpux9* | hpux10* | hpux11*)
  6986. lt_prog_compiler_wl='-Wl,'
  6987. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6988. # not for PA HP-UX.
  6989. case $host_cpu in
  6990. hppa*64*|ia64*)
  6991. # +Z the default
  6992. ;;
  6993. *)
  6994. lt_prog_compiler_pic='+Z'
  6995. ;;
  6996. esac
  6997. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6998. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6999. ;;
  7000. irix5* | irix6* | nonstopux*)
  7001. lt_prog_compiler_wl='-Wl,'
  7002. # PIC (with -KPIC) is the default.
  7003. lt_prog_compiler_static='-non_shared'
  7004. ;;
  7005. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7006. case $cc_basename in
  7007. # old Intel for x86_64 which still supported -KPIC.
  7008. ecc*)
  7009. lt_prog_compiler_wl='-Wl,'
  7010. lt_prog_compiler_pic='-KPIC'
  7011. lt_prog_compiler_static='-static'
  7012. ;;
  7013. # icc used to be incompatible with GCC.
  7014. # ICC 10 doesn't accept -KPIC any more.
  7015. icc* | ifort*)
  7016. lt_prog_compiler_wl='-Wl,'
  7017. lt_prog_compiler_pic='-fPIC'
  7018. lt_prog_compiler_static='-static'
  7019. ;;
  7020. # Lahey Fortran 8.1.
  7021. lf95*)
  7022. lt_prog_compiler_wl='-Wl,'
  7023. lt_prog_compiler_pic='--shared'
  7024. lt_prog_compiler_static='--static'
  7025. ;;
  7026. nagfor*)
  7027. # NAG Fortran compiler
  7028. lt_prog_compiler_wl='-Wl,-Wl,,'
  7029. lt_prog_compiler_pic='-PIC'
  7030. lt_prog_compiler_static='-Bstatic'
  7031. ;;
  7032. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7033. # Portland Group compilers (*not* the Pentium gcc compiler,
  7034. # which looks to be a dead project)
  7035. lt_prog_compiler_wl='-Wl,'
  7036. lt_prog_compiler_pic='-fpic'
  7037. lt_prog_compiler_static='-Bstatic'
  7038. ;;
  7039. ccc*)
  7040. lt_prog_compiler_wl='-Wl,'
  7041. # All Alpha code is PIC.
  7042. lt_prog_compiler_static='-non_shared'
  7043. ;;
  7044. xl* | bgxl* | bgf* | mpixl*)
  7045. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7046. lt_prog_compiler_wl='-Wl,'
  7047. lt_prog_compiler_pic='-qpic'
  7048. lt_prog_compiler_static='-qstaticlink'
  7049. ;;
  7050. *)
  7051. case `$CC -V 2>&1 | sed 5q` in
  7052. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7053. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7054. lt_prog_compiler_pic='-KPIC'
  7055. lt_prog_compiler_static='-Bstatic'
  7056. lt_prog_compiler_wl=''
  7057. ;;
  7058. *Sun\ F* | *Sun*Fortran*)
  7059. lt_prog_compiler_pic='-KPIC'
  7060. lt_prog_compiler_static='-Bstatic'
  7061. lt_prog_compiler_wl='-Qoption ld '
  7062. ;;
  7063. *Sun\ C*)
  7064. # Sun C 5.9
  7065. lt_prog_compiler_pic='-KPIC'
  7066. lt_prog_compiler_static='-Bstatic'
  7067. lt_prog_compiler_wl='-Wl,'
  7068. ;;
  7069. *Intel*\ [CF]*Compiler*)
  7070. lt_prog_compiler_wl='-Wl,'
  7071. lt_prog_compiler_pic='-fPIC'
  7072. lt_prog_compiler_static='-static'
  7073. ;;
  7074. *Portland\ Group*)
  7075. lt_prog_compiler_wl='-Wl,'
  7076. lt_prog_compiler_pic='-fpic'
  7077. lt_prog_compiler_static='-Bstatic'
  7078. ;;
  7079. esac
  7080. ;;
  7081. esac
  7082. ;;
  7083. newsos6)
  7084. lt_prog_compiler_pic='-KPIC'
  7085. lt_prog_compiler_static='-Bstatic'
  7086. ;;
  7087. *nto* | *qnx*)
  7088. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7089. # it will coredump.
  7090. lt_prog_compiler_pic='-fPIC -shared'
  7091. ;;
  7092. osf3* | osf4* | osf5*)
  7093. lt_prog_compiler_wl='-Wl,'
  7094. # All OSF/1 code is PIC.
  7095. lt_prog_compiler_static='-non_shared'
  7096. ;;
  7097. rdos*)
  7098. lt_prog_compiler_static='-non_shared'
  7099. ;;
  7100. solaris*)
  7101. lt_prog_compiler_pic='-KPIC'
  7102. lt_prog_compiler_static='-Bstatic'
  7103. case $cc_basename in
  7104. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7105. lt_prog_compiler_wl='-Qoption ld ';;
  7106. *)
  7107. lt_prog_compiler_wl='-Wl,';;
  7108. esac
  7109. ;;
  7110. sunos4*)
  7111. lt_prog_compiler_wl='-Qoption ld '
  7112. lt_prog_compiler_pic='-PIC'
  7113. lt_prog_compiler_static='-Bstatic'
  7114. ;;
  7115. sysv4 | sysv4.2uw2* | sysv4.3*)
  7116. lt_prog_compiler_wl='-Wl,'
  7117. lt_prog_compiler_pic='-KPIC'
  7118. lt_prog_compiler_static='-Bstatic'
  7119. ;;
  7120. sysv4*MP*)
  7121. if test -d /usr/nec ;then
  7122. lt_prog_compiler_pic='-Kconform_pic'
  7123. lt_prog_compiler_static='-Bstatic'
  7124. fi
  7125. ;;
  7126. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7127. lt_prog_compiler_wl='-Wl,'
  7128. lt_prog_compiler_pic='-KPIC'
  7129. lt_prog_compiler_static='-Bstatic'
  7130. ;;
  7131. unicos*)
  7132. lt_prog_compiler_wl='-Wl,'
  7133. lt_prog_compiler_can_build_shared=no
  7134. ;;
  7135. uts4*)
  7136. lt_prog_compiler_pic='-pic'
  7137. lt_prog_compiler_static='-Bstatic'
  7138. ;;
  7139. *)
  7140. lt_prog_compiler_can_build_shared=no
  7141. ;;
  7142. esac
  7143. fi
  7144. case $host_os in
  7145. # For platforms which do not support PIC, -DPIC is meaningless:
  7146. *djgpp*)
  7147. lt_prog_compiler_pic=
  7148. ;;
  7149. *)
  7150. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7151. ;;
  7152. esac
  7153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7154. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7155. if ${lt_cv_prog_compiler_pic+:} false; then :
  7156. $as_echo_n "(cached) " >&6
  7157. else
  7158. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7159. fi
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7161. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7162. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7163. #
  7164. # Check to make sure the PIC flag actually works.
  7165. #
  7166. if test -n "$lt_prog_compiler_pic"; then
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7168. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7169. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7170. $as_echo_n "(cached) " >&6
  7171. else
  7172. lt_cv_prog_compiler_pic_works=no
  7173. ac_outfile=conftest.$ac_objext
  7174. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7175. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7176. # Insert the option either (1) after the last *FLAGS variable, or
  7177. # (2) before a word containing "conftest.", or (3) at the end.
  7178. # Note that $ac_compile itself does not contain backslashes and begins
  7179. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7180. # The option is referenced via a variable to avoid confusing sed.
  7181. lt_compile=`echo "$ac_compile" | $SED \
  7182. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7183. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7184. -e 's:$: $lt_compiler_flag:'`
  7185. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7186. (eval "$lt_compile" 2>conftest.err)
  7187. ac_status=$?
  7188. cat conftest.err >&5
  7189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7190. if (exit $ac_status) && test -s "$ac_outfile"; then
  7191. # The compiler can only warn and ignore the option if not recognized
  7192. # So say no if there are warnings other than the usual output.
  7193. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7194. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7195. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7196. lt_cv_prog_compiler_pic_works=yes
  7197. fi
  7198. fi
  7199. $RM conftest*
  7200. fi
  7201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7202. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7203. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7204. case $lt_prog_compiler_pic in
  7205. "" | " "*) ;;
  7206. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7207. esac
  7208. else
  7209. lt_prog_compiler_pic=
  7210. lt_prog_compiler_can_build_shared=no
  7211. fi
  7212. fi
  7213. #
  7214. # Check to make sure the static flag actually works.
  7215. #
  7216. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7218. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7219. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7220. $as_echo_n "(cached) " >&6
  7221. else
  7222. lt_cv_prog_compiler_static_works=no
  7223. save_LDFLAGS="$LDFLAGS"
  7224. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7225. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7226. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7227. # The linker can only warn and ignore the option if not recognized
  7228. # So say no if there are warnings
  7229. if test -s conftest.err; then
  7230. # Append any errors to the config.log.
  7231. cat conftest.err 1>&5
  7232. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7233. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7234. if diff conftest.exp conftest.er2 >/dev/null; then
  7235. lt_cv_prog_compiler_static_works=yes
  7236. fi
  7237. else
  7238. lt_cv_prog_compiler_static_works=yes
  7239. fi
  7240. fi
  7241. $RM -r conftest*
  7242. LDFLAGS="$save_LDFLAGS"
  7243. fi
  7244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7245. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7246. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7247. :
  7248. else
  7249. lt_prog_compiler_static=
  7250. fi
  7251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7252. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7253. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7254. $as_echo_n "(cached) " >&6
  7255. else
  7256. lt_cv_prog_compiler_c_o=no
  7257. $RM -r conftest 2>/dev/null
  7258. mkdir conftest
  7259. cd conftest
  7260. mkdir out
  7261. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7262. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7263. # Insert the option either (1) after the last *FLAGS variable, or
  7264. # (2) before a word containing "conftest.", or (3) at the end.
  7265. # Note that $ac_compile itself does not contain backslashes and begins
  7266. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7267. lt_compile=`echo "$ac_compile" | $SED \
  7268. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7269. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7270. -e 's:$: $lt_compiler_flag:'`
  7271. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7272. (eval "$lt_compile" 2>out/conftest.err)
  7273. ac_status=$?
  7274. cat out/conftest.err >&5
  7275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7276. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7277. then
  7278. # The compiler can only warn and ignore the option if not recognized
  7279. # So say no if there are warnings
  7280. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7281. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7282. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7283. lt_cv_prog_compiler_c_o=yes
  7284. fi
  7285. fi
  7286. chmod u+w . 2>&5
  7287. $RM conftest*
  7288. # SGI C++ compiler will create directory out/ii_files/ for
  7289. # template instantiation
  7290. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7291. $RM out/* && rmdir out
  7292. cd ..
  7293. $RM -r conftest
  7294. $RM conftest*
  7295. fi
  7296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7297. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7299. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7300. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7301. $as_echo_n "(cached) " >&6
  7302. else
  7303. lt_cv_prog_compiler_c_o=no
  7304. $RM -r conftest 2>/dev/null
  7305. mkdir conftest
  7306. cd conftest
  7307. mkdir out
  7308. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7309. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7310. # Insert the option either (1) after the last *FLAGS variable, or
  7311. # (2) before a word containing "conftest.", or (3) at the end.
  7312. # Note that $ac_compile itself does not contain backslashes and begins
  7313. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7314. lt_compile=`echo "$ac_compile" | $SED \
  7315. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7316. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7317. -e 's:$: $lt_compiler_flag:'`
  7318. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7319. (eval "$lt_compile" 2>out/conftest.err)
  7320. ac_status=$?
  7321. cat out/conftest.err >&5
  7322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7323. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7324. then
  7325. # The compiler can only warn and ignore the option if not recognized
  7326. # So say no if there are warnings
  7327. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7328. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7329. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7330. lt_cv_prog_compiler_c_o=yes
  7331. fi
  7332. fi
  7333. chmod u+w . 2>&5
  7334. $RM conftest*
  7335. # SGI C++ compiler will create directory out/ii_files/ for
  7336. # template instantiation
  7337. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7338. $RM out/* && rmdir out
  7339. cd ..
  7340. $RM -r conftest
  7341. $RM conftest*
  7342. fi
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7344. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7345. hard_links="nottested"
  7346. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7347. # do not overwrite the value of need_locks provided by the user
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7349. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7350. hard_links=yes
  7351. $RM conftest*
  7352. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7353. touch conftest.a
  7354. ln conftest.a conftest.b 2>&5 || hard_links=no
  7355. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7357. $as_echo "$hard_links" >&6; }
  7358. if test "$hard_links" = no; then
  7359. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7360. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7361. need_locks=warn
  7362. fi
  7363. else
  7364. need_locks=no
  7365. fi
  7366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7367. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7368. runpath_var=
  7369. allow_undefined_flag=
  7370. always_export_symbols=no
  7371. archive_cmds=
  7372. archive_expsym_cmds=
  7373. compiler_needs_object=no
  7374. enable_shared_with_static_runtimes=no
  7375. export_dynamic_flag_spec=
  7376. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7377. hardcode_automatic=no
  7378. hardcode_direct=no
  7379. hardcode_direct_absolute=no
  7380. hardcode_libdir_flag_spec=
  7381. hardcode_libdir_separator=
  7382. hardcode_minus_L=no
  7383. hardcode_shlibpath_var=unsupported
  7384. inherit_rpath=no
  7385. link_all_deplibs=unknown
  7386. module_cmds=
  7387. module_expsym_cmds=
  7388. old_archive_from_new_cmds=
  7389. old_archive_from_expsyms_cmds=
  7390. thread_safe_flag_spec=
  7391. whole_archive_flag_spec=
  7392. # include_expsyms should be a list of space-separated symbols to be *always*
  7393. # included in the symbol list
  7394. include_expsyms=
  7395. # exclude_expsyms can be an extended regexp of symbols to exclude
  7396. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7397. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7398. # as well as any symbol that contains `d'.
  7399. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7400. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7401. # platforms (ab)use it in PIC code, but their linkers get confused if
  7402. # the symbol is explicitly referenced. Since portable code cannot
  7403. # rely on this symbol name, it's probably fine to never include it in
  7404. # preloaded symbol tables.
  7405. # Exclude shared library initialization/finalization symbols.
  7406. extract_expsyms_cmds=
  7407. case $host_os in
  7408. cygwin* | mingw* | pw32* | cegcc*)
  7409. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7410. # When not using gcc, we currently assume that we are using
  7411. # Microsoft Visual C++.
  7412. if test "$GCC" != yes; then
  7413. with_gnu_ld=no
  7414. fi
  7415. ;;
  7416. interix*)
  7417. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7418. with_gnu_ld=yes
  7419. ;;
  7420. openbsd*)
  7421. with_gnu_ld=no
  7422. ;;
  7423. esac
  7424. ld_shlibs=yes
  7425. # On some targets, GNU ld is compatible enough with the native linker
  7426. # that we're better off using the native interface for both.
  7427. lt_use_gnu_ld_interface=no
  7428. if test "$with_gnu_ld" = yes; then
  7429. case $host_os in
  7430. aix*)
  7431. # The AIX port of GNU ld has always aspired to compatibility
  7432. # with the native linker. However, as the warning in the GNU ld
  7433. # block says, versions before 2.19.5* couldn't really create working
  7434. # shared libraries, regardless of the interface used.
  7435. case `$LD -v 2>&1` in
  7436. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7437. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7438. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7439. *)
  7440. lt_use_gnu_ld_interface=yes
  7441. ;;
  7442. esac
  7443. ;;
  7444. *)
  7445. lt_use_gnu_ld_interface=yes
  7446. ;;
  7447. esac
  7448. fi
  7449. if test "$lt_use_gnu_ld_interface" = yes; then
  7450. # If archive_cmds runs LD, not CC, wlarc should be empty
  7451. wlarc='${wl}'
  7452. # Set some defaults for GNU ld with shared library support. These
  7453. # are reset later if shared libraries are not supported. Putting them
  7454. # here allows them to be overridden if necessary.
  7455. runpath_var=LD_RUN_PATH
  7456. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7457. export_dynamic_flag_spec='${wl}--export-dynamic'
  7458. # ancient GNU ld didn't support --whole-archive et. al.
  7459. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7460. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7461. else
  7462. whole_archive_flag_spec=
  7463. fi
  7464. supports_anon_versioning=no
  7465. case `$LD -v 2>&1` in
  7466. *GNU\ gold*) supports_anon_versioning=yes ;;
  7467. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7468. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7469. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7470. *\ 2.11.*) ;; # other 2.11 versions
  7471. *) supports_anon_versioning=yes ;;
  7472. esac
  7473. # See if GNU ld supports shared libraries.
  7474. case $host_os in
  7475. aix[3-9]*)
  7476. # On AIX/PPC, the GNU linker is very broken
  7477. if test "$host_cpu" != ia64; then
  7478. ld_shlibs=no
  7479. cat <<_LT_EOF 1>&2
  7480. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7481. *** to be unable to reliably create shared libraries on AIX.
  7482. *** Therefore, libtool is disabling shared libraries support. If you
  7483. *** really care for shared libraries, you may want to install binutils
  7484. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7485. *** You will then need to restart the configuration process.
  7486. _LT_EOF
  7487. fi
  7488. ;;
  7489. amigaos*)
  7490. case $host_cpu in
  7491. powerpc)
  7492. # see comment about AmigaOS4 .so support
  7493. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7494. archive_expsym_cmds=''
  7495. ;;
  7496. m68k)
  7497. 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)'
  7498. hardcode_libdir_flag_spec='-L$libdir'
  7499. hardcode_minus_L=yes
  7500. ;;
  7501. esac
  7502. ;;
  7503. beos*)
  7504. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7505. allow_undefined_flag=unsupported
  7506. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7507. # support --undefined. This deserves some investigation. FIXME
  7508. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7509. else
  7510. ld_shlibs=no
  7511. fi
  7512. ;;
  7513. cygwin* | mingw* | pw32* | cegcc*)
  7514. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7515. # as there is no search path for DLLs.
  7516. hardcode_libdir_flag_spec='-L$libdir'
  7517. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7518. allow_undefined_flag=unsupported
  7519. always_export_symbols=no
  7520. enable_shared_with_static_runtimes=yes
  7521. 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'
  7522. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7523. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7524. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7525. # If the export-symbols file already is a .def file (1st line
  7526. # is EXPORTS), use it as is; otherwise, prepend...
  7527. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7528. cp $export_symbols $output_objdir/$soname.def;
  7529. else
  7530. echo EXPORTS > $output_objdir/$soname.def;
  7531. cat $export_symbols >> $output_objdir/$soname.def;
  7532. fi~
  7533. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7534. else
  7535. ld_shlibs=no
  7536. fi
  7537. ;;
  7538. haiku*)
  7539. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7540. link_all_deplibs=yes
  7541. ;;
  7542. interix[3-9]*)
  7543. hardcode_direct=no
  7544. hardcode_shlibpath_var=no
  7545. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7546. export_dynamic_flag_spec='${wl}-E'
  7547. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7548. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7549. # default) and relocated if they conflict, which is a slow very memory
  7550. # consuming and fragmenting process. To avoid this, we pick a random,
  7551. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7552. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7553. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7554. 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'
  7555. ;;
  7556. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7557. tmp_diet=no
  7558. if test "$host_os" = linux-dietlibc; then
  7559. case $cc_basename in
  7560. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7561. esac
  7562. fi
  7563. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7564. && test "$tmp_diet" = no
  7565. then
  7566. tmp_addflag=' $pic_flag'
  7567. tmp_sharedflag='-shared'
  7568. case $cc_basename,$host_cpu in
  7569. pgcc*) # Portland Group C compiler
  7570. 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'
  7571. tmp_addflag=' $pic_flag'
  7572. ;;
  7573. pgf77* | pgf90* | pgf95* | pgfortran*)
  7574. # Portland Group f77 and f90 compilers
  7575. 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'
  7576. tmp_addflag=' $pic_flag -Mnomain' ;;
  7577. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7578. tmp_addflag=' -i_dynamic' ;;
  7579. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7580. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7581. ifc* | ifort*) # Intel Fortran compiler
  7582. tmp_addflag=' -nofor_main' ;;
  7583. lf95*) # Lahey Fortran 8.1
  7584. whole_archive_flag_spec=
  7585. tmp_sharedflag='--shared' ;;
  7586. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7587. tmp_sharedflag='-qmkshrobj'
  7588. tmp_addflag= ;;
  7589. nvcc*) # Cuda Compiler Driver 2.2
  7590. 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'
  7591. compiler_needs_object=yes
  7592. ;;
  7593. esac
  7594. case `$CC -V 2>&1 | sed 5q` in
  7595. *Sun\ C*) # Sun C 5.9
  7596. 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'
  7597. compiler_needs_object=yes
  7598. tmp_sharedflag='-G' ;;
  7599. *Sun\ F*) # Sun Fortran 8.3
  7600. tmp_sharedflag='-G' ;;
  7601. esac
  7602. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7603. if test "x$supports_anon_versioning" = xyes; then
  7604. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7605. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7606. echo "local: *; };" >> $output_objdir/$libname.ver~
  7607. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7608. fi
  7609. case $cc_basename in
  7610. xlf* | bgf* | bgxlf* | mpixlf*)
  7611. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7612. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7613. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7614. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7615. if test "x$supports_anon_versioning" = xyes; then
  7616. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7617. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7618. echo "local: *; };" >> $output_objdir/$libname.ver~
  7619. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7620. fi
  7621. ;;
  7622. esac
  7623. else
  7624. ld_shlibs=no
  7625. fi
  7626. ;;
  7627. netbsd*)
  7628. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7629. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7630. wlarc=
  7631. else
  7632. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7633. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7634. fi
  7635. ;;
  7636. solaris*)
  7637. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7638. ld_shlibs=no
  7639. cat <<_LT_EOF 1>&2
  7640. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7641. *** create shared libraries on Solaris systems. Therefore, libtool
  7642. *** is disabling shared libraries support. We urge you to upgrade GNU
  7643. *** binutils to release 2.9.1 or newer. Another option is to modify
  7644. *** your PATH or compiler configuration so that the native linker is
  7645. *** used, and then restart.
  7646. _LT_EOF
  7647. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7648. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7649. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7650. else
  7651. ld_shlibs=no
  7652. fi
  7653. ;;
  7654. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7655. case `$LD -v 2>&1` in
  7656. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7657. ld_shlibs=no
  7658. cat <<_LT_EOF 1>&2
  7659. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7660. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7661. *** is disabling shared libraries support. We urge you to upgrade GNU
  7662. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7663. *** your PATH or compiler configuration so that the native linker is
  7664. *** used, and then restart.
  7665. _LT_EOF
  7666. ;;
  7667. *)
  7668. # For security reasons, it is highly recommended that you always
  7669. # use absolute paths for naming shared libraries, and exclude the
  7670. # DT_RUNPATH tag from executables and libraries. But doing so
  7671. # requires that you compile everything twice, which is a pain.
  7672. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7673. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7674. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7675. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7676. else
  7677. ld_shlibs=no
  7678. fi
  7679. ;;
  7680. esac
  7681. ;;
  7682. sunos4*)
  7683. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7684. wlarc=
  7685. hardcode_direct=yes
  7686. hardcode_shlibpath_var=no
  7687. ;;
  7688. *)
  7689. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7690. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7691. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7692. else
  7693. ld_shlibs=no
  7694. fi
  7695. ;;
  7696. esac
  7697. if test "$ld_shlibs" = no; then
  7698. runpath_var=
  7699. hardcode_libdir_flag_spec=
  7700. export_dynamic_flag_spec=
  7701. whole_archive_flag_spec=
  7702. fi
  7703. else
  7704. # PORTME fill in a description of your system's linker (not GNU ld)
  7705. case $host_os in
  7706. aix3*)
  7707. allow_undefined_flag=unsupported
  7708. always_export_symbols=yes
  7709. 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'
  7710. # Note: this linker hardcodes the directories in LIBPATH if there
  7711. # are no directories specified by -L.
  7712. hardcode_minus_L=yes
  7713. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7714. # Neither direct hardcoding nor static linking is supported with a
  7715. # broken collect2.
  7716. hardcode_direct=unsupported
  7717. fi
  7718. ;;
  7719. aix[4-9]*)
  7720. if test "$host_cpu" = ia64; then
  7721. # On IA64, the linker does run time linking by default, so we don't
  7722. # have to do anything special.
  7723. aix_use_runtimelinking=no
  7724. exp_sym_flag='-Bexport'
  7725. no_entry_flag=""
  7726. else
  7727. # If we're using GNU nm, then we don't want the "-C" option.
  7728. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7729. # Also, AIX nm treats weak defined symbols like other global
  7730. # defined symbols, whereas GNU nm marks them as "W".
  7731. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7732. 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'
  7733. else
  7734. 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'
  7735. fi
  7736. aix_use_runtimelinking=no
  7737. # Test if we are trying to use run time linking or normal
  7738. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7739. # need to do runtime linking.
  7740. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7741. for ld_flag in $LDFLAGS; do
  7742. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7743. aix_use_runtimelinking=yes
  7744. break
  7745. fi
  7746. done
  7747. ;;
  7748. esac
  7749. exp_sym_flag='-bexport'
  7750. no_entry_flag='-bnoentry'
  7751. fi
  7752. # When large executables or shared objects are built, AIX ld can
  7753. # have problems creating the table of contents. If linking a library
  7754. # or program results in "error TOC overflow" add -mminimal-toc to
  7755. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7756. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7757. archive_cmds=''
  7758. hardcode_direct=yes
  7759. hardcode_direct_absolute=yes
  7760. hardcode_libdir_separator=':'
  7761. link_all_deplibs=yes
  7762. file_list_spec='${wl}-f,'
  7763. if test "$GCC" = yes; then
  7764. case $host_os in aix4.[012]|aix4.[012].*)
  7765. # We only want to do this on AIX 4.2 and lower, the check
  7766. # below for broken collect2 doesn't work under 4.3+
  7767. collect2name=`${CC} -print-prog-name=collect2`
  7768. if test -f "$collect2name" &&
  7769. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7770. then
  7771. # We have reworked collect2
  7772. :
  7773. else
  7774. # We have old collect2
  7775. hardcode_direct=unsupported
  7776. # It fails to find uninstalled libraries when the uninstalled
  7777. # path is not listed in the libpath. Setting hardcode_minus_L
  7778. # to unsupported forces relinking
  7779. hardcode_minus_L=yes
  7780. hardcode_libdir_flag_spec='-L$libdir'
  7781. hardcode_libdir_separator=
  7782. fi
  7783. ;;
  7784. esac
  7785. shared_flag='-shared'
  7786. if test "$aix_use_runtimelinking" = yes; then
  7787. shared_flag="$shared_flag "'${wl}-G'
  7788. fi
  7789. else
  7790. # not using gcc
  7791. if test "$host_cpu" = ia64; then
  7792. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7793. # chokes on -Wl,-G. The following line is correct:
  7794. shared_flag='-G'
  7795. else
  7796. if test "$aix_use_runtimelinking" = yes; then
  7797. shared_flag='${wl}-G'
  7798. else
  7799. shared_flag='${wl}-bM:SRE'
  7800. fi
  7801. fi
  7802. fi
  7803. export_dynamic_flag_spec='${wl}-bexpall'
  7804. # It seems that -bexpall does not export symbols beginning with
  7805. # underscore (_), so it is better to generate a list of symbols to export.
  7806. always_export_symbols=yes
  7807. if test "$aix_use_runtimelinking" = yes; then
  7808. # Warning - without using the other runtime loading flags (-brtl),
  7809. # -berok will link without error, but may produce a broken library.
  7810. allow_undefined_flag='-berok'
  7811. # Determine the default libpath from the value encoded in an
  7812. # empty executable.
  7813. if test "${lt_cv_aix_libpath+set}" = set; then
  7814. aix_libpath=$lt_cv_aix_libpath
  7815. else
  7816. if ${lt_cv_aix_libpath_+:} false; then :
  7817. $as_echo_n "(cached) " >&6
  7818. else
  7819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7820. /* end confdefs.h. */
  7821. int
  7822. main ()
  7823. {
  7824. ;
  7825. return 0;
  7826. }
  7827. _ACEOF
  7828. if ac_fn_c_try_link "$LINENO"; then :
  7829. lt_aix_libpath_sed='
  7830. /Import File Strings/,/^$/ {
  7831. /^0/ {
  7832. s/^0 *\([^ ]*\) *$/\1/
  7833. p
  7834. }
  7835. }'
  7836. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7837. # Check for a 64-bit object if we didn't find anything.
  7838. if test -z "$lt_cv_aix_libpath_"; then
  7839. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7840. fi
  7841. fi
  7842. rm -f core conftest.err conftest.$ac_objext \
  7843. conftest$ac_exeext conftest.$ac_ext
  7844. if test -z "$lt_cv_aix_libpath_"; then
  7845. lt_cv_aix_libpath_="/usr/lib:/lib"
  7846. fi
  7847. fi
  7848. aix_libpath=$lt_cv_aix_libpath_
  7849. fi
  7850. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7851. 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"
  7852. else
  7853. if test "$host_cpu" = ia64; then
  7854. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7855. allow_undefined_flag="-z nodefs"
  7856. 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"
  7857. else
  7858. # Determine the default libpath from the value encoded in an
  7859. # empty executable.
  7860. if test "${lt_cv_aix_libpath+set}" = set; then
  7861. aix_libpath=$lt_cv_aix_libpath
  7862. else
  7863. if ${lt_cv_aix_libpath_+:} false; then :
  7864. $as_echo_n "(cached) " >&6
  7865. else
  7866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7867. /* end confdefs.h. */
  7868. int
  7869. main ()
  7870. {
  7871. ;
  7872. return 0;
  7873. }
  7874. _ACEOF
  7875. if ac_fn_c_try_link "$LINENO"; then :
  7876. lt_aix_libpath_sed='
  7877. /Import File Strings/,/^$/ {
  7878. /^0/ {
  7879. s/^0 *\([^ ]*\) *$/\1/
  7880. p
  7881. }
  7882. }'
  7883. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7884. # Check for a 64-bit object if we didn't find anything.
  7885. if test -z "$lt_cv_aix_libpath_"; then
  7886. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7887. fi
  7888. fi
  7889. rm -f core conftest.err conftest.$ac_objext \
  7890. conftest$ac_exeext conftest.$ac_ext
  7891. if test -z "$lt_cv_aix_libpath_"; then
  7892. lt_cv_aix_libpath_="/usr/lib:/lib"
  7893. fi
  7894. fi
  7895. aix_libpath=$lt_cv_aix_libpath_
  7896. fi
  7897. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7898. # Warning - without using the other run time loading flags,
  7899. # -berok will link without error, but may produce a broken library.
  7900. no_undefined_flag=' ${wl}-bernotok'
  7901. allow_undefined_flag=' ${wl}-berok'
  7902. if test "$with_gnu_ld" = yes; then
  7903. # We only use this code for GNU lds that support --whole-archive.
  7904. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7905. else
  7906. # Exported symbols can be pulled into shared objects from archives
  7907. whole_archive_flag_spec='$convenience'
  7908. fi
  7909. archive_cmds_need_lc=yes
  7910. # This is similar to how AIX traditionally builds its shared libraries.
  7911. 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'
  7912. fi
  7913. fi
  7914. ;;
  7915. amigaos*)
  7916. case $host_cpu in
  7917. powerpc)
  7918. # see comment about AmigaOS4 .so support
  7919. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7920. archive_expsym_cmds=''
  7921. ;;
  7922. m68k)
  7923. 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)'
  7924. hardcode_libdir_flag_spec='-L$libdir'
  7925. hardcode_minus_L=yes
  7926. ;;
  7927. esac
  7928. ;;
  7929. bsdi[45]*)
  7930. export_dynamic_flag_spec=-rdynamic
  7931. ;;
  7932. cygwin* | mingw* | pw32* | cegcc*)
  7933. # When not using gcc, we currently assume that we are using
  7934. # Microsoft Visual C++.
  7935. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7936. # no search path for DLLs.
  7937. case $cc_basename in
  7938. cl*)
  7939. # Native MSVC
  7940. hardcode_libdir_flag_spec=' '
  7941. allow_undefined_flag=unsupported
  7942. always_export_symbols=yes
  7943. file_list_spec='@'
  7944. # Tell ltmain to make .lib files, not .a files.
  7945. libext=lib
  7946. # Tell ltmain to make .dll files, not .so files.
  7947. shrext_cmds=".dll"
  7948. # FIXME: Setting linknames here is a bad hack.
  7949. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7950. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7951. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7952. else
  7953. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7954. fi~
  7955. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7956. linknames='
  7957. # The linker will not automatically build a static lib if we build a DLL.
  7958. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7959. enable_shared_with_static_runtimes=yes
  7960. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7961. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7962. # Don't use ranlib
  7963. old_postinstall_cmds='chmod 644 $oldlib'
  7964. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7965. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7966. case $lt_outputfile in
  7967. *.exe|*.EXE) ;;
  7968. *)
  7969. lt_outputfile="$lt_outputfile.exe"
  7970. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7971. ;;
  7972. esac~
  7973. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7974. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7975. $RM "$lt_outputfile.manifest";
  7976. fi'
  7977. ;;
  7978. *)
  7979. # Assume MSVC wrapper
  7980. hardcode_libdir_flag_spec=' '
  7981. allow_undefined_flag=unsupported
  7982. # Tell ltmain to make .lib files, not .a files.
  7983. libext=lib
  7984. # Tell ltmain to make .dll files, not .so files.
  7985. shrext_cmds=".dll"
  7986. # FIXME: Setting linknames here is a bad hack.
  7987. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7988. # The linker will automatically build a .lib file if we build a DLL.
  7989. old_archive_from_new_cmds='true'
  7990. # FIXME: Should let the user specify the lib program.
  7991. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7992. enable_shared_with_static_runtimes=yes
  7993. ;;
  7994. esac
  7995. ;;
  7996. darwin* | rhapsody*)
  7997. archive_cmds_need_lc=no
  7998. hardcode_direct=no
  7999. hardcode_automatic=yes
  8000. hardcode_shlibpath_var=unsupported
  8001. if test "$lt_cv_ld_force_load" = "yes"; then
  8002. 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\"`'
  8003. else
  8004. whole_archive_flag_spec=''
  8005. fi
  8006. link_all_deplibs=yes
  8007. allow_undefined_flag="$_lt_dar_allow_undefined"
  8008. case $cc_basename in
  8009. ifort*) _lt_dar_can_shared=yes ;;
  8010. *) _lt_dar_can_shared=$GCC ;;
  8011. esac
  8012. if test "$_lt_dar_can_shared" = "yes"; then
  8013. output_verbose_link_cmd=func_echo_all
  8014. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8015. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8016. 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}"
  8017. 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}"
  8018. else
  8019. ld_shlibs=no
  8020. fi
  8021. ;;
  8022. dgux*)
  8023. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8024. hardcode_libdir_flag_spec='-L$libdir'
  8025. hardcode_shlibpath_var=no
  8026. ;;
  8027. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8028. # support. Future versions do this automatically, but an explicit c++rt0.o
  8029. # does not break anything, and helps significantly (at the cost of a little
  8030. # extra space).
  8031. freebsd2.2*)
  8032. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8033. hardcode_libdir_flag_spec='-R$libdir'
  8034. hardcode_direct=yes
  8035. hardcode_shlibpath_var=no
  8036. ;;
  8037. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8038. freebsd2.*)
  8039. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8040. hardcode_direct=yes
  8041. hardcode_minus_L=yes
  8042. hardcode_shlibpath_var=no
  8043. ;;
  8044. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8045. freebsd* | dragonfly*)
  8046. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8047. hardcode_libdir_flag_spec='-R$libdir'
  8048. hardcode_direct=yes
  8049. hardcode_shlibpath_var=no
  8050. ;;
  8051. hpux9*)
  8052. if test "$GCC" = yes; then
  8053. 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'
  8054. else
  8055. 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'
  8056. fi
  8057. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8058. hardcode_libdir_separator=:
  8059. hardcode_direct=yes
  8060. # hardcode_minus_L: Not really in the search PATH,
  8061. # but as the default location of the library.
  8062. hardcode_minus_L=yes
  8063. export_dynamic_flag_spec='${wl}-E'
  8064. ;;
  8065. hpux10*)
  8066. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8067. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8068. else
  8069. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8070. fi
  8071. if test "$with_gnu_ld" = no; then
  8072. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8073. hardcode_libdir_separator=:
  8074. hardcode_direct=yes
  8075. hardcode_direct_absolute=yes
  8076. export_dynamic_flag_spec='${wl}-E'
  8077. # hardcode_minus_L: Not really in the search PATH,
  8078. # but as the default location of the library.
  8079. hardcode_minus_L=yes
  8080. fi
  8081. ;;
  8082. hpux11*)
  8083. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8084. case $host_cpu in
  8085. hppa*64*)
  8086. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8087. ;;
  8088. ia64*)
  8089. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8090. ;;
  8091. *)
  8092. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8093. ;;
  8094. esac
  8095. else
  8096. case $host_cpu in
  8097. hppa*64*)
  8098. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8099. ;;
  8100. ia64*)
  8101. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8102. ;;
  8103. *)
  8104. # Older versions of the 11.00 compiler do not understand -b yet
  8105. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8107. $as_echo_n "checking if $CC understands -b... " >&6; }
  8108. if ${lt_cv_prog_compiler__b+:} false; then :
  8109. $as_echo_n "(cached) " >&6
  8110. else
  8111. lt_cv_prog_compiler__b=no
  8112. save_LDFLAGS="$LDFLAGS"
  8113. LDFLAGS="$LDFLAGS -b"
  8114. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8115. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8116. # The linker can only warn and ignore the option if not recognized
  8117. # So say no if there are warnings
  8118. if test -s conftest.err; then
  8119. # Append any errors to the config.log.
  8120. cat conftest.err 1>&5
  8121. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8122. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8123. if diff conftest.exp conftest.er2 >/dev/null; then
  8124. lt_cv_prog_compiler__b=yes
  8125. fi
  8126. else
  8127. lt_cv_prog_compiler__b=yes
  8128. fi
  8129. fi
  8130. $RM -r conftest*
  8131. LDFLAGS="$save_LDFLAGS"
  8132. fi
  8133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8134. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8135. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8136. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8137. else
  8138. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8139. fi
  8140. ;;
  8141. esac
  8142. fi
  8143. if test "$with_gnu_ld" = no; then
  8144. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8145. hardcode_libdir_separator=:
  8146. case $host_cpu in
  8147. hppa*64*|ia64*)
  8148. hardcode_direct=no
  8149. hardcode_shlibpath_var=no
  8150. ;;
  8151. *)
  8152. hardcode_direct=yes
  8153. hardcode_direct_absolute=yes
  8154. export_dynamic_flag_spec='${wl}-E'
  8155. # hardcode_minus_L: Not really in the search PATH,
  8156. # but as the default location of the library.
  8157. hardcode_minus_L=yes
  8158. ;;
  8159. esac
  8160. fi
  8161. ;;
  8162. irix5* | irix6* | nonstopux*)
  8163. if test "$GCC" = yes; then
  8164. 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'
  8165. # Try to use the -exported_symbol ld option, if it does not
  8166. # work, assume that -exports_file does not work either and
  8167. # implicitly export all symbols.
  8168. # This should be the same for all languages, so no per-tag cache variable.
  8169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8170. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8171. if ${lt_cv_irix_exported_symbol+:} false; then :
  8172. $as_echo_n "(cached) " >&6
  8173. else
  8174. save_LDFLAGS="$LDFLAGS"
  8175. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8177. /* end confdefs.h. */
  8178. int foo (void) { return 0; }
  8179. _ACEOF
  8180. if ac_fn_c_try_link "$LINENO"; then :
  8181. lt_cv_irix_exported_symbol=yes
  8182. else
  8183. lt_cv_irix_exported_symbol=no
  8184. fi
  8185. rm -f core conftest.err conftest.$ac_objext \
  8186. conftest$ac_exeext conftest.$ac_ext
  8187. LDFLAGS="$save_LDFLAGS"
  8188. fi
  8189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8190. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8191. if test "$lt_cv_irix_exported_symbol" = yes; then
  8192. 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'
  8193. fi
  8194. else
  8195. 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'
  8196. 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'
  8197. fi
  8198. archive_cmds_need_lc='no'
  8199. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8200. hardcode_libdir_separator=:
  8201. inherit_rpath=yes
  8202. link_all_deplibs=yes
  8203. ;;
  8204. netbsd*)
  8205. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8206. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8207. else
  8208. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8209. fi
  8210. hardcode_libdir_flag_spec='-R$libdir'
  8211. hardcode_direct=yes
  8212. hardcode_shlibpath_var=no
  8213. ;;
  8214. newsos6)
  8215. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8216. hardcode_direct=yes
  8217. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8218. hardcode_libdir_separator=:
  8219. hardcode_shlibpath_var=no
  8220. ;;
  8221. *nto* | *qnx*)
  8222. ;;
  8223. openbsd*)
  8224. if test -f /usr/libexec/ld.so; then
  8225. hardcode_direct=yes
  8226. hardcode_shlibpath_var=no
  8227. hardcode_direct_absolute=yes
  8228. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8229. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8230. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8231. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8232. export_dynamic_flag_spec='${wl}-E'
  8233. else
  8234. case $host_os in
  8235. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8236. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8237. hardcode_libdir_flag_spec='-R$libdir'
  8238. ;;
  8239. *)
  8240. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8241. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8242. ;;
  8243. esac
  8244. fi
  8245. else
  8246. ld_shlibs=no
  8247. fi
  8248. ;;
  8249. os2*)
  8250. hardcode_libdir_flag_spec='-L$libdir'
  8251. hardcode_minus_L=yes
  8252. allow_undefined_flag=unsupported
  8253. 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'
  8254. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8255. ;;
  8256. osf3*)
  8257. if test "$GCC" = yes; then
  8258. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8259. 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'
  8260. else
  8261. allow_undefined_flag=' -expect_unresolved \*'
  8262. 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'
  8263. fi
  8264. archive_cmds_need_lc='no'
  8265. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8266. hardcode_libdir_separator=:
  8267. ;;
  8268. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8269. if test "$GCC" = yes; then
  8270. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8271. 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'
  8272. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8273. else
  8274. allow_undefined_flag=' -expect_unresolved \*'
  8275. 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'
  8276. 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~
  8277. $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'
  8278. # Both c and cxx compiler support -rpath directly
  8279. hardcode_libdir_flag_spec='-rpath $libdir'
  8280. fi
  8281. archive_cmds_need_lc='no'
  8282. hardcode_libdir_separator=:
  8283. ;;
  8284. solaris*)
  8285. no_undefined_flag=' -z defs'
  8286. if test "$GCC" = yes; then
  8287. wlarc='${wl}'
  8288. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8289. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8290. $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'
  8291. else
  8292. case `$CC -V 2>&1` in
  8293. *"Compilers 5.0"*)
  8294. wlarc=''
  8295. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8296. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8297. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8298. ;;
  8299. *)
  8300. wlarc='${wl}'
  8301. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8302. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8303. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8304. ;;
  8305. esac
  8306. fi
  8307. hardcode_libdir_flag_spec='-R$libdir'
  8308. hardcode_shlibpath_var=no
  8309. case $host_os in
  8310. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8311. *)
  8312. # The compiler driver will combine and reorder linker options,
  8313. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8314. # but is careful enough not to reorder.
  8315. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8316. if test "$GCC" = yes; then
  8317. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8318. else
  8319. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8320. fi
  8321. ;;
  8322. esac
  8323. link_all_deplibs=yes
  8324. ;;
  8325. sunos4*)
  8326. if test "x$host_vendor" = xsequent; then
  8327. # Use $CC to link under sequent, because it throws in some extra .o
  8328. # files that make .init and .fini sections work.
  8329. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8330. else
  8331. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8332. fi
  8333. hardcode_libdir_flag_spec='-L$libdir'
  8334. hardcode_direct=yes
  8335. hardcode_minus_L=yes
  8336. hardcode_shlibpath_var=no
  8337. ;;
  8338. sysv4)
  8339. case $host_vendor in
  8340. sni)
  8341. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8342. hardcode_direct=yes # is this really true???
  8343. ;;
  8344. siemens)
  8345. ## LD is ld it makes a PLAMLIB
  8346. ## CC just makes a GrossModule.
  8347. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8348. reload_cmds='$CC -r -o $output$reload_objs'
  8349. hardcode_direct=no
  8350. ;;
  8351. motorola)
  8352. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8353. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8354. ;;
  8355. esac
  8356. runpath_var='LD_RUN_PATH'
  8357. hardcode_shlibpath_var=no
  8358. ;;
  8359. sysv4.3*)
  8360. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8361. hardcode_shlibpath_var=no
  8362. export_dynamic_flag_spec='-Bexport'
  8363. ;;
  8364. sysv4*MP*)
  8365. if test -d /usr/nec; then
  8366. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8367. hardcode_shlibpath_var=no
  8368. runpath_var=LD_RUN_PATH
  8369. hardcode_runpath_var=yes
  8370. ld_shlibs=yes
  8371. fi
  8372. ;;
  8373. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8374. no_undefined_flag='${wl}-z,text'
  8375. archive_cmds_need_lc=no
  8376. hardcode_shlibpath_var=no
  8377. runpath_var='LD_RUN_PATH'
  8378. if test "$GCC" = yes; then
  8379. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8380. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8381. else
  8382. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8383. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8384. fi
  8385. ;;
  8386. sysv5* | sco3.2v5* | sco5v6*)
  8387. # Note: We can NOT use -z defs as we might desire, because we do not
  8388. # link with -lc, and that would cause any symbols used from libc to
  8389. # always be unresolved, which means just about no library would
  8390. # ever link correctly. If we're not using GNU ld we use -z text
  8391. # though, which does catch some bad symbols but isn't as heavy-handed
  8392. # as -z defs.
  8393. no_undefined_flag='${wl}-z,text'
  8394. allow_undefined_flag='${wl}-z,nodefs'
  8395. archive_cmds_need_lc=no
  8396. hardcode_shlibpath_var=no
  8397. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8398. hardcode_libdir_separator=':'
  8399. link_all_deplibs=yes
  8400. export_dynamic_flag_spec='${wl}-Bexport'
  8401. runpath_var='LD_RUN_PATH'
  8402. if test "$GCC" = yes; then
  8403. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8404. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8405. else
  8406. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8407. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8408. fi
  8409. ;;
  8410. uts4*)
  8411. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8412. hardcode_libdir_flag_spec='-L$libdir'
  8413. hardcode_shlibpath_var=no
  8414. ;;
  8415. *)
  8416. ld_shlibs=no
  8417. ;;
  8418. esac
  8419. if test x$host_vendor = xsni; then
  8420. case $host in
  8421. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8422. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8423. ;;
  8424. esac
  8425. fi
  8426. fi
  8427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8428. $as_echo "$ld_shlibs" >&6; }
  8429. test "$ld_shlibs" = no && can_build_shared=no
  8430. with_gnu_ld=$with_gnu_ld
  8431. #
  8432. # Do we need to explicitly link libc?
  8433. #
  8434. case "x$archive_cmds_need_lc" in
  8435. x|xyes)
  8436. # Assume -lc should be added
  8437. archive_cmds_need_lc=yes
  8438. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8439. case $archive_cmds in
  8440. *'~'*)
  8441. # FIXME: we may have to deal with multi-command sequences.
  8442. ;;
  8443. '$CC '*)
  8444. # Test whether the compiler implicitly links with -lc since on some
  8445. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8446. # to ld, don't add -lc before -lgcc.
  8447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8448. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8449. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8450. $as_echo_n "(cached) " >&6
  8451. else
  8452. $RM conftest*
  8453. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8454. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8455. (eval $ac_compile) 2>&5
  8456. ac_status=$?
  8457. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8458. test $ac_status = 0; } 2>conftest.err; then
  8459. soname=conftest
  8460. lib=conftest
  8461. libobjs=conftest.$ac_objext
  8462. deplibs=
  8463. wl=$lt_prog_compiler_wl
  8464. pic_flag=$lt_prog_compiler_pic
  8465. compiler_flags=-v
  8466. linker_flags=-v
  8467. verstring=
  8468. output_objdir=.
  8469. libname=conftest
  8470. lt_save_allow_undefined_flag=$allow_undefined_flag
  8471. allow_undefined_flag=
  8472. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8473. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8474. ac_status=$?
  8475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8476. test $ac_status = 0; }
  8477. then
  8478. lt_cv_archive_cmds_need_lc=no
  8479. else
  8480. lt_cv_archive_cmds_need_lc=yes
  8481. fi
  8482. allow_undefined_flag=$lt_save_allow_undefined_flag
  8483. else
  8484. cat conftest.err 1>&5
  8485. fi
  8486. $RM conftest*
  8487. fi
  8488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8489. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8490. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8491. ;;
  8492. esac
  8493. fi
  8494. ;;
  8495. esac
  8496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8497. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8498. if test "$GCC" = yes; then
  8499. case $host_os in
  8500. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8501. *) lt_awk_arg="/^libraries:/" ;;
  8502. esac
  8503. case $host_os in
  8504. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8505. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8506. esac
  8507. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8508. case $lt_search_path_spec in
  8509. *\;*)
  8510. # if the path contains ";" then we assume it to be the separator
  8511. # otherwise default to the standard path separator (i.e. ":") - it is
  8512. # assumed that no part of a normal pathname contains ";" but that should
  8513. # okay in the real world where ";" in dirpaths is itself problematic.
  8514. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8515. ;;
  8516. *)
  8517. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8518. ;;
  8519. esac
  8520. # Ok, now we have the path, separated by spaces, we can step through it
  8521. # and add multilib dir if necessary.
  8522. lt_tmp_lt_search_path_spec=
  8523. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8524. for lt_sys_path in $lt_search_path_spec; do
  8525. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8526. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8527. else
  8528. test -d "$lt_sys_path" && \
  8529. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8530. fi
  8531. done
  8532. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8533. BEGIN {RS=" "; FS="/|\n";} {
  8534. lt_foo="";
  8535. lt_count=0;
  8536. for (lt_i = NF; lt_i > 0; lt_i--) {
  8537. if ($lt_i != "" && $lt_i != ".") {
  8538. if ($lt_i == "..") {
  8539. lt_count++;
  8540. } else {
  8541. if (lt_count == 0) {
  8542. lt_foo="/" $lt_i lt_foo;
  8543. } else {
  8544. lt_count--;
  8545. }
  8546. }
  8547. }
  8548. }
  8549. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8550. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8551. }'`
  8552. # AWK program above erroneously prepends '/' to C:/dos/paths
  8553. # for these hosts.
  8554. case $host_os in
  8555. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8556. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8557. esac
  8558. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8559. else
  8560. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8561. fi
  8562. library_names_spec=
  8563. libname_spec='lib$name'
  8564. soname_spec=
  8565. shrext_cmds=".so"
  8566. postinstall_cmds=
  8567. postuninstall_cmds=
  8568. finish_cmds=
  8569. finish_eval=
  8570. shlibpath_var=
  8571. shlibpath_overrides_runpath=unknown
  8572. version_type=none
  8573. dynamic_linker="$host_os ld.so"
  8574. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8575. need_lib_prefix=unknown
  8576. hardcode_into_libs=no
  8577. # when you set need_version to no, make sure it does not cause -set_version
  8578. # flags to be left without arguments
  8579. need_version=unknown
  8580. case $host_os in
  8581. aix3*)
  8582. version_type=linux # correct to gnu/linux during the next big refactor
  8583. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8584. shlibpath_var=LIBPATH
  8585. # AIX 3 has no versioning support, so we append a major version to the name.
  8586. soname_spec='${libname}${release}${shared_ext}$major'
  8587. ;;
  8588. aix[4-9]*)
  8589. version_type=linux # correct to gnu/linux during the next big refactor
  8590. need_lib_prefix=no
  8591. need_version=no
  8592. hardcode_into_libs=yes
  8593. if test "$host_cpu" = ia64; then
  8594. # AIX 5 supports IA64
  8595. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8596. shlibpath_var=LD_LIBRARY_PATH
  8597. else
  8598. # With GCC up to 2.95.x, collect2 would create an import file
  8599. # for dependence libraries. The import file would start with
  8600. # the line `#! .'. This would cause the generated library to
  8601. # depend on `.', always an invalid library. This was fixed in
  8602. # development snapshots of GCC prior to 3.0.
  8603. case $host_os in
  8604. aix4 | aix4.[01] | aix4.[01].*)
  8605. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8606. echo ' yes '
  8607. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8608. :
  8609. else
  8610. can_build_shared=no
  8611. fi
  8612. ;;
  8613. esac
  8614. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8615. # soname into executable. Probably we can add versioning support to
  8616. # collect2, so additional links can be useful in future.
  8617. if test "$aix_use_runtimelinking" = yes; then
  8618. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8619. # instead of lib<name>.a to let people know that these are not
  8620. # typical AIX shared libraries.
  8621. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8622. else
  8623. # We preserve .a as extension for shared libraries through AIX4.2
  8624. # and later when we are not doing run time linking.
  8625. library_names_spec='${libname}${release}.a $libname.a'
  8626. soname_spec='${libname}${release}${shared_ext}$major'
  8627. fi
  8628. shlibpath_var=LIBPATH
  8629. fi
  8630. ;;
  8631. amigaos*)
  8632. case $host_cpu in
  8633. powerpc)
  8634. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8635. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8636. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8637. ;;
  8638. m68k)
  8639. library_names_spec='$libname.ixlibrary $libname.a'
  8640. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8641. 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'
  8642. ;;
  8643. esac
  8644. ;;
  8645. beos*)
  8646. library_names_spec='${libname}${shared_ext}'
  8647. dynamic_linker="$host_os ld.so"
  8648. shlibpath_var=LIBRARY_PATH
  8649. ;;
  8650. bsdi[45]*)
  8651. version_type=linux # correct to gnu/linux during the next big refactor
  8652. need_version=no
  8653. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8654. soname_spec='${libname}${release}${shared_ext}$major'
  8655. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8656. shlibpath_var=LD_LIBRARY_PATH
  8657. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8658. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8659. # the default ld.so.conf also contains /usr/contrib/lib and
  8660. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8661. # libtool to hard-code these into programs
  8662. ;;
  8663. cygwin* | mingw* | pw32* | cegcc*)
  8664. version_type=windows
  8665. shrext_cmds=".dll"
  8666. need_version=no
  8667. need_lib_prefix=no
  8668. case $GCC,$cc_basename in
  8669. yes,*)
  8670. # gcc
  8671. library_names_spec='$libname.dll.a'
  8672. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8673. postinstall_cmds='base_file=`basename \${file}`~
  8674. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8675. dldir=$destdir/`dirname \$dlpath`~
  8676. test -d \$dldir || mkdir -p \$dldir~
  8677. $install_prog $dir/$dlname \$dldir/$dlname~
  8678. chmod a+x \$dldir/$dlname~
  8679. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8680. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8681. fi'
  8682. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8683. dlpath=$dir/\$dldll~
  8684. $RM \$dlpath'
  8685. shlibpath_overrides_runpath=yes
  8686. case $host_os in
  8687. cygwin*)
  8688. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8689. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8690. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8691. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8692. ;;
  8693. mingw* | cegcc*)
  8694. # MinGW DLLs use traditional 'lib' prefix
  8695. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8696. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8697. ;;
  8698. pw32*)
  8699. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8700. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8701. ;;
  8702. esac
  8703. dynamic_linker='Win32 ld.exe'
  8704. ;;
  8705. *,cl*)
  8706. # Native MSVC
  8707. libname_spec='$name'
  8708. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8709. library_names_spec='${libname}.dll.lib'
  8710. case $build_os in
  8711. mingw*)
  8712. sys_lib_search_path_spec=
  8713. lt_save_ifs=$IFS
  8714. IFS=';'
  8715. for lt_path in $LIB
  8716. do
  8717. IFS=$lt_save_ifs
  8718. # Let DOS variable expansion print the short 8.3 style file name.
  8719. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8720. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8721. done
  8722. IFS=$lt_save_ifs
  8723. # Convert to MSYS style.
  8724. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8725. ;;
  8726. cygwin*)
  8727. # Convert to unix form, then to dos form, then back to unix form
  8728. # but this time dos style (no spaces!) so that the unix form looks
  8729. # like /cygdrive/c/PROGRA~1:/cygdr...
  8730. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8731. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8732. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8733. ;;
  8734. *)
  8735. sys_lib_search_path_spec="$LIB"
  8736. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8737. # It is most probably a Windows format PATH.
  8738. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8739. else
  8740. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8741. fi
  8742. # FIXME: find the short name or the path components, as spaces are
  8743. # common. (e.g. "Program Files" -> "PROGRA~1")
  8744. ;;
  8745. esac
  8746. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8747. postinstall_cmds='base_file=`basename \${file}`~
  8748. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8749. dldir=$destdir/`dirname \$dlpath`~
  8750. test -d \$dldir || mkdir -p \$dldir~
  8751. $install_prog $dir/$dlname \$dldir/$dlname'
  8752. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8753. dlpath=$dir/\$dldll~
  8754. $RM \$dlpath'
  8755. shlibpath_overrides_runpath=yes
  8756. dynamic_linker='Win32 link.exe'
  8757. ;;
  8758. *)
  8759. # Assume MSVC wrapper
  8760. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8761. dynamic_linker='Win32 ld.exe'
  8762. ;;
  8763. esac
  8764. # FIXME: first we should search . and the directory the executable is in
  8765. shlibpath_var=PATH
  8766. ;;
  8767. darwin* | rhapsody*)
  8768. dynamic_linker="$host_os dyld"
  8769. version_type=darwin
  8770. need_lib_prefix=no
  8771. need_version=no
  8772. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8773. soname_spec='${libname}${release}${major}$shared_ext'
  8774. shlibpath_overrides_runpath=yes
  8775. shlibpath_var=DYLD_LIBRARY_PATH
  8776. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8777. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8778. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8779. ;;
  8780. dgux*)
  8781. version_type=linux # correct to gnu/linux during the next big refactor
  8782. need_lib_prefix=no
  8783. need_version=no
  8784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8785. soname_spec='${libname}${release}${shared_ext}$major'
  8786. shlibpath_var=LD_LIBRARY_PATH
  8787. ;;
  8788. freebsd* | dragonfly*)
  8789. # DragonFly does not have aout. When/if they implement a new
  8790. # versioning mechanism, adjust this.
  8791. if test -x /usr/bin/objformat; then
  8792. objformat=`/usr/bin/objformat`
  8793. else
  8794. case $host_os in
  8795. freebsd[23].*) objformat=aout ;;
  8796. *) objformat=elf ;;
  8797. esac
  8798. fi
  8799. version_type=freebsd-$objformat
  8800. case $version_type in
  8801. freebsd-elf*)
  8802. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8803. need_version=no
  8804. need_lib_prefix=no
  8805. ;;
  8806. freebsd-*)
  8807. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8808. need_version=yes
  8809. ;;
  8810. esac
  8811. shlibpath_var=LD_LIBRARY_PATH
  8812. case $host_os in
  8813. freebsd2.*)
  8814. shlibpath_overrides_runpath=yes
  8815. ;;
  8816. freebsd3.[01]* | freebsdelf3.[01]*)
  8817. shlibpath_overrides_runpath=yes
  8818. hardcode_into_libs=yes
  8819. ;;
  8820. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8821. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8822. shlibpath_overrides_runpath=no
  8823. hardcode_into_libs=yes
  8824. ;;
  8825. *) # from 4.6 on, and DragonFly
  8826. shlibpath_overrides_runpath=yes
  8827. hardcode_into_libs=yes
  8828. ;;
  8829. esac
  8830. ;;
  8831. gnu*)
  8832. version_type=linux # correct to gnu/linux during the next big refactor
  8833. need_lib_prefix=no
  8834. need_version=no
  8835. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8836. soname_spec='${libname}${release}${shared_ext}$major'
  8837. shlibpath_var=LD_LIBRARY_PATH
  8838. shlibpath_overrides_runpath=no
  8839. hardcode_into_libs=yes
  8840. ;;
  8841. haiku*)
  8842. version_type=linux # correct to gnu/linux during the next big refactor
  8843. need_lib_prefix=no
  8844. need_version=no
  8845. dynamic_linker="$host_os runtime_loader"
  8846. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8847. soname_spec='${libname}${release}${shared_ext}$major'
  8848. shlibpath_var=LIBRARY_PATH
  8849. shlibpath_overrides_runpath=yes
  8850. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8851. hardcode_into_libs=yes
  8852. ;;
  8853. hpux9* | hpux10* | hpux11*)
  8854. # Give a soname corresponding to the major version so that dld.sl refuses to
  8855. # link against other versions.
  8856. version_type=sunos
  8857. need_lib_prefix=no
  8858. need_version=no
  8859. case $host_cpu in
  8860. ia64*)
  8861. shrext_cmds='.so'
  8862. hardcode_into_libs=yes
  8863. dynamic_linker="$host_os dld.so"
  8864. shlibpath_var=LD_LIBRARY_PATH
  8865. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8866. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8867. soname_spec='${libname}${release}${shared_ext}$major'
  8868. if test "X$HPUX_IA64_MODE" = X32; then
  8869. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8870. else
  8871. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8872. fi
  8873. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8874. ;;
  8875. hppa*64*)
  8876. shrext_cmds='.sl'
  8877. hardcode_into_libs=yes
  8878. dynamic_linker="$host_os dld.sl"
  8879. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8880. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8881. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8882. soname_spec='${libname}${release}${shared_ext}$major'
  8883. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8884. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8885. ;;
  8886. *)
  8887. shrext_cmds='.sl'
  8888. dynamic_linker="$host_os dld.sl"
  8889. shlibpath_var=SHLIB_PATH
  8890. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8891. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8892. soname_spec='${libname}${release}${shared_ext}$major'
  8893. ;;
  8894. esac
  8895. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8896. postinstall_cmds='chmod 555 $lib'
  8897. # or fails outright, so override atomically:
  8898. install_override_mode=555
  8899. ;;
  8900. interix[3-9]*)
  8901. version_type=linux # correct to gnu/linux during the next big refactor
  8902. need_lib_prefix=no
  8903. need_version=no
  8904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8905. soname_spec='${libname}${release}${shared_ext}$major'
  8906. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8907. shlibpath_var=LD_LIBRARY_PATH
  8908. shlibpath_overrides_runpath=no
  8909. hardcode_into_libs=yes
  8910. ;;
  8911. irix5* | irix6* | nonstopux*)
  8912. case $host_os in
  8913. nonstopux*) version_type=nonstopux ;;
  8914. *)
  8915. if test "$lt_cv_prog_gnu_ld" = yes; then
  8916. version_type=linux # correct to gnu/linux during the next big refactor
  8917. else
  8918. version_type=irix
  8919. fi ;;
  8920. esac
  8921. need_lib_prefix=no
  8922. need_version=no
  8923. soname_spec='${libname}${release}${shared_ext}$major'
  8924. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8925. case $host_os in
  8926. irix5* | nonstopux*)
  8927. libsuff= shlibsuff=
  8928. ;;
  8929. *)
  8930. case $LD in # libtool.m4 will add one of these switches to LD
  8931. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8932. libsuff= shlibsuff= libmagic=32-bit;;
  8933. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8934. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8935. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8936. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8937. *) libsuff= shlibsuff= libmagic=never-match;;
  8938. esac
  8939. ;;
  8940. esac
  8941. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8942. shlibpath_overrides_runpath=no
  8943. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8944. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8945. hardcode_into_libs=yes
  8946. ;;
  8947. # No shared lib support for Linux oldld, aout, or coff.
  8948. linux*oldld* | linux*aout* | linux*coff*)
  8949. dynamic_linker=no
  8950. ;;
  8951. # This must be glibc/ELF.
  8952. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8953. version_type=linux # correct to gnu/linux during the next big refactor
  8954. need_lib_prefix=no
  8955. need_version=no
  8956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8957. soname_spec='${libname}${release}${shared_ext}$major'
  8958. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8959. shlibpath_var=LD_LIBRARY_PATH
  8960. shlibpath_overrides_runpath=no
  8961. # Some binutils ld are patched to set DT_RUNPATH
  8962. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8963. $as_echo_n "(cached) " >&6
  8964. else
  8965. lt_cv_shlibpath_overrides_runpath=no
  8966. save_LDFLAGS=$LDFLAGS
  8967. save_libdir=$libdir
  8968. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8969. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8971. /* end confdefs.h. */
  8972. int
  8973. main ()
  8974. {
  8975. ;
  8976. return 0;
  8977. }
  8978. _ACEOF
  8979. if ac_fn_c_try_link "$LINENO"; then :
  8980. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8981. lt_cv_shlibpath_overrides_runpath=yes
  8982. fi
  8983. fi
  8984. rm -f core conftest.err conftest.$ac_objext \
  8985. conftest$ac_exeext conftest.$ac_ext
  8986. LDFLAGS=$save_LDFLAGS
  8987. libdir=$save_libdir
  8988. fi
  8989. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8990. # This implies no fast_install, which is unacceptable.
  8991. # Some rework will be needed to allow for fast_install
  8992. # before this can be enabled.
  8993. hardcode_into_libs=yes
  8994. # Append ld.so.conf contents to the search path
  8995. if test -f /etc/ld.so.conf; then
  8996. 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' ' '`
  8997. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8998. fi
  8999. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9000. # powerpc, because MkLinux only supported shared libraries with the
  9001. # GNU dynamic linker. Since this was broken with cross compilers,
  9002. # most powerpc-linux boxes support dynamic linking these days and
  9003. # people can always --disable-shared, the test was removed, and we
  9004. # assume the GNU/Linux dynamic linker is in use.
  9005. dynamic_linker='GNU/Linux ld.so'
  9006. ;;
  9007. netbsd*)
  9008. version_type=sunos
  9009. need_lib_prefix=no
  9010. need_version=no
  9011. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9013. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9014. dynamic_linker='NetBSD (a.out) ld.so'
  9015. else
  9016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9017. soname_spec='${libname}${release}${shared_ext}$major'
  9018. dynamic_linker='NetBSD ld.elf_so'
  9019. fi
  9020. shlibpath_var=LD_LIBRARY_PATH
  9021. shlibpath_overrides_runpath=yes
  9022. hardcode_into_libs=yes
  9023. ;;
  9024. newsos6)
  9025. version_type=linux # correct to gnu/linux during the next big refactor
  9026. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9027. shlibpath_var=LD_LIBRARY_PATH
  9028. shlibpath_overrides_runpath=yes
  9029. ;;
  9030. *nto* | *qnx*)
  9031. version_type=qnx
  9032. need_lib_prefix=no
  9033. need_version=no
  9034. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9035. soname_spec='${libname}${release}${shared_ext}$major'
  9036. shlibpath_var=LD_LIBRARY_PATH
  9037. shlibpath_overrides_runpath=no
  9038. hardcode_into_libs=yes
  9039. dynamic_linker='ldqnx.so'
  9040. ;;
  9041. openbsd*)
  9042. version_type=sunos
  9043. sys_lib_dlsearch_path_spec="/usr/lib"
  9044. need_lib_prefix=no
  9045. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9046. case $host_os in
  9047. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9048. *) need_version=no ;;
  9049. esac
  9050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9051. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9052. shlibpath_var=LD_LIBRARY_PATH
  9053. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9054. case $host_os in
  9055. openbsd2.[89] | openbsd2.[89].*)
  9056. shlibpath_overrides_runpath=no
  9057. ;;
  9058. *)
  9059. shlibpath_overrides_runpath=yes
  9060. ;;
  9061. esac
  9062. else
  9063. shlibpath_overrides_runpath=yes
  9064. fi
  9065. ;;
  9066. os2*)
  9067. libname_spec='$name'
  9068. shrext_cmds=".dll"
  9069. need_lib_prefix=no
  9070. library_names_spec='$libname${shared_ext} $libname.a'
  9071. dynamic_linker='OS/2 ld.exe'
  9072. shlibpath_var=LIBPATH
  9073. ;;
  9074. osf3* | osf4* | osf5*)
  9075. version_type=osf
  9076. need_lib_prefix=no
  9077. need_version=no
  9078. soname_spec='${libname}${release}${shared_ext}$major'
  9079. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9080. shlibpath_var=LD_LIBRARY_PATH
  9081. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9082. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9083. ;;
  9084. rdos*)
  9085. dynamic_linker=no
  9086. ;;
  9087. solaris*)
  9088. version_type=linux # correct to gnu/linux during the next big refactor
  9089. need_lib_prefix=no
  9090. need_version=no
  9091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9092. soname_spec='${libname}${release}${shared_ext}$major'
  9093. shlibpath_var=LD_LIBRARY_PATH
  9094. shlibpath_overrides_runpath=yes
  9095. hardcode_into_libs=yes
  9096. # ldd complains unless libraries are executable
  9097. postinstall_cmds='chmod +x $lib'
  9098. ;;
  9099. sunos4*)
  9100. version_type=sunos
  9101. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9102. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9103. shlibpath_var=LD_LIBRARY_PATH
  9104. shlibpath_overrides_runpath=yes
  9105. if test "$with_gnu_ld" = yes; then
  9106. need_lib_prefix=no
  9107. fi
  9108. need_version=yes
  9109. ;;
  9110. sysv4 | sysv4.3*)
  9111. version_type=linux # correct to gnu/linux during the next big refactor
  9112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9113. soname_spec='${libname}${release}${shared_ext}$major'
  9114. shlibpath_var=LD_LIBRARY_PATH
  9115. case $host_vendor in
  9116. sni)
  9117. shlibpath_overrides_runpath=no
  9118. need_lib_prefix=no
  9119. runpath_var=LD_RUN_PATH
  9120. ;;
  9121. siemens)
  9122. need_lib_prefix=no
  9123. ;;
  9124. motorola)
  9125. need_lib_prefix=no
  9126. need_version=no
  9127. shlibpath_overrides_runpath=no
  9128. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9129. ;;
  9130. esac
  9131. ;;
  9132. sysv4*MP*)
  9133. if test -d /usr/nec ;then
  9134. version_type=linux # correct to gnu/linux during the next big refactor
  9135. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9136. soname_spec='$libname${shared_ext}.$major'
  9137. shlibpath_var=LD_LIBRARY_PATH
  9138. fi
  9139. ;;
  9140. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9141. version_type=freebsd-elf
  9142. need_lib_prefix=no
  9143. need_version=no
  9144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9145. soname_spec='${libname}${release}${shared_ext}$major'
  9146. shlibpath_var=LD_LIBRARY_PATH
  9147. shlibpath_overrides_runpath=yes
  9148. hardcode_into_libs=yes
  9149. if test "$with_gnu_ld" = yes; then
  9150. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9151. else
  9152. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9153. case $host_os in
  9154. sco3.2v5*)
  9155. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9156. ;;
  9157. esac
  9158. fi
  9159. sys_lib_dlsearch_path_spec='/usr/lib'
  9160. ;;
  9161. tpf*)
  9162. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9163. version_type=linux # correct to gnu/linux during the next big refactor
  9164. need_lib_prefix=no
  9165. need_version=no
  9166. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9167. shlibpath_var=LD_LIBRARY_PATH
  9168. shlibpath_overrides_runpath=no
  9169. hardcode_into_libs=yes
  9170. ;;
  9171. uts4*)
  9172. version_type=linux # correct to gnu/linux during the next big refactor
  9173. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9174. soname_spec='${libname}${release}${shared_ext}$major'
  9175. shlibpath_var=LD_LIBRARY_PATH
  9176. ;;
  9177. *)
  9178. dynamic_linker=no
  9179. ;;
  9180. esac
  9181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9182. $as_echo "$dynamic_linker" >&6; }
  9183. test "$dynamic_linker" = no && can_build_shared=no
  9184. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9185. if test "$GCC" = yes; then
  9186. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9187. fi
  9188. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9189. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9190. fi
  9191. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9192. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9193. fi
  9194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9195. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9196. hardcode_action=
  9197. if test -n "$hardcode_libdir_flag_spec" ||
  9198. test -n "$runpath_var" ||
  9199. test "X$hardcode_automatic" = "Xyes" ; then
  9200. # We can hardcode non-existent directories.
  9201. if test "$hardcode_direct" != no &&
  9202. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9203. # have to relink, otherwise we might link with an installed library
  9204. # when we should be linking with a yet-to-be-installed one
  9205. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9206. test "$hardcode_minus_L" != no; then
  9207. # Linking always hardcodes the temporary library directory.
  9208. hardcode_action=relink
  9209. else
  9210. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9211. hardcode_action=immediate
  9212. fi
  9213. else
  9214. # We cannot hardcode anything, or else we can only hardcode existing
  9215. # directories.
  9216. hardcode_action=unsupported
  9217. fi
  9218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9219. $as_echo "$hardcode_action" >&6; }
  9220. if test "$hardcode_action" = relink ||
  9221. test "$inherit_rpath" = yes; then
  9222. # Fast installation is not supported
  9223. enable_fast_install=no
  9224. elif test "$shlibpath_overrides_runpath" = yes ||
  9225. test "$enable_shared" = no; then
  9226. # Fast installation is not necessary
  9227. enable_fast_install=needless
  9228. fi
  9229. if test "x$enable_dlopen" != xyes; then
  9230. enable_dlopen=unknown
  9231. enable_dlopen_self=unknown
  9232. enable_dlopen_self_static=unknown
  9233. else
  9234. lt_cv_dlopen=no
  9235. lt_cv_dlopen_libs=
  9236. case $host_os in
  9237. beos*)
  9238. lt_cv_dlopen="load_add_on"
  9239. lt_cv_dlopen_libs=
  9240. lt_cv_dlopen_self=yes
  9241. ;;
  9242. mingw* | pw32* | cegcc*)
  9243. lt_cv_dlopen="LoadLibrary"
  9244. lt_cv_dlopen_libs=
  9245. ;;
  9246. cygwin*)
  9247. lt_cv_dlopen="dlopen"
  9248. lt_cv_dlopen_libs=
  9249. ;;
  9250. darwin*)
  9251. # if libdl is installed we need to link against it
  9252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9253. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9254. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9255. $as_echo_n "(cached) " >&6
  9256. else
  9257. ac_check_lib_save_LIBS=$LIBS
  9258. LIBS="-ldl $LIBS"
  9259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9260. /* end confdefs.h. */
  9261. /* Override any GCC internal prototype to avoid an error.
  9262. Use char because int might match the return type of a GCC
  9263. builtin and then its argument prototype would still apply. */
  9264. #ifdef __cplusplus
  9265. extern "C"
  9266. #endif
  9267. char dlopen ();
  9268. int
  9269. main ()
  9270. {
  9271. return dlopen ();
  9272. ;
  9273. return 0;
  9274. }
  9275. _ACEOF
  9276. if ac_fn_c_try_link "$LINENO"; then :
  9277. ac_cv_lib_dl_dlopen=yes
  9278. else
  9279. ac_cv_lib_dl_dlopen=no
  9280. fi
  9281. rm -f core conftest.err conftest.$ac_objext \
  9282. conftest$ac_exeext conftest.$ac_ext
  9283. LIBS=$ac_check_lib_save_LIBS
  9284. fi
  9285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9286. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9287. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9288. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9289. else
  9290. lt_cv_dlopen="dyld"
  9291. lt_cv_dlopen_libs=
  9292. lt_cv_dlopen_self=yes
  9293. fi
  9294. ;;
  9295. *)
  9296. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9297. if test "x$ac_cv_func_shl_load" = xyes; then :
  9298. lt_cv_dlopen="shl_load"
  9299. else
  9300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9301. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9302. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9303. $as_echo_n "(cached) " >&6
  9304. else
  9305. ac_check_lib_save_LIBS=$LIBS
  9306. LIBS="-ldld $LIBS"
  9307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9308. /* end confdefs.h. */
  9309. /* Override any GCC internal prototype to avoid an error.
  9310. Use char because int might match the return type of a GCC
  9311. builtin and then its argument prototype would still apply. */
  9312. #ifdef __cplusplus
  9313. extern "C"
  9314. #endif
  9315. char shl_load ();
  9316. int
  9317. main ()
  9318. {
  9319. return shl_load ();
  9320. ;
  9321. return 0;
  9322. }
  9323. _ACEOF
  9324. if ac_fn_c_try_link "$LINENO"; then :
  9325. ac_cv_lib_dld_shl_load=yes
  9326. else
  9327. ac_cv_lib_dld_shl_load=no
  9328. fi
  9329. rm -f core conftest.err conftest.$ac_objext \
  9330. conftest$ac_exeext conftest.$ac_ext
  9331. LIBS=$ac_check_lib_save_LIBS
  9332. fi
  9333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9334. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9335. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9336. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9337. else
  9338. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9339. if test "x$ac_cv_func_dlopen" = xyes; then :
  9340. lt_cv_dlopen="dlopen"
  9341. else
  9342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9343. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9344. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9345. $as_echo_n "(cached) " >&6
  9346. else
  9347. ac_check_lib_save_LIBS=$LIBS
  9348. LIBS="-ldl $LIBS"
  9349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9350. /* end confdefs.h. */
  9351. /* Override any GCC internal prototype to avoid an error.
  9352. Use char because int might match the return type of a GCC
  9353. builtin and then its argument prototype would still apply. */
  9354. #ifdef __cplusplus
  9355. extern "C"
  9356. #endif
  9357. char dlopen ();
  9358. int
  9359. main ()
  9360. {
  9361. return dlopen ();
  9362. ;
  9363. return 0;
  9364. }
  9365. _ACEOF
  9366. if ac_fn_c_try_link "$LINENO"; then :
  9367. ac_cv_lib_dl_dlopen=yes
  9368. else
  9369. ac_cv_lib_dl_dlopen=no
  9370. fi
  9371. rm -f core conftest.err conftest.$ac_objext \
  9372. conftest$ac_exeext conftest.$ac_ext
  9373. LIBS=$ac_check_lib_save_LIBS
  9374. fi
  9375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9376. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9377. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9378. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9379. else
  9380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9381. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9382. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9383. $as_echo_n "(cached) " >&6
  9384. else
  9385. ac_check_lib_save_LIBS=$LIBS
  9386. LIBS="-lsvld $LIBS"
  9387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9388. /* end confdefs.h. */
  9389. /* Override any GCC internal prototype to avoid an error.
  9390. Use char because int might match the return type of a GCC
  9391. builtin and then its argument prototype would still apply. */
  9392. #ifdef __cplusplus
  9393. extern "C"
  9394. #endif
  9395. char dlopen ();
  9396. int
  9397. main ()
  9398. {
  9399. return dlopen ();
  9400. ;
  9401. return 0;
  9402. }
  9403. _ACEOF
  9404. if ac_fn_c_try_link "$LINENO"; then :
  9405. ac_cv_lib_svld_dlopen=yes
  9406. else
  9407. ac_cv_lib_svld_dlopen=no
  9408. fi
  9409. rm -f core conftest.err conftest.$ac_objext \
  9410. conftest$ac_exeext conftest.$ac_ext
  9411. LIBS=$ac_check_lib_save_LIBS
  9412. fi
  9413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9414. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9415. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9416. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9417. else
  9418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9419. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9420. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9421. $as_echo_n "(cached) " >&6
  9422. else
  9423. ac_check_lib_save_LIBS=$LIBS
  9424. LIBS="-ldld $LIBS"
  9425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9426. /* end confdefs.h. */
  9427. /* Override any GCC internal prototype to avoid an error.
  9428. Use char because int might match the return type of a GCC
  9429. builtin and then its argument prototype would still apply. */
  9430. #ifdef __cplusplus
  9431. extern "C"
  9432. #endif
  9433. char dld_link ();
  9434. int
  9435. main ()
  9436. {
  9437. return dld_link ();
  9438. ;
  9439. return 0;
  9440. }
  9441. _ACEOF
  9442. if ac_fn_c_try_link "$LINENO"; then :
  9443. ac_cv_lib_dld_dld_link=yes
  9444. else
  9445. ac_cv_lib_dld_dld_link=no
  9446. fi
  9447. rm -f core conftest.err conftest.$ac_objext \
  9448. conftest$ac_exeext conftest.$ac_ext
  9449. LIBS=$ac_check_lib_save_LIBS
  9450. fi
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9452. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9453. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9454. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9455. fi
  9456. fi
  9457. fi
  9458. fi
  9459. fi
  9460. fi
  9461. ;;
  9462. esac
  9463. if test "x$lt_cv_dlopen" != xno; then
  9464. enable_dlopen=yes
  9465. else
  9466. enable_dlopen=no
  9467. fi
  9468. case $lt_cv_dlopen in
  9469. dlopen)
  9470. save_CPPFLAGS="$CPPFLAGS"
  9471. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9472. save_LDFLAGS="$LDFLAGS"
  9473. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9474. save_LIBS="$LIBS"
  9475. LIBS="$lt_cv_dlopen_libs $LIBS"
  9476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9477. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9478. if ${lt_cv_dlopen_self+:} false; then :
  9479. $as_echo_n "(cached) " >&6
  9480. else
  9481. if test "$cross_compiling" = yes; then :
  9482. lt_cv_dlopen_self=cross
  9483. else
  9484. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9485. lt_status=$lt_dlunknown
  9486. cat > conftest.$ac_ext <<_LT_EOF
  9487. #line $LINENO "configure"
  9488. #include "confdefs.h"
  9489. #if HAVE_DLFCN_H
  9490. #include <dlfcn.h>
  9491. #endif
  9492. #include <stdio.h>
  9493. #ifdef RTLD_GLOBAL
  9494. # define LT_DLGLOBAL RTLD_GLOBAL
  9495. #else
  9496. # ifdef DL_GLOBAL
  9497. # define LT_DLGLOBAL DL_GLOBAL
  9498. # else
  9499. # define LT_DLGLOBAL 0
  9500. # endif
  9501. #endif
  9502. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9503. find out it does not work in some platform. */
  9504. #ifndef LT_DLLAZY_OR_NOW
  9505. # ifdef RTLD_LAZY
  9506. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9507. # else
  9508. # ifdef DL_LAZY
  9509. # define LT_DLLAZY_OR_NOW DL_LAZY
  9510. # else
  9511. # ifdef RTLD_NOW
  9512. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9513. # else
  9514. # ifdef DL_NOW
  9515. # define LT_DLLAZY_OR_NOW DL_NOW
  9516. # else
  9517. # define LT_DLLAZY_OR_NOW 0
  9518. # endif
  9519. # endif
  9520. # endif
  9521. # endif
  9522. #endif
  9523. /* When -fvisbility=hidden is used, assume the code has been annotated
  9524. correspondingly for the symbols needed. */
  9525. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9526. int fnord () __attribute__((visibility("default")));
  9527. #endif
  9528. int fnord () { return 42; }
  9529. int main ()
  9530. {
  9531. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9532. int status = $lt_dlunknown;
  9533. if (self)
  9534. {
  9535. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9536. else
  9537. {
  9538. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9539. else puts (dlerror ());
  9540. }
  9541. /* dlclose (self); */
  9542. }
  9543. else
  9544. puts (dlerror ());
  9545. return status;
  9546. }
  9547. _LT_EOF
  9548. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9549. (eval $ac_link) 2>&5
  9550. ac_status=$?
  9551. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9552. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9553. (./conftest; exit; ) >&5 2>/dev/null
  9554. lt_status=$?
  9555. case x$lt_status in
  9556. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9557. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9558. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9559. esac
  9560. else :
  9561. # compilation failed
  9562. lt_cv_dlopen_self=no
  9563. fi
  9564. fi
  9565. rm -fr conftest*
  9566. fi
  9567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9568. $as_echo "$lt_cv_dlopen_self" >&6; }
  9569. if test "x$lt_cv_dlopen_self" = xyes; then
  9570. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9572. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9573. if ${lt_cv_dlopen_self_static+:} false; then :
  9574. $as_echo_n "(cached) " >&6
  9575. else
  9576. if test "$cross_compiling" = yes; then :
  9577. lt_cv_dlopen_self_static=cross
  9578. else
  9579. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9580. lt_status=$lt_dlunknown
  9581. cat > conftest.$ac_ext <<_LT_EOF
  9582. #line $LINENO "configure"
  9583. #include "confdefs.h"
  9584. #if HAVE_DLFCN_H
  9585. #include <dlfcn.h>
  9586. #endif
  9587. #include <stdio.h>
  9588. #ifdef RTLD_GLOBAL
  9589. # define LT_DLGLOBAL RTLD_GLOBAL
  9590. #else
  9591. # ifdef DL_GLOBAL
  9592. # define LT_DLGLOBAL DL_GLOBAL
  9593. # else
  9594. # define LT_DLGLOBAL 0
  9595. # endif
  9596. #endif
  9597. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9598. find out it does not work in some platform. */
  9599. #ifndef LT_DLLAZY_OR_NOW
  9600. # ifdef RTLD_LAZY
  9601. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9602. # else
  9603. # ifdef DL_LAZY
  9604. # define LT_DLLAZY_OR_NOW DL_LAZY
  9605. # else
  9606. # ifdef RTLD_NOW
  9607. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9608. # else
  9609. # ifdef DL_NOW
  9610. # define LT_DLLAZY_OR_NOW DL_NOW
  9611. # else
  9612. # define LT_DLLAZY_OR_NOW 0
  9613. # endif
  9614. # endif
  9615. # endif
  9616. # endif
  9617. #endif
  9618. /* When -fvisbility=hidden is used, assume the code has been annotated
  9619. correspondingly for the symbols needed. */
  9620. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9621. int fnord () __attribute__((visibility("default")));
  9622. #endif
  9623. int fnord () { return 42; }
  9624. int main ()
  9625. {
  9626. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9627. int status = $lt_dlunknown;
  9628. if (self)
  9629. {
  9630. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9631. else
  9632. {
  9633. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9634. else puts (dlerror ());
  9635. }
  9636. /* dlclose (self); */
  9637. }
  9638. else
  9639. puts (dlerror ());
  9640. return status;
  9641. }
  9642. _LT_EOF
  9643. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9644. (eval $ac_link) 2>&5
  9645. ac_status=$?
  9646. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9647. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9648. (./conftest; exit; ) >&5 2>/dev/null
  9649. lt_status=$?
  9650. case x$lt_status in
  9651. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9652. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9653. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9654. esac
  9655. else :
  9656. # compilation failed
  9657. lt_cv_dlopen_self_static=no
  9658. fi
  9659. fi
  9660. rm -fr conftest*
  9661. fi
  9662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9663. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9664. fi
  9665. CPPFLAGS="$save_CPPFLAGS"
  9666. LDFLAGS="$save_LDFLAGS"
  9667. LIBS="$save_LIBS"
  9668. ;;
  9669. esac
  9670. case $lt_cv_dlopen_self in
  9671. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9672. *) enable_dlopen_self=unknown ;;
  9673. esac
  9674. case $lt_cv_dlopen_self_static in
  9675. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9676. *) enable_dlopen_self_static=unknown ;;
  9677. esac
  9678. fi
  9679. striplib=
  9680. old_striplib=
  9681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9682. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9683. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9684. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9685. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9687. $as_echo "yes" >&6; }
  9688. else
  9689. # FIXME - insert some real tests, host_os isn't really good enough
  9690. case $host_os in
  9691. darwin*)
  9692. if test -n "$STRIP" ; then
  9693. striplib="$STRIP -x"
  9694. old_striplib="$STRIP -S"
  9695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9696. $as_echo "yes" >&6; }
  9697. else
  9698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9699. $as_echo "no" >&6; }
  9700. fi
  9701. ;;
  9702. *)
  9703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9704. $as_echo "no" >&6; }
  9705. ;;
  9706. esac
  9707. fi
  9708. # Report which library types will actually be built
  9709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9710. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9712. $as_echo "$can_build_shared" >&6; }
  9713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9714. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9715. test "$can_build_shared" = "no" && enable_shared=no
  9716. # On AIX, shared libraries and static libraries use the same namespace, and
  9717. # are all built from PIC.
  9718. case $host_os in
  9719. aix3*)
  9720. test "$enable_shared" = yes && enable_static=no
  9721. if test -n "$RANLIB"; then
  9722. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9723. postinstall_cmds='$RANLIB $lib'
  9724. fi
  9725. ;;
  9726. aix[4-9]*)
  9727. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9728. test "$enable_shared" = yes && enable_static=no
  9729. fi
  9730. ;;
  9731. esac
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9733. $as_echo "$enable_shared" >&6; }
  9734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9735. $as_echo_n "checking whether to build static libraries... " >&6; }
  9736. # Make sure either enable_shared or enable_static is yes.
  9737. test "$enable_shared" = yes || enable_static=yes
  9738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9739. $as_echo "$enable_static" >&6; }
  9740. fi
  9741. ac_ext=c
  9742. ac_cpp='$CPP $CPPFLAGS'
  9743. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9744. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9745. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9746. CC="$lt_save_CC"
  9747. ac_config_commands="$ac_config_commands libtool"
  9748. # Only expand once:
  9749. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9750. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9751. LT_REVISION=$SDL_INTERFACE_AGE
  9752. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9753. ac_ext=c
  9754. ac_cpp='$CPP $CPPFLAGS'
  9755. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9756. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9757. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9758. if test -n "$ac_tool_prefix"; then
  9759. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9760. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9762. $as_echo_n "checking for $ac_word... " >&6; }
  9763. if ${ac_cv_prog_CC+:} false; then :
  9764. $as_echo_n "(cached) " >&6
  9765. else
  9766. if test -n "$CC"; then
  9767. ac_cv_prog_CC="$CC" # Let the user override the test.
  9768. else
  9769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9770. for as_dir in $PATH
  9771. do
  9772. IFS=$as_save_IFS
  9773. test -z "$as_dir" && as_dir=.
  9774. for ac_exec_ext in '' $ac_executable_extensions; do
  9775. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9776. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9778. break 2
  9779. fi
  9780. done
  9781. done
  9782. IFS=$as_save_IFS
  9783. fi
  9784. fi
  9785. CC=$ac_cv_prog_CC
  9786. if test -n "$CC"; then
  9787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9788. $as_echo "$CC" >&6; }
  9789. else
  9790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9791. $as_echo "no" >&6; }
  9792. fi
  9793. fi
  9794. if test -z "$ac_cv_prog_CC"; then
  9795. ac_ct_CC=$CC
  9796. # Extract the first word of "gcc", so it can be a program name with args.
  9797. set dummy gcc; ac_word=$2
  9798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9799. $as_echo_n "checking for $ac_word... " >&6; }
  9800. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9801. $as_echo_n "(cached) " >&6
  9802. else
  9803. if test -n "$ac_ct_CC"; then
  9804. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9805. else
  9806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9807. for as_dir in $PATH
  9808. do
  9809. IFS=$as_save_IFS
  9810. test -z "$as_dir" && as_dir=.
  9811. for ac_exec_ext in '' $ac_executable_extensions; do
  9812. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9813. ac_cv_prog_ac_ct_CC="gcc"
  9814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9815. break 2
  9816. fi
  9817. done
  9818. done
  9819. IFS=$as_save_IFS
  9820. fi
  9821. fi
  9822. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9823. if test -n "$ac_ct_CC"; then
  9824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9825. $as_echo "$ac_ct_CC" >&6; }
  9826. else
  9827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9828. $as_echo "no" >&6; }
  9829. fi
  9830. if test "x$ac_ct_CC" = x; then
  9831. CC=""
  9832. else
  9833. case $cross_compiling:$ac_tool_warned in
  9834. yes:)
  9835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9836. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9837. ac_tool_warned=yes ;;
  9838. esac
  9839. CC=$ac_ct_CC
  9840. fi
  9841. else
  9842. CC="$ac_cv_prog_CC"
  9843. fi
  9844. if test -z "$CC"; then
  9845. if test -n "$ac_tool_prefix"; then
  9846. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9847. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9849. $as_echo_n "checking for $ac_word... " >&6; }
  9850. if ${ac_cv_prog_CC+:} false; then :
  9851. $as_echo_n "(cached) " >&6
  9852. else
  9853. if test -n "$CC"; then
  9854. ac_cv_prog_CC="$CC" # Let the user override the test.
  9855. else
  9856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9857. for as_dir in $PATH
  9858. do
  9859. IFS=$as_save_IFS
  9860. test -z "$as_dir" && as_dir=.
  9861. for ac_exec_ext in '' $ac_executable_extensions; do
  9862. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9863. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9865. break 2
  9866. fi
  9867. done
  9868. done
  9869. IFS=$as_save_IFS
  9870. fi
  9871. fi
  9872. CC=$ac_cv_prog_CC
  9873. if test -n "$CC"; then
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9875. $as_echo "$CC" >&6; }
  9876. else
  9877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9878. $as_echo "no" >&6; }
  9879. fi
  9880. fi
  9881. fi
  9882. if test -z "$CC"; then
  9883. # Extract the first word of "cc", so it can be a program name with args.
  9884. set dummy cc; ac_word=$2
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9886. $as_echo_n "checking for $ac_word... " >&6; }
  9887. if ${ac_cv_prog_CC+:} false; then :
  9888. $as_echo_n "(cached) " >&6
  9889. else
  9890. if test -n "$CC"; then
  9891. ac_cv_prog_CC="$CC" # Let the user override the test.
  9892. else
  9893. ac_prog_rejected=no
  9894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9895. for as_dir in $PATH
  9896. do
  9897. IFS=$as_save_IFS
  9898. test -z "$as_dir" && as_dir=.
  9899. for ac_exec_ext in '' $ac_executable_extensions; do
  9900. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9901. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9902. ac_prog_rejected=yes
  9903. continue
  9904. fi
  9905. ac_cv_prog_CC="cc"
  9906. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9907. break 2
  9908. fi
  9909. done
  9910. done
  9911. IFS=$as_save_IFS
  9912. if test $ac_prog_rejected = yes; then
  9913. # We found a bogon in the path, so make sure we never use it.
  9914. set dummy $ac_cv_prog_CC
  9915. shift
  9916. if test $# != 0; then
  9917. # We chose a different compiler from the bogus one.
  9918. # However, it has the same basename, so the bogon will be chosen
  9919. # first if we set CC to just the basename; use the full file name.
  9920. shift
  9921. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9922. fi
  9923. fi
  9924. fi
  9925. fi
  9926. CC=$ac_cv_prog_CC
  9927. if test -n "$CC"; then
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9929. $as_echo "$CC" >&6; }
  9930. else
  9931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9932. $as_echo "no" >&6; }
  9933. fi
  9934. fi
  9935. if test -z "$CC"; then
  9936. if test -n "$ac_tool_prefix"; then
  9937. for ac_prog in cl.exe
  9938. do
  9939. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9940. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9942. $as_echo_n "checking for $ac_word... " >&6; }
  9943. if ${ac_cv_prog_CC+:} false; then :
  9944. $as_echo_n "(cached) " >&6
  9945. else
  9946. if test -n "$CC"; then
  9947. ac_cv_prog_CC="$CC" # Let the user override the test.
  9948. else
  9949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9950. for as_dir in $PATH
  9951. do
  9952. IFS=$as_save_IFS
  9953. test -z "$as_dir" && as_dir=.
  9954. for ac_exec_ext in '' $ac_executable_extensions; do
  9955. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9956. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9958. break 2
  9959. fi
  9960. done
  9961. done
  9962. IFS=$as_save_IFS
  9963. fi
  9964. fi
  9965. CC=$ac_cv_prog_CC
  9966. if test -n "$CC"; then
  9967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9968. $as_echo "$CC" >&6; }
  9969. else
  9970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9971. $as_echo "no" >&6; }
  9972. fi
  9973. test -n "$CC" && break
  9974. done
  9975. fi
  9976. if test -z "$CC"; then
  9977. ac_ct_CC=$CC
  9978. for ac_prog in cl.exe
  9979. do
  9980. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9981. set dummy $ac_prog; ac_word=$2
  9982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9983. $as_echo_n "checking for $ac_word... " >&6; }
  9984. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9985. $as_echo_n "(cached) " >&6
  9986. else
  9987. if test -n "$ac_ct_CC"; then
  9988. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9989. else
  9990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9991. for as_dir in $PATH
  9992. do
  9993. IFS=$as_save_IFS
  9994. test -z "$as_dir" && as_dir=.
  9995. for ac_exec_ext in '' $ac_executable_extensions; do
  9996. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9997. ac_cv_prog_ac_ct_CC="$ac_prog"
  9998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9999. break 2
  10000. fi
  10001. done
  10002. done
  10003. IFS=$as_save_IFS
  10004. fi
  10005. fi
  10006. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10007. if test -n "$ac_ct_CC"; then
  10008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10009. $as_echo "$ac_ct_CC" >&6; }
  10010. else
  10011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10012. $as_echo "no" >&6; }
  10013. fi
  10014. test -n "$ac_ct_CC" && break
  10015. done
  10016. if test "x$ac_ct_CC" = x; then
  10017. CC=""
  10018. else
  10019. case $cross_compiling:$ac_tool_warned in
  10020. yes:)
  10021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10022. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10023. ac_tool_warned=yes ;;
  10024. esac
  10025. CC=$ac_ct_CC
  10026. fi
  10027. fi
  10028. fi
  10029. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10030. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10031. as_fn_error $? "no acceptable C compiler found in \$PATH
  10032. See \`config.log' for more details" "$LINENO" 5; }
  10033. # Provide some information about the compiler.
  10034. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10035. set X $ac_compile
  10036. ac_compiler=$2
  10037. for ac_option in --version -v -V -qversion; do
  10038. { { ac_try="$ac_compiler $ac_option >&5"
  10039. case "(($ac_try" in
  10040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10041. *) ac_try_echo=$ac_try;;
  10042. esac
  10043. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10044. $as_echo "$ac_try_echo"; } >&5
  10045. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10046. ac_status=$?
  10047. if test -s conftest.err; then
  10048. sed '10a\
  10049. ... rest of stderr output deleted ...
  10050. 10q' conftest.err >conftest.er1
  10051. cat conftest.er1 >&5
  10052. fi
  10053. rm -f conftest.er1 conftest.err
  10054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10055. test $ac_status = 0; }
  10056. done
  10057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10058. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10059. if ${ac_cv_c_compiler_gnu+:} false; then :
  10060. $as_echo_n "(cached) " >&6
  10061. else
  10062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10063. /* end confdefs.h. */
  10064. int
  10065. main ()
  10066. {
  10067. #ifndef __GNUC__
  10068. choke me
  10069. #endif
  10070. ;
  10071. return 0;
  10072. }
  10073. _ACEOF
  10074. if ac_fn_c_try_compile "$LINENO"; then :
  10075. ac_compiler_gnu=yes
  10076. else
  10077. ac_compiler_gnu=no
  10078. fi
  10079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10080. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10081. fi
  10082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10083. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10084. if test $ac_compiler_gnu = yes; then
  10085. GCC=yes
  10086. else
  10087. GCC=
  10088. fi
  10089. ac_test_CFLAGS=${CFLAGS+set}
  10090. ac_save_CFLAGS=$CFLAGS
  10091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10092. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10093. if ${ac_cv_prog_cc_g+:} false; then :
  10094. $as_echo_n "(cached) " >&6
  10095. else
  10096. ac_save_c_werror_flag=$ac_c_werror_flag
  10097. ac_c_werror_flag=yes
  10098. ac_cv_prog_cc_g=no
  10099. CFLAGS="-g"
  10100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10101. /* end confdefs.h. */
  10102. int
  10103. main ()
  10104. {
  10105. ;
  10106. return 0;
  10107. }
  10108. _ACEOF
  10109. if ac_fn_c_try_compile "$LINENO"; then :
  10110. ac_cv_prog_cc_g=yes
  10111. else
  10112. CFLAGS=""
  10113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10114. /* end confdefs.h. */
  10115. int
  10116. main ()
  10117. {
  10118. ;
  10119. return 0;
  10120. }
  10121. _ACEOF
  10122. if ac_fn_c_try_compile "$LINENO"; then :
  10123. else
  10124. ac_c_werror_flag=$ac_save_c_werror_flag
  10125. CFLAGS="-g"
  10126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10127. /* end confdefs.h. */
  10128. int
  10129. main ()
  10130. {
  10131. ;
  10132. return 0;
  10133. }
  10134. _ACEOF
  10135. if ac_fn_c_try_compile "$LINENO"; then :
  10136. ac_cv_prog_cc_g=yes
  10137. fi
  10138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10139. fi
  10140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10141. fi
  10142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10143. ac_c_werror_flag=$ac_save_c_werror_flag
  10144. fi
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10146. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10147. if test "$ac_test_CFLAGS" = set; then
  10148. CFLAGS=$ac_save_CFLAGS
  10149. elif test $ac_cv_prog_cc_g = yes; then
  10150. if test "$GCC" = yes; then
  10151. CFLAGS="-g -O2"
  10152. else
  10153. CFLAGS="-g"
  10154. fi
  10155. else
  10156. if test "$GCC" = yes; then
  10157. CFLAGS="-O2"
  10158. else
  10159. CFLAGS=
  10160. fi
  10161. fi
  10162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10163. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10164. if ${ac_cv_prog_cc_c89+:} false; then :
  10165. $as_echo_n "(cached) " >&6
  10166. else
  10167. ac_cv_prog_cc_c89=no
  10168. ac_save_CC=$CC
  10169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10170. /* end confdefs.h. */
  10171. #include <stdarg.h>
  10172. #include <stdio.h>
  10173. struct stat;
  10174. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10175. struct buf { int x; };
  10176. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10177. static char *e (p, i)
  10178. char **p;
  10179. int i;
  10180. {
  10181. return p[i];
  10182. }
  10183. static char *f (char * (*g) (char **, int), char **p, ...)
  10184. {
  10185. char *s;
  10186. va_list v;
  10187. va_start (v,p);
  10188. s = g (p, va_arg (v,int));
  10189. va_end (v);
  10190. return s;
  10191. }
  10192. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10193. function prototypes and stuff, but not '\xHH' hex character constants.
  10194. These don't provoke an error unfortunately, instead are silently treated
  10195. as 'x'. The following induces an error, until -std is added to get
  10196. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10197. array size at least. It's necessary to write '\x00'==0 to get something
  10198. that's true only with -std. */
  10199. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10200. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10201. inside strings and character constants. */
  10202. #define FOO(x) 'x'
  10203. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10204. int test (int i, double x);
  10205. struct s1 {int (*f) (int a);};
  10206. struct s2 {int (*f) (double a);};
  10207. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10208. int argc;
  10209. char **argv;
  10210. int
  10211. main ()
  10212. {
  10213. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10214. ;
  10215. return 0;
  10216. }
  10217. _ACEOF
  10218. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10219. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10220. do
  10221. CC="$ac_save_CC $ac_arg"
  10222. if ac_fn_c_try_compile "$LINENO"; then :
  10223. ac_cv_prog_cc_c89=$ac_arg
  10224. fi
  10225. rm -f core conftest.err conftest.$ac_objext
  10226. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10227. done
  10228. rm -f conftest.$ac_ext
  10229. CC=$ac_save_CC
  10230. fi
  10231. # AC_CACHE_VAL
  10232. case "x$ac_cv_prog_cc_c89" in
  10233. x)
  10234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10235. $as_echo "none needed" >&6; } ;;
  10236. xno)
  10237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10238. $as_echo "unsupported" >&6; } ;;
  10239. *)
  10240. CC="$CC $ac_cv_prog_cc_c89"
  10241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10242. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10243. esac
  10244. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10245. fi
  10246. ac_ext=c
  10247. ac_cpp='$CPP $CPPFLAGS'
  10248. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10249. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10250. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10251. ac_ext=cpp
  10252. ac_cpp='$CXXCPP $CPPFLAGS'
  10253. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10254. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10255. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10256. if test -z "$CXX"; then
  10257. if test -n "$CCC"; then
  10258. CXX=$CCC
  10259. else
  10260. if test -n "$ac_tool_prefix"; then
  10261. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10262. do
  10263. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10264. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10266. $as_echo_n "checking for $ac_word... " >&6; }
  10267. if ${ac_cv_prog_CXX+:} false; then :
  10268. $as_echo_n "(cached) " >&6
  10269. else
  10270. if test -n "$CXX"; then
  10271. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10272. else
  10273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10274. for as_dir in $PATH
  10275. do
  10276. IFS=$as_save_IFS
  10277. test -z "$as_dir" && as_dir=.
  10278. for ac_exec_ext in '' $ac_executable_extensions; do
  10279. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10280. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10282. break 2
  10283. fi
  10284. done
  10285. done
  10286. IFS=$as_save_IFS
  10287. fi
  10288. fi
  10289. CXX=$ac_cv_prog_CXX
  10290. if test -n "$CXX"; then
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10292. $as_echo "$CXX" >&6; }
  10293. else
  10294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10295. $as_echo "no" >&6; }
  10296. fi
  10297. test -n "$CXX" && break
  10298. done
  10299. fi
  10300. if test -z "$CXX"; then
  10301. ac_ct_CXX=$CXX
  10302. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10303. do
  10304. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10305. set dummy $ac_prog; ac_word=$2
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10307. $as_echo_n "checking for $ac_word... " >&6; }
  10308. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10309. $as_echo_n "(cached) " >&6
  10310. else
  10311. if test -n "$ac_ct_CXX"; then
  10312. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10313. else
  10314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10315. for as_dir in $PATH
  10316. do
  10317. IFS=$as_save_IFS
  10318. test -z "$as_dir" && as_dir=.
  10319. for ac_exec_ext in '' $ac_executable_extensions; do
  10320. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10321. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10323. break 2
  10324. fi
  10325. done
  10326. done
  10327. IFS=$as_save_IFS
  10328. fi
  10329. fi
  10330. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10331. if test -n "$ac_ct_CXX"; then
  10332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10333. $as_echo "$ac_ct_CXX" >&6; }
  10334. else
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10336. $as_echo "no" >&6; }
  10337. fi
  10338. test -n "$ac_ct_CXX" && break
  10339. done
  10340. if test "x$ac_ct_CXX" = x; then
  10341. CXX="g++"
  10342. else
  10343. case $cross_compiling:$ac_tool_warned in
  10344. yes:)
  10345. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10346. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10347. ac_tool_warned=yes ;;
  10348. esac
  10349. CXX=$ac_ct_CXX
  10350. fi
  10351. fi
  10352. fi
  10353. fi
  10354. # Provide some information about the compiler.
  10355. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10356. set X $ac_compile
  10357. ac_compiler=$2
  10358. for ac_option in --version -v -V -qversion; do
  10359. { { ac_try="$ac_compiler $ac_option >&5"
  10360. case "(($ac_try" in
  10361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10362. *) ac_try_echo=$ac_try;;
  10363. esac
  10364. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10365. $as_echo "$ac_try_echo"; } >&5
  10366. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10367. ac_status=$?
  10368. if test -s conftest.err; then
  10369. sed '10a\
  10370. ... rest of stderr output deleted ...
  10371. 10q' conftest.err >conftest.er1
  10372. cat conftest.er1 >&5
  10373. fi
  10374. rm -f conftest.er1 conftest.err
  10375. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10376. test $ac_status = 0; }
  10377. done
  10378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10379. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10380. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10381. $as_echo_n "(cached) " >&6
  10382. else
  10383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10384. /* end confdefs.h. */
  10385. int
  10386. main ()
  10387. {
  10388. #ifndef __GNUC__
  10389. choke me
  10390. #endif
  10391. ;
  10392. return 0;
  10393. }
  10394. _ACEOF
  10395. if ac_fn_cxx_try_compile "$LINENO"; then :
  10396. ac_compiler_gnu=yes
  10397. else
  10398. ac_compiler_gnu=no
  10399. fi
  10400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10401. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10402. fi
  10403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10404. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10405. if test $ac_compiler_gnu = yes; then
  10406. GXX=yes
  10407. else
  10408. GXX=
  10409. fi
  10410. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10411. ac_save_CXXFLAGS=$CXXFLAGS
  10412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10413. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10414. if ${ac_cv_prog_cxx_g+:} false; then :
  10415. $as_echo_n "(cached) " >&6
  10416. else
  10417. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10418. ac_cxx_werror_flag=yes
  10419. ac_cv_prog_cxx_g=no
  10420. CXXFLAGS="-g"
  10421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10422. /* end confdefs.h. */
  10423. int
  10424. main ()
  10425. {
  10426. ;
  10427. return 0;
  10428. }
  10429. _ACEOF
  10430. if ac_fn_cxx_try_compile "$LINENO"; then :
  10431. ac_cv_prog_cxx_g=yes
  10432. else
  10433. CXXFLAGS=""
  10434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10435. /* end confdefs.h. */
  10436. int
  10437. main ()
  10438. {
  10439. ;
  10440. return 0;
  10441. }
  10442. _ACEOF
  10443. if ac_fn_cxx_try_compile "$LINENO"; then :
  10444. else
  10445. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10446. CXXFLAGS="-g"
  10447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10448. /* end confdefs.h. */
  10449. int
  10450. main ()
  10451. {
  10452. ;
  10453. return 0;
  10454. }
  10455. _ACEOF
  10456. if ac_fn_cxx_try_compile "$LINENO"; then :
  10457. ac_cv_prog_cxx_g=yes
  10458. fi
  10459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10460. fi
  10461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10462. fi
  10463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10464. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10465. fi
  10466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10467. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10468. if test "$ac_test_CXXFLAGS" = set; then
  10469. CXXFLAGS=$ac_save_CXXFLAGS
  10470. elif test $ac_cv_prog_cxx_g = yes; then
  10471. if test "$GXX" = yes; then
  10472. CXXFLAGS="-g -O2"
  10473. else
  10474. CXXFLAGS="-g"
  10475. fi
  10476. else
  10477. if test "$GXX" = yes; then
  10478. CXXFLAGS="-O2"
  10479. else
  10480. CXXFLAGS=
  10481. fi
  10482. fi
  10483. ac_ext=c
  10484. ac_cpp='$CPP $CPPFLAGS'
  10485. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10486. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10487. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10488. func_stripname_cnf ()
  10489. {
  10490. case ${2} in
  10491. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10492. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10493. esac
  10494. } # func_stripname_cnf
  10495. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10496. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10497. (test "X$CXX" != "Xg++"))) ; then
  10498. ac_ext=cpp
  10499. ac_cpp='$CXXCPP $CPPFLAGS'
  10500. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10501. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10502. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10504. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10505. if test -z "$CXXCPP"; then
  10506. if ${ac_cv_prog_CXXCPP+:} false; then :
  10507. $as_echo_n "(cached) " >&6
  10508. else
  10509. # Double quotes because CXXCPP needs to be expanded
  10510. for CXXCPP in "$CXX -E" "/lib/cpp"
  10511. do
  10512. ac_preproc_ok=false
  10513. for ac_cxx_preproc_warn_flag in '' yes
  10514. do
  10515. # Use a header file that comes with gcc, so configuring glibc
  10516. # with a fresh cross-compiler works.
  10517. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10518. # <limits.h> exists even on freestanding compilers.
  10519. # On the NeXT, cc -E runs the code through the compiler's parser,
  10520. # not just through cpp. "Syntax error" is here to catch this case.
  10521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10522. /* end confdefs.h. */
  10523. #ifdef __STDC__
  10524. # include <limits.h>
  10525. #else
  10526. # include <assert.h>
  10527. #endif
  10528. Syntax error
  10529. _ACEOF
  10530. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10531. else
  10532. # Broken: fails on valid input.
  10533. continue
  10534. fi
  10535. rm -f conftest.err conftest.i conftest.$ac_ext
  10536. # OK, works on sane cases. Now check whether nonexistent headers
  10537. # can be detected and how.
  10538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10539. /* end confdefs.h. */
  10540. #include <ac_nonexistent.h>
  10541. _ACEOF
  10542. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10543. # Broken: success on invalid input.
  10544. continue
  10545. else
  10546. # Passes both tests.
  10547. ac_preproc_ok=:
  10548. break
  10549. fi
  10550. rm -f conftest.err conftest.i conftest.$ac_ext
  10551. done
  10552. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10553. rm -f conftest.i conftest.err conftest.$ac_ext
  10554. if $ac_preproc_ok; then :
  10555. break
  10556. fi
  10557. done
  10558. ac_cv_prog_CXXCPP=$CXXCPP
  10559. fi
  10560. CXXCPP=$ac_cv_prog_CXXCPP
  10561. else
  10562. ac_cv_prog_CXXCPP=$CXXCPP
  10563. fi
  10564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10565. $as_echo "$CXXCPP" >&6; }
  10566. ac_preproc_ok=false
  10567. for ac_cxx_preproc_warn_flag in '' yes
  10568. do
  10569. # Use a header file that comes with gcc, so configuring glibc
  10570. # with a fresh cross-compiler works.
  10571. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10572. # <limits.h> exists even on freestanding compilers.
  10573. # On the NeXT, cc -E runs the code through the compiler's parser,
  10574. # not just through cpp. "Syntax error" is here to catch this case.
  10575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10576. /* end confdefs.h. */
  10577. #ifdef __STDC__
  10578. # include <limits.h>
  10579. #else
  10580. # include <assert.h>
  10581. #endif
  10582. Syntax error
  10583. _ACEOF
  10584. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10585. else
  10586. # Broken: fails on valid input.
  10587. continue
  10588. fi
  10589. rm -f conftest.err conftest.i conftest.$ac_ext
  10590. # OK, works on sane cases. Now check whether nonexistent headers
  10591. # can be detected and how.
  10592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10593. /* end confdefs.h. */
  10594. #include <ac_nonexistent.h>
  10595. _ACEOF
  10596. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10597. # Broken: success on invalid input.
  10598. continue
  10599. else
  10600. # Passes both tests.
  10601. ac_preproc_ok=:
  10602. break
  10603. fi
  10604. rm -f conftest.err conftest.i conftest.$ac_ext
  10605. done
  10606. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10607. rm -f conftest.i conftest.err conftest.$ac_ext
  10608. if $ac_preproc_ok; then :
  10609. else
  10610. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10611. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10612. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10613. See \`config.log' for more details" "$LINENO" 5; }
  10614. fi
  10615. ac_ext=c
  10616. ac_cpp='$CPP $CPPFLAGS'
  10617. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10618. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10619. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10620. else
  10621. _lt_caught_CXX_error=yes
  10622. fi
  10623. ac_ext=cpp
  10624. ac_cpp='$CXXCPP $CPPFLAGS'
  10625. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10626. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10627. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10628. archive_cmds_need_lc_CXX=no
  10629. allow_undefined_flag_CXX=
  10630. always_export_symbols_CXX=no
  10631. archive_expsym_cmds_CXX=
  10632. compiler_needs_object_CXX=no
  10633. export_dynamic_flag_spec_CXX=
  10634. hardcode_direct_CXX=no
  10635. hardcode_direct_absolute_CXX=no
  10636. hardcode_libdir_flag_spec_CXX=
  10637. hardcode_libdir_separator_CXX=
  10638. hardcode_minus_L_CXX=no
  10639. hardcode_shlibpath_var_CXX=unsupported
  10640. hardcode_automatic_CXX=no
  10641. inherit_rpath_CXX=no
  10642. module_cmds_CXX=
  10643. module_expsym_cmds_CXX=
  10644. link_all_deplibs_CXX=unknown
  10645. old_archive_cmds_CXX=$old_archive_cmds
  10646. reload_flag_CXX=$reload_flag
  10647. reload_cmds_CXX=$reload_cmds
  10648. no_undefined_flag_CXX=
  10649. whole_archive_flag_spec_CXX=
  10650. enable_shared_with_static_runtimes_CXX=no
  10651. # Source file extension for C++ test sources.
  10652. ac_ext=cpp
  10653. # Object file extension for compiled C++ test sources.
  10654. objext=o
  10655. objext_CXX=$objext
  10656. # No sense in running all these tests if we already determined that
  10657. # the CXX compiler isn't working. Some variables (like enable_shared)
  10658. # are currently assumed to apply to all compilers on this platform,
  10659. # and will be corrupted by setting them based on a non-working compiler.
  10660. if test "$_lt_caught_CXX_error" != yes; then
  10661. # Code to be used in simple compile tests
  10662. lt_simple_compile_test_code="int some_variable = 0;"
  10663. # Code to be used in simple link tests
  10664. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10665. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10666. # If no C compiler was specified, use CC.
  10667. LTCC=${LTCC-"$CC"}
  10668. # If no C compiler flags were specified, use CFLAGS.
  10669. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10670. # Allow CC to be a program name with arguments.
  10671. compiler=$CC
  10672. # save warnings/boilerplate of simple test code
  10673. ac_outfile=conftest.$ac_objext
  10674. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10675. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10676. _lt_compiler_boilerplate=`cat conftest.err`
  10677. $RM conftest*
  10678. ac_outfile=conftest.$ac_objext
  10679. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10680. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10681. _lt_linker_boilerplate=`cat conftest.err`
  10682. $RM -r conftest*
  10683. # Allow CC to be a program name with arguments.
  10684. lt_save_CC=$CC
  10685. lt_save_CFLAGS=$CFLAGS
  10686. lt_save_LD=$LD
  10687. lt_save_GCC=$GCC
  10688. GCC=$GXX
  10689. lt_save_with_gnu_ld=$with_gnu_ld
  10690. lt_save_path_LD=$lt_cv_path_LD
  10691. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10692. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10693. else
  10694. $as_unset lt_cv_prog_gnu_ld
  10695. fi
  10696. if test -n "${lt_cv_path_LDCXX+set}"; then
  10697. lt_cv_path_LD=$lt_cv_path_LDCXX
  10698. else
  10699. $as_unset lt_cv_path_LD
  10700. fi
  10701. test -z "${LDCXX+set}" || LD=$LDCXX
  10702. CC=${CXX-"c++"}
  10703. CFLAGS=$CXXFLAGS
  10704. compiler=$CC
  10705. compiler_CXX=$CC
  10706. for cc_temp in $compiler""; do
  10707. case $cc_temp in
  10708. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10709. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10710. \-*) ;;
  10711. *) break;;
  10712. esac
  10713. done
  10714. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10715. if test -n "$compiler"; then
  10716. # We don't want -fno-exception when compiling C++ code, so set the
  10717. # no_builtin_flag separately
  10718. if test "$GXX" = yes; then
  10719. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10720. else
  10721. lt_prog_compiler_no_builtin_flag_CXX=
  10722. fi
  10723. if test "$GXX" = yes; then
  10724. # Set up default GNU C++ configuration
  10725. # Check whether --with-gnu-ld was given.
  10726. if test "${with_gnu_ld+set}" = set; then :
  10727. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10728. else
  10729. with_gnu_ld=no
  10730. fi
  10731. ac_prog=ld
  10732. if test "$GCC" = yes; then
  10733. # Check if gcc -print-prog-name=ld gives a path.
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10735. $as_echo_n "checking for ld used by $CC... " >&6; }
  10736. case $host in
  10737. *-*-mingw*)
  10738. # gcc leaves a trailing carriage return which upsets mingw
  10739. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10740. *)
  10741. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10742. esac
  10743. case $ac_prog in
  10744. # Accept absolute paths.
  10745. [\\/]* | ?:[\\/]*)
  10746. re_direlt='/[^/][^/]*/\.\./'
  10747. # Canonicalize the pathname of ld
  10748. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10749. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10750. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10751. done
  10752. test -z "$LD" && LD="$ac_prog"
  10753. ;;
  10754. "")
  10755. # If it fails, then pretend we aren't using GCC.
  10756. ac_prog=ld
  10757. ;;
  10758. *)
  10759. # If it is relative, then search for the first ld in PATH.
  10760. with_gnu_ld=unknown
  10761. ;;
  10762. esac
  10763. elif test "$with_gnu_ld" = yes; then
  10764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10765. $as_echo_n "checking for GNU ld... " >&6; }
  10766. else
  10767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10768. $as_echo_n "checking for non-GNU ld... " >&6; }
  10769. fi
  10770. if ${lt_cv_path_LD+:} false; then :
  10771. $as_echo_n "(cached) " >&6
  10772. else
  10773. if test -z "$LD"; then
  10774. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10775. for ac_dir in $PATH; do
  10776. IFS="$lt_save_ifs"
  10777. test -z "$ac_dir" && ac_dir=.
  10778. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10779. lt_cv_path_LD="$ac_dir/$ac_prog"
  10780. # Check to see if the program is GNU ld. I'd rather use --version,
  10781. # but apparently some variants of GNU ld only accept -v.
  10782. # Break only if it was the GNU/non-GNU ld that we prefer.
  10783. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10784. *GNU* | *'with BFD'*)
  10785. test "$with_gnu_ld" != no && break
  10786. ;;
  10787. *)
  10788. test "$with_gnu_ld" != yes && break
  10789. ;;
  10790. esac
  10791. fi
  10792. done
  10793. IFS="$lt_save_ifs"
  10794. else
  10795. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10796. fi
  10797. fi
  10798. LD="$lt_cv_path_LD"
  10799. if test -n "$LD"; then
  10800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10801. $as_echo "$LD" >&6; }
  10802. else
  10803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10804. $as_echo "no" >&6; }
  10805. fi
  10806. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10808. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10809. if ${lt_cv_prog_gnu_ld+:} false; then :
  10810. $as_echo_n "(cached) " >&6
  10811. else
  10812. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10813. case `$LD -v 2>&1 </dev/null` in
  10814. *GNU* | *'with BFD'*)
  10815. lt_cv_prog_gnu_ld=yes
  10816. ;;
  10817. *)
  10818. lt_cv_prog_gnu_ld=no
  10819. ;;
  10820. esac
  10821. fi
  10822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10823. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10824. with_gnu_ld=$lt_cv_prog_gnu_ld
  10825. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10826. # archiving commands below assume that GNU ld is being used.
  10827. if test "$with_gnu_ld" = yes; then
  10828. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10829. 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'
  10830. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10831. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10832. # If archive_cmds runs LD, not CC, wlarc should be empty
  10833. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10834. # investigate it a little bit more. (MM)
  10835. wlarc='${wl}'
  10836. # ancient GNU ld didn't support --whole-archive et. al.
  10837. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10838. $GREP 'no-whole-archive' > /dev/null; then
  10839. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10840. else
  10841. whole_archive_flag_spec_CXX=
  10842. fi
  10843. else
  10844. with_gnu_ld=no
  10845. wlarc=
  10846. # A generic and very simple default shared library creation
  10847. # command for GNU C++ for the case where it uses the native
  10848. # linker, instead of GNU ld. If possible, this setting should
  10849. # overridden to take advantage of the native linker features on
  10850. # the platform it is being used on.
  10851. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10852. fi
  10853. # Commands to make compiler produce verbose output that lists
  10854. # what "hidden" libraries, object files and flags are used when
  10855. # linking a shared library.
  10856. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10857. else
  10858. GXX=no
  10859. with_gnu_ld=no
  10860. wlarc=
  10861. fi
  10862. # PORTME: fill in a description of your system's C++ link characteristics
  10863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10864. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10865. ld_shlibs_CXX=yes
  10866. case $host_os in
  10867. aix3*)
  10868. # FIXME: insert proper C++ library support
  10869. ld_shlibs_CXX=no
  10870. ;;
  10871. aix[4-9]*)
  10872. if test "$host_cpu" = ia64; then
  10873. # On IA64, the linker does run time linking by default, so we don't
  10874. # have to do anything special.
  10875. aix_use_runtimelinking=no
  10876. exp_sym_flag='-Bexport'
  10877. no_entry_flag=""
  10878. else
  10879. aix_use_runtimelinking=no
  10880. # Test if we are trying to use run time linking or normal
  10881. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10882. # need to do runtime linking.
  10883. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10884. for ld_flag in $LDFLAGS; do
  10885. case $ld_flag in
  10886. *-brtl*)
  10887. aix_use_runtimelinking=yes
  10888. break
  10889. ;;
  10890. esac
  10891. done
  10892. ;;
  10893. esac
  10894. exp_sym_flag='-bexport'
  10895. no_entry_flag='-bnoentry'
  10896. fi
  10897. # When large executables or shared objects are built, AIX ld can
  10898. # have problems creating the table of contents. If linking a library
  10899. # or program results in "error TOC overflow" add -mminimal-toc to
  10900. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10901. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10902. archive_cmds_CXX=''
  10903. hardcode_direct_CXX=yes
  10904. hardcode_direct_absolute_CXX=yes
  10905. hardcode_libdir_separator_CXX=':'
  10906. link_all_deplibs_CXX=yes
  10907. file_list_spec_CXX='${wl}-f,'
  10908. if test "$GXX" = yes; then
  10909. case $host_os in aix4.[012]|aix4.[012].*)
  10910. # We only want to do this on AIX 4.2 and lower, the check
  10911. # below for broken collect2 doesn't work under 4.3+
  10912. collect2name=`${CC} -print-prog-name=collect2`
  10913. if test -f "$collect2name" &&
  10914. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10915. then
  10916. # We have reworked collect2
  10917. :
  10918. else
  10919. # We have old collect2
  10920. hardcode_direct_CXX=unsupported
  10921. # It fails to find uninstalled libraries when the uninstalled
  10922. # path is not listed in the libpath. Setting hardcode_minus_L
  10923. # to unsupported forces relinking
  10924. hardcode_minus_L_CXX=yes
  10925. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10926. hardcode_libdir_separator_CXX=
  10927. fi
  10928. esac
  10929. shared_flag='-shared'
  10930. if test "$aix_use_runtimelinking" = yes; then
  10931. shared_flag="$shared_flag "'${wl}-G'
  10932. fi
  10933. else
  10934. # not using gcc
  10935. if test "$host_cpu" = ia64; then
  10936. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10937. # chokes on -Wl,-G. The following line is correct:
  10938. shared_flag='-G'
  10939. else
  10940. if test "$aix_use_runtimelinking" = yes; then
  10941. shared_flag='${wl}-G'
  10942. else
  10943. shared_flag='${wl}-bM:SRE'
  10944. fi
  10945. fi
  10946. fi
  10947. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10948. # It seems that -bexpall does not export symbols beginning with
  10949. # underscore (_), so it is better to generate a list of symbols to
  10950. # export.
  10951. always_export_symbols_CXX=yes
  10952. if test "$aix_use_runtimelinking" = yes; then
  10953. # Warning - without using the other runtime loading flags (-brtl),
  10954. # -berok will link without error, but may produce a broken library.
  10955. allow_undefined_flag_CXX='-berok'
  10956. # Determine the default libpath from the value encoded in an empty
  10957. # executable.
  10958. if test "${lt_cv_aix_libpath+set}" = set; then
  10959. aix_libpath=$lt_cv_aix_libpath
  10960. else
  10961. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10962. $as_echo_n "(cached) " >&6
  10963. else
  10964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10965. /* end confdefs.h. */
  10966. int
  10967. main ()
  10968. {
  10969. ;
  10970. return 0;
  10971. }
  10972. _ACEOF
  10973. if ac_fn_cxx_try_link "$LINENO"; then :
  10974. lt_aix_libpath_sed='
  10975. /Import File Strings/,/^$/ {
  10976. /^0/ {
  10977. s/^0 *\([^ ]*\) *$/\1/
  10978. p
  10979. }
  10980. }'
  10981. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10982. # Check for a 64-bit object if we didn't find anything.
  10983. if test -z "$lt_cv_aix_libpath__CXX"; then
  10984. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10985. fi
  10986. fi
  10987. rm -f core conftest.err conftest.$ac_objext \
  10988. conftest$ac_exeext conftest.$ac_ext
  10989. if test -z "$lt_cv_aix_libpath__CXX"; then
  10990. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10991. fi
  10992. fi
  10993. aix_libpath=$lt_cv_aix_libpath__CXX
  10994. fi
  10995. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10996. 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"
  10997. else
  10998. if test "$host_cpu" = ia64; then
  10999. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11000. allow_undefined_flag_CXX="-z nodefs"
  11001. 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"
  11002. else
  11003. # Determine the default libpath from the value encoded in an
  11004. # empty executable.
  11005. if test "${lt_cv_aix_libpath+set}" = set; then
  11006. aix_libpath=$lt_cv_aix_libpath
  11007. else
  11008. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11009. $as_echo_n "(cached) " >&6
  11010. else
  11011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11012. /* end confdefs.h. */
  11013. int
  11014. main ()
  11015. {
  11016. ;
  11017. return 0;
  11018. }
  11019. _ACEOF
  11020. if ac_fn_cxx_try_link "$LINENO"; then :
  11021. lt_aix_libpath_sed='
  11022. /Import File Strings/,/^$/ {
  11023. /^0/ {
  11024. s/^0 *\([^ ]*\) *$/\1/
  11025. p
  11026. }
  11027. }'
  11028. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11029. # Check for a 64-bit object if we didn't find anything.
  11030. if test -z "$lt_cv_aix_libpath__CXX"; then
  11031. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11032. fi
  11033. fi
  11034. rm -f core conftest.err conftest.$ac_objext \
  11035. conftest$ac_exeext conftest.$ac_ext
  11036. if test -z "$lt_cv_aix_libpath__CXX"; then
  11037. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11038. fi
  11039. fi
  11040. aix_libpath=$lt_cv_aix_libpath__CXX
  11041. fi
  11042. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11043. # Warning - without using the other run time loading flags,
  11044. # -berok will link without error, but may produce a broken library.
  11045. no_undefined_flag_CXX=' ${wl}-bernotok'
  11046. allow_undefined_flag_CXX=' ${wl}-berok'
  11047. if test "$with_gnu_ld" = yes; then
  11048. # We only use this code for GNU lds that support --whole-archive.
  11049. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11050. else
  11051. # Exported symbols can be pulled into shared objects from archives
  11052. whole_archive_flag_spec_CXX='$convenience'
  11053. fi
  11054. archive_cmds_need_lc_CXX=yes
  11055. # This is similar to how AIX traditionally builds its shared
  11056. # libraries.
  11057. 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'
  11058. fi
  11059. fi
  11060. ;;
  11061. beos*)
  11062. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11063. allow_undefined_flag_CXX=unsupported
  11064. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11065. # support --undefined. This deserves some investigation. FIXME
  11066. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11067. else
  11068. ld_shlibs_CXX=no
  11069. fi
  11070. ;;
  11071. chorus*)
  11072. case $cc_basename in
  11073. *)
  11074. # FIXME: insert proper C++ library support
  11075. ld_shlibs_CXX=no
  11076. ;;
  11077. esac
  11078. ;;
  11079. cygwin* | mingw* | pw32* | cegcc*)
  11080. case $GXX,$cc_basename in
  11081. ,cl* | no,cl*)
  11082. # Native MSVC
  11083. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11084. # no search path for DLLs.
  11085. hardcode_libdir_flag_spec_CXX=' '
  11086. allow_undefined_flag_CXX=unsupported
  11087. always_export_symbols_CXX=yes
  11088. file_list_spec_CXX='@'
  11089. # Tell ltmain to make .lib files, not .a files.
  11090. libext=lib
  11091. # Tell ltmain to make .dll files, not .so files.
  11092. shrext_cmds=".dll"
  11093. # FIXME: Setting linknames here is a bad hack.
  11094. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11095. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11096. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11097. else
  11098. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11099. fi~
  11100. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11101. linknames='
  11102. # The linker will not automatically build a static lib if we build a DLL.
  11103. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11104. enable_shared_with_static_runtimes_CXX=yes
  11105. # Don't use ranlib
  11106. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11107. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11108. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11109. case $lt_outputfile in
  11110. *.exe|*.EXE) ;;
  11111. *)
  11112. lt_outputfile="$lt_outputfile.exe"
  11113. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11114. ;;
  11115. esac~
  11116. func_to_tool_file "$lt_outputfile"~
  11117. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11118. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11119. $RM "$lt_outputfile.manifest";
  11120. fi'
  11121. ;;
  11122. *)
  11123. # g++
  11124. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11125. # as there is no search path for DLLs.
  11126. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11127. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11128. allow_undefined_flag_CXX=unsupported
  11129. always_export_symbols_CXX=no
  11130. enable_shared_with_static_runtimes_CXX=yes
  11131. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11132. 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'
  11133. # If the export-symbols file already is a .def file (1st line
  11134. # is EXPORTS), use it as is; otherwise, prepend...
  11135. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11136. cp $export_symbols $output_objdir/$soname.def;
  11137. else
  11138. echo EXPORTS > $output_objdir/$soname.def;
  11139. cat $export_symbols >> $output_objdir/$soname.def;
  11140. fi~
  11141. $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'
  11142. else
  11143. ld_shlibs_CXX=no
  11144. fi
  11145. ;;
  11146. esac
  11147. ;;
  11148. darwin* | rhapsody*)
  11149. archive_cmds_need_lc_CXX=no
  11150. hardcode_direct_CXX=no
  11151. hardcode_automatic_CXX=yes
  11152. hardcode_shlibpath_var_CXX=unsupported
  11153. if test "$lt_cv_ld_force_load" = "yes"; then
  11154. 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\"`'
  11155. else
  11156. whole_archive_flag_spec_CXX=''
  11157. fi
  11158. link_all_deplibs_CXX=yes
  11159. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11160. case $cc_basename in
  11161. ifort*) _lt_dar_can_shared=yes ;;
  11162. *) _lt_dar_can_shared=$GCC ;;
  11163. esac
  11164. if test "$_lt_dar_can_shared" = "yes"; then
  11165. output_verbose_link_cmd=func_echo_all
  11166. 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}"
  11167. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11168. 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}"
  11169. 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}"
  11170. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11171. 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}"
  11172. 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}"
  11173. fi
  11174. else
  11175. ld_shlibs_CXX=no
  11176. fi
  11177. ;;
  11178. dgux*)
  11179. case $cc_basename in
  11180. ec++*)
  11181. # FIXME: insert proper C++ library support
  11182. ld_shlibs_CXX=no
  11183. ;;
  11184. ghcx*)
  11185. # Green Hills C++ Compiler
  11186. # FIXME: insert proper C++ library support
  11187. ld_shlibs_CXX=no
  11188. ;;
  11189. *)
  11190. # FIXME: insert proper C++ library support
  11191. ld_shlibs_CXX=no
  11192. ;;
  11193. esac
  11194. ;;
  11195. freebsd2.*)
  11196. # C++ shared libraries reported to be fairly broken before
  11197. # switch to ELF
  11198. ld_shlibs_CXX=no
  11199. ;;
  11200. freebsd-elf*)
  11201. archive_cmds_need_lc_CXX=no
  11202. ;;
  11203. freebsd* | dragonfly*)
  11204. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11205. # conventions
  11206. ld_shlibs_CXX=yes
  11207. ;;
  11208. gnu*)
  11209. ;;
  11210. haiku*)
  11211. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11212. link_all_deplibs_CXX=yes
  11213. ;;
  11214. hpux9*)
  11215. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11216. hardcode_libdir_separator_CXX=:
  11217. export_dynamic_flag_spec_CXX='${wl}-E'
  11218. hardcode_direct_CXX=yes
  11219. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11220. # but as the default
  11221. # location of the library.
  11222. case $cc_basename in
  11223. CC*)
  11224. # FIXME: insert proper C++ library support
  11225. ld_shlibs_CXX=no
  11226. ;;
  11227. aCC*)
  11228. 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'
  11229. # Commands to make compiler produce verbose output that lists
  11230. # what "hidden" libraries, object files and flags are used when
  11231. # linking a shared library.
  11232. #
  11233. # There doesn't appear to be a way to prevent this compiler from
  11234. # explicitly linking system object files so we need to strip them
  11235. # from the output so that they don't get included in the library
  11236. # dependencies.
  11237. 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"'
  11238. ;;
  11239. *)
  11240. if test "$GXX" = yes; then
  11241. 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'
  11242. else
  11243. # FIXME: insert proper C++ library support
  11244. ld_shlibs_CXX=no
  11245. fi
  11246. ;;
  11247. esac
  11248. ;;
  11249. hpux10*|hpux11*)
  11250. if test $with_gnu_ld = no; then
  11251. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11252. hardcode_libdir_separator_CXX=:
  11253. case $host_cpu in
  11254. hppa*64*|ia64*)
  11255. ;;
  11256. *)
  11257. export_dynamic_flag_spec_CXX='${wl}-E'
  11258. ;;
  11259. esac
  11260. fi
  11261. case $host_cpu in
  11262. hppa*64*|ia64*)
  11263. hardcode_direct_CXX=no
  11264. hardcode_shlibpath_var_CXX=no
  11265. ;;
  11266. *)
  11267. hardcode_direct_CXX=yes
  11268. hardcode_direct_absolute_CXX=yes
  11269. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11270. # but as the default
  11271. # location of the library.
  11272. ;;
  11273. esac
  11274. case $cc_basename in
  11275. CC*)
  11276. # FIXME: insert proper C++ library support
  11277. ld_shlibs_CXX=no
  11278. ;;
  11279. aCC*)
  11280. case $host_cpu in
  11281. hppa*64*)
  11282. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11283. ;;
  11284. ia64*)
  11285. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11286. ;;
  11287. *)
  11288. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11289. ;;
  11290. esac
  11291. # Commands to make compiler produce verbose output that lists
  11292. # what "hidden" libraries, object files and flags are used when
  11293. # linking a shared library.
  11294. #
  11295. # There doesn't appear to be a way to prevent this compiler from
  11296. # explicitly linking system object files so we need to strip them
  11297. # from the output so that they don't get included in the library
  11298. # dependencies.
  11299. 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"'
  11300. ;;
  11301. *)
  11302. if test "$GXX" = yes; then
  11303. if test $with_gnu_ld = no; then
  11304. case $host_cpu in
  11305. hppa*64*)
  11306. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11307. ;;
  11308. ia64*)
  11309. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11310. ;;
  11311. *)
  11312. 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'
  11313. ;;
  11314. esac
  11315. fi
  11316. else
  11317. # FIXME: insert proper C++ library support
  11318. ld_shlibs_CXX=no
  11319. fi
  11320. ;;
  11321. esac
  11322. ;;
  11323. interix[3-9]*)
  11324. hardcode_direct_CXX=no
  11325. hardcode_shlibpath_var_CXX=no
  11326. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11327. export_dynamic_flag_spec_CXX='${wl}-E'
  11328. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11329. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11330. # default) and relocated if they conflict, which is a slow very memory
  11331. # consuming and fragmenting process. To avoid this, we pick a random,
  11332. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11333. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11334. 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'
  11335. 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'
  11336. ;;
  11337. irix5* | irix6*)
  11338. case $cc_basename in
  11339. CC*)
  11340. # SGI C++
  11341. 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'
  11342. # Archives containing C++ object files must be created using
  11343. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11344. # necessary to make sure instantiated templates are included
  11345. # in the archive.
  11346. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11347. ;;
  11348. *)
  11349. if test "$GXX" = yes; then
  11350. if test "$with_gnu_ld" = no; then
  11351. 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'
  11352. else
  11353. 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'
  11354. fi
  11355. fi
  11356. link_all_deplibs_CXX=yes
  11357. ;;
  11358. esac
  11359. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11360. hardcode_libdir_separator_CXX=:
  11361. inherit_rpath_CXX=yes
  11362. ;;
  11363. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11364. case $cc_basename in
  11365. KCC*)
  11366. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11367. # KCC will only create a shared library if the output file
  11368. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11369. # to its proper name (with version) after linking.
  11370. 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'
  11371. 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'
  11372. # Commands to make compiler produce verbose output that lists
  11373. # what "hidden" libraries, object files and flags are used when
  11374. # linking a shared library.
  11375. #
  11376. # There doesn't appear to be a way to prevent this compiler from
  11377. # explicitly linking system object files so we need to strip them
  11378. # from the output so that they don't get included in the library
  11379. # dependencies.
  11380. 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"'
  11381. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11382. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11383. # Archives containing C++ object files must be created using
  11384. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11385. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11386. ;;
  11387. icpc* | ecpc* )
  11388. # Intel C++
  11389. with_gnu_ld=yes
  11390. # version 8.0 and above of icpc choke on multiply defined symbols
  11391. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11392. # earlier do not add the objects themselves.
  11393. case `$CC -V 2>&1` in
  11394. *"Version 7."*)
  11395. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11396. 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'
  11397. ;;
  11398. *) # Version 8.0 or newer
  11399. tmp_idyn=
  11400. case $host_cpu in
  11401. ia64*) tmp_idyn=' -i_dynamic';;
  11402. esac
  11403. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11404. 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'
  11405. ;;
  11406. esac
  11407. archive_cmds_need_lc_CXX=no
  11408. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11409. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11410. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11411. ;;
  11412. pgCC* | pgcpp*)
  11413. # Portland Group C++ compiler
  11414. case `$CC -V` in
  11415. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11416. prelink_cmds_CXX='tpldir=Template.dir~
  11417. rm -rf $tpldir~
  11418. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11419. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11420. old_archive_cmds_CXX='tpldir=Template.dir~
  11421. rm -rf $tpldir~
  11422. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11423. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11424. $RANLIB $oldlib'
  11425. archive_cmds_CXX='tpldir=Template.dir~
  11426. rm -rf $tpldir~
  11427. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11428. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11429. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11430. rm -rf $tpldir~
  11431. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11432. $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'
  11433. ;;
  11434. *) # Version 6 and above use weak symbols
  11435. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11436. 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'
  11437. ;;
  11438. esac
  11439. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11440. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11441. 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'
  11442. ;;
  11443. cxx*)
  11444. # Compaq C++
  11445. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11446. 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'
  11447. runpath_var=LD_RUN_PATH
  11448. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11449. hardcode_libdir_separator_CXX=:
  11450. # Commands to make compiler produce verbose output that lists
  11451. # what "hidden" libraries, object files and flags are used when
  11452. # linking a shared library.
  11453. #
  11454. # There doesn't appear to be a way to prevent this compiler from
  11455. # explicitly linking system object files so we need to strip them
  11456. # from the output so that they don't get included in the library
  11457. # dependencies.
  11458. 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'
  11459. ;;
  11460. xl* | mpixl* | bgxl*)
  11461. # IBM XL 8.0 on PPC, with GNU ld
  11462. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11463. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11464. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11465. if test "x$supports_anon_versioning" = xyes; then
  11466. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11467. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11468. echo "local: *; };" >> $output_objdir/$libname.ver~
  11469. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11470. fi
  11471. ;;
  11472. *)
  11473. case `$CC -V 2>&1 | sed 5q` in
  11474. *Sun\ C*)
  11475. # Sun C++ 5.9
  11476. no_undefined_flag_CXX=' -zdefs'
  11477. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11478. 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'
  11479. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11480. 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'
  11481. compiler_needs_object_CXX=yes
  11482. # Not sure whether something based on
  11483. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11484. # would be better.
  11485. output_verbose_link_cmd='func_echo_all'
  11486. # Archives containing C++ object files must be created using
  11487. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11488. # necessary to make sure instantiated templates are included
  11489. # in the archive.
  11490. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11491. ;;
  11492. esac
  11493. ;;
  11494. esac
  11495. ;;
  11496. lynxos*)
  11497. # FIXME: insert proper C++ library support
  11498. ld_shlibs_CXX=no
  11499. ;;
  11500. m88k*)
  11501. # FIXME: insert proper C++ library support
  11502. ld_shlibs_CXX=no
  11503. ;;
  11504. mvs*)
  11505. case $cc_basename in
  11506. cxx*)
  11507. # FIXME: insert proper C++ library support
  11508. ld_shlibs_CXX=no
  11509. ;;
  11510. *)
  11511. # FIXME: insert proper C++ library support
  11512. ld_shlibs_CXX=no
  11513. ;;
  11514. esac
  11515. ;;
  11516. netbsd*)
  11517. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11518. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11519. wlarc=
  11520. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11521. hardcode_direct_CXX=yes
  11522. hardcode_shlibpath_var_CXX=no
  11523. fi
  11524. # Workaround some broken pre-1.5 toolchains
  11525. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11526. ;;
  11527. *nto* | *qnx*)
  11528. ld_shlibs_CXX=yes
  11529. ;;
  11530. openbsd2*)
  11531. # C++ shared libraries are fairly broken
  11532. ld_shlibs_CXX=no
  11533. ;;
  11534. openbsd*)
  11535. if test -f /usr/libexec/ld.so; then
  11536. hardcode_direct_CXX=yes
  11537. hardcode_shlibpath_var_CXX=no
  11538. hardcode_direct_absolute_CXX=yes
  11539. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11540. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11541. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11542. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11543. export_dynamic_flag_spec_CXX='${wl}-E'
  11544. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11545. fi
  11546. output_verbose_link_cmd=func_echo_all
  11547. else
  11548. ld_shlibs_CXX=no
  11549. fi
  11550. ;;
  11551. osf3* | osf4* | osf5*)
  11552. case $cc_basename in
  11553. KCC*)
  11554. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11555. # KCC will only create a shared library if the output file
  11556. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11557. # to its proper name (with version) after linking.
  11558. 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'
  11559. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11560. hardcode_libdir_separator_CXX=:
  11561. # Archives containing C++ object files must be created using
  11562. # the KAI C++ compiler.
  11563. case $host in
  11564. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11565. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11566. esac
  11567. ;;
  11568. RCC*)
  11569. # Rational C++ 2.4.1
  11570. # FIXME: insert proper C++ library support
  11571. ld_shlibs_CXX=no
  11572. ;;
  11573. cxx*)
  11574. case $host in
  11575. osf3*)
  11576. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11577. 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'
  11578. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11579. ;;
  11580. *)
  11581. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11582. 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'
  11583. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11584. echo "-hidden">> $lib.exp~
  11585. $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~
  11586. $RM $lib.exp'
  11587. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11588. ;;
  11589. esac
  11590. hardcode_libdir_separator_CXX=:
  11591. # Commands to make compiler produce verbose output that lists
  11592. # what "hidden" libraries, object files and flags are used when
  11593. # linking a shared library.
  11594. #
  11595. # There doesn't appear to be a way to prevent this compiler from
  11596. # explicitly linking system object files so we need to strip them
  11597. # from the output so that they don't get included in the library
  11598. # dependencies.
  11599. 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"'
  11600. ;;
  11601. *)
  11602. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11603. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11604. case $host in
  11605. osf3*)
  11606. 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'
  11607. ;;
  11608. *)
  11609. 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'
  11610. ;;
  11611. esac
  11612. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11613. hardcode_libdir_separator_CXX=:
  11614. # Commands to make compiler produce verbose output that lists
  11615. # what "hidden" libraries, object files and flags are used when
  11616. # linking a shared library.
  11617. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11618. else
  11619. # FIXME: insert proper C++ library support
  11620. ld_shlibs_CXX=no
  11621. fi
  11622. ;;
  11623. esac
  11624. ;;
  11625. psos*)
  11626. # FIXME: insert proper C++ library support
  11627. ld_shlibs_CXX=no
  11628. ;;
  11629. sunos4*)
  11630. case $cc_basename in
  11631. CC*)
  11632. # Sun C++ 4.x
  11633. # FIXME: insert proper C++ library support
  11634. ld_shlibs_CXX=no
  11635. ;;
  11636. lcc*)
  11637. # Lucid
  11638. # FIXME: insert proper C++ library support
  11639. ld_shlibs_CXX=no
  11640. ;;
  11641. *)
  11642. # FIXME: insert proper C++ library support
  11643. ld_shlibs_CXX=no
  11644. ;;
  11645. esac
  11646. ;;
  11647. solaris*)
  11648. case $cc_basename in
  11649. CC* | sunCC*)
  11650. # Sun C++ 4.2, 5.x and Centerline C++
  11651. archive_cmds_need_lc_CXX=yes
  11652. no_undefined_flag_CXX=' -zdefs'
  11653. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11654. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11655. $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'
  11656. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11657. hardcode_shlibpath_var_CXX=no
  11658. case $host_os in
  11659. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11660. *)
  11661. # The compiler driver will combine and reorder linker options,
  11662. # but understands `-z linker_flag'.
  11663. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11664. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11665. ;;
  11666. esac
  11667. link_all_deplibs_CXX=yes
  11668. output_verbose_link_cmd='func_echo_all'
  11669. # Archives containing C++ object files must be created using
  11670. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11671. # necessary to make sure instantiated templates are included
  11672. # in the archive.
  11673. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11674. ;;
  11675. gcx*)
  11676. # Green Hills C++ Compiler
  11677. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11678. # The C++ compiler must be used to create the archive.
  11679. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11680. ;;
  11681. *)
  11682. # GNU C++ compiler with Solaris linker
  11683. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11684. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11685. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11686. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11687. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11688. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11689. # Commands to make compiler produce verbose output that lists
  11690. # what "hidden" libraries, object files and flags are used when
  11691. # linking a shared library.
  11692. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11693. else
  11694. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11695. # platform.
  11696. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11697. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11698. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11699. # Commands to make compiler produce verbose output that lists
  11700. # what "hidden" libraries, object files and flags are used when
  11701. # linking a shared library.
  11702. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11703. fi
  11704. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11705. case $host_os in
  11706. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11707. *)
  11708. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11709. ;;
  11710. esac
  11711. fi
  11712. ;;
  11713. esac
  11714. ;;
  11715. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11716. no_undefined_flag_CXX='${wl}-z,text'
  11717. archive_cmds_need_lc_CXX=no
  11718. hardcode_shlibpath_var_CXX=no
  11719. runpath_var='LD_RUN_PATH'
  11720. case $cc_basename in
  11721. CC*)
  11722. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11723. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11724. ;;
  11725. *)
  11726. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11727. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11728. ;;
  11729. esac
  11730. ;;
  11731. sysv5* | sco3.2v5* | sco5v6*)
  11732. # Note: We can NOT use -z defs as we might desire, because we do not
  11733. # link with -lc, and that would cause any symbols used from libc to
  11734. # always be unresolved, which means just about no library would
  11735. # ever link correctly. If we're not using GNU ld we use -z text
  11736. # though, which does catch some bad symbols but isn't as heavy-handed
  11737. # as -z defs.
  11738. no_undefined_flag_CXX='${wl}-z,text'
  11739. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11740. archive_cmds_need_lc_CXX=no
  11741. hardcode_shlibpath_var_CXX=no
  11742. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11743. hardcode_libdir_separator_CXX=':'
  11744. link_all_deplibs_CXX=yes
  11745. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11746. runpath_var='LD_RUN_PATH'
  11747. case $cc_basename in
  11748. CC*)
  11749. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11750. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11751. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11752. '"$old_archive_cmds_CXX"
  11753. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11754. '"$reload_cmds_CXX"
  11755. ;;
  11756. *)
  11757. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11758. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11759. ;;
  11760. esac
  11761. ;;
  11762. tandem*)
  11763. case $cc_basename in
  11764. NCC*)
  11765. # NonStop-UX NCC 3.20
  11766. # FIXME: insert proper C++ library support
  11767. ld_shlibs_CXX=no
  11768. ;;
  11769. *)
  11770. # FIXME: insert proper C++ library support
  11771. ld_shlibs_CXX=no
  11772. ;;
  11773. esac
  11774. ;;
  11775. vxworks*)
  11776. # FIXME: insert proper C++ library support
  11777. ld_shlibs_CXX=no
  11778. ;;
  11779. *)
  11780. # FIXME: insert proper C++ library support
  11781. ld_shlibs_CXX=no
  11782. ;;
  11783. esac
  11784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11785. $as_echo "$ld_shlibs_CXX" >&6; }
  11786. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11787. GCC_CXX="$GXX"
  11788. LD_CXX="$LD"
  11789. ## CAVEAT EMPTOR:
  11790. ## There is no encapsulation within the following macros, do not change
  11791. ## the running order or otherwise move them around unless you know exactly
  11792. ## what you are doing...
  11793. # Dependencies to place before and after the object being linked:
  11794. predep_objects_CXX=
  11795. postdep_objects_CXX=
  11796. predeps_CXX=
  11797. postdeps_CXX=
  11798. compiler_lib_search_path_CXX=
  11799. cat > conftest.$ac_ext <<_LT_EOF
  11800. class Foo
  11801. {
  11802. public:
  11803. Foo (void) { a = 0; }
  11804. private:
  11805. int a;
  11806. };
  11807. _LT_EOF
  11808. _lt_libdeps_save_CFLAGS=$CFLAGS
  11809. case "$CC $CFLAGS " in #(
  11810. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11811. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11812. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11813. esac
  11814. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11815. (eval $ac_compile) 2>&5
  11816. ac_status=$?
  11817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11818. test $ac_status = 0; }; then
  11819. # Parse the compiler output and extract the necessary
  11820. # objects, libraries and library flags.
  11821. # Sentinel used to keep track of whether or not we are before
  11822. # the conftest object file.
  11823. pre_test_object_deps_done=no
  11824. for p in `eval "$output_verbose_link_cmd"`; do
  11825. case ${prev}${p} in
  11826. -L* | -R* | -l*)
  11827. # Some compilers place space between "-{L,R}" and the path.
  11828. # Remove the space.
  11829. if test $p = "-L" ||
  11830. test $p = "-R"; then
  11831. prev=$p
  11832. continue
  11833. fi
  11834. # Expand the sysroot to ease extracting the directories later.
  11835. if test -z "$prev"; then
  11836. case $p in
  11837. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11838. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11839. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11840. esac
  11841. fi
  11842. case $p in
  11843. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11844. esac
  11845. if test "$pre_test_object_deps_done" = no; then
  11846. case ${prev} in
  11847. -L | -R)
  11848. # Internal compiler library paths should come after those
  11849. # provided the user. The postdeps already come after the
  11850. # user supplied libs so there is no need to process them.
  11851. if test -z "$compiler_lib_search_path_CXX"; then
  11852. compiler_lib_search_path_CXX="${prev}${p}"
  11853. else
  11854. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11855. fi
  11856. ;;
  11857. # The "-l" case would never come before the object being
  11858. # linked, so don't bother handling this case.
  11859. esac
  11860. else
  11861. if test -z "$postdeps_CXX"; then
  11862. postdeps_CXX="${prev}${p}"
  11863. else
  11864. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11865. fi
  11866. fi
  11867. prev=
  11868. ;;
  11869. *.lto.$objext) ;; # Ignore GCC LTO objects
  11870. *.$objext)
  11871. # This assumes that the test object file only shows up
  11872. # once in the compiler output.
  11873. if test "$p" = "conftest.$objext"; then
  11874. pre_test_object_deps_done=yes
  11875. continue
  11876. fi
  11877. if test "$pre_test_object_deps_done" = no; then
  11878. if test -z "$predep_objects_CXX"; then
  11879. predep_objects_CXX="$p"
  11880. else
  11881. predep_objects_CXX="$predep_objects_CXX $p"
  11882. fi
  11883. else
  11884. if test -z "$postdep_objects_CXX"; then
  11885. postdep_objects_CXX="$p"
  11886. else
  11887. postdep_objects_CXX="$postdep_objects_CXX $p"
  11888. fi
  11889. fi
  11890. ;;
  11891. *) ;; # Ignore the rest.
  11892. esac
  11893. done
  11894. # Clean up.
  11895. rm -f a.out a.exe
  11896. else
  11897. echo "libtool.m4: error: problem compiling CXX test program"
  11898. fi
  11899. $RM -f confest.$objext
  11900. CFLAGS=$_lt_libdeps_save_CFLAGS
  11901. # PORTME: override above test on systems where it is broken
  11902. case $host_os in
  11903. interix[3-9]*)
  11904. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11905. # hack all around it, let's just trust "g++" to DTRT.
  11906. predep_objects_CXX=
  11907. postdep_objects_CXX=
  11908. postdeps_CXX=
  11909. ;;
  11910. linux*)
  11911. case `$CC -V 2>&1 | sed 5q` in
  11912. *Sun\ C*)
  11913. # Sun C++ 5.9
  11914. # The more standards-conforming stlport4 library is
  11915. # incompatible with the Cstd library. Avoid specifying
  11916. # it if it's in CXXFLAGS. Ignore libCrun as
  11917. # -library=stlport4 depends on it.
  11918. case " $CXX $CXXFLAGS " in
  11919. *" -library=stlport4 "*)
  11920. solaris_use_stlport4=yes
  11921. ;;
  11922. esac
  11923. if test "$solaris_use_stlport4" != yes; then
  11924. postdeps_CXX='-library=Cstd -library=Crun'
  11925. fi
  11926. ;;
  11927. esac
  11928. ;;
  11929. solaris*)
  11930. case $cc_basename in
  11931. CC* | sunCC*)
  11932. # The more standards-conforming stlport4 library is
  11933. # incompatible with the Cstd library. Avoid specifying
  11934. # it if it's in CXXFLAGS. Ignore libCrun as
  11935. # -library=stlport4 depends on it.
  11936. case " $CXX $CXXFLAGS " in
  11937. *" -library=stlport4 "*)
  11938. solaris_use_stlport4=yes
  11939. ;;
  11940. esac
  11941. # Adding this requires a known-good setup of shared libraries for
  11942. # Sun compiler versions before 5.6, else PIC objects from an old
  11943. # archive will be linked into the output, leading to subtle bugs.
  11944. if test "$solaris_use_stlport4" != yes; then
  11945. postdeps_CXX='-library=Cstd -library=Crun'
  11946. fi
  11947. ;;
  11948. esac
  11949. ;;
  11950. esac
  11951. case " $postdeps_CXX " in
  11952. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11953. esac
  11954. compiler_lib_search_dirs_CXX=
  11955. if test -n "${compiler_lib_search_path_CXX}"; then
  11956. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11957. fi
  11958. lt_prog_compiler_wl_CXX=
  11959. lt_prog_compiler_pic_CXX=
  11960. lt_prog_compiler_static_CXX=
  11961. # C++ specific cases for pic, static, wl, etc.
  11962. if test "$GXX" = yes; then
  11963. lt_prog_compiler_wl_CXX='-Wl,'
  11964. lt_prog_compiler_static_CXX='-static'
  11965. case $host_os in
  11966. aix*)
  11967. # All AIX code is PIC.
  11968. if test "$host_cpu" = ia64; then
  11969. # AIX 5 now supports IA64 processor
  11970. lt_prog_compiler_static_CXX='-Bstatic'
  11971. fi
  11972. ;;
  11973. amigaos*)
  11974. case $host_cpu in
  11975. powerpc)
  11976. # see comment about AmigaOS4 .so support
  11977. lt_prog_compiler_pic_CXX='-fPIC'
  11978. ;;
  11979. m68k)
  11980. # FIXME: we need at least 68020 code to build shared libraries, but
  11981. # adding the `-m68020' flag to GCC prevents building anything better,
  11982. # like `-m68040'.
  11983. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11984. ;;
  11985. esac
  11986. ;;
  11987. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11988. # PIC is the default for these OSes.
  11989. ;;
  11990. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11991. # This hack is so that the source file can tell whether it is being
  11992. # built for inclusion in a dll (and should export symbols for example).
  11993. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11994. # (--disable-auto-import) libraries
  11995. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11996. ;;
  11997. darwin* | rhapsody*)
  11998. # PIC is the default on this platform
  11999. # Common symbols not allowed in MH_DYLIB files
  12000. lt_prog_compiler_pic_CXX='-fno-common'
  12001. ;;
  12002. *djgpp*)
  12003. # DJGPP does not support shared libraries at all
  12004. lt_prog_compiler_pic_CXX=
  12005. ;;
  12006. haiku*)
  12007. # PIC is the default for Haiku.
  12008. # The "-static" flag exists, but is broken.
  12009. lt_prog_compiler_static_CXX=
  12010. ;;
  12011. interix[3-9]*)
  12012. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12013. # Instead, we relocate shared libraries at runtime.
  12014. ;;
  12015. sysv4*MP*)
  12016. if test -d /usr/nec; then
  12017. lt_prog_compiler_pic_CXX=-Kconform_pic
  12018. fi
  12019. ;;
  12020. hpux*)
  12021. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12022. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12023. # sets the default TLS model and affects inlining.
  12024. case $host_cpu in
  12025. hppa*64*)
  12026. ;;
  12027. *)
  12028. lt_prog_compiler_pic_CXX='-fPIC'
  12029. ;;
  12030. esac
  12031. ;;
  12032. *qnx* | *nto*)
  12033. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12034. # it will coredump.
  12035. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12036. ;;
  12037. *)
  12038. lt_prog_compiler_pic_CXX='-fPIC'
  12039. ;;
  12040. esac
  12041. else
  12042. case $host_os in
  12043. aix[4-9]*)
  12044. # All AIX code is PIC.
  12045. if test "$host_cpu" = ia64; then
  12046. # AIX 5 now supports IA64 processor
  12047. lt_prog_compiler_static_CXX='-Bstatic'
  12048. else
  12049. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12050. fi
  12051. ;;
  12052. chorus*)
  12053. case $cc_basename in
  12054. cxch68*)
  12055. # Green Hills C++ Compiler
  12056. # _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"
  12057. ;;
  12058. esac
  12059. ;;
  12060. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12061. # This hack is so that the source file can tell whether it is being
  12062. # built for inclusion in a dll (and should export symbols for example).
  12063. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12064. ;;
  12065. dgux*)
  12066. case $cc_basename in
  12067. ec++*)
  12068. lt_prog_compiler_pic_CXX='-KPIC'
  12069. ;;
  12070. ghcx*)
  12071. # Green Hills C++ Compiler
  12072. lt_prog_compiler_pic_CXX='-pic'
  12073. ;;
  12074. *)
  12075. ;;
  12076. esac
  12077. ;;
  12078. freebsd* | dragonfly*)
  12079. # FreeBSD uses GNU C++
  12080. ;;
  12081. hpux9* | hpux10* | hpux11*)
  12082. case $cc_basename in
  12083. CC*)
  12084. lt_prog_compiler_wl_CXX='-Wl,'
  12085. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12086. if test "$host_cpu" != ia64; then
  12087. lt_prog_compiler_pic_CXX='+Z'
  12088. fi
  12089. ;;
  12090. aCC*)
  12091. lt_prog_compiler_wl_CXX='-Wl,'
  12092. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12093. case $host_cpu in
  12094. hppa*64*|ia64*)
  12095. # +Z the default
  12096. ;;
  12097. *)
  12098. lt_prog_compiler_pic_CXX='+Z'
  12099. ;;
  12100. esac
  12101. ;;
  12102. *)
  12103. ;;
  12104. esac
  12105. ;;
  12106. interix*)
  12107. # This is c89, which is MS Visual C++ (no shared libs)
  12108. # Anyone wants to do a port?
  12109. ;;
  12110. irix5* | irix6* | nonstopux*)
  12111. case $cc_basename in
  12112. CC*)
  12113. lt_prog_compiler_wl_CXX='-Wl,'
  12114. lt_prog_compiler_static_CXX='-non_shared'
  12115. # CC pic flag -KPIC is the default.
  12116. ;;
  12117. *)
  12118. ;;
  12119. esac
  12120. ;;
  12121. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12122. case $cc_basename in
  12123. KCC*)
  12124. # KAI C++ Compiler
  12125. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12126. lt_prog_compiler_pic_CXX='-fPIC'
  12127. ;;
  12128. ecpc* )
  12129. # old Intel C++ for x86_64 which still supported -KPIC.
  12130. lt_prog_compiler_wl_CXX='-Wl,'
  12131. lt_prog_compiler_pic_CXX='-KPIC'
  12132. lt_prog_compiler_static_CXX='-static'
  12133. ;;
  12134. icpc* )
  12135. # Intel C++, used to be incompatible with GCC.
  12136. # ICC 10 doesn't accept -KPIC any more.
  12137. lt_prog_compiler_wl_CXX='-Wl,'
  12138. lt_prog_compiler_pic_CXX='-fPIC'
  12139. lt_prog_compiler_static_CXX='-static'
  12140. ;;
  12141. pgCC* | pgcpp*)
  12142. # Portland Group C++ compiler
  12143. lt_prog_compiler_wl_CXX='-Wl,'
  12144. lt_prog_compiler_pic_CXX='-fpic'
  12145. lt_prog_compiler_static_CXX='-Bstatic'
  12146. ;;
  12147. cxx*)
  12148. # Compaq C++
  12149. # Make sure the PIC flag is empty. It appears that all Alpha
  12150. # Linux and Compaq Tru64 Unix objects are PIC.
  12151. lt_prog_compiler_pic_CXX=
  12152. lt_prog_compiler_static_CXX='-non_shared'
  12153. ;;
  12154. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12155. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12156. lt_prog_compiler_wl_CXX='-Wl,'
  12157. lt_prog_compiler_pic_CXX='-qpic'
  12158. lt_prog_compiler_static_CXX='-qstaticlink'
  12159. ;;
  12160. *)
  12161. case `$CC -V 2>&1 | sed 5q` in
  12162. *Sun\ C*)
  12163. # Sun C++ 5.9
  12164. lt_prog_compiler_pic_CXX='-KPIC'
  12165. lt_prog_compiler_static_CXX='-Bstatic'
  12166. lt_prog_compiler_wl_CXX='-Qoption ld '
  12167. ;;
  12168. esac
  12169. ;;
  12170. esac
  12171. ;;
  12172. lynxos*)
  12173. ;;
  12174. m88k*)
  12175. ;;
  12176. mvs*)
  12177. case $cc_basename in
  12178. cxx*)
  12179. lt_prog_compiler_pic_CXX='-W c,exportall'
  12180. ;;
  12181. *)
  12182. ;;
  12183. esac
  12184. ;;
  12185. netbsd*)
  12186. ;;
  12187. *qnx* | *nto*)
  12188. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12189. # it will coredump.
  12190. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12191. ;;
  12192. osf3* | osf4* | osf5*)
  12193. case $cc_basename in
  12194. KCC*)
  12195. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12196. ;;
  12197. RCC*)
  12198. # Rational C++ 2.4.1
  12199. lt_prog_compiler_pic_CXX='-pic'
  12200. ;;
  12201. cxx*)
  12202. # Digital/Compaq C++
  12203. lt_prog_compiler_wl_CXX='-Wl,'
  12204. # Make sure the PIC flag is empty. It appears that all Alpha
  12205. # Linux and Compaq Tru64 Unix objects are PIC.
  12206. lt_prog_compiler_pic_CXX=
  12207. lt_prog_compiler_static_CXX='-non_shared'
  12208. ;;
  12209. *)
  12210. ;;
  12211. esac
  12212. ;;
  12213. psos*)
  12214. ;;
  12215. solaris*)
  12216. case $cc_basename in
  12217. CC* | sunCC*)
  12218. # Sun C++ 4.2, 5.x and Centerline C++
  12219. lt_prog_compiler_pic_CXX='-KPIC'
  12220. lt_prog_compiler_static_CXX='-Bstatic'
  12221. lt_prog_compiler_wl_CXX='-Qoption ld '
  12222. ;;
  12223. gcx*)
  12224. # Green Hills C++ Compiler
  12225. lt_prog_compiler_pic_CXX='-PIC'
  12226. ;;
  12227. *)
  12228. ;;
  12229. esac
  12230. ;;
  12231. sunos4*)
  12232. case $cc_basename in
  12233. CC*)
  12234. # Sun C++ 4.x
  12235. lt_prog_compiler_pic_CXX='-pic'
  12236. lt_prog_compiler_static_CXX='-Bstatic'
  12237. ;;
  12238. lcc*)
  12239. # Lucid
  12240. lt_prog_compiler_pic_CXX='-pic'
  12241. ;;
  12242. *)
  12243. ;;
  12244. esac
  12245. ;;
  12246. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12247. case $cc_basename in
  12248. CC*)
  12249. lt_prog_compiler_wl_CXX='-Wl,'
  12250. lt_prog_compiler_pic_CXX='-KPIC'
  12251. lt_prog_compiler_static_CXX='-Bstatic'
  12252. ;;
  12253. esac
  12254. ;;
  12255. tandem*)
  12256. case $cc_basename in
  12257. NCC*)
  12258. # NonStop-UX NCC 3.20
  12259. lt_prog_compiler_pic_CXX='-KPIC'
  12260. ;;
  12261. *)
  12262. ;;
  12263. esac
  12264. ;;
  12265. vxworks*)
  12266. ;;
  12267. *)
  12268. lt_prog_compiler_can_build_shared_CXX=no
  12269. ;;
  12270. esac
  12271. fi
  12272. case $host_os in
  12273. # For platforms which do not support PIC, -DPIC is meaningless:
  12274. *djgpp*)
  12275. lt_prog_compiler_pic_CXX=
  12276. ;;
  12277. *)
  12278. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12279. ;;
  12280. esac
  12281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12282. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12283. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12284. $as_echo_n "(cached) " >&6
  12285. else
  12286. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12287. fi
  12288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12289. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12290. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12291. #
  12292. # Check to make sure the PIC flag actually works.
  12293. #
  12294. if test -n "$lt_prog_compiler_pic_CXX"; then
  12295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12296. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12297. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12298. $as_echo_n "(cached) " >&6
  12299. else
  12300. lt_cv_prog_compiler_pic_works_CXX=no
  12301. ac_outfile=conftest.$ac_objext
  12302. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12303. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12304. # Insert the option either (1) after the last *FLAGS variable, or
  12305. # (2) before a word containing "conftest.", or (3) at the end.
  12306. # Note that $ac_compile itself does not contain backslashes and begins
  12307. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12308. # The option is referenced via a variable to avoid confusing sed.
  12309. lt_compile=`echo "$ac_compile" | $SED \
  12310. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12311. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12312. -e 's:$: $lt_compiler_flag:'`
  12313. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12314. (eval "$lt_compile" 2>conftest.err)
  12315. ac_status=$?
  12316. cat conftest.err >&5
  12317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12318. if (exit $ac_status) && test -s "$ac_outfile"; then
  12319. # The compiler can only warn and ignore the option if not recognized
  12320. # So say no if there are warnings other than the usual output.
  12321. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12322. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12323. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12324. lt_cv_prog_compiler_pic_works_CXX=yes
  12325. fi
  12326. fi
  12327. $RM conftest*
  12328. fi
  12329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12330. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12331. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12332. case $lt_prog_compiler_pic_CXX in
  12333. "" | " "*) ;;
  12334. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12335. esac
  12336. else
  12337. lt_prog_compiler_pic_CXX=
  12338. lt_prog_compiler_can_build_shared_CXX=no
  12339. fi
  12340. fi
  12341. #
  12342. # Check to make sure the static flag actually works.
  12343. #
  12344. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12346. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12347. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12348. $as_echo_n "(cached) " >&6
  12349. else
  12350. lt_cv_prog_compiler_static_works_CXX=no
  12351. save_LDFLAGS="$LDFLAGS"
  12352. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12353. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12354. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12355. # The linker can only warn and ignore the option if not recognized
  12356. # So say no if there are warnings
  12357. if test -s conftest.err; then
  12358. # Append any errors to the config.log.
  12359. cat conftest.err 1>&5
  12360. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12361. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12362. if diff conftest.exp conftest.er2 >/dev/null; then
  12363. lt_cv_prog_compiler_static_works_CXX=yes
  12364. fi
  12365. else
  12366. lt_cv_prog_compiler_static_works_CXX=yes
  12367. fi
  12368. fi
  12369. $RM -r conftest*
  12370. LDFLAGS="$save_LDFLAGS"
  12371. fi
  12372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12373. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12374. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12375. :
  12376. else
  12377. lt_prog_compiler_static_CXX=
  12378. fi
  12379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12380. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12381. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12382. $as_echo_n "(cached) " >&6
  12383. else
  12384. lt_cv_prog_compiler_c_o_CXX=no
  12385. $RM -r conftest 2>/dev/null
  12386. mkdir conftest
  12387. cd conftest
  12388. mkdir out
  12389. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12390. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12391. # Insert the option either (1) after the last *FLAGS variable, or
  12392. # (2) before a word containing "conftest.", or (3) at the end.
  12393. # Note that $ac_compile itself does not contain backslashes and begins
  12394. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12395. lt_compile=`echo "$ac_compile" | $SED \
  12396. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12397. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12398. -e 's:$: $lt_compiler_flag:'`
  12399. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12400. (eval "$lt_compile" 2>out/conftest.err)
  12401. ac_status=$?
  12402. cat out/conftest.err >&5
  12403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12404. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12405. then
  12406. # The compiler can only warn and ignore the option if not recognized
  12407. # So say no if there are warnings
  12408. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12409. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12410. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12411. lt_cv_prog_compiler_c_o_CXX=yes
  12412. fi
  12413. fi
  12414. chmod u+w . 2>&5
  12415. $RM conftest*
  12416. # SGI C++ compiler will create directory out/ii_files/ for
  12417. # template instantiation
  12418. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12419. $RM out/* && rmdir out
  12420. cd ..
  12421. $RM -r conftest
  12422. $RM conftest*
  12423. fi
  12424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12425. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12427. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12428. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12429. $as_echo_n "(cached) " >&6
  12430. else
  12431. lt_cv_prog_compiler_c_o_CXX=no
  12432. $RM -r conftest 2>/dev/null
  12433. mkdir conftest
  12434. cd conftest
  12435. mkdir out
  12436. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12437. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12438. # Insert the option either (1) after the last *FLAGS variable, or
  12439. # (2) before a word containing "conftest.", or (3) at the end.
  12440. # Note that $ac_compile itself does not contain backslashes and begins
  12441. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12442. lt_compile=`echo "$ac_compile" | $SED \
  12443. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12444. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12445. -e 's:$: $lt_compiler_flag:'`
  12446. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12447. (eval "$lt_compile" 2>out/conftest.err)
  12448. ac_status=$?
  12449. cat out/conftest.err >&5
  12450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12451. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12452. then
  12453. # The compiler can only warn and ignore the option if not recognized
  12454. # So say no if there are warnings
  12455. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12456. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12457. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12458. lt_cv_prog_compiler_c_o_CXX=yes
  12459. fi
  12460. fi
  12461. chmod u+w . 2>&5
  12462. $RM conftest*
  12463. # SGI C++ compiler will create directory out/ii_files/ for
  12464. # template instantiation
  12465. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12466. $RM out/* && rmdir out
  12467. cd ..
  12468. $RM -r conftest
  12469. $RM conftest*
  12470. fi
  12471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12472. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12473. hard_links="nottested"
  12474. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12475. # do not overwrite the value of need_locks provided by the user
  12476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12477. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12478. hard_links=yes
  12479. $RM conftest*
  12480. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12481. touch conftest.a
  12482. ln conftest.a conftest.b 2>&5 || hard_links=no
  12483. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12485. $as_echo "$hard_links" >&6; }
  12486. if test "$hard_links" = no; then
  12487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12488. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12489. need_locks=warn
  12490. fi
  12491. else
  12492. need_locks=no
  12493. fi
  12494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12495. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12496. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12497. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12498. case $host_os in
  12499. aix[4-9]*)
  12500. # If we're using GNU nm, then we don't want the "-C" option.
  12501. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12502. # Also, AIX nm treats weak defined symbols like other global defined
  12503. # symbols, whereas GNU nm marks them as "W".
  12504. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12505. 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'
  12506. else
  12507. 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'
  12508. fi
  12509. ;;
  12510. pw32*)
  12511. export_symbols_cmds_CXX="$ltdll_cmds"
  12512. ;;
  12513. cygwin* | mingw* | cegcc*)
  12514. case $cc_basename in
  12515. cl*)
  12516. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12517. ;;
  12518. *)
  12519. 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'
  12520. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12521. ;;
  12522. esac
  12523. ;;
  12524. *)
  12525. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12526. ;;
  12527. esac
  12528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12529. $as_echo "$ld_shlibs_CXX" >&6; }
  12530. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12531. with_gnu_ld_CXX=$with_gnu_ld
  12532. #
  12533. # Do we need to explicitly link libc?
  12534. #
  12535. case "x$archive_cmds_need_lc_CXX" in
  12536. x|xyes)
  12537. # Assume -lc should be added
  12538. archive_cmds_need_lc_CXX=yes
  12539. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12540. case $archive_cmds_CXX in
  12541. *'~'*)
  12542. # FIXME: we may have to deal with multi-command sequences.
  12543. ;;
  12544. '$CC '*)
  12545. # Test whether the compiler implicitly links with -lc since on some
  12546. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12547. # to ld, don't add -lc before -lgcc.
  12548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12549. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12550. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12551. $as_echo_n "(cached) " >&6
  12552. else
  12553. $RM conftest*
  12554. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12555. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12556. (eval $ac_compile) 2>&5
  12557. ac_status=$?
  12558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12559. test $ac_status = 0; } 2>conftest.err; then
  12560. soname=conftest
  12561. lib=conftest
  12562. libobjs=conftest.$ac_objext
  12563. deplibs=
  12564. wl=$lt_prog_compiler_wl_CXX
  12565. pic_flag=$lt_prog_compiler_pic_CXX
  12566. compiler_flags=-v
  12567. linker_flags=-v
  12568. verstring=
  12569. output_objdir=.
  12570. libname=conftest
  12571. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12572. allow_undefined_flag_CXX=
  12573. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12574. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12575. ac_status=$?
  12576. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12577. test $ac_status = 0; }
  12578. then
  12579. lt_cv_archive_cmds_need_lc_CXX=no
  12580. else
  12581. lt_cv_archive_cmds_need_lc_CXX=yes
  12582. fi
  12583. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12584. else
  12585. cat conftest.err 1>&5
  12586. fi
  12587. $RM conftest*
  12588. fi
  12589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12590. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12591. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12592. ;;
  12593. esac
  12594. fi
  12595. ;;
  12596. esac
  12597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12598. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12599. library_names_spec=
  12600. libname_spec='lib$name'
  12601. soname_spec=
  12602. shrext_cmds=".so"
  12603. postinstall_cmds=
  12604. postuninstall_cmds=
  12605. finish_cmds=
  12606. finish_eval=
  12607. shlibpath_var=
  12608. shlibpath_overrides_runpath=unknown
  12609. version_type=none
  12610. dynamic_linker="$host_os ld.so"
  12611. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12612. need_lib_prefix=unknown
  12613. hardcode_into_libs=no
  12614. # when you set need_version to no, make sure it does not cause -set_version
  12615. # flags to be left without arguments
  12616. need_version=unknown
  12617. case $host_os in
  12618. aix3*)
  12619. version_type=linux # correct to gnu/linux during the next big refactor
  12620. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12621. shlibpath_var=LIBPATH
  12622. # AIX 3 has no versioning support, so we append a major version to the name.
  12623. soname_spec='${libname}${release}${shared_ext}$major'
  12624. ;;
  12625. aix[4-9]*)
  12626. version_type=linux # correct to gnu/linux during the next big refactor
  12627. need_lib_prefix=no
  12628. need_version=no
  12629. hardcode_into_libs=yes
  12630. if test "$host_cpu" = ia64; then
  12631. # AIX 5 supports IA64
  12632. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12633. shlibpath_var=LD_LIBRARY_PATH
  12634. else
  12635. # With GCC up to 2.95.x, collect2 would create an import file
  12636. # for dependence libraries. The import file would start with
  12637. # the line `#! .'. This would cause the generated library to
  12638. # depend on `.', always an invalid library. This was fixed in
  12639. # development snapshots of GCC prior to 3.0.
  12640. case $host_os in
  12641. aix4 | aix4.[01] | aix4.[01].*)
  12642. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12643. echo ' yes '
  12644. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12645. :
  12646. else
  12647. can_build_shared=no
  12648. fi
  12649. ;;
  12650. esac
  12651. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12652. # soname into executable. Probably we can add versioning support to
  12653. # collect2, so additional links can be useful in future.
  12654. if test "$aix_use_runtimelinking" = yes; then
  12655. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12656. # instead of lib<name>.a to let people know that these are not
  12657. # typical AIX shared libraries.
  12658. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12659. else
  12660. # We preserve .a as extension for shared libraries through AIX4.2
  12661. # and later when we are not doing run time linking.
  12662. library_names_spec='${libname}${release}.a $libname.a'
  12663. soname_spec='${libname}${release}${shared_ext}$major'
  12664. fi
  12665. shlibpath_var=LIBPATH
  12666. fi
  12667. ;;
  12668. amigaos*)
  12669. case $host_cpu in
  12670. powerpc)
  12671. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12672. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12673. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12674. ;;
  12675. m68k)
  12676. library_names_spec='$libname.ixlibrary $libname.a'
  12677. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12678. 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'
  12679. ;;
  12680. esac
  12681. ;;
  12682. beos*)
  12683. library_names_spec='${libname}${shared_ext}'
  12684. dynamic_linker="$host_os ld.so"
  12685. shlibpath_var=LIBRARY_PATH
  12686. ;;
  12687. bsdi[45]*)
  12688. version_type=linux # correct to gnu/linux during the next big refactor
  12689. need_version=no
  12690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12691. soname_spec='${libname}${release}${shared_ext}$major'
  12692. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12693. shlibpath_var=LD_LIBRARY_PATH
  12694. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12695. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12696. # the default ld.so.conf also contains /usr/contrib/lib and
  12697. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12698. # libtool to hard-code these into programs
  12699. ;;
  12700. cygwin* | mingw* | pw32* | cegcc*)
  12701. version_type=windows
  12702. shrext_cmds=".dll"
  12703. need_version=no
  12704. need_lib_prefix=no
  12705. case $GCC,$cc_basename in
  12706. yes,*)
  12707. # gcc
  12708. library_names_spec='$libname.dll.a'
  12709. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12710. postinstall_cmds='base_file=`basename \${file}`~
  12711. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12712. dldir=$destdir/`dirname \$dlpath`~
  12713. test -d \$dldir || mkdir -p \$dldir~
  12714. $install_prog $dir/$dlname \$dldir/$dlname~
  12715. chmod a+x \$dldir/$dlname~
  12716. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12717. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12718. fi'
  12719. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12720. dlpath=$dir/\$dldll~
  12721. $RM \$dlpath'
  12722. shlibpath_overrides_runpath=yes
  12723. case $host_os in
  12724. cygwin*)
  12725. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12726. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12727. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12728. ;;
  12729. mingw* | cegcc*)
  12730. # MinGW DLLs use traditional 'lib' prefix
  12731. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12732. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12733. ;;
  12734. pw32*)
  12735. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12736. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12737. ;;
  12738. esac
  12739. dynamic_linker='Win32 ld.exe'
  12740. ;;
  12741. *,cl*)
  12742. # Native MSVC
  12743. libname_spec='$name'
  12744. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12745. library_names_spec='${libname}.dll.lib'
  12746. case $build_os in
  12747. mingw*)
  12748. sys_lib_search_path_spec=
  12749. lt_save_ifs=$IFS
  12750. IFS=';'
  12751. for lt_path in $LIB
  12752. do
  12753. IFS=$lt_save_ifs
  12754. # Let DOS variable expansion print the short 8.3 style file name.
  12755. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12756. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12757. done
  12758. IFS=$lt_save_ifs
  12759. # Convert to MSYS style.
  12760. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12761. ;;
  12762. cygwin*)
  12763. # Convert to unix form, then to dos form, then back to unix form
  12764. # but this time dos style (no spaces!) so that the unix form looks
  12765. # like /cygdrive/c/PROGRA~1:/cygdr...
  12766. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12767. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12768. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12769. ;;
  12770. *)
  12771. sys_lib_search_path_spec="$LIB"
  12772. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12773. # It is most probably a Windows format PATH.
  12774. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12775. else
  12776. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12777. fi
  12778. # FIXME: find the short name or the path components, as spaces are
  12779. # common. (e.g. "Program Files" -> "PROGRA~1")
  12780. ;;
  12781. esac
  12782. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12783. postinstall_cmds='base_file=`basename \${file}`~
  12784. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12785. dldir=$destdir/`dirname \$dlpath`~
  12786. test -d \$dldir || mkdir -p \$dldir~
  12787. $install_prog $dir/$dlname \$dldir/$dlname'
  12788. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12789. dlpath=$dir/\$dldll~
  12790. $RM \$dlpath'
  12791. shlibpath_overrides_runpath=yes
  12792. dynamic_linker='Win32 link.exe'
  12793. ;;
  12794. *)
  12795. # Assume MSVC wrapper
  12796. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12797. dynamic_linker='Win32 ld.exe'
  12798. ;;
  12799. esac
  12800. # FIXME: first we should search . and the directory the executable is in
  12801. shlibpath_var=PATH
  12802. ;;
  12803. darwin* | rhapsody*)
  12804. dynamic_linker="$host_os dyld"
  12805. version_type=darwin
  12806. need_lib_prefix=no
  12807. need_version=no
  12808. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12809. soname_spec='${libname}${release}${major}$shared_ext'
  12810. shlibpath_overrides_runpath=yes
  12811. shlibpath_var=DYLD_LIBRARY_PATH
  12812. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12813. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12814. ;;
  12815. dgux*)
  12816. version_type=linux # correct to gnu/linux during the next big refactor
  12817. need_lib_prefix=no
  12818. need_version=no
  12819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12820. soname_spec='${libname}${release}${shared_ext}$major'
  12821. shlibpath_var=LD_LIBRARY_PATH
  12822. ;;
  12823. freebsd* | dragonfly*)
  12824. # DragonFly does not have aout. When/if they implement a new
  12825. # versioning mechanism, adjust this.
  12826. if test -x /usr/bin/objformat; then
  12827. objformat=`/usr/bin/objformat`
  12828. else
  12829. case $host_os in
  12830. freebsd[23].*) objformat=aout ;;
  12831. *) objformat=elf ;;
  12832. esac
  12833. fi
  12834. version_type=freebsd-$objformat
  12835. case $version_type in
  12836. freebsd-elf*)
  12837. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12838. need_version=no
  12839. need_lib_prefix=no
  12840. ;;
  12841. freebsd-*)
  12842. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12843. need_version=yes
  12844. ;;
  12845. esac
  12846. shlibpath_var=LD_LIBRARY_PATH
  12847. case $host_os in
  12848. freebsd2.*)
  12849. shlibpath_overrides_runpath=yes
  12850. ;;
  12851. freebsd3.[01]* | freebsdelf3.[01]*)
  12852. shlibpath_overrides_runpath=yes
  12853. hardcode_into_libs=yes
  12854. ;;
  12855. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12856. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12857. shlibpath_overrides_runpath=no
  12858. hardcode_into_libs=yes
  12859. ;;
  12860. *) # from 4.6 on, and DragonFly
  12861. shlibpath_overrides_runpath=yes
  12862. hardcode_into_libs=yes
  12863. ;;
  12864. esac
  12865. ;;
  12866. gnu*)
  12867. version_type=linux # correct to gnu/linux during the next big refactor
  12868. need_lib_prefix=no
  12869. need_version=no
  12870. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12871. soname_spec='${libname}${release}${shared_ext}$major'
  12872. shlibpath_var=LD_LIBRARY_PATH
  12873. shlibpath_overrides_runpath=no
  12874. hardcode_into_libs=yes
  12875. ;;
  12876. haiku*)
  12877. version_type=linux # correct to gnu/linux during the next big refactor
  12878. need_lib_prefix=no
  12879. need_version=no
  12880. dynamic_linker="$host_os runtime_loader"
  12881. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12882. soname_spec='${libname}${release}${shared_ext}$major'
  12883. shlibpath_var=LIBRARY_PATH
  12884. shlibpath_overrides_runpath=yes
  12885. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12886. hardcode_into_libs=yes
  12887. ;;
  12888. hpux9* | hpux10* | hpux11*)
  12889. # Give a soname corresponding to the major version so that dld.sl refuses to
  12890. # link against other versions.
  12891. version_type=sunos
  12892. need_lib_prefix=no
  12893. need_version=no
  12894. case $host_cpu in
  12895. ia64*)
  12896. shrext_cmds='.so'
  12897. hardcode_into_libs=yes
  12898. dynamic_linker="$host_os dld.so"
  12899. shlibpath_var=LD_LIBRARY_PATH
  12900. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12901. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12902. soname_spec='${libname}${release}${shared_ext}$major'
  12903. if test "X$HPUX_IA64_MODE" = X32; then
  12904. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12905. else
  12906. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12907. fi
  12908. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12909. ;;
  12910. hppa*64*)
  12911. shrext_cmds='.sl'
  12912. hardcode_into_libs=yes
  12913. dynamic_linker="$host_os dld.sl"
  12914. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12915. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12917. soname_spec='${libname}${release}${shared_ext}$major'
  12918. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12919. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12920. ;;
  12921. *)
  12922. shrext_cmds='.sl'
  12923. dynamic_linker="$host_os dld.sl"
  12924. shlibpath_var=SHLIB_PATH
  12925. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12927. soname_spec='${libname}${release}${shared_ext}$major'
  12928. ;;
  12929. esac
  12930. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12931. postinstall_cmds='chmod 555 $lib'
  12932. # or fails outright, so override atomically:
  12933. install_override_mode=555
  12934. ;;
  12935. interix[3-9]*)
  12936. version_type=linux # correct to gnu/linux during the next big refactor
  12937. need_lib_prefix=no
  12938. need_version=no
  12939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12940. soname_spec='${libname}${release}${shared_ext}$major'
  12941. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12942. shlibpath_var=LD_LIBRARY_PATH
  12943. shlibpath_overrides_runpath=no
  12944. hardcode_into_libs=yes
  12945. ;;
  12946. irix5* | irix6* | nonstopux*)
  12947. case $host_os in
  12948. nonstopux*) version_type=nonstopux ;;
  12949. *)
  12950. if test "$lt_cv_prog_gnu_ld" = yes; then
  12951. version_type=linux # correct to gnu/linux during the next big refactor
  12952. else
  12953. version_type=irix
  12954. fi ;;
  12955. esac
  12956. need_lib_prefix=no
  12957. need_version=no
  12958. soname_spec='${libname}${release}${shared_ext}$major'
  12959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12960. case $host_os in
  12961. irix5* | nonstopux*)
  12962. libsuff= shlibsuff=
  12963. ;;
  12964. *)
  12965. case $LD in # libtool.m4 will add one of these switches to LD
  12966. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12967. libsuff= shlibsuff= libmagic=32-bit;;
  12968. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12969. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12970. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12971. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12972. *) libsuff= shlibsuff= libmagic=never-match;;
  12973. esac
  12974. ;;
  12975. esac
  12976. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12977. shlibpath_overrides_runpath=no
  12978. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12979. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12980. hardcode_into_libs=yes
  12981. ;;
  12982. # No shared lib support for Linux oldld, aout, or coff.
  12983. linux*oldld* | linux*aout* | linux*coff*)
  12984. dynamic_linker=no
  12985. ;;
  12986. # This must be glibc/ELF.
  12987. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12988. version_type=linux # correct to gnu/linux during the next big refactor
  12989. need_lib_prefix=no
  12990. need_version=no
  12991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12992. soname_spec='${libname}${release}${shared_ext}$major'
  12993. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12994. shlibpath_var=LD_LIBRARY_PATH
  12995. shlibpath_overrides_runpath=no
  12996. # Some binutils ld are patched to set DT_RUNPATH
  12997. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12998. $as_echo_n "(cached) " >&6
  12999. else
  13000. lt_cv_shlibpath_overrides_runpath=no
  13001. save_LDFLAGS=$LDFLAGS
  13002. save_libdir=$libdir
  13003. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13004. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13006. /* end confdefs.h. */
  13007. int
  13008. main ()
  13009. {
  13010. ;
  13011. return 0;
  13012. }
  13013. _ACEOF
  13014. if ac_fn_cxx_try_link "$LINENO"; then :
  13015. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13016. lt_cv_shlibpath_overrides_runpath=yes
  13017. fi
  13018. fi
  13019. rm -f core conftest.err conftest.$ac_objext \
  13020. conftest$ac_exeext conftest.$ac_ext
  13021. LDFLAGS=$save_LDFLAGS
  13022. libdir=$save_libdir
  13023. fi
  13024. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13025. # This implies no fast_install, which is unacceptable.
  13026. # Some rework will be needed to allow for fast_install
  13027. # before this can be enabled.
  13028. hardcode_into_libs=yes
  13029. # Append ld.so.conf contents to the search path
  13030. if test -f /etc/ld.so.conf; then
  13031. 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' ' '`
  13032. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13033. fi
  13034. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13035. # powerpc, because MkLinux only supported shared libraries with the
  13036. # GNU dynamic linker. Since this was broken with cross compilers,
  13037. # most powerpc-linux boxes support dynamic linking these days and
  13038. # people can always --disable-shared, the test was removed, and we
  13039. # assume the GNU/Linux dynamic linker is in use.
  13040. dynamic_linker='GNU/Linux ld.so'
  13041. ;;
  13042. netbsd*)
  13043. version_type=sunos
  13044. need_lib_prefix=no
  13045. need_version=no
  13046. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13048. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13049. dynamic_linker='NetBSD (a.out) ld.so'
  13050. else
  13051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13052. soname_spec='${libname}${release}${shared_ext}$major'
  13053. dynamic_linker='NetBSD ld.elf_so'
  13054. fi
  13055. shlibpath_var=LD_LIBRARY_PATH
  13056. shlibpath_overrides_runpath=yes
  13057. hardcode_into_libs=yes
  13058. ;;
  13059. newsos6)
  13060. version_type=linux # correct to gnu/linux during the next big refactor
  13061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13062. shlibpath_var=LD_LIBRARY_PATH
  13063. shlibpath_overrides_runpath=yes
  13064. ;;
  13065. *nto* | *qnx*)
  13066. version_type=qnx
  13067. need_lib_prefix=no
  13068. need_version=no
  13069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13070. soname_spec='${libname}${release}${shared_ext}$major'
  13071. shlibpath_var=LD_LIBRARY_PATH
  13072. shlibpath_overrides_runpath=no
  13073. hardcode_into_libs=yes
  13074. dynamic_linker='ldqnx.so'
  13075. ;;
  13076. openbsd*)
  13077. version_type=sunos
  13078. sys_lib_dlsearch_path_spec="/usr/lib"
  13079. need_lib_prefix=no
  13080. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13081. case $host_os in
  13082. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13083. *) need_version=no ;;
  13084. esac
  13085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13086. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13087. shlibpath_var=LD_LIBRARY_PATH
  13088. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13089. case $host_os in
  13090. openbsd2.[89] | openbsd2.[89].*)
  13091. shlibpath_overrides_runpath=no
  13092. ;;
  13093. *)
  13094. shlibpath_overrides_runpath=yes
  13095. ;;
  13096. esac
  13097. else
  13098. shlibpath_overrides_runpath=yes
  13099. fi
  13100. ;;
  13101. os2*)
  13102. libname_spec='$name'
  13103. shrext_cmds=".dll"
  13104. need_lib_prefix=no
  13105. library_names_spec='$libname${shared_ext} $libname.a'
  13106. dynamic_linker='OS/2 ld.exe'
  13107. shlibpath_var=LIBPATH
  13108. ;;
  13109. osf3* | osf4* | osf5*)
  13110. version_type=osf
  13111. need_lib_prefix=no
  13112. need_version=no
  13113. soname_spec='${libname}${release}${shared_ext}$major'
  13114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13115. shlibpath_var=LD_LIBRARY_PATH
  13116. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13117. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13118. ;;
  13119. rdos*)
  13120. dynamic_linker=no
  13121. ;;
  13122. solaris*)
  13123. version_type=linux # correct to gnu/linux during the next big refactor
  13124. need_lib_prefix=no
  13125. need_version=no
  13126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13127. soname_spec='${libname}${release}${shared_ext}$major'
  13128. shlibpath_var=LD_LIBRARY_PATH
  13129. shlibpath_overrides_runpath=yes
  13130. hardcode_into_libs=yes
  13131. # ldd complains unless libraries are executable
  13132. postinstall_cmds='chmod +x $lib'
  13133. ;;
  13134. sunos4*)
  13135. version_type=sunos
  13136. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13137. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13138. shlibpath_var=LD_LIBRARY_PATH
  13139. shlibpath_overrides_runpath=yes
  13140. if test "$with_gnu_ld" = yes; then
  13141. need_lib_prefix=no
  13142. fi
  13143. need_version=yes
  13144. ;;
  13145. sysv4 | sysv4.3*)
  13146. version_type=linux # correct to gnu/linux during the next big refactor
  13147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13148. soname_spec='${libname}${release}${shared_ext}$major'
  13149. shlibpath_var=LD_LIBRARY_PATH
  13150. case $host_vendor in
  13151. sni)
  13152. shlibpath_overrides_runpath=no
  13153. need_lib_prefix=no
  13154. runpath_var=LD_RUN_PATH
  13155. ;;
  13156. siemens)
  13157. need_lib_prefix=no
  13158. ;;
  13159. motorola)
  13160. need_lib_prefix=no
  13161. need_version=no
  13162. shlibpath_overrides_runpath=no
  13163. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13164. ;;
  13165. esac
  13166. ;;
  13167. sysv4*MP*)
  13168. if test -d /usr/nec ;then
  13169. version_type=linux # correct to gnu/linux during the next big refactor
  13170. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13171. soname_spec='$libname${shared_ext}.$major'
  13172. shlibpath_var=LD_LIBRARY_PATH
  13173. fi
  13174. ;;
  13175. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13176. version_type=freebsd-elf
  13177. need_lib_prefix=no
  13178. need_version=no
  13179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13180. soname_spec='${libname}${release}${shared_ext}$major'
  13181. shlibpath_var=LD_LIBRARY_PATH
  13182. shlibpath_overrides_runpath=yes
  13183. hardcode_into_libs=yes
  13184. if test "$with_gnu_ld" = yes; then
  13185. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13186. else
  13187. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13188. case $host_os in
  13189. sco3.2v5*)
  13190. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13191. ;;
  13192. esac
  13193. fi
  13194. sys_lib_dlsearch_path_spec='/usr/lib'
  13195. ;;
  13196. tpf*)
  13197. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13198. version_type=linux # correct to gnu/linux during the next big refactor
  13199. need_lib_prefix=no
  13200. need_version=no
  13201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13202. shlibpath_var=LD_LIBRARY_PATH
  13203. shlibpath_overrides_runpath=no
  13204. hardcode_into_libs=yes
  13205. ;;
  13206. uts4*)
  13207. version_type=linux # correct to gnu/linux during the next big refactor
  13208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13209. soname_spec='${libname}${release}${shared_ext}$major'
  13210. shlibpath_var=LD_LIBRARY_PATH
  13211. ;;
  13212. *)
  13213. dynamic_linker=no
  13214. ;;
  13215. esac
  13216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13217. $as_echo "$dynamic_linker" >&6; }
  13218. test "$dynamic_linker" = no && can_build_shared=no
  13219. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13220. if test "$GCC" = yes; then
  13221. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13222. fi
  13223. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13224. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13225. fi
  13226. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13227. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13228. fi
  13229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13230. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13231. hardcode_action_CXX=
  13232. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13233. test -n "$runpath_var_CXX" ||
  13234. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13235. # We can hardcode non-existent directories.
  13236. if test "$hardcode_direct_CXX" != no &&
  13237. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13238. # have to relink, otherwise we might link with an installed library
  13239. # when we should be linking with a yet-to-be-installed one
  13240. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13241. test "$hardcode_minus_L_CXX" != no; then
  13242. # Linking always hardcodes the temporary library directory.
  13243. hardcode_action_CXX=relink
  13244. else
  13245. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13246. hardcode_action_CXX=immediate
  13247. fi
  13248. else
  13249. # We cannot hardcode anything, or else we can only hardcode existing
  13250. # directories.
  13251. hardcode_action_CXX=unsupported
  13252. fi
  13253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13254. $as_echo "$hardcode_action_CXX" >&6; }
  13255. if test "$hardcode_action_CXX" = relink ||
  13256. test "$inherit_rpath_CXX" = yes; then
  13257. # Fast installation is not supported
  13258. enable_fast_install=no
  13259. elif test "$shlibpath_overrides_runpath" = yes ||
  13260. test "$enable_shared" = no; then
  13261. # Fast installation is not necessary
  13262. enable_fast_install=needless
  13263. fi
  13264. fi # test -n "$compiler"
  13265. CC=$lt_save_CC
  13266. CFLAGS=$lt_save_CFLAGS
  13267. LDCXX=$LD
  13268. LD=$lt_save_LD
  13269. GCC=$lt_save_GCC
  13270. with_gnu_ld=$lt_save_with_gnu_ld
  13271. lt_cv_path_LDCXX=$lt_cv_path_LD
  13272. lt_cv_path_LD=$lt_save_path_LD
  13273. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13274. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13275. fi # test "$_lt_caught_CXX_error" != yes
  13276. ac_ext=c
  13277. ac_cpp='$CPP $CPPFLAGS'
  13278. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13279. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13280. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13281. # Find a good install program. We prefer a C program (faster),
  13282. # so one script is as good as another. But avoid the broken or
  13283. # incompatible versions:
  13284. # SysV /etc/install, /usr/sbin/install
  13285. # SunOS /usr/etc/install
  13286. # IRIX /sbin/install
  13287. # AIX /bin/install
  13288. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13289. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13290. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13291. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13292. # OS/2's system install, which has a completely different semantic
  13293. # ./install, which can be erroneously created by make from ./install.sh.
  13294. # Reject install programs that cannot install multiple files.
  13295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13296. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13297. if test -z "$INSTALL"; then
  13298. if ${ac_cv_path_install+:} false; then :
  13299. $as_echo_n "(cached) " >&6
  13300. else
  13301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13302. for as_dir in $PATH
  13303. do
  13304. IFS=$as_save_IFS
  13305. test -z "$as_dir" && as_dir=.
  13306. # Account for people who put trailing slashes in PATH elements.
  13307. case $as_dir/ in #((
  13308. ./ | .// | /[cC]/* | \
  13309. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13310. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13311. /usr/ucb/* ) ;;
  13312. *)
  13313. # OSF1 and SCO ODT 3.0 have their own names for install.
  13314. # Don't use installbsd from OSF since it installs stuff as root
  13315. # by default.
  13316. for ac_prog in ginstall scoinst install; do
  13317. for ac_exec_ext in '' $ac_executable_extensions; do
  13318. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13319. if test $ac_prog = install &&
  13320. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13321. # AIX install. It has an incompatible calling convention.
  13322. :
  13323. elif test $ac_prog = install &&
  13324. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13325. # program-specific install script used by HP pwplus--don't use.
  13326. :
  13327. else
  13328. rm -rf conftest.one conftest.two conftest.dir
  13329. echo one > conftest.one
  13330. echo two > conftest.two
  13331. mkdir conftest.dir
  13332. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13333. test -s conftest.one && test -s conftest.two &&
  13334. test -s conftest.dir/conftest.one &&
  13335. test -s conftest.dir/conftest.two
  13336. then
  13337. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13338. break 3
  13339. fi
  13340. fi
  13341. fi
  13342. done
  13343. done
  13344. ;;
  13345. esac
  13346. done
  13347. IFS=$as_save_IFS
  13348. rm -rf conftest.one conftest.two conftest.dir
  13349. fi
  13350. if test "${ac_cv_path_install+set}" = set; then
  13351. INSTALL=$ac_cv_path_install
  13352. else
  13353. # As a last resort, use the slow shell script. Don't cache a
  13354. # value for INSTALL within a source directory, because that will
  13355. # break other packages using the cache if that directory is
  13356. # removed, or if the value is a relative name.
  13357. INSTALL=$ac_install_sh
  13358. fi
  13359. fi
  13360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13361. $as_echo "$INSTALL" >&6; }
  13362. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13363. # It thinks the first close brace ends the variable substitution.
  13364. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13365. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13366. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13368. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13369. set x ${MAKE-make}
  13370. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13371. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13372. $as_echo_n "(cached) " >&6
  13373. else
  13374. cat >conftest.make <<\_ACEOF
  13375. SHELL = /bin/sh
  13376. all:
  13377. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13378. _ACEOF
  13379. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13380. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13381. *@@@%%%=?*=@@@%%%*)
  13382. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13383. *)
  13384. eval ac_cv_prog_make_${ac_make}_set=no;;
  13385. esac
  13386. rm -f conftest.make
  13387. fi
  13388. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13390. $as_echo "yes" >&6; }
  13391. SET_MAKE=
  13392. else
  13393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13394. $as_echo "no" >&6; }
  13395. SET_MAKE="MAKE=${MAKE-make}"
  13396. fi
  13397. if test -n "$ac_tool_prefix"; then
  13398. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13399. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13401. $as_echo_n "checking for $ac_word... " >&6; }
  13402. if ${ac_cv_prog_WINDRES+:} false; then :
  13403. $as_echo_n "(cached) " >&6
  13404. else
  13405. if test -n "$WINDRES"; then
  13406. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13407. else
  13408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13409. for as_dir in $PATH
  13410. do
  13411. IFS=$as_save_IFS
  13412. test -z "$as_dir" && as_dir=.
  13413. for ac_exec_ext in '' $ac_executable_extensions; do
  13414. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13415. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13417. break 2
  13418. fi
  13419. done
  13420. done
  13421. IFS=$as_save_IFS
  13422. fi
  13423. fi
  13424. WINDRES=$ac_cv_prog_WINDRES
  13425. if test -n "$WINDRES"; then
  13426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13427. $as_echo "$WINDRES" >&6; }
  13428. else
  13429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13430. $as_echo "no" >&6; }
  13431. fi
  13432. fi
  13433. if test -z "$ac_cv_prog_WINDRES"; then
  13434. ac_ct_WINDRES=$WINDRES
  13435. # Extract the first word of "windres", so it can be a program name with args.
  13436. set dummy windres; ac_word=$2
  13437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13438. $as_echo_n "checking for $ac_word... " >&6; }
  13439. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13440. $as_echo_n "(cached) " >&6
  13441. else
  13442. if test -n "$ac_ct_WINDRES"; then
  13443. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13444. else
  13445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13446. for as_dir in $PATH
  13447. do
  13448. IFS=$as_save_IFS
  13449. test -z "$as_dir" && as_dir=.
  13450. for ac_exec_ext in '' $ac_executable_extensions; do
  13451. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13452. ac_cv_prog_ac_ct_WINDRES="windres"
  13453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13454. break 2
  13455. fi
  13456. done
  13457. done
  13458. IFS=$as_save_IFS
  13459. fi
  13460. fi
  13461. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13462. if test -n "$ac_ct_WINDRES"; then
  13463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13464. $as_echo "$ac_ct_WINDRES" >&6; }
  13465. else
  13466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13467. $as_echo "no" >&6; }
  13468. fi
  13469. if test "x$ac_ct_WINDRES" = x; then
  13470. WINDRES=":"
  13471. else
  13472. case $cross_compiling:$ac_tool_warned in
  13473. yes:)
  13474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13475. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13476. ac_tool_warned=yes ;;
  13477. esac
  13478. WINDRES=$ac_ct_WINDRES
  13479. fi
  13480. else
  13481. WINDRES="$ac_cv_prog_WINDRES"
  13482. fi
  13483. case "$host" in
  13484. *-*-mingw32*)
  13485. # Except on msys, where make can't handle full pathnames (bug 1972)
  13486. ;;
  13487. *)
  13488. srcdir=`cd $srcdir && pwd`
  13489. ;;
  13490. esac
  13491. INCLUDE="-I$srcdir/include"
  13492. if test x$srcdir != x.; then
  13493. INCLUDE="-Iinclude $INCLUDE"
  13494. elif test -d .hg; then
  13495. as_fn_error $? "
  13496. *** When building from Mercurial you should configure and build in a
  13497. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13498. " "$LINENO" 5
  13499. fi
  13500. BASE_CFLAGS=""
  13501. BASE_LDFLAGS=""
  13502. case "$host" in
  13503. *-*-cygwin*)
  13504. # We build SDL on cygwin without the UNIX emulation layer
  13505. save_CFLAGS="$CFLAGS"
  13506. have_no_cygwin=no
  13507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13508. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13509. CFLAGS="$save_CFLAGS -mno-cygwin"
  13510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13511. /* end confdefs.h. */
  13512. int
  13513. main ()
  13514. {
  13515. ;
  13516. return 0;
  13517. }
  13518. _ACEOF
  13519. if ac_fn_c_try_compile "$LINENO"; then :
  13520. have_no_cygwin=yes
  13521. fi
  13522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13524. $as_echo "$have_no_cygwin" >&6; }
  13525. CFLAGS="$save_CFLAGS"
  13526. if test x$have_no_cygwin = xyes; then
  13527. BASE_CFLAGS="-mno-cygwin"
  13528. BASE_LDFLAGS="-mno-cygwin"
  13529. fi
  13530. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13531. ;;
  13532. esac
  13533. # Uncomment the following line if you want to force SDL and applications
  13534. # built with it to be compiled for a particular architecture.
  13535. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13536. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13537. # The default optimization for SDL is -O3 (Bug #31)
  13538. if test "x$orig_CFLAGS" = x; then
  13539. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13540. fi
  13541. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13542. BUILD_LDFLAGS="$LDFLAGS"
  13543. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13544. ## These are common directories to find software packages
  13545. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13546. # if test -d $path/include; then
  13547. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13548. # fi
  13549. # if test -d $path/lib; then
  13550. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13551. # fi
  13552. #done
  13553. SDL_CFLAGS="$BASE_CFLAGS"
  13554. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13555. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13556. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13557. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13558. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13559. find_lib()
  13560. {
  13561. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13562. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13563. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13564. if test "$cross_compiling" = yes; then
  13565. host_lib_path=""
  13566. else
  13567. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13568. fi
  13569. for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
  13570. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13571. if test x$lib != x; then
  13572. echo $lib
  13573. return
  13574. fi
  13575. done
  13576. }
  13577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13578. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13579. if ${ac_cv_c_const+:} false; then :
  13580. $as_echo_n "(cached) " >&6
  13581. else
  13582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13583. /* end confdefs.h. */
  13584. int
  13585. main ()
  13586. {
  13587. #ifndef __cplusplus
  13588. /* Ultrix mips cc rejects this sort of thing. */
  13589. typedef int charset[2];
  13590. const charset cs = { 0, 0 };
  13591. /* SunOS 4.1.1 cc rejects this. */
  13592. char const *const *pcpcc;
  13593. char **ppc;
  13594. /* NEC SVR4.0.2 mips cc rejects this. */
  13595. struct point {int x, y;};
  13596. static struct point const zero = {0,0};
  13597. /* AIX XL C 1.02.0.0 rejects this.
  13598. It does not let you subtract one const X* pointer from another in
  13599. an arm of an if-expression whose if-part is not a constant
  13600. expression */
  13601. const char *g = "string";
  13602. pcpcc = &g + (g ? g-g : 0);
  13603. /* HPUX 7.0 cc rejects these. */
  13604. ++pcpcc;
  13605. ppc = (char**) pcpcc;
  13606. pcpcc = (char const *const *) ppc;
  13607. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13608. char tx;
  13609. char *t = &tx;
  13610. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13611. *t++ = 0;
  13612. if (s) return 0;
  13613. }
  13614. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13615. int x[] = {25, 17};
  13616. const int *foo = &x[0];
  13617. ++foo;
  13618. }
  13619. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13620. typedef const int *iptr;
  13621. iptr p = 0;
  13622. ++p;
  13623. }
  13624. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13625. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13626. struct s { int j; const int *ap[3]; } bx;
  13627. struct s *b = &bx; b->j = 5;
  13628. }
  13629. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13630. const int foo = 10;
  13631. if (!foo) return 0;
  13632. }
  13633. return !cs[0] && !zero.x;
  13634. #endif
  13635. ;
  13636. return 0;
  13637. }
  13638. _ACEOF
  13639. if ac_fn_c_try_compile "$LINENO"; then :
  13640. ac_cv_c_const=yes
  13641. else
  13642. ac_cv_c_const=no
  13643. fi
  13644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13645. fi
  13646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13647. $as_echo "$ac_cv_c_const" >&6; }
  13648. if test $ac_cv_c_const = no; then
  13649. $as_echo "#define const /**/" >>confdefs.h
  13650. fi
  13651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13652. $as_echo_n "checking for inline... " >&6; }
  13653. if ${ac_cv_c_inline+:} false; then :
  13654. $as_echo_n "(cached) " >&6
  13655. else
  13656. ac_cv_c_inline=no
  13657. for ac_kw in inline __inline__ __inline; do
  13658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13659. /* end confdefs.h. */
  13660. #ifndef __cplusplus
  13661. typedef int foo_t;
  13662. static $ac_kw foo_t static_foo () {return 0; }
  13663. $ac_kw foo_t foo () {return 0; }
  13664. #endif
  13665. _ACEOF
  13666. if ac_fn_c_try_compile "$LINENO"; then :
  13667. ac_cv_c_inline=$ac_kw
  13668. fi
  13669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13670. test "$ac_cv_c_inline" != no && break
  13671. done
  13672. fi
  13673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13674. $as_echo "$ac_cv_c_inline" >&6; }
  13675. case $ac_cv_c_inline in
  13676. inline | yes) ;;
  13677. *)
  13678. case $ac_cv_c_inline in
  13679. no) ac_val=;;
  13680. *) ac_val=$ac_cv_c_inline;;
  13681. esac
  13682. cat >>confdefs.h <<_ACEOF
  13683. #ifndef __cplusplus
  13684. #define inline $ac_val
  13685. #endif
  13686. _ACEOF
  13687. ;;
  13688. esac
  13689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13690. $as_echo_n "checking for working volatile... " >&6; }
  13691. if ${ac_cv_c_volatile+:} false; then :
  13692. $as_echo_n "(cached) " >&6
  13693. else
  13694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13695. /* end confdefs.h. */
  13696. int
  13697. main ()
  13698. {
  13699. volatile int x;
  13700. int * volatile y = (int *) 0;
  13701. return !x && !y;
  13702. ;
  13703. return 0;
  13704. }
  13705. _ACEOF
  13706. if ac_fn_c_try_compile "$LINENO"; then :
  13707. ac_cv_c_volatile=yes
  13708. else
  13709. ac_cv_c_volatile=no
  13710. fi
  13711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13712. fi
  13713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13714. $as_echo "$ac_cv_c_volatile" >&6; }
  13715. if test $ac_cv_c_volatile = no; then
  13716. $as_echo "#define volatile /**/" >>confdefs.h
  13717. fi
  13718. # Check whether --enable-assertions was given.
  13719. if test "${enable_assertions+set}" = set; then :
  13720. enableval=$enable_assertions;
  13721. else
  13722. enable_assertions=auto
  13723. fi
  13724. case "$enable_assertions" in
  13725. auto) # Use optimization settings to determine assertion level
  13726. ;;
  13727. disabled)
  13728. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13729. ;;
  13730. release)
  13731. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13732. ;;
  13733. enabled)
  13734. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13735. ;;
  13736. paranoid)
  13737. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13738. ;;
  13739. *)
  13740. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13741. ;;
  13742. esac
  13743. # Check whether --enable-dependency-tracking was given.
  13744. if test "${enable_dependency_tracking+set}" = set; then :
  13745. enableval=$enable_dependency_tracking;
  13746. else
  13747. enable_dependency_tracking=yes
  13748. fi
  13749. if test x$enable_dependency_tracking = xyes; then
  13750. have_gcc_mmd_mt=no
  13751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13752. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13754. /* end confdefs.h. */
  13755. #if !defined(__GNUC__) || __GNUC__ < 3
  13756. #error Dependency tracking requires GCC 3.0 or newer
  13757. #endif
  13758. int
  13759. main ()
  13760. {
  13761. ;
  13762. return 0;
  13763. }
  13764. _ACEOF
  13765. if ac_fn_c_try_compile "$LINENO"; then :
  13766. have_gcc_mmd_mt=yes
  13767. fi
  13768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13770. $as_echo "$have_gcc_mmd_mt" >&6; }
  13771. if test x$have_gcc_mmd_mt = xyes; then
  13772. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13773. fi
  13774. fi
  13775. # Actually this doesn't work on OpenBSD and BeOS
  13776. #AC_MSG_CHECKING(for linker option --no-undefined)
  13777. #have_no_undefined=no
  13778. #save_LDFLAGS="$LDFLAGS"
  13779. #LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13780. #AC_TRY_LINK([
  13781. #],[
  13782. #],[
  13783. #have_no_undefined=yes
  13784. #EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13785. #])
  13786. #LDFLAGS="$save_LDFLAGS"
  13787. #AC_MSG_RESULT($have_no_undefined)
  13788. # Check whether --enable-libc was given.
  13789. if test "${enable_libc+set}" = set; then :
  13790. enableval=$enable_libc;
  13791. else
  13792. enable_libc=yes
  13793. fi
  13794. if test x$enable_libc = xyes; then
  13795. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13797. $as_echo_n "checking for ANSI C header files... " >&6; }
  13798. if ${ac_cv_header_stdc+:} false; then :
  13799. $as_echo_n "(cached) " >&6
  13800. else
  13801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13802. /* end confdefs.h. */
  13803. #include <stdlib.h>
  13804. #include <stdarg.h>
  13805. #include <string.h>
  13806. #include <float.h>
  13807. int
  13808. main ()
  13809. {
  13810. ;
  13811. return 0;
  13812. }
  13813. _ACEOF
  13814. if ac_fn_c_try_compile "$LINENO"; then :
  13815. ac_cv_header_stdc=yes
  13816. else
  13817. ac_cv_header_stdc=no
  13818. fi
  13819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13820. if test $ac_cv_header_stdc = yes; then
  13821. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13823. /* end confdefs.h. */
  13824. #include <string.h>
  13825. _ACEOF
  13826. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13827. $EGREP "memchr" >/dev/null 2>&1; then :
  13828. else
  13829. ac_cv_header_stdc=no
  13830. fi
  13831. rm -f conftest*
  13832. fi
  13833. if test $ac_cv_header_stdc = yes; then
  13834. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13836. /* end confdefs.h. */
  13837. #include <stdlib.h>
  13838. _ACEOF
  13839. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13840. $EGREP "free" >/dev/null 2>&1; then :
  13841. else
  13842. ac_cv_header_stdc=no
  13843. fi
  13844. rm -f conftest*
  13845. fi
  13846. if test $ac_cv_header_stdc = yes; then
  13847. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13848. if test "$cross_compiling" = yes; then :
  13849. :
  13850. else
  13851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13852. /* end confdefs.h. */
  13853. #include <ctype.h>
  13854. #include <stdlib.h>
  13855. #if ((' ' & 0x0FF) == 0x020)
  13856. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13857. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13858. #else
  13859. # define ISLOWER(c) \
  13860. (('a' <= (c) && (c) <= 'i') \
  13861. || ('j' <= (c) && (c) <= 'r') \
  13862. || ('s' <= (c) && (c) <= 'z'))
  13863. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13864. #endif
  13865. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13866. int
  13867. main ()
  13868. {
  13869. int i;
  13870. for (i = 0; i < 256; i++)
  13871. if (XOR (islower (i), ISLOWER (i))
  13872. || toupper (i) != TOUPPER (i))
  13873. return 2;
  13874. return 0;
  13875. }
  13876. _ACEOF
  13877. if ac_fn_c_try_run "$LINENO"; then :
  13878. else
  13879. ac_cv_header_stdc=no
  13880. fi
  13881. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13882. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13883. fi
  13884. fi
  13885. fi
  13886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13887. $as_echo "$ac_cv_header_stdc" >&6; }
  13888. if test $ac_cv_header_stdc = yes; then
  13889. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13890. fi
  13891. 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
  13892. do :
  13893. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13894. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13895. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13896. cat >>confdefs.h <<_ACEOF
  13897. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13898. _ACEOF
  13899. fi
  13900. done
  13901. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13902. if test "x$ac_cv_type_size_t" = xyes; then :
  13903. else
  13904. cat >>confdefs.h <<_ACEOF
  13905. #define size_t unsigned int
  13906. _ACEOF
  13907. fi
  13908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13909. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13910. if ${ac_cv_define_M_PI+:} false; then :
  13911. $as_echo_n "(cached) " >&6
  13912. else
  13913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13914. /* end confdefs.h. */
  13915. #include <math.h>
  13916. #ifdef M_PI
  13917. YES_IS_DEFINED
  13918. #endif
  13919. _ACEOF
  13920. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13921. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13922. ac_cv_define_M_PI=yes
  13923. else
  13924. ac_cv_define_M_PI=no
  13925. fi
  13926. rm -f conftest*
  13927. fi
  13928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13929. $as_echo "$ac_cv_define_M_PI" >&6; }
  13930. if test "$ac_cv_define_M_PI" = "yes" ; then
  13931. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13932. fi
  13933. case "$host" in
  13934. *-*-cygwin* | *-*-mingw32*)
  13935. ;;
  13936. *)
  13937. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13938. # for constant arguments. Useless!
  13939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13940. $as_echo_n "checking for working alloca.h... " >&6; }
  13941. if ${ac_cv_working_alloca_h+:} false; then :
  13942. $as_echo_n "(cached) " >&6
  13943. else
  13944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13945. /* end confdefs.h. */
  13946. #include <alloca.h>
  13947. int
  13948. main ()
  13949. {
  13950. char *p = (char *) alloca (2 * sizeof (int));
  13951. if (p) return 0;
  13952. ;
  13953. return 0;
  13954. }
  13955. _ACEOF
  13956. if ac_fn_c_try_link "$LINENO"; then :
  13957. ac_cv_working_alloca_h=yes
  13958. else
  13959. ac_cv_working_alloca_h=no
  13960. fi
  13961. rm -f core conftest.err conftest.$ac_objext \
  13962. conftest$ac_exeext conftest.$ac_ext
  13963. fi
  13964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13965. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13966. if test $ac_cv_working_alloca_h = yes; then
  13967. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  13968. fi
  13969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13970. $as_echo_n "checking for alloca... " >&6; }
  13971. if ${ac_cv_func_alloca_works+:} false; then :
  13972. $as_echo_n "(cached) " >&6
  13973. else
  13974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13975. /* end confdefs.h. */
  13976. #ifdef __GNUC__
  13977. # define alloca __builtin_alloca
  13978. #else
  13979. # ifdef _MSC_VER
  13980. # include <malloc.h>
  13981. # define alloca _alloca
  13982. # else
  13983. # ifdef HAVE_ALLOCA_H
  13984. # include <alloca.h>
  13985. # else
  13986. # ifdef _AIX
  13987. #pragma alloca
  13988. # else
  13989. # ifndef alloca /* predefined by HP cc +Olibcalls */
  13990. void *alloca (size_t);
  13991. # endif
  13992. # endif
  13993. # endif
  13994. # endif
  13995. #endif
  13996. int
  13997. main ()
  13998. {
  13999. char *p = (char *) alloca (1);
  14000. if (p) return 0;
  14001. ;
  14002. return 0;
  14003. }
  14004. _ACEOF
  14005. if ac_fn_c_try_link "$LINENO"; then :
  14006. ac_cv_func_alloca_works=yes
  14007. else
  14008. ac_cv_func_alloca_works=no
  14009. fi
  14010. rm -f core conftest.err conftest.$ac_objext \
  14011. conftest$ac_exeext conftest.$ac_ext
  14012. fi
  14013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14014. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14015. if test $ac_cv_func_alloca_works = yes; then
  14016. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14017. else
  14018. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14019. # that cause trouble. Some versions do not even contain alloca or
  14020. # contain a buggy version. If you still want to use their alloca,
  14021. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14022. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14023. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14025. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14026. if ${ac_cv_os_cray+:} false; then :
  14027. $as_echo_n "(cached) " >&6
  14028. else
  14029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14030. /* end confdefs.h. */
  14031. #if defined CRAY && ! defined CRAY2
  14032. webecray
  14033. #else
  14034. wenotbecray
  14035. #endif
  14036. _ACEOF
  14037. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14038. $EGREP "webecray" >/dev/null 2>&1; then :
  14039. ac_cv_os_cray=yes
  14040. else
  14041. ac_cv_os_cray=no
  14042. fi
  14043. rm -f conftest*
  14044. fi
  14045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14046. $as_echo "$ac_cv_os_cray" >&6; }
  14047. if test $ac_cv_os_cray = yes; then
  14048. for ac_func in _getb67 GETB67 getb67; do
  14049. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14050. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14051. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14052. cat >>confdefs.h <<_ACEOF
  14053. #define CRAY_STACKSEG_END $ac_func
  14054. _ACEOF
  14055. break
  14056. fi
  14057. done
  14058. fi
  14059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14060. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14061. if ${ac_cv_c_stack_direction+:} false; then :
  14062. $as_echo_n "(cached) " >&6
  14063. else
  14064. if test "$cross_compiling" = yes; then :
  14065. ac_cv_c_stack_direction=0
  14066. else
  14067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14068. /* end confdefs.h. */
  14069. $ac_includes_default
  14070. int
  14071. find_stack_direction (int *addr, int depth)
  14072. {
  14073. int dir, dummy = 0;
  14074. if (! addr)
  14075. addr = &dummy;
  14076. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14077. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14078. return dir + dummy;
  14079. }
  14080. int
  14081. main (int argc, char **argv)
  14082. {
  14083. return find_stack_direction (0, argc + !argv + 20) < 0;
  14084. }
  14085. _ACEOF
  14086. if ac_fn_c_try_run "$LINENO"; then :
  14087. ac_cv_c_stack_direction=1
  14088. else
  14089. ac_cv_c_stack_direction=-1
  14090. fi
  14091. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14092. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14093. fi
  14094. fi
  14095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14096. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14097. cat >>confdefs.h <<_ACEOF
  14098. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14099. _ACEOF
  14100. fi
  14101. ;;
  14102. esac
  14103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14104. $as_echo_n "checking for working memcmp... " >&6; }
  14105. if ${ac_cv_func_memcmp_working+:} false; then :
  14106. $as_echo_n "(cached) " >&6
  14107. else
  14108. if test "$cross_compiling" = yes; then :
  14109. ac_cv_func_memcmp_working=no
  14110. else
  14111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14112. /* end confdefs.h. */
  14113. $ac_includes_default
  14114. int
  14115. main ()
  14116. {
  14117. /* Some versions of memcmp are not 8-bit clean. */
  14118. char c0 = '\100', c1 = '\200', c2 = '\201';
  14119. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14120. return 1;
  14121. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14122. or more and with at least one buffer not starting on a 4-byte boundary.
  14123. William Lewis provided this test program. */
  14124. {
  14125. char foo[21];
  14126. char bar[21];
  14127. int i;
  14128. for (i = 0; i < 4; i++)
  14129. {
  14130. char *a = foo + i;
  14131. char *b = bar + i;
  14132. strcpy (a, "--------01111111");
  14133. strcpy (b, "--------10000000");
  14134. if (memcmp (a, b, 16) >= 0)
  14135. return 1;
  14136. }
  14137. return 0;
  14138. }
  14139. ;
  14140. return 0;
  14141. }
  14142. _ACEOF
  14143. if ac_fn_c_try_run "$LINENO"; then :
  14144. ac_cv_func_memcmp_working=yes
  14145. else
  14146. ac_cv_func_memcmp_working=no
  14147. fi
  14148. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14149. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14150. fi
  14151. fi
  14152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14153. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14154. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14155. *" memcmp.$ac_objext "* ) ;;
  14156. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14157. ;;
  14158. esac
  14159. if test x$ac_cv_func_memcmp_working = xyes; then
  14160. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14161. fi
  14162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14163. $as_echo_n "checking for working strtod... " >&6; }
  14164. if ${ac_cv_func_strtod+:} false; then :
  14165. $as_echo_n "(cached) " >&6
  14166. else
  14167. if test "$cross_compiling" = yes; then :
  14168. ac_cv_func_strtod=no
  14169. else
  14170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14171. /* end confdefs.h. */
  14172. $ac_includes_default
  14173. #ifndef strtod
  14174. double strtod ();
  14175. #endif
  14176. int
  14177. main()
  14178. {
  14179. {
  14180. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14181. char *string = " +69";
  14182. char *term;
  14183. double value;
  14184. value = strtod (string, &term);
  14185. if (value != 69 || term != (string + 4))
  14186. return 1;
  14187. }
  14188. {
  14189. /* Under Solaris 2.4, strtod returns the wrong value for the
  14190. terminating character under some conditions. */
  14191. char *string = "NaN";
  14192. char *term;
  14193. strtod (string, &term);
  14194. if (term != string && *(term - 1) == 0)
  14195. return 1;
  14196. }
  14197. return 0;
  14198. }
  14199. _ACEOF
  14200. if ac_fn_c_try_run "$LINENO"; then :
  14201. ac_cv_func_strtod=yes
  14202. else
  14203. ac_cv_func_strtod=no
  14204. fi
  14205. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14206. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14207. fi
  14208. fi
  14209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14210. $as_echo "$ac_cv_func_strtod" >&6; }
  14211. if test $ac_cv_func_strtod = no; then
  14212. case " $LIBOBJS " in
  14213. *" strtod.$ac_objext "* ) ;;
  14214. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14215. ;;
  14216. esac
  14217. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14218. if test "x$ac_cv_func_pow" = xyes; then :
  14219. fi
  14220. if test $ac_cv_func_pow = no; then
  14221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14222. $as_echo_n "checking for pow in -lm... " >&6; }
  14223. if ${ac_cv_lib_m_pow+:} false; then :
  14224. $as_echo_n "(cached) " >&6
  14225. else
  14226. ac_check_lib_save_LIBS=$LIBS
  14227. LIBS="-lm $LIBS"
  14228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14229. /* end confdefs.h. */
  14230. /* Override any GCC internal prototype to avoid an error.
  14231. Use char because int might match the return type of a GCC
  14232. builtin and then its argument prototype would still apply. */
  14233. #ifdef __cplusplus
  14234. extern "C"
  14235. #endif
  14236. char pow ();
  14237. int
  14238. main ()
  14239. {
  14240. return pow ();
  14241. ;
  14242. return 0;
  14243. }
  14244. _ACEOF
  14245. if ac_fn_c_try_link "$LINENO"; then :
  14246. ac_cv_lib_m_pow=yes
  14247. else
  14248. ac_cv_lib_m_pow=no
  14249. fi
  14250. rm -f core conftest.err conftest.$ac_objext \
  14251. conftest$ac_exeext conftest.$ac_ext
  14252. LIBS=$ac_check_lib_save_LIBS
  14253. fi
  14254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14255. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14256. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14257. POW_LIB=-lm
  14258. else
  14259. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14260. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14261. fi
  14262. fi
  14263. fi
  14264. if test x$ac_cv_func_strtod = xyes; then
  14265. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14266. fi
  14267. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14268. if test "x$ac_cv_func_mprotect" = xyes; then :
  14269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14270. /* end confdefs.h. */
  14271. #include <sys/types.h>
  14272. #include <sys/mman.h>
  14273. int
  14274. main ()
  14275. {
  14276. ;
  14277. return 0;
  14278. }
  14279. _ACEOF
  14280. if ac_fn_c_try_compile "$LINENO"; then :
  14281. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14282. fi
  14283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14284. fi
  14285. 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 sscanf snprintf vsnprintf fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname
  14286. do :
  14287. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14288. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14289. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14290. cat >>confdefs.h <<_ACEOF
  14291. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14292. _ACEOF
  14293. fi
  14294. done
  14295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14296. $as_echo_n "checking for pow in -lm... " >&6; }
  14297. if ${ac_cv_lib_m_pow+:} false; then :
  14298. $as_echo_n "(cached) " >&6
  14299. else
  14300. ac_check_lib_save_LIBS=$LIBS
  14301. LIBS="-lm $LIBS"
  14302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14303. /* end confdefs.h. */
  14304. /* Override any GCC internal prototype to avoid an error.
  14305. Use char because int might match the return type of a GCC
  14306. builtin and then its argument prototype would still apply. */
  14307. #ifdef __cplusplus
  14308. extern "C"
  14309. #endif
  14310. char pow ();
  14311. int
  14312. main ()
  14313. {
  14314. return pow ();
  14315. ;
  14316. return 0;
  14317. }
  14318. _ACEOF
  14319. if ac_fn_c_try_link "$LINENO"; then :
  14320. ac_cv_lib_m_pow=yes
  14321. else
  14322. ac_cv_lib_m_pow=no
  14323. fi
  14324. rm -f core conftest.err conftest.$ac_objext \
  14325. conftest$ac_exeext conftest.$ac_ext
  14326. LIBS=$ac_check_lib_save_LIBS
  14327. fi
  14328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14329. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14330. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14331. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14332. fi
  14333. for ac_func in atan atan2 ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt
  14334. do :
  14335. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14336. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14337. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14338. cat >>confdefs.h <<_ACEOF
  14339. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14340. _ACEOF
  14341. fi
  14342. done
  14343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14344. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14345. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14346. $as_echo_n "(cached) " >&6
  14347. else
  14348. ac_check_lib_save_LIBS=$LIBS
  14349. LIBS="-liconv $LIBS"
  14350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14351. /* end confdefs.h. */
  14352. /* Override any GCC internal prototype to avoid an error.
  14353. Use char because int might match the return type of a GCC
  14354. builtin and then its argument prototype would still apply. */
  14355. #ifdef __cplusplus
  14356. extern "C"
  14357. #endif
  14358. char iconv_open ();
  14359. int
  14360. main ()
  14361. {
  14362. return iconv_open ();
  14363. ;
  14364. return 0;
  14365. }
  14366. _ACEOF
  14367. if ac_fn_c_try_link "$LINENO"; then :
  14368. ac_cv_lib_iconv_iconv_open=yes
  14369. else
  14370. ac_cv_lib_iconv_iconv_open=no
  14371. fi
  14372. rm -f core conftest.err conftest.$ac_objext \
  14373. conftest$ac_exeext conftest.$ac_ext
  14374. LIBS=$ac_check_lib_save_LIBS
  14375. fi
  14376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14377. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14378. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14379. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14380. fi
  14381. for ac_func in iconv
  14382. do :
  14383. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14384. if test "x$ac_cv_func_iconv" = xyes; then :
  14385. cat >>confdefs.h <<_ACEOF
  14386. #define HAVE_ICONV 1
  14387. _ACEOF
  14388. fi
  14389. done
  14390. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14391. "
  14392. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14393. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14394. fi
  14395. fi
  14396. # Check whether --enable-gcc-atomics was given.
  14397. if test "${enable_gcc_atomics+set}" = set; then :
  14398. enableval=$enable_gcc_atomics;
  14399. else
  14400. enable_gcc_atomics=yes
  14401. fi
  14402. if test x$enable_gcc_atomics = xyes; then
  14403. have_gcc_atomics=no
  14404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14405. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14407. /* end confdefs.h. */
  14408. int
  14409. main ()
  14410. {
  14411. int a;
  14412. void *x, *y, *z;
  14413. __sync_lock_test_and_set(&a, 4);
  14414. __sync_lock_test_and_set(&x, y);
  14415. __sync_fetch_and_add(&a, 1);
  14416. __sync_bool_compare_and_swap(&a, 5, 10);
  14417. __sync_bool_compare_and_swap(&x, y, z);
  14418. ;
  14419. return 0;
  14420. }
  14421. _ACEOF
  14422. if ac_fn_c_try_link "$LINENO"; then :
  14423. have_gcc_atomics=yes
  14424. fi
  14425. rm -f core conftest.err conftest.$ac_objext \
  14426. conftest$ac_exeext conftest.$ac_ext
  14427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14428. $as_echo "$have_gcc_atomics" >&6; }
  14429. if test x$have_gcc_atomics = xyes; then
  14430. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14431. else
  14432. # See if we have the minimum operation needed for GCC atomics
  14433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14434. /* end confdefs.h. */
  14435. int
  14436. main ()
  14437. {
  14438. int a;
  14439. __sync_lock_test_and_set(&a, 1);
  14440. __sync_lock_release(&a);
  14441. ;
  14442. return 0;
  14443. }
  14444. _ACEOF
  14445. if ac_fn_c_try_link "$LINENO"; then :
  14446. have_gcc_sync_lock_test_and_set=yes
  14447. fi
  14448. rm -f core conftest.err conftest.$ac_objext \
  14449. conftest$ac_exeext conftest.$ac_ext
  14450. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14451. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14452. fi
  14453. fi
  14454. fi
  14455. # Standard C sources
  14456. SOURCES="$SOURCES $srcdir/src/*.c"
  14457. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14458. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14459. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14460. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14461. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14462. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14463. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14464. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14465. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14466. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14467. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14468. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14469. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14470. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14471. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14472. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14473. # Check whether --enable-atomic was given.
  14474. if test "${enable_atomic+set}" = set; then :
  14475. enableval=$enable_atomic;
  14476. else
  14477. enable_atomic=yes
  14478. fi
  14479. if test x$enable_atomic != xyes; then
  14480. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14481. fi
  14482. # Check whether --enable-audio was given.
  14483. if test "${enable_audio+set}" = set; then :
  14484. enableval=$enable_audio;
  14485. else
  14486. enable_audio=yes
  14487. fi
  14488. if test x$enable_audio != xyes; then
  14489. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14490. fi
  14491. # Check whether --enable-video was given.
  14492. if test "${enable_video+set}" = set; then :
  14493. enableval=$enable_video;
  14494. else
  14495. enable_video=yes
  14496. fi
  14497. if test x$enable_video != xyes; then
  14498. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14499. fi
  14500. # Check whether --enable-render was given.
  14501. if test "${enable_render+set}" = set; then :
  14502. enableval=$enable_render;
  14503. else
  14504. enable_render=yes
  14505. fi
  14506. if test x$enable_render != xyes; then
  14507. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14508. fi
  14509. # Check whether --enable-events was given.
  14510. if test "${enable_events+set}" = set; then :
  14511. enableval=$enable_events;
  14512. else
  14513. enable_events=yes
  14514. fi
  14515. if test x$enable_events != xyes; then
  14516. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14517. fi
  14518. # Check whether --enable-joystick was given.
  14519. if test "${enable_joystick+set}" = set; then :
  14520. enableval=$enable_joystick;
  14521. else
  14522. enable_joystick=yes
  14523. fi
  14524. if test x$enable_joystick != xyes; then
  14525. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14526. fi
  14527. # Check whether --enable-haptic was given.
  14528. if test "${enable_haptic+set}" = set; then :
  14529. enableval=$enable_haptic;
  14530. else
  14531. enable_haptic=yes
  14532. fi
  14533. if test x$enable_haptic != xyes; then
  14534. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14535. fi
  14536. # Check whether --enable-power was given.
  14537. if test "${enable_power+set}" = set; then :
  14538. enableval=$enable_power;
  14539. else
  14540. enable_power=yes
  14541. fi
  14542. if test x$enable_power != xyes; then
  14543. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14544. fi
  14545. # Check whether --enable-filesystem was given.
  14546. if test "${enable_filesystem+set}" = set; then :
  14547. enableval=$enable_filesystem;
  14548. else
  14549. enable_filesystem=yes
  14550. fi
  14551. if test x$enable_filesystem != xyes; then
  14552. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14553. fi
  14554. # Check whether --enable-threads was given.
  14555. if test "${enable_threads+set}" = set; then :
  14556. enableval=$enable_threads;
  14557. else
  14558. enable_threads=yes
  14559. fi
  14560. if test x$enable_threads != xyes; then
  14561. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14562. fi
  14563. # Check whether --enable-timers was given.
  14564. if test "${enable_timers+set}" = set; then :
  14565. enableval=$enable_timers;
  14566. else
  14567. enable_timers=yes
  14568. fi
  14569. if test x$enable_timers != xyes; then
  14570. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14571. fi
  14572. # Check whether --enable-file was given.
  14573. if test "${enable_file+set}" = set; then :
  14574. enableval=$enable_file;
  14575. else
  14576. enable_file=yes
  14577. fi
  14578. if test x$enable_file != xyes; then
  14579. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14580. fi
  14581. # Check whether --enable-loadso was given.
  14582. if test "${enable_loadso+set}" = set; then :
  14583. enableval=$enable_loadso;
  14584. else
  14585. enable_loadso=yes
  14586. fi
  14587. if test x$enable_loadso != xyes; then
  14588. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14589. fi
  14590. # Check whether --enable-cpuinfo was given.
  14591. if test "${enable_cpuinfo+set}" = set; then :
  14592. enableval=$enable_cpuinfo;
  14593. else
  14594. enable_cpuinfo=yes
  14595. fi
  14596. if test x$enable_cpuinfo != xyes; then
  14597. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14598. fi
  14599. # Check whether --enable-atomic was given.
  14600. if test "${enable_atomic+set}" = set; then :
  14601. enableval=$enable_atomic;
  14602. else
  14603. enable_atomic=yes
  14604. fi
  14605. if test x$enable_atomic != xyes; then
  14606. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14607. fi
  14608. # Check whether --enable-assembly was given.
  14609. if test "${enable_assembly+set}" = set; then :
  14610. enableval=$enable_assembly;
  14611. else
  14612. enable_assembly=yes
  14613. fi
  14614. if test x$enable_assembly = xyes; then
  14615. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14616. # Make sure that we don't generate floating point code that would
  14617. # cause illegal instruction exceptions on older processors
  14618. case "$host" in
  14619. *-*-darwin*)
  14620. # Don't need to worry about Apple hardware, it's all SSE capable
  14621. default_ssemath=yes
  14622. ;;
  14623. *64-*-*)
  14624. # x86 64-bit architectures all have SSE instructions
  14625. default_ssemath=yes
  14626. ;;
  14627. *)
  14628. default_ssemath=no
  14629. ;;
  14630. esac
  14631. # Check whether --enable-ssemath was given.
  14632. if test "${enable_ssemath+set}" = set; then :
  14633. enableval=$enable_ssemath;
  14634. else
  14635. enable_ssemath=$default_ssemath
  14636. fi
  14637. if test x$enable_ssemath = xno; then
  14638. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14639. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14640. fi
  14641. fi
  14642. # Check whether --enable-mmx was given.
  14643. if test "${enable_mmx+set}" = set; then :
  14644. enableval=$enable_mmx;
  14645. else
  14646. enable_mmx=yes
  14647. fi
  14648. if test x$enable_mmx = xyes; then
  14649. save_CFLAGS="$CFLAGS"
  14650. have_gcc_mmx=no
  14651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14652. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14653. mmx_CFLAGS="-mmmx"
  14654. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14656. /* end confdefs.h. */
  14657. #ifdef __MINGW32__
  14658. #include <_mingw.h>
  14659. #ifdef __MINGW64_VERSION_MAJOR
  14660. #include <intrin.h>
  14661. #else
  14662. #include <mmintrin.h>
  14663. #endif
  14664. #else
  14665. #include <mmintrin.h>
  14666. #endif
  14667. #ifndef __MMX__
  14668. #error Assembler CPP flag not enabled
  14669. #endif
  14670. int
  14671. main ()
  14672. {
  14673. ;
  14674. return 0;
  14675. }
  14676. _ACEOF
  14677. if ac_fn_c_try_compile "$LINENO"; then :
  14678. have_gcc_mmx=yes
  14679. fi
  14680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14682. $as_echo "$have_gcc_mmx" >&6; }
  14683. CFLAGS="$save_CFLAGS"
  14684. if test x$have_gcc_mmx = xyes; then
  14685. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14686. fi
  14687. fi
  14688. # Check whether --enable-3dnow was given.
  14689. if test "${enable_3dnow+set}" = set; then :
  14690. enableval=$enable_3dnow;
  14691. else
  14692. enable_3dnow=yes
  14693. fi
  14694. if test x$enable_3dnow = xyes; then
  14695. save_CFLAGS="$CFLAGS"
  14696. have_gcc_3dnow=no
  14697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14698. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14699. amd3dnow_CFLAGS="-m3dnow"
  14700. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14702. /* end confdefs.h. */
  14703. #include <mm3dnow.h>
  14704. #ifndef __3dNOW__
  14705. #error Assembler CPP flag not enabled
  14706. #endif
  14707. int
  14708. main ()
  14709. {
  14710. void *p = 0;
  14711. _m_prefetch(p);
  14712. ;
  14713. return 0;
  14714. }
  14715. _ACEOF
  14716. if ac_fn_c_try_link "$LINENO"; then :
  14717. have_gcc_3dnow=yes
  14718. fi
  14719. rm -f core conftest.err conftest.$ac_objext \
  14720. conftest$ac_exeext conftest.$ac_ext
  14721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14722. $as_echo "$have_gcc_3dnow" >&6; }
  14723. CFLAGS="$save_CFLAGS"
  14724. if test x$have_gcc_3dnow = xyes; then
  14725. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14726. fi
  14727. fi
  14728. # Check whether --enable-sse was given.
  14729. if test "${enable_sse+set}" = set; then :
  14730. enableval=$enable_sse;
  14731. else
  14732. enable_sse=yes
  14733. fi
  14734. if test x$enable_sse = xyes; then
  14735. save_CFLAGS="$CFLAGS"
  14736. have_gcc_sse=no
  14737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14738. $as_echo_n "checking for GCC -msse option... " >&6; }
  14739. sse_CFLAGS="-msse"
  14740. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14742. /* end confdefs.h. */
  14743. #ifdef __MINGW32__
  14744. #include <_mingw.h>
  14745. #ifdef __MINGW64_VERSION_MAJOR
  14746. #include <intrin.h>
  14747. #else
  14748. #include <xmmintrin.h>
  14749. #endif
  14750. #else
  14751. #include <xmmintrin.h>
  14752. #endif
  14753. #ifndef __SSE__
  14754. #error Assembler CPP flag not enabled
  14755. #endif
  14756. int
  14757. main ()
  14758. {
  14759. ;
  14760. return 0;
  14761. }
  14762. _ACEOF
  14763. if ac_fn_c_try_compile "$LINENO"; then :
  14764. have_gcc_sse=yes
  14765. fi
  14766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14768. $as_echo "$have_gcc_sse" >&6; }
  14769. CFLAGS="$save_CFLAGS"
  14770. if test x$have_gcc_sse = xyes; then
  14771. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14772. fi
  14773. fi
  14774. # Check whether --enable-sse2 was given.
  14775. if test "${enable_sse2+set}" = set; then :
  14776. enableval=$enable_sse2;
  14777. else
  14778. enable_sse2=$default_ssemath
  14779. fi
  14780. if test x$enable_sse2 = xyes; then
  14781. save_CFLAGS="$CFLAGS"
  14782. have_gcc_sse2=no
  14783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14784. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14785. sse2_CFLAGS="-msse2"
  14786. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14788. /* end confdefs.h. */
  14789. #ifdef __MINGW32__
  14790. #include <_mingw.h>
  14791. #ifdef __MINGW64_VERSION_MAJOR
  14792. #include <intrin.h>
  14793. #else
  14794. #include <emmintrin.h>
  14795. #endif
  14796. #else
  14797. #include <emmintrin.h>
  14798. #endif
  14799. #ifndef __SSE2__
  14800. #error Assembler CPP flag not enabled
  14801. #endif
  14802. int
  14803. main ()
  14804. {
  14805. ;
  14806. return 0;
  14807. }
  14808. _ACEOF
  14809. if ac_fn_c_try_compile "$LINENO"; then :
  14810. have_gcc_sse2=yes
  14811. fi
  14812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14814. $as_echo "$have_gcc_sse2" >&6; }
  14815. CFLAGS="$save_CFLAGS"
  14816. if test x$have_gcc_sse2 = xyes; then
  14817. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14818. fi
  14819. fi
  14820. # Check whether --enable-altivec was given.
  14821. if test "${enable_altivec+set}" = set; then :
  14822. enableval=$enable_altivec;
  14823. else
  14824. enable_altivec=yes
  14825. fi
  14826. if test x$enable_altivec = xyes; then
  14827. save_CFLAGS="$CFLAGS"
  14828. have_gcc_altivec=no
  14829. have_altivec_h_hdr=no
  14830. altivec_CFLAGS="-maltivec"
  14831. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14833. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14835. /* end confdefs.h. */
  14836. #include <altivec.h>
  14837. vector unsigned int vzero() {
  14838. return vec_splat_u32(0);
  14839. }
  14840. int
  14841. main ()
  14842. {
  14843. ;
  14844. return 0;
  14845. }
  14846. _ACEOF
  14847. if ac_fn_c_try_compile "$LINENO"; then :
  14848. have_gcc_altivec=yes
  14849. have_altivec_h_hdr=yes
  14850. fi
  14851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14853. $as_echo "$have_gcc_altivec" >&6; }
  14854. if test x$have_gcc_altivec = xno; then
  14855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14856. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14858. /* end confdefs.h. */
  14859. vector unsigned int vzero() {
  14860. return vec_splat_u32(0);
  14861. }
  14862. int
  14863. main ()
  14864. {
  14865. ;
  14866. return 0;
  14867. }
  14868. _ACEOF
  14869. if ac_fn_c_try_compile "$LINENO"; then :
  14870. have_gcc_altivec=yes
  14871. fi
  14872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14874. $as_echo "$have_gcc_altivec" >&6; }
  14875. fi
  14876. if test x$have_gcc_altivec = xno; then
  14877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14878. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14879. altivec_CFLAGS="-faltivec"
  14880. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14882. /* end confdefs.h. */
  14883. #include <altivec.h>
  14884. vector unsigned int vzero() {
  14885. return vec_splat_u32(0);
  14886. }
  14887. int
  14888. main ()
  14889. {
  14890. ;
  14891. return 0;
  14892. }
  14893. _ACEOF
  14894. if ac_fn_c_try_compile "$LINENO"; then :
  14895. have_gcc_altivec=yes
  14896. have_altivec_h_hdr=yes
  14897. fi
  14898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14900. $as_echo "$have_gcc_altivec" >&6; }
  14901. fi
  14902. if test x$have_gcc_altivec = xno; then
  14903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14904. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14906. /* end confdefs.h. */
  14907. vector unsigned int vzero() {
  14908. return vec_splat_u32(0);
  14909. }
  14910. int
  14911. main ()
  14912. {
  14913. ;
  14914. return 0;
  14915. }
  14916. _ACEOF
  14917. if ac_fn_c_try_compile "$LINENO"; then :
  14918. have_gcc_altivec=yes
  14919. fi
  14920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14922. $as_echo "$have_gcc_altivec" >&6; }
  14923. fi
  14924. CFLAGS="$save_CFLAGS"
  14925. if test x$have_gcc_altivec = xyes; then
  14926. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  14927. if test x$have_altivec_h_hdr = xyes; then
  14928. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  14929. fi
  14930. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  14931. fi
  14932. fi
  14933. fi
  14934. CheckOSS()
  14935. {
  14936. # Check whether --enable-oss was given.
  14937. if test "${enable_oss+set}" = set; then :
  14938. enableval=$enable_oss;
  14939. else
  14940. enable_oss=maybe
  14941. fi
  14942. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  14943. # use sndio instead. So on there, we default to disabled. You can force
  14944. # it on if you really want, though.
  14945. if test x$enable_oss = xmaybe; then
  14946. enable_oss=yes
  14947. case "$host" in
  14948. *-*-openbsd*)
  14949. enable_oss=no;;
  14950. esac
  14951. fi
  14952. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  14953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  14954. $as_echo_n "checking for OSS audio support... " >&6; }
  14955. have_oss=no
  14956. if test x$have_oss != xyes; then
  14957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14958. /* end confdefs.h. */
  14959. #include <sys/soundcard.h>
  14960. int
  14961. main ()
  14962. {
  14963. int arg = SNDCTL_DSP_SETFRAGMENT;
  14964. ;
  14965. return 0;
  14966. }
  14967. _ACEOF
  14968. if ac_fn_c_try_compile "$LINENO"; then :
  14969. have_oss=yes
  14970. fi
  14971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14972. fi
  14973. if test x$have_oss != xyes; then
  14974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14975. /* end confdefs.h. */
  14976. #include <soundcard.h>
  14977. int
  14978. main ()
  14979. {
  14980. int arg = SNDCTL_DSP_SETFRAGMENT;
  14981. ;
  14982. return 0;
  14983. }
  14984. _ACEOF
  14985. if ac_fn_c_try_compile "$LINENO"; then :
  14986. have_oss=yes
  14987. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  14988. fi
  14989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14990. fi
  14991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  14992. $as_echo "$have_oss" >&6; }
  14993. if test x$have_oss = xyes; then
  14994. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  14995. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  14996. have_audio=yes
  14997. # We may need to link with ossaudio emulation library
  14998. case "$host" in
  14999. *-*-openbsd*|*-*-netbsd*)
  15000. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15001. esac
  15002. fi
  15003. fi
  15004. }
  15005. CheckALSA()
  15006. {
  15007. # Check whether --enable-alsa was given.
  15008. if test "${enable_alsa+set}" = set; then :
  15009. enableval=$enable_alsa;
  15010. else
  15011. enable_alsa=yes
  15012. fi
  15013. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15014. alsa_save_CFLAGS="$CFLAGS"
  15015. alsa_save_LDFLAGS="$LDFLAGS"
  15016. alsa_save_LIBS="$LIBS"
  15017. alsa_found=yes
  15018. # Check whether --with-alsa-prefix was given.
  15019. if test "${with_alsa_prefix+set}" = set; then :
  15020. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15021. else
  15022. alsa_prefix=""
  15023. fi
  15024. # Check whether --with-alsa-inc-prefix was given.
  15025. if test "${with_alsa_inc_prefix+set}" = set; then :
  15026. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15027. else
  15028. alsa_inc_prefix=""
  15029. fi
  15030. # Check whether --enable-alsatest was given.
  15031. if test "${enable_alsatest+set}" = set; then :
  15032. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15033. else
  15034. enable_alsatest=yes
  15035. fi
  15036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15037. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15038. if test "$alsa_inc_prefix" != "" ; then
  15039. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15040. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15041. fi
  15042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15043. $as_echo "$ALSA_CFLAGS" >&6; }
  15044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15045. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15046. if test "$alsa_prefix" != "" ; then
  15047. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15048. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15049. fi
  15050. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15051. LIBS=`echo $LIBS | sed 's/-lm//'`
  15052. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15053. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15054. LIBS=`echo $LIBS | sed 's/ //'`
  15055. LIBS="$ALSA_LIBS $LIBS"
  15056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15057. $as_echo "$ALSA_LIBS" >&6; }
  15058. min_alsa_version=0.9.0
  15059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15060. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15061. no_alsa=""
  15062. alsa_min_major_version=`echo $min_alsa_version | \
  15063. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15064. alsa_min_minor_version=`echo $min_alsa_version | \
  15065. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15066. alsa_min_micro_version=`echo $min_alsa_version | \
  15067. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15068. ac_ext=c
  15069. ac_cpp='$CPP $CPPFLAGS'
  15070. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15071. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15072. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15074. /* end confdefs.h. */
  15075. #include <alsa/asoundlib.h>
  15076. int
  15077. main ()
  15078. {
  15079. /* ensure backward compatibility */
  15080. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15081. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15082. #endif
  15083. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15084. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15085. #endif
  15086. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15087. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15088. #endif
  15089. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15090. exit(0);
  15091. # else
  15092. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15093. # error not present
  15094. # endif
  15095. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15096. exit(0);
  15097. # else
  15098. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15099. # error not present
  15100. # endif
  15101. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15102. # error not present
  15103. # endif
  15104. # endif
  15105. # endif
  15106. exit(0);
  15107. ;
  15108. return 0;
  15109. }
  15110. _ACEOF
  15111. if ac_fn_c_try_compile "$LINENO"; then :
  15112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15113. $as_echo "found." >&6; }
  15114. else
  15115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15116. $as_echo "not present." >&6; }
  15117. alsa_found=no
  15118. fi
  15119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15120. ac_ext=c
  15121. ac_cpp='$CPP $CPPFLAGS'
  15122. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15123. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15124. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15125. if test "x$enable_alsatest" = "xyes"; then
  15126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15127. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15128. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15129. $as_echo_n "(cached) " >&6
  15130. else
  15131. ac_check_lib_save_LIBS=$LIBS
  15132. LIBS="-lasound $LIBS"
  15133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15134. /* end confdefs.h. */
  15135. /* Override any GCC internal prototype to avoid an error.
  15136. Use char because int might match the return type of a GCC
  15137. builtin and then its argument prototype would still apply. */
  15138. #ifdef __cplusplus
  15139. extern "C"
  15140. #endif
  15141. char snd_ctl_open ();
  15142. int
  15143. main ()
  15144. {
  15145. return snd_ctl_open ();
  15146. ;
  15147. return 0;
  15148. }
  15149. _ACEOF
  15150. if ac_fn_c_try_link "$LINENO"; then :
  15151. ac_cv_lib_asound_snd_ctl_open=yes
  15152. else
  15153. ac_cv_lib_asound_snd_ctl_open=no
  15154. fi
  15155. rm -f core conftest.err conftest.$ac_objext \
  15156. conftest$ac_exeext conftest.$ac_ext
  15157. LIBS=$ac_check_lib_save_LIBS
  15158. fi
  15159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15160. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15161. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15162. cat >>confdefs.h <<_ACEOF
  15163. #define HAVE_LIBASOUND 1
  15164. _ACEOF
  15165. LIBS="-lasound $LIBS"
  15166. else
  15167. alsa_found=no
  15168. fi
  15169. fi
  15170. if test "x$alsa_found" = "xyes" ; then
  15171. have_alsa=yes
  15172. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15173. LIBS=`echo $LIBS | sed 's/ //'`
  15174. LIBS="-lasound $LIBS"
  15175. fi
  15176. if test "x$alsa_found" = "xno" ; then
  15177. have_alsa=no
  15178. CFLAGS="$alsa_save_CFLAGS"
  15179. LDFLAGS="$alsa_save_LDFLAGS"
  15180. LIBS="$alsa_save_LIBS"
  15181. ALSA_CFLAGS=""
  15182. ALSA_LIBS=""
  15183. fi
  15184. # Restore all flags from before the ALSA detection runs
  15185. CFLAGS="$alsa_save_CFLAGS"
  15186. LDFLAGS="$alsa_save_LDFLAGS"
  15187. LIBS="$alsa_save_LIBS"
  15188. if test x$have_alsa = xyes; then
  15189. # Check whether --enable-alsa-shared was given.
  15190. if test "${enable_alsa_shared+set}" = set; then :
  15191. enableval=$enable_alsa_shared;
  15192. else
  15193. enable_alsa_shared=yes
  15194. fi
  15195. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15196. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15197. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15198. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15199. if test x$have_loadso != xyes && \
  15200. test x$enable_alsa_shared = xyes; then
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15202. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15203. fi
  15204. if test x$have_loadso = xyes && \
  15205. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15206. echo "-- dynamic libasound -> $alsa_lib"
  15207. cat >>confdefs.h <<_ACEOF
  15208. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15209. _ACEOF
  15210. else
  15211. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15212. fi
  15213. have_audio=yes
  15214. fi
  15215. fi
  15216. }
  15217. CheckESD()
  15218. {
  15219. # Check whether --enable-esd was given.
  15220. if test "${enable_esd+set}" = set; then :
  15221. enableval=$enable_esd;
  15222. else
  15223. enable_esd=yes
  15224. fi
  15225. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15226. # Check whether --with-esd-prefix was given.
  15227. if test "${with_esd_prefix+set}" = set; then :
  15228. withval=$with_esd_prefix; esd_prefix="$withval"
  15229. else
  15230. esd_prefix=""
  15231. fi
  15232. # Check whether --with-esd-exec-prefix was given.
  15233. if test "${with_esd_exec_prefix+set}" = set; then :
  15234. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15235. else
  15236. esd_exec_prefix=""
  15237. fi
  15238. # Check whether --enable-esdtest was given.
  15239. if test "${enable_esdtest+set}" = set; then :
  15240. enableval=$enable_esdtest;
  15241. else
  15242. enable_esdtest=yes
  15243. fi
  15244. if test x$esd_exec_prefix != x ; then
  15245. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15246. if test x${ESD_CONFIG+set} != xset ; then
  15247. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15248. fi
  15249. fi
  15250. if test x$esd_prefix != x ; then
  15251. esd_args="$esd_args --prefix=$esd_prefix"
  15252. if test x${ESD_CONFIG+set} != xset ; then
  15253. ESD_CONFIG=$esd_prefix/bin/esd-config
  15254. fi
  15255. fi
  15256. # Extract the first word of "esd-config", so it can be a program name with args.
  15257. set dummy esd-config; ac_word=$2
  15258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15259. $as_echo_n "checking for $ac_word... " >&6; }
  15260. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15261. $as_echo_n "(cached) " >&6
  15262. else
  15263. case $ESD_CONFIG in
  15264. [\\/]* | ?:[\\/]*)
  15265. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15266. ;;
  15267. *)
  15268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15269. for as_dir in $PATH
  15270. do
  15271. IFS=$as_save_IFS
  15272. test -z "$as_dir" && as_dir=.
  15273. for ac_exec_ext in '' $ac_executable_extensions; do
  15274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15275. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15277. break 2
  15278. fi
  15279. done
  15280. done
  15281. IFS=$as_save_IFS
  15282. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15283. ;;
  15284. esac
  15285. fi
  15286. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15287. if test -n "$ESD_CONFIG"; then
  15288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15289. $as_echo "$ESD_CONFIG" >&6; }
  15290. else
  15291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15292. $as_echo "no" >&6; }
  15293. fi
  15294. min_esd_version=0.2.8
  15295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15296. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15297. no_esd=""
  15298. if test "$ESD_CONFIG" = "no" ; then
  15299. no_esd=yes
  15300. else
  15301. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15302. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15303. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15304. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15305. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15306. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15307. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15308. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15309. if test "x$enable_esdtest" = "xyes" ; then
  15310. ac_save_CFLAGS="$CFLAGS"
  15311. ac_save_LIBS="$LIBS"
  15312. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15313. LIBS="$LIBS $ESD_LIBS"
  15314. rm -f conf.esdtest
  15315. if test "$cross_compiling" = yes; then :
  15316. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15317. else
  15318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15319. /* end confdefs.h. */
  15320. #include <stdio.h>
  15321. #include <stdlib.h>
  15322. #include <string.h>
  15323. #include <esd.h>
  15324. char*
  15325. my_strdup (char *str)
  15326. {
  15327. char *new_str;
  15328. if (str)
  15329. {
  15330. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15331. strcpy (new_str, str);
  15332. }
  15333. else
  15334. new_str = NULL;
  15335. return new_str;
  15336. }
  15337. int main ()
  15338. {
  15339. int major, minor, micro;
  15340. char *tmp_version;
  15341. system ("touch conf.esdtest");
  15342. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15343. tmp_version = my_strdup("$min_esd_version");
  15344. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15345. printf("%s, bad version string\n", "$min_esd_version");
  15346. exit(1);
  15347. }
  15348. if (($esd_major_version > major) ||
  15349. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15350. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15351. {
  15352. return 0;
  15353. }
  15354. else
  15355. {
  15356. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15357. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15358. printf("*** best to upgrade to the required version.\n");
  15359. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15360. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15361. printf("*** config.cache before re-running configure\n");
  15362. return 1;
  15363. }
  15364. }
  15365. _ACEOF
  15366. if ac_fn_c_try_run "$LINENO"; then :
  15367. else
  15368. no_esd=yes
  15369. fi
  15370. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15371. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15372. fi
  15373. CFLAGS="$ac_save_CFLAGS"
  15374. LIBS="$ac_save_LIBS"
  15375. fi
  15376. fi
  15377. if test "x$no_esd" = x ; then
  15378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15379. $as_echo "yes" >&6; }
  15380. have_esd=yes
  15381. else
  15382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15383. $as_echo "no" >&6; }
  15384. if test "$ESD_CONFIG" = "no" ; then
  15385. echo "*** The esd-config script installed by ESD could not be found"
  15386. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15387. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15388. echo "*** full path to esd-config."
  15389. else
  15390. if test -f conf.esdtest ; then
  15391. :
  15392. else
  15393. echo "*** Could not run ESD test program, checking why..."
  15394. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15395. LIBS="$LIBS $ESD_LIBS"
  15396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15397. /* end confdefs.h. */
  15398. #include <stdio.h>
  15399. #include <esd.h>
  15400. int
  15401. main ()
  15402. {
  15403. return 0;
  15404. ;
  15405. return 0;
  15406. }
  15407. _ACEOF
  15408. if ac_fn_c_try_link "$LINENO"; then :
  15409. echo "*** The test program compiled, but did not run. This usually means"
  15410. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15411. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15412. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15413. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15414. echo "*** is required on your system"
  15415. echo "***"
  15416. echo "*** If you have an old version installed, it is best to remove it, although"
  15417. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15418. else
  15419. echo "*** The test program failed to compile or link. See the file config.log for the"
  15420. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15421. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15422. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15423. fi
  15424. rm -f core conftest.err conftest.$ac_objext \
  15425. conftest$ac_exeext conftest.$ac_ext
  15426. CFLAGS="$ac_save_CFLAGS"
  15427. LIBS="$ac_save_LIBS"
  15428. fi
  15429. fi
  15430. ESD_CFLAGS=""
  15431. ESD_LIBS=""
  15432. have_esd=no
  15433. fi
  15434. rm -f conf.esdtest
  15435. if test x$have_esd = xyes; then
  15436. # Check whether --enable-esd-shared was given.
  15437. if test "${enable_esd_shared+set}" = set; then :
  15438. enableval=$enable_esd_shared;
  15439. else
  15440. enable_esd_shared=yes
  15441. fi
  15442. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15443. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15444. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15445. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15446. if test x$have_loadso != xyes && \
  15447. test x$enable_esd_shared = xyes; then
  15448. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15449. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15450. fi
  15451. if test x$have_loadso = xyes && \
  15452. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15453. echo "-- dynamic libesd -> $esd_lib"
  15454. cat >>confdefs.h <<_ACEOF
  15455. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15456. _ACEOF
  15457. else
  15458. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15459. fi
  15460. have_audio=yes
  15461. fi
  15462. fi
  15463. }
  15464. CheckPulseAudio()
  15465. {
  15466. # Check whether --enable-pulseaudio was given.
  15467. if test "${enable_pulseaudio+set}" = set; then :
  15468. enableval=$enable_pulseaudio;
  15469. else
  15470. enable_pulseaudio=yes
  15471. fi
  15472. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15473. audio_pulseaudio=no
  15474. PULSEAUDIO_REQUIRED_VERSION=0.9
  15475. # Extract the first word of "pkg-config", so it can be a program name with args.
  15476. set dummy pkg-config; ac_word=$2
  15477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15478. $as_echo_n "checking for $ac_word... " >&6; }
  15479. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15480. $as_echo_n "(cached) " >&6
  15481. else
  15482. case $PKG_CONFIG in
  15483. [\\/]* | ?:[\\/]*)
  15484. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15485. ;;
  15486. *)
  15487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15488. for as_dir in $PATH
  15489. do
  15490. IFS=$as_save_IFS
  15491. test -z "$as_dir" && as_dir=.
  15492. for ac_exec_ext in '' $ac_executable_extensions; do
  15493. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15494. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15496. break 2
  15497. fi
  15498. done
  15499. done
  15500. IFS=$as_save_IFS
  15501. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15502. ;;
  15503. esac
  15504. fi
  15505. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15506. if test -n "$PKG_CONFIG"; then
  15507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15508. $as_echo "$PKG_CONFIG" >&6; }
  15509. else
  15510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15511. $as_echo "no" >&6; }
  15512. fi
  15513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15514. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15515. if test x$PKG_CONFIG != xno; then
  15516. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15517. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15518. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15519. audio_pulseaudio=yes
  15520. fi
  15521. fi
  15522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15523. $as_echo "$audio_pulseaudio" >&6; }
  15524. if test x$audio_pulseaudio = xyes; then
  15525. # Check whether --enable-pulseaudio-shared was given.
  15526. if test "${enable_pulseaudio_shared+set}" = set; then :
  15527. enableval=$enable_pulseaudio_shared;
  15528. else
  15529. enable_pulseaudio_shared=yes
  15530. fi
  15531. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15532. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15533. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15534. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15535. if test x$have_loadso != xyes && \
  15536. test x$enable_pulseaudio_shared = xyes; then
  15537. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15538. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15539. fi
  15540. if test x$have_loadso = xyes && \
  15541. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15542. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15543. cat >>confdefs.h <<_ACEOF
  15544. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15545. _ACEOF
  15546. case "$host" in
  15547. # On Solaris, pulseaudio must be linked deferred explicitly
  15548. # to prevent undefined symbol failures.
  15549. *-*-solaris*)
  15550. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15551. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15552. esac
  15553. else
  15554. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15555. fi
  15556. have_audio=yes
  15557. fi
  15558. fi
  15559. }
  15560. CheckARTSC()
  15561. {
  15562. # Check whether --enable-arts was given.
  15563. if test "${enable_arts+set}" = set; then :
  15564. enableval=$enable_arts;
  15565. else
  15566. enable_arts=yes
  15567. fi
  15568. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15569. # Extract the first word of "artsc-config", so it can be a program name with args.
  15570. set dummy artsc-config; ac_word=$2
  15571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15572. $as_echo_n "checking for $ac_word... " >&6; }
  15573. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15574. $as_echo_n "(cached) " >&6
  15575. else
  15576. case $ARTSCONFIG in
  15577. [\\/]* | ?:[\\/]*)
  15578. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15579. ;;
  15580. *)
  15581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15582. for as_dir in $PATH
  15583. do
  15584. IFS=$as_save_IFS
  15585. test -z "$as_dir" && as_dir=.
  15586. for ac_exec_ext in '' $ac_executable_extensions; do
  15587. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15588. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15590. break 2
  15591. fi
  15592. done
  15593. done
  15594. IFS=$as_save_IFS
  15595. ;;
  15596. esac
  15597. fi
  15598. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15599. if test -n "$ARTSCONFIG"; then
  15600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15601. $as_echo "$ARTSCONFIG" >&6; }
  15602. else
  15603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15604. $as_echo "no" >&6; }
  15605. fi
  15606. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15607. : # arts isn't installed
  15608. else
  15609. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15610. ARTS_LIBS=`$ARTSCONFIG --libs`
  15611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15612. $as_echo_n "checking for aRts development environment... " >&6; }
  15613. audio_arts=no
  15614. save_CFLAGS="$CFLAGS"
  15615. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15617. /* end confdefs.h. */
  15618. #include <artsc.h>
  15619. int
  15620. main ()
  15621. {
  15622. arts_stream_t stream;
  15623. ;
  15624. return 0;
  15625. }
  15626. _ACEOF
  15627. if ac_fn_c_try_compile "$LINENO"; then :
  15628. audio_arts=yes
  15629. fi
  15630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15631. CFLAGS="$save_CFLAGS"
  15632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15633. $as_echo "$audio_arts" >&6; }
  15634. if test x$audio_arts = xyes; then
  15635. # Check whether --enable-arts-shared was given.
  15636. if test "${enable_arts_shared+set}" = set; then :
  15637. enableval=$enable_arts_shared;
  15638. else
  15639. enable_arts_shared=yes
  15640. fi
  15641. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15642. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15643. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15644. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15645. if test x$have_loadso != xyes && \
  15646. test x$enable_arts_shared = xyes; then
  15647. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15648. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15649. fi
  15650. if test x$have_loadso = xyes && \
  15651. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15652. echo "-- dynamic libartsc -> $arts_lib"
  15653. cat >>confdefs.h <<_ACEOF
  15654. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15655. _ACEOF
  15656. else
  15657. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15658. fi
  15659. have_audio=yes
  15660. fi
  15661. fi
  15662. fi
  15663. }
  15664. CheckNAS()
  15665. {
  15666. # Check whether --enable-nas was given.
  15667. if test "${enable_nas+set}" = set; then :
  15668. enableval=$enable_nas;
  15669. else
  15670. enable_nas=yes
  15671. fi
  15672. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15673. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15674. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15675. have_nas_hdr=yes
  15676. fi
  15677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15678. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15679. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15680. $as_echo_n "(cached) " >&6
  15681. else
  15682. ac_check_lib_save_LIBS=$LIBS
  15683. LIBS="-laudio $LIBS"
  15684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15685. /* end confdefs.h. */
  15686. /* Override any GCC internal prototype to avoid an error.
  15687. Use char because int might match the return type of a GCC
  15688. builtin and then its argument prototype would still apply. */
  15689. #ifdef __cplusplus
  15690. extern "C"
  15691. #endif
  15692. char AuOpenServer ();
  15693. int
  15694. main ()
  15695. {
  15696. return AuOpenServer ();
  15697. ;
  15698. return 0;
  15699. }
  15700. _ACEOF
  15701. if ac_fn_c_try_link "$LINENO"; then :
  15702. ac_cv_lib_audio_AuOpenServer=yes
  15703. else
  15704. ac_cv_lib_audio_AuOpenServer=no
  15705. fi
  15706. rm -f core conftest.err conftest.$ac_objext \
  15707. conftest$ac_exeext conftest.$ac_ext
  15708. LIBS=$ac_check_lib_save_LIBS
  15709. fi
  15710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15711. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15712. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15713. have_nas_lib=yes
  15714. fi
  15715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15716. $as_echo_n "checking for NAS audio support... " >&6; }
  15717. have_nas=no
  15718. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15719. have_nas=yes
  15720. NAS_LIBS="-laudio"
  15721. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15722. have_nas=yes
  15723. NAS_CFLAGS="-I/usr/X11R6/include/"
  15724. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15725. fi
  15726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15727. $as_echo "$have_nas" >&6; }
  15728. if test x$have_nas = xyes; then
  15729. # Check whether --enable-nas-shared was given.
  15730. if test "${enable_nas_shared+set}" = set; then :
  15731. enableval=$enable_nas_shared;
  15732. else
  15733. enable_nas_shared=yes
  15734. fi
  15735. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15736. if test x$have_loadso != xyes && \
  15737. test x$enable_nas_shared = xyes; then
  15738. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15739. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15740. fi
  15741. if test x$have_loadso = xyes && \
  15742. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15743. echo "-- dynamic libaudio -> $nas_lib"
  15744. cat >>confdefs.h <<_ACEOF
  15745. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15746. _ACEOF
  15747. else
  15748. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15749. fi
  15750. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15751. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15752. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15753. have_audio=yes
  15754. fi
  15755. fi
  15756. }
  15757. CheckSNDIO()
  15758. {
  15759. # Check whether --enable-sndio was given.
  15760. if test "${enable_sndio+set}" = set; then :
  15761. enableval=$enable_sndio;
  15762. else
  15763. enable_sndio=yes
  15764. fi
  15765. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15766. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15767. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15768. have_sndio_hdr=yes
  15769. fi
  15770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15771. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15772. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15773. $as_echo_n "(cached) " >&6
  15774. else
  15775. ac_check_lib_save_LIBS=$LIBS
  15776. LIBS="-lsndio $LIBS"
  15777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15778. /* end confdefs.h. */
  15779. /* Override any GCC internal prototype to avoid an error.
  15780. Use char because int might match the return type of a GCC
  15781. builtin and then its argument prototype would still apply. */
  15782. #ifdef __cplusplus
  15783. extern "C"
  15784. #endif
  15785. char sio_open ();
  15786. int
  15787. main ()
  15788. {
  15789. return sio_open ();
  15790. ;
  15791. return 0;
  15792. }
  15793. _ACEOF
  15794. if ac_fn_c_try_link "$LINENO"; then :
  15795. ac_cv_lib_sndio_sio_open=yes
  15796. else
  15797. ac_cv_lib_sndio_sio_open=no
  15798. fi
  15799. rm -f core conftest.err conftest.$ac_objext \
  15800. conftest$ac_exeext conftest.$ac_ext
  15801. LIBS=$ac_check_lib_save_LIBS
  15802. fi
  15803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15804. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15805. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15806. have_sndio_lib=yes
  15807. fi
  15808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15809. $as_echo_n "checking for sndio audio support... " >&6; }
  15810. have_sndio=no
  15811. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15812. have_sndio=yes
  15813. SNDIO_LIBS="-lsndio"
  15814. fi
  15815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15816. $as_echo "$have_sndio" >&6; }
  15817. if test x$have_sndio = xyes; then
  15818. # Check whether --enable-sndio-shared was given.
  15819. if test "${enable_sndio_shared+set}" = set; then :
  15820. enableval=$enable_sndio_shared;
  15821. else
  15822. enable_sndio_shared=yes
  15823. fi
  15824. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15825. if test x$have_loadso != xyes && \
  15826. test x$enable_sndio_shared = xyes; then
  15827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15828. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15829. fi
  15830. if test x$have_loadso = xyes && \
  15831. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15832. echo "-- dynamic libsndio -> $sndio_lib"
  15833. cat >>confdefs.h <<_ACEOF
  15834. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15835. _ACEOF
  15836. else
  15837. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15838. fi
  15839. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15840. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15841. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15842. have_audio=yes
  15843. fi
  15844. fi
  15845. }
  15846. CheckDiskAudio()
  15847. {
  15848. # Check whether --enable-diskaudio was given.
  15849. if test "${enable_diskaudio+set}" = set; then :
  15850. enableval=$enable_diskaudio;
  15851. else
  15852. enable_diskaudio=yes
  15853. fi
  15854. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15855. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15856. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15857. fi
  15858. }
  15859. CheckDummyAudio()
  15860. {
  15861. # Check whether --enable-dummyaudio was given.
  15862. if test "${enable_dummyaudio+set}" = set; then :
  15863. enableval=$enable_dummyaudio;
  15864. else
  15865. enable_dummyaudio=yes
  15866. fi
  15867. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15868. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15869. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15870. fi
  15871. }
  15872. CheckVisibilityHidden()
  15873. {
  15874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15875. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15876. have_gcc_fvisibility=no
  15877. visibility_CFLAGS="-fvisibility=hidden"
  15878. save_CFLAGS="$CFLAGS"
  15879. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15881. /* end confdefs.h. */
  15882. #if !defined(__GNUC__) || __GNUC__ < 4
  15883. #error SDL only uses visibility attributes in GCC 4 or newer
  15884. #endif
  15885. int
  15886. main ()
  15887. {
  15888. ;
  15889. return 0;
  15890. }
  15891. _ACEOF
  15892. if ac_fn_c_try_compile "$LINENO"; then :
  15893. have_gcc_fvisibility=yes
  15894. fi
  15895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15897. $as_echo "$have_gcc_fvisibility" >&6; }
  15898. CFLAGS="$save_CFLAGS"
  15899. if test x$have_gcc_fvisibility = xyes; then
  15900. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15901. fi
  15902. }
  15903. CheckStackBoundary()
  15904. {
  15905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  15906. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  15907. have_gcc_preferred_stack_boundary=no
  15908. save_CFLAGS="$CFLAGS"
  15909. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  15910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15911. /* end confdefs.h. */
  15912. int x = 0;
  15913. int
  15914. main ()
  15915. {
  15916. ;
  15917. return 0;
  15918. }
  15919. _ACEOF
  15920. if ac_fn_c_try_compile "$LINENO"; then :
  15921. have_gcc_preferred_stack_boundary=yes
  15922. fi
  15923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  15925. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  15926. CFLAGS="$save_CFLAGS"
  15927. if test x$have_gcc_preferred_stack_boundary = xyes; then
  15928. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  15929. fi
  15930. }
  15931. CheckWarnAll()
  15932. {
  15933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  15934. $as_echo_n "checking for GCC -Wall option... " >&6; }
  15935. have_gcc_Wall=no
  15936. save_CFLAGS="$CFLAGS"
  15937. CFLAGS="$save_CFLAGS -Wall"
  15938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15939. /* end confdefs.h. */
  15940. int x = 0;
  15941. int
  15942. main ()
  15943. {
  15944. ;
  15945. return 0;
  15946. }
  15947. _ACEOF
  15948. if ac_fn_c_try_compile "$LINENO"; then :
  15949. have_gcc_Wall=yes
  15950. fi
  15951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  15953. $as_echo "$have_gcc_Wall" >&6; }
  15954. CFLAGS="$save_CFLAGS"
  15955. if test x$have_gcc_Wall = xyes; then
  15956. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  15957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  15958. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  15959. need_gcc_Wno_multichar=no
  15960. case "$host" in
  15961. *-*-beos* | *-*-haiku*)
  15962. need_gcc_Wno_multichar=yes
  15963. ;;
  15964. esac
  15965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  15966. $as_echo "$need_gcc_Wno_multichar" >&6; }
  15967. if test x$need_gcc_Wno_multichar = xyes; then
  15968. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  15969. fi
  15970. fi
  15971. }
  15972. CheckX11()
  15973. {
  15974. # Check whether --enable-video-x11 was given.
  15975. if test "${enable_video_x11+set}" = set; then :
  15976. enableval=$enable_video_x11;
  15977. else
  15978. enable_video_x11=yes
  15979. fi
  15980. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  15981. case "$host" in
  15982. *-*-darwin*)
  15983. # This isn't necessary for X11, but fixes GLX detection
  15984. if test "x$x_includes" = xNONE && \
  15985. test "x$x_libraries" = xNONE && \
  15986. test -d /usr/X11R6/include && \
  15987. test -d /usr/X11R6/lib; then
  15988. x_includes="/usr/X11R6/include"
  15989. x_libraries="/usr/X11R6/lib"
  15990. fi
  15991. ;;
  15992. esac
  15993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  15994. $as_echo_n "checking for X... " >&6; }
  15995. # Check whether --with-x was given.
  15996. if test "${with_x+set}" = set; then :
  15997. withval=$with_x;
  15998. fi
  15999. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16000. if test "x$with_x" = xno; then
  16001. # The user explicitly disabled X.
  16002. have_x=disabled
  16003. else
  16004. case $x_includes,$x_libraries in #(
  16005. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16006. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16007. $as_echo_n "(cached) " >&6
  16008. else
  16009. # One or both of the vars are not set, and there is no cached value.
  16010. ac_x_includes=no ac_x_libraries=no
  16011. rm -f -r conftest.dir
  16012. if mkdir conftest.dir; then
  16013. cd conftest.dir
  16014. cat >Imakefile <<'_ACEOF'
  16015. incroot:
  16016. @echo incroot='${INCROOT}'
  16017. usrlibdir:
  16018. @echo usrlibdir='${USRLIBDIR}'
  16019. libdir:
  16020. @echo libdir='${LIBDIR}'
  16021. _ACEOF
  16022. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16023. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16024. for ac_var in incroot usrlibdir libdir; do
  16025. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16026. done
  16027. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16028. for ac_extension in a so sl dylib la dll; do
  16029. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16030. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16031. ac_im_usrlibdir=$ac_im_libdir; break
  16032. fi
  16033. done
  16034. # Screen out bogus values from the imake configuration. They are
  16035. # bogus both because they are the default anyway, and because
  16036. # using them would break gcc on systems where it needs fixed includes.
  16037. case $ac_im_incroot in
  16038. /usr/include) ac_x_includes= ;;
  16039. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16040. esac
  16041. case $ac_im_usrlibdir in
  16042. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16043. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16044. esac
  16045. fi
  16046. cd ..
  16047. rm -f -r conftest.dir
  16048. fi
  16049. # Standard set of common directories for X headers.
  16050. # Check X11 before X11Rn because it is often a symlink to the current release.
  16051. ac_x_header_dirs='
  16052. /usr/X11/include
  16053. /usr/X11R7/include
  16054. /usr/X11R6/include
  16055. /usr/X11R5/include
  16056. /usr/X11R4/include
  16057. /usr/include/X11
  16058. /usr/include/X11R7
  16059. /usr/include/X11R6
  16060. /usr/include/X11R5
  16061. /usr/include/X11R4
  16062. /usr/local/X11/include
  16063. /usr/local/X11R7/include
  16064. /usr/local/X11R6/include
  16065. /usr/local/X11R5/include
  16066. /usr/local/X11R4/include
  16067. /usr/local/include/X11
  16068. /usr/local/include/X11R7
  16069. /usr/local/include/X11R6
  16070. /usr/local/include/X11R5
  16071. /usr/local/include/X11R4
  16072. /usr/X386/include
  16073. /usr/x386/include
  16074. /usr/XFree86/include/X11
  16075. /usr/include
  16076. /usr/local/include
  16077. /usr/unsupported/include
  16078. /usr/athena/include
  16079. /usr/local/x11r5/include
  16080. /usr/lpp/Xamples/include
  16081. /usr/openwin/include
  16082. /usr/openwin/share/include'
  16083. if test "$ac_x_includes" = no; then
  16084. # Guess where to find include files, by looking for Xlib.h.
  16085. # First, try using that file with no special directory specified.
  16086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16087. /* end confdefs.h. */
  16088. #include <X11/Xlib.h>
  16089. _ACEOF
  16090. if ac_fn_c_try_cpp "$LINENO"; then :
  16091. # We can compile using X headers with no special include directory.
  16092. ac_x_includes=
  16093. else
  16094. for ac_dir in $ac_x_header_dirs; do
  16095. if test -r "$ac_dir/X11/Xlib.h"; then
  16096. ac_x_includes=$ac_dir
  16097. break
  16098. fi
  16099. done
  16100. fi
  16101. rm -f conftest.err conftest.i conftest.$ac_ext
  16102. fi # $ac_x_includes = no
  16103. if test "$ac_x_libraries" = no; then
  16104. # Check for the libraries.
  16105. # See if we find them without any special options.
  16106. # Don't add to $LIBS permanently.
  16107. ac_save_LIBS=$LIBS
  16108. LIBS="-lX11 $LIBS"
  16109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16110. /* end confdefs.h. */
  16111. #include <X11/Xlib.h>
  16112. int
  16113. main ()
  16114. {
  16115. XrmInitialize ()
  16116. ;
  16117. return 0;
  16118. }
  16119. _ACEOF
  16120. if ac_fn_c_try_link "$LINENO"; then :
  16121. LIBS=$ac_save_LIBS
  16122. # We can link X programs with no special library path.
  16123. ac_x_libraries=
  16124. else
  16125. LIBS=$ac_save_LIBS
  16126. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16127. do
  16128. # Don't even attempt the hair of trying to link an X program!
  16129. for ac_extension in a so sl dylib la dll; do
  16130. if test -r "$ac_dir/libX11.$ac_extension"; then
  16131. ac_x_libraries=$ac_dir
  16132. break 2
  16133. fi
  16134. done
  16135. done
  16136. fi
  16137. rm -f core conftest.err conftest.$ac_objext \
  16138. conftest$ac_exeext conftest.$ac_ext
  16139. fi # $ac_x_libraries = no
  16140. case $ac_x_includes,$ac_x_libraries in #(
  16141. no,* | *,no | *\'*)
  16142. # Didn't find X, or a directory has "'" in its name.
  16143. ac_cv_have_x="have_x=no";; #(
  16144. *)
  16145. # Record where we found X for the cache.
  16146. ac_cv_have_x="have_x=yes\
  16147. ac_x_includes='$ac_x_includes'\
  16148. ac_x_libraries='$ac_x_libraries'"
  16149. esac
  16150. fi
  16151. ;; #(
  16152. *) have_x=yes;;
  16153. esac
  16154. eval "$ac_cv_have_x"
  16155. fi # $with_x != no
  16156. if test "$have_x" != yes; then
  16157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16158. $as_echo "$have_x" >&6; }
  16159. no_x=yes
  16160. else
  16161. # If each of the values was on the command line, it overrides each guess.
  16162. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16163. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16164. # Update the cache value to reflect the command line values.
  16165. ac_cv_have_x="have_x=yes\
  16166. ac_x_includes='$x_includes'\
  16167. ac_x_libraries='$x_libraries'"
  16168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16169. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16170. fi
  16171. if test "$no_x" = yes; then
  16172. # Not all programs may use this symbol, but it does not hurt to define it.
  16173. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16174. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16175. else
  16176. if test -n "$x_includes"; then
  16177. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16178. fi
  16179. # It would also be nice to do this for all -L options, not just this one.
  16180. if test -n "$x_libraries"; then
  16181. X_LIBS="$X_LIBS -L$x_libraries"
  16182. # For Solaris; some versions of Sun CC require a space after -R and
  16183. # others require no space. Words are not sufficient . . . .
  16184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16185. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16186. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16187. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16188. ac_c_werror_flag=yes
  16189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16190. /* end confdefs.h. */
  16191. int
  16192. main ()
  16193. {
  16194. ;
  16195. return 0;
  16196. }
  16197. _ACEOF
  16198. if ac_fn_c_try_link "$LINENO"; then :
  16199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16200. $as_echo "no" >&6; }
  16201. X_LIBS="$X_LIBS -R$x_libraries"
  16202. else
  16203. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16205. /* end confdefs.h. */
  16206. int
  16207. main ()
  16208. {
  16209. ;
  16210. return 0;
  16211. }
  16212. _ACEOF
  16213. if ac_fn_c_try_link "$LINENO"; then :
  16214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16215. $as_echo "yes" >&6; }
  16216. X_LIBS="$X_LIBS -R $x_libraries"
  16217. else
  16218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16219. $as_echo "neither works" >&6; }
  16220. fi
  16221. rm -f core conftest.err conftest.$ac_objext \
  16222. conftest$ac_exeext conftest.$ac_ext
  16223. fi
  16224. rm -f core conftest.err conftest.$ac_objext \
  16225. conftest$ac_exeext conftest.$ac_ext
  16226. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16227. LIBS=$ac_xsave_LIBS
  16228. fi
  16229. # Check for system-dependent libraries X programs must link with.
  16230. # Do this before checking for the system-independent R6 libraries
  16231. # (-lICE), since we may need -lsocket or whatever for X linking.
  16232. if test "$ISC" = yes; then
  16233. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16234. else
  16235. # Martyn Johnson says this is needed for Ultrix, if the X
  16236. # libraries were built with DECnet support. And Karl Berry says
  16237. # the Alpha needs dnet_stub (dnet does not exist).
  16238. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16240. /* end confdefs.h. */
  16241. /* Override any GCC internal prototype to avoid an error.
  16242. Use char because int might match the return type of a GCC
  16243. builtin and then its argument prototype would still apply. */
  16244. #ifdef __cplusplus
  16245. extern "C"
  16246. #endif
  16247. char XOpenDisplay ();
  16248. int
  16249. main ()
  16250. {
  16251. return XOpenDisplay ();
  16252. ;
  16253. return 0;
  16254. }
  16255. _ACEOF
  16256. if ac_fn_c_try_link "$LINENO"; then :
  16257. else
  16258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16259. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16260. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16261. $as_echo_n "(cached) " >&6
  16262. else
  16263. ac_check_lib_save_LIBS=$LIBS
  16264. LIBS="-ldnet $LIBS"
  16265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16266. /* end confdefs.h. */
  16267. /* Override any GCC internal prototype to avoid an error.
  16268. Use char because int might match the return type of a GCC
  16269. builtin and then its argument prototype would still apply. */
  16270. #ifdef __cplusplus
  16271. extern "C"
  16272. #endif
  16273. char dnet_ntoa ();
  16274. int
  16275. main ()
  16276. {
  16277. return dnet_ntoa ();
  16278. ;
  16279. return 0;
  16280. }
  16281. _ACEOF
  16282. if ac_fn_c_try_link "$LINENO"; then :
  16283. ac_cv_lib_dnet_dnet_ntoa=yes
  16284. else
  16285. ac_cv_lib_dnet_dnet_ntoa=no
  16286. fi
  16287. rm -f core conftest.err conftest.$ac_objext \
  16288. conftest$ac_exeext conftest.$ac_ext
  16289. LIBS=$ac_check_lib_save_LIBS
  16290. fi
  16291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16292. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16293. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16294. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16295. fi
  16296. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16298. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16299. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16300. $as_echo_n "(cached) " >&6
  16301. else
  16302. ac_check_lib_save_LIBS=$LIBS
  16303. LIBS="-ldnet_stub $LIBS"
  16304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16305. /* end confdefs.h. */
  16306. /* Override any GCC internal prototype to avoid an error.
  16307. Use char because int might match the return type of a GCC
  16308. builtin and then its argument prototype would still apply. */
  16309. #ifdef __cplusplus
  16310. extern "C"
  16311. #endif
  16312. char dnet_ntoa ();
  16313. int
  16314. main ()
  16315. {
  16316. return dnet_ntoa ();
  16317. ;
  16318. return 0;
  16319. }
  16320. _ACEOF
  16321. if ac_fn_c_try_link "$LINENO"; then :
  16322. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16323. else
  16324. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16325. fi
  16326. rm -f core conftest.err conftest.$ac_objext \
  16327. conftest$ac_exeext conftest.$ac_ext
  16328. LIBS=$ac_check_lib_save_LIBS
  16329. fi
  16330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16331. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16332. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16333. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16334. fi
  16335. fi
  16336. fi
  16337. rm -f core conftest.err conftest.$ac_objext \
  16338. conftest$ac_exeext conftest.$ac_ext
  16339. LIBS="$ac_xsave_LIBS"
  16340. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16341. # to get the SysV transport functions.
  16342. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16343. # needs -lnsl.
  16344. # The nsl library prevents programs from opening the X display
  16345. # on Irix 5.2, according to T.E. Dickey.
  16346. # The functions gethostbyname, getservbyname, and inet_addr are
  16347. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16348. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16349. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16350. fi
  16351. if test $ac_cv_func_gethostbyname = no; then
  16352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16353. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16354. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16355. $as_echo_n "(cached) " >&6
  16356. else
  16357. ac_check_lib_save_LIBS=$LIBS
  16358. LIBS="-lnsl $LIBS"
  16359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16360. /* end confdefs.h. */
  16361. /* Override any GCC internal prototype to avoid an error.
  16362. Use char because int might match the return type of a GCC
  16363. builtin and then its argument prototype would still apply. */
  16364. #ifdef __cplusplus
  16365. extern "C"
  16366. #endif
  16367. char gethostbyname ();
  16368. int
  16369. main ()
  16370. {
  16371. return gethostbyname ();
  16372. ;
  16373. return 0;
  16374. }
  16375. _ACEOF
  16376. if ac_fn_c_try_link "$LINENO"; then :
  16377. ac_cv_lib_nsl_gethostbyname=yes
  16378. else
  16379. ac_cv_lib_nsl_gethostbyname=no
  16380. fi
  16381. rm -f core conftest.err conftest.$ac_objext \
  16382. conftest$ac_exeext conftest.$ac_ext
  16383. LIBS=$ac_check_lib_save_LIBS
  16384. fi
  16385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16386. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16387. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16388. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16389. fi
  16390. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16392. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16393. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16394. $as_echo_n "(cached) " >&6
  16395. else
  16396. ac_check_lib_save_LIBS=$LIBS
  16397. LIBS="-lbsd $LIBS"
  16398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16399. /* end confdefs.h. */
  16400. /* Override any GCC internal prototype to avoid an error.
  16401. Use char because int might match the return type of a GCC
  16402. builtin and then its argument prototype would still apply. */
  16403. #ifdef __cplusplus
  16404. extern "C"
  16405. #endif
  16406. char gethostbyname ();
  16407. int
  16408. main ()
  16409. {
  16410. return gethostbyname ();
  16411. ;
  16412. return 0;
  16413. }
  16414. _ACEOF
  16415. if ac_fn_c_try_link "$LINENO"; then :
  16416. ac_cv_lib_bsd_gethostbyname=yes
  16417. else
  16418. ac_cv_lib_bsd_gethostbyname=no
  16419. fi
  16420. rm -f core conftest.err conftest.$ac_objext \
  16421. conftest$ac_exeext conftest.$ac_ext
  16422. LIBS=$ac_check_lib_save_LIBS
  16423. fi
  16424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16425. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16426. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16427. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16428. fi
  16429. fi
  16430. fi
  16431. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16432. # socket/setsockopt and other routines are undefined under SCO ODT
  16433. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16434. # on later versions), says Simon Leinen: it contains gethostby*
  16435. # variants that don't use the name server (or something). -lsocket
  16436. # must be given before -lnsl if both are needed. We assume that
  16437. # if connect needs -lnsl, so does gethostbyname.
  16438. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16439. if test "x$ac_cv_func_connect" = xyes; then :
  16440. fi
  16441. if test $ac_cv_func_connect = no; then
  16442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16443. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16444. if ${ac_cv_lib_socket_connect+:} false; then :
  16445. $as_echo_n "(cached) " >&6
  16446. else
  16447. ac_check_lib_save_LIBS=$LIBS
  16448. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16450. /* end confdefs.h. */
  16451. /* Override any GCC internal prototype to avoid an error.
  16452. Use char because int might match the return type of a GCC
  16453. builtin and then its argument prototype would still apply. */
  16454. #ifdef __cplusplus
  16455. extern "C"
  16456. #endif
  16457. char connect ();
  16458. int
  16459. main ()
  16460. {
  16461. return connect ();
  16462. ;
  16463. return 0;
  16464. }
  16465. _ACEOF
  16466. if ac_fn_c_try_link "$LINENO"; then :
  16467. ac_cv_lib_socket_connect=yes
  16468. else
  16469. ac_cv_lib_socket_connect=no
  16470. fi
  16471. rm -f core conftest.err conftest.$ac_objext \
  16472. conftest$ac_exeext conftest.$ac_ext
  16473. LIBS=$ac_check_lib_save_LIBS
  16474. fi
  16475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16476. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16477. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16478. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16479. fi
  16480. fi
  16481. # Guillermo Gomez says -lposix is necessary on A/UX.
  16482. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16483. if test "x$ac_cv_func_remove" = xyes; then :
  16484. fi
  16485. if test $ac_cv_func_remove = no; then
  16486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16487. $as_echo_n "checking for remove in -lposix... " >&6; }
  16488. if ${ac_cv_lib_posix_remove+:} false; then :
  16489. $as_echo_n "(cached) " >&6
  16490. else
  16491. ac_check_lib_save_LIBS=$LIBS
  16492. LIBS="-lposix $LIBS"
  16493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16494. /* end confdefs.h. */
  16495. /* Override any GCC internal prototype to avoid an error.
  16496. Use char because int might match the return type of a GCC
  16497. builtin and then its argument prototype would still apply. */
  16498. #ifdef __cplusplus
  16499. extern "C"
  16500. #endif
  16501. char remove ();
  16502. int
  16503. main ()
  16504. {
  16505. return remove ();
  16506. ;
  16507. return 0;
  16508. }
  16509. _ACEOF
  16510. if ac_fn_c_try_link "$LINENO"; then :
  16511. ac_cv_lib_posix_remove=yes
  16512. else
  16513. ac_cv_lib_posix_remove=no
  16514. fi
  16515. rm -f core conftest.err conftest.$ac_objext \
  16516. conftest$ac_exeext conftest.$ac_ext
  16517. LIBS=$ac_check_lib_save_LIBS
  16518. fi
  16519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16520. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16521. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16522. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16523. fi
  16524. fi
  16525. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16526. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16527. if test "x$ac_cv_func_shmat" = xyes; then :
  16528. fi
  16529. if test $ac_cv_func_shmat = no; then
  16530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16531. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16532. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16533. $as_echo_n "(cached) " >&6
  16534. else
  16535. ac_check_lib_save_LIBS=$LIBS
  16536. LIBS="-lipc $LIBS"
  16537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16538. /* end confdefs.h. */
  16539. /* Override any GCC internal prototype to avoid an error.
  16540. Use char because int might match the return type of a GCC
  16541. builtin and then its argument prototype would still apply. */
  16542. #ifdef __cplusplus
  16543. extern "C"
  16544. #endif
  16545. char shmat ();
  16546. int
  16547. main ()
  16548. {
  16549. return shmat ();
  16550. ;
  16551. return 0;
  16552. }
  16553. _ACEOF
  16554. if ac_fn_c_try_link "$LINENO"; then :
  16555. ac_cv_lib_ipc_shmat=yes
  16556. else
  16557. ac_cv_lib_ipc_shmat=no
  16558. fi
  16559. rm -f core conftest.err conftest.$ac_objext \
  16560. conftest$ac_exeext conftest.$ac_ext
  16561. LIBS=$ac_check_lib_save_LIBS
  16562. fi
  16563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16564. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16565. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16566. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16567. fi
  16568. fi
  16569. fi
  16570. # Check for libraries that X11R6 Xt/Xaw programs need.
  16571. ac_save_LDFLAGS=$LDFLAGS
  16572. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16573. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16574. # check for ICE first), but we must link in the order -lSM -lICE or
  16575. # we get undefined symbols. So assume we have SM if we have ICE.
  16576. # These have to be linked with before -lX11, unlike the other
  16577. # libraries we check for below, so use a different variable.
  16578. # John Interrante, Karl Berry
  16579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16580. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16581. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16582. $as_echo_n "(cached) " >&6
  16583. else
  16584. ac_check_lib_save_LIBS=$LIBS
  16585. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  16586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16587. /* end confdefs.h. */
  16588. /* Override any GCC internal prototype to avoid an error.
  16589. Use char because int might match the return type of a GCC
  16590. builtin and then its argument prototype would still apply. */
  16591. #ifdef __cplusplus
  16592. extern "C"
  16593. #endif
  16594. char IceConnectionNumber ();
  16595. int
  16596. main ()
  16597. {
  16598. return IceConnectionNumber ();
  16599. ;
  16600. return 0;
  16601. }
  16602. _ACEOF
  16603. if ac_fn_c_try_link "$LINENO"; then :
  16604. ac_cv_lib_ICE_IceConnectionNumber=yes
  16605. else
  16606. ac_cv_lib_ICE_IceConnectionNumber=no
  16607. fi
  16608. rm -f core conftest.err conftest.$ac_objext \
  16609. conftest$ac_exeext conftest.$ac_ext
  16610. LIBS=$ac_check_lib_save_LIBS
  16611. fi
  16612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  16613. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  16614. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  16615. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  16616. fi
  16617. LDFLAGS=$ac_save_LDFLAGS
  16618. fi
  16619. if test x$have_x = xyes; then
  16620. # Only allow dynamically loaded X11 if the X11 function pointers
  16621. # will not end up in the global namespace, which causes problems
  16622. # with other libraries calling X11 functions.
  16623. x11_symbols_private=$have_gcc_fvisibility
  16624. # Check whether --enable-x11-shared was given.
  16625. if test "${enable_x11_shared+set}" = set; then :
  16626. enableval=$enable_x11_shared;
  16627. else
  16628. enable_x11_shared=maybe
  16629. fi
  16630. case "$host" in
  16631. *-*-darwin*)
  16632. x11_symbols_private=yes
  16633. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  16634. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  16635. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  16636. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  16637. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  16638. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  16639. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  16640. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  16641. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  16642. ;;
  16643. *-*-openbsd*)
  16644. x11_lib='libX11.so'
  16645. x11ext_lib='libXext.so'
  16646. xcursor_lib='libXcursor.so'
  16647. xinerama_lib='libXinerama.so'
  16648. xinput_lib='libXi.so'
  16649. xrandr_lib='libXrandr.so'
  16650. xrender_lib='libXrender.so'
  16651. xss_lib='libXss.so'
  16652. xvidmode_lib='libXxf86vm.so'
  16653. ;;
  16654. *)
  16655. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16656. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16657. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16658. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16659. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16660. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16661. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16662. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16663. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16664. ;;
  16665. esac
  16666. if test x$ac_cv_func_shmat != xyes; then
  16667. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  16668. fi
  16669. CFLAGS="$CFLAGS $X_CFLAGS"
  16670. LDFLAGS="$LDFLAGS $X_LIBS"
  16671. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  16672. #include <X11/Xproto.h>
  16673. "
  16674. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  16675. have_xext_h_hdr=yes
  16676. else
  16677. have_xext_h_hdr=no
  16678. fi
  16679. if test x$have_xext_h_hdr != xyes; then
  16680. as_fn_error $? "
  16681. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  16682. " "$LINENO" 5
  16683. fi
  16684. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  16685. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  16686. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  16687. # Needed so SDL applications can include SDL_syswm.h
  16688. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  16689. if test x$enable_x11_shared = xmaybe; then
  16690. enable_x11_shared=$x11_symbols_private
  16691. fi
  16692. if test x$have_loadso != xyes && \
  16693. test x$enable_x11_shared = xyes; then
  16694. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  16695. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  16696. enable_x11_shared=no
  16697. fi
  16698. if test x$x11_symbols_private != xyes && \
  16699. test x$enable_x11_shared = xyes; then
  16700. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&5
  16701. $as_echo "$as_me: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&2;}
  16702. enable_x11_shared=no
  16703. fi
  16704. if test x$have_loadso = xyes && \
  16705. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  16706. echo "-- dynamic libX11 -> $x11_lib"
  16707. echo "-- dynamic libX11ext -> $x11ext_lib"
  16708. cat >>confdefs.h <<_ACEOF
  16709. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  16710. _ACEOF
  16711. cat >>confdefs.h <<_ACEOF
  16712. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  16713. _ACEOF
  16714. else
  16715. enable_x11_shared=no
  16716. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  16717. fi
  16718. have_video=yes
  16719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  16720. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  16721. have_const_param_XextAddDisplay=no
  16722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16723. /* end confdefs.h. */
  16724. #include <X11/Xlib.h>
  16725. #include <X11/Xproto.h>
  16726. #include <X11/extensions/Xext.h>
  16727. #include <X11/extensions/extutil.h>
  16728. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  16729. int
  16730. main ()
  16731. {
  16732. ;
  16733. return 0;
  16734. }
  16735. _ACEOF
  16736. if ac_fn_c_try_compile "$LINENO"; then :
  16737. have_const_param_XextAddDisplay=yes
  16738. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  16739. fi
  16740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  16742. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  16743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to _XData32" >&5
  16744. $as_echo_n "checking for const parameter to _XData32... " >&6; }
  16745. have_const_param_xdata32=no
  16746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16747. /* end confdefs.h. */
  16748. #include <X11/Xlibint.h>
  16749. extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
  16750. int
  16751. main ()
  16752. {
  16753. ;
  16754. return 0;
  16755. }
  16756. _ACEOF
  16757. if ac_fn_c_try_compile "$LINENO"; then :
  16758. have_const_param_xdata32=yes
  16759. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1" >>confdefs.h
  16760. fi
  16761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_xdata32" >&5
  16763. $as_echo "$have_const_param_xdata32" >&6; }
  16764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  16765. $as_echo_n "checking for XGenericEvent... " >&6; }
  16766. have_XGenericEvent=no
  16767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16768. /* end confdefs.h. */
  16769. #include <X11/Xlib.h>
  16770. int
  16771. main ()
  16772. {
  16773. Display *display;
  16774. XEvent event;
  16775. XGenericEventCookie *cookie = &event.xcookie;
  16776. XNextEvent(display, &event);
  16777. XGetEventData(display, cookie);
  16778. XFreeEventData(display, cookie);
  16779. ;
  16780. return 0;
  16781. }
  16782. _ACEOF
  16783. if ac_fn_c_try_compile "$LINENO"; then :
  16784. have_XGenericEvent=yes
  16785. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  16786. fi
  16787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  16789. $as_echo "$have_XGenericEvent" >&6; }
  16790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  16791. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  16792. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  16793. $as_echo_n "(cached) " >&6
  16794. else
  16795. ac_check_lib_save_LIBS=$LIBS
  16796. LIBS="-lX11 $LIBS"
  16797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16798. /* end confdefs.h. */
  16799. /* Override any GCC internal prototype to avoid an error.
  16800. Use char because int might match the return type of a GCC
  16801. builtin and then its argument prototype would still apply. */
  16802. #ifdef __cplusplus
  16803. extern "C"
  16804. #endif
  16805. char XkbKeycodeToKeysym ();
  16806. int
  16807. main ()
  16808. {
  16809. return XkbKeycodeToKeysym ();
  16810. ;
  16811. return 0;
  16812. }
  16813. _ACEOF
  16814. if ac_fn_c_try_link "$LINENO"; then :
  16815. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  16816. else
  16817. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  16818. fi
  16819. rm -f core conftest.err conftest.$ac_objext \
  16820. conftest$ac_exeext conftest.$ac_ext
  16821. LIBS=$ac_check_lib_save_LIBS
  16822. fi
  16823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  16824. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  16825. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  16826. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  16827. fi
  16828. # Check whether --enable-video-x11-xcursor was given.
  16829. if test "${enable_video_x11_xcursor+set}" = set; then :
  16830. enableval=$enable_video_x11_xcursor;
  16831. else
  16832. enable_video_x11_xcursor=yes
  16833. fi
  16834. if test x$enable_video_x11_xcursor = xyes; then
  16835. definitely_enable_video_x11_xcursor=no
  16836. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  16837. "
  16838. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  16839. have_xcursor_h_hdr=yes
  16840. else
  16841. have_xcursor_h_hdr=no
  16842. fi
  16843. if test x$have_xcursor_h_hdr = xyes; then
  16844. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  16845. echo "-- dynamic libXcursor -> $xcursor_lib"
  16846. cat >>confdefs.h <<_ACEOF
  16847. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  16848. _ACEOF
  16849. definitely_enable_video_x11_xcursor=yes
  16850. else
  16851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  16852. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  16853. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  16854. $as_echo_n "(cached) " >&6
  16855. else
  16856. ac_check_lib_save_LIBS=$LIBS
  16857. LIBS="-lXcursor $LIBS"
  16858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16859. /* end confdefs.h. */
  16860. /* Override any GCC internal prototype to avoid an error.
  16861. Use char because int might match the return type of a GCC
  16862. builtin and then its argument prototype would still apply. */
  16863. #ifdef __cplusplus
  16864. extern "C"
  16865. #endif
  16866. char XcursorImageCreate ();
  16867. int
  16868. main ()
  16869. {
  16870. return XcursorImageCreate ();
  16871. ;
  16872. return 0;
  16873. }
  16874. _ACEOF
  16875. if ac_fn_c_try_link "$LINENO"; then :
  16876. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  16877. else
  16878. ac_cv_lib_Xcursor_XcursorImageCreate=no
  16879. fi
  16880. rm -f core conftest.err conftest.$ac_objext \
  16881. conftest$ac_exeext conftest.$ac_ext
  16882. LIBS=$ac_check_lib_save_LIBS
  16883. fi
  16884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  16885. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  16886. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  16887. have_xcursor_lib=yes
  16888. fi
  16889. if test x$have_xcursor_lib = xyes ; then
  16890. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  16891. definitely_enable_video_x11_xcursor=yes
  16892. fi
  16893. fi
  16894. fi
  16895. fi
  16896. if test x$definitely_enable_video_x11_xcursor = xyes; then
  16897. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  16898. fi
  16899. # Check whether --enable-video-x11-xinerama was given.
  16900. if test "${enable_video_x11_xinerama+set}" = set; then :
  16901. enableval=$enable_video_x11_xinerama;
  16902. else
  16903. enable_video_x11_xinerama=yes
  16904. fi
  16905. if test x$enable_video_x11_xinerama = xyes; then
  16906. definitely_enable_video_x11_xinerama=no
  16907. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  16908. "
  16909. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  16910. have_xinerama_h_hdr=yes
  16911. else
  16912. have_xinerama_h_hdr=no
  16913. fi
  16914. if test x$have_xinerama_h_hdr = xyes; then
  16915. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  16916. echo "-- dynamic libXinerama -> $xinerama_lib"
  16917. cat >>confdefs.h <<_ACEOF
  16918. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  16919. _ACEOF
  16920. definitely_enable_video_x11_xinerama=yes
  16921. else
  16922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  16923. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  16924. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  16925. $as_echo_n "(cached) " >&6
  16926. else
  16927. ac_check_lib_save_LIBS=$LIBS
  16928. LIBS="-lXinerama $LIBS"
  16929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16930. /* end confdefs.h. */
  16931. /* Override any GCC internal prototype to avoid an error.
  16932. Use char because int might match the return type of a GCC
  16933. builtin and then its argument prototype would still apply. */
  16934. #ifdef __cplusplus
  16935. extern "C"
  16936. #endif
  16937. char XineramaQueryExtension ();
  16938. int
  16939. main ()
  16940. {
  16941. return XineramaQueryExtension ();
  16942. ;
  16943. return 0;
  16944. }
  16945. _ACEOF
  16946. if ac_fn_c_try_link "$LINENO"; then :
  16947. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  16948. else
  16949. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  16950. fi
  16951. rm -f core conftest.err conftest.$ac_objext \
  16952. conftest$ac_exeext conftest.$ac_ext
  16953. LIBS=$ac_check_lib_save_LIBS
  16954. fi
  16955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  16956. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  16957. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  16958. have_xinerama_lib=yes
  16959. fi
  16960. if test x$have_xinerama_lib = xyes ; then
  16961. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  16962. definitely_enable_video_x11_xinerama=yes
  16963. fi
  16964. fi
  16965. fi
  16966. fi
  16967. if test x$definitely_enable_video_x11_xinerama = xyes; then
  16968. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  16969. fi
  16970. # Check whether --enable-video-x11-xinput was given.
  16971. if test "${enable_video_x11_xinput+set}" = set; then :
  16972. enableval=$enable_video_x11_xinput;
  16973. else
  16974. enable_video_x11_xinput=yes
  16975. fi
  16976. if test x$enable_video_x11_xinput = xyes; then
  16977. definitely_enable_video_x11_xinput=no
  16978. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  16979. "
  16980. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  16981. have_xinput_h_hdr=yes
  16982. else
  16983. have_xinput_h_hdr=no
  16984. fi
  16985. if test x$have_xinput_h_hdr = xyes; then
  16986. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  16987. echo "-- dynamic libXi -> $xinput_lib"
  16988. cat >>confdefs.h <<_ACEOF
  16989. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  16990. _ACEOF
  16991. definitely_enable_video_x11_xinput=yes
  16992. else
  16993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  16994. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  16995. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  16996. $as_echo_n "(cached) " >&6
  16997. else
  16998. ac_check_lib_save_LIBS=$LIBS
  16999. LIBS="-lXi $LIBS"
  17000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17001. /* end confdefs.h. */
  17002. /* Override any GCC internal prototype to avoid an error.
  17003. Use char because int might match the return type of a GCC
  17004. builtin and then its argument prototype would still apply. */
  17005. #ifdef __cplusplus
  17006. extern "C"
  17007. #endif
  17008. char XOpenDevice ();
  17009. int
  17010. main ()
  17011. {
  17012. return XOpenDevice ();
  17013. ;
  17014. return 0;
  17015. }
  17016. _ACEOF
  17017. if ac_fn_c_try_link "$LINENO"; then :
  17018. ac_cv_lib_Xi_XOpenDevice=yes
  17019. else
  17020. ac_cv_lib_Xi_XOpenDevice=no
  17021. fi
  17022. rm -f core conftest.err conftest.$ac_objext \
  17023. conftest$ac_exeext conftest.$ac_ext
  17024. LIBS=$ac_check_lib_save_LIBS
  17025. fi
  17026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17027. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17028. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17029. have_xinput_lib=yes
  17030. fi
  17031. if test x$have_xinput_lib = xyes ; then
  17032. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17033. definitely_enable_video_x11_xinput=yes
  17034. fi
  17035. fi
  17036. fi
  17037. fi
  17038. if test x$definitely_enable_video_x11_xinput = xyes; then
  17039. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17041. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17042. have_xinput2_multitouch=no
  17043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17044. /* end confdefs.h. */
  17045. #include <X11/Xlib.h>
  17046. #include <X11/Xproto.h>
  17047. #include <X11/extensions/XInput2.h>
  17048. int
  17049. main ()
  17050. {
  17051. int event_type = XI_TouchBegin;
  17052. XITouchClassInfo *t;
  17053. Status
  17054. XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f)
  17055. {
  17056. return (Status)0;
  17057. }
  17058. ;
  17059. return 0;
  17060. }
  17061. _ACEOF
  17062. if ac_fn_c_try_compile "$LINENO"; then :
  17063. have_xinput2_multitouch=yes
  17064. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17065. fi
  17066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17068. $as_echo "$have_xinput2_multitouch" >&6; }
  17069. fi
  17070. # Check whether --enable-video-x11-xrandr was given.
  17071. if test "${enable_video_x11_xrandr+set}" = set; then :
  17072. enableval=$enable_video_x11_xrandr;
  17073. else
  17074. enable_video_x11_xrandr=yes
  17075. fi
  17076. if test x$enable_video_x11_xrandr = xyes; then
  17077. definitely_enable_video_x11_xrandr=no
  17078. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "#include <X11/Xlib.h>
  17079. "
  17080. if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then :
  17081. have_xrandr_h_hdr=yes
  17082. else
  17083. have_xrandr_h_hdr=no
  17084. fi
  17085. if test x$have_xrandr_h_hdr = xyes; then
  17086. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17087. echo "-- dynamic libXrandr -> $xrandr_lib"
  17088. cat >>confdefs.h <<_ACEOF
  17089. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17090. _ACEOF
  17091. definitely_enable_video_x11_xrandr=yes
  17092. else
  17093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17094. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17095. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17096. $as_echo_n "(cached) " >&6
  17097. else
  17098. ac_check_lib_save_LIBS=$LIBS
  17099. LIBS="-lXrandr $LIBS"
  17100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17101. /* end confdefs.h. */
  17102. /* Override any GCC internal prototype to avoid an error.
  17103. Use char because int might match the return type of a GCC
  17104. builtin and then its argument prototype would still apply. */
  17105. #ifdef __cplusplus
  17106. extern "C"
  17107. #endif
  17108. char XRRQueryExtension ();
  17109. int
  17110. main ()
  17111. {
  17112. return XRRQueryExtension ();
  17113. ;
  17114. return 0;
  17115. }
  17116. _ACEOF
  17117. if ac_fn_c_try_link "$LINENO"; then :
  17118. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17119. else
  17120. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17121. fi
  17122. rm -f core conftest.err conftest.$ac_objext \
  17123. conftest$ac_exeext conftest.$ac_ext
  17124. LIBS=$ac_check_lib_save_LIBS
  17125. fi
  17126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17127. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17128. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17129. have_xrandr_lib=yes
  17130. fi
  17131. if test x$have_xrandr_lib = xyes ; then
  17132. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17133. definitely_enable_video_x11_xrandr=yes
  17134. fi
  17135. fi
  17136. fi
  17137. fi
  17138. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17139. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17140. fi
  17141. # Check whether --enable-video-x11-scrnsaver was given.
  17142. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17143. enableval=$enable_video_x11_scrnsaver;
  17144. else
  17145. enable_video_x11_scrnsaver=yes
  17146. fi
  17147. if test x$enable_video_x11_scrnsaver = xyes; then
  17148. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17149. "
  17150. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17151. have_scrnsaver_h_hdr=yes
  17152. else
  17153. have_scrnsaver_h_hdr=no
  17154. fi
  17155. if test x$have_scrnsaver_h_hdr = xyes; then
  17156. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17157. echo "-- dynamic libXss -> $xss_lib"
  17158. cat >>confdefs.h <<_ACEOF
  17159. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17160. _ACEOF
  17161. definitely_enable_video_x11_scrnsaver=yes
  17162. else
  17163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17164. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17165. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17166. $as_echo_n "(cached) " >&6
  17167. else
  17168. ac_check_lib_save_LIBS=$LIBS
  17169. LIBS="-lXss $LIBS"
  17170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17171. /* end confdefs.h. */
  17172. /* Override any GCC internal prototype to avoid an error.
  17173. Use char because int might match the return type of a GCC
  17174. builtin and then its argument prototype would still apply. */
  17175. #ifdef __cplusplus
  17176. extern "C"
  17177. #endif
  17178. char XScreenSaverSuspend ();
  17179. int
  17180. main ()
  17181. {
  17182. return XScreenSaverSuspend ();
  17183. ;
  17184. return 0;
  17185. }
  17186. _ACEOF
  17187. if ac_fn_c_try_link "$LINENO"; then :
  17188. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17189. else
  17190. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17191. fi
  17192. rm -f core conftest.err conftest.$ac_objext \
  17193. conftest$ac_exeext conftest.$ac_ext
  17194. LIBS=$ac_check_lib_save_LIBS
  17195. fi
  17196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17197. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17198. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17199. have_xss_lib=yes
  17200. fi
  17201. if test x$have_xss_lib = xyes ; then
  17202. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17203. definitely_enable_video_x11_scrnsaver=yes
  17204. fi
  17205. fi
  17206. fi
  17207. fi
  17208. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17209. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17210. fi
  17211. # Check whether --enable-video-x11-xshape was given.
  17212. if test "${enable_video_x11_xshape+set}" = set; then :
  17213. enableval=$enable_video_x11_xshape;
  17214. else
  17215. enable_video_x11_xshape=yes
  17216. fi
  17217. if test x$enable_video_x11_xshape = xyes; then
  17218. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17219. "
  17220. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17221. have_shape_h_hdr=yes
  17222. else
  17223. have_shape_h_hdr=no
  17224. fi
  17225. if test x$have_shape_h_hdr = xyes; then
  17226. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17227. fi
  17228. fi
  17229. # Check whether --enable-video-x11-vm was given.
  17230. if test "${enable_video_x11_vm+set}" = set; then :
  17231. enableval=$enable_video_x11_vm;
  17232. else
  17233. enable_video_x11_vm=yes
  17234. fi
  17235. if test x$enable_video_x11_vm = xyes; then
  17236. definitely_enable_video_x11_vm=no
  17237. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17238. "
  17239. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17240. have_vm_h_hdr=yes
  17241. else
  17242. have_vm_h_hdr=no
  17243. fi
  17244. if test x$have_vm_h_hdr = xyes; then
  17245. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17246. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17247. cat >>confdefs.h <<_ACEOF
  17248. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17249. _ACEOF
  17250. definitely_enable_video_x11_vm=yes
  17251. else
  17252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17253. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17254. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17255. $as_echo_n "(cached) " >&6
  17256. else
  17257. ac_check_lib_save_LIBS=$LIBS
  17258. LIBS="-lXxf86vm $LIBS"
  17259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17260. /* end confdefs.h. */
  17261. /* Override any GCC internal prototype to avoid an error.
  17262. Use char because int might match the return type of a GCC
  17263. builtin and then its argument prototype would still apply. */
  17264. #ifdef __cplusplus
  17265. extern "C"
  17266. #endif
  17267. char XF86VidModeQueryVersion ();
  17268. int
  17269. main ()
  17270. {
  17271. return XF86VidModeQueryVersion ();
  17272. ;
  17273. return 0;
  17274. }
  17275. _ACEOF
  17276. if ac_fn_c_try_link "$LINENO"; then :
  17277. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17278. else
  17279. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17280. fi
  17281. rm -f core conftest.err conftest.$ac_objext \
  17282. conftest$ac_exeext conftest.$ac_ext
  17283. LIBS=$ac_check_lib_save_LIBS
  17284. fi
  17285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17286. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17287. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17288. have_vm_lib=yes
  17289. fi
  17290. if test x$have_vm_lib = xyes ; then
  17291. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17292. definitely_enable_video_x11_vm=yes
  17293. fi
  17294. fi
  17295. fi
  17296. fi
  17297. if test x$definitely_enable_video_x11_vm = xyes; then
  17298. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17299. fi
  17300. fi
  17301. fi
  17302. }
  17303. CheckBWINDOW()
  17304. {
  17305. if test x$enable_video = xyes; then
  17306. $as_echo "#define SDL_VIDEO_DRIVER_BWINDOW 1" >>confdefs.h
  17307. SOURCES="$SOURCES $srcdir/src/video/bwindow/*.cc"
  17308. have_video=yes
  17309. fi
  17310. }
  17311. CheckCOCOA()
  17312. {
  17313. # Check whether --enable-video-cocoa was given.
  17314. if test "${enable_video_cocoa+set}" = set; then :
  17315. enableval=$enable_video_cocoa;
  17316. else
  17317. enable_video_cocoa=yes
  17318. fi
  17319. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17320. save_CFLAGS="$CFLAGS"
  17321. CFLAGS="$CFLAGS -x objective-c"
  17322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17323. $as_echo_n "checking for Cocoa framework... " >&6; }
  17324. have_cocoa=no
  17325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17326. /* end confdefs.h. */
  17327. #import <Cocoa/Cocoa.h>
  17328. int
  17329. main ()
  17330. {
  17331. ;
  17332. return 0;
  17333. }
  17334. _ACEOF
  17335. if ac_fn_c_try_compile "$LINENO"; then :
  17336. have_cocoa=yes
  17337. fi
  17338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17340. $as_echo "$have_cocoa" >&6; }
  17341. CFLAGS="$save_CFLAGS"
  17342. if test x$have_cocoa = xyes; then
  17343. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17344. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17345. have_video=yes
  17346. fi
  17347. fi
  17348. }
  17349. CheckDirectFB()
  17350. {
  17351. # Check whether --enable-video-directfb was given.
  17352. if test "${enable_video_directfb+set}" = set; then :
  17353. enableval=$enable_video_directfb;
  17354. else
  17355. enable_video_directfb=no
  17356. fi
  17357. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17358. video_directfb=no
  17359. DIRECTFB_REQUIRED_VERSION=1.0.0
  17360. for ac_prog in directfb-config
  17361. do
  17362. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17363. set dummy $ac_prog; ac_word=$2
  17364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17365. $as_echo_n "checking for $ac_word... " >&6; }
  17366. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17367. $as_echo_n "(cached) " >&6
  17368. else
  17369. case $DIRECTFBCONFIG in
  17370. [\\/]* | ?:[\\/]*)
  17371. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17372. ;;
  17373. *)
  17374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17375. as_dummy="$prefix/bin:$PATH"
  17376. for as_dir in $as_dummy
  17377. do
  17378. IFS=$as_save_IFS
  17379. test -z "$as_dir" && as_dir=.
  17380. for ac_exec_ext in '' $ac_executable_extensions; do
  17381. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17382. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17384. break 2
  17385. fi
  17386. done
  17387. done
  17388. IFS=$as_save_IFS
  17389. ;;
  17390. esac
  17391. fi
  17392. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17393. if test -n "$DIRECTFBCONFIG"; then
  17394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17395. $as_echo "$DIRECTFBCONFIG" >&6; }
  17396. else
  17397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17398. $as_echo "no" >&6; }
  17399. fi
  17400. test -n "$DIRECTFBCONFIG" && break
  17401. done
  17402. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17403. if test x$DIRECTFBCONFIG = xno; then
  17404. # Extract the first word of "pkg-config", so it can be a program name with args.
  17405. set dummy pkg-config; ac_word=$2
  17406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17407. $as_echo_n "checking for $ac_word... " >&6; }
  17408. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17409. $as_echo_n "(cached) " >&6
  17410. else
  17411. case $PKG_CONFIG in
  17412. [\\/]* | ?:[\\/]*)
  17413. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17414. ;;
  17415. *)
  17416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17417. for as_dir in $PATH
  17418. do
  17419. IFS=$as_save_IFS
  17420. test -z "$as_dir" && as_dir=.
  17421. for ac_exec_ext in '' $ac_executable_extensions; do
  17422. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17423. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17424. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17425. break 2
  17426. fi
  17427. done
  17428. done
  17429. IFS=$as_save_IFS
  17430. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17431. ;;
  17432. esac
  17433. fi
  17434. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17435. if test -n "$PKG_CONFIG"; then
  17436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17437. $as_echo "$PKG_CONFIG" >&6; }
  17438. else
  17439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17440. $as_echo "no" >&6; }
  17441. fi
  17442. if test x$PKG_CONFIG != xno; then
  17443. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17444. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17445. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17446. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17447. video_directfb=yes
  17448. fi
  17449. fi
  17450. else
  17451. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17452. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17453. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17454. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17455. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17456. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17457. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17458. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17459. video_directfb=yes
  17460. fi
  17461. fi
  17462. if test x$video_directfb = xyes; then
  17463. # SuSE 11.1 installs directfb-config without directfb-devel
  17464. save_CPPFLAGS="$CPPFLAGS"
  17465. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17466. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17467. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17468. have_directfb_hdr=yes
  17469. else
  17470. have_directfb_hdr=no
  17471. fi
  17472. CPPFLAGS="$save_CPPFLAGS"
  17473. video_directfb=$have_directfb_hdr
  17474. fi
  17475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17476. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17478. $as_echo "$video_directfb" >&6; }
  17479. if test x$video_directfb = xyes; then
  17480. # Check whether --enable-directfb-shared was given.
  17481. if test "${enable_directfb_shared+set}" = set; then :
  17482. enableval=$enable_directfb_shared;
  17483. else
  17484. enable_directfb_shared=yes
  17485. fi
  17486. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17487. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17488. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17489. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17491. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17492. directfb_shared=no
  17493. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17494. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17496. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17497. if test x$have_loadso != xyes && \
  17498. test x$enable_directfb_shared = xyes; then
  17499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17500. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17501. fi
  17502. if test x$have_loadso = xyes && \
  17503. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17504. directfb_shared=yes
  17505. echo "-- $directfb_lib_spec -> $directfb_lib"
  17506. cat >>confdefs.h <<_ACEOF
  17507. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17508. _ACEOF
  17509. else
  17510. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17511. fi
  17512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17513. $as_echo "$directfb_shared" >&6; }
  17514. have_video=yes
  17515. fi
  17516. fi
  17517. }
  17518. CheckFusionSound()
  17519. {
  17520. # Check whether --enable-fusionsound was given.
  17521. if test "${enable_fusionsound+set}" = set; then :
  17522. enableval=$enable_fusionsound;
  17523. else
  17524. enable_fusionsound=no
  17525. fi
  17526. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17527. fusionsound=no
  17528. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  17529. # Extract the first word of "pkg-config", so it can be a program name with args.
  17530. set dummy pkg-config; ac_word=$2
  17531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17532. $as_echo_n "checking for $ac_word... " >&6; }
  17533. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17534. $as_echo_n "(cached) " >&6
  17535. else
  17536. case $PKG_CONFIG in
  17537. [\\/]* | ?:[\\/]*)
  17538. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17539. ;;
  17540. *)
  17541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17542. for as_dir in $PATH
  17543. do
  17544. IFS=$as_save_IFS
  17545. test -z "$as_dir" && as_dir=.
  17546. for ac_exec_ext in '' $ac_executable_extensions; do
  17547. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17548. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17550. break 2
  17551. fi
  17552. done
  17553. done
  17554. IFS=$as_save_IFS
  17555. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17556. ;;
  17557. esac
  17558. fi
  17559. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17560. if test -n "$PKG_CONFIG"; then
  17561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17562. $as_echo "$PKG_CONFIG" >&6; }
  17563. else
  17564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17565. $as_echo "no" >&6; }
  17566. fi
  17567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  17568. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  17569. if test x$PKG_CONFIG != xno; then
  17570. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  17571. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  17572. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  17573. fusionsound=yes
  17574. fi
  17575. fi
  17576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  17577. $as_echo "$fusionsound" >&6; }
  17578. if test x$fusionsound = xyes; then
  17579. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17580. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17581. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17582. # Check whether --enable-fusionsound-shared was given.
  17583. if test "${enable_fusionsound_shared+set}" = set; then :
  17584. enableval=$enable_fusionsound_shared;
  17585. else
  17586. enable_fusionsound_shared=yes
  17587. fi
  17588. fusionsound_shared=no
  17589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17590. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17591. if test x$have_loadso != xyes && \
  17592. test x$enable_fusionsound_shared = xyes; then
  17593. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17594. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17595. fi
  17596. if test x$have_loadso = xyes && \
  17597. test x$enable_fusionsound_shared = xyes; then
  17598. cat >>confdefs.h <<_ACEOF
  17599. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17600. _ACEOF
  17601. fusionsound_shared=yes
  17602. else
  17603. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17604. fi
  17605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17606. $as_echo "$fusionsound_shared" >&6; }
  17607. have_audio=yes
  17608. fi
  17609. fi
  17610. }
  17611. CheckDummyVideo()
  17612. {
  17613. # Check whether --enable-video-dummy was given.
  17614. if test "${enable_video_dummy+set}" = set; then :
  17615. enableval=$enable_video_dummy;
  17616. else
  17617. enable_video_dummy=yes
  17618. fi
  17619. if test x$enable_video_dummy = xyes; then
  17620. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  17621. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  17622. have_video=yes
  17623. fi
  17624. }
  17625. # Check whether --enable-video-opengl was given.
  17626. if test "${enable_video_opengl+set}" = set; then :
  17627. enableval=$enable_video_opengl;
  17628. else
  17629. enable_video_opengl=yes
  17630. fi
  17631. CheckOpenGLX11()
  17632. {
  17633. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  17635. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  17636. video_opengl=no
  17637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17638. /* end confdefs.h. */
  17639. #include <GL/gl.h>
  17640. #include <GL/glx.h>
  17641. int
  17642. main ()
  17643. {
  17644. ;
  17645. return 0;
  17646. }
  17647. _ACEOF
  17648. if ac_fn_c_try_compile "$LINENO"; then :
  17649. video_opengl=yes
  17650. fi
  17651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  17653. $as_echo "$video_opengl" >&6; }
  17654. if test x$video_opengl = xyes; then
  17655. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17656. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  17657. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17658. fi
  17659. fi
  17660. }
  17661. # Check whether --enable-video-opengles was given.
  17662. if test "${enable_video_opengles+set}" = set; then :
  17663. enableval=$enable_video_opengles;
  17664. else
  17665. enable_video_opengles=yes
  17666. fi
  17667. CheckOpenGLESX11()
  17668. {
  17669. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  17670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  17671. $as_echo_n "checking for EGL support... " >&6; }
  17672. video_opengl_egl=no
  17673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17674. /* end confdefs.h. */
  17675. #include <EGL/egl.h>
  17676. int
  17677. main ()
  17678. {
  17679. ;
  17680. return 0;
  17681. }
  17682. _ACEOF
  17683. if ac_fn_c_try_compile "$LINENO"; then :
  17684. video_opengl_egl=yes
  17685. fi
  17686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  17688. $as_echo "$video_opengl_egl" >&6; }
  17689. if test x$video_opengl_egl = xyes; then
  17690. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  17691. fi
  17692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  17693. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  17694. video_opengles_v1=no
  17695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17696. /* end confdefs.h. */
  17697. #include <GLES/gl.h>
  17698. #include <GLES/glext.h>
  17699. int
  17700. main ()
  17701. {
  17702. ;
  17703. return 0;
  17704. }
  17705. _ACEOF
  17706. if ac_fn_c_try_compile "$LINENO"; then :
  17707. video_opengles_v1=yes
  17708. fi
  17709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  17711. $as_echo "$video_opengles_v1" >&6; }
  17712. if test x$video_opengles_v1 = xyes; then
  17713. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  17714. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  17715. fi
  17716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  17717. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  17718. video_opengles_v2=no
  17719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17720. /* end confdefs.h. */
  17721. #include <GLES2/gl2.h>
  17722. #include <GLES2/gl2ext.h>
  17723. int
  17724. main ()
  17725. {
  17726. ;
  17727. return 0;
  17728. }
  17729. _ACEOF
  17730. if ac_fn_c_try_compile "$LINENO"; then :
  17731. video_opengles_v2=yes
  17732. fi
  17733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  17735. $as_echo "$video_opengles_v2" >&6; }
  17736. if test x$video_opengles_v2 = xyes; then
  17737. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17738. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17739. fi
  17740. fi
  17741. }
  17742. CheckWINDOWSGL()
  17743. {
  17744. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17745. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17746. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  17747. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17748. fi
  17749. }
  17750. CheckBeGL()
  17751. {
  17752. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17753. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17754. $as_echo "#define SDL_VIDEO_OPENGL_BGL 1" >>confdefs.h
  17755. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17756. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  17757. fi
  17758. }
  17759. CheckMacGL()
  17760. {
  17761. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17762. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17763. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  17764. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17765. case "$host" in
  17766. *-*-darwin*)
  17767. if test x$enable_video_cocoa = xyes; then
  17768. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
  17769. fi
  17770. esac
  17771. fi
  17772. }
  17773. CheckInputEvents()
  17774. {
  17775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  17776. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  17777. use_input_events=no
  17778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17779. /* end confdefs.h. */
  17780. #include <linux/input.h>
  17781. int
  17782. main ()
  17783. {
  17784. #ifndef EVIOCGNAME
  17785. #error EVIOCGNAME() ioctl not available
  17786. #endif
  17787. ;
  17788. return 0;
  17789. }
  17790. _ACEOF
  17791. if ac_fn_c_try_compile "$LINENO"; then :
  17792. use_input_events=yes
  17793. fi
  17794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  17796. $as_echo "$use_input_events" >&6; }
  17797. if test x$use_input_events = xyes; then
  17798. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  17799. fi
  17800. }
  17801. CheckInputKD()
  17802. {
  17803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  17804. $as_echo_n "checking for Linux kd.h... " >&6; }
  17805. use_input_kd=no
  17806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17807. /* end confdefs.h. */
  17808. #include <linux/kd.h>
  17809. #include <linux/keyboard.h>
  17810. int
  17811. main ()
  17812. {
  17813. struct kbentry kbe;
  17814. kbe.kb_table = KG_CTRL;
  17815. ioctl(0, KDGKBENT, &kbe);
  17816. ;
  17817. return 0;
  17818. }
  17819. _ACEOF
  17820. if ac_fn_c_try_compile "$LINENO"; then :
  17821. use_input_kd=yes
  17822. fi
  17823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  17825. $as_echo "$use_input_kd" >&6; }
  17826. if test x$use_input_kd = xyes; then
  17827. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  17828. fi
  17829. }
  17830. CheckLibUDev()
  17831. {
  17832. # Check whether --enable-libudev was given.
  17833. if test "${enable_libudev+set}" = set; then :
  17834. enableval=$enable_libudev;
  17835. else
  17836. enable_libudev=yes
  17837. fi
  17838. if test x$enable_libudev = xyes; then
  17839. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  17840. if test "x$ac_cv_header_libudev_h" = xyes; then :
  17841. have_libudev_h_hdr=yes
  17842. else
  17843. have_libudev_h_hdr=no
  17844. fi
  17845. if test x$have_libudev_h_hdr = xyes; then
  17846. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  17847. fi
  17848. fi
  17849. }
  17850. CheckDBus()
  17851. {
  17852. # Check whether --enable-dbus was given.
  17853. if test "${enable_dbus+set}" = set; then :
  17854. enableval=$enable_dbus;
  17855. else
  17856. enable_dbus=yes
  17857. fi
  17858. if test x$enable_dbus = xyes; then
  17859. # Extract the first word of "pkg-config", so it can be a program name with args.
  17860. set dummy pkg-config; ac_word=$2
  17861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17862. $as_echo_n "checking for $ac_word... " >&6; }
  17863. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17864. $as_echo_n "(cached) " >&6
  17865. else
  17866. case $PKG_CONFIG in
  17867. [\\/]* | ?:[\\/]*)
  17868. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17869. ;;
  17870. *)
  17871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17872. for as_dir in $PATH
  17873. do
  17874. IFS=$as_save_IFS
  17875. test -z "$as_dir" && as_dir=.
  17876. for ac_exec_ext in '' $ac_executable_extensions; do
  17877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17878. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17880. break 2
  17881. fi
  17882. done
  17883. done
  17884. IFS=$as_save_IFS
  17885. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17886. ;;
  17887. esac
  17888. fi
  17889. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17890. if test -n "$PKG_CONFIG"; then
  17891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17892. $as_echo "$PKG_CONFIG" >&6; }
  17893. else
  17894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17895. $as_echo "no" >&6; }
  17896. fi
  17897. if test x$PKG_CONFIG != xno; then
  17898. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  17899. save_CFLAGS="$CFLAGS"
  17900. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  17901. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  17902. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  17903. have_dbus_dbus_h_hdr=yes
  17904. else
  17905. have_dbus_dbus_h_hdr=no
  17906. fi
  17907. CFLAGS="$save_CFLAGS"
  17908. if test x$have_dbus_dbus_h_hdr = xyes; then
  17909. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  17910. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  17911. fi
  17912. fi
  17913. fi
  17914. }
  17915. CheckTslib()
  17916. {
  17917. # Check whether --enable-input-tslib was given.
  17918. if test "${enable_input_tslib+set}" = set; then :
  17919. enableval=$enable_input_tslib;
  17920. else
  17921. enable_input_tslib=yes
  17922. fi
  17923. if test x$enable_input_tslib = xyes; then
  17924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  17925. $as_echo_n "checking for Touchscreen library support... " >&6; }
  17926. enable_input_tslib=no
  17927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17928. /* end confdefs.h. */
  17929. #include "tslib.h"
  17930. int
  17931. main ()
  17932. {
  17933. ;
  17934. return 0;
  17935. }
  17936. _ACEOF
  17937. if ac_fn_c_try_compile "$LINENO"; then :
  17938. enable_input_tslib=yes
  17939. fi
  17940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  17942. $as_echo "$enable_input_tslib" >&6; }
  17943. if test x$enable_input_tslib = xyes; then
  17944. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  17945. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  17946. fi
  17947. fi
  17948. }
  17949. CheckPTHREAD()
  17950. {
  17951. # Check whether --enable-pthreads was given.
  17952. if test "${enable_pthreads+set}" = set; then :
  17953. enableval=$enable_pthreads;
  17954. else
  17955. enable_pthreads=yes
  17956. fi
  17957. # Check whether --enable-pthread-sem was given.
  17958. if test "${enable_pthread_sem+set}" = set; then :
  17959. enableval=$enable_pthread_sem;
  17960. else
  17961. enable_pthread_sem=yes
  17962. fi
  17963. case "$host" in
  17964. *-*-linux*|*-*-uclinux*)
  17965. pthread_cflags="-D_REENTRANT"
  17966. pthread_lib="-lpthread"
  17967. ;;
  17968. *-*-bsdi*)
  17969. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  17970. pthread_lib=""
  17971. ;;
  17972. *-*-darwin*)
  17973. pthread_cflags="-D_THREAD_SAFE"
  17974. # causes Carbon.p complaints?
  17975. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  17976. ;;
  17977. *-*-freebsd*|*-*-dragonfly*)
  17978. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  17979. pthread_lib="-pthread"
  17980. ;;
  17981. *-*-netbsd*)
  17982. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  17983. pthread_lib="-lpthread"
  17984. ;;
  17985. *-*-openbsd*)
  17986. pthread_cflags="-D_REENTRANT"
  17987. pthread_lib="-pthread"
  17988. ;;
  17989. *-*-solaris2.9)
  17990. # From Solaris 9+, posix4's preferred name is rt.
  17991. pthread_cflags="-D_REENTRANT"
  17992. pthread_lib="-lpthread -lrt"
  17993. ;;
  17994. *-*-solaris2.10)
  17995. # Solaris 10+ merged pthread into libc.
  17996. pthread_cflags="-D_REENTRANT"
  17997. pthread_lib="-lrt"
  17998. ;;
  17999. *-*-solaris*)
  18000. # Solaris 11+ merged rt into libc.
  18001. pthread_cflags="-D_REENTRANT"
  18002. pthread_lib=""
  18003. ;;
  18004. *-*-sysv5*)
  18005. pthread_cflags="-D_REENTRANT -Kthread"
  18006. pthread_lib=""
  18007. ;;
  18008. *-*-aix*)
  18009. pthread_cflags="-D_REENTRANT -mthreads"
  18010. pthread_lib="-lpthread"
  18011. ;;
  18012. *-*-hpux11*)
  18013. pthread_cflags="-D_REENTRANT"
  18014. pthread_lib="-L/usr/lib -lpthread"
  18015. ;;
  18016. *)
  18017. pthread_cflags="-D_REENTRANT"
  18018. pthread_lib="-lpthread"
  18019. ;;
  18020. esac
  18021. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18022. # Save the original compiler flags and libraries
  18023. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18024. # Add the pthread compiler flags and libraries
  18025. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18026. # Check to see if we have pthread support on this system
  18027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18028. $as_echo_n "checking for pthreads... " >&6; }
  18029. use_pthreads=no
  18030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18031. /* end confdefs.h. */
  18032. #include <pthread.h>
  18033. int
  18034. main ()
  18035. {
  18036. pthread_attr_t type;
  18037. pthread_attr_init(&type);
  18038. ;
  18039. return 0;
  18040. }
  18041. _ACEOF
  18042. if ac_fn_c_try_link "$LINENO"; then :
  18043. use_pthreads=yes
  18044. fi
  18045. rm -f core conftest.err conftest.$ac_objext \
  18046. conftest$ac_exeext conftest.$ac_ext
  18047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18048. $as_echo "$use_pthreads" >&6; }
  18049. # Restore the compiler flags and libraries
  18050. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18051. # Do futher testing if we have pthread support...
  18052. if test x$use_pthreads = xyes; then
  18053. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18054. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18055. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18056. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18057. SDL_LIBS="$SDL_LIBS $pthread_lib"
  18058. # Save the original compiler flags and libraries
  18059. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18060. # Add the pthread compiler flags and libraries
  18061. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18062. # Check to see if recursive mutexes are available
  18063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18064. $as_echo_n "checking for recursive mutexes... " >&6; }
  18065. has_recursive_mutexes=no
  18066. if test x$has_recursive_mutexes = xno; then
  18067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18068. /* end confdefs.h. */
  18069. #include <pthread.h>
  18070. int
  18071. main ()
  18072. {
  18073. pthread_mutexattr_t attr;
  18074. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18075. ;
  18076. return 0;
  18077. }
  18078. _ACEOF
  18079. if ac_fn_c_try_compile "$LINENO"; then :
  18080. has_recursive_mutexes=yes
  18081. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18082. fi
  18083. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18084. fi
  18085. if test x$has_recursive_mutexes = xno; then
  18086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18087. /* end confdefs.h. */
  18088. #include <pthread.h>
  18089. int
  18090. main ()
  18091. {
  18092. pthread_mutexattr_t attr;
  18093. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18094. ;
  18095. return 0;
  18096. }
  18097. _ACEOF
  18098. if ac_fn_c_try_compile "$LINENO"; then :
  18099. has_recursive_mutexes=yes
  18100. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18101. fi
  18102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18103. fi
  18104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18105. $as_echo "$has_recursive_mutexes" >&6; }
  18106. # Check to see if pthread semaphore support is missing
  18107. if test x$enable_pthread_sem = xyes; then
  18108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18109. $as_echo_n "checking for pthread semaphores... " >&6; }
  18110. have_pthread_sem=no
  18111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18112. /* end confdefs.h. */
  18113. #include <pthread.h>
  18114. #include <semaphore.h>
  18115. int
  18116. main ()
  18117. {
  18118. ;
  18119. return 0;
  18120. }
  18121. _ACEOF
  18122. if ac_fn_c_try_compile "$LINENO"; then :
  18123. have_pthread_sem=yes
  18124. fi
  18125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18127. $as_echo "$have_pthread_sem" >&6; }
  18128. fi
  18129. if test x$have_pthread_sem = xyes; then
  18130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18131. $as_echo_n "checking for sem_timedwait... " >&6; }
  18132. have_sem_timedwait=no
  18133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18134. /* end confdefs.h. */
  18135. #include <pthread.h>
  18136. #include <semaphore.h>
  18137. int
  18138. main ()
  18139. {
  18140. sem_timedwait(NULL, NULL);
  18141. ;
  18142. return 0;
  18143. }
  18144. _ACEOF
  18145. if ac_fn_c_try_link "$LINENO"; then :
  18146. have_sem_timedwait=yes
  18147. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18148. fi
  18149. rm -f core conftest.err conftest.$ac_objext \
  18150. conftest$ac_exeext conftest.$ac_ext
  18151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18152. $as_echo "$have_sem_timedwait" >&6; }
  18153. fi
  18154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_spin_trylock" >&5
  18155. $as_echo_n "checking for pthread_spin_trylock... " >&6; }
  18156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18157. /* end confdefs.h. */
  18158. /* Override any GCC internal prototype to avoid an error.
  18159. Use char because int might match the return type of a GCC
  18160. builtin and then its argument prototype would still apply. */
  18161. #ifdef __cplusplus
  18162. extern "C"
  18163. #endif
  18164. char pthread_spin_trylock ();
  18165. int
  18166. main ()
  18167. {
  18168. return pthread_spin_trylock ();
  18169. ;
  18170. return 0;
  18171. }
  18172. _ACEOF
  18173. if ac_fn_c_try_link "$LINENO"; then :
  18174. has_pthread_spin_trylock=yes
  18175. $as_echo "#define HAVE_PTHREAD_SPINLOCK 1" >>confdefs.h
  18176. else
  18177. has_pthread_spin_trylock=no
  18178. fi
  18179. rm -f core conftest.err conftest.$ac_objext \
  18180. conftest$ac_exeext conftest.$ac_ext
  18181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_spin_trylock" >&5
  18182. $as_echo "$has_pthread_spin_trylock" >&6; }
  18183. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18184. "
  18185. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18186. have_pthread_np_h=yes
  18187. else
  18188. have_pthread_np_h=no
  18189. fi
  18190. if test x$have_pthread_np_h = xyes; then
  18191. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18192. fi
  18193. # Check to see if pthread naming is available
  18194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18195. $as_echo_n "checking for pthread_setname_np... " >&6; }
  18196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18197. /* end confdefs.h. */
  18198. /* Override any GCC internal prototype to avoid an error.
  18199. Use char because int might match the return type of a GCC
  18200. builtin and then its argument prototype would still apply. */
  18201. #ifdef __cplusplus
  18202. extern "C"
  18203. #endif
  18204. char pthread_setname_np ();
  18205. int
  18206. main ()
  18207. {
  18208. return pthread_setname_np ();
  18209. ;
  18210. return 0;
  18211. }
  18212. _ACEOF
  18213. if ac_fn_c_try_link "$LINENO"; then :
  18214. has_pthread_setname_np=yes
  18215. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18216. else
  18217. has_pthread_setname_np=no
  18218. fi
  18219. rm -f core conftest.err conftest.$ac_objext \
  18220. conftest$ac_exeext conftest.$ac_ext
  18221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  18222. $as_echo "$has_pthread_setname_np" >&6; }
  18223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  18224. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  18225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18226. /* end confdefs.h. */
  18227. /* Override any GCC internal prototype to avoid an error.
  18228. Use char because int might match the return type of a GCC
  18229. builtin and then its argument prototype would still apply. */
  18230. #ifdef __cplusplus
  18231. extern "C"
  18232. #endif
  18233. char pthread_set_name_np ();
  18234. int
  18235. main ()
  18236. {
  18237. return pthread_set_name_np ();
  18238. ;
  18239. return 0;
  18240. }
  18241. _ACEOF
  18242. if ac_fn_c_try_link "$LINENO"; then :
  18243. has_pthread_set_name_np=yes
  18244. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  18245. else
  18246. has_pthread_set_name_np=no
  18247. fi
  18248. rm -f core conftest.err conftest.$ac_objext \
  18249. conftest$ac_exeext conftest.$ac_ext
  18250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  18251. $as_echo "$has_pthread_set_name_np" >&6; }
  18252. # Restore the compiler flags and libraries
  18253. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18254. # Basic thread creation functions
  18255. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  18256. # Semaphores
  18257. # We can fake these with mutexes and condition variables if necessary
  18258. if test x$have_pthread_sem = xyes; then
  18259. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  18260. else
  18261. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  18262. fi
  18263. # Mutexes
  18264. # We can fake these with semaphores if necessary
  18265. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  18266. # Condition variables
  18267. # We can fake these with semaphores and mutexes if necessary
  18268. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  18269. # Thread local storage
  18270. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  18271. have_threads=yes
  18272. fi
  18273. fi
  18274. }
  18275. CheckWINDOWS()
  18276. {
  18277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  18278. $as_echo_n "checking Windows compiler... " >&6; }
  18279. have_win32_gcc=no
  18280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18281. /* end confdefs.h. */
  18282. #include <windows.h>
  18283. int
  18284. main ()
  18285. {
  18286. ;
  18287. return 0;
  18288. }
  18289. _ACEOF
  18290. if ac_fn_c_try_compile "$LINENO"; then :
  18291. have_win32_gcc=yes
  18292. fi
  18293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  18295. $as_echo "$have_win32_gcc" >&6; }
  18296. if test x$have_win32_gcc != xyes; then
  18297. as_fn_error $? "
  18298. *** Your compiler ($CC) does not produce Windows executables!
  18299. " "$LINENO" 5
  18300. fi
  18301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  18302. $as_echo_n "checking Windows CE... " >&6; }
  18303. have_wince=no
  18304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18305. /* end confdefs.h. */
  18306. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  18307. #error This is not Windows CE
  18308. #endif
  18309. int
  18310. main ()
  18311. {
  18312. ;
  18313. return 0;
  18314. }
  18315. _ACEOF
  18316. if ac_fn_c_try_compile "$LINENO"; then :
  18317. have_wince=yes
  18318. as_fn_error $? "
  18319. *** Sorry, Windows CE is no longer supported.
  18320. " "$LINENO" 5
  18321. fi
  18322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  18324. $as_echo "$have_wince" >&6; }
  18325. # This fixes Windows stack alignment with newer GCC
  18326. CheckStackBoundary
  18327. }
  18328. CheckDIRECTX()
  18329. {
  18330. # Check whether --enable-directx was given.
  18331. if test "${enable_directx+set}" = set; then :
  18332. enableval=$enable_directx;
  18333. else
  18334. enable_directx=yes
  18335. fi
  18336. if test x$enable_directx = xyes; then
  18337. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  18338. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  18339. have_d3d=yes
  18340. fi
  18341. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  18342. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  18343. have_ddraw=yes
  18344. fi
  18345. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  18346. if test "x$ac_cv_header_dsound_h" = xyes; then :
  18347. have_dsound=yes
  18348. fi
  18349. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  18350. if test "x$ac_cv_header_dinput_h" = xyes; then :
  18351. have_dinput=yes
  18352. fi
  18353. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  18354. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  18355. have_xaudio2=yes
  18356. fi
  18357. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  18358. # FIXME: ...so force it off for now.
  18359. case "$host" in
  18360. *-*-cygwin*)
  18361. have_dinput=false
  18362. ;;
  18363. esac
  18364. fi
  18365. }
  18366. CheckDLOPEN()
  18367. {
  18368. # Check whether --enable-sdl-dlopen was given.
  18369. if test "${enable_sdl_dlopen+set}" = set; then :
  18370. enableval=$enable_sdl_dlopen;
  18371. else
  18372. enable_sdl_dlopen=yes
  18373. fi
  18374. if test x$enable_sdl_dlopen = xyes; then
  18375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  18376. $as_echo_n "checking for dlopen... " >&6; }
  18377. have_dlopen=no
  18378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18379. /* end confdefs.h. */
  18380. #include <dlfcn.h>
  18381. int
  18382. main ()
  18383. {
  18384. void *handle = dlopen("", RTLD_NOW);
  18385. const char *loaderror = (char *) dlerror();
  18386. ;
  18387. return 0;
  18388. }
  18389. _ACEOF
  18390. if ac_fn_c_try_compile "$LINENO"; then :
  18391. have_dlopen=yes
  18392. fi
  18393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  18395. $as_echo "$have_dlopen" >&6; }
  18396. if test x$have_dlopen = xyes; then
  18397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  18398. $as_echo_n "checking for dlopen in -lc... " >&6; }
  18399. if ${ac_cv_lib_c_dlopen+:} false; then :
  18400. $as_echo_n "(cached) " >&6
  18401. else
  18402. ac_check_lib_save_LIBS=$LIBS
  18403. LIBS="-lc $LIBS"
  18404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18405. /* end confdefs.h. */
  18406. /* Override any GCC internal prototype to avoid an error.
  18407. Use char because int might match the return type of a GCC
  18408. builtin and then its argument prototype would still apply. */
  18409. #ifdef __cplusplus
  18410. extern "C"
  18411. #endif
  18412. char dlopen ();
  18413. int
  18414. main ()
  18415. {
  18416. return dlopen ();
  18417. ;
  18418. return 0;
  18419. }
  18420. _ACEOF
  18421. if ac_fn_c_try_link "$LINENO"; then :
  18422. ac_cv_lib_c_dlopen=yes
  18423. else
  18424. ac_cv_lib_c_dlopen=no
  18425. fi
  18426. rm -f core conftest.err conftest.$ac_objext \
  18427. conftest$ac_exeext conftest.$ac_ext
  18428. LIBS=$ac_check_lib_save_LIBS
  18429. fi
  18430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  18431. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  18432. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  18433. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  18434. else
  18435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  18436. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  18437. if ${ac_cv_lib_dl_dlopen+:} false; then :
  18438. $as_echo_n "(cached) " >&6
  18439. else
  18440. ac_check_lib_save_LIBS=$LIBS
  18441. LIBS="-ldl $LIBS"
  18442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18443. /* end confdefs.h. */
  18444. /* Override any GCC internal prototype to avoid an error.
  18445. Use char because int might match the return type of a GCC
  18446. builtin and then its argument prototype would still apply. */
  18447. #ifdef __cplusplus
  18448. extern "C"
  18449. #endif
  18450. char dlopen ();
  18451. int
  18452. main ()
  18453. {
  18454. return dlopen ();
  18455. ;
  18456. return 0;
  18457. }
  18458. _ACEOF
  18459. if ac_fn_c_try_link "$LINENO"; then :
  18460. ac_cv_lib_dl_dlopen=yes
  18461. else
  18462. ac_cv_lib_dl_dlopen=no
  18463. fi
  18464. rm -f core conftest.err conftest.$ac_objext \
  18465. conftest$ac_exeext conftest.$ac_ext
  18466. LIBS=$ac_check_lib_save_LIBS
  18467. fi
  18468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  18469. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  18470. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  18471. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  18472. else
  18473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  18474. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  18475. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  18476. $as_echo_n "(cached) " >&6
  18477. else
  18478. ac_check_lib_save_LIBS=$LIBS
  18479. LIBS="-lltdl $LIBS"
  18480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18481. /* end confdefs.h. */
  18482. /* Override any GCC internal prototype to avoid an error.
  18483. Use char because int might match the return type of a GCC
  18484. builtin and then its argument prototype would still apply. */
  18485. #ifdef __cplusplus
  18486. extern "C"
  18487. #endif
  18488. char dlopen ();
  18489. int
  18490. main ()
  18491. {
  18492. return dlopen ();
  18493. ;
  18494. return 0;
  18495. }
  18496. _ACEOF
  18497. if ac_fn_c_try_link "$LINENO"; then :
  18498. ac_cv_lib_ltdl_dlopen=yes
  18499. else
  18500. ac_cv_lib_ltdl_dlopen=no
  18501. fi
  18502. rm -f core conftest.err conftest.$ac_objext \
  18503. conftest$ac_exeext conftest.$ac_ext
  18504. LIBS=$ac_check_lib_save_LIBS
  18505. fi
  18506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  18507. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  18508. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  18509. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  18510. fi
  18511. fi
  18512. fi
  18513. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  18514. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  18515. have_loadso=yes
  18516. fi
  18517. fi
  18518. }
  18519. CheckUSBHID()
  18520. {
  18521. case "$host" in
  18522. *-*-*bsd*)
  18523. if test x$enable_joystick = xyes; then
  18524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  18525. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  18526. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  18527. $as_echo_n "(cached) " >&6
  18528. else
  18529. ac_check_lib_save_LIBS=$LIBS
  18530. LIBS="-lusbhid $LIBS"
  18531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18532. /* end confdefs.h. */
  18533. /* Override any GCC internal prototype to avoid an error.
  18534. Use char because int might match the return type of a GCC
  18535. builtin and then its argument prototype would still apply. */
  18536. #ifdef __cplusplus
  18537. extern "C"
  18538. #endif
  18539. char hid_init ();
  18540. int
  18541. main ()
  18542. {
  18543. return hid_init ();
  18544. ;
  18545. return 0;
  18546. }
  18547. _ACEOF
  18548. if ac_fn_c_try_link "$LINENO"; then :
  18549. ac_cv_lib_usbhid_hid_init=yes
  18550. else
  18551. ac_cv_lib_usbhid_hid_init=no
  18552. fi
  18553. rm -f core conftest.err conftest.$ac_objext \
  18554. conftest$ac_exeext conftest.$ac_ext
  18555. LIBS=$ac_check_lib_save_LIBS
  18556. fi
  18557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  18558. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  18559. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  18560. have_libusbhid=yes
  18561. fi
  18562. if test x$have_libusbhid = xyes; then
  18563. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  18564. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  18565. USB_CFLAGS="-DHAVE_USBHID_H"
  18566. fi
  18567. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  18568. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  18569. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  18570. fi
  18571. USB_LIBS="$USB_LIBS -lusbhid"
  18572. else
  18573. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  18574. if test "x$ac_cv_header_usb_h" = xyes; then :
  18575. USB_CFLAGS="-DHAVE_USB_H"
  18576. fi
  18577. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  18578. if test "x$ac_cv_header_libusb_h" = xyes; then :
  18579. USB_CFLAGS="-DHAVE_LIBUSB_H"
  18580. fi
  18581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  18582. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  18583. if ${ac_cv_lib_usb_hid_init+:} false; then :
  18584. $as_echo_n "(cached) " >&6
  18585. else
  18586. ac_check_lib_save_LIBS=$LIBS
  18587. LIBS="-lusb $LIBS"
  18588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18589. /* end confdefs.h. */
  18590. /* Override any GCC internal prototype to avoid an error.
  18591. Use char because int might match the return type of a GCC
  18592. builtin and then its argument prototype would still apply. */
  18593. #ifdef __cplusplus
  18594. extern "C"
  18595. #endif
  18596. char hid_init ();
  18597. int
  18598. main ()
  18599. {
  18600. return hid_init ();
  18601. ;
  18602. return 0;
  18603. }
  18604. _ACEOF
  18605. if ac_fn_c_try_link "$LINENO"; then :
  18606. ac_cv_lib_usb_hid_init=yes
  18607. else
  18608. ac_cv_lib_usb_hid_init=no
  18609. fi
  18610. rm -f core conftest.err conftest.$ac_objext \
  18611. conftest$ac_exeext conftest.$ac_ext
  18612. LIBS=$ac_check_lib_save_LIBS
  18613. fi
  18614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  18615. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  18616. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  18617. USB_LIBS="$USB_LIBS -lusb"
  18618. fi
  18619. fi
  18620. save_CFLAGS="$CFLAGS"
  18621. CFLAGS="$CFLAGS $USB_CFLAGS"
  18622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  18623. $as_echo_n "checking for usbhid... " >&6; }
  18624. have_usbhid=no
  18625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18626. /* end confdefs.h. */
  18627. #include <sys/types.h>
  18628. #if defined(HAVE_USB_H)
  18629. #include <usb.h>
  18630. #endif
  18631. #ifdef __DragonFly__
  18632. # include <bus/usb/usb.h>
  18633. # include <bus/usb/usbhid.h>
  18634. #else
  18635. # include <dev/usb/usb.h>
  18636. # include <dev/usb/usbhid.h>
  18637. #endif
  18638. #if defined(HAVE_USBHID_H)
  18639. #include <usbhid.h>
  18640. #elif defined(HAVE_LIBUSB_H)
  18641. #include <libusb.h>
  18642. #elif defined(HAVE_LIBUSBHID_H)
  18643. #include <libusbhid.h>
  18644. #endif
  18645. int
  18646. main ()
  18647. {
  18648. struct report_desc *repdesc;
  18649. struct usb_ctl_report *repbuf;
  18650. hid_kind_t hidkind;
  18651. ;
  18652. return 0;
  18653. }
  18654. _ACEOF
  18655. if ac_fn_c_try_compile "$LINENO"; then :
  18656. have_usbhid=yes
  18657. fi
  18658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  18660. $as_echo "$have_usbhid" >&6; }
  18661. if test x$have_usbhid = xyes; then
  18662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  18663. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  18664. have_usbhid_ucr_data=no
  18665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18666. /* end confdefs.h. */
  18667. #include <sys/types.h>
  18668. #if defined(HAVE_USB_H)
  18669. #include <usb.h>
  18670. #endif
  18671. #ifdef __DragonFly__
  18672. # include <bus/usb/usb.h>
  18673. # include <bus/usb/usbhid.h>
  18674. #else
  18675. # include <dev/usb/usb.h>
  18676. # include <dev/usb/usbhid.h>
  18677. #endif
  18678. #if defined(HAVE_USBHID_H)
  18679. #include <usbhid.h>
  18680. #elif defined(HAVE_LIBUSB_H)
  18681. #include <libusb.h>
  18682. #elif defined(HAVE_LIBUSBHID_H)
  18683. #include <libusbhid.h>
  18684. #endif
  18685. int
  18686. main ()
  18687. {
  18688. struct usb_ctl_report buf;
  18689. if (buf.ucr_data) { }
  18690. ;
  18691. return 0;
  18692. }
  18693. _ACEOF
  18694. if ac_fn_c_try_compile "$LINENO"; then :
  18695. have_usbhid_ucr_data=yes
  18696. fi
  18697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18698. if test x$have_usbhid_ucr_data = xyes; then
  18699. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  18700. fi
  18701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  18702. $as_echo "$have_usbhid_ucr_data" >&6; }
  18703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  18704. $as_echo_n "checking for new usbhid API... " >&6; }
  18705. have_usbhid_new=no
  18706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18707. /* end confdefs.h. */
  18708. #include <sys/types.h>
  18709. #if defined(HAVE_USB_H)
  18710. #include <usb.h>
  18711. #endif
  18712. #ifdef __DragonFly__
  18713. #include <bus/usb/usb.h>
  18714. #include <bus/usb/usbhid.h>
  18715. #else
  18716. #include <dev/usb/usb.h>
  18717. #include <dev/usb/usbhid.h>
  18718. #endif
  18719. #if defined(HAVE_USBHID_H)
  18720. #include <usbhid.h>
  18721. #elif defined(HAVE_LIBUSB_H)
  18722. #include <libusb.h>
  18723. #elif defined(HAVE_LIBUSBHID_H)
  18724. #include <libusbhid.h>
  18725. #endif
  18726. int
  18727. main ()
  18728. {
  18729. report_desc_t d;
  18730. hid_start_parse(d, 1, 1);
  18731. ;
  18732. return 0;
  18733. }
  18734. _ACEOF
  18735. if ac_fn_c_try_compile "$LINENO"; then :
  18736. have_usbhid_new=yes
  18737. fi
  18738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18739. if test x$have_usbhid_new = xyes; then
  18740. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  18741. fi
  18742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  18743. $as_echo "$have_usbhid_new" >&6; }
  18744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  18745. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  18746. have_machine_joystick=no
  18747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18748. /* end confdefs.h. */
  18749. #include <machine/joystick.h>
  18750. int
  18751. main ()
  18752. {
  18753. struct joystick t;
  18754. ;
  18755. return 0;
  18756. }
  18757. _ACEOF
  18758. if ac_fn_c_try_compile "$LINENO"; then :
  18759. have_machine_joystick=yes
  18760. fi
  18761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18762. if test x$have_machine_joystick = xyes; then
  18763. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  18764. fi
  18765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  18766. $as_echo "$have_machine_joystick" >&6; }
  18767. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  18768. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  18769. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  18770. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  18771. have_joystick=yes
  18772. fi
  18773. CFLAGS="$save_CFLAGS"
  18774. fi
  18775. ;;
  18776. esac
  18777. }
  18778. CheckClockGettime()
  18779. {
  18780. # Check whether --enable-clock_gettime was given.
  18781. if test "${enable_clock_gettime+set}" = set; then :
  18782. enableval=$enable_clock_gettime;
  18783. else
  18784. enable_clock_gettime=yes
  18785. fi
  18786. if test x$enable_clock_gettime = xyes; then
  18787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  18788. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  18789. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  18790. $as_echo_n "(cached) " >&6
  18791. else
  18792. ac_check_lib_save_LIBS=$LIBS
  18793. LIBS="-lrt $LIBS"
  18794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18795. /* end confdefs.h. */
  18796. /* Override any GCC internal prototype to avoid an error.
  18797. Use char because int might match the return type of a GCC
  18798. builtin and then its argument prototype would still apply. */
  18799. #ifdef __cplusplus
  18800. extern "C"
  18801. #endif
  18802. char clock_gettime ();
  18803. int
  18804. main ()
  18805. {
  18806. return clock_gettime ();
  18807. ;
  18808. return 0;
  18809. }
  18810. _ACEOF
  18811. if ac_fn_c_try_link "$LINENO"; then :
  18812. ac_cv_lib_rt_clock_gettime=yes
  18813. else
  18814. ac_cv_lib_rt_clock_gettime=no
  18815. fi
  18816. rm -f core conftest.err conftest.$ac_objext \
  18817. conftest$ac_exeext conftest.$ac_ext
  18818. LIBS=$ac_check_lib_save_LIBS
  18819. fi
  18820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  18821. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  18822. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  18823. have_clock_gettime=yes
  18824. fi
  18825. if test x$have_clock_gettime = xyes; then
  18826. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  18827. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  18828. else
  18829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  18830. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  18831. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  18832. $as_echo_n "(cached) " >&6
  18833. else
  18834. ac_check_lib_save_LIBS=$LIBS
  18835. LIBS="-lc $LIBS"
  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 clock_gettime ();
  18845. int
  18846. main ()
  18847. {
  18848. return clock_gettime ();
  18849. ;
  18850. return 0;
  18851. }
  18852. _ACEOF
  18853. if ac_fn_c_try_link "$LINENO"; then :
  18854. ac_cv_lib_c_clock_gettime=yes
  18855. else
  18856. ac_cv_lib_c_clock_gettime=no
  18857. fi
  18858. rm -f core conftest.err conftest.$ac_objext \
  18859. conftest$ac_exeext conftest.$ac_ext
  18860. LIBS=$ac_check_lib_save_LIBS
  18861. fi
  18862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  18863. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  18864. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  18865. have_clock_gettime=yes
  18866. fi
  18867. if test x$have_clock_gettime = xyes; then
  18868. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  18869. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  18870. fi
  18871. fi
  18872. fi
  18873. }
  18874. CheckLinuxVersion()
  18875. {
  18876. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  18877. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  18878. have_linux_version_h=yes
  18879. fi
  18880. if test x$have_linux_version_h = xyes; then
  18881. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  18882. fi
  18883. }
  18884. CheckRPATH()
  18885. {
  18886. # Check whether --enable-rpath was given.
  18887. if test "${enable_rpath+set}" = set; then :
  18888. enableval=$enable_rpath;
  18889. else
  18890. enable_rpath=yes
  18891. fi
  18892. }
  18893. case "$host" in
  18894. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  18895. case "$host" in
  18896. *-raspberry-linux*)
  18897. # Raspberry Pi
  18898. ARCH=linux
  18899. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  18900. RPI_LDFLAGS="-L/opt/vc/lib -lbcm_host"
  18901. CFLAGS="$CFLAGS $RPI_CFLAGS"
  18902. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  18903. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  18904. SDL_LIBS="$SDL_LIBS $RPI_LDFLAGS"
  18905. if test x$enable_video = xyes; then
  18906. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  18907. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  18908. fi
  18909. ;;
  18910. *-*-linux*) ARCH=linux ;;
  18911. *-*-uclinux*) ARCH=linux ;;
  18912. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  18913. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  18914. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  18915. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  18916. *-*-bsdi*) ARCH=bsdi ;;
  18917. *-*-freebsd*) ARCH=freebsd ;;
  18918. *-*-dragonfly*) ARCH=freebsd ;;
  18919. *-*-netbsd*) ARCH=netbsd ;;
  18920. *-*-openbsd*) ARCH=openbsd ;;
  18921. *-*-sysv5*) ARCH=sysv5 ;;
  18922. *-*-solaris*) ARCH=solaris ;;
  18923. *-*-hpux*) ARCH=hpux ;;
  18924. *-*-aix*) ARCH=aix ;;
  18925. *-*-minix*) ARCH=minix ;;
  18926. esac
  18927. CheckVisibilityHidden
  18928. CheckDummyVideo
  18929. CheckDiskAudio
  18930. CheckDummyAudio
  18931. CheckDLOPEN
  18932. CheckOSS
  18933. CheckALSA
  18934. CheckPulseAudio
  18935. CheckARTSC
  18936. CheckESD
  18937. CheckNAS
  18938. CheckSNDIO
  18939. CheckX11
  18940. CheckDirectFB
  18941. CheckFusionSound
  18942. CheckOpenGLX11
  18943. CheckOpenGLESX11
  18944. CheckLibUDev
  18945. CheckDBus
  18946. CheckInputEvents
  18947. CheckInputKD
  18948. CheckTslib
  18949. CheckUSBHID
  18950. CheckPTHREAD
  18951. CheckClockGettime
  18952. CheckLinuxVersion
  18953. CheckRPATH
  18954. # Set up files for the audio library
  18955. if test x$enable_audio = xyes; then
  18956. case $ARCH in
  18957. sysv5|solaris|hpux)
  18958. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  18959. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  18960. have_audio=yes
  18961. ;;
  18962. netbsd) # Don't use this on OpenBSD, it's busted.
  18963. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  18964. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  18965. have_audio=yes
  18966. ;;
  18967. aix)
  18968. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  18969. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  18970. have_audio=yes
  18971. ;;
  18972. esac
  18973. fi
  18974. # Set up files for the joystick library
  18975. if test x$enable_joystick = xyes; then
  18976. case $ARCH in
  18977. linux)
  18978. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  18979. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  18980. have_joystick=yes
  18981. ;;
  18982. esac
  18983. fi
  18984. # Set up files for the haptic library
  18985. if test x$enable_haptic = xyes; then
  18986. if test x$use_input_events = xyes; then
  18987. case $ARCH in
  18988. linux)
  18989. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  18990. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  18991. have_haptic=yes
  18992. ;;
  18993. esac
  18994. fi
  18995. fi
  18996. # Set up files for the power library
  18997. if test x$enable_power = xyes; then
  18998. case $ARCH in
  18999. linux)
  19000. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19001. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19002. have_power=yes
  19003. ;;
  19004. esac
  19005. fi
  19006. # Set up files for the filesystem library
  19007. if test x$enable_filesystem = xyes; then
  19008. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19009. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19010. have_filesystem=yes
  19011. fi
  19012. # Set up files for the timer library
  19013. if test x$enable_timers = xyes; then
  19014. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19015. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19016. have_timers=yes
  19017. fi
  19018. # Set up files for udev hotplugging support
  19019. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19020. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19021. fi
  19022. # Set up files for evdev input
  19023. if test x$use_input_events = xyes; then
  19024. SOURCES="$SOURCES $srcdir/src/input/evdev/*.c"
  19025. fi
  19026. ;;
  19027. *-*-cygwin* | *-*-mingw32*)
  19028. ARCH=win32
  19029. if test "$build" != "$host"; then # cross-compiling
  19030. # Default cross-compile location
  19031. ac_default_prefix=/usr/local/cross-tools/$host
  19032. else
  19033. # Look for the location of the tools and install there
  19034. if test "$BUILD_PREFIX" != ""; then
  19035. ac_default_prefix=$BUILD_PREFIX
  19036. fi
  19037. fi
  19038. CheckDummyVideo
  19039. CheckDiskAudio
  19040. CheckDummyAudio
  19041. CheckWINDOWS
  19042. CheckWINDOWSGL
  19043. CheckDIRECTX
  19044. # Set up the core platform files
  19045. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19046. # Set up files for the video library
  19047. if test x$enable_video = xyes; then
  19048. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19049. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19050. have_video=yes
  19051. # Check whether --enable-render-d3d was given.
  19052. if test "${enable_render_d3d+set}" = set; then :
  19053. enableval=$enable_render_d3d;
  19054. else
  19055. enable_render_d3d=yes
  19056. fi
  19057. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19058. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19059. fi
  19060. fi
  19061. # Set up files for the audio library
  19062. if test x$enable_audio = xyes; then
  19063. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19064. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19065. if test x$have_dsound = xyes; then
  19066. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19067. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19068. fi
  19069. if test x$have_xaudio2 = xyes; then
  19070. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19071. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19072. fi
  19073. have_audio=yes
  19074. fi
  19075. # Set up files for the joystick library
  19076. if test x$enable_joystick = xyes; then
  19077. if test x$have_dinput = xyes; then
  19078. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19079. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_dxjoystick.c"
  19080. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19081. else
  19082. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19083. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_mmjoystick.c"
  19084. fi
  19085. have_joystick=yes
  19086. fi
  19087. if test x$enable_haptic = xyes; then
  19088. if test x$have_dinput = xyes; then
  19089. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19090. SOURCES="$SOURCES $srcdir/src/haptic/windows/SDL_syshaptic.c"
  19091. have_haptic=yes
  19092. fi
  19093. fi
  19094. if test x$enable_power = xyes; then
  19095. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  19096. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19097. have_power=yes
  19098. fi
  19099. if test x$enable_filesystem = xyes; then
  19100. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  19101. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  19102. have_filesystem=yes
  19103. fi
  19104. # Set up files for the thread library
  19105. if test x$enable_threads = xyes; then
  19106. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19107. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19108. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19109. have_threads=yes
  19110. fi
  19111. # Set up files for the timer library
  19112. if test x$enable_timers = xyes; then
  19113. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  19114. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  19115. have_timers=yes
  19116. fi
  19117. # Set up files for the shared object loading library
  19118. if test x$enable_loadso = xyes; then
  19119. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  19120. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  19121. have_loadso=yes
  19122. fi
  19123. # Set up the system libraries we need
  19124. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -XCClinker -static-libgcc"
  19125. # The Windows platform requires special setup
  19126. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  19127. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  19128. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  19129. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  19130. # Check to see if this is a mingw or cygwin build
  19131. have_mingw32=
  19132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  19133. $as_echo_n "checking for main in -lmingw32... " >&6; }
  19134. if ${ac_cv_lib_mingw32_main+:} false; then :
  19135. $as_echo_n "(cached) " >&6
  19136. else
  19137. ac_check_lib_save_LIBS=$LIBS
  19138. LIBS="-lmingw32 $LIBS"
  19139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19140. /* end confdefs.h. */
  19141. int
  19142. main ()
  19143. {
  19144. return main ();
  19145. ;
  19146. return 0;
  19147. }
  19148. _ACEOF
  19149. if ac_fn_c_try_link "$LINENO"; then :
  19150. ac_cv_lib_mingw32_main=yes
  19151. else
  19152. ac_cv_lib_mingw32_main=no
  19153. fi
  19154. rm -f core conftest.err conftest.$ac_objext \
  19155. conftest$ac_exeext conftest.$ac_ext
  19156. LIBS=$ac_check_lib_save_LIBS
  19157. fi
  19158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  19159. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  19160. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  19161. have_mingw32=yes
  19162. fi
  19163. if test x$have_mingw32 = xyes; then
  19164. SDL_LIBS="-lmingw32 $SDL_LIBS"
  19165. else
  19166. SDL_LIBS="-lcygwin $SDL_LIBS"
  19167. fi
  19168. ;;
  19169. *-*-beos* | *-*-haiku*)
  19170. ARCH=beos
  19171. ac_default_prefix=/boot/common
  19172. CheckDummyVideo
  19173. CheckDiskAudio
  19174. CheckDummyAudio
  19175. CheckBWINDOW
  19176. CheckBeGL
  19177. # Set up files for the audio library
  19178. if test x$enable_audio = xyes; then
  19179. $as_echo "#define SDL_AUDIO_DRIVER_BEOSAUDIO 1" >>confdefs.h
  19180. SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc"
  19181. have_audio=yes
  19182. fi
  19183. # Set up files for the joystick library
  19184. if test x$enable_joystick = xyes; then
  19185. $as_echo "#define SDL_JOYSTICK_BEOS 1" >>confdefs.h
  19186. SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc"
  19187. have_joystick=yes
  19188. fi
  19189. # Set up files for the thread library
  19190. if test x$enable_threads = xyes; then
  19191. $as_echo "#define SDL_THREAD_BEOS 1" >>confdefs.h
  19192. SOURCES="$SOURCES $srcdir/src/thread/beos/*.c"
  19193. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
  19194. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19195. have_threads=yes
  19196. fi
  19197. # Set up files for the timer library
  19198. if test x$enable_timers = xyes; then
  19199. $as_echo "#define SDL_TIMER_BEOS 1" >>confdefs.h
  19200. SOURCES="$SOURCES $srcdir/src/timer/beos/*.c"
  19201. have_timers=yes
  19202. fi
  19203. # Set up files for the shared object loading library
  19204. if test x$enable_loadso = xyes; then
  19205. $as_echo "#define SDL_LOADSO_BEOS 1" >>confdefs.h
  19206. SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c"
  19207. have_loadso=yes
  19208. fi
  19209. # Set up files for the system power library
  19210. if test x$enable_power = xyes; then
  19211. $as_echo "#define SDL_POWER_BEOS 1" >>confdefs.h
  19212. SOURCES="$SOURCES $srcdir/src/power/beos/*.c"
  19213. have_power=yes
  19214. fi
  19215. # Set up files for the system filesystem library
  19216. if test x$enable_filesystem = xyes; then
  19217. $as_echo "#define SDL_FILESYSTEM_BEOS 1" >>confdefs.h
  19218. SOURCES="$SOURCES $srcdir/src/filesystem/beos/*.cc"
  19219. have_filesystem=yes
  19220. fi
  19221. # The BeOS platform requires special setup.
  19222. SOURCES="$srcdir/src/main/beos/*.cc $SOURCES"
  19223. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  19224. ;;
  19225. arm*-apple-darwin*)
  19226. # iOS - We are not writing anything to confdefs.h because you have to replace
  19227. # SDL_config.h for SDL_config_iphoneos.h anyway
  19228. ARCH=ios
  19229. CheckVisibilityHidden
  19230. CheckDummyVideo
  19231. CheckDiskAudio
  19232. CheckDummyAudio
  19233. CheckDLOPEN
  19234. CheckCOCOA
  19235. CheckPTHREAD
  19236. # Set up files for the audio library
  19237. if test x$enable_audio = xyes; then
  19238. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19239. have_audio=yes
  19240. fi
  19241. # Set up files for the joystick library
  19242. if test x$enable_joystick = xyes; then
  19243. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  19244. have_joystick=yes
  19245. fi
  19246. # Set up files for the haptic library
  19247. #if test x$enable_haptic = xyes; then
  19248. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19249. # have_haptic=yes
  19250. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19251. #fi
  19252. # Set up files for the power library
  19253. if test x$enable_power = xyes; then
  19254. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  19255. have_power=yes
  19256. fi
  19257. # Set up files for the filesystem library
  19258. if test x$enable_filesystem = xyes; then
  19259. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19260. have_filesystem=yes
  19261. fi
  19262. # Set up files for the timer library
  19263. if test x$enable_timers = xyes; then
  19264. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19265. have_timers=yes
  19266. fi
  19267. # Set up additional files for the file library
  19268. if test x$enable_file = xyes; then
  19269. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19270. fi
  19271. # The iOS platform requires special setup.
  19272. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  19273. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19274. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  19275. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  19276. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  19277. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  19278. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  19279. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  19280. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  19281. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  19282. ;;
  19283. *-*-darwin* )
  19284. # This could be either full "Mac OS X", or plain "Darwin" which is
  19285. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  19286. # Next line is broken, and a few files below require Mac OS X (full)
  19287. ARCH=macosx
  19288. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  19289. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  19290. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  19291. CheckVisibilityHidden
  19292. CheckDummyVideo
  19293. CheckDiskAudio
  19294. CheckDummyAudio
  19295. CheckDLOPEN
  19296. CheckCOCOA
  19297. CheckX11
  19298. CheckMacGL
  19299. CheckOpenGLX11
  19300. CheckPTHREAD
  19301. # Good optimization on Mac OS X, yes...
  19302. EXTRA_CFLAGS="$EXTRA_CFLAGS -falign-loops=16"
  19303. # Need this or things might misbuild on a G3.
  19304. EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL"
  19305. # Set up files for the audio library
  19306. if test x$enable_audio = xyes; then
  19307. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  19308. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19309. have_audio=yes
  19310. fi
  19311. # Set up files for the joystick library
  19312. if test x$enable_joystick = xyes; then
  19313. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  19314. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  19315. have_joystick=yes
  19316. fi
  19317. # Set up files for the haptic library
  19318. if test x$enable_haptic = xyes; then
  19319. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  19320. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19321. have_haptic=yes
  19322. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19323. fi
  19324. # Set up files for the power library
  19325. if test x$enable_power = xyes; then
  19326. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  19327. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  19328. have_power=yes
  19329. fi
  19330. # Set up files for the filesystem library
  19331. if test x$enable_filesystem = xyes; then
  19332. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  19333. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19334. have_filesystem=yes
  19335. fi
  19336. # Set up files for the timer library
  19337. if test x$enable_timers = xyes; then
  19338. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19339. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19340. have_timers=yes
  19341. fi
  19342. # Set up additional files for the file library
  19343. if test x$enable_file = xyes; then
  19344. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19345. fi
  19346. # The Mac OS X platform requires special setup.
  19347. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19348. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  19349. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  19350. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  19351. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  19352. # If audio is used, add the AudioUnit framework
  19353. if test x$enable_audio = xyes; then
  19354. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
  19355. fi
  19356. ;;
  19357. *)
  19358. as_fn_error $? "
  19359. *** Unsupported host: Please add to configure.in
  19360. " "$LINENO" 5
  19361. ;;
  19362. esac
  19363. CheckWarnAll
  19364. # Verify that we have all the platform specific files we need
  19365. if test x$have_joystick != xyes; then
  19366. if test x$enable_joystick = xyes; then
  19367. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  19368. fi
  19369. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  19370. fi
  19371. if test x$have_haptic != xyes; then
  19372. if test x$enable_haptic = xyes; then
  19373. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  19374. fi
  19375. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  19376. fi
  19377. if test x$have_threads != xyes; then
  19378. if test x$enable_threads = xyes; then
  19379. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  19380. fi
  19381. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  19382. fi
  19383. if test x$have_timers != xyes; then
  19384. if test x$enable_timers = xyes; then
  19385. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  19386. fi
  19387. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  19388. fi
  19389. if test x$have_filesystem != xyes; then
  19390. if test x$enable_filesystem = xyes; then
  19391. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  19392. fi
  19393. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  19394. fi
  19395. if test x$have_loadso != xyes; then
  19396. if test x$enable_loadso = xyes; then
  19397. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  19398. fi
  19399. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  19400. fi
  19401. if test x$SDLMAIN_SOURCES = x; then
  19402. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  19403. fi
  19404. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  19405. OBJECTS=`echo $SOURCES`
  19406. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  19407. for EXT in asm cc m c S; do
  19408. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  19409. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  19410. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  19411. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19412. done
  19413. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  19414. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  19415. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  19416. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  19417. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  19418. \\$(WINDRES) \\$< \\$@,g"`
  19419. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  19420. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  19421. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  19422. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  19423. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  19424. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19425. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  19426. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  19427. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  19428. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  19429. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  19430. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19431. # Set runtime shared library paths as needed
  19432. if test "x$enable_rpath" = "xyes"; then
  19433. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  19434. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  19435. fi
  19436. if test $ARCH = solaris; then
  19437. SDL_RLD_FLAGS="-R\${libdir}"
  19438. fi
  19439. else
  19440. SDL_RLD_FLAGS=""
  19441. fi
  19442. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  19443. if test x$enable_shared = xyes; then
  19444. ENABLE_SHARED_TRUE=
  19445. ENABLE_SHARED_FALSE="#"
  19446. else
  19447. ENABLE_SHARED_TRUE="#"
  19448. ENABLE_SHARED_FALSE=
  19449. fi
  19450. if test x$enable_static = xyes; then
  19451. ENABLE_STATIC_TRUE=
  19452. ENABLE_STATIC_FALSE="#"
  19453. else
  19454. ENABLE_STATIC_TRUE="#"
  19455. ENABLE_STATIC_FALSE=
  19456. fi
  19457. cat >Makefile.rules <<__EOF__
  19458. # Build rules for objects
  19459. -include \$(OBJECTS:.lo=.d)
  19460. # Special dependency for SDL.c, since it depends on SDL_revision.h
  19461. $srcdir/src/SDL.c: update-revision
  19462. $DEPENDS
  19463. $VERSION_DEPENDS
  19464. $SDLMAIN_DEPENDS
  19465. $SDLTEST_DEPENDS
  19466. __EOF__
  19467. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config SDL2.spec sdl2.pc"
  19468. cat >confcache <<\_ACEOF
  19469. # This file is a shell script that caches the results of configure
  19470. # tests run on this system so they can be shared between configure
  19471. # scripts and configure runs, see configure's option --config-cache.
  19472. # It is not useful on other systems. If it contains results you don't
  19473. # want to keep, you may remove or edit it.
  19474. #
  19475. # config.status only pays attention to the cache file if you give it
  19476. # the --recheck option to rerun configure.
  19477. #
  19478. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19479. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19480. # following values.
  19481. _ACEOF
  19482. # The following way of writing the cache mishandles newlines in values,
  19483. # but we know of no workaround that is simple, portable, and efficient.
  19484. # So, we kill variables containing newlines.
  19485. # Ultrix sh set writes to stderr and can't be redirected directly,
  19486. # and sets the high bit in the cache file unless we assign to the vars.
  19487. (
  19488. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19489. eval ac_val=\$$ac_var
  19490. case $ac_val in #(
  19491. *${as_nl}*)
  19492. case $ac_var in #(
  19493. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  19494. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  19495. esac
  19496. case $ac_var in #(
  19497. _ | IFS | as_nl) ;; #(
  19498. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  19499. *) { eval $ac_var=; unset $ac_var;} ;;
  19500. esac ;;
  19501. esac
  19502. done
  19503. (set) 2>&1 |
  19504. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19505. *${as_nl}ac_space=\ *)
  19506. # `set' does not quote correctly, so add quotes: double-quote
  19507. # substitution turns \\\\ into \\, and sed turns \\ into \.
  19508. sed -n \
  19509. "s/'/'\\\\''/g;
  19510. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19511. ;; #(
  19512. *)
  19513. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19514. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19515. ;;
  19516. esac |
  19517. sort
  19518. ) |
  19519. sed '
  19520. /^ac_cv_env_/b end
  19521. t clear
  19522. :clear
  19523. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19524. t end
  19525. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19526. :end' >>confcache
  19527. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19528. if test -w "$cache_file"; then
  19529. if test "x$cache_file" != "x/dev/null"; then
  19530. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  19531. $as_echo "$as_me: updating cache $cache_file" >&6;}
  19532. if test ! -f "$cache_file" || test -h "$cache_file"; then
  19533. cat confcache >"$cache_file"
  19534. else
  19535. case $cache_file in #(
  19536. */* | ?:*)
  19537. mv -f confcache "$cache_file"$$ &&
  19538. mv -f "$cache_file"$$ "$cache_file" ;; #(
  19539. *)
  19540. mv -f confcache "$cache_file" ;;
  19541. esac
  19542. fi
  19543. fi
  19544. else
  19545. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  19546. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19547. fi
  19548. fi
  19549. rm -f confcache
  19550. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19551. # Let make expand exec_prefix.
  19552. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19553. DEFS=-DHAVE_CONFIG_H
  19554. ac_libobjs=
  19555. ac_ltlibobjs=
  19556. U=
  19557. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19558. # 1. Remove the extension, and $U if already installed.
  19559. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19560. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  19561. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19562. # will be set to the directory where LIBOBJS objects are built.
  19563. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19564. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  19565. done
  19566. LIBOBJS=$ac_libobjs
  19567. LTLIBOBJS=$ac_ltlibobjs
  19568. : "${CONFIG_STATUS=./config.status}"
  19569. ac_write_fail=0
  19570. ac_clean_files_save=$ac_clean_files
  19571. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19572. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  19573. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19574. as_write_fail=0
  19575. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  19576. #! $SHELL
  19577. # Generated by $as_me.
  19578. # Run this file to recreate the current configuration.
  19579. # Compiler output produced by configure, useful for debugging
  19580. # configure, is in config.log if it exists.
  19581. debug=false
  19582. ac_cs_recheck=false
  19583. ac_cs_silent=false
  19584. SHELL=\${CONFIG_SHELL-$SHELL}
  19585. export SHELL
  19586. _ASEOF
  19587. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  19588. ## -------------------- ##
  19589. ## M4sh Initialization. ##
  19590. ## -------------------- ##
  19591. # Be more Bourne compatible
  19592. DUALCASE=1; export DUALCASE # for MKS sh
  19593. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19594. emulate sh
  19595. NULLCMD=:
  19596. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  19597. # is contrary to our usage. Disable this feature.
  19598. alias -g '${1+"$@"}'='"$@"'
  19599. setopt NO_GLOB_SUBST
  19600. else
  19601. case `(set -o) 2>/dev/null` in #(
  19602. *posix*) :
  19603. set -o posix ;; #(
  19604. *) :
  19605. ;;
  19606. esac
  19607. fi
  19608. as_nl='
  19609. '
  19610. export as_nl
  19611. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  19612. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  19613. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  19614. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  19615. # Prefer a ksh shell builtin over an external printf program on Solaris,
  19616. # but without wasting forks for bash or zsh.
  19617. if test -z "$BASH_VERSION$ZSH_VERSION" \
  19618. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  19619. as_echo='print -r --'
  19620. as_echo_n='print -rn --'
  19621. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  19622. as_echo='printf %s\n'
  19623. as_echo_n='printf %s'
  19624. else
  19625. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  19626. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  19627. as_echo_n='/usr/ucb/echo -n'
  19628. else
  19629. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  19630. as_echo_n_body='eval
  19631. arg=$1;
  19632. case $arg in #(
  19633. *"$as_nl"*)
  19634. expr "X$arg" : "X\\(.*\\)$as_nl";
  19635. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  19636. esac;
  19637. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  19638. '
  19639. export as_echo_n_body
  19640. as_echo_n='sh -c $as_echo_n_body as_echo'
  19641. fi
  19642. export as_echo_body
  19643. as_echo='sh -c $as_echo_body as_echo'
  19644. fi
  19645. # The user is always right.
  19646. if test "${PATH_SEPARATOR+set}" != set; then
  19647. PATH_SEPARATOR=:
  19648. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  19649. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  19650. PATH_SEPARATOR=';'
  19651. }
  19652. fi
  19653. # IFS
  19654. # We need space, tab and new line, in precisely that order. Quoting is
  19655. # there to prevent editors from complaining about space-tab.
  19656. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19657. # splitting by setting IFS to empty value.)
  19658. IFS=" "" $as_nl"
  19659. # Find who we are. Look in the path if we contain no directory separator.
  19660. as_myself=
  19661. case $0 in #((
  19662. *[\\/]* ) as_myself=$0 ;;
  19663. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19664. for as_dir in $PATH
  19665. do
  19666. IFS=$as_save_IFS
  19667. test -z "$as_dir" && as_dir=.
  19668. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19669. done
  19670. IFS=$as_save_IFS
  19671. ;;
  19672. esac
  19673. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19674. # in which case we are not to be found in the path.
  19675. if test "x$as_myself" = x; then
  19676. as_myself=$0
  19677. fi
  19678. if test ! -f "$as_myself"; then
  19679. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19680. exit 1
  19681. fi
  19682. # Unset variables that we do not need and which cause bugs (e.g. in
  19683. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  19684. # suppresses any "Segmentation fault" message there. '((' could
  19685. # trigger a bug in pdksh 5.2.14.
  19686. for as_var in BASH_ENV ENV MAIL MAILPATH
  19687. do eval test x\${$as_var+set} = xset \
  19688. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  19689. done
  19690. PS1='$ '
  19691. PS2='> '
  19692. PS4='+ '
  19693. # NLS nuisances.
  19694. LC_ALL=C
  19695. export LC_ALL
  19696. LANGUAGE=C
  19697. export LANGUAGE
  19698. # CDPATH.
  19699. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19700. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  19701. # ----------------------------------------
  19702. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  19703. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  19704. # script with STATUS, using 1 if that was 0.
  19705. as_fn_error ()
  19706. {
  19707. as_status=$1; test $as_status -eq 0 && as_status=1
  19708. if test "$4"; then
  19709. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19710. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  19711. fi
  19712. $as_echo "$as_me: error: $2" >&2
  19713. as_fn_exit $as_status
  19714. } # as_fn_error
  19715. # as_fn_set_status STATUS
  19716. # -----------------------
  19717. # Set $? to STATUS, without forking.
  19718. as_fn_set_status ()
  19719. {
  19720. return $1
  19721. } # as_fn_set_status
  19722. # as_fn_exit STATUS
  19723. # -----------------
  19724. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  19725. as_fn_exit ()
  19726. {
  19727. set +e
  19728. as_fn_set_status $1
  19729. exit $1
  19730. } # as_fn_exit
  19731. # as_fn_unset VAR
  19732. # ---------------
  19733. # Portably unset VAR.
  19734. as_fn_unset ()
  19735. {
  19736. { eval $1=; unset $1;}
  19737. }
  19738. as_unset=as_fn_unset
  19739. # as_fn_append VAR VALUE
  19740. # ----------------------
  19741. # Append the text in VALUE to the end of the definition contained in VAR. Take
  19742. # advantage of any shell optimizations that allow amortized linear growth over
  19743. # repeated appends, instead of the typical quadratic growth present in naive
  19744. # implementations.
  19745. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  19746. eval 'as_fn_append ()
  19747. {
  19748. eval $1+=\$2
  19749. }'
  19750. else
  19751. as_fn_append ()
  19752. {
  19753. eval $1=\$$1\$2
  19754. }
  19755. fi # as_fn_append
  19756. # as_fn_arith ARG...
  19757. # ------------------
  19758. # Perform arithmetic evaluation on the ARGs, and store the result in the
  19759. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  19760. # must be portable across $(()) and expr.
  19761. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  19762. eval 'as_fn_arith ()
  19763. {
  19764. as_val=$(( $* ))
  19765. }'
  19766. else
  19767. as_fn_arith ()
  19768. {
  19769. as_val=`expr "$@" || test $? -eq 1`
  19770. }
  19771. fi # as_fn_arith
  19772. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19773. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19774. as_expr=expr
  19775. else
  19776. as_expr=false
  19777. fi
  19778. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19779. as_basename=basename
  19780. else
  19781. as_basename=false
  19782. fi
  19783. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19784. as_dirname=dirname
  19785. else
  19786. as_dirname=false
  19787. fi
  19788. as_me=`$as_basename -- "$0" ||
  19789. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19790. X"$0" : 'X\(//\)$' \| \
  19791. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19792. $as_echo X/"$0" |
  19793. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19794. s//\1/
  19795. q
  19796. }
  19797. /^X\/\(\/\/\)$/{
  19798. s//\1/
  19799. q
  19800. }
  19801. /^X\/\(\/\).*/{
  19802. s//\1/
  19803. q
  19804. }
  19805. s/.*/./; q'`
  19806. # Avoid depending upon Character Ranges.
  19807. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19808. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19809. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19810. as_cr_digits='0123456789'
  19811. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19812. ECHO_C= ECHO_N= ECHO_T=
  19813. case `echo -n x` in #(((((
  19814. -n*)
  19815. case `echo 'xy\c'` in
  19816. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19817. xy) ECHO_C='\c';;
  19818. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  19819. ECHO_T=' ';;
  19820. esac;;
  19821. *)
  19822. ECHO_N='-n';;
  19823. esac
  19824. rm -f conf$$ conf$$.exe conf$$.file
  19825. if test -d conf$$.dir; then
  19826. rm -f conf$$.dir/conf$$.file
  19827. else
  19828. rm -f conf$$.dir
  19829. mkdir conf$$.dir 2>/dev/null
  19830. fi
  19831. if (echo >conf$$.file) 2>/dev/null; then
  19832. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19833. as_ln_s='ln -s'
  19834. # ... but there are two gotchas:
  19835. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19836. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19837. # In both cases, we have to default to `cp -pR'.
  19838. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19839. as_ln_s='cp -pR'
  19840. elif ln conf$$.file conf$$ 2>/dev/null; then
  19841. as_ln_s=ln
  19842. else
  19843. as_ln_s='cp -pR'
  19844. fi
  19845. else
  19846. as_ln_s='cp -pR'
  19847. fi
  19848. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19849. rmdir conf$$.dir 2>/dev/null
  19850. # as_fn_mkdir_p
  19851. # -------------
  19852. # Create "$as_dir" as a directory, including parents if necessary.
  19853. as_fn_mkdir_p ()
  19854. {
  19855. case $as_dir in #(
  19856. -*) as_dir=./$as_dir;;
  19857. esac
  19858. test -d "$as_dir" || eval $as_mkdir_p || {
  19859. as_dirs=
  19860. while :; do
  19861. case $as_dir in #(
  19862. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  19863. *) as_qdir=$as_dir;;
  19864. esac
  19865. as_dirs="'$as_qdir' $as_dirs"
  19866. as_dir=`$as_dirname -- "$as_dir" ||
  19867. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19868. X"$as_dir" : 'X\(//\)[^/]' \| \
  19869. X"$as_dir" : 'X\(//\)$' \| \
  19870. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  19871. $as_echo X"$as_dir" |
  19872. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19873. s//\1/
  19874. q
  19875. }
  19876. /^X\(\/\/\)[^/].*/{
  19877. s//\1/
  19878. q
  19879. }
  19880. /^X\(\/\/\)$/{
  19881. s//\1/
  19882. q
  19883. }
  19884. /^X\(\/\).*/{
  19885. s//\1/
  19886. q
  19887. }
  19888. s/.*/./; q'`
  19889. test -d "$as_dir" && break
  19890. done
  19891. test -z "$as_dirs" || eval "mkdir $as_dirs"
  19892. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  19893. } # as_fn_mkdir_p
  19894. if mkdir -p . 2>/dev/null; then
  19895. as_mkdir_p='mkdir -p "$as_dir"'
  19896. else
  19897. test -d ./-p && rmdir ./-p
  19898. as_mkdir_p=false
  19899. fi
  19900. # as_fn_executable_p FILE
  19901. # -----------------------
  19902. # Test if FILE is an executable regular file.
  19903. as_fn_executable_p ()
  19904. {
  19905. test -f "$1" && test -x "$1"
  19906. } # as_fn_executable_p
  19907. as_test_x='test -x'
  19908. as_executable_p=as_fn_executable_p
  19909. # Sed expression to map a string onto a valid CPP name.
  19910. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19911. # Sed expression to map a string onto a valid variable name.
  19912. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19913. exec 6>&1
  19914. ## ----------------------------------- ##
  19915. ## Main body of $CONFIG_STATUS script. ##
  19916. ## ----------------------------------- ##
  19917. _ASEOF
  19918. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  19919. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19920. # Save the log message, to keep $0 and so on meaningful, and to
  19921. # report actual input values of CONFIG_FILES etc. instead of their
  19922. # values after options handling.
  19923. ac_log="
  19924. This file was extended by $as_me, which was
  19925. generated by GNU Autoconf 2.69. Invocation command line was
  19926. CONFIG_FILES = $CONFIG_FILES
  19927. CONFIG_HEADERS = $CONFIG_HEADERS
  19928. CONFIG_LINKS = $CONFIG_LINKS
  19929. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19930. $ $0 $@
  19931. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19932. "
  19933. _ACEOF
  19934. case $ac_config_files in *"
  19935. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  19936. esac
  19937. case $ac_config_headers in *"
  19938. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  19939. esac
  19940. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19941. # Files that config.status was made for.
  19942. config_files="$ac_config_files"
  19943. config_headers="$ac_config_headers"
  19944. config_commands="$ac_config_commands"
  19945. _ACEOF
  19946. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19947. ac_cs_usage="\
  19948. \`$as_me' instantiates files and other configuration actions
  19949. from templates according to the current configuration. Unless the files
  19950. and actions are specified as TAGs, all are instantiated by default.
  19951. Usage: $0 [OPTION]... [TAG]...
  19952. -h, --help print this help, then exit
  19953. -V, --version print version number and configuration settings, then exit
  19954. --config print configuration, then exit
  19955. -q, --quiet, --silent
  19956. do not print progress messages
  19957. -d, --debug don't remove temporary files
  19958. --recheck update $as_me by reconfiguring in the same conditions
  19959. --file=FILE[:TEMPLATE]
  19960. instantiate the configuration file FILE
  19961. --header=FILE[:TEMPLATE]
  19962. instantiate the configuration header FILE
  19963. Configuration files:
  19964. $config_files
  19965. Configuration headers:
  19966. $config_headers
  19967. Configuration commands:
  19968. $config_commands
  19969. Report bugs to the package provider."
  19970. _ACEOF
  19971. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19972. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  19973. ac_cs_version="\\
  19974. config.status
  19975. configured by $0, generated by GNU Autoconf 2.69,
  19976. with options \\"\$ac_cs_config\\"
  19977. Copyright (C) 2012 Free Software Foundation, Inc.
  19978. This config.status script is free software; the Free Software Foundation
  19979. gives unlimited permission to copy, distribute and modify it."
  19980. ac_pwd='$ac_pwd'
  19981. srcdir='$srcdir'
  19982. INSTALL='$INSTALL'
  19983. AWK='$AWK'
  19984. test -n "\$AWK" || AWK=awk
  19985. _ACEOF
  19986. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19987. # The default lists apply if the user does not specify any file.
  19988. ac_need_defaults=:
  19989. while test $# != 0
  19990. do
  19991. case $1 in
  19992. --*=?*)
  19993. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19994. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19995. ac_shift=:
  19996. ;;
  19997. --*=)
  19998. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19999. ac_optarg=
  20000. ac_shift=:
  20001. ;;
  20002. *)
  20003. ac_option=$1
  20004. ac_optarg=$2
  20005. ac_shift=shift
  20006. ;;
  20007. esac
  20008. case $ac_option in
  20009. # Handling of the options.
  20010. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20011. ac_cs_recheck=: ;;
  20012. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20013. $as_echo "$ac_cs_version"; exit ;;
  20014. --config | --confi | --conf | --con | --co | --c )
  20015. $as_echo "$ac_cs_config"; exit ;;
  20016. --debug | --debu | --deb | --de | --d | -d )
  20017. debug=: ;;
  20018. --file | --fil | --fi | --f )
  20019. $ac_shift
  20020. case $ac_optarg in
  20021. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20022. '') as_fn_error $? "missing file argument" ;;
  20023. esac
  20024. as_fn_append CONFIG_FILES " '$ac_optarg'"
  20025. ac_need_defaults=false;;
  20026. --header | --heade | --head | --hea )
  20027. $ac_shift
  20028. case $ac_optarg in
  20029. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20030. esac
  20031. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  20032. ac_need_defaults=false;;
  20033. --he | --h)
  20034. # Conflict between --help and --header
  20035. as_fn_error $? "ambiguous option: \`$1'
  20036. Try \`$0 --help' for more information.";;
  20037. --help | --hel | -h )
  20038. $as_echo "$ac_cs_usage"; exit ;;
  20039. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20040. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20041. ac_cs_silent=: ;;
  20042. # This is an error.
  20043. -*) as_fn_error $? "unrecognized option: \`$1'
  20044. Try \`$0 --help' for more information." ;;
  20045. *) as_fn_append ac_config_targets " $1"
  20046. ac_need_defaults=false ;;
  20047. esac
  20048. shift
  20049. done
  20050. ac_configure_extra_args=
  20051. if $ac_cs_silent; then
  20052. exec 6>/dev/null
  20053. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20054. fi
  20055. _ACEOF
  20056. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20057. if \$ac_cs_recheck; then
  20058. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20059. shift
  20060. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  20061. CONFIG_SHELL='$SHELL'
  20062. export CONFIG_SHELL
  20063. exec "\$@"
  20064. fi
  20065. _ACEOF
  20066. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20067. exec 5>>config.log
  20068. {
  20069. echo
  20070. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20071. ## Running $as_me. ##
  20072. _ASBOX
  20073. $as_echo "$ac_log"
  20074. } >&5
  20075. _ACEOF
  20076. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20077. #
  20078. # INIT-COMMANDS
  20079. #
  20080. # The HP-UX ksh and POSIX shell print the target directory to stdout
  20081. # if CDPATH is set.
  20082. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20083. sed_quote_subst='$sed_quote_subst'
  20084. double_quote_subst='$double_quote_subst'
  20085. delay_variable_subst='$delay_variable_subst'
  20086. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  20087. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  20088. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  20089. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  20090. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  20091. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  20092. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  20093. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  20094. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  20095. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  20096. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  20097. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  20098. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  20099. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  20100. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  20101. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  20102. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20103. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20104. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20105. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20106. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20107. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20108. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20109. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20110. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20111. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20112. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20113. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20114. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20115. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20116. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20117. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20118. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20119. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20120. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20121. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20122. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20123. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20124. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20125. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20126. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20127. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20128. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20129. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20130. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20131. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20132. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20133. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20134. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20135. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20136. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20137. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20138. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20139. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20140. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  20141. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  20142. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  20143. 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"`'
  20144. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  20145. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  20146. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  20147. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  20148. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  20149. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  20150. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  20151. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  20152. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  20153. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  20154. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  20155. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  20156. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  20157. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  20158. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  20159. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  20160. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  20161. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  20162. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20163. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  20164. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  20165. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  20166. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  20167. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  20168. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  20169. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20170. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  20171. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20172. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  20173. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20174. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  20175. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20176. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20177. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  20178. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  20179. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  20180. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  20181. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  20182. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20183. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  20184. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  20185. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  20186. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  20187. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  20188. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  20189. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  20190. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  20191. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  20192. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  20193. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  20194. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  20195. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  20196. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  20197. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  20198. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20199. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  20200. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  20201. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  20202. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  20203. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  20204. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20205. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20206. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  20207. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  20208. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  20209. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  20210. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  20211. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  20212. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  20213. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  20214. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  20215. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  20216. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  20217. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  20218. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  20219. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  20220. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  20221. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  20222. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  20223. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  20224. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20225. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20226. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20227. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  20228. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  20229. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20230. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  20231. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  20232. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  20233. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  20234. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  20235. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  20236. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20237. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20238. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  20239. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20240. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20241. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20242. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20243. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20244. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20245. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  20246. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20247. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20248. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20249. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  20250. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  20251. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  20252. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  20253. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  20254. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  20255. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  20256. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  20257. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  20258. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20259. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20260. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20261. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20262. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20263. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20264. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  20265. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  20266. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20267. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20268. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  20269. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  20270. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  20271. LTCC='$LTCC'
  20272. LTCFLAGS='$LTCFLAGS'
  20273. compiler='$compiler_DEFAULT'
  20274. # A function that is used when there is no print builtin or printf.
  20275. func_fallback_echo ()
  20276. {
  20277. eval 'cat <<_LTECHO_EOF
  20278. \$1
  20279. _LTECHO_EOF'
  20280. }
  20281. # Quote evaled strings.
  20282. for var in AS \
  20283. DLLTOOL \
  20284. OBJDUMP \
  20285. SHELL \
  20286. ECHO \
  20287. PATH_SEPARATOR \
  20288. SED \
  20289. GREP \
  20290. EGREP \
  20291. FGREP \
  20292. LD \
  20293. NM \
  20294. LN_S \
  20295. lt_SP2NL \
  20296. lt_NL2SP \
  20297. reload_flag \
  20298. deplibs_check_method \
  20299. file_magic_cmd \
  20300. file_magic_glob \
  20301. want_nocaseglob \
  20302. sharedlib_from_linklib_cmd \
  20303. AR \
  20304. AR_FLAGS \
  20305. archiver_list_spec \
  20306. STRIP \
  20307. RANLIB \
  20308. CC \
  20309. CFLAGS \
  20310. compiler \
  20311. lt_cv_sys_global_symbol_pipe \
  20312. lt_cv_sys_global_symbol_to_cdecl \
  20313. lt_cv_sys_global_symbol_to_c_name_address \
  20314. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  20315. nm_file_list_spec \
  20316. lt_prog_compiler_no_builtin_flag \
  20317. lt_prog_compiler_pic \
  20318. lt_prog_compiler_wl \
  20319. lt_prog_compiler_static \
  20320. lt_cv_prog_compiler_c_o \
  20321. need_locks \
  20322. MANIFEST_TOOL \
  20323. DSYMUTIL \
  20324. NMEDIT \
  20325. LIPO \
  20326. OTOOL \
  20327. OTOOL64 \
  20328. shrext_cmds \
  20329. export_dynamic_flag_spec \
  20330. whole_archive_flag_spec \
  20331. compiler_needs_object \
  20332. with_gnu_ld \
  20333. allow_undefined_flag \
  20334. no_undefined_flag \
  20335. hardcode_libdir_flag_spec \
  20336. hardcode_libdir_separator \
  20337. exclude_expsyms \
  20338. include_expsyms \
  20339. file_list_spec \
  20340. variables_saved_for_relink \
  20341. libname_spec \
  20342. library_names_spec \
  20343. soname_spec \
  20344. install_override_mode \
  20345. finish_eval \
  20346. old_striplib \
  20347. striplib \
  20348. compiler_lib_search_dirs \
  20349. predep_objects \
  20350. postdep_objects \
  20351. predeps \
  20352. postdeps \
  20353. compiler_lib_search_path \
  20354. LD_CXX \
  20355. reload_flag_CXX \
  20356. compiler_CXX \
  20357. lt_prog_compiler_no_builtin_flag_CXX \
  20358. lt_prog_compiler_pic_CXX \
  20359. lt_prog_compiler_wl_CXX \
  20360. lt_prog_compiler_static_CXX \
  20361. lt_cv_prog_compiler_c_o_CXX \
  20362. export_dynamic_flag_spec_CXX \
  20363. whole_archive_flag_spec_CXX \
  20364. compiler_needs_object_CXX \
  20365. with_gnu_ld_CXX \
  20366. allow_undefined_flag_CXX \
  20367. no_undefined_flag_CXX \
  20368. hardcode_libdir_flag_spec_CXX \
  20369. hardcode_libdir_separator_CXX \
  20370. exclude_expsyms_CXX \
  20371. include_expsyms_CXX \
  20372. file_list_spec_CXX \
  20373. compiler_lib_search_dirs_CXX \
  20374. predep_objects_CXX \
  20375. postdep_objects_CXX \
  20376. predeps_CXX \
  20377. postdeps_CXX \
  20378. compiler_lib_search_path_CXX; do
  20379. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20380. *[\\\\\\\`\\"\\\$]*)
  20381. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  20382. ;;
  20383. *)
  20384. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20385. ;;
  20386. esac
  20387. done
  20388. # Double-quote double-evaled strings.
  20389. for var in reload_cmds \
  20390. old_postinstall_cmds \
  20391. old_postuninstall_cmds \
  20392. old_archive_cmds \
  20393. extract_expsyms_cmds \
  20394. old_archive_from_new_cmds \
  20395. old_archive_from_expsyms_cmds \
  20396. archive_cmds \
  20397. archive_expsym_cmds \
  20398. module_cmds \
  20399. module_expsym_cmds \
  20400. export_symbols_cmds \
  20401. prelink_cmds \
  20402. postlink_cmds \
  20403. postinstall_cmds \
  20404. postuninstall_cmds \
  20405. finish_cmds \
  20406. sys_lib_search_path_spec \
  20407. sys_lib_dlsearch_path_spec \
  20408. reload_cmds_CXX \
  20409. old_archive_cmds_CXX \
  20410. old_archive_from_new_cmds_CXX \
  20411. old_archive_from_expsyms_cmds_CXX \
  20412. archive_cmds_CXX \
  20413. archive_expsym_cmds_CXX \
  20414. module_cmds_CXX \
  20415. module_expsym_cmds_CXX \
  20416. export_symbols_cmds_CXX \
  20417. prelink_cmds_CXX \
  20418. postlink_cmds_CXX; do
  20419. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20420. *[\\\\\\\`\\"\\\$]*)
  20421. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  20422. ;;
  20423. *)
  20424. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20425. ;;
  20426. esac
  20427. done
  20428. ac_aux_dir='$ac_aux_dir'
  20429. xsi_shell='$xsi_shell'
  20430. lt_shell_append='$lt_shell_append'
  20431. # See if we are running on zsh, and set the options which allow our
  20432. # commands through without removal of \ escapes INIT.
  20433. if test -n "\${ZSH_VERSION+set}" ; then
  20434. setopt NO_GLOB_SUBST
  20435. fi
  20436. PACKAGE='$PACKAGE'
  20437. VERSION='$VERSION'
  20438. TIMESTAMP='$TIMESTAMP'
  20439. RM='$RM'
  20440. ofile='$ofile'
  20441. _ACEOF
  20442. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20443. # Handling of arguments.
  20444. for ac_config_target in $ac_config_targets
  20445. do
  20446. case $ac_config_target in
  20447. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  20448. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  20449. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  20450. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  20451. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  20452. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  20453. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  20454. esac
  20455. done
  20456. # If the user did not use the arguments to specify the items to instantiate,
  20457. # then the envvar interface is used. Set only those that are not.
  20458. # We use the long form for the default assignment because of an extremely
  20459. # bizarre bug on SunOS 4.1.3.
  20460. if $ac_need_defaults; then
  20461. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20462. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20463. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20464. fi
  20465. # Have a temporary directory for convenience. Make it in the build tree
  20466. # simply because there is no reason against having it here, and in addition,
  20467. # creating and moving files from /tmp can sometimes cause problems.
  20468. # Hook for its removal unless debugging.
  20469. # Note that there is a small window in which the directory will not be cleaned:
  20470. # after its creation but before its name has been assigned to `$tmp'.
  20471. $debug ||
  20472. {
  20473. tmp= ac_tmp=
  20474. trap 'exit_status=$?
  20475. : "${ac_tmp:=$tmp}"
  20476. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  20477. ' 0
  20478. trap 'as_fn_exit 1' 1 2 13 15
  20479. }
  20480. # Create a (secure) tmp directory for tmp files.
  20481. {
  20482. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20483. test -d "$tmp"
  20484. } ||
  20485. {
  20486. tmp=./conf$$-$RANDOM
  20487. (umask 077 && mkdir "$tmp")
  20488. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  20489. ac_tmp=$tmp
  20490. # Set up the scripts for CONFIG_FILES section.
  20491. # No need to generate them if there are no CONFIG_FILES.
  20492. # This happens for instance with `./config.status config.h'.
  20493. if test -n "$CONFIG_FILES"; then
  20494. ac_cr=`echo X | tr X '\015'`
  20495. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  20496. # But we know of no other shell where ac_cr would be empty at this
  20497. # point, so we can use a bashism as a fallback.
  20498. if test "x$ac_cr" = x; then
  20499. eval ac_cr=\$\'\\r\'
  20500. fi
  20501. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  20502. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  20503. ac_cs_awk_cr='\\r'
  20504. else
  20505. ac_cs_awk_cr=$ac_cr
  20506. fi
  20507. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  20508. _ACEOF
  20509. {
  20510. echo "cat >conf$$subs.awk <<_ACEOF" &&
  20511. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  20512. echo "_ACEOF"
  20513. } >conf$$subs.sh ||
  20514. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20515. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  20516. ac_delim='%!_!# '
  20517. for ac_last_try in false false false false false :; do
  20518. . ./conf$$subs.sh ||
  20519. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20520. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  20521. if test $ac_delim_n = $ac_delim_num; then
  20522. break
  20523. elif $ac_last_try; then
  20524. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20525. else
  20526. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20527. fi
  20528. done
  20529. rm -f conf$$subs.sh
  20530. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20531. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  20532. _ACEOF
  20533. sed -n '
  20534. h
  20535. s/^/S["/; s/!.*/"]=/
  20536. p
  20537. g
  20538. s/^[^!]*!//
  20539. :repl
  20540. t repl
  20541. s/'"$ac_delim"'$//
  20542. t delim
  20543. :nl
  20544. h
  20545. s/\(.\{148\}\)..*/\1/
  20546. t more1
  20547. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  20548. p
  20549. n
  20550. b repl
  20551. :more1
  20552. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20553. p
  20554. g
  20555. s/.\{148\}//
  20556. t nl
  20557. :delim
  20558. h
  20559. s/\(.\{148\}\)..*/\1/
  20560. t more2
  20561. s/["\\]/\\&/g; s/^/"/; s/$/"/
  20562. p
  20563. b
  20564. :more2
  20565. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20566. p
  20567. g
  20568. s/.\{148\}//
  20569. t delim
  20570. ' <conf$$subs.awk | sed '
  20571. /^[^""]/{
  20572. N
  20573. s/\n//
  20574. }
  20575. ' >>$CONFIG_STATUS || ac_write_fail=1
  20576. rm -f conf$$subs.awk
  20577. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20578. _ACAWK
  20579. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  20580. for (key in S) S_is_set[key] = 1
  20581. FS = ""
  20582. }
  20583. {
  20584. line = $ 0
  20585. nfields = split(line, field, "@")
  20586. substed = 0
  20587. len = length(field[1])
  20588. for (i = 2; i < nfields; i++) {
  20589. key = field[i]
  20590. keylen = length(key)
  20591. if (S_is_set[key]) {
  20592. value = S[key]
  20593. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  20594. len += length(value) + length(field[++i])
  20595. substed = 1
  20596. } else
  20597. len += 1 + keylen
  20598. }
  20599. print line
  20600. }
  20601. _ACAWK
  20602. _ACEOF
  20603. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20604. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  20605. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  20606. else
  20607. cat
  20608. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  20609. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  20610. _ACEOF
  20611. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  20612. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  20613. # trailing colons and then remove the whole line if VPATH becomes empty
  20614. # (actually we leave an empty line to preserve line numbers).
  20615. if test "x$srcdir" = x.; then
  20616. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  20617. h
  20618. s///
  20619. s/^/:/
  20620. s/[ ]*$/:/
  20621. s/:\$(srcdir):/:/g
  20622. s/:\${srcdir}:/:/g
  20623. s/:@srcdir@:/:/g
  20624. s/^:*//
  20625. s/:*$//
  20626. x
  20627. s/\(=[ ]*\).*/\1/
  20628. G
  20629. s/\n//
  20630. s/^[^=]*=[ ]*$//
  20631. }'
  20632. fi
  20633. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20634. fi # test -n "$CONFIG_FILES"
  20635. # Set up the scripts for CONFIG_HEADERS section.
  20636. # No need to generate them if there are no CONFIG_HEADERS.
  20637. # This happens for instance with `./config.status Makefile'.
  20638. if test -n "$CONFIG_HEADERS"; then
  20639. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  20640. BEGIN {
  20641. _ACEOF
  20642. # Transform confdefs.h into an awk script `defines.awk', embedded as
  20643. # here-document in config.status, that substitutes the proper values into
  20644. # config.h.in to produce config.h.
  20645. # Create a delimiter string that does not exist in confdefs.h, to ease
  20646. # handling of long lines.
  20647. ac_delim='%!_!# '
  20648. for ac_last_try in false false :; do
  20649. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  20650. if test -z "$ac_tt"; then
  20651. break
  20652. elif $ac_last_try; then
  20653. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  20654. else
  20655. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20656. fi
  20657. done
  20658. # For the awk script, D is an array of macro values keyed by name,
  20659. # likewise P contains macro parameters if any. Preserve backslash
  20660. # newline sequences.
  20661. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20662. sed -n '
  20663. s/.\{148\}/&'"$ac_delim"'/g
  20664. t rset
  20665. :rset
  20666. s/^[ ]*#[ ]*define[ ][ ]*/ /
  20667. t def
  20668. d
  20669. :def
  20670. s/\\$//
  20671. t bsnl
  20672. s/["\\]/\\&/g
  20673. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20674. D["\1"]=" \3"/p
  20675. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  20676. d
  20677. :bsnl
  20678. s/["\\]/\\&/g
  20679. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20680. D["\1"]=" \3\\\\\\n"\\/p
  20681. t cont
  20682. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  20683. t cont
  20684. d
  20685. :cont
  20686. n
  20687. s/.\{148\}/&'"$ac_delim"'/g
  20688. t clear
  20689. :clear
  20690. s/\\$//
  20691. t bsnlc
  20692. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  20693. d
  20694. :bsnlc
  20695. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  20696. b cont
  20697. ' <confdefs.h | sed '
  20698. s/'"$ac_delim"'/"\\\
  20699. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  20700. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20701. for (key in D) D_is_set[key] = 1
  20702. FS = ""
  20703. }
  20704. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  20705. line = \$ 0
  20706. split(line, arg, " ")
  20707. if (arg[1] == "#") {
  20708. defundef = arg[2]
  20709. mac1 = arg[3]
  20710. } else {
  20711. defundef = substr(arg[1], 2)
  20712. mac1 = arg[2]
  20713. }
  20714. split(mac1, mac2, "(") #)
  20715. macro = mac2[1]
  20716. prefix = substr(line, 1, index(line, defundef) - 1)
  20717. if (D_is_set[macro]) {
  20718. # Preserve the white space surrounding the "#".
  20719. print prefix "define", macro P[macro] D[macro]
  20720. next
  20721. } else {
  20722. # Replace #undef with comments. This is necessary, for example,
  20723. # in the case of _POSIX_SOURCE, which is predefined and required
  20724. # on some systems where configure will not decide to define it.
  20725. if (defundef == "undef") {
  20726. print "/*", prefix defundef, macro, "*/"
  20727. next
  20728. }
  20729. }
  20730. }
  20731. { print }
  20732. _ACAWK
  20733. _ACEOF
  20734. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20735. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  20736. fi # test -n "$CONFIG_HEADERS"
  20737. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  20738. shift
  20739. for ac_tag
  20740. do
  20741. case $ac_tag in
  20742. :[FHLC]) ac_mode=$ac_tag; continue;;
  20743. esac
  20744. case $ac_mode$ac_tag in
  20745. :[FHL]*:*);;
  20746. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  20747. :[FH]-) ac_tag=-:-;;
  20748. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20749. esac
  20750. ac_save_IFS=$IFS
  20751. IFS=:
  20752. set x $ac_tag
  20753. IFS=$ac_save_IFS
  20754. shift
  20755. ac_file=$1
  20756. shift
  20757. case $ac_mode in
  20758. :L) ac_source=$1;;
  20759. :[FH])
  20760. ac_file_inputs=
  20761. for ac_f
  20762. do
  20763. case $ac_f in
  20764. -) ac_f="$ac_tmp/stdin";;
  20765. *) # Look for the file first in the build tree, then in the source tree
  20766. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20767. # because $ac_f cannot contain `:'.
  20768. test -f "$ac_f" ||
  20769. case $ac_f in
  20770. [\\/$]*) false;;
  20771. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20772. esac ||
  20773. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  20774. esac
  20775. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  20776. as_fn_append ac_file_inputs " '$ac_f'"
  20777. done
  20778. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20779. # use $as_me), people would be surprised to read:
  20780. # /* config.h. Generated by config.status. */
  20781. configure_input='Generated from '`
  20782. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  20783. `' by configure.'
  20784. if test x"$ac_file" != x-; then
  20785. configure_input="$ac_file. $configure_input"
  20786. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  20787. $as_echo "$as_me: creating $ac_file" >&6;}
  20788. fi
  20789. # Neutralize special characters interpreted by sed in replacement strings.
  20790. case $configure_input in #(
  20791. *\&* | *\|* | *\\* )
  20792. ac_sed_conf_input=`$as_echo "$configure_input" |
  20793. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  20794. *) ac_sed_conf_input=$configure_input;;
  20795. esac
  20796. case $ac_tag in
  20797. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  20798. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  20799. esac
  20800. ;;
  20801. esac
  20802. ac_dir=`$as_dirname -- "$ac_file" ||
  20803. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20804. X"$ac_file" : 'X\(//\)[^/]' \| \
  20805. X"$ac_file" : 'X\(//\)$' \| \
  20806. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20807. $as_echo X"$ac_file" |
  20808. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20809. s//\1/
  20810. q
  20811. }
  20812. /^X\(\/\/\)[^/].*/{
  20813. s//\1/
  20814. q
  20815. }
  20816. /^X\(\/\/\)$/{
  20817. s//\1/
  20818. q
  20819. }
  20820. /^X\(\/\).*/{
  20821. s//\1/
  20822. q
  20823. }
  20824. s/.*/./; q'`
  20825. as_dir="$ac_dir"; as_fn_mkdir_p
  20826. ac_builddir=.
  20827. case "$ac_dir" in
  20828. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20829. *)
  20830. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  20831. # A ".." for each directory in $ac_dir_suffix.
  20832. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  20833. case $ac_top_builddir_sub in
  20834. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20835. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20836. esac ;;
  20837. esac
  20838. ac_abs_top_builddir=$ac_pwd
  20839. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20840. # for backward compatibility:
  20841. ac_top_builddir=$ac_top_build_prefix
  20842. case $srcdir in
  20843. .) # We are building in place.
  20844. ac_srcdir=.
  20845. ac_top_srcdir=$ac_top_builddir_sub
  20846. ac_abs_top_srcdir=$ac_pwd ;;
  20847. [\\/]* | ?:[\\/]* ) # Absolute name.
  20848. ac_srcdir=$srcdir$ac_dir_suffix;
  20849. ac_top_srcdir=$srcdir
  20850. ac_abs_top_srcdir=$srcdir ;;
  20851. *) # Relative name.
  20852. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20853. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20854. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20855. esac
  20856. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20857. case $ac_mode in
  20858. :F)
  20859. #
  20860. # CONFIG_FILE
  20861. #
  20862. case $INSTALL in
  20863. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20864. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20865. esac
  20866. _ACEOF
  20867. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20868. # If the template does not know about datarootdir, expand it.
  20869. # FIXME: This hack should be removed a few years after 2.60.
  20870. ac_datarootdir_hack=; ac_datarootdir_seen=
  20871. ac_sed_dataroot='
  20872. /datarootdir/ {
  20873. p
  20874. q
  20875. }
  20876. /@datadir@/p
  20877. /@docdir@/p
  20878. /@infodir@/p
  20879. /@localedir@/p
  20880. /@mandir@/p'
  20881. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  20882. *datarootdir*) ac_datarootdir_seen=yes;;
  20883. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20884. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20885. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20886. _ACEOF
  20887. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20888. ac_datarootdir_hack='
  20889. s&@datadir@&$datadir&g
  20890. s&@docdir@&$docdir&g
  20891. s&@infodir@&$infodir&g
  20892. s&@localedir@&$localedir&g
  20893. s&@mandir@&$mandir&g
  20894. s&\\\${datarootdir}&$datarootdir&g' ;;
  20895. esac
  20896. _ACEOF
  20897. # Neutralize VPATH when `$srcdir' = `.'.
  20898. # Shell code in configure.ac might set extrasub.
  20899. # FIXME: do we really want to maintain this feature?
  20900. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20901. ac_sed_extra="$ac_vpsub
  20902. $extrasub
  20903. _ACEOF
  20904. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20905. :t
  20906. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20907. s|@configure_input@|$ac_sed_conf_input|;t t
  20908. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20909. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  20910. s&@srcdir@&$ac_srcdir&;t t
  20911. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20912. s&@top_srcdir@&$ac_top_srcdir&;t t
  20913. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20914. s&@builddir@&$ac_builddir&;t t
  20915. s&@abs_builddir@&$ac_abs_builddir&;t t
  20916. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20917. s&@INSTALL@&$ac_INSTALL&;t t
  20918. $ac_datarootdir_hack
  20919. "
  20920. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  20921. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20922. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20923. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  20924. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  20925. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  20926. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20927. which seems to be undefined. Please make sure it is defined" >&5
  20928. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20929. which seems to be undefined. Please make sure it is defined" >&2;}
  20930. rm -f "$ac_tmp/stdin"
  20931. case $ac_file in
  20932. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  20933. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  20934. esac \
  20935. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20936. ;;
  20937. :H)
  20938. #
  20939. # CONFIG_HEADER
  20940. #
  20941. if test x"$ac_file" != x-; then
  20942. {
  20943. $as_echo "/* $configure_input */" \
  20944. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  20945. } >"$ac_tmp/config.h" \
  20946. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20947. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  20948. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  20949. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  20950. else
  20951. rm -f "$ac_file"
  20952. mv "$ac_tmp/config.h" "$ac_file" \
  20953. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20954. fi
  20955. else
  20956. $as_echo "/* $configure_input */" \
  20957. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  20958. || as_fn_error $? "could not create -" "$LINENO" 5
  20959. fi
  20960. ;;
  20961. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  20962. $as_echo "$as_me: executing $ac_file commands" >&6;}
  20963. ;;
  20964. esac
  20965. case $ac_file$ac_mode in
  20966. "libtool":C)
  20967. # See if we are running on zsh, and set the options which allow our
  20968. # commands through without removal of \ escapes.
  20969. if test -n "${ZSH_VERSION+set}" ; then
  20970. setopt NO_GLOB_SUBST
  20971. fi
  20972. cfgfile="${ofile}T"
  20973. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  20974. $RM "$cfgfile"
  20975. cat <<_LT_EOF >> "$cfgfile"
  20976. #! $SHELL
  20977. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  20978. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  20979. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  20980. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20981. #
  20982. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  20983. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  20984. # Foundation, Inc.
  20985. # Written by Gordon Matzigkeit, 1996
  20986. #
  20987. # This file is part of GNU Libtool.
  20988. #
  20989. # GNU Libtool is free software; you can redistribute it and/or
  20990. # modify it under the terms of the GNU General Public License as
  20991. # published by the Free Software Foundation; either version 2 of
  20992. # the License, or (at your option) any later version.
  20993. #
  20994. # As a special exception to the GNU General Public License,
  20995. # if you distribute this file as part of a program or library that
  20996. # is built using GNU Libtool, you may include this file under the
  20997. # same distribution terms that you use for the rest of that program.
  20998. #
  20999. # GNU Libtool is distributed in the hope that it will be useful,
  21000. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21001. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21002. # GNU General Public License for more details.
  21003. #
  21004. # You should have received a copy of the GNU General Public License
  21005. # along with GNU Libtool; see the file COPYING. If not, a copy
  21006. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  21007. # obtained by writing to the Free Software Foundation, Inc.,
  21008. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21009. # The names of the tagged configurations supported by this script.
  21010. available_tags="CXX "
  21011. # ### BEGIN LIBTOOL CONFIG
  21012. # Which release of libtool.m4 was used?
  21013. macro_version=$macro_version
  21014. macro_revision=$macro_revision
  21015. # Assembler program.
  21016. AS=$lt_AS
  21017. # DLL creation program.
  21018. DLLTOOL=$lt_DLLTOOL
  21019. # Object dumper program.
  21020. OBJDUMP=$lt_OBJDUMP
  21021. # Whether or not to build shared libraries.
  21022. build_libtool_libs=$enable_shared
  21023. # Whether or not to build static libraries.
  21024. build_old_libs=$enable_static
  21025. # What type of objects to build.
  21026. pic_mode=$pic_mode
  21027. # Whether or not to optimize for fast installation.
  21028. fast_install=$enable_fast_install
  21029. # Shell to use when invoking shell scripts.
  21030. SHELL=$lt_SHELL
  21031. # An echo program that protects backslashes.
  21032. ECHO=$lt_ECHO
  21033. # The PATH separator for the build system.
  21034. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21035. # The host system.
  21036. host_alias=$host_alias
  21037. host=$host
  21038. host_os=$host_os
  21039. # The build system.
  21040. build_alias=$build_alias
  21041. build=$build
  21042. build_os=$build_os
  21043. # A sed program that does not truncate output.
  21044. SED=$lt_SED
  21045. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21046. Xsed="\$SED -e 1s/^X//"
  21047. # A grep program that handles long lines.
  21048. GREP=$lt_GREP
  21049. # An ERE matcher.
  21050. EGREP=$lt_EGREP
  21051. # A literal string matcher.
  21052. FGREP=$lt_FGREP
  21053. # A BSD- or MS-compatible name lister.
  21054. NM=$lt_NM
  21055. # Whether we need soft or hard links.
  21056. LN_S=$lt_LN_S
  21057. # What is the maximum length of a command?
  21058. max_cmd_len=$max_cmd_len
  21059. # Object file suffix (normally "o").
  21060. objext=$ac_objext
  21061. # Executable file suffix (normally "").
  21062. exeext=$exeext
  21063. # whether the shell understands "unset".
  21064. lt_unset=$lt_unset
  21065. # turn spaces into newlines.
  21066. SP2NL=$lt_lt_SP2NL
  21067. # turn newlines into spaces.
  21068. NL2SP=$lt_lt_NL2SP
  21069. # convert \$build file names to \$host format.
  21070. to_host_file_cmd=$lt_cv_to_host_file_cmd
  21071. # convert \$build files to toolchain format.
  21072. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  21073. # Method to check whether dependent libraries are shared objects.
  21074. deplibs_check_method=$lt_deplibs_check_method
  21075. # Command to use when deplibs_check_method = "file_magic".
  21076. file_magic_cmd=$lt_file_magic_cmd
  21077. # How to find potential files when deplibs_check_method = "file_magic".
  21078. file_magic_glob=$lt_file_magic_glob
  21079. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  21080. want_nocaseglob=$lt_want_nocaseglob
  21081. # Command to associate shared and link libraries.
  21082. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  21083. # The archiver.
  21084. AR=$lt_AR
  21085. # Flags to create an archive.
  21086. AR_FLAGS=$lt_AR_FLAGS
  21087. # How to feed a file listing to the archiver.
  21088. archiver_list_spec=$lt_archiver_list_spec
  21089. # A symbol stripping program.
  21090. STRIP=$lt_STRIP
  21091. # Commands used to install an old-style archive.
  21092. RANLIB=$lt_RANLIB
  21093. old_postinstall_cmds=$lt_old_postinstall_cmds
  21094. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21095. # Whether to use a lock for old archive extraction.
  21096. lock_old_archive_extraction=$lock_old_archive_extraction
  21097. # A C compiler.
  21098. LTCC=$lt_CC
  21099. # LTCC compiler flags.
  21100. LTCFLAGS=$lt_CFLAGS
  21101. # Take the output of nm and produce a listing of raw symbols and C names.
  21102. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21103. # Transform the output of nm in a proper C declaration.
  21104. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21105. # Transform the output of nm in a C name address pair.
  21106. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21107. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21108. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21109. # Specify filename containing input files for \$NM.
  21110. nm_file_list_spec=$lt_nm_file_list_spec
  21111. # The root where to search for dependent libraries,and in which our libraries should be installed.
  21112. lt_sysroot=$lt_sysroot
  21113. # The name of the directory that contains temporary libtool files.
  21114. objdir=$objdir
  21115. # Used to examine libraries when file_magic_cmd begins with "file".
  21116. MAGIC_CMD=$MAGIC_CMD
  21117. # Must we lock files when doing compilation?
  21118. need_locks=$lt_need_locks
  21119. # Manifest tool.
  21120. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21121. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21122. DSYMUTIL=$lt_DSYMUTIL
  21123. # Tool to change global to local symbols on Mac OS X.
  21124. NMEDIT=$lt_NMEDIT
  21125. # Tool to manipulate fat objects and archives on Mac OS X.
  21126. LIPO=$lt_LIPO
  21127. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21128. OTOOL=$lt_OTOOL
  21129. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21130. OTOOL64=$lt_OTOOL64
  21131. # Old archive suffix (normally "a").
  21132. libext=$libext
  21133. # Shared library suffix (normally ".so").
  21134. shrext_cmds=$lt_shrext_cmds
  21135. # The commands to extract the exported symbol list from a shared archive.
  21136. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21137. # Variables whose values should be saved in libtool wrapper scripts and
  21138. # restored at link time.
  21139. variables_saved_for_relink=$lt_variables_saved_for_relink
  21140. # Do we need the "lib" prefix for modules?
  21141. need_lib_prefix=$need_lib_prefix
  21142. # Do we need a version for libraries?
  21143. need_version=$need_version
  21144. # Library versioning type.
  21145. version_type=$version_type
  21146. # Shared library runtime path variable.
  21147. runpath_var=$runpath_var
  21148. # Shared library path variable.
  21149. shlibpath_var=$shlibpath_var
  21150. # Is shlibpath searched before the hard-coded library search path?
  21151. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21152. # Format of library name prefix.
  21153. libname_spec=$lt_libname_spec
  21154. # List of archive names. First name is the real one, the rest are links.
  21155. # The last name is the one that the linker finds with -lNAME
  21156. library_names_spec=$lt_library_names_spec
  21157. # The coded name of the library, if different from the real name.
  21158. soname_spec=$lt_soname_spec
  21159. # Permission mode override for installation of shared libraries.
  21160. install_override_mode=$lt_install_override_mode
  21161. # Command to use after installation of a shared archive.
  21162. postinstall_cmds=$lt_postinstall_cmds
  21163. # Command to use after uninstallation of a shared archive.
  21164. postuninstall_cmds=$lt_postuninstall_cmds
  21165. # Commands used to finish a libtool library installation in a directory.
  21166. finish_cmds=$lt_finish_cmds
  21167. # As "finish_cmds", except a single script fragment to be evaled but
  21168. # not shown.
  21169. finish_eval=$lt_finish_eval
  21170. # Whether we should hardcode library paths into libraries.
  21171. hardcode_into_libs=$hardcode_into_libs
  21172. # Compile-time system search path for libraries.
  21173. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21174. # Run-time system search path for libraries.
  21175. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  21176. # Whether dlopen is supported.
  21177. dlopen_support=$enable_dlopen
  21178. # Whether dlopen of programs is supported.
  21179. dlopen_self=$enable_dlopen_self
  21180. # Whether dlopen of statically linked programs is supported.
  21181. dlopen_self_static=$enable_dlopen_self_static
  21182. # Commands to strip libraries.
  21183. old_striplib=$lt_old_striplib
  21184. striplib=$lt_striplib
  21185. # The linker used to build libraries.
  21186. LD=$lt_LD
  21187. # How to create reloadable object files.
  21188. reload_flag=$lt_reload_flag
  21189. reload_cmds=$lt_reload_cmds
  21190. # Commands used to build an old-style archive.
  21191. old_archive_cmds=$lt_old_archive_cmds
  21192. # A language specific compiler.
  21193. CC=$lt_compiler
  21194. # Is the compiler the GNU compiler?
  21195. with_gcc=$GCC
  21196. # Compiler flag to turn off builtin functions.
  21197. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  21198. # Additional compiler flags for building library objects.
  21199. pic_flag=$lt_lt_prog_compiler_pic
  21200. # How to pass a linker flag through the compiler.
  21201. wl=$lt_lt_prog_compiler_wl
  21202. # Compiler flag to prevent dynamic linking.
  21203. link_static_flag=$lt_lt_prog_compiler_static
  21204. # Does compiler simultaneously support -c and -o options?
  21205. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  21206. # Whether or not to add -lc for building shared libraries.
  21207. build_libtool_need_lc=$archive_cmds_need_lc
  21208. # Whether or not to disallow shared libs when runtime libs are static.
  21209. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  21210. # Compiler flag to allow reflexive dlopens.
  21211. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  21212. # Compiler flag to generate shared objects directly from archives.
  21213. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  21214. # Whether the compiler copes with passing no objects directly.
  21215. compiler_needs_object=$lt_compiler_needs_object
  21216. # Create an old-style archive from a shared archive.
  21217. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  21218. # Create a temporary old-style archive to link instead of a shared archive.
  21219. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  21220. # Commands used to build a shared archive.
  21221. archive_cmds=$lt_archive_cmds
  21222. archive_expsym_cmds=$lt_archive_expsym_cmds
  21223. # Commands used to build a loadable module if different from building
  21224. # a shared archive.
  21225. module_cmds=$lt_module_cmds
  21226. module_expsym_cmds=$lt_module_expsym_cmds
  21227. # Whether we are building with GNU ld or not.
  21228. with_gnu_ld=$lt_with_gnu_ld
  21229. # Flag that allows shared libraries with undefined symbols to be built.
  21230. allow_undefined_flag=$lt_allow_undefined_flag
  21231. # Flag that enforces no undefined symbols.
  21232. no_undefined_flag=$lt_no_undefined_flag
  21233. # Flag to hardcode \$libdir into a binary during linking.
  21234. # This must work even if \$libdir does not exist
  21235. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21236. # Whether we need a single "-rpath" flag with a separated argument.
  21237. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21238. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21239. # DIR into the resulting binary.
  21240. hardcode_direct=$hardcode_direct
  21241. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21242. # DIR into the resulting binary and the resulting library dependency is
  21243. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21244. # library is relocated.
  21245. hardcode_direct_absolute=$hardcode_direct_absolute
  21246. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21247. # into the resulting binary.
  21248. hardcode_minus_L=$hardcode_minus_L
  21249. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21250. # into the resulting binary.
  21251. hardcode_shlibpath_var=$hardcode_shlibpath_var
  21252. # Set to "yes" if building a shared library automatically hardcodes DIR
  21253. # into the library and all subsequent libraries and executables linked
  21254. # against it.
  21255. hardcode_automatic=$hardcode_automatic
  21256. # Set to yes if linker adds runtime paths of dependent libraries
  21257. # to runtime path list.
  21258. inherit_rpath=$inherit_rpath
  21259. # Whether libtool must link a program against all its dependency libraries.
  21260. link_all_deplibs=$link_all_deplibs
  21261. # Set to "yes" if exported symbols are required.
  21262. always_export_symbols=$always_export_symbols
  21263. # The commands to list exported symbols.
  21264. export_symbols_cmds=$lt_export_symbols_cmds
  21265. # Symbols that should not be listed in the preloaded symbols.
  21266. exclude_expsyms=$lt_exclude_expsyms
  21267. # Symbols that must always be exported.
  21268. include_expsyms=$lt_include_expsyms
  21269. # Commands necessary for linking programs (against libraries) with templates.
  21270. prelink_cmds=$lt_prelink_cmds
  21271. # Commands necessary for finishing linking programs.
  21272. postlink_cmds=$lt_postlink_cmds
  21273. # Specify filename containing input files.
  21274. file_list_spec=$lt_file_list_spec
  21275. # How to hardcode a shared library path into an executable.
  21276. hardcode_action=$hardcode_action
  21277. # The directories searched by this compiler when creating a shared library.
  21278. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  21279. # Dependencies to place before and after the objects being linked to
  21280. # create a shared library.
  21281. predep_objects=$lt_predep_objects
  21282. postdep_objects=$lt_postdep_objects
  21283. predeps=$lt_predeps
  21284. postdeps=$lt_postdeps
  21285. # The library search path used internally by the compiler when linking
  21286. # a shared library.
  21287. compiler_lib_search_path=$lt_compiler_lib_search_path
  21288. # ### END LIBTOOL CONFIG
  21289. _LT_EOF
  21290. case $host_os in
  21291. aix3*)
  21292. cat <<\_LT_EOF >> "$cfgfile"
  21293. # AIX sometimes has problems with the GCC collect2 program. For some
  21294. # reason, if we set the COLLECT_NAMES environment variable, the problems
  21295. # vanish in a puff of smoke.
  21296. if test "X${COLLECT_NAMES+set}" != Xset; then
  21297. COLLECT_NAMES=
  21298. export COLLECT_NAMES
  21299. fi
  21300. _LT_EOF
  21301. ;;
  21302. esac
  21303. ltmain="$ac_aux_dir/ltmain.sh"
  21304. # We use sed instead of cat because bash on DJGPP gets confused if
  21305. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21306. # text mode, it properly converts lines to CR/LF. This bash problem
  21307. # is reportedly fixed, but why not run on old versions too?
  21308. sed '$q' "$ltmain" >> "$cfgfile" \
  21309. || (rm -f "$cfgfile"; exit 1)
  21310. if test x"$xsi_shell" = xyes; then
  21311. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  21312. func_dirname ()\
  21313. {\
  21314. \ case ${1} in\
  21315. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21316. \ * ) func_dirname_result="${3}" ;;\
  21317. \ esac\
  21318. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  21319. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21320. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21321. test 0 -eq $? || _lt_function_replace_fail=:
  21322. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  21323. func_basename ()\
  21324. {\
  21325. \ func_basename_result="${1##*/}"\
  21326. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21327. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21328. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21329. test 0 -eq $? || _lt_function_replace_fail=:
  21330. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  21331. func_dirname_and_basename ()\
  21332. {\
  21333. \ case ${1} in\
  21334. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21335. \ * ) func_dirname_result="${3}" ;;\
  21336. \ esac\
  21337. \ func_basename_result="${1##*/}"\
  21338. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21339. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21340. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21341. test 0 -eq $? || _lt_function_replace_fail=:
  21342. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  21343. func_stripname ()\
  21344. {\
  21345. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  21346. \ # positional parameters, so assign one to ordinary parameter first.\
  21347. \ func_stripname_result=${3}\
  21348. \ func_stripname_result=${func_stripname_result#"${1}"}\
  21349. \ func_stripname_result=${func_stripname_result%"${2}"}\
  21350. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  21351. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21352. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21353. test 0 -eq $? || _lt_function_replace_fail=:
  21354. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  21355. func_split_long_opt ()\
  21356. {\
  21357. \ func_split_long_opt_name=${1%%=*}\
  21358. \ func_split_long_opt_arg=${1#*=}\
  21359. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  21360. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21361. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21362. test 0 -eq $? || _lt_function_replace_fail=:
  21363. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  21364. func_split_short_opt ()\
  21365. {\
  21366. \ func_split_short_opt_arg=${1#??}\
  21367. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  21368. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  21369. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21370. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21371. test 0 -eq $? || _lt_function_replace_fail=:
  21372. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  21373. func_lo2o ()\
  21374. {\
  21375. \ case ${1} in\
  21376. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  21377. \ *) func_lo2o_result=${1} ;;\
  21378. \ esac\
  21379. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  21380. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21381. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21382. test 0 -eq $? || _lt_function_replace_fail=:
  21383. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  21384. func_xform ()\
  21385. {\
  21386. func_xform_result=${1%.*}.lo\
  21387. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  21388. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21389. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21390. test 0 -eq $? || _lt_function_replace_fail=:
  21391. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  21392. func_arith ()\
  21393. {\
  21394. func_arith_result=$(( $* ))\
  21395. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  21396. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21397. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21398. test 0 -eq $? || _lt_function_replace_fail=:
  21399. sed -e '/^func_len ()$/,/^} # func_len /c\
  21400. func_len ()\
  21401. {\
  21402. func_len_result=${#1}\
  21403. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  21404. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21405. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21406. test 0 -eq $? || _lt_function_replace_fail=:
  21407. fi
  21408. if test x"$lt_shell_append" = xyes; then
  21409. sed -e '/^func_append ()$/,/^} # func_append /c\
  21410. func_append ()\
  21411. {\
  21412. eval "${1}+=\\${2}"\
  21413. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  21414. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21415. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21416. test 0 -eq $? || _lt_function_replace_fail=:
  21417. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  21418. func_append_quoted ()\
  21419. {\
  21420. \ func_quote_for_eval "${2}"\
  21421. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  21422. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  21423. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21424. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21425. test 0 -eq $? || _lt_function_replace_fail=:
  21426. # Save a `func_append' function call where possible by direct use of '+='
  21427. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  21428. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21429. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21430. test 0 -eq $? || _lt_function_replace_fail=:
  21431. else
  21432. # Save a `func_append' function call even when '+=' is not available
  21433. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  21434. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21435. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21436. test 0 -eq $? || _lt_function_replace_fail=:
  21437. fi
  21438. if test x"$_lt_function_replace_fail" = x":"; then
  21439. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  21440. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  21441. fi
  21442. mv -f "$cfgfile" "$ofile" ||
  21443. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  21444. chmod +x "$ofile"
  21445. cat <<_LT_EOF >> "$ofile"
  21446. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  21447. # The linker used to build libraries.
  21448. LD=$lt_LD_CXX
  21449. # How to create reloadable object files.
  21450. reload_flag=$lt_reload_flag_CXX
  21451. reload_cmds=$lt_reload_cmds_CXX
  21452. # Commands used to build an old-style archive.
  21453. old_archive_cmds=$lt_old_archive_cmds_CXX
  21454. # A language specific compiler.
  21455. CC=$lt_compiler_CXX
  21456. # Is the compiler the GNU compiler?
  21457. with_gcc=$GCC_CXX
  21458. # Compiler flag to turn off builtin functions.
  21459. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  21460. # Additional compiler flags for building library objects.
  21461. pic_flag=$lt_lt_prog_compiler_pic_CXX
  21462. # How to pass a linker flag through the compiler.
  21463. wl=$lt_lt_prog_compiler_wl_CXX
  21464. # Compiler flag to prevent dynamic linking.
  21465. link_static_flag=$lt_lt_prog_compiler_static_CXX
  21466. # Does compiler simultaneously support -c and -o options?
  21467. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  21468. # Whether or not to add -lc for building shared libraries.
  21469. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  21470. # Whether or not to disallow shared libs when runtime libs are static.
  21471. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  21472. # Compiler flag to allow reflexive dlopens.
  21473. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  21474. # Compiler flag to generate shared objects directly from archives.
  21475. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  21476. # Whether the compiler copes with passing no objects directly.
  21477. compiler_needs_object=$lt_compiler_needs_object_CXX
  21478. # Create an old-style archive from a shared archive.
  21479. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  21480. # Create a temporary old-style archive to link instead of a shared archive.
  21481. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  21482. # Commands used to build a shared archive.
  21483. archive_cmds=$lt_archive_cmds_CXX
  21484. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  21485. # Commands used to build a loadable module if different from building
  21486. # a shared archive.
  21487. module_cmds=$lt_module_cmds_CXX
  21488. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  21489. # Whether we are building with GNU ld or not.
  21490. with_gnu_ld=$lt_with_gnu_ld_CXX
  21491. # Flag that allows shared libraries with undefined symbols to be built.
  21492. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  21493. # Flag that enforces no undefined symbols.
  21494. no_undefined_flag=$lt_no_undefined_flag_CXX
  21495. # Flag to hardcode \$libdir into a binary during linking.
  21496. # This must work even if \$libdir does not exist
  21497. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  21498. # Whether we need a single "-rpath" flag with a separated argument.
  21499. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  21500. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21501. # DIR into the resulting binary.
  21502. hardcode_direct=$hardcode_direct_CXX
  21503. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21504. # DIR into the resulting binary and the resulting library dependency is
  21505. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21506. # library is relocated.
  21507. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  21508. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21509. # into the resulting binary.
  21510. hardcode_minus_L=$hardcode_minus_L_CXX
  21511. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21512. # into the resulting binary.
  21513. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  21514. # Set to "yes" if building a shared library automatically hardcodes DIR
  21515. # into the library and all subsequent libraries and executables linked
  21516. # against it.
  21517. hardcode_automatic=$hardcode_automatic_CXX
  21518. # Set to yes if linker adds runtime paths of dependent libraries
  21519. # to runtime path list.
  21520. inherit_rpath=$inherit_rpath_CXX
  21521. # Whether libtool must link a program against all its dependency libraries.
  21522. link_all_deplibs=$link_all_deplibs_CXX
  21523. # Set to "yes" if exported symbols are required.
  21524. always_export_symbols=$always_export_symbols_CXX
  21525. # The commands to list exported symbols.
  21526. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  21527. # Symbols that should not be listed in the preloaded symbols.
  21528. exclude_expsyms=$lt_exclude_expsyms_CXX
  21529. # Symbols that must always be exported.
  21530. include_expsyms=$lt_include_expsyms_CXX
  21531. # Commands necessary for linking programs (against libraries) with templates.
  21532. prelink_cmds=$lt_prelink_cmds_CXX
  21533. # Commands necessary for finishing linking programs.
  21534. postlink_cmds=$lt_postlink_cmds_CXX
  21535. # Specify filename containing input files.
  21536. file_list_spec=$lt_file_list_spec_CXX
  21537. # How to hardcode a shared library path into an executable.
  21538. hardcode_action=$hardcode_action_CXX
  21539. # The directories searched by this compiler when creating a shared library.
  21540. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  21541. # Dependencies to place before and after the objects being linked to
  21542. # create a shared library.
  21543. predep_objects=$lt_predep_objects_CXX
  21544. postdep_objects=$lt_postdep_objects_CXX
  21545. predeps=$lt_predeps_CXX
  21546. postdeps=$lt_postdeps_CXX
  21547. # The library search path used internally by the compiler when linking
  21548. # a shared library.
  21549. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  21550. # ### END LIBTOOL TAG CONFIG: CXX
  21551. _LT_EOF
  21552. ;;
  21553. esac
  21554. done # for ac_tag
  21555. as_fn_exit 0
  21556. _ACEOF
  21557. ac_clean_files=$ac_clean_files_save
  21558. test $ac_write_fail = 0 ||
  21559. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  21560. # configure is writing to config.log, and then calls config.status.
  21561. # config.status does its own redirection, appending to config.log.
  21562. # Unfortunately, on DOS this fails, as config.log is still kept open
  21563. # by configure, so config.status won't be able to write to it; its
  21564. # output is simply discarded. So we exec the FD to /dev/null,
  21565. # effectively closing config.log, so it can be properly (re)opened and
  21566. # appended to by config.status. When coming back to configure, we
  21567. # need to make the FD available again.
  21568. if test "$no_create" != yes; then
  21569. ac_cs_success=:
  21570. ac_config_status_args=
  21571. test "$silent" = yes &&
  21572. ac_config_status_args="$ac_config_status_args --quiet"
  21573. exec 5>/dev/null
  21574. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21575. exec 5>>config.log
  21576. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21577. # would make configure fail if this is the last instruction.
  21578. $ac_cs_success || as_fn_exit 1
  21579. fi
  21580. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  21581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  21582. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  21583. fi
  21584. chmod a+x sdl2-config