configure 734 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122
  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_threads
  735. enable_timers
  736. enable_file
  737. enable_loadso
  738. enable_cpuinfo
  739. enable_assembly
  740. enable_ssemath
  741. enable_mmx
  742. enable_3dnow
  743. enable_sse
  744. enable_sse2
  745. enable_altivec
  746. enable_oss
  747. enable_alsa
  748. with_alsa_prefix
  749. with_alsa_inc_prefix
  750. enable_alsatest
  751. enable_alsa_shared
  752. enable_esd
  753. with_esd_prefix
  754. with_esd_exec_prefix
  755. enable_esdtest
  756. enable_esd_shared
  757. enable_pulseaudio
  758. enable_pulseaudio_shared
  759. enable_arts
  760. enable_arts_shared
  761. enable_nas
  762. enable_nas_shared
  763. enable_sndio
  764. enable_sndio_shared
  765. enable_diskaudio
  766. enable_dummyaudio
  767. enable_video_x11
  768. with_x
  769. enable_x11_shared
  770. enable_video_x11_xcursor
  771. enable_video_x11_xinerama
  772. enable_video_x11_xinput
  773. enable_video_x11_xrandr
  774. enable_video_x11_scrnsaver
  775. enable_video_x11_xshape
  776. enable_video_x11_vm
  777. enable_video_cocoa
  778. enable_video_directfb
  779. enable_directfb_shared
  780. enable_fusionsound
  781. enable_fusionsound_shared
  782. enable_video_dummy
  783. enable_video_opengl
  784. enable_video_opengles
  785. enable_libudev
  786. enable_dbus
  787. enable_input_tslib
  788. enable_pthreads
  789. enable_pthread_sem
  790. enable_directx
  791. enable_sdl_dlopen
  792. enable_clock_gettime
  793. enable_rpath
  794. enable_render_d3d
  795. '
  796. ac_precious_vars='build_alias
  797. host_alias
  798. target_alias
  799. CC
  800. CFLAGS
  801. LDFLAGS
  802. LIBS
  803. CPPFLAGS
  804. CPP
  805. CXX
  806. CXXFLAGS
  807. CCC
  808. CXXCPP
  809. XMKMF'
  810. # Initialize some variables set by options.
  811. ac_init_help=
  812. ac_init_version=false
  813. ac_unrecognized_opts=
  814. ac_unrecognized_sep=
  815. # The variables have the same names as the options, with
  816. # dashes changed to underlines.
  817. cache_file=/dev/null
  818. exec_prefix=NONE
  819. no_create=
  820. no_recursion=
  821. prefix=NONE
  822. program_prefix=NONE
  823. program_suffix=NONE
  824. program_transform_name=s,x,x,
  825. silent=
  826. site=
  827. srcdir=
  828. verbose=
  829. x_includes=NONE
  830. x_libraries=NONE
  831. # Installation directory options.
  832. # These are left unexpanded so users can "make install exec_prefix=/foo"
  833. # and all the variables that are supposed to be based on exec_prefix
  834. # by default will actually change.
  835. # Use braces instead of parens because sh, perl, etc. also accept them.
  836. # (The list follows the same order as the GNU Coding Standards.)
  837. bindir='${exec_prefix}/bin'
  838. sbindir='${exec_prefix}/sbin'
  839. libexecdir='${exec_prefix}/libexec'
  840. datarootdir='${prefix}/share'
  841. datadir='${datarootdir}'
  842. sysconfdir='${prefix}/etc'
  843. sharedstatedir='${prefix}/com'
  844. localstatedir='${prefix}/var'
  845. includedir='${prefix}/include'
  846. oldincludedir='/usr/include'
  847. docdir='${datarootdir}/doc/${PACKAGE}'
  848. infodir='${datarootdir}/info'
  849. htmldir='${docdir}'
  850. dvidir='${docdir}'
  851. pdfdir='${docdir}'
  852. psdir='${docdir}'
  853. libdir='${exec_prefix}/lib'
  854. localedir='${datarootdir}/locale'
  855. mandir='${datarootdir}/man'
  856. ac_prev=
  857. ac_dashdash=
  858. for ac_option
  859. do
  860. # If the previous option needs an argument, assign it.
  861. if test -n "$ac_prev"; then
  862. eval $ac_prev=\$ac_option
  863. ac_prev=
  864. continue
  865. fi
  866. case $ac_option in
  867. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  868. *=) ac_optarg= ;;
  869. *) ac_optarg=yes ;;
  870. esac
  871. # Accept the important Cygnus configure options, so we can diagnose typos.
  872. case $ac_dashdash$ac_option in
  873. --)
  874. ac_dashdash=yes ;;
  875. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  876. ac_prev=bindir ;;
  877. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  878. bindir=$ac_optarg ;;
  879. -build | --build | --buil | --bui | --bu)
  880. ac_prev=build_alias ;;
  881. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  882. build_alias=$ac_optarg ;;
  883. -cache-file | --cache-file | --cache-fil | --cache-fi \
  884. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  885. ac_prev=cache_file ;;
  886. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  887. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  888. cache_file=$ac_optarg ;;
  889. --config-cache | -C)
  890. cache_file=config.cache ;;
  891. -datadir | --datadir | --datadi | --datad)
  892. ac_prev=datadir ;;
  893. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  894. datadir=$ac_optarg ;;
  895. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  896. | --dataroo | --dataro | --datar)
  897. ac_prev=datarootdir ;;
  898. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  899. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  900. datarootdir=$ac_optarg ;;
  901. -disable-* | --disable-*)
  902. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  903. # Reject names that are not valid shell variable names.
  904. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  905. as_fn_error $? "invalid feature name: $ac_useropt"
  906. ac_useropt_orig=$ac_useropt
  907. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  908. case $ac_user_opts in
  909. *"
  910. "enable_$ac_useropt"
  911. "*) ;;
  912. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  913. ac_unrecognized_sep=', ';;
  914. esac
  915. eval enable_$ac_useropt=no ;;
  916. -docdir | --docdir | --docdi | --doc | --do)
  917. ac_prev=docdir ;;
  918. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  919. docdir=$ac_optarg ;;
  920. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  921. ac_prev=dvidir ;;
  922. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  923. dvidir=$ac_optarg ;;
  924. -enable-* | --enable-*)
  925. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  926. # Reject names that are not valid shell variable names.
  927. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  928. as_fn_error $? "invalid feature name: $ac_useropt"
  929. ac_useropt_orig=$ac_useropt
  930. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  931. case $ac_user_opts in
  932. *"
  933. "enable_$ac_useropt"
  934. "*) ;;
  935. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  936. ac_unrecognized_sep=', ';;
  937. esac
  938. eval enable_$ac_useropt=\$ac_optarg ;;
  939. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  940. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  941. | --exec | --exe | --ex)
  942. ac_prev=exec_prefix ;;
  943. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  944. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  945. | --exec=* | --exe=* | --ex=*)
  946. exec_prefix=$ac_optarg ;;
  947. -gas | --gas | --ga | --g)
  948. # Obsolete; use --with-gas.
  949. with_gas=yes ;;
  950. -help | --help | --hel | --he | -h)
  951. ac_init_help=long ;;
  952. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  953. ac_init_help=recursive ;;
  954. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  955. ac_init_help=short ;;
  956. -host | --host | --hos | --ho)
  957. ac_prev=host_alias ;;
  958. -host=* | --host=* | --hos=* | --ho=*)
  959. host_alias=$ac_optarg ;;
  960. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  961. ac_prev=htmldir ;;
  962. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  963. | --ht=*)
  964. htmldir=$ac_optarg ;;
  965. -includedir | --includedir | --includedi | --included | --include \
  966. | --includ | --inclu | --incl | --inc)
  967. ac_prev=includedir ;;
  968. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  969. | --includ=* | --inclu=* | --incl=* | --inc=*)
  970. includedir=$ac_optarg ;;
  971. -infodir | --infodir | --infodi | --infod | --info | --inf)
  972. ac_prev=infodir ;;
  973. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  974. infodir=$ac_optarg ;;
  975. -libdir | --libdir | --libdi | --libd)
  976. ac_prev=libdir ;;
  977. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  978. libdir=$ac_optarg ;;
  979. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  980. | --libexe | --libex | --libe)
  981. ac_prev=libexecdir ;;
  982. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  983. | --libexe=* | --libex=* | --libe=*)
  984. libexecdir=$ac_optarg ;;
  985. -localedir | --localedir | --localedi | --localed | --locale)
  986. ac_prev=localedir ;;
  987. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  988. localedir=$ac_optarg ;;
  989. -localstatedir | --localstatedir | --localstatedi | --localstated \
  990. | --localstate | --localstat | --localsta | --localst | --locals)
  991. ac_prev=localstatedir ;;
  992. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  993. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  994. localstatedir=$ac_optarg ;;
  995. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  996. ac_prev=mandir ;;
  997. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  998. mandir=$ac_optarg ;;
  999. -nfp | --nfp | --nf)
  1000. # Obsolete; use --without-fp.
  1001. with_fp=no ;;
  1002. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1003. | --no-cr | --no-c | -n)
  1004. no_create=yes ;;
  1005. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1006. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1007. no_recursion=yes ;;
  1008. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1009. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1010. | --oldin | --oldi | --old | --ol | --o)
  1011. ac_prev=oldincludedir ;;
  1012. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1013. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1014. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1015. oldincludedir=$ac_optarg ;;
  1016. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1017. ac_prev=prefix ;;
  1018. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1019. prefix=$ac_optarg ;;
  1020. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1021. | --program-pre | --program-pr | --program-p)
  1022. ac_prev=program_prefix ;;
  1023. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1024. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1025. program_prefix=$ac_optarg ;;
  1026. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1027. | --program-suf | --program-su | --program-s)
  1028. ac_prev=program_suffix ;;
  1029. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1030. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1031. program_suffix=$ac_optarg ;;
  1032. -program-transform-name | --program-transform-name \
  1033. | --program-transform-nam | --program-transform-na \
  1034. | --program-transform-n | --program-transform- \
  1035. | --program-transform | --program-transfor \
  1036. | --program-transfo | --program-transf \
  1037. | --program-trans | --program-tran \
  1038. | --progr-tra | --program-tr | --program-t)
  1039. ac_prev=program_transform_name ;;
  1040. -program-transform-name=* | --program-transform-name=* \
  1041. | --program-transform-nam=* | --program-transform-na=* \
  1042. | --program-transform-n=* | --program-transform-=* \
  1043. | --program-transform=* | --program-transfor=* \
  1044. | --program-transfo=* | --program-transf=* \
  1045. | --program-trans=* | --program-tran=* \
  1046. | --progr-tra=* | --program-tr=* | --program-t=*)
  1047. program_transform_name=$ac_optarg ;;
  1048. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1049. ac_prev=pdfdir ;;
  1050. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1051. pdfdir=$ac_optarg ;;
  1052. -psdir | --psdir | --psdi | --psd | --ps)
  1053. ac_prev=psdir ;;
  1054. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1055. psdir=$ac_optarg ;;
  1056. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1057. | -silent | --silent | --silen | --sile | --sil)
  1058. silent=yes ;;
  1059. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1060. ac_prev=sbindir ;;
  1061. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1062. | --sbi=* | --sb=*)
  1063. sbindir=$ac_optarg ;;
  1064. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1065. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1066. | --sharedst | --shareds | --shared | --share | --shar \
  1067. | --sha | --sh)
  1068. ac_prev=sharedstatedir ;;
  1069. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1070. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1071. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1072. | --sha=* | --sh=*)
  1073. sharedstatedir=$ac_optarg ;;
  1074. -site | --site | --sit)
  1075. ac_prev=site ;;
  1076. -site=* | --site=* | --sit=*)
  1077. site=$ac_optarg ;;
  1078. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1079. ac_prev=srcdir ;;
  1080. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1081. srcdir=$ac_optarg ;;
  1082. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1083. | --syscon | --sysco | --sysc | --sys | --sy)
  1084. ac_prev=sysconfdir ;;
  1085. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1086. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1087. sysconfdir=$ac_optarg ;;
  1088. -target | --target | --targe | --targ | --tar | --ta | --t)
  1089. ac_prev=target_alias ;;
  1090. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1091. target_alias=$ac_optarg ;;
  1092. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1093. verbose=yes ;;
  1094. -version | --version | --versio | --versi | --vers | -V)
  1095. ac_init_version=: ;;
  1096. -with-* | --with-*)
  1097. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1098. # Reject names that are not valid shell variable names.
  1099. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1100. as_fn_error $? "invalid package name: $ac_useropt"
  1101. ac_useropt_orig=$ac_useropt
  1102. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1103. case $ac_user_opts in
  1104. *"
  1105. "with_$ac_useropt"
  1106. "*) ;;
  1107. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1108. ac_unrecognized_sep=', ';;
  1109. esac
  1110. eval with_$ac_useropt=\$ac_optarg ;;
  1111. -without-* | --without-*)
  1112. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1113. # Reject names that are not valid shell variable names.
  1114. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1115. as_fn_error $? "invalid package name: $ac_useropt"
  1116. ac_useropt_orig=$ac_useropt
  1117. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1118. case $ac_user_opts in
  1119. *"
  1120. "with_$ac_useropt"
  1121. "*) ;;
  1122. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1123. ac_unrecognized_sep=', ';;
  1124. esac
  1125. eval with_$ac_useropt=no ;;
  1126. --x)
  1127. # Obsolete; use --with-x.
  1128. with_x=yes ;;
  1129. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1130. | --x-incl | --x-inc | --x-in | --x-i)
  1131. ac_prev=x_includes ;;
  1132. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1133. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1134. x_includes=$ac_optarg ;;
  1135. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1136. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1137. ac_prev=x_libraries ;;
  1138. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1139. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1140. x_libraries=$ac_optarg ;;
  1141. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1142. Try \`$0 --help' for more information"
  1143. ;;
  1144. *=*)
  1145. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1146. # Reject names that are not valid shell variable names.
  1147. case $ac_envvar in #(
  1148. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1149. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1150. esac
  1151. eval $ac_envvar=\$ac_optarg
  1152. export $ac_envvar ;;
  1153. *)
  1154. # FIXME: should be removed in autoconf 3.0.
  1155. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1156. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1157. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1158. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1159. ;;
  1160. esac
  1161. done
  1162. if test -n "$ac_prev"; then
  1163. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1164. as_fn_error $? "missing argument to $ac_option"
  1165. fi
  1166. if test -n "$ac_unrecognized_opts"; then
  1167. case $enable_option_checking in
  1168. no) ;;
  1169. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1170. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1171. esac
  1172. fi
  1173. # Check all directory arguments for consistency.
  1174. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1175. datadir sysconfdir sharedstatedir localstatedir includedir \
  1176. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1177. libdir localedir mandir
  1178. do
  1179. eval ac_val=\$$ac_var
  1180. # Remove trailing slashes.
  1181. case $ac_val in
  1182. */ )
  1183. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1184. eval $ac_var=\$ac_val;;
  1185. esac
  1186. # Be sure to have absolute directory names.
  1187. case $ac_val in
  1188. [\\/$]* | ?:[\\/]* ) continue;;
  1189. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1190. esac
  1191. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1192. done
  1193. # There might be people who depend on the old broken behavior: `$host'
  1194. # used to hold the argument of --host etc.
  1195. # FIXME: To remove some day.
  1196. build=$build_alias
  1197. host=$host_alias
  1198. target=$target_alias
  1199. # FIXME: To remove some day.
  1200. if test "x$host_alias" != x; then
  1201. if test "x$build_alias" = x; then
  1202. cross_compiling=maybe
  1203. elif test "x$build_alias" != "x$host_alias"; then
  1204. cross_compiling=yes
  1205. fi
  1206. fi
  1207. ac_tool_prefix=
  1208. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1209. test "$silent" = yes && exec 6>/dev/null
  1210. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1211. ac_ls_di=`ls -di .` &&
  1212. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1213. as_fn_error $? "working directory cannot be determined"
  1214. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1215. as_fn_error $? "pwd does not report name of working directory"
  1216. # Find the source files, if location was not specified.
  1217. if test -z "$srcdir"; then
  1218. ac_srcdir_defaulted=yes
  1219. # Try the directory containing this script, then the parent directory.
  1220. ac_confdir=`$as_dirname -- "$as_myself" ||
  1221. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1222. X"$as_myself" : 'X\(//\)[^/]' \| \
  1223. X"$as_myself" : 'X\(//\)$' \| \
  1224. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1225. $as_echo X"$as_myself" |
  1226. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1227. s//\1/
  1228. q
  1229. }
  1230. /^X\(\/\/\)[^/].*/{
  1231. s//\1/
  1232. q
  1233. }
  1234. /^X\(\/\/\)$/{
  1235. s//\1/
  1236. q
  1237. }
  1238. /^X\(\/\).*/{
  1239. s//\1/
  1240. q
  1241. }
  1242. s/.*/./; q'`
  1243. srcdir=$ac_confdir
  1244. if test ! -r "$srcdir/$ac_unique_file"; then
  1245. srcdir=..
  1246. fi
  1247. else
  1248. ac_srcdir_defaulted=no
  1249. fi
  1250. if test ! -r "$srcdir/$ac_unique_file"; then
  1251. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1252. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1253. fi
  1254. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1255. ac_abs_confdir=`(
  1256. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1257. pwd)`
  1258. # When building in place, set srcdir=.
  1259. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1260. srcdir=.
  1261. fi
  1262. # Remove unnecessary trailing slashes from srcdir.
  1263. # Double slashes in file names in object file debugging info
  1264. # mess up M-x gdb in Emacs.
  1265. case $srcdir in
  1266. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1267. esac
  1268. for ac_var in $ac_precious_vars; do
  1269. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1270. eval ac_env_${ac_var}_value=\$${ac_var}
  1271. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1272. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1273. done
  1274. #
  1275. # Report the --help message.
  1276. #
  1277. if test "$ac_init_help" = "long"; then
  1278. # Omit some internal or obsolete options to make the list less imposing.
  1279. # This message is too long to be a string in the A/UX 3.1 sh.
  1280. cat <<_ACEOF
  1281. \`configure' configures this package to adapt to many kinds of systems.
  1282. Usage: $0 [OPTION]... [VAR=VALUE]...
  1283. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1284. VAR=VALUE. See below for descriptions of some of the useful variables.
  1285. Defaults for the options are specified in brackets.
  1286. Configuration:
  1287. -h, --help display this help and exit
  1288. --help=short display options specific to this package
  1289. --help=recursive display the short help of all the included packages
  1290. -V, --version display version information and exit
  1291. -q, --quiet, --silent do not print \`checking ...' messages
  1292. --cache-file=FILE cache test results in FILE [disabled]
  1293. -C, --config-cache alias for \`--cache-file=config.cache'
  1294. -n, --no-create do not create output files
  1295. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1296. Installation directories:
  1297. --prefix=PREFIX install architecture-independent files in PREFIX
  1298. [$ac_default_prefix]
  1299. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1300. [PREFIX]
  1301. By default, \`make install' will install all the files in
  1302. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1303. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1304. for instance \`--prefix=\$HOME'.
  1305. For better control, use the options below.
  1306. Fine tuning of the installation directories:
  1307. --bindir=DIR user executables [EPREFIX/bin]
  1308. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1309. --libexecdir=DIR program executables [EPREFIX/libexec]
  1310. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1311. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1312. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1313. --libdir=DIR object code libraries [EPREFIX/lib]
  1314. --includedir=DIR C header files [PREFIX/include]
  1315. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1316. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1317. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1318. --infodir=DIR info documentation [DATAROOTDIR/info]
  1319. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1320. --mandir=DIR man documentation [DATAROOTDIR/man]
  1321. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1322. --htmldir=DIR html documentation [DOCDIR]
  1323. --dvidir=DIR dvi documentation [DOCDIR]
  1324. --pdfdir=DIR pdf documentation [DOCDIR]
  1325. --psdir=DIR ps documentation [DOCDIR]
  1326. _ACEOF
  1327. cat <<\_ACEOF
  1328. X features:
  1329. --x-includes=DIR X include files are in DIR
  1330. --x-libraries=DIR X library files are in DIR
  1331. System types:
  1332. --build=BUILD configure for building on BUILD [guessed]
  1333. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1334. _ACEOF
  1335. fi
  1336. if test -n "$ac_init_help"; then
  1337. cat <<\_ACEOF
  1338. Optional Features:
  1339. --disable-option-checking ignore unrecognized --enable/--with options
  1340. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1341. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1342. --enable-shared[=PKGS] build shared libraries [default=yes]
  1343. --enable-static[=PKGS] build static libraries [default=yes]
  1344. --enable-fast-install[=PKGS]
  1345. optimize for fast installation [default=yes]
  1346. --disable-libtool-lock avoid locking (might break parallel builds)
  1347. --enable-assertions Enable internal sanity checks
  1348. (auto/disabled/release/enabled/paranoid)
  1349. [[default=auto]]
  1350. --enable-dependency-tracking
  1351. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1352. --enable-libc Use the system C library [[default=yes]]
  1353. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1354. --enable-atomic Enable the atomic operations subsystem
  1355. [[default=yes]]
  1356. --enable-audio Enable the audio subsystem [[default=yes]]
  1357. --enable-video Enable the video subsystem [[default=yes]]
  1358. --enable-render Enable the render subsystem [[default=yes]]
  1359. --enable-events Enable the events subsystem [[default=yes]]
  1360. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1361. --enable-haptic Enable the haptic (force feedback) subsystem
  1362. [[default=yes]]
  1363. --enable-power Enable the power subsystem [[default=yes]]
  1364. --enable-threads Enable the threading subsystem [[default=yes]]
  1365. --enable-timers Enable the timer subsystem [[default=yes]]
  1366. --enable-file Enable the file subsystem [[default=yes]]
  1367. --enable-loadso Enable the shared object loading subsystem
  1368. [[default=yes]]
  1369. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1370. --enable-atomic Enable the atomic operations [[default=yes]]
  1371. --enable-assembly Enable assembly routines [[default=yes]]
  1372. --enable-ssemath Allow GCC to use SSE floating point math
  1373. [[default=no]]
  1374. --enable-mmx use MMX assembly routines [[default=yes]]
  1375. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1376. --enable-sse use SSE assembly routines [[default=yes]]
  1377. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1378. --enable-altivec use Altivec assembly routines [[default=yes]]
  1379. --enable-oss support the OSS audio API [[default=maybe]]
  1380. --enable-alsa support the ALSA audio API [[default=yes]]
  1381. --disable-alsatest Do not try to compile and run a test Alsa program
  1382. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1383. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1384. --disable-esdtest Do not try to compile and run a test ESD program
  1385. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1386. --enable-pulseaudio use PulseAudio [[default=yes]]
  1387. --enable-pulseaudio-shared
  1388. dynamically load PulseAudio support [[default=yes]]
  1389. --enable-arts support the Analog Real Time Synthesizer
  1390. [[default=yes]]
  1391. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1392. --enable-nas support the NAS audio API [[default=yes]]
  1393. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1394. --enable-sndio support the sndio audio API [[default=yes]]
  1395. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1396. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1397. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1398. --enable-video-x11 use X11 video driver [[default=yes]]
  1399. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1400. --enable-video-x11-xcursor
  1401. enable X11 Xcursor support [[default=yes]]
  1402. --enable-video-x11-xinerama
  1403. enable X11 Xinerama support [[default=yes]]
  1404. --enable-video-x11-xinput
  1405. enable X11 XInput extension for manymouse, tablets,
  1406. etc [[default=yes]]
  1407. --enable-video-x11-xrandr
  1408. enable X11 Xrandr extension for fullscreen
  1409. [[default=yes]]
  1410. --enable-video-x11-scrnsaver
  1411. enable X11 screensaver extension [[default=yes]]
  1412. --enable-video-x11-xshape
  1413. enable X11 XShape support [[default=yes]]
  1414. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1415. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1416. --enable-video-directfb use DirectFB video driver [[default=no]]
  1417. --enable-directfb-shared
  1418. dynamically load directfb support [[default=yes]]
  1419. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1420. --enable-fusionsound-shared
  1421. dynamically load fusionsound audio support
  1422. [[default=yes]]
  1423. --enable-video-dummy use dummy video driver [[default=yes]]
  1424. --enable-video-opengl include OpenGL support [[default=yes]]
  1425. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1426. --enable-libudev enable libudev support [[default=yes]]
  1427. --enable-dbus enable D-Bus support [[default=yes]]
  1428. --enable-input-tslib use the Touchscreen library for input
  1429. [[default=yes]]
  1430. --enable-pthreads use POSIX threads for multi-threading
  1431. [[default=yes]]
  1432. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1433. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1434. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1435. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1436. UNIX [[default=yes]]
  1437. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1438. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1439. Optional Packages:
  1440. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1441. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1442. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1443. both]
  1444. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1445. --with-sysroot=DIR Search for dependent libraries within DIR
  1446. (or the compiler's sysroot if not specified).
  1447. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1448. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1449. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1450. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1451. --with-x use the X Window System
  1452. Some influential environment variables:
  1453. CC C compiler command
  1454. CFLAGS C compiler flags
  1455. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1456. nonstandard directory <lib dir>
  1457. LIBS libraries to pass to the linker, e.g. -l<library>
  1458. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1459. you have headers in a nonstandard directory <include dir>
  1460. CPP C preprocessor
  1461. CXX C++ compiler command
  1462. CXXFLAGS C++ compiler flags
  1463. CXXCPP C++ preprocessor
  1464. XMKMF Path to xmkmf, Makefile generator for X Window System
  1465. Use these variables to override the choices made by `configure' or to help
  1466. it to find libraries and programs with nonstandard names/locations.
  1467. Report bugs to the package provider.
  1468. _ACEOF
  1469. ac_status=$?
  1470. fi
  1471. if test "$ac_init_help" = "recursive"; then
  1472. # If there are subdirs, report their specific --help.
  1473. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1474. test -d "$ac_dir" ||
  1475. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1476. continue
  1477. ac_builddir=.
  1478. case "$ac_dir" in
  1479. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1480. *)
  1481. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1482. # A ".." for each directory in $ac_dir_suffix.
  1483. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1484. case $ac_top_builddir_sub in
  1485. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1486. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1487. esac ;;
  1488. esac
  1489. ac_abs_top_builddir=$ac_pwd
  1490. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1491. # for backward compatibility:
  1492. ac_top_builddir=$ac_top_build_prefix
  1493. case $srcdir in
  1494. .) # We are building in place.
  1495. ac_srcdir=.
  1496. ac_top_srcdir=$ac_top_builddir_sub
  1497. ac_abs_top_srcdir=$ac_pwd ;;
  1498. [\\/]* | ?:[\\/]* ) # Absolute name.
  1499. ac_srcdir=$srcdir$ac_dir_suffix;
  1500. ac_top_srcdir=$srcdir
  1501. ac_abs_top_srcdir=$srcdir ;;
  1502. *) # Relative name.
  1503. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1504. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1505. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1506. esac
  1507. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1508. cd "$ac_dir" || { ac_status=$?; continue; }
  1509. # Check for guested configure.
  1510. if test -f "$ac_srcdir/configure.gnu"; then
  1511. echo &&
  1512. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1513. elif test -f "$ac_srcdir/configure"; then
  1514. echo &&
  1515. $SHELL "$ac_srcdir/configure" --help=recursive
  1516. else
  1517. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1518. fi || ac_status=$?
  1519. cd "$ac_pwd" || { ac_status=$?; break; }
  1520. done
  1521. fi
  1522. test -n "$ac_init_help" && exit $ac_status
  1523. if $ac_init_version; then
  1524. cat <<\_ACEOF
  1525. configure
  1526. generated by GNU Autoconf 2.69
  1527. Copyright (C) 2012 Free Software Foundation, Inc.
  1528. This configure script is free software; the Free Software Foundation
  1529. gives unlimited permission to copy, distribute and modify it.
  1530. _ACEOF
  1531. exit
  1532. fi
  1533. ## ------------------------ ##
  1534. ## Autoconf initialization. ##
  1535. ## ------------------------ ##
  1536. # ac_fn_c_try_compile LINENO
  1537. # --------------------------
  1538. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1539. ac_fn_c_try_compile ()
  1540. {
  1541. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1542. rm -f conftest.$ac_objext
  1543. if { { ac_try="$ac_compile"
  1544. case "(($ac_try" in
  1545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1546. *) ac_try_echo=$ac_try;;
  1547. esac
  1548. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1549. $as_echo "$ac_try_echo"; } >&5
  1550. (eval "$ac_compile") 2>conftest.err
  1551. ac_status=$?
  1552. if test -s conftest.err; then
  1553. grep -v '^ *+' conftest.err >conftest.er1
  1554. cat conftest.er1 >&5
  1555. mv -f conftest.er1 conftest.err
  1556. fi
  1557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1558. test $ac_status = 0; } && {
  1559. test -z "$ac_c_werror_flag" ||
  1560. test ! -s conftest.err
  1561. } && test -s conftest.$ac_objext; then :
  1562. ac_retval=0
  1563. else
  1564. $as_echo "$as_me: failed program was:" >&5
  1565. sed 's/^/| /' conftest.$ac_ext >&5
  1566. ac_retval=1
  1567. fi
  1568. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1569. as_fn_set_status $ac_retval
  1570. } # ac_fn_c_try_compile
  1571. # ac_fn_c_try_link LINENO
  1572. # -----------------------
  1573. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1574. ac_fn_c_try_link ()
  1575. {
  1576. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1577. rm -f conftest.$ac_objext conftest$ac_exeext
  1578. if { { ac_try="$ac_link"
  1579. case "(($ac_try" in
  1580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1581. *) ac_try_echo=$ac_try;;
  1582. esac
  1583. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1584. $as_echo "$ac_try_echo"; } >&5
  1585. (eval "$ac_link") 2>conftest.err
  1586. ac_status=$?
  1587. if test -s conftest.err; then
  1588. grep -v '^ *+' conftest.err >conftest.er1
  1589. cat conftest.er1 >&5
  1590. mv -f conftest.er1 conftest.err
  1591. fi
  1592. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1593. test $ac_status = 0; } && {
  1594. test -z "$ac_c_werror_flag" ||
  1595. test ! -s conftest.err
  1596. } && test -s conftest$ac_exeext && {
  1597. test "$cross_compiling" = yes ||
  1598. test -x conftest$ac_exeext
  1599. }; then :
  1600. ac_retval=0
  1601. else
  1602. $as_echo "$as_me: failed program was:" >&5
  1603. sed 's/^/| /' conftest.$ac_ext >&5
  1604. ac_retval=1
  1605. fi
  1606. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1607. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1608. # interfere with the next link command; also delete a directory that is
  1609. # left behind by Apple's compiler. We do this before executing the actions.
  1610. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1611. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1612. as_fn_set_status $ac_retval
  1613. } # ac_fn_c_try_link
  1614. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1615. # -------------------------------------------------------
  1616. # Tests whether HEADER exists and can be compiled using the include files in
  1617. # INCLUDES, setting the cache variable VAR accordingly.
  1618. ac_fn_c_check_header_compile ()
  1619. {
  1620. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1622. $as_echo_n "checking for $2... " >&6; }
  1623. if eval \${$3+:} false; then :
  1624. $as_echo_n "(cached) " >&6
  1625. else
  1626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1627. /* end confdefs.h. */
  1628. $4
  1629. #include <$2>
  1630. _ACEOF
  1631. if ac_fn_c_try_compile "$LINENO"; then :
  1632. eval "$3=yes"
  1633. else
  1634. eval "$3=no"
  1635. fi
  1636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1637. fi
  1638. eval ac_res=\$$3
  1639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1640. $as_echo "$ac_res" >&6; }
  1641. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1642. } # ac_fn_c_check_header_compile
  1643. # ac_fn_c_try_cpp LINENO
  1644. # ----------------------
  1645. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1646. ac_fn_c_try_cpp ()
  1647. {
  1648. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1649. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1650. case "(($ac_try" in
  1651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1652. *) ac_try_echo=$ac_try;;
  1653. esac
  1654. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1655. $as_echo "$ac_try_echo"; } >&5
  1656. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1657. ac_status=$?
  1658. if test -s conftest.err; then
  1659. grep -v '^ *+' conftest.err >conftest.er1
  1660. cat conftest.er1 >&5
  1661. mv -f conftest.er1 conftest.err
  1662. fi
  1663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1664. test $ac_status = 0; } > conftest.i && {
  1665. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1666. test ! -s conftest.err
  1667. }; then :
  1668. ac_retval=0
  1669. else
  1670. $as_echo "$as_me: failed program was:" >&5
  1671. sed 's/^/| /' conftest.$ac_ext >&5
  1672. ac_retval=1
  1673. fi
  1674. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1675. as_fn_set_status $ac_retval
  1676. } # ac_fn_c_try_cpp
  1677. # ac_fn_c_try_run LINENO
  1678. # ----------------------
  1679. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1680. # that executables *can* be run.
  1681. ac_fn_c_try_run ()
  1682. {
  1683. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1684. if { { ac_try="$ac_link"
  1685. case "(($ac_try" in
  1686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1687. *) ac_try_echo=$ac_try;;
  1688. esac
  1689. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1690. $as_echo "$ac_try_echo"; } >&5
  1691. (eval "$ac_link") 2>&5
  1692. ac_status=$?
  1693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1694. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1695. { { case "(($ac_try" in
  1696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1697. *) ac_try_echo=$ac_try;;
  1698. esac
  1699. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1700. $as_echo "$ac_try_echo"; } >&5
  1701. (eval "$ac_try") 2>&5
  1702. ac_status=$?
  1703. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1704. test $ac_status = 0; }; }; then :
  1705. ac_retval=0
  1706. else
  1707. $as_echo "$as_me: program exited with status $ac_status" >&5
  1708. $as_echo "$as_me: failed program was:" >&5
  1709. sed 's/^/| /' conftest.$ac_ext >&5
  1710. ac_retval=$ac_status
  1711. fi
  1712. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1713. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1714. as_fn_set_status $ac_retval
  1715. } # ac_fn_c_try_run
  1716. # ac_fn_c_check_func LINENO FUNC VAR
  1717. # ----------------------------------
  1718. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1719. ac_fn_c_check_func ()
  1720. {
  1721. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1723. $as_echo_n "checking for $2... " >&6; }
  1724. if eval \${$3+:} false; then :
  1725. $as_echo_n "(cached) " >&6
  1726. else
  1727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1728. /* end confdefs.h. */
  1729. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1730. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1731. #define $2 innocuous_$2
  1732. /* System header to define __stub macros and hopefully few prototypes,
  1733. which can conflict with char $2 (); below.
  1734. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1735. <limits.h> exists even on freestanding compilers. */
  1736. #ifdef __STDC__
  1737. # include <limits.h>
  1738. #else
  1739. # include <assert.h>
  1740. #endif
  1741. #undef $2
  1742. /* Override any GCC internal prototype to avoid an error.
  1743. Use char because int might match the return type of a GCC
  1744. builtin and then its argument prototype would still apply. */
  1745. #ifdef __cplusplus
  1746. extern "C"
  1747. #endif
  1748. char $2 ();
  1749. /* The GNU C library defines this for functions which it implements
  1750. to always fail with ENOSYS. Some functions are actually named
  1751. something starting with __ and the normal name is an alias. */
  1752. #if defined __stub_$2 || defined __stub___$2
  1753. choke me
  1754. #endif
  1755. int
  1756. main ()
  1757. {
  1758. return $2 ();
  1759. ;
  1760. return 0;
  1761. }
  1762. _ACEOF
  1763. if ac_fn_c_try_link "$LINENO"; then :
  1764. eval "$3=yes"
  1765. else
  1766. eval "$3=no"
  1767. fi
  1768. rm -f core conftest.err conftest.$ac_objext \
  1769. conftest$ac_exeext conftest.$ac_ext
  1770. fi
  1771. eval ac_res=\$$3
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1773. $as_echo "$ac_res" >&6; }
  1774. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1775. } # ac_fn_c_check_func
  1776. # ac_fn_cxx_try_compile LINENO
  1777. # ----------------------------
  1778. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1779. ac_fn_cxx_try_compile ()
  1780. {
  1781. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1782. rm -f conftest.$ac_objext
  1783. if { { ac_try="$ac_compile"
  1784. case "(($ac_try" in
  1785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1786. *) ac_try_echo=$ac_try;;
  1787. esac
  1788. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1789. $as_echo "$ac_try_echo"; } >&5
  1790. (eval "$ac_compile") 2>conftest.err
  1791. ac_status=$?
  1792. if test -s conftest.err; then
  1793. grep -v '^ *+' conftest.err >conftest.er1
  1794. cat conftest.er1 >&5
  1795. mv -f conftest.er1 conftest.err
  1796. fi
  1797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1798. test $ac_status = 0; } && {
  1799. test -z "$ac_cxx_werror_flag" ||
  1800. test ! -s conftest.err
  1801. } && test -s conftest.$ac_objext; then :
  1802. ac_retval=0
  1803. else
  1804. $as_echo "$as_me: failed program was:" >&5
  1805. sed 's/^/| /' conftest.$ac_ext >&5
  1806. ac_retval=1
  1807. fi
  1808. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1809. as_fn_set_status $ac_retval
  1810. } # ac_fn_cxx_try_compile
  1811. # ac_fn_cxx_try_cpp LINENO
  1812. # ------------------------
  1813. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1814. ac_fn_cxx_try_cpp ()
  1815. {
  1816. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1817. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1818. case "(($ac_try" in
  1819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1820. *) ac_try_echo=$ac_try;;
  1821. esac
  1822. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1823. $as_echo "$ac_try_echo"; } >&5
  1824. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1825. ac_status=$?
  1826. if test -s conftest.err; then
  1827. grep -v '^ *+' conftest.err >conftest.er1
  1828. cat conftest.er1 >&5
  1829. mv -f conftest.er1 conftest.err
  1830. fi
  1831. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1832. test $ac_status = 0; } > conftest.i && {
  1833. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1834. test ! -s conftest.err
  1835. }; then :
  1836. ac_retval=0
  1837. else
  1838. $as_echo "$as_me: failed program was:" >&5
  1839. sed 's/^/| /' conftest.$ac_ext >&5
  1840. ac_retval=1
  1841. fi
  1842. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1843. as_fn_set_status $ac_retval
  1844. } # ac_fn_cxx_try_cpp
  1845. # ac_fn_cxx_try_link LINENO
  1846. # -------------------------
  1847. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1848. ac_fn_cxx_try_link ()
  1849. {
  1850. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1851. rm -f conftest.$ac_objext conftest$ac_exeext
  1852. if { { ac_try="$ac_link"
  1853. case "(($ac_try" in
  1854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1855. *) ac_try_echo=$ac_try;;
  1856. esac
  1857. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1858. $as_echo "$ac_try_echo"; } >&5
  1859. (eval "$ac_link") 2>conftest.err
  1860. ac_status=$?
  1861. if test -s conftest.err; then
  1862. grep -v '^ *+' conftest.err >conftest.er1
  1863. cat conftest.er1 >&5
  1864. mv -f conftest.er1 conftest.err
  1865. fi
  1866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1867. test $ac_status = 0; } && {
  1868. test -z "$ac_cxx_werror_flag" ||
  1869. test ! -s conftest.err
  1870. } && test -s conftest$ac_exeext && {
  1871. test "$cross_compiling" = yes ||
  1872. test -x conftest$ac_exeext
  1873. }; then :
  1874. ac_retval=0
  1875. else
  1876. $as_echo "$as_me: failed program was:" >&5
  1877. sed 's/^/| /' conftest.$ac_ext >&5
  1878. ac_retval=1
  1879. fi
  1880. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1881. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1882. # interfere with the next link command; also delete a directory that is
  1883. # left behind by Apple's compiler. We do this before executing the actions.
  1884. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1885. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1886. as_fn_set_status $ac_retval
  1887. } # ac_fn_cxx_try_link
  1888. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1889. # -------------------------------------------------------
  1890. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1891. # the include files in INCLUDES and setting the cache variable VAR
  1892. # accordingly.
  1893. ac_fn_c_check_header_mongrel ()
  1894. {
  1895. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1896. if eval \${$3+:} false; then :
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1898. $as_echo_n "checking for $2... " >&6; }
  1899. if eval \${$3+:} false; then :
  1900. $as_echo_n "(cached) " >&6
  1901. fi
  1902. eval ac_res=\$$3
  1903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1904. $as_echo "$ac_res" >&6; }
  1905. else
  1906. # Is the header compilable?
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1908. $as_echo_n "checking $2 usability... " >&6; }
  1909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1910. /* end confdefs.h. */
  1911. $4
  1912. #include <$2>
  1913. _ACEOF
  1914. if ac_fn_c_try_compile "$LINENO"; then :
  1915. ac_header_compiler=yes
  1916. else
  1917. ac_header_compiler=no
  1918. fi
  1919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1921. $as_echo "$ac_header_compiler" >&6; }
  1922. # Is the header present?
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1924. $as_echo_n "checking $2 presence... " >&6; }
  1925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1926. /* end confdefs.h. */
  1927. #include <$2>
  1928. _ACEOF
  1929. if ac_fn_c_try_cpp "$LINENO"; then :
  1930. ac_header_preproc=yes
  1931. else
  1932. ac_header_preproc=no
  1933. fi
  1934. rm -f conftest.err conftest.i conftest.$ac_ext
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1936. $as_echo "$ac_header_preproc" >&6; }
  1937. # So? What about this header?
  1938. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1939. yes:no: )
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1941. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1943. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1944. ;;
  1945. no:yes:* )
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1947. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1949. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1951. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1953. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1955. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1956. ;;
  1957. esac
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1959. $as_echo_n "checking for $2... " >&6; }
  1960. if eval \${$3+:} false; then :
  1961. $as_echo_n "(cached) " >&6
  1962. else
  1963. eval "$3=\$ac_header_compiler"
  1964. fi
  1965. eval ac_res=\$$3
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1967. $as_echo "$ac_res" >&6; }
  1968. fi
  1969. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1970. } # ac_fn_c_check_header_mongrel
  1971. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1972. # -------------------------------------------
  1973. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1974. # variable VAR accordingly.
  1975. ac_fn_c_check_type ()
  1976. {
  1977. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1979. $as_echo_n "checking for $2... " >&6; }
  1980. if eval \${$3+:} false; then :
  1981. $as_echo_n "(cached) " >&6
  1982. else
  1983. eval "$3=no"
  1984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1985. /* end confdefs.h. */
  1986. $4
  1987. int
  1988. main ()
  1989. {
  1990. if (sizeof ($2))
  1991. return 0;
  1992. ;
  1993. return 0;
  1994. }
  1995. _ACEOF
  1996. if ac_fn_c_try_compile "$LINENO"; then :
  1997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1998. /* end confdefs.h. */
  1999. $4
  2000. int
  2001. main ()
  2002. {
  2003. if (sizeof (($2)))
  2004. return 0;
  2005. ;
  2006. return 0;
  2007. }
  2008. _ACEOF
  2009. if ac_fn_c_try_compile "$LINENO"; then :
  2010. else
  2011. eval "$3=yes"
  2012. fi
  2013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2014. fi
  2015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2016. fi
  2017. eval ac_res=\$$3
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2019. $as_echo "$ac_res" >&6; }
  2020. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2021. } # ac_fn_c_check_type
  2022. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2023. # ----------------------------------------------------
  2024. # Tries to find if the field MEMBER exists in type AGGR, after including
  2025. # INCLUDES, setting cache variable VAR accordingly.
  2026. ac_fn_c_check_member ()
  2027. {
  2028. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2030. $as_echo_n "checking for $2.$3... " >&6; }
  2031. if eval \${$4+:} false; then :
  2032. $as_echo_n "(cached) " >&6
  2033. else
  2034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2035. /* end confdefs.h. */
  2036. $5
  2037. int
  2038. main ()
  2039. {
  2040. static $2 ac_aggr;
  2041. if (ac_aggr.$3)
  2042. return 0;
  2043. ;
  2044. return 0;
  2045. }
  2046. _ACEOF
  2047. if ac_fn_c_try_compile "$LINENO"; then :
  2048. eval "$4=yes"
  2049. else
  2050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2051. /* end confdefs.h. */
  2052. $5
  2053. int
  2054. main ()
  2055. {
  2056. static $2 ac_aggr;
  2057. if (sizeof ac_aggr.$3)
  2058. return 0;
  2059. ;
  2060. return 0;
  2061. }
  2062. _ACEOF
  2063. if ac_fn_c_try_compile "$LINENO"; then :
  2064. eval "$4=yes"
  2065. else
  2066. eval "$4=no"
  2067. fi
  2068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2069. fi
  2070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2071. fi
  2072. eval ac_res=\$$4
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2074. $as_echo "$ac_res" >&6; }
  2075. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2076. } # ac_fn_c_check_member
  2077. cat >config.log <<_ACEOF
  2078. This file contains any messages produced by compilers while
  2079. running configure, to aid debugging if configure makes a mistake.
  2080. It was created by $as_me, which was
  2081. generated by GNU Autoconf 2.69. Invocation command line was
  2082. $ $0 $@
  2083. _ACEOF
  2084. exec 5>>config.log
  2085. {
  2086. cat <<_ASUNAME
  2087. ## --------- ##
  2088. ## Platform. ##
  2089. ## --------- ##
  2090. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2091. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2092. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2093. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2094. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2095. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2096. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2097. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2098. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2099. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2100. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2101. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2102. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2103. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2104. _ASUNAME
  2105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2106. for as_dir in $PATH
  2107. do
  2108. IFS=$as_save_IFS
  2109. test -z "$as_dir" && as_dir=.
  2110. $as_echo "PATH: $as_dir"
  2111. done
  2112. IFS=$as_save_IFS
  2113. } >&5
  2114. cat >&5 <<_ACEOF
  2115. ## ----------- ##
  2116. ## Core tests. ##
  2117. ## ----------- ##
  2118. _ACEOF
  2119. # Keep a trace of the command line.
  2120. # Strip out --no-create and --no-recursion so they do not pile up.
  2121. # Strip out --silent because we don't want to record it for future runs.
  2122. # Also quote any args containing shell meta-characters.
  2123. # Make two passes to allow for proper duplicate-argument suppression.
  2124. ac_configure_args=
  2125. ac_configure_args0=
  2126. ac_configure_args1=
  2127. ac_must_keep_next=false
  2128. for ac_pass in 1 2
  2129. do
  2130. for ac_arg
  2131. do
  2132. case $ac_arg in
  2133. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2134. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2135. | -silent | --silent | --silen | --sile | --sil)
  2136. continue ;;
  2137. *\'*)
  2138. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2139. esac
  2140. case $ac_pass in
  2141. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2142. 2)
  2143. as_fn_append ac_configure_args1 " '$ac_arg'"
  2144. if test $ac_must_keep_next = true; then
  2145. ac_must_keep_next=false # Got value, back to normal.
  2146. else
  2147. case $ac_arg in
  2148. *=* | --config-cache | -C | -disable-* | --disable-* \
  2149. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2150. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2151. | -with-* | --with-* | -without-* | --without-* | --x)
  2152. case "$ac_configure_args0 " in
  2153. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2154. esac
  2155. ;;
  2156. -* ) ac_must_keep_next=true ;;
  2157. esac
  2158. fi
  2159. as_fn_append ac_configure_args " '$ac_arg'"
  2160. ;;
  2161. esac
  2162. done
  2163. done
  2164. { ac_configure_args0=; unset ac_configure_args0;}
  2165. { ac_configure_args1=; unset ac_configure_args1;}
  2166. # When interrupted or exit'd, cleanup temporary files, and complete
  2167. # config.log. We remove comments because anyway the quotes in there
  2168. # would cause problems or look ugly.
  2169. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2170. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2171. trap 'exit_status=$?
  2172. # Save into config.log some information that might help in debugging.
  2173. {
  2174. echo
  2175. $as_echo "## ---------------- ##
  2176. ## Cache variables. ##
  2177. ## ---------------- ##"
  2178. echo
  2179. # The following way of writing the cache mishandles newlines in values,
  2180. (
  2181. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2182. eval ac_val=\$$ac_var
  2183. case $ac_val in #(
  2184. *${as_nl}*)
  2185. case $ac_var in #(
  2186. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2187. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2188. esac
  2189. case $ac_var in #(
  2190. _ | IFS | as_nl) ;; #(
  2191. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2192. *) { eval $ac_var=; unset $ac_var;} ;;
  2193. esac ;;
  2194. esac
  2195. done
  2196. (set) 2>&1 |
  2197. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2198. *${as_nl}ac_space=\ *)
  2199. sed -n \
  2200. "s/'\''/'\''\\\\'\'''\''/g;
  2201. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2202. ;; #(
  2203. *)
  2204. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2205. ;;
  2206. esac |
  2207. sort
  2208. )
  2209. echo
  2210. $as_echo "## ----------------- ##
  2211. ## Output variables. ##
  2212. ## ----------------- ##"
  2213. echo
  2214. for ac_var in $ac_subst_vars
  2215. do
  2216. eval ac_val=\$$ac_var
  2217. case $ac_val in
  2218. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2219. esac
  2220. $as_echo "$ac_var='\''$ac_val'\''"
  2221. done | sort
  2222. echo
  2223. if test -n "$ac_subst_files"; then
  2224. $as_echo "## ------------------- ##
  2225. ## File substitutions. ##
  2226. ## ------------------- ##"
  2227. echo
  2228. for ac_var in $ac_subst_files
  2229. do
  2230. eval ac_val=\$$ac_var
  2231. case $ac_val in
  2232. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2233. esac
  2234. $as_echo "$ac_var='\''$ac_val'\''"
  2235. done | sort
  2236. echo
  2237. fi
  2238. if test -s confdefs.h; then
  2239. $as_echo "## ----------- ##
  2240. ## confdefs.h. ##
  2241. ## ----------- ##"
  2242. echo
  2243. cat confdefs.h
  2244. echo
  2245. fi
  2246. test "$ac_signal" != 0 &&
  2247. $as_echo "$as_me: caught signal $ac_signal"
  2248. $as_echo "$as_me: exit $exit_status"
  2249. } >&5
  2250. rm -f core *.core core.conftest.* &&
  2251. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2252. exit $exit_status
  2253. ' 0
  2254. for ac_signal in 1 2 13 15; do
  2255. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2256. done
  2257. ac_signal=0
  2258. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2259. rm -f -r conftest* confdefs.h
  2260. $as_echo "/* confdefs.h */" > confdefs.h
  2261. # Predefined preprocessor variables.
  2262. cat >>confdefs.h <<_ACEOF
  2263. #define PACKAGE_NAME "$PACKAGE_NAME"
  2264. _ACEOF
  2265. cat >>confdefs.h <<_ACEOF
  2266. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2267. _ACEOF
  2268. cat >>confdefs.h <<_ACEOF
  2269. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2270. _ACEOF
  2271. cat >>confdefs.h <<_ACEOF
  2272. #define PACKAGE_STRING "$PACKAGE_STRING"
  2273. _ACEOF
  2274. cat >>confdefs.h <<_ACEOF
  2275. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2276. _ACEOF
  2277. cat >>confdefs.h <<_ACEOF
  2278. #define PACKAGE_URL "$PACKAGE_URL"
  2279. _ACEOF
  2280. # Let the site file select an alternate cache file if it wants to.
  2281. # Prefer an explicitly selected file to automatically selected ones.
  2282. ac_site_file1=NONE
  2283. ac_site_file2=NONE
  2284. if test -n "$CONFIG_SITE"; then
  2285. # We do not want a PATH search for config.site.
  2286. case $CONFIG_SITE in #((
  2287. -*) ac_site_file1=./$CONFIG_SITE;;
  2288. */*) ac_site_file1=$CONFIG_SITE;;
  2289. *) ac_site_file1=./$CONFIG_SITE;;
  2290. esac
  2291. elif test "x$prefix" != xNONE; then
  2292. ac_site_file1=$prefix/share/config.site
  2293. ac_site_file2=$prefix/etc/config.site
  2294. else
  2295. ac_site_file1=$ac_default_prefix/share/config.site
  2296. ac_site_file2=$ac_default_prefix/etc/config.site
  2297. fi
  2298. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2299. do
  2300. test "x$ac_site_file" = xNONE && continue
  2301. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2303. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2304. sed 's/^/| /' "$ac_site_file" >&5
  2305. . "$ac_site_file" \
  2306. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2307. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2308. as_fn_error $? "failed to load site script $ac_site_file
  2309. See \`config.log' for more details" "$LINENO" 5; }
  2310. fi
  2311. done
  2312. if test -r "$cache_file"; then
  2313. # Some versions of bash will fail to source /dev/null (special files
  2314. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2315. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2316. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2317. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2318. case $cache_file in
  2319. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2320. *) . "./$cache_file";;
  2321. esac
  2322. fi
  2323. else
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2325. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2326. >$cache_file
  2327. fi
  2328. # Check that the precious variables saved in the cache have kept the same
  2329. # value.
  2330. ac_cache_corrupted=false
  2331. for ac_var in $ac_precious_vars; do
  2332. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2333. eval ac_new_set=\$ac_env_${ac_var}_set
  2334. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2335. eval ac_new_val=\$ac_env_${ac_var}_value
  2336. case $ac_old_set,$ac_new_set in
  2337. set,)
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2339. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2340. ac_cache_corrupted=: ;;
  2341. ,set)
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2343. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2344. ac_cache_corrupted=: ;;
  2345. ,);;
  2346. *)
  2347. if test "x$ac_old_val" != "x$ac_new_val"; then
  2348. # differences in whitespace do not lead to failure.
  2349. ac_old_val_w=`echo x $ac_old_val`
  2350. ac_new_val_w=`echo x $ac_new_val`
  2351. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2353. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2354. ac_cache_corrupted=:
  2355. else
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2357. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2358. eval $ac_var=\$ac_old_val
  2359. fi
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2361. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2363. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2364. fi;;
  2365. esac
  2366. # Pass precious variables to config.status.
  2367. if test "$ac_new_set" = set; then
  2368. case $ac_new_val in
  2369. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2370. *) ac_arg=$ac_var=$ac_new_val ;;
  2371. esac
  2372. case " $ac_configure_args " in
  2373. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2374. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2375. esac
  2376. fi
  2377. done
  2378. if $ac_cache_corrupted; then
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2380. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2382. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2383. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2384. fi
  2385. ## -------------------- ##
  2386. ## Main body of script. ##
  2387. ## -------------------- ##
  2388. ac_ext=c
  2389. ac_cpp='$CPP $CPPFLAGS'
  2390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2393. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2394. ac_aux_dir=
  2395. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2396. if test -f "$ac_dir/install-sh"; then
  2397. ac_aux_dir=$ac_dir
  2398. ac_install_sh="$ac_aux_dir/install-sh -c"
  2399. break
  2400. elif test -f "$ac_dir/install.sh"; then
  2401. ac_aux_dir=$ac_dir
  2402. ac_install_sh="$ac_aux_dir/install.sh -c"
  2403. break
  2404. elif test -f "$ac_dir/shtool"; then
  2405. ac_aux_dir=$ac_dir
  2406. ac_install_sh="$ac_aux_dir/shtool install -c"
  2407. break
  2408. fi
  2409. done
  2410. if test -z "$ac_aux_dir"; then
  2411. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2412. fi
  2413. # These three variables are undocumented and unsupported,
  2414. # and are intended to be withdrawn in a future Autoconf release.
  2415. # They can cause serious problems if a builder's source tree is in a directory
  2416. # whose full name contains unusual characters.
  2417. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2418. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2419. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2420. orig_CFLAGS="$CFLAGS"
  2421. #
  2422. # Making releases:
  2423. # Edit include/SDL_version.h and change the version, then:
  2424. # SDL_MICRO_VERSION += 1;
  2425. # SDL_INTERFACE_AGE += 1;
  2426. # SDL_BINARY_AGE += 1;
  2427. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2428. # if backwards compatibility has been broken,
  2429. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2430. #
  2431. SDL_MAJOR_VERSION=2
  2432. SDL_MINOR_VERSION=0
  2433. SDL_MICRO_VERSION=0
  2434. SDL_INTERFACE_AGE=0
  2435. SDL_BINARY_AGE=0
  2436. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2437. # libtool versioning
  2438. case `pwd` in
  2439. *\ * | *\ *)
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2441. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2442. esac
  2443. macro_version='2.4.2'
  2444. macro_revision='1.3337'
  2445. ltmain="$ac_aux_dir/ltmain.sh"
  2446. # Make sure we can run config.sub.
  2447. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2448. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2450. $as_echo_n "checking build system type... " >&6; }
  2451. if ${ac_cv_build+:} false; then :
  2452. $as_echo_n "(cached) " >&6
  2453. else
  2454. ac_build_alias=$build_alias
  2455. test "x$ac_build_alias" = x &&
  2456. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2457. test "x$ac_build_alias" = x &&
  2458. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2459. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2460. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2461. fi
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2463. $as_echo "$ac_cv_build" >&6; }
  2464. case $ac_cv_build in
  2465. *-*-*) ;;
  2466. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2467. esac
  2468. build=$ac_cv_build
  2469. ac_save_IFS=$IFS; IFS='-'
  2470. set x $ac_cv_build
  2471. shift
  2472. build_cpu=$1
  2473. build_vendor=$2
  2474. shift; shift
  2475. # Remember, the first character of IFS is used to create $*,
  2476. # except with old shells:
  2477. build_os=$*
  2478. IFS=$ac_save_IFS
  2479. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2481. $as_echo_n "checking host system type... " >&6; }
  2482. if ${ac_cv_host+:} false; then :
  2483. $as_echo_n "(cached) " >&6
  2484. else
  2485. if test "x$host_alias" = x; then
  2486. ac_cv_host=$ac_cv_build
  2487. else
  2488. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2489. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2490. fi
  2491. fi
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2493. $as_echo "$ac_cv_host" >&6; }
  2494. case $ac_cv_host in
  2495. *-*-*) ;;
  2496. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2497. esac
  2498. host=$ac_cv_host
  2499. ac_save_IFS=$IFS; IFS='-'
  2500. set x $ac_cv_host
  2501. shift
  2502. host_cpu=$1
  2503. host_vendor=$2
  2504. shift; shift
  2505. # Remember, the first character of IFS is used to create $*,
  2506. # except with old shells:
  2507. host_os=$*
  2508. IFS=$ac_save_IFS
  2509. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2510. # Backslashify metacharacters that are still active within
  2511. # double-quoted strings.
  2512. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2513. # Same as above, but do not quote variable references.
  2514. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2515. # Sed substitution to delay expansion of an escaped shell variable in a
  2516. # double_quote_subst'ed string.
  2517. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2518. # Sed substitution to delay expansion of an escaped single quote.
  2519. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2520. # Sed substitution to avoid accidental globbing in evaled expressions
  2521. no_glob_subst='s/\*/\\\*/g'
  2522. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2523. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2524. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2526. $as_echo_n "checking how to print strings... " >&6; }
  2527. # Test print first, because it will be a builtin if present.
  2528. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2529. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2530. ECHO='print -r --'
  2531. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2532. ECHO='printf %s\n'
  2533. else
  2534. # Use this function as a fallback that always works.
  2535. func_fallback_echo ()
  2536. {
  2537. eval 'cat <<_LTECHO_EOF
  2538. $1
  2539. _LTECHO_EOF'
  2540. }
  2541. ECHO='func_fallback_echo'
  2542. fi
  2543. # func_echo_all arg...
  2544. # Invoke $ECHO with all args, space-separated.
  2545. func_echo_all ()
  2546. {
  2547. $ECHO ""
  2548. }
  2549. case "$ECHO" in
  2550. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2551. $as_echo "printf" >&6; } ;;
  2552. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2553. $as_echo "print -r" >&6; } ;;
  2554. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2555. $as_echo "cat" >&6; } ;;
  2556. esac
  2557. ac_ext=c
  2558. ac_cpp='$CPP $CPPFLAGS'
  2559. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2560. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2561. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2562. if test -n "$ac_tool_prefix"; then
  2563. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2564. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2566. $as_echo_n "checking for $ac_word... " >&6; }
  2567. if ${ac_cv_prog_CC+:} false; then :
  2568. $as_echo_n "(cached) " >&6
  2569. else
  2570. if test -n "$CC"; then
  2571. ac_cv_prog_CC="$CC" # Let the user override the test.
  2572. else
  2573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2574. for as_dir in $PATH
  2575. do
  2576. IFS=$as_save_IFS
  2577. test -z "$as_dir" && as_dir=.
  2578. for ac_exec_ext in '' $ac_executable_extensions; do
  2579. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2580. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2581. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2582. break 2
  2583. fi
  2584. done
  2585. done
  2586. IFS=$as_save_IFS
  2587. fi
  2588. fi
  2589. CC=$ac_cv_prog_CC
  2590. if test -n "$CC"; then
  2591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2592. $as_echo "$CC" >&6; }
  2593. else
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2595. $as_echo "no" >&6; }
  2596. fi
  2597. fi
  2598. if test -z "$ac_cv_prog_CC"; then
  2599. ac_ct_CC=$CC
  2600. # Extract the first word of "gcc", so it can be a program name with args.
  2601. set dummy gcc; ac_word=$2
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2603. $as_echo_n "checking for $ac_word... " >&6; }
  2604. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2605. $as_echo_n "(cached) " >&6
  2606. else
  2607. if test -n "$ac_ct_CC"; then
  2608. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2609. else
  2610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2611. for as_dir in $PATH
  2612. do
  2613. IFS=$as_save_IFS
  2614. test -z "$as_dir" && as_dir=.
  2615. for ac_exec_ext in '' $ac_executable_extensions; do
  2616. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2617. ac_cv_prog_ac_ct_CC="gcc"
  2618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2619. break 2
  2620. fi
  2621. done
  2622. done
  2623. IFS=$as_save_IFS
  2624. fi
  2625. fi
  2626. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2627. if test -n "$ac_ct_CC"; then
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2629. $as_echo "$ac_ct_CC" >&6; }
  2630. else
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2632. $as_echo "no" >&6; }
  2633. fi
  2634. if test "x$ac_ct_CC" = x; then
  2635. CC=""
  2636. else
  2637. case $cross_compiling:$ac_tool_warned in
  2638. yes:)
  2639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2640. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2641. ac_tool_warned=yes ;;
  2642. esac
  2643. CC=$ac_ct_CC
  2644. fi
  2645. else
  2646. CC="$ac_cv_prog_CC"
  2647. fi
  2648. if test -z "$CC"; then
  2649. if test -n "$ac_tool_prefix"; then
  2650. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2651. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2653. $as_echo_n "checking for $ac_word... " >&6; }
  2654. if ${ac_cv_prog_CC+:} false; then :
  2655. $as_echo_n "(cached) " >&6
  2656. else
  2657. if test -n "$CC"; then
  2658. ac_cv_prog_CC="$CC" # Let the user override the test.
  2659. else
  2660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2661. for as_dir in $PATH
  2662. do
  2663. IFS=$as_save_IFS
  2664. test -z "$as_dir" && as_dir=.
  2665. for ac_exec_ext in '' $ac_executable_extensions; do
  2666. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2667. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2669. break 2
  2670. fi
  2671. done
  2672. done
  2673. IFS=$as_save_IFS
  2674. fi
  2675. fi
  2676. CC=$ac_cv_prog_CC
  2677. if test -n "$CC"; then
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2679. $as_echo "$CC" >&6; }
  2680. else
  2681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2682. $as_echo "no" >&6; }
  2683. fi
  2684. fi
  2685. fi
  2686. if test -z "$CC"; then
  2687. # Extract the first word of "cc", so it can be a program name with args.
  2688. set dummy cc; ac_word=$2
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2690. $as_echo_n "checking for $ac_word... " >&6; }
  2691. if ${ac_cv_prog_CC+:} false; then :
  2692. $as_echo_n "(cached) " >&6
  2693. else
  2694. if test -n "$CC"; then
  2695. ac_cv_prog_CC="$CC" # Let the user override the test.
  2696. else
  2697. ac_prog_rejected=no
  2698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2699. for as_dir in $PATH
  2700. do
  2701. IFS=$as_save_IFS
  2702. test -z "$as_dir" && as_dir=.
  2703. for ac_exec_ext in '' $ac_executable_extensions; do
  2704. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2705. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2706. ac_prog_rejected=yes
  2707. continue
  2708. fi
  2709. ac_cv_prog_CC="cc"
  2710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2711. break 2
  2712. fi
  2713. done
  2714. done
  2715. IFS=$as_save_IFS
  2716. if test $ac_prog_rejected = yes; then
  2717. # We found a bogon in the path, so make sure we never use it.
  2718. set dummy $ac_cv_prog_CC
  2719. shift
  2720. if test $# != 0; then
  2721. # We chose a different compiler from the bogus one.
  2722. # However, it has the same basename, so the bogon will be chosen
  2723. # first if we set CC to just the basename; use the full file name.
  2724. shift
  2725. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2726. fi
  2727. fi
  2728. fi
  2729. fi
  2730. CC=$ac_cv_prog_CC
  2731. if test -n "$CC"; then
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2733. $as_echo "$CC" >&6; }
  2734. else
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2736. $as_echo "no" >&6; }
  2737. fi
  2738. fi
  2739. if test -z "$CC"; then
  2740. if test -n "$ac_tool_prefix"; then
  2741. for ac_prog in cl.exe
  2742. do
  2743. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2744. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2746. $as_echo_n "checking for $ac_word... " >&6; }
  2747. if ${ac_cv_prog_CC+:} false; then :
  2748. $as_echo_n "(cached) " >&6
  2749. else
  2750. if test -n "$CC"; then
  2751. ac_cv_prog_CC="$CC" # Let the user override the test.
  2752. else
  2753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2754. for as_dir in $PATH
  2755. do
  2756. IFS=$as_save_IFS
  2757. test -z "$as_dir" && as_dir=.
  2758. for ac_exec_ext in '' $ac_executable_extensions; do
  2759. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2760. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2762. break 2
  2763. fi
  2764. done
  2765. done
  2766. IFS=$as_save_IFS
  2767. fi
  2768. fi
  2769. CC=$ac_cv_prog_CC
  2770. if test -n "$CC"; then
  2771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2772. $as_echo "$CC" >&6; }
  2773. else
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2775. $as_echo "no" >&6; }
  2776. fi
  2777. test -n "$CC" && break
  2778. done
  2779. fi
  2780. if test -z "$CC"; then
  2781. ac_ct_CC=$CC
  2782. for ac_prog in cl.exe
  2783. do
  2784. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2785. set dummy $ac_prog; ac_word=$2
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2787. $as_echo_n "checking for $ac_word... " >&6; }
  2788. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2789. $as_echo_n "(cached) " >&6
  2790. else
  2791. if test -n "$ac_ct_CC"; then
  2792. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2793. else
  2794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2795. for as_dir in $PATH
  2796. do
  2797. IFS=$as_save_IFS
  2798. test -z "$as_dir" && as_dir=.
  2799. for ac_exec_ext in '' $ac_executable_extensions; do
  2800. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2801. ac_cv_prog_ac_ct_CC="$ac_prog"
  2802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2803. break 2
  2804. fi
  2805. done
  2806. done
  2807. IFS=$as_save_IFS
  2808. fi
  2809. fi
  2810. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2811. if test -n "$ac_ct_CC"; then
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2813. $as_echo "$ac_ct_CC" >&6; }
  2814. else
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2816. $as_echo "no" >&6; }
  2817. fi
  2818. test -n "$ac_ct_CC" && break
  2819. done
  2820. if test "x$ac_ct_CC" = x; then
  2821. CC=""
  2822. else
  2823. case $cross_compiling:$ac_tool_warned in
  2824. yes:)
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2826. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2827. ac_tool_warned=yes ;;
  2828. esac
  2829. CC=$ac_ct_CC
  2830. fi
  2831. fi
  2832. fi
  2833. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2834. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2835. as_fn_error $? "no acceptable C compiler found in \$PATH
  2836. See \`config.log' for more details" "$LINENO" 5; }
  2837. # Provide some information about the compiler.
  2838. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2839. set X $ac_compile
  2840. ac_compiler=$2
  2841. for ac_option in --version -v -V -qversion; do
  2842. { { ac_try="$ac_compiler $ac_option >&5"
  2843. case "(($ac_try" in
  2844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2845. *) ac_try_echo=$ac_try;;
  2846. esac
  2847. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2848. $as_echo "$ac_try_echo"; } >&5
  2849. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2850. ac_status=$?
  2851. if test -s conftest.err; then
  2852. sed '10a\
  2853. ... rest of stderr output deleted ...
  2854. 10q' conftest.err >conftest.er1
  2855. cat conftest.er1 >&5
  2856. fi
  2857. rm -f conftest.er1 conftest.err
  2858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2859. test $ac_status = 0; }
  2860. done
  2861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2862. /* end confdefs.h. */
  2863. int
  2864. main ()
  2865. {
  2866. ;
  2867. return 0;
  2868. }
  2869. _ACEOF
  2870. ac_clean_files_save=$ac_clean_files
  2871. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2872. # Try to create an executable without -o first, disregard a.out.
  2873. # It will help us diagnose broken compilers, and finding out an intuition
  2874. # of exeext.
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2876. $as_echo_n "checking whether the C compiler works... " >&6; }
  2877. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2878. # The possible output files:
  2879. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2880. ac_rmfiles=
  2881. for ac_file in $ac_files
  2882. do
  2883. case $ac_file in
  2884. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2885. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2886. esac
  2887. done
  2888. rm -f $ac_rmfiles
  2889. if { { ac_try="$ac_link_default"
  2890. case "(($ac_try" in
  2891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2892. *) ac_try_echo=$ac_try;;
  2893. esac
  2894. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2895. $as_echo "$ac_try_echo"; } >&5
  2896. (eval "$ac_link_default") 2>&5
  2897. ac_status=$?
  2898. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2899. test $ac_status = 0; }; then :
  2900. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2901. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2902. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2903. # so that the user can short-circuit this test for compilers unknown to
  2904. # Autoconf.
  2905. for ac_file in $ac_files ''
  2906. do
  2907. test -f "$ac_file" || continue
  2908. case $ac_file in
  2909. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2910. ;;
  2911. [ab].out )
  2912. # We found the default executable, but exeext='' is most
  2913. # certainly right.
  2914. break;;
  2915. *.* )
  2916. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2917. then :; else
  2918. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2919. fi
  2920. # We set ac_cv_exeext here because the later test for it is not
  2921. # safe: cross compilers may not add the suffix if given an `-o'
  2922. # argument, so we may need to know it at that point already.
  2923. # Even if this section looks crufty: it has the advantage of
  2924. # actually working.
  2925. break;;
  2926. * )
  2927. break;;
  2928. esac
  2929. done
  2930. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2931. else
  2932. ac_file=''
  2933. fi
  2934. if test -z "$ac_file"; then :
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2936. $as_echo "no" >&6; }
  2937. $as_echo "$as_me: failed program was:" >&5
  2938. sed 's/^/| /' conftest.$ac_ext >&5
  2939. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2940. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2941. as_fn_error 77 "C compiler cannot create executables
  2942. See \`config.log' for more details" "$LINENO" 5; }
  2943. else
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2945. $as_echo "yes" >&6; }
  2946. fi
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2948. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2950. $as_echo "$ac_file" >&6; }
  2951. ac_exeext=$ac_cv_exeext
  2952. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2953. ac_clean_files=$ac_clean_files_save
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2955. $as_echo_n "checking for suffix of executables... " >&6; }
  2956. if { { ac_try="$ac_link"
  2957. case "(($ac_try" in
  2958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2959. *) ac_try_echo=$ac_try;;
  2960. esac
  2961. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2962. $as_echo "$ac_try_echo"; } >&5
  2963. (eval "$ac_link") 2>&5
  2964. ac_status=$?
  2965. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2966. test $ac_status = 0; }; then :
  2967. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2968. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2969. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2970. # `rm'.
  2971. for ac_file in conftest.exe conftest conftest.*; do
  2972. test -f "$ac_file" || continue
  2973. case $ac_file in
  2974. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2975. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2976. break;;
  2977. * ) break;;
  2978. esac
  2979. done
  2980. else
  2981. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2982. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2983. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2984. See \`config.log' for more details" "$LINENO" 5; }
  2985. fi
  2986. rm -f conftest conftest$ac_cv_exeext
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2988. $as_echo "$ac_cv_exeext" >&6; }
  2989. rm -f conftest.$ac_ext
  2990. EXEEXT=$ac_cv_exeext
  2991. ac_exeext=$EXEEXT
  2992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2993. /* end confdefs.h. */
  2994. #include <stdio.h>
  2995. int
  2996. main ()
  2997. {
  2998. FILE *f = fopen ("conftest.out", "w");
  2999. return ferror (f) || fclose (f) != 0;
  3000. ;
  3001. return 0;
  3002. }
  3003. _ACEOF
  3004. ac_clean_files="$ac_clean_files conftest.out"
  3005. # Check that the compiler produces executables we can run. If not, either
  3006. # the compiler is broken, or we cross compile.
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3008. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3009. if test "$cross_compiling" != yes; then
  3010. { { ac_try="$ac_link"
  3011. case "(($ac_try" in
  3012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3013. *) ac_try_echo=$ac_try;;
  3014. esac
  3015. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3016. $as_echo "$ac_try_echo"; } >&5
  3017. (eval "$ac_link") 2>&5
  3018. ac_status=$?
  3019. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3020. test $ac_status = 0; }
  3021. if { ac_try='./conftest$ac_cv_exeext'
  3022. { { case "(($ac_try" in
  3023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3024. *) ac_try_echo=$ac_try;;
  3025. esac
  3026. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3027. $as_echo "$ac_try_echo"; } >&5
  3028. (eval "$ac_try") 2>&5
  3029. ac_status=$?
  3030. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3031. test $ac_status = 0; }; }; then
  3032. cross_compiling=no
  3033. else
  3034. if test "$cross_compiling" = maybe; then
  3035. cross_compiling=yes
  3036. else
  3037. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3038. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3039. as_fn_error $? "cannot run C compiled programs.
  3040. If you meant to cross compile, use \`--host'.
  3041. See \`config.log' for more details" "$LINENO" 5; }
  3042. fi
  3043. fi
  3044. fi
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3046. $as_echo "$cross_compiling" >&6; }
  3047. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3048. ac_clean_files=$ac_clean_files_save
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3050. $as_echo_n "checking for suffix of object files... " >&6; }
  3051. if ${ac_cv_objext+:} false; then :
  3052. $as_echo_n "(cached) " >&6
  3053. else
  3054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3055. /* end confdefs.h. */
  3056. int
  3057. main ()
  3058. {
  3059. ;
  3060. return 0;
  3061. }
  3062. _ACEOF
  3063. rm -f conftest.o conftest.obj
  3064. if { { ac_try="$ac_compile"
  3065. case "(($ac_try" in
  3066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3067. *) ac_try_echo=$ac_try;;
  3068. esac
  3069. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3070. $as_echo "$ac_try_echo"; } >&5
  3071. (eval "$ac_compile") 2>&5
  3072. ac_status=$?
  3073. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3074. test $ac_status = 0; }; then :
  3075. for ac_file in conftest.o conftest.obj conftest.*; do
  3076. test -f "$ac_file" || continue;
  3077. case $ac_file in
  3078. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3079. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3080. break;;
  3081. esac
  3082. done
  3083. else
  3084. $as_echo "$as_me: failed program was:" >&5
  3085. sed 's/^/| /' conftest.$ac_ext >&5
  3086. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3087. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3088. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3089. See \`config.log' for more details" "$LINENO" 5; }
  3090. fi
  3091. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3092. fi
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3094. $as_echo "$ac_cv_objext" >&6; }
  3095. OBJEXT=$ac_cv_objext
  3096. ac_objext=$OBJEXT
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3098. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3099. if ${ac_cv_c_compiler_gnu+:} false; then :
  3100. $as_echo_n "(cached) " >&6
  3101. else
  3102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3103. /* end confdefs.h. */
  3104. int
  3105. main ()
  3106. {
  3107. #ifndef __GNUC__
  3108. choke me
  3109. #endif
  3110. ;
  3111. return 0;
  3112. }
  3113. _ACEOF
  3114. if ac_fn_c_try_compile "$LINENO"; then :
  3115. ac_compiler_gnu=yes
  3116. else
  3117. ac_compiler_gnu=no
  3118. fi
  3119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3120. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3121. fi
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3123. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3124. if test $ac_compiler_gnu = yes; then
  3125. GCC=yes
  3126. else
  3127. GCC=
  3128. fi
  3129. ac_test_CFLAGS=${CFLAGS+set}
  3130. ac_save_CFLAGS=$CFLAGS
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3132. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3133. if ${ac_cv_prog_cc_g+:} false; then :
  3134. $as_echo_n "(cached) " >&6
  3135. else
  3136. ac_save_c_werror_flag=$ac_c_werror_flag
  3137. ac_c_werror_flag=yes
  3138. ac_cv_prog_cc_g=no
  3139. CFLAGS="-g"
  3140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3141. /* end confdefs.h. */
  3142. int
  3143. main ()
  3144. {
  3145. ;
  3146. return 0;
  3147. }
  3148. _ACEOF
  3149. if ac_fn_c_try_compile "$LINENO"; then :
  3150. ac_cv_prog_cc_g=yes
  3151. else
  3152. CFLAGS=""
  3153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3154. /* end confdefs.h. */
  3155. int
  3156. main ()
  3157. {
  3158. ;
  3159. return 0;
  3160. }
  3161. _ACEOF
  3162. if ac_fn_c_try_compile "$LINENO"; then :
  3163. else
  3164. ac_c_werror_flag=$ac_save_c_werror_flag
  3165. CFLAGS="-g"
  3166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3167. /* end confdefs.h. */
  3168. int
  3169. main ()
  3170. {
  3171. ;
  3172. return 0;
  3173. }
  3174. _ACEOF
  3175. if ac_fn_c_try_compile "$LINENO"; then :
  3176. ac_cv_prog_cc_g=yes
  3177. fi
  3178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_c_werror_flag=$ac_save_c_werror_flag
  3184. fi
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3186. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3187. if test "$ac_test_CFLAGS" = set; then
  3188. CFLAGS=$ac_save_CFLAGS
  3189. elif test $ac_cv_prog_cc_g = yes; then
  3190. if test "$GCC" = yes; then
  3191. CFLAGS="-g -O2"
  3192. else
  3193. CFLAGS="-g"
  3194. fi
  3195. else
  3196. if test "$GCC" = yes; then
  3197. CFLAGS="-O2"
  3198. else
  3199. CFLAGS=
  3200. fi
  3201. fi
  3202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3203. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3204. if ${ac_cv_prog_cc_c89+:} false; then :
  3205. $as_echo_n "(cached) " >&6
  3206. else
  3207. ac_cv_prog_cc_c89=no
  3208. ac_save_CC=$CC
  3209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3210. /* end confdefs.h. */
  3211. #include <stdarg.h>
  3212. #include <stdio.h>
  3213. struct stat;
  3214. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3215. struct buf { int x; };
  3216. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3217. static char *e (p, i)
  3218. char **p;
  3219. int i;
  3220. {
  3221. return p[i];
  3222. }
  3223. static char *f (char * (*g) (char **, int), char **p, ...)
  3224. {
  3225. char *s;
  3226. va_list v;
  3227. va_start (v,p);
  3228. s = g (p, va_arg (v,int));
  3229. va_end (v);
  3230. return s;
  3231. }
  3232. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3233. function prototypes and stuff, but not '\xHH' hex character constants.
  3234. These don't provoke an error unfortunately, instead are silently treated
  3235. as 'x'. The following induces an error, until -std is added to get
  3236. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3237. array size at least. It's necessary to write '\x00'==0 to get something
  3238. that's true only with -std. */
  3239. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3240. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3241. inside strings and character constants. */
  3242. #define FOO(x) 'x'
  3243. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3244. int test (int i, double x);
  3245. struct s1 {int (*f) (int a);};
  3246. struct s2 {int (*f) (double a);};
  3247. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3248. int argc;
  3249. char **argv;
  3250. int
  3251. main ()
  3252. {
  3253. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3254. ;
  3255. return 0;
  3256. }
  3257. _ACEOF
  3258. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3259. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3260. do
  3261. CC="$ac_save_CC $ac_arg"
  3262. if ac_fn_c_try_compile "$LINENO"; then :
  3263. ac_cv_prog_cc_c89=$ac_arg
  3264. fi
  3265. rm -f core conftest.err conftest.$ac_objext
  3266. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3267. done
  3268. rm -f conftest.$ac_ext
  3269. CC=$ac_save_CC
  3270. fi
  3271. # AC_CACHE_VAL
  3272. case "x$ac_cv_prog_cc_c89" in
  3273. x)
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3275. $as_echo "none needed" >&6; } ;;
  3276. xno)
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3278. $as_echo "unsupported" >&6; } ;;
  3279. *)
  3280. CC="$CC $ac_cv_prog_cc_c89"
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3282. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3283. esac
  3284. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3285. fi
  3286. ac_ext=c
  3287. ac_cpp='$CPP $CPPFLAGS'
  3288. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3289. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3290. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3292. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3293. if ${ac_cv_path_SED+:} false; then :
  3294. $as_echo_n "(cached) " >&6
  3295. else
  3296. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3297. for ac_i in 1 2 3 4 5 6 7; do
  3298. ac_script="$ac_script$as_nl$ac_script"
  3299. done
  3300. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3301. { ac_script=; unset ac_script;}
  3302. if test -z "$SED"; then
  3303. ac_path_SED_found=false
  3304. # Loop through the user's path and test for each of PROGNAME-LIST
  3305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3306. for as_dir in $PATH
  3307. do
  3308. IFS=$as_save_IFS
  3309. test -z "$as_dir" && as_dir=.
  3310. for ac_prog in sed gsed; do
  3311. for ac_exec_ext in '' $ac_executable_extensions; do
  3312. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3313. as_fn_executable_p "$ac_path_SED" || continue
  3314. # Check for GNU ac_path_SED and select it if it is found.
  3315. # Check for GNU $ac_path_SED
  3316. case `"$ac_path_SED" --version 2>&1` in
  3317. *GNU*)
  3318. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3319. *)
  3320. ac_count=0
  3321. $as_echo_n 0123456789 >"conftest.in"
  3322. while :
  3323. do
  3324. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3325. mv "conftest.tmp" "conftest.in"
  3326. cp "conftest.in" "conftest.nl"
  3327. $as_echo '' >> "conftest.nl"
  3328. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3329. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3330. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3331. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3332. # Best one so far, save it but keep looking for a better one
  3333. ac_cv_path_SED="$ac_path_SED"
  3334. ac_path_SED_max=$ac_count
  3335. fi
  3336. # 10*(2^10) chars as input seems more than enough
  3337. test $ac_count -gt 10 && break
  3338. done
  3339. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3340. esac
  3341. $ac_path_SED_found && break 3
  3342. done
  3343. done
  3344. done
  3345. IFS=$as_save_IFS
  3346. if test -z "$ac_cv_path_SED"; then
  3347. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3348. fi
  3349. else
  3350. ac_cv_path_SED=$SED
  3351. fi
  3352. fi
  3353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3354. $as_echo "$ac_cv_path_SED" >&6; }
  3355. SED="$ac_cv_path_SED"
  3356. rm -f conftest.sed
  3357. test -z "$SED" && SED=sed
  3358. Xsed="$SED -e 1s/^X//"
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3360. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3361. if ${ac_cv_path_GREP+:} false; then :
  3362. $as_echo_n "(cached) " >&6
  3363. else
  3364. if test -z "$GREP"; then
  3365. ac_path_GREP_found=false
  3366. # Loop through the user's path and test for each of PROGNAME-LIST
  3367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3368. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3369. do
  3370. IFS=$as_save_IFS
  3371. test -z "$as_dir" && as_dir=.
  3372. for ac_prog in grep ggrep; do
  3373. for ac_exec_ext in '' $ac_executable_extensions; do
  3374. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3375. as_fn_executable_p "$ac_path_GREP" || continue
  3376. # Check for GNU ac_path_GREP and select it if it is found.
  3377. # Check for GNU $ac_path_GREP
  3378. case `"$ac_path_GREP" --version 2>&1` in
  3379. *GNU*)
  3380. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3381. *)
  3382. ac_count=0
  3383. $as_echo_n 0123456789 >"conftest.in"
  3384. while :
  3385. do
  3386. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3387. mv "conftest.tmp" "conftest.in"
  3388. cp "conftest.in" "conftest.nl"
  3389. $as_echo 'GREP' >> "conftest.nl"
  3390. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3391. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3392. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3393. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3394. # Best one so far, save it but keep looking for a better one
  3395. ac_cv_path_GREP="$ac_path_GREP"
  3396. ac_path_GREP_max=$ac_count
  3397. fi
  3398. # 10*(2^10) chars as input seems more than enough
  3399. test $ac_count -gt 10 && break
  3400. done
  3401. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3402. esac
  3403. $ac_path_GREP_found && break 3
  3404. done
  3405. done
  3406. done
  3407. IFS=$as_save_IFS
  3408. if test -z "$ac_cv_path_GREP"; then
  3409. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3410. fi
  3411. else
  3412. ac_cv_path_GREP=$GREP
  3413. fi
  3414. fi
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3416. $as_echo "$ac_cv_path_GREP" >&6; }
  3417. GREP="$ac_cv_path_GREP"
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3419. $as_echo_n "checking for egrep... " >&6; }
  3420. if ${ac_cv_path_EGREP+:} false; then :
  3421. $as_echo_n "(cached) " >&6
  3422. else
  3423. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3424. then ac_cv_path_EGREP="$GREP -E"
  3425. else
  3426. if test -z "$EGREP"; then
  3427. ac_path_EGREP_found=false
  3428. # Loop through the user's path and test for each of PROGNAME-LIST
  3429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3430. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3431. do
  3432. IFS=$as_save_IFS
  3433. test -z "$as_dir" && as_dir=.
  3434. for ac_prog in egrep; do
  3435. for ac_exec_ext in '' $ac_executable_extensions; do
  3436. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3437. as_fn_executable_p "$ac_path_EGREP" || continue
  3438. # Check for GNU ac_path_EGREP and select it if it is found.
  3439. # Check for GNU $ac_path_EGREP
  3440. case `"$ac_path_EGREP" --version 2>&1` in
  3441. *GNU*)
  3442. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3443. *)
  3444. ac_count=0
  3445. $as_echo_n 0123456789 >"conftest.in"
  3446. while :
  3447. do
  3448. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3449. mv "conftest.tmp" "conftest.in"
  3450. cp "conftest.in" "conftest.nl"
  3451. $as_echo 'EGREP' >> "conftest.nl"
  3452. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3453. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3454. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3455. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3456. # Best one so far, save it but keep looking for a better one
  3457. ac_cv_path_EGREP="$ac_path_EGREP"
  3458. ac_path_EGREP_max=$ac_count
  3459. fi
  3460. # 10*(2^10) chars as input seems more than enough
  3461. test $ac_count -gt 10 && break
  3462. done
  3463. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3464. esac
  3465. $ac_path_EGREP_found && break 3
  3466. done
  3467. done
  3468. done
  3469. IFS=$as_save_IFS
  3470. if test -z "$ac_cv_path_EGREP"; then
  3471. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3472. fi
  3473. else
  3474. ac_cv_path_EGREP=$EGREP
  3475. fi
  3476. fi
  3477. fi
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3479. $as_echo "$ac_cv_path_EGREP" >&6; }
  3480. EGREP="$ac_cv_path_EGREP"
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3482. $as_echo_n "checking for fgrep... " >&6; }
  3483. if ${ac_cv_path_FGREP+:} false; then :
  3484. $as_echo_n "(cached) " >&6
  3485. else
  3486. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3487. then ac_cv_path_FGREP="$GREP -F"
  3488. else
  3489. if test -z "$FGREP"; then
  3490. ac_path_FGREP_found=false
  3491. # Loop through the user's path and test for each of PROGNAME-LIST
  3492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3493. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3494. do
  3495. IFS=$as_save_IFS
  3496. test -z "$as_dir" && as_dir=.
  3497. for ac_prog in fgrep; do
  3498. for ac_exec_ext in '' $ac_executable_extensions; do
  3499. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3500. as_fn_executable_p "$ac_path_FGREP" || continue
  3501. # Check for GNU ac_path_FGREP and select it if it is found.
  3502. # Check for GNU $ac_path_FGREP
  3503. case `"$ac_path_FGREP" --version 2>&1` in
  3504. *GNU*)
  3505. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3506. *)
  3507. ac_count=0
  3508. $as_echo_n 0123456789 >"conftest.in"
  3509. while :
  3510. do
  3511. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3512. mv "conftest.tmp" "conftest.in"
  3513. cp "conftest.in" "conftest.nl"
  3514. $as_echo 'FGREP' >> "conftest.nl"
  3515. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3516. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3517. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3518. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3519. # Best one so far, save it but keep looking for a better one
  3520. ac_cv_path_FGREP="$ac_path_FGREP"
  3521. ac_path_FGREP_max=$ac_count
  3522. fi
  3523. # 10*(2^10) chars as input seems more than enough
  3524. test $ac_count -gt 10 && break
  3525. done
  3526. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3527. esac
  3528. $ac_path_FGREP_found && break 3
  3529. done
  3530. done
  3531. done
  3532. IFS=$as_save_IFS
  3533. if test -z "$ac_cv_path_FGREP"; then
  3534. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3535. fi
  3536. else
  3537. ac_cv_path_FGREP=$FGREP
  3538. fi
  3539. fi
  3540. fi
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3542. $as_echo "$ac_cv_path_FGREP" >&6; }
  3543. FGREP="$ac_cv_path_FGREP"
  3544. test -z "$GREP" && GREP=grep
  3545. # Check whether --with-gnu-ld was given.
  3546. if test "${with_gnu_ld+set}" = set; then :
  3547. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3548. else
  3549. with_gnu_ld=no
  3550. fi
  3551. ac_prog=ld
  3552. if test "$GCC" = yes; then
  3553. # Check if gcc -print-prog-name=ld gives a path.
  3554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3555. $as_echo_n "checking for ld used by $CC... " >&6; }
  3556. case $host in
  3557. *-*-mingw*)
  3558. # gcc leaves a trailing carriage return which upsets mingw
  3559. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3560. *)
  3561. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3562. esac
  3563. case $ac_prog in
  3564. # Accept absolute paths.
  3565. [\\/]* | ?:[\\/]*)
  3566. re_direlt='/[^/][^/]*/\.\./'
  3567. # Canonicalize the pathname of ld
  3568. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3569. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3570. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3571. done
  3572. test -z "$LD" && LD="$ac_prog"
  3573. ;;
  3574. "")
  3575. # If it fails, then pretend we aren't using GCC.
  3576. ac_prog=ld
  3577. ;;
  3578. *)
  3579. # If it is relative, then search for the first ld in PATH.
  3580. with_gnu_ld=unknown
  3581. ;;
  3582. esac
  3583. elif test "$with_gnu_ld" = yes; then
  3584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3585. $as_echo_n "checking for GNU ld... " >&6; }
  3586. else
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3588. $as_echo_n "checking for non-GNU ld... " >&6; }
  3589. fi
  3590. if ${lt_cv_path_LD+:} false; then :
  3591. $as_echo_n "(cached) " >&6
  3592. else
  3593. if test -z "$LD"; then
  3594. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3595. for ac_dir in $PATH; do
  3596. IFS="$lt_save_ifs"
  3597. test -z "$ac_dir" && ac_dir=.
  3598. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3599. lt_cv_path_LD="$ac_dir/$ac_prog"
  3600. # Check to see if the program is GNU ld. I'd rather use --version,
  3601. # but apparently some variants of GNU ld only accept -v.
  3602. # Break only if it was the GNU/non-GNU ld that we prefer.
  3603. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3604. *GNU* | *'with BFD'*)
  3605. test "$with_gnu_ld" != no && break
  3606. ;;
  3607. *)
  3608. test "$with_gnu_ld" != yes && break
  3609. ;;
  3610. esac
  3611. fi
  3612. done
  3613. IFS="$lt_save_ifs"
  3614. else
  3615. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3616. fi
  3617. fi
  3618. LD="$lt_cv_path_LD"
  3619. if test -n "$LD"; then
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3621. $as_echo "$LD" >&6; }
  3622. else
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3624. $as_echo "no" >&6; }
  3625. fi
  3626. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3628. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3629. if ${lt_cv_prog_gnu_ld+:} false; then :
  3630. $as_echo_n "(cached) " >&6
  3631. else
  3632. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3633. case `$LD -v 2>&1 </dev/null` in
  3634. *GNU* | *'with BFD'*)
  3635. lt_cv_prog_gnu_ld=yes
  3636. ;;
  3637. *)
  3638. lt_cv_prog_gnu_ld=no
  3639. ;;
  3640. esac
  3641. fi
  3642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3643. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3644. with_gnu_ld=$lt_cv_prog_gnu_ld
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3646. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3647. if ${lt_cv_path_NM+:} false; then :
  3648. $as_echo_n "(cached) " >&6
  3649. else
  3650. if test -n "$NM"; then
  3651. # Let the user override the test.
  3652. lt_cv_path_NM="$NM"
  3653. else
  3654. lt_nm_to_check="${ac_tool_prefix}nm"
  3655. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3656. lt_nm_to_check="$lt_nm_to_check nm"
  3657. fi
  3658. for lt_tmp_nm in $lt_nm_to_check; do
  3659. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3660. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3661. IFS="$lt_save_ifs"
  3662. test -z "$ac_dir" && ac_dir=.
  3663. tmp_nm="$ac_dir/$lt_tmp_nm"
  3664. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3665. # Check to see if the nm accepts a BSD-compat flag.
  3666. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3667. # nm: unknown option "B" ignored
  3668. # Tru64's nm complains that /dev/null is an invalid object file
  3669. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3670. */dev/null* | *'Invalid file or object type'*)
  3671. lt_cv_path_NM="$tmp_nm -B"
  3672. break
  3673. ;;
  3674. *)
  3675. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3676. */dev/null*)
  3677. lt_cv_path_NM="$tmp_nm -p"
  3678. break
  3679. ;;
  3680. *)
  3681. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3682. continue # so that we can try to find one that supports BSD flags
  3683. ;;
  3684. esac
  3685. ;;
  3686. esac
  3687. fi
  3688. done
  3689. IFS="$lt_save_ifs"
  3690. done
  3691. : ${lt_cv_path_NM=no}
  3692. fi
  3693. fi
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3695. $as_echo "$lt_cv_path_NM" >&6; }
  3696. if test "$lt_cv_path_NM" != "no"; then
  3697. NM="$lt_cv_path_NM"
  3698. else
  3699. # Didn't find any BSD compatible name lister, look for dumpbin.
  3700. if test -n "$DUMPBIN"; then :
  3701. # Let the user override the test.
  3702. else
  3703. if test -n "$ac_tool_prefix"; then
  3704. for ac_prog in dumpbin "link -dump"
  3705. do
  3706. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3707. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3709. $as_echo_n "checking for $ac_word... " >&6; }
  3710. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3711. $as_echo_n "(cached) " >&6
  3712. else
  3713. if test -n "$DUMPBIN"; then
  3714. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3715. else
  3716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3717. for as_dir in $PATH
  3718. do
  3719. IFS=$as_save_IFS
  3720. test -z "$as_dir" && as_dir=.
  3721. for ac_exec_ext in '' $ac_executable_extensions; do
  3722. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3723. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3724. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3725. break 2
  3726. fi
  3727. done
  3728. done
  3729. IFS=$as_save_IFS
  3730. fi
  3731. fi
  3732. DUMPBIN=$ac_cv_prog_DUMPBIN
  3733. if test -n "$DUMPBIN"; then
  3734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3735. $as_echo "$DUMPBIN" >&6; }
  3736. else
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3738. $as_echo "no" >&6; }
  3739. fi
  3740. test -n "$DUMPBIN" && break
  3741. done
  3742. fi
  3743. if test -z "$DUMPBIN"; then
  3744. ac_ct_DUMPBIN=$DUMPBIN
  3745. for ac_prog in dumpbin "link -dump"
  3746. do
  3747. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3748. set dummy $ac_prog; ac_word=$2
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3750. $as_echo_n "checking for $ac_word... " >&6; }
  3751. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3752. $as_echo_n "(cached) " >&6
  3753. else
  3754. if test -n "$ac_ct_DUMPBIN"; then
  3755. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3756. else
  3757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3758. for as_dir in $PATH
  3759. do
  3760. IFS=$as_save_IFS
  3761. test -z "$as_dir" && as_dir=.
  3762. for ac_exec_ext in '' $ac_executable_extensions; do
  3763. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3764. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3766. break 2
  3767. fi
  3768. done
  3769. done
  3770. IFS=$as_save_IFS
  3771. fi
  3772. fi
  3773. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3774. if test -n "$ac_ct_DUMPBIN"; then
  3775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3776. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3777. else
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3779. $as_echo "no" >&6; }
  3780. fi
  3781. test -n "$ac_ct_DUMPBIN" && break
  3782. done
  3783. if test "x$ac_ct_DUMPBIN" = x; then
  3784. DUMPBIN=":"
  3785. else
  3786. case $cross_compiling:$ac_tool_warned in
  3787. yes:)
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3789. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3790. ac_tool_warned=yes ;;
  3791. esac
  3792. DUMPBIN=$ac_ct_DUMPBIN
  3793. fi
  3794. fi
  3795. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3796. *COFF*)
  3797. DUMPBIN="$DUMPBIN -symbols"
  3798. ;;
  3799. *)
  3800. DUMPBIN=:
  3801. ;;
  3802. esac
  3803. fi
  3804. if test "$DUMPBIN" != ":"; then
  3805. NM="$DUMPBIN"
  3806. fi
  3807. fi
  3808. test -z "$NM" && NM=nm
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3810. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3811. if ${lt_cv_nm_interface+:} false; then :
  3812. $as_echo_n "(cached) " >&6
  3813. else
  3814. lt_cv_nm_interface="BSD nm"
  3815. echo "int some_variable = 0;" > conftest.$ac_ext
  3816. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3817. (eval "$ac_compile" 2>conftest.err)
  3818. cat conftest.err >&5
  3819. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3820. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3821. cat conftest.err >&5
  3822. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3823. cat conftest.out >&5
  3824. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3825. lt_cv_nm_interface="MS dumpbin"
  3826. fi
  3827. rm -f conftest*
  3828. fi
  3829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3830. $as_echo "$lt_cv_nm_interface" >&6; }
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3832. $as_echo_n "checking whether ln -s works... " >&6; }
  3833. LN_S=$as_ln_s
  3834. if test "$LN_S" = "ln -s"; then
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3836. $as_echo "yes" >&6; }
  3837. else
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3839. $as_echo "no, using $LN_S" >&6; }
  3840. fi
  3841. # find the maximum length of command line arguments
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3843. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3844. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3845. $as_echo_n "(cached) " >&6
  3846. else
  3847. i=0
  3848. teststring="ABCD"
  3849. case $build_os in
  3850. msdosdjgpp*)
  3851. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3852. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3853. # during glob expansion). Even if it were fixed, the result of this
  3854. # check would be larger than it should be.
  3855. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3856. ;;
  3857. gnu*)
  3858. # Under GNU Hurd, this test is not required because there is
  3859. # no limit to the length of command line arguments.
  3860. # Libtool will interpret -1 as no limit whatsoever
  3861. lt_cv_sys_max_cmd_len=-1;
  3862. ;;
  3863. cygwin* | mingw* | cegcc*)
  3864. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3865. # about 5 minutes as the teststring grows exponentially.
  3866. # Worse, since 9x/ME are not pre-emptively multitasking,
  3867. # you end up with a "frozen" computer, even though with patience
  3868. # the test eventually succeeds (with a max line length of 256k).
  3869. # Instead, let's just punt: use the minimum linelength reported by
  3870. # all of the supported platforms: 8192 (on NT/2K/XP).
  3871. lt_cv_sys_max_cmd_len=8192;
  3872. ;;
  3873. mint*)
  3874. # On MiNT this can take a long time and run out of memory.
  3875. lt_cv_sys_max_cmd_len=8192;
  3876. ;;
  3877. amigaos*)
  3878. # On AmigaOS with pdksh, this test takes hours, literally.
  3879. # So we just punt and use a minimum line length of 8192.
  3880. lt_cv_sys_max_cmd_len=8192;
  3881. ;;
  3882. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3883. # This has been around since 386BSD, at least. Likely further.
  3884. if test -x /sbin/sysctl; then
  3885. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3886. elif test -x /usr/sbin/sysctl; then
  3887. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3888. else
  3889. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3890. fi
  3891. # And add a safety zone
  3892. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3893. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3894. ;;
  3895. interix*)
  3896. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3897. lt_cv_sys_max_cmd_len=196608
  3898. ;;
  3899. os2*)
  3900. # The test takes a long time on OS/2.
  3901. lt_cv_sys_max_cmd_len=8192
  3902. ;;
  3903. osf*)
  3904. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3905. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3906. # nice to cause kernel panics so lets avoid the loop below.
  3907. # First set a reasonable default.
  3908. lt_cv_sys_max_cmd_len=16384
  3909. #
  3910. if test -x /sbin/sysconfig; then
  3911. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3912. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3913. esac
  3914. fi
  3915. ;;
  3916. sco3.2v5*)
  3917. lt_cv_sys_max_cmd_len=102400
  3918. ;;
  3919. sysv5* | sco5v6* | sysv4.2uw2*)
  3920. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3921. if test -n "$kargmax"; then
  3922. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3923. else
  3924. lt_cv_sys_max_cmd_len=32768
  3925. fi
  3926. ;;
  3927. *)
  3928. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3929. if test -n "$lt_cv_sys_max_cmd_len"; then
  3930. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3931. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3932. else
  3933. # Make teststring a little bigger before we do anything with it.
  3934. # a 1K string should be a reasonable start.
  3935. for i in 1 2 3 4 5 6 7 8 ; do
  3936. teststring=$teststring$teststring
  3937. done
  3938. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3939. # If test is not a shell built-in, we'll probably end up computing a
  3940. # maximum length that is only half of the actual maximum length, but
  3941. # we can't tell.
  3942. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3943. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3944. test $i != 17 # 1/2 MB should be enough
  3945. do
  3946. i=`expr $i + 1`
  3947. teststring=$teststring$teststring
  3948. done
  3949. # Only check the string length outside the loop.
  3950. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3951. teststring=
  3952. # Add a significant safety factor because C++ compilers can tack on
  3953. # massive amounts of additional arguments before passing them to the
  3954. # linker. It appears as though 1/2 is a usable value.
  3955. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3956. fi
  3957. ;;
  3958. esac
  3959. fi
  3960. if test -n $lt_cv_sys_max_cmd_len ; then
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3962. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3963. else
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3965. $as_echo "none" >&6; }
  3966. fi
  3967. max_cmd_len=$lt_cv_sys_max_cmd_len
  3968. : ${CP="cp -f"}
  3969. : ${MV="mv -f"}
  3970. : ${RM="rm -f"}
  3971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3972. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3973. # Try some XSI features
  3974. xsi_shell=no
  3975. ( _lt_dummy="a/b/c"
  3976. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  3977. = c,a/b,b/c, \
  3978. && eval 'test $(( 1 + 1 )) -eq 2 \
  3979. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3980. && xsi_shell=yes
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  3982. $as_echo "$xsi_shell" >&6; }
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  3984. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  3985. lt_shell_append=no
  3986. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  3987. >/dev/null 2>&1 \
  3988. && lt_shell_append=yes
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  3990. $as_echo "$lt_shell_append" >&6; }
  3991. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  3992. lt_unset=unset
  3993. else
  3994. lt_unset=false
  3995. fi
  3996. # test EBCDIC or ASCII
  3997. case `echo X|tr X '\101'` in
  3998. A) # ASCII based system
  3999. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4000. lt_SP2NL='tr \040 \012'
  4001. lt_NL2SP='tr \015\012 \040\040'
  4002. ;;
  4003. *) # EBCDIC based system
  4004. lt_SP2NL='tr \100 \n'
  4005. lt_NL2SP='tr \r\n \100\100'
  4006. ;;
  4007. esac
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4009. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4010. if ${lt_cv_to_host_file_cmd+:} false; then :
  4011. $as_echo_n "(cached) " >&6
  4012. else
  4013. case $host in
  4014. *-*-mingw* )
  4015. case $build in
  4016. *-*-mingw* ) # actually msys
  4017. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4018. ;;
  4019. *-*-cygwin* )
  4020. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4021. ;;
  4022. * ) # otherwise, assume *nix
  4023. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4024. ;;
  4025. esac
  4026. ;;
  4027. *-*-cygwin* )
  4028. case $build in
  4029. *-*-mingw* ) # actually msys
  4030. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4031. ;;
  4032. *-*-cygwin* )
  4033. lt_cv_to_host_file_cmd=func_convert_file_noop
  4034. ;;
  4035. * ) # otherwise, assume *nix
  4036. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4037. ;;
  4038. esac
  4039. ;;
  4040. * ) # unhandled hosts (and "normal" native builds)
  4041. lt_cv_to_host_file_cmd=func_convert_file_noop
  4042. ;;
  4043. esac
  4044. fi
  4045. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4047. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4049. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4050. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4051. $as_echo_n "(cached) " >&6
  4052. else
  4053. #assume ordinary cross tools, or native build.
  4054. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4055. case $host in
  4056. *-*-mingw* )
  4057. case $build in
  4058. *-*-mingw* ) # actually msys
  4059. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4060. ;;
  4061. esac
  4062. ;;
  4063. esac
  4064. fi
  4065. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4067. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4069. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4070. if ${lt_cv_ld_reload_flag+:} false; then :
  4071. $as_echo_n "(cached) " >&6
  4072. else
  4073. lt_cv_ld_reload_flag='-r'
  4074. fi
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4076. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4077. reload_flag=$lt_cv_ld_reload_flag
  4078. case $reload_flag in
  4079. "" | " "*) ;;
  4080. *) reload_flag=" $reload_flag" ;;
  4081. esac
  4082. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4083. case $host_os in
  4084. cygwin* | mingw* | pw32* | cegcc*)
  4085. if test "$GCC" != yes; then
  4086. reload_cmds=false
  4087. fi
  4088. ;;
  4089. darwin*)
  4090. if test "$GCC" = yes; then
  4091. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4092. else
  4093. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4094. fi
  4095. ;;
  4096. esac
  4097. if test -n "$ac_tool_prefix"; then
  4098. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4099. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4101. $as_echo_n "checking for $ac_word... " >&6; }
  4102. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4103. $as_echo_n "(cached) " >&6
  4104. else
  4105. if test -n "$OBJDUMP"; then
  4106. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4107. else
  4108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4109. for as_dir in $PATH
  4110. do
  4111. IFS=$as_save_IFS
  4112. test -z "$as_dir" && as_dir=.
  4113. for ac_exec_ext in '' $ac_executable_extensions; do
  4114. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4115. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4116. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4117. break 2
  4118. fi
  4119. done
  4120. done
  4121. IFS=$as_save_IFS
  4122. fi
  4123. fi
  4124. OBJDUMP=$ac_cv_prog_OBJDUMP
  4125. if test -n "$OBJDUMP"; then
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4127. $as_echo "$OBJDUMP" >&6; }
  4128. else
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4130. $as_echo "no" >&6; }
  4131. fi
  4132. fi
  4133. if test -z "$ac_cv_prog_OBJDUMP"; then
  4134. ac_ct_OBJDUMP=$OBJDUMP
  4135. # Extract the first word of "objdump", so it can be a program name with args.
  4136. set dummy objdump; ac_word=$2
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4138. $as_echo_n "checking for $ac_word... " >&6; }
  4139. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4140. $as_echo_n "(cached) " >&6
  4141. else
  4142. if test -n "$ac_ct_OBJDUMP"; then
  4143. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4144. else
  4145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4146. for as_dir in $PATH
  4147. do
  4148. IFS=$as_save_IFS
  4149. test -z "$as_dir" && as_dir=.
  4150. for ac_exec_ext in '' $ac_executable_extensions; do
  4151. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4152. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4154. break 2
  4155. fi
  4156. done
  4157. done
  4158. IFS=$as_save_IFS
  4159. fi
  4160. fi
  4161. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4162. if test -n "$ac_ct_OBJDUMP"; then
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4164. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4165. else
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4167. $as_echo "no" >&6; }
  4168. fi
  4169. if test "x$ac_ct_OBJDUMP" = x; then
  4170. OBJDUMP="false"
  4171. else
  4172. case $cross_compiling:$ac_tool_warned in
  4173. yes:)
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4175. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4176. ac_tool_warned=yes ;;
  4177. esac
  4178. OBJDUMP=$ac_ct_OBJDUMP
  4179. fi
  4180. else
  4181. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4182. fi
  4183. test -z "$OBJDUMP" && OBJDUMP=objdump
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4185. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4186. if ${lt_cv_deplibs_check_method+:} false; then :
  4187. $as_echo_n "(cached) " >&6
  4188. else
  4189. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4190. lt_cv_file_magic_test_file=
  4191. lt_cv_deplibs_check_method='unknown'
  4192. # Need to set the preceding variable on all platforms that support
  4193. # interlibrary dependencies.
  4194. # 'none' -- dependencies not supported.
  4195. # `unknown' -- same as none, but documents that we really don't know.
  4196. # 'pass_all' -- all dependencies passed with no checks.
  4197. # 'test_compile' -- check by making test program.
  4198. # 'file_magic [[regex]]' -- check by looking for files in library path
  4199. # which responds to the $file_magic_cmd with a given extended regex.
  4200. # If you have `file' or equivalent on your system and you're not sure
  4201. # whether `pass_all' will *always* work, you probably want this one.
  4202. case $host_os in
  4203. aix[4-9]*)
  4204. lt_cv_deplibs_check_method=pass_all
  4205. ;;
  4206. beos*)
  4207. lt_cv_deplibs_check_method=pass_all
  4208. ;;
  4209. bsdi[45]*)
  4210. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4211. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4212. lt_cv_file_magic_test_file=/shlib/libc.so
  4213. ;;
  4214. cygwin*)
  4215. # func_win32_libid is a shell function defined in ltmain.sh
  4216. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4217. lt_cv_file_magic_cmd='func_win32_libid'
  4218. lt_cv_deplibs_check_method=pass_all
  4219. ;;
  4220. mingw* | pw32*)
  4221. # Base MSYS/MinGW do not provide the 'file' command needed by
  4222. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4223. # unless we find 'file', for example because we are cross-compiling.
  4224. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4225. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4226. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4227. lt_cv_file_magic_cmd='func_win32_libid'
  4228. else
  4229. # Keep this pattern in sync with the one in func_win32_libid.
  4230. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4231. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4232. fi
  4233. lt_cv_deplibs_check_method=pass_all
  4234. ;;
  4235. cegcc*)
  4236. # use the weaker test based on 'objdump'. See mingw*.
  4237. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4238. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4239. ;;
  4240. darwin* | rhapsody*)
  4241. lt_cv_deplibs_check_method=pass_all
  4242. ;;
  4243. freebsd* | dragonfly*)
  4244. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4245. case $host_cpu in
  4246. i*86 )
  4247. # Not sure whether the presence of OpenBSD here was a mistake.
  4248. # Let's accept both of them until this is cleared up.
  4249. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4250. lt_cv_file_magic_cmd=/usr/bin/file
  4251. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4252. ;;
  4253. esac
  4254. else
  4255. lt_cv_deplibs_check_method=pass_all
  4256. fi
  4257. ;;
  4258. gnu*)
  4259. lt_cv_deplibs_check_method=pass_all
  4260. ;;
  4261. haiku*)
  4262. lt_cv_deplibs_check_method=pass_all
  4263. ;;
  4264. hpux10.20* | hpux11*)
  4265. lt_cv_file_magic_cmd=/usr/bin/file
  4266. case $host_cpu in
  4267. ia64*)
  4268. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4269. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4270. ;;
  4271. hppa*64*)
  4272. 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]'
  4273. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4274. ;;
  4275. *)
  4276. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4277. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4278. ;;
  4279. esac
  4280. ;;
  4281. interix[3-9]*)
  4282. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4283. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4284. ;;
  4285. irix5* | irix6* | nonstopux*)
  4286. case $LD in
  4287. *-32|*"-32 ") libmagic=32-bit;;
  4288. *-n32|*"-n32 ") libmagic=N32;;
  4289. *-64|*"-64 ") libmagic=64-bit;;
  4290. *) libmagic=never-match;;
  4291. esac
  4292. lt_cv_deplibs_check_method=pass_all
  4293. ;;
  4294. # This must be glibc/ELF.
  4295. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4296. lt_cv_deplibs_check_method=pass_all
  4297. ;;
  4298. netbsd*)
  4299. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4300. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4301. else
  4302. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4303. fi
  4304. ;;
  4305. newos6*)
  4306. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4307. lt_cv_file_magic_cmd=/usr/bin/file
  4308. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4309. ;;
  4310. *nto* | *qnx*)
  4311. lt_cv_deplibs_check_method=pass_all
  4312. ;;
  4313. openbsd*)
  4314. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4315. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4316. else
  4317. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4318. fi
  4319. ;;
  4320. osf3* | osf4* | osf5*)
  4321. lt_cv_deplibs_check_method=pass_all
  4322. ;;
  4323. rdos*)
  4324. lt_cv_deplibs_check_method=pass_all
  4325. ;;
  4326. solaris*)
  4327. lt_cv_deplibs_check_method=pass_all
  4328. ;;
  4329. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4330. lt_cv_deplibs_check_method=pass_all
  4331. ;;
  4332. sysv4 | sysv4.3*)
  4333. case $host_vendor in
  4334. motorola)
  4335. 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]'
  4336. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4337. ;;
  4338. ncr)
  4339. lt_cv_deplibs_check_method=pass_all
  4340. ;;
  4341. sequent)
  4342. lt_cv_file_magic_cmd='/bin/file'
  4343. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4344. ;;
  4345. sni)
  4346. lt_cv_file_magic_cmd='/bin/file'
  4347. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4348. lt_cv_file_magic_test_file=/lib/libc.so
  4349. ;;
  4350. siemens)
  4351. lt_cv_deplibs_check_method=pass_all
  4352. ;;
  4353. pc)
  4354. lt_cv_deplibs_check_method=pass_all
  4355. ;;
  4356. esac
  4357. ;;
  4358. tpf*)
  4359. lt_cv_deplibs_check_method=pass_all
  4360. ;;
  4361. esac
  4362. fi
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4364. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4365. file_magic_glob=
  4366. want_nocaseglob=no
  4367. if test "$build" = "$host"; then
  4368. case $host_os in
  4369. mingw* | pw32*)
  4370. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4371. want_nocaseglob=yes
  4372. else
  4373. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4374. fi
  4375. ;;
  4376. esac
  4377. fi
  4378. file_magic_cmd=$lt_cv_file_magic_cmd
  4379. deplibs_check_method=$lt_cv_deplibs_check_method
  4380. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4381. if test -n "$ac_tool_prefix"; then
  4382. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4383. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4385. $as_echo_n "checking for $ac_word... " >&6; }
  4386. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4387. $as_echo_n "(cached) " >&6
  4388. else
  4389. if test -n "$DLLTOOL"; then
  4390. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4391. else
  4392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4393. for as_dir in $PATH
  4394. do
  4395. IFS=$as_save_IFS
  4396. test -z "$as_dir" && as_dir=.
  4397. for ac_exec_ext in '' $ac_executable_extensions; do
  4398. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4399. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4401. break 2
  4402. fi
  4403. done
  4404. done
  4405. IFS=$as_save_IFS
  4406. fi
  4407. fi
  4408. DLLTOOL=$ac_cv_prog_DLLTOOL
  4409. if test -n "$DLLTOOL"; then
  4410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4411. $as_echo "$DLLTOOL" >&6; }
  4412. else
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4414. $as_echo "no" >&6; }
  4415. fi
  4416. fi
  4417. if test -z "$ac_cv_prog_DLLTOOL"; then
  4418. ac_ct_DLLTOOL=$DLLTOOL
  4419. # Extract the first word of "dlltool", so it can be a program name with args.
  4420. set dummy dlltool; ac_word=$2
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4422. $as_echo_n "checking for $ac_word... " >&6; }
  4423. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4424. $as_echo_n "(cached) " >&6
  4425. else
  4426. if test -n "$ac_ct_DLLTOOL"; then
  4427. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4428. else
  4429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4430. for as_dir in $PATH
  4431. do
  4432. IFS=$as_save_IFS
  4433. test -z "$as_dir" && as_dir=.
  4434. for ac_exec_ext in '' $ac_executable_extensions; do
  4435. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4436. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4438. break 2
  4439. fi
  4440. done
  4441. done
  4442. IFS=$as_save_IFS
  4443. fi
  4444. fi
  4445. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4446. if test -n "$ac_ct_DLLTOOL"; then
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4448. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4449. else
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4451. $as_echo "no" >&6; }
  4452. fi
  4453. if test "x$ac_ct_DLLTOOL" = x; then
  4454. DLLTOOL="false"
  4455. else
  4456. case $cross_compiling:$ac_tool_warned in
  4457. yes:)
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4459. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4460. ac_tool_warned=yes ;;
  4461. esac
  4462. DLLTOOL=$ac_ct_DLLTOOL
  4463. fi
  4464. else
  4465. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4466. fi
  4467. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4469. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4470. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4471. $as_echo_n "(cached) " >&6
  4472. else
  4473. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4474. case $host_os in
  4475. cygwin* | mingw* | pw32* | cegcc*)
  4476. # two different shell functions defined in ltmain.sh
  4477. # decide which to use based on capabilities of $DLLTOOL
  4478. case `$DLLTOOL --help 2>&1` in
  4479. *--identify-strict*)
  4480. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4481. ;;
  4482. *)
  4483. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4484. ;;
  4485. esac
  4486. ;;
  4487. *)
  4488. # fallback: assume linklib IS sharedlib
  4489. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4490. ;;
  4491. esac
  4492. fi
  4493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4494. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4495. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4496. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4497. if test -n "$ac_tool_prefix"; then
  4498. for ac_prog in ar
  4499. do
  4500. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4501. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4503. $as_echo_n "checking for $ac_word... " >&6; }
  4504. if ${ac_cv_prog_AR+:} false; then :
  4505. $as_echo_n "(cached) " >&6
  4506. else
  4507. if test -n "$AR"; then
  4508. ac_cv_prog_AR="$AR" # Let the user override the test.
  4509. else
  4510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4511. for as_dir in $PATH
  4512. do
  4513. IFS=$as_save_IFS
  4514. test -z "$as_dir" && as_dir=.
  4515. for ac_exec_ext in '' $ac_executable_extensions; do
  4516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4517. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4519. break 2
  4520. fi
  4521. done
  4522. done
  4523. IFS=$as_save_IFS
  4524. fi
  4525. fi
  4526. AR=$ac_cv_prog_AR
  4527. if test -n "$AR"; then
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4529. $as_echo "$AR" >&6; }
  4530. else
  4531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4532. $as_echo "no" >&6; }
  4533. fi
  4534. test -n "$AR" && break
  4535. done
  4536. fi
  4537. if test -z "$AR"; then
  4538. ac_ct_AR=$AR
  4539. for ac_prog in ar
  4540. do
  4541. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4542. set dummy $ac_prog; ac_word=$2
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4544. $as_echo_n "checking for $ac_word... " >&6; }
  4545. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4546. $as_echo_n "(cached) " >&6
  4547. else
  4548. if test -n "$ac_ct_AR"; then
  4549. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4550. else
  4551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4552. for as_dir in $PATH
  4553. do
  4554. IFS=$as_save_IFS
  4555. test -z "$as_dir" && as_dir=.
  4556. for ac_exec_ext in '' $ac_executable_extensions; do
  4557. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4558. ac_cv_prog_ac_ct_AR="$ac_prog"
  4559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4560. break 2
  4561. fi
  4562. done
  4563. done
  4564. IFS=$as_save_IFS
  4565. fi
  4566. fi
  4567. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4568. if test -n "$ac_ct_AR"; then
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4570. $as_echo "$ac_ct_AR" >&6; }
  4571. else
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4573. $as_echo "no" >&6; }
  4574. fi
  4575. test -n "$ac_ct_AR" && break
  4576. done
  4577. if test "x$ac_ct_AR" = x; then
  4578. AR="false"
  4579. else
  4580. case $cross_compiling:$ac_tool_warned in
  4581. yes:)
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4583. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4584. ac_tool_warned=yes ;;
  4585. esac
  4586. AR=$ac_ct_AR
  4587. fi
  4588. fi
  4589. : ${AR=ar}
  4590. : ${AR_FLAGS=cru}
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4592. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4593. if ${lt_cv_ar_at_file+:} false; then :
  4594. $as_echo_n "(cached) " >&6
  4595. else
  4596. lt_cv_ar_at_file=no
  4597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4598. /* end confdefs.h. */
  4599. int
  4600. main ()
  4601. {
  4602. ;
  4603. return 0;
  4604. }
  4605. _ACEOF
  4606. if ac_fn_c_try_compile "$LINENO"; then :
  4607. echo conftest.$ac_objext > conftest.lst
  4608. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4609. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4610. (eval $lt_ar_try) 2>&5
  4611. ac_status=$?
  4612. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4613. test $ac_status = 0; }
  4614. if test "$ac_status" -eq 0; then
  4615. # Ensure the archiver fails upon bogus file names.
  4616. rm -f conftest.$ac_objext libconftest.a
  4617. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4618. (eval $lt_ar_try) 2>&5
  4619. ac_status=$?
  4620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4621. test $ac_status = 0; }
  4622. if test "$ac_status" -ne 0; then
  4623. lt_cv_ar_at_file=@
  4624. fi
  4625. fi
  4626. rm -f conftest.* libconftest.a
  4627. fi
  4628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4629. fi
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4631. $as_echo "$lt_cv_ar_at_file" >&6; }
  4632. if test "x$lt_cv_ar_at_file" = xno; then
  4633. archiver_list_spec=
  4634. else
  4635. archiver_list_spec=$lt_cv_ar_at_file
  4636. fi
  4637. if test -n "$ac_tool_prefix"; then
  4638. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4639. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4641. $as_echo_n "checking for $ac_word... " >&6; }
  4642. if ${ac_cv_prog_STRIP+:} false; then :
  4643. $as_echo_n "(cached) " >&6
  4644. else
  4645. if test -n "$STRIP"; then
  4646. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4647. else
  4648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4649. for as_dir in $PATH
  4650. do
  4651. IFS=$as_save_IFS
  4652. test -z "$as_dir" && as_dir=.
  4653. for ac_exec_ext in '' $ac_executable_extensions; do
  4654. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4655. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4657. break 2
  4658. fi
  4659. done
  4660. done
  4661. IFS=$as_save_IFS
  4662. fi
  4663. fi
  4664. STRIP=$ac_cv_prog_STRIP
  4665. if test -n "$STRIP"; then
  4666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4667. $as_echo "$STRIP" >&6; }
  4668. else
  4669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4670. $as_echo "no" >&6; }
  4671. fi
  4672. fi
  4673. if test -z "$ac_cv_prog_STRIP"; then
  4674. ac_ct_STRIP=$STRIP
  4675. # Extract the first word of "strip", so it can be a program name with args.
  4676. set dummy strip; ac_word=$2
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4678. $as_echo_n "checking for $ac_word... " >&6; }
  4679. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4680. $as_echo_n "(cached) " >&6
  4681. else
  4682. if test -n "$ac_ct_STRIP"; then
  4683. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4684. else
  4685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4686. for as_dir in $PATH
  4687. do
  4688. IFS=$as_save_IFS
  4689. test -z "$as_dir" && as_dir=.
  4690. for ac_exec_ext in '' $ac_executable_extensions; do
  4691. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4692. ac_cv_prog_ac_ct_STRIP="strip"
  4693. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4694. break 2
  4695. fi
  4696. done
  4697. done
  4698. IFS=$as_save_IFS
  4699. fi
  4700. fi
  4701. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4702. if test -n "$ac_ct_STRIP"; then
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4704. $as_echo "$ac_ct_STRIP" >&6; }
  4705. else
  4706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4707. $as_echo "no" >&6; }
  4708. fi
  4709. if test "x$ac_ct_STRIP" = x; then
  4710. STRIP=":"
  4711. else
  4712. case $cross_compiling:$ac_tool_warned in
  4713. yes:)
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4715. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4716. ac_tool_warned=yes ;;
  4717. esac
  4718. STRIP=$ac_ct_STRIP
  4719. fi
  4720. else
  4721. STRIP="$ac_cv_prog_STRIP"
  4722. fi
  4723. test -z "$STRIP" && STRIP=:
  4724. if test -n "$ac_tool_prefix"; then
  4725. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4726. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4728. $as_echo_n "checking for $ac_word... " >&6; }
  4729. if ${ac_cv_prog_RANLIB+:} false; then :
  4730. $as_echo_n "(cached) " >&6
  4731. else
  4732. if test -n "$RANLIB"; then
  4733. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4734. else
  4735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4736. for as_dir in $PATH
  4737. do
  4738. IFS=$as_save_IFS
  4739. test -z "$as_dir" && as_dir=.
  4740. for ac_exec_ext in '' $ac_executable_extensions; do
  4741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4742. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4744. break 2
  4745. fi
  4746. done
  4747. done
  4748. IFS=$as_save_IFS
  4749. fi
  4750. fi
  4751. RANLIB=$ac_cv_prog_RANLIB
  4752. if test -n "$RANLIB"; then
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4754. $as_echo "$RANLIB" >&6; }
  4755. else
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4757. $as_echo "no" >&6; }
  4758. fi
  4759. fi
  4760. if test -z "$ac_cv_prog_RANLIB"; then
  4761. ac_ct_RANLIB=$RANLIB
  4762. # Extract the first word of "ranlib", so it can be a program name with args.
  4763. set dummy ranlib; ac_word=$2
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4765. $as_echo_n "checking for $ac_word... " >&6; }
  4766. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4767. $as_echo_n "(cached) " >&6
  4768. else
  4769. if test -n "$ac_ct_RANLIB"; then
  4770. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4771. else
  4772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4773. for as_dir in $PATH
  4774. do
  4775. IFS=$as_save_IFS
  4776. test -z "$as_dir" && as_dir=.
  4777. for ac_exec_ext in '' $ac_executable_extensions; do
  4778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4779. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4781. break 2
  4782. fi
  4783. done
  4784. done
  4785. IFS=$as_save_IFS
  4786. fi
  4787. fi
  4788. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4789. if test -n "$ac_ct_RANLIB"; then
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4791. $as_echo "$ac_ct_RANLIB" >&6; }
  4792. else
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4794. $as_echo "no" >&6; }
  4795. fi
  4796. if test "x$ac_ct_RANLIB" = x; then
  4797. RANLIB=":"
  4798. else
  4799. case $cross_compiling:$ac_tool_warned in
  4800. yes:)
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4802. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4803. ac_tool_warned=yes ;;
  4804. esac
  4805. RANLIB=$ac_ct_RANLIB
  4806. fi
  4807. else
  4808. RANLIB="$ac_cv_prog_RANLIB"
  4809. fi
  4810. test -z "$RANLIB" && RANLIB=:
  4811. # Determine commands to create old-style static archives.
  4812. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4813. old_postinstall_cmds='chmod 644 $oldlib'
  4814. old_postuninstall_cmds=
  4815. if test -n "$RANLIB"; then
  4816. case $host_os in
  4817. openbsd*)
  4818. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4819. ;;
  4820. *)
  4821. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4822. ;;
  4823. esac
  4824. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4825. fi
  4826. case $host_os in
  4827. darwin*)
  4828. lock_old_archive_extraction=yes ;;
  4829. *)
  4830. lock_old_archive_extraction=no ;;
  4831. esac
  4832. for ac_prog in gawk mawk nawk awk
  4833. do
  4834. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4835. set dummy $ac_prog; ac_word=$2
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4837. $as_echo_n "checking for $ac_word... " >&6; }
  4838. if ${ac_cv_prog_AWK+:} false; then :
  4839. $as_echo_n "(cached) " >&6
  4840. else
  4841. if test -n "$AWK"; then
  4842. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4843. else
  4844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4845. for as_dir in $PATH
  4846. do
  4847. IFS=$as_save_IFS
  4848. test -z "$as_dir" && as_dir=.
  4849. for ac_exec_ext in '' $ac_executable_extensions; do
  4850. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4851. ac_cv_prog_AWK="$ac_prog"
  4852. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4853. break 2
  4854. fi
  4855. done
  4856. done
  4857. IFS=$as_save_IFS
  4858. fi
  4859. fi
  4860. AWK=$ac_cv_prog_AWK
  4861. if test -n "$AWK"; then
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4863. $as_echo "$AWK" >&6; }
  4864. else
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4866. $as_echo "no" >&6; }
  4867. fi
  4868. test -n "$AWK" && break
  4869. done
  4870. # If no C compiler was specified, use CC.
  4871. LTCC=${LTCC-"$CC"}
  4872. # If no C compiler flags were specified, use CFLAGS.
  4873. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4874. # Allow CC to be a program name with arguments.
  4875. compiler=$CC
  4876. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4878. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4879. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4880. $as_echo_n "(cached) " >&6
  4881. else
  4882. # These are sane defaults that work on at least a few old systems.
  4883. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4884. # Character class describing NM global symbol codes.
  4885. symcode='[BCDEGRST]'
  4886. # Regexp to match symbols that can be accessed directly from C.
  4887. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4888. # Define system-specific variables.
  4889. case $host_os in
  4890. aix*)
  4891. symcode='[BCDT]'
  4892. ;;
  4893. cygwin* | mingw* | pw32* | cegcc*)
  4894. symcode='[ABCDGISTW]'
  4895. ;;
  4896. hpux*)
  4897. if test "$host_cpu" = ia64; then
  4898. symcode='[ABCDEGRST]'
  4899. fi
  4900. ;;
  4901. irix* | nonstopux*)
  4902. symcode='[BCDEGRST]'
  4903. ;;
  4904. osf*)
  4905. symcode='[BCDEGQRST]'
  4906. ;;
  4907. solaris*)
  4908. symcode='[BDRT]'
  4909. ;;
  4910. sco3.2v5*)
  4911. symcode='[DT]'
  4912. ;;
  4913. sysv4.2uw2*)
  4914. symcode='[DT]'
  4915. ;;
  4916. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4917. symcode='[ABDT]'
  4918. ;;
  4919. sysv4)
  4920. symcode='[DFNSTU]'
  4921. ;;
  4922. esac
  4923. # If we're using GNU nm, then use its standard symbol codes.
  4924. case `$NM -V 2>&1` in
  4925. *GNU* | *'with BFD'*)
  4926. symcode='[ABCDGIRSTW]' ;;
  4927. esac
  4928. # Transform an extracted symbol line into a proper C declaration.
  4929. # Some systems (esp. on ia64) link data and code symbols differently,
  4930. # so use this general approach.
  4931. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4932. # Transform an extracted symbol line into symbol name and symbol address
  4933. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4934. 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'"
  4935. # Handle CRLF in mingw tool chain
  4936. opt_cr=
  4937. case $build_os in
  4938. mingw*)
  4939. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4940. ;;
  4941. esac
  4942. # Try without a prefix underscore, then with it.
  4943. for ac_symprfx in "" "_"; do
  4944. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4945. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4946. # Write the raw and C identifiers.
  4947. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4948. # Fake it for dumpbin and say T for any non-static function
  4949. # and D for any global variable.
  4950. # Also find C++ and __fastcall symbols from MSVC++,
  4951. # which start with @ or ?.
  4952. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4953. " {last_section=section; section=\$ 3};"\
  4954. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4955. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4956. " \$ 0!~/External *\|/{next};"\
  4957. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4958. " {if(hide[section]) next};"\
  4959. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4960. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4961. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4962. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4963. " ' prfx=^$ac_symprfx"
  4964. else
  4965. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4966. fi
  4967. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4968. # Check to see that the pipe works correctly.
  4969. pipe_works=no
  4970. rm -f conftest*
  4971. cat > conftest.$ac_ext <<_LT_EOF
  4972. #ifdef __cplusplus
  4973. extern "C" {
  4974. #endif
  4975. char nm_test_var;
  4976. void nm_test_func(void);
  4977. void nm_test_func(void){}
  4978. #ifdef __cplusplus
  4979. }
  4980. #endif
  4981. int main(){nm_test_var='a';nm_test_func();return(0);}
  4982. _LT_EOF
  4983. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4984. (eval $ac_compile) 2>&5
  4985. ac_status=$?
  4986. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4987. test $ac_status = 0; }; then
  4988. # Now try to grab the symbols.
  4989. nlist=conftest.nm
  4990. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  4991. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  4992. ac_status=$?
  4993. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4994. test $ac_status = 0; } && test -s "$nlist"; then
  4995. # Try sorting and uniquifying the output.
  4996. if sort "$nlist" | uniq > "$nlist"T; then
  4997. mv -f "$nlist"T "$nlist"
  4998. else
  4999. rm -f "$nlist"T
  5000. fi
  5001. # Make sure that we snagged all the symbols we need.
  5002. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5003. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5004. cat <<_LT_EOF > conftest.$ac_ext
  5005. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5006. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5007. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5008. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5009. # define LT_DLSYM_CONST
  5010. #elif defined(__osf__)
  5011. /* This system does not cope well with relocations in const data. */
  5012. # define LT_DLSYM_CONST
  5013. #else
  5014. # define LT_DLSYM_CONST const
  5015. #endif
  5016. #ifdef __cplusplus
  5017. extern "C" {
  5018. #endif
  5019. _LT_EOF
  5020. # Now generate the symbol file.
  5021. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5022. cat <<_LT_EOF >> conftest.$ac_ext
  5023. /* The mapping between symbol names and symbols. */
  5024. LT_DLSYM_CONST struct {
  5025. const char *name;
  5026. void *address;
  5027. }
  5028. lt__PROGRAM__LTX_preloaded_symbols[] =
  5029. {
  5030. { "@PROGRAM@", (void *) 0 },
  5031. _LT_EOF
  5032. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5033. cat <<\_LT_EOF >> conftest.$ac_ext
  5034. {0, (void *) 0}
  5035. };
  5036. /* This works around a problem in FreeBSD linker */
  5037. #ifdef FREEBSD_WORKAROUND
  5038. static const void *lt_preloaded_setup() {
  5039. return lt__PROGRAM__LTX_preloaded_symbols;
  5040. }
  5041. #endif
  5042. #ifdef __cplusplus
  5043. }
  5044. #endif
  5045. _LT_EOF
  5046. # Now try linking the two files.
  5047. mv conftest.$ac_objext conftstm.$ac_objext
  5048. lt_globsym_save_LIBS=$LIBS
  5049. lt_globsym_save_CFLAGS=$CFLAGS
  5050. LIBS="conftstm.$ac_objext"
  5051. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5052. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5053. (eval $ac_link) 2>&5
  5054. ac_status=$?
  5055. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5056. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5057. pipe_works=yes
  5058. fi
  5059. LIBS=$lt_globsym_save_LIBS
  5060. CFLAGS=$lt_globsym_save_CFLAGS
  5061. else
  5062. echo "cannot find nm_test_func in $nlist" >&5
  5063. fi
  5064. else
  5065. echo "cannot find nm_test_var in $nlist" >&5
  5066. fi
  5067. else
  5068. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5069. fi
  5070. else
  5071. echo "$progname: failed program was:" >&5
  5072. cat conftest.$ac_ext >&5
  5073. fi
  5074. rm -rf conftest* conftst*
  5075. # Do not use the global_symbol_pipe unless it works.
  5076. if test "$pipe_works" = yes; then
  5077. break
  5078. else
  5079. lt_cv_sys_global_symbol_pipe=
  5080. fi
  5081. done
  5082. fi
  5083. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5084. lt_cv_sys_global_symbol_to_cdecl=
  5085. fi
  5086. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5088. $as_echo "failed" >&6; }
  5089. else
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5091. $as_echo "ok" >&6; }
  5092. fi
  5093. # Response file support.
  5094. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5095. nm_file_list_spec='@'
  5096. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5097. nm_file_list_spec='@'
  5098. fi
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5100. $as_echo_n "checking for sysroot... " >&6; }
  5101. # Check whether --with-sysroot was given.
  5102. if test "${with_sysroot+set}" = set; then :
  5103. withval=$with_sysroot;
  5104. else
  5105. with_sysroot=no
  5106. fi
  5107. lt_sysroot=
  5108. case ${with_sysroot} in #(
  5109. yes)
  5110. if test "$GCC" = yes; then
  5111. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5112. fi
  5113. ;; #(
  5114. /*)
  5115. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5116. ;; #(
  5117. no|'')
  5118. ;; #(
  5119. *)
  5120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5121. $as_echo "${with_sysroot}" >&6; }
  5122. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5123. ;;
  5124. esac
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5126. $as_echo "${lt_sysroot:-no}" >&6; }
  5127. # Check whether --enable-libtool-lock was given.
  5128. if test "${enable_libtool_lock+set}" = set; then :
  5129. enableval=$enable_libtool_lock;
  5130. fi
  5131. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5132. # Some flags need to be propagated to the compiler or linker for good
  5133. # libtool support.
  5134. case $host in
  5135. ia64-*-hpux*)
  5136. # Find out which ABI we are using.
  5137. echo 'int i;' > conftest.$ac_ext
  5138. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5139. (eval $ac_compile) 2>&5
  5140. ac_status=$?
  5141. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5142. test $ac_status = 0; }; then
  5143. case `/usr/bin/file conftest.$ac_objext` in
  5144. *ELF-32*)
  5145. HPUX_IA64_MODE="32"
  5146. ;;
  5147. *ELF-64*)
  5148. HPUX_IA64_MODE="64"
  5149. ;;
  5150. esac
  5151. fi
  5152. rm -rf conftest*
  5153. ;;
  5154. *-*-irix6*)
  5155. # Find out which ABI we are using.
  5156. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5157. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5158. (eval $ac_compile) 2>&5
  5159. ac_status=$?
  5160. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5161. test $ac_status = 0; }; then
  5162. if test "$lt_cv_prog_gnu_ld" = yes; then
  5163. case `/usr/bin/file conftest.$ac_objext` in
  5164. *32-bit*)
  5165. LD="${LD-ld} -melf32bsmip"
  5166. ;;
  5167. *N32*)
  5168. LD="${LD-ld} -melf32bmipn32"
  5169. ;;
  5170. *64-bit*)
  5171. LD="${LD-ld} -melf64bmip"
  5172. ;;
  5173. esac
  5174. else
  5175. case `/usr/bin/file conftest.$ac_objext` in
  5176. *32-bit*)
  5177. LD="${LD-ld} -32"
  5178. ;;
  5179. *N32*)
  5180. LD="${LD-ld} -n32"
  5181. ;;
  5182. *64-bit*)
  5183. LD="${LD-ld} -64"
  5184. ;;
  5185. esac
  5186. fi
  5187. fi
  5188. rm -rf conftest*
  5189. ;;
  5190. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5191. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5192. # Find out which ABI we are using.
  5193. echo 'int i;' > conftest.$ac_ext
  5194. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5195. (eval $ac_compile) 2>&5
  5196. ac_status=$?
  5197. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5198. test $ac_status = 0; }; then
  5199. case `/usr/bin/file conftest.o` in
  5200. *32-bit*)
  5201. case $host in
  5202. x86_64-*kfreebsd*-gnu)
  5203. LD="${LD-ld} -m elf_i386_fbsd"
  5204. ;;
  5205. x86_64-*linux*)
  5206. LD="${LD-ld} -m elf_i386"
  5207. ;;
  5208. ppc64-*linux*|powerpc64-*linux*)
  5209. LD="${LD-ld} -m elf32ppclinux"
  5210. ;;
  5211. s390x-*linux*)
  5212. LD="${LD-ld} -m elf_s390"
  5213. ;;
  5214. sparc64-*linux*)
  5215. LD="${LD-ld} -m elf32_sparc"
  5216. ;;
  5217. esac
  5218. ;;
  5219. *64-bit*)
  5220. case $host in
  5221. x86_64-*kfreebsd*-gnu)
  5222. LD="${LD-ld} -m elf_x86_64_fbsd"
  5223. ;;
  5224. x86_64-*linux*)
  5225. LD="${LD-ld} -m elf_x86_64"
  5226. ;;
  5227. ppc*-*linux*|powerpc*-*linux*)
  5228. LD="${LD-ld} -m elf64ppc"
  5229. ;;
  5230. s390*-*linux*|s390*-*tpf*)
  5231. LD="${LD-ld} -m elf64_s390"
  5232. ;;
  5233. sparc*-*linux*)
  5234. LD="${LD-ld} -m elf64_sparc"
  5235. ;;
  5236. esac
  5237. ;;
  5238. esac
  5239. fi
  5240. rm -rf conftest*
  5241. ;;
  5242. *-*-sco3.2v5*)
  5243. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5244. SAVE_CFLAGS="$CFLAGS"
  5245. CFLAGS="$CFLAGS -belf"
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5247. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5248. if ${lt_cv_cc_needs_belf+:} false; then :
  5249. $as_echo_n "(cached) " >&6
  5250. else
  5251. ac_ext=c
  5252. ac_cpp='$CPP $CPPFLAGS'
  5253. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5254. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5255. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5257. /* end confdefs.h. */
  5258. int
  5259. main ()
  5260. {
  5261. ;
  5262. return 0;
  5263. }
  5264. _ACEOF
  5265. if ac_fn_c_try_link "$LINENO"; then :
  5266. lt_cv_cc_needs_belf=yes
  5267. else
  5268. lt_cv_cc_needs_belf=no
  5269. fi
  5270. rm -f core conftest.err conftest.$ac_objext \
  5271. conftest$ac_exeext conftest.$ac_ext
  5272. ac_ext=c
  5273. ac_cpp='$CPP $CPPFLAGS'
  5274. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5275. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5276. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5277. fi
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5279. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5280. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5281. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5282. CFLAGS="$SAVE_CFLAGS"
  5283. fi
  5284. ;;
  5285. *-*solaris*)
  5286. # Find out which ABI we are using.
  5287. echo 'int i;' > conftest.$ac_ext
  5288. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5289. (eval $ac_compile) 2>&5
  5290. ac_status=$?
  5291. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5292. test $ac_status = 0; }; then
  5293. case `/usr/bin/file conftest.o` in
  5294. *64-bit*)
  5295. case $lt_cv_prog_gnu_ld in
  5296. yes*)
  5297. case $host in
  5298. i?86-*-solaris*)
  5299. LD="${LD-ld} -m elf_x86_64"
  5300. ;;
  5301. sparc*-*-solaris*)
  5302. LD="${LD-ld} -m elf64_sparc"
  5303. ;;
  5304. esac
  5305. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5306. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5307. LD="${LD-ld}_sol2"
  5308. fi
  5309. ;;
  5310. *)
  5311. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5312. LD="${LD-ld} -64"
  5313. fi
  5314. ;;
  5315. esac
  5316. ;;
  5317. esac
  5318. fi
  5319. rm -rf conftest*
  5320. ;;
  5321. esac
  5322. need_locks="$enable_libtool_lock"
  5323. if test -n "$ac_tool_prefix"; then
  5324. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5325. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5327. $as_echo_n "checking for $ac_word... " >&6; }
  5328. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5329. $as_echo_n "(cached) " >&6
  5330. else
  5331. if test -n "$MANIFEST_TOOL"; then
  5332. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5333. else
  5334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5335. for as_dir in $PATH
  5336. do
  5337. IFS=$as_save_IFS
  5338. test -z "$as_dir" && as_dir=.
  5339. for ac_exec_ext in '' $ac_executable_extensions; do
  5340. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5341. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5343. break 2
  5344. fi
  5345. done
  5346. done
  5347. IFS=$as_save_IFS
  5348. fi
  5349. fi
  5350. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5351. if test -n "$MANIFEST_TOOL"; then
  5352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5353. $as_echo "$MANIFEST_TOOL" >&6; }
  5354. else
  5355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5356. $as_echo "no" >&6; }
  5357. fi
  5358. fi
  5359. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5360. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5361. # Extract the first word of "mt", so it can be a program name with args.
  5362. set dummy mt; ac_word=$2
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5364. $as_echo_n "checking for $ac_word... " >&6; }
  5365. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5366. $as_echo_n "(cached) " >&6
  5367. else
  5368. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5369. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5370. else
  5371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5372. for as_dir in $PATH
  5373. do
  5374. IFS=$as_save_IFS
  5375. test -z "$as_dir" && as_dir=.
  5376. for ac_exec_ext in '' $ac_executable_extensions; do
  5377. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5378. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5379. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5380. break 2
  5381. fi
  5382. done
  5383. done
  5384. IFS=$as_save_IFS
  5385. fi
  5386. fi
  5387. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5388. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5390. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5391. else
  5392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5393. $as_echo "no" >&6; }
  5394. fi
  5395. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5396. MANIFEST_TOOL=":"
  5397. else
  5398. case $cross_compiling:$ac_tool_warned in
  5399. yes:)
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5401. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5402. ac_tool_warned=yes ;;
  5403. esac
  5404. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5405. fi
  5406. else
  5407. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5408. fi
  5409. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5411. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5412. if ${lt_cv_path_mainfest_tool+:} false; then :
  5413. $as_echo_n "(cached) " >&6
  5414. else
  5415. lt_cv_path_mainfest_tool=no
  5416. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5417. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5418. cat conftest.err >&5
  5419. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5420. lt_cv_path_mainfest_tool=yes
  5421. fi
  5422. rm -f conftest*
  5423. fi
  5424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5425. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5426. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5427. MANIFEST_TOOL=:
  5428. fi
  5429. case $host_os in
  5430. rhapsody* | darwin*)
  5431. if test -n "$ac_tool_prefix"; then
  5432. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5433. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5435. $as_echo_n "checking for $ac_word... " >&6; }
  5436. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5437. $as_echo_n "(cached) " >&6
  5438. else
  5439. if test -n "$DSYMUTIL"; then
  5440. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5441. else
  5442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5443. for as_dir in $PATH
  5444. do
  5445. IFS=$as_save_IFS
  5446. test -z "$as_dir" && as_dir=.
  5447. for ac_exec_ext in '' $ac_executable_extensions; do
  5448. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5449. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5450. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5451. break 2
  5452. fi
  5453. done
  5454. done
  5455. IFS=$as_save_IFS
  5456. fi
  5457. fi
  5458. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5459. if test -n "$DSYMUTIL"; then
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5461. $as_echo "$DSYMUTIL" >&6; }
  5462. else
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5464. $as_echo "no" >&6; }
  5465. fi
  5466. fi
  5467. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5468. ac_ct_DSYMUTIL=$DSYMUTIL
  5469. # Extract the first word of "dsymutil", so it can be a program name with args.
  5470. set dummy dsymutil; ac_word=$2
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5472. $as_echo_n "checking for $ac_word... " >&6; }
  5473. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5474. $as_echo_n "(cached) " >&6
  5475. else
  5476. if test -n "$ac_ct_DSYMUTIL"; then
  5477. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5478. else
  5479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5480. for as_dir in $PATH
  5481. do
  5482. IFS=$as_save_IFS
  5483. test -z "$as_dir" && as_dir=.
  5484. for ac_exec_ext in '' $ac_executable_extensions; do
  5485. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5486. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5487. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5488. break 2
  5489. fi
  5490. done
  5491. done
  5492. IFS=$as_save_IFS
  5493. fi
  5494. fi
  5495. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5496. if test -n "$ac_ct_DSYMUTIL"; then
  5497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5498. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5499. else
  5500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5501. $as_echo "no" >&6; }
  5502. fi
  5503. if test "x$ac_ct_DSYMUTIL" = x; then
  5504. DSYMUTIL=":"
  5505. else
  5506. case $cross_compiling:$ac_tool_warned in
  5507. yes:)
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5509. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5510. ac_tool_warned=yes ;;
  5511. esac
  5512. DSYMUTIL=$ac_ct_DSYMUTIL
  5513. fi
  5514. else
  5515. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5516. fi
  5517. if test -n "$ac_tool_prefix"; then
  5518. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5519. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5521. $as_echo_n "checking for $ac_word... " >&6; }
  5522. if ${ac_cv_prog_NMEDIT+:} false; then :
  5523. $as_echo_n "(cached) " >&6
  5524. else
  5525. if test -n "$NMEDIT"; then
  5526. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5527. else
  5528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5529. for as_dir in $PATH
  5530. do
  5531. IFS=$as_save_IFS
  5532. test -z "$as_dir" && as_dir=.
  5533. for ac_exec_ext in '' $ac_executable_extensions; do
  5534. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5535. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5536. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5537. break 2
  5538. fi
  5539. done
  5540. done
  5541. IFS=$as_save_IFS
  5542. fi
  5543. fi
  5544. NMEDIT=$ac_cv_prog_NMEDIT
  5545. if test -n "$NMEDIT"; then
  5546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5547. $as_echo "$NMEDIT" >&6; }
  5548. else
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5550. $as_echo "no" >&6; }
  5551. fi
  5552. fi
  5553. if test -z "$ac_cv_prog_NMEDIT"; then
  5554. ac_ct_NMEDIT=$NMEDIT
  5555. # Extract the first word of "nmedit", so it can be a program name with args.
  5556. set dummy nmedit; ac_word=$2
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5558. $as_echo_n "checking for $ac_word... " >&6; }
  5559. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5560. $as_echo_n "(cached) " >&6
  5561. else
  5562. if test -n "$ac_ct_NMEDIT"; then
  5563. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5564. else
  5565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5566. for as_dir in $PATH
  5567. do
  5568. IFS=$as_save_IFS
  5569. test -z "$as_dir" && as_dir=.
  5570. for ac_exec_ext in '' $ac_executable_extensions; do
  5571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5572. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5574. break 2
  5575. fi
  5576. done
  5577. done
  5578. IFS=$as_save_IFS
  5579. fi
  5580. fi
  5581. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5582. if test -n "$ac_ct_NMEDIT"; then
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5584. $as_echo "$ac_ct_NMEDIT" >&6; }
  5585. else
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5587. $as_echo "no" >&6; }
  5588. fi
  5589. if test "x$ac_ct_NMEDIT" = x; then
  5590. NMEDIT=":"
  5591. else
  5592. case $cross_compiling:$ac_tool_warned in
  5593. yes:)
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5595. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5596. ac_tool_warned=yes ;;
  5597. esac
  5598. NMEDIT=$ac_ct_NMEDIT
  5599. fi
  5600. else
  5601. NMEDIT="$ac_cv_prog_NMEDIT"
  5602. fi
  5603. if test -n "$ac_tool_prefix"; then
  5604. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5605. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5607. $as_echo_n "checking for $ac_word... " >&6; }
  5608. if ${ac_cv_prog_LIPO+:} false; then :
  5609. $as_echo_n "(cached) " >&6
  5610. else
  5611. if test -n "$LIPO"; then
  5612. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5613. else
  5614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5615. for as_dir in $PATH
  5616. do
  5617. IFS=$as_save_IFS
  5618. test -z "$as_dir" && as_dir=.
  5619. for ac_exec_ext in '' $ac_executable_extensions; do
  5620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5621. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5623. break 2
  5624. fi
  5625. done
  5626. done
  5627. IFS=$as_save_IFS
  5628. fi
  5629. fi
  5630. LIPO=$ac_cv_prog_LIPO
  5631. if test -n "$LIPO"; then
  5632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5633. $as_echo "$LIPO" >&6; }
  5634. else
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5636. $as_echo "no" >&6; }
  5637. fi
  5638. fi
  5639. if test -z "$ac_cv_prog_LIPO"; then
  5640. ac_ct_LIPO=$LIPO
  5641. # Extract the first word of "lipo", so it can be a program name with args.
  5642. set dummy lipo; ac_word=$2
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5644. $as_echo_n "checking for $ac_word... " >&6; }
  5645. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5646. $as_echo_n "(cached) " >&6
  5647. else
  5648. if test -n "$ac_ct_LIPO"; then
  5649. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5650. else
  5651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5652. for as_dir in $PATH
  5653. do
  5654. IFS=$as_save_IFS
  5655. test -z "$as_dir" && as_dir=.
  5656. for ac_exec_ext in '' $ac_executable_extensions; do
  5657. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5658. ac_cv_prog_ac_ct_LIPO="lipo"
  5659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5660. break 2
  5661. fi
  5662. done
  5663. done
  5664. IFS=$as_save_IFS
  5665. fi
  5666. fi
  5667. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5668. if test -n "$ac_ct_LIPO"; then
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5670. $as_echo "$ac_ct_LIPO" >&6; }
  5671. else
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5673. $as_echo "no" >&6; }
  5674. fi
  5675. if test "x$ac_ct_LIPO" = x; then
  5676. LIPO=":"
  5677. else
  5678. case $cross_compiling:$ac_tool_warned in
  5679. yes:)
  5680. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5681. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5682. ac_tool_warned=yes ;;
  5683. esac
  5684. LIPO=$ac_ct_LIPO
  5685. fi
  5686. else
  5687. LIPO="$ac_cv_prog_LIPO"
  5688. fi
  5689. if test -n "$ac_tool_prefix"; then
  5690. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5691. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5693. $as_echo_n "checking for $ac_word... " >&6; }
  5694. if ${ac_cv_prog_OTOOL+:} false; then :
  5695. $as_echo_n "(cached) " >&6
  5696. else
  5697. if test -n "$OTOOL"; then
  5698. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5699. else
  5700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5701. for as_dir in $PATH
  5702. do
  5703. IFS=$as_save_IFS
  5704. test -z "$as_dir" && as_dir=.
  5705. for ac_exec_ext in '' $ac_executable_extensions; do
  5706. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5707. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5709. break 2
  5710. fi
  5711. done
  5712. done
  5713. IFS=$as_save_IFS
  5714. fi
  5715. fi
  5716. OTOOL=$ac_cv_prog_OTOOL
  5717. if test -n "$OTOOL"; then
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5719. $as_echo "$OTOOL" >&6; }
  5720. else
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5722. $as_echo "no" >&6; }
  5723. fi
  5724. fi
  5725. if test -z "$ac_cv_prog_OTOOL"; then
  5726. ac_ct_OTOOL=$OTOOL
  5727. # Extract the first word of "otool", so it can be a program name with args.
  5728. set dummy otool; ac_word=$2
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5730. $as_echo_n "checking for $ac_word... " >&6; }
  5731. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5732. $as_echo_n "(cached) " >&6
  5733. else
  5734. if test -n "$ac_ct_OTOOL"; then
  5735. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5736. else
  5737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5738. for as_dir in $PATH
  5739. do
  5740. IFS=$as_save_IFS
  5741. test -z "$as_dir" && as_dir=.
  5742. for ac_exec_ext in '' $ac_executable_extensions; do
  5743. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5744. ac_cv_prog_ac_ct_OTOOL="otool"
  5745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5746. break 2
  5747. fi
  5748. done
  5749. done
  5750. IFS=$as_save_IFS
  5751. fi
  5752. fi
  5753. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5754. if test -n "$ac_ct_OTOOL"; then
  5755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5756. $as_echo "$ac_ct_OTOOL" >&6; }
  5757. else
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5759. $as_echo "no" >&6; }
  5760. fi
  5761. if test "x$ac_ct_OTOOL" = x; then
  5762. OTOOL=":"
  5763. else
  5764. case $cross_compiling:$ac_tool_warned in
  5765. yes:)
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5767. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5768. ac_tool_warned=yes ;;
  5769. esac
  5770. OTOOL=$ac_ct_OTOOL
  5771. fi
  5772. else
  5773. OTOOL="$ac_cv_prog_OTOOL"
  5774. fi
  5775. if test -n "$ac_tool_prefix"; then
  5776. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5777. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5779. $as_echo_n "checking for $ac_word... " >&6; }
  5780. if ${ac_cv_prog_OTOOL64+:} false; then :
  5781. $as_echo_n "(cached) " >&6
  5782. else
  5783. if test -n "$OTOOL64"; then
  5784. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5785. else
  5786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5787. for as_dir in $PATH
  5788. do
  5789. IFS=$as_save_IFS
  5790. test -z "$as_dir" && as_dir=.
  5791. for ac_exec_ext in '' $ac_executable_extensions; do
  5792. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5793. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5794. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5795. break 2
  5796. fi
  5797. done
  5798. done
  5799. IFS=$as_save_IFS
  5800. fi
  5801. fi
  5802. OTOOL64=$ac_cv_prog_OTOOL64
  5803. if test -n "$OTOOL64"; then
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5805. $as_echo "$OTOOL64" >&6; }
  5806. else
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5808. $as_echo "no" >&6; }
  5809. fi
  5810. fi
  5811. if test -z "$ac_cv_prog_OTOOL64"; then
  5812. ac_ct_OTOOL64=$OTOOL64
  5813. # Extract the first word of "otool64", so it can be a program name with args.
  5814. set dummy otool64; ac_word=$2
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5816. $as_echo_n "checking for $ac_word... " >&6; }
  5817. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5818. $as_echo_n "(cached) " >&6
  5819. else
  5820. if test -n "$ac_ct_OTOOL64"; then
  5821. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5822. else
  5823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5824. for as_dir in $PATH
  5825. do
  5826. IFS=$as_save_IFS
  5827. test -z "$as_dir" && as_dir=.
  5828. for ac_exec_ext in '' $ac_executable_extensions; do
  5829. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5830. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5832. break 2
  5833. fi
  5834. done
  5835. done
  5836. IFS=$as_save_IFS
  5837. fi
  5838. fi
  5839. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5840. if test -n "$ac_ct_OTOOL64"; then
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5842. $as_echo "$ac_ct_OTOOL64" >&6; }
  5843. else
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5845. $as_echo "no" >&6; }
  5846. fi
  5847. if test "x$ac_ct_OTOOL64" = x; then
  5848. OTOOL64=":"
  5849. else
  5850. case $cross_compiling:$ac_tool_warned in
  5851. yes:)
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5853. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5854. ac_tool_warned=yes ;;
  5855. esac
  5856. OTOOL64=$ac_ct_OTOOL64
  5857. fi
  5858. else
  5859. OTOOL64="$ac_cv_prog_OTOOL64"
  5860. fi
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5862. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5863. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5864. $as_echo_n "(cached) " >&6
  5865. else
  5866. lt_cv_apple_cc_single_mod=no
  5867. if test -z "${LT_MULTI_MODULE}"; then
  5868. # By default we will add the -single_module flag. You can override
  5869. # by either setting the environment variable LT_MULTI_MODULE
  5870. # non-empty at configure time, or by adding -multi_module to the
  5871. # link flags.
  5872. rm -rf libconftest.dylib*
  5873. echo "int foo(void){return 1;}" > conftest.c
  5874. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5875. -dynamiclib -Wl,-single_module conftest.c" >&5
  5876. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5877. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5878. _lt_result=$?
  5879. # If there is a non-empty error log, and "single_module"
  5880. # appears in it, assume the flag caused a linker warning
  5881. if test -s conftest.err && $GREP single_module conftest.err; then
  5882. cat conftest.err >&5
  5883. # Otherwise, if the output was created with a 0 exit code from
  5884. # the compiler, it worked.
  5885. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5886. lt_cv_apple_cc_single_mod=yes
  5887. else
  5888. cat conftest.err >&5
  5889. fi
  5890. rm -rf libconftest.dylib*
  5891. rm -f conftest.*
  5892. fi
  5893. fi
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5895. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5897. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5898. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5899. $as_echo_n "(cached) " >&6
  5900. else
  5901. lt_cv_ld_exported_symbols_list=no
  5902. save_LDFLAGS=$LDFLAGS
  5903. echo "_main" > conftest.sym
  5904. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5906. /* end confdefs.h. */
  5907. int
  5908. main ()
  5909. {
  5910. ;
  5911. return 0;
  5912. }
  5913. _ACEOF
  5914. if ac_fn_c_try_link "$LINENO"; then :
  5915. lt_cv_ld_exported_symbols_list=yes
  5916. else
  5917. lt_cv_ld_exported_symbols_list=no
  5918. fi
  5919. rm -f core conftest.err conftest.$ac_objext \
  5920. conftest$ac_exeext conftest.$ac_ext
  5921. LDFLAGS="$save_LDFLAGS"
  5922. fi
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5924. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5926. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5927. if ${lt_cv_ld_force_load+:} false; then :
  5928. $as_echo_n "(cached) " >&6
  5929. else
  5930. lt_cv_ld_force_load=no
  5931. cat > conftest.c << _LT_EOF
  5932. int forced_loaded() { return 2;}
  5933. _LT_EOF
  5934. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5935. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5936. echo "$AR cru libconftest.a conftest.o" >&5
  5937. $AR cru libconftest.a conftest.o 2>&5
  5938. echo "$RANLIB libconftest.a" >&5
  5939. $RANLIB libconftest.a 2>&5
  5940. cat > conftest.c << _LT_EOF
  5941. int main() { return 0;}
  5942. _LT_EOF
  5943. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5944. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5945. _lt_result=$?
  5946. if test -s conftest.err && $GREP force_load conftest.err; then
  5947. cat conftest.err >&5
  5948. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5949. lt_cv_ld_force_load=yes
  5950. else
  5951. cat conftest.err >&5
  5952. fi
  5953. rm -f conftest.err libconftest.a conftest conftest.c
  5954. rm -rf conftest.dSYM
  5955. fi
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5957. $as_echo "$lt_cv_ld_force_load" >&6; }
  5958. case $host_os in
  5959. rhapsody* | darwin1.[012])
  5960. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5961. darwin1.*)
  5962. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5963. darwin*) # darwin 5.x on
  5964. # if running on 10.5 or later, the deployment target defaults
  5965. # to the OS version, if on x86, and 10.4, the deployment
  5966. # target defaults to 10.4. Don't you love it?
  5967. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5968. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5969. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5970. 10.[012]*)
  5971. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5972. 10.*)
  5973. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5974. esac
  5975. ;;
  5976. esac
  5977. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5978. _lt_dar_single_mod='$single_module'
  5979. fi
  5980. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5981. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5982. else
  5983. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5984. fi
  5985. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  5986. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5987. else
  5988. _lt_dsymutil=
  5989. fi
  5990. ;;
  5991. esac
  5992. ac_ext=c
  5993. ac_cpp='$CPP $CPPFLAGS'
  5994. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5995. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5996. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5998. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5999. # On Suns, sometimes $CPP names a directory.
  6000. if test -n "$CPP" && test -d "$CPP"; then
  6001. CPP=
  6002. fi
  6003. if test -z "$CPP"; then
  6004. if ${ac_cv_prog_CPP+:} false; then :
  6005. $as_echo_n "(cached) " >&6
  6006. else
  6007. # Double quotes because CPP needs to be expanded
  6008. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6009. do
  6010. ac_preproc_ok=false
  6011. for ac_c_preproc_warn_flag in '' yes
  6012. do
  6013. # Use a header file that comes with gcc, so configuring glibc
  6014. # with a fresh cross-compiler works.
  6015. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6016. # <limits.h> exists even on freestanding compilers.
  6017. # On the NeXT, cc -E runs the code through the compiler's parser,
  6018. # not just through cpp. "Syntax error" is here to catch this case.
  6019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6020. /* end confdefs.h. */
  6021. #ifdef __STDC__
  6022. # include <limits.h>
  6023. #else
  6024. # include <assert.h>
  6025. #endif
  6026. Syntax error
  6027. _ACEOF
  6028. if ac_fn_c_try_cpp "$LINENO"; then :
  6029. else
  6030. # Broken: fails on valid input.
  6031. continue
  6032. fi
  6033. rm -f conftest.err conftest.i conftest.$ac_ext
  6034. # OK, works on sane cases. Now check whether nonexistent headers
  6035. # can be detected and how.
  6036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6037. /* end confdefs.h. */
  6038. #include <ac_nonexistent.h>
  6039. _ACEOF
  6040. if ac_fn_c_try_cpp "$LINENO"; then :
  6041. # Broken: success on invalid input.
  6042. continue
  6043. else
  6044. # Passes both tests.
  6045. ac_preproc_ok=:
  6046. break
  6047. fi
  6048. rm -f conftest.err conftest.i conftest.$ac_ext
  6049. done
  6050. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6051. rm -f conftest.i conftest.err conftest.$ac_ext
  6052. if $ac_preproc_ok; then :
  6053. break
  6054. fi
  6055. done
  6056. ac_cv_prog_CPP=$CPP
  6057. fi
  6058. CPP=$ac_cv_prog_CPP
  6059. else
  6060. ac_cv_prog_CPP=$CPP
  6061. fi
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6063. $as_echo "$CPP" >&6; }
  6064. ac_preproc_ok=false
  6065. for ac_c_preproc_warn_flag in '' yes
  6066. do
  6067. # Use a header file that comes with gcc, so configuring glibc
  6068. # with a fresh cross-compiler works.
  6069. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6070. # <limits.h> exists even on freestanding compilers.
  6071. # On the NeXT, cc -E runs the code through the compiler's parser,
  6072. # not just through cpp. "Syntax error" is here to catch this case.
  6073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6074. /* end confdefs.h. */
  6075. #ifdef __STDC__
  6076. # include <limits.h>
  6077. #else
  6078. # include <assert.h>
  6079. #endif
  6080. Syntax error
  6081. _ACEOF
  6082. if ac_fn_c_try_cpp "$LINENO"; then :
  6083. else
  6084. # Broken: fails on valid input.
  6085. continue
  6086. fi
  6087. rm -f conftest.err conftest.i conftest.$ac_ext
  6088. # OK, works on sane cases. Now check whether nonexistent headers
  6089. # can be detected and how.
  6090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6091. /* end confdefs.h. */
  6092. #include <ac_nonexistent.h>
  6093. _ACEOF
  6094. if ac_fn_c_try_cpp "$LINENO"; then :
  6095. # Broken: success on invalid input.
  6096. continue
  6097. else
  6098. # Passes both tests.
  6099. ac_preproc_ok=:
  6100. break
  6101. fi
  6102. rm -f conftest.err conftest.i conftest.$ac_ext
  6103. done
  6104. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6105. rm -f conftest.i conftest.err conftest.$ac_ext
  6106. if $ac_preproc_ok; then :
  6107. else
  6108. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6109. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6110. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6111. See \`config.log' for more details" "$LINENO" 5; }
  6112. fi
  6113. ac_ext=c
  6114. ac_cpp='$CPP $CPPFLAGS'
  6115. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6116. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6117. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6119. $as_echo_n "checking for ANSI C header files... " >&6; }
  6120. if ${ac_cv_header_stdc+:} false; then :
  6121. $as_echo_n "(cached) " >&6
  6122. else
  6123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6124. /* end confdefs.h. */
  6125. #include <stdlib.h>
  6126. #include <stdarg.h>
  6127. #include <string.h>
  6128. #include <float.h>
  6129. int
  6130. main ()
  6131. {
  6132. ;
  6133. return 0;
  6134. }
  6135. _ACEOF
  6136. if ac_fn_c_try_compile "$LINENO"; then :
  6137. ac_cv_header_stdc=yes
  6138. else
  6139. ac_cv_header_stdc=no
  6140. fi
  6141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6142. if test $ac_cv_header_stdc = yes; then
  6143. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6145. /* end confdefs.h. */
  6146. #include <string.h>
  6147. _ACEOF
  6148. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6149. $EGREP "memchr" >/dev/null 2>&1; then :
  6150. else
  6151. ac_cv_header_stdc=no
  6152. fi
  6153. rm -f conftest*
  6154. fi
  6155. if test $ac_cv_header_stdc = yes; then
  6156. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6158. /* end confdefs.h. */
  6159. #include <stdlib.h>
  6160. _ACEOF
  6161. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6162. $EGREP "free" >/dev/null 2>&1; then :
  6163. else
  6164. ac_cv_header_stdc=no
  6165. fi
  6166. rm -f conftest*
  6167. fi
  6168. if test $ac_cv_header_stdc = yes; then
  6169. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6170. if test "$cross_compiling" = yes; then :
  6171. :
  6172. else
  6173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6174. /* end confdefs.h. */
  6175. #include <ctype.h>
  6176. #include <stdlib.h>
  6177. #if ((' ' & 0x0FF) == 0x020)
  6178. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6179. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6180. #else
  6181. # define ISLOWER(c) \
  6182. (('a' <= (c) && (c) <= 'i') \
  6183. || ('j' <= (c) && (c) <= 'r') \
  6184. || ('s' <= (c) && (c) <= 'z'))
  6185. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6186. #endif
  6187. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6188. int
  6189. main ()
  6190. {
  6191. int i;
  6192. for (i = 0; i < 256; i++)
  6193. if (XOR (islower (i), ISLOWER (i))
  6194. || toupper (i) != TOUPPER (i))
  6195. return 2;
  6196. return 0;
  6197. }
  6198. _ACEOF
  6199. if ac_fn_c_try_run "$LINENO"; then :
  6200. else
  6201. ac_cv_header_stdc=no
  6202. fi
  6203. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6204. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6205. fi
  6206. fi
  6207. fi
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6209. $as_echo "$ac_cv_header_stdc" >&6; }
  6210. if test $ac_cv_header_stdc = yes; then
  6211. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6212. fi
  6213. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6214. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6215. inttypes.h stdint.h unistd.h
  6216. do :
  6217. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6218. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6219. "
  6220. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6221. cat >>confdefs.h <<_ACEOF
  6222. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6223. _ACEOF
  6224. fi
  6225. done
  6226. for ac_header in dlfcn.h
  6227. do :
  6228. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6229. "
  6230. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6231. cat >>confdefs.h <<_ACEOF
  6232. #define HAVE_DLFCN_H 1
  6233. _ACEOF
  6234. fi
  6235. done
  6236. # Set options
  6237. enable_win32_dll=yes
  6238. case $host in
  6239. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6240. if test -n "$ac_tool_prefix"; then
  6241. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6242. set dummy ${ac_tool_prefix}as; ac_word=$2
  6243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6244. $as_echo_n "checking for $ac_word... " >&6; }
  6245. if ${ac_cv_prog_AS+:} false; then :
  6246. $as_echo_n "(cached) " >&6
  6247. else
  6248. if test -n "$AS"; then
  6249. ac_cv_prog_AS="$AS" # Let the user override the test.
  6250. else
  6251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6252. for as_dir in $PATH
  6253. do
  6254. IFS=$as_save_IFS
  6255. test -z "$as_dir" && as_dir=.
  6256. for ac_exec_ext in '' $ac_executable_extensions; do
  6257. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6258. ac_cv_prog_AS="${ac_tool_prefix}as"
  6259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6260. break 2
  6261. fi
  6262. done
  6263. done
  6264. IFS=$as_save_IFS
  6265. fi
  6266. fi
  6267. AS=$ac_cv_prog_AS
  6268. if test -n "$AS"; then
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6270. $as_echo "$AS" >&6; }
  6271. else
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6273. $as_echo "no" >&6; }
  6274. fi
  6275. fi
  6276. if test -z "$ac_cv_prog_AS"; then
  6277. ac_ct_AS=$AS
  6278. # Extract the first word of "as", so it can be a program name with args.
  6279. set dummy as; ac_word=$2
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6281. $as_echo_n "checking for $ac_word... " >&6; }
  6282. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6283. $as_echo_n "(cached) " >&6
  6284. else
  6285. if test -n "$ac_ct_AS"; then
  6286. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6287. else
  6288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6289. for as_dir in $PATH
  6290. do
  6291. IFS=$as_save_IFS
  6292. test -z "$as_dir" && as_dir=.
  6293. for ac_exec_ext in '' $ac_executable_extensions; do
  6294. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6295. ac_cv_prog_ac_ct_AS="as"
  6296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6297. break 2
  6298. fi
  6299. done
  6300. done
  6301. IFS=$as_save_IFS
  6302. fi
  6303. fi
  6304. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6305. if test -n "$ac_ct_AS"; then
  6306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6307. $as_echo "$ac_ct_AS" >&6; }
  6308. else
  6309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6310. $as_echo "no" >&6; }
  6311. fi
  6312. if test "x$ac_ct_AS" = x; then
  6313. AS="false"
  6314. else
  6315. case $cross_compiling:$ac_tool_warned in
  6316. yes:)
  6317. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6318. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6319. ac_tool_warned=yes ;;
  6320. esac
  6321. AS=$ac_ct_AS
  6322. fi
  6323. else
  6324. AS="$ac_cv_prog_AS"
  6325. fi
  6326. if test -n "$ac_tool_prefix"; then
  6327. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6328. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6330. $as_echo_n "checking for $ac_word... " >&6; }
  6331. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6332. $as_echo_n "(cached) " >&6
  6333. else
  6334. if test -n "$DLLTOOL"; then
  6335. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6336. else
  6337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6338. for as_dir in $PATH
  6339. do
  6340. IFS=$as_save_IFS
  6341. test -z "$as_dir" && as_dir=.
  6342. for ac_exec_ext in '' $ac_executable_extensions; do
  6343. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6344. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6345. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6346. break 2
  6347. fi
  6348. done
  6349. done
  6350. IFS=$as_save_IFS
  6351. fi
  6352. fi
  6353. DLLTOOL=$ac_cv_prog_DLLTOOL
  6354. if test -n "$DLLTOOL"; then
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6356. $as_echo "$DLLTOOL" >&6; }
  6357. else
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6359. $as_echo "no" >&6; }
  6360. fi
  6361. fi
  6362. if test -z "$ac_cv_prog_DLLTOOL"; then
  6363. ac_ct_DLLTOOL=$DLLTOOL
  6364. # Extract the first word of "dlltool", so it can be a program name with args.
  6365. set dummy dlltool; ac_word=$2
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6367. $as_echo_n "checking for $ac_word... " >&6; }
  6368. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6369. $as_echo_n "(cached) " >&6
  6370. else
  6371. if test -n "$ac_ct_DLLTOOL"; then
  6372. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6373. else
  6374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6375. for as_dir in $PATH
  6376. do
  6377. IFS=$as_save_IFS
  6378. test -z "$as_dir" && as_dir=.
  6379. for ac_exec_ext in '' $ac_executable_extensions; do
  6380. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6381. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6383. break 2
  6384. fi
  6385. done
  6386. done
  6387. IFS=$as_save_IFS
  6388. fi
  6389. fi
  6390. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6391. if test -n "$ac_ct_DLLTOOL"; then
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6393. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6394. else
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6396. $as_echo "no" >&6; }
  6397. fi
  6398. if test "x$ac_ct_DLLTOOL" = x; then
  6399. DLLTOOL="false"
  6400. else
  6401. case $cross_compiling:$ac_tool_warned in
  6402. yes:)
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6404. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6405. ac_tool_warned=yes ;;
  6406. esac
  6407. DLLTOOL=$ac_ct_DLLTOOL
  6408. fi
  6409. else
  6410. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6411. fi
  6412. if test -n "$ac_tool_prefix"; then
  6413. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6414. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6416. $as_echo_n "checking for $ac_word... " >&6; }
  6417. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6418. $as_echo_n "(cached) " >&6
  6419. else
  6420. if test -n "$OBJDUMP"; then
  6421. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6422. else
  6423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6424. for as_dir in $PATH
  6425. do
  6426. IFS=$as_save_IFS
  6427. test -z "$as_dir" && as_dir=.
  6428. for ac_exec_ext in '' $ac_executable_extensions; do
  6429. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6430. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6432. break 2
  6433. fi
  6434. done
  6435. done
  6436. IFS=$as_save_IFS
  6437. fi
  6438. fi
  6439. OBJDUMP=$ac_cv_prog_OBJDUMP
  6440. if test -n "$OBJDUMP"; then
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6442. $as_echo "$OBJDUMP" >&6; }
  6443. else
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6445. $as_echo "no" >&6; }
  6446. fi
  6447. fi
  6448. if test -z "$ac_cv_prog_OBJDUMP"; then
  6449. ac_ct_OBJDUMP=$OBJDUMP
  6450. # Extract the first word of "objdump", so it can be a program name with args.
  6451. set dummy objdump; ac_word=$2
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6453. $as_echo_n "checking for $ac_word... " >&6; }
  6454. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6455. $as_echo_n "(cached) " >&6
  6456. else
  6457. if test -n "$ac_ct_OBJDUMP"; then
  6458. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6459. else
  6460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6461. for as_dir in $PATH
  6462. do
  6463. IFS=$as_save_IFS
  6464. test -z "$as_dir" && as_dir=.
  6465. for ac_exec_ext in '' $ac_executable_extensions; do
  6466. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6467. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6469. break 2
  6470. fi
  6471. done
  6472. done
  6473. IFS=$as_save_IFS
  6474. fi
  6475. fi
  6476. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6477. if test -n "$ac_ct_OBJDUMP"; then
  6478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6479. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6480. else
  6481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6482. $as_echo "no" >&6; }
  6483. fi
  6484. if test "x$ac_ct_OBJDUMP" = x; then
  6485. OBJDUMP="false"
  6486. else
  6487. case $cross_compiling:$ac_tool_warned in
  6488. yes:)
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6490. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6491. ac_tool_warned=yes ;;
  6492. esac
  6493. OBJDUMP=$ac_ct_OBJDUMP
  6494. fi
  6495. else
  6496. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6497. fi
  6498. ;;
  6499. esac
  6500. test -z "$AS" && AS=as
  6501. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6502. test -z "$OBJDUMP" && OBJDUMP=objdump
  6503. enable_dlopen=no
  6504. # Check whether --enable-shared was given.
  6505. if test "${enable_shared+set}" = set; then :
  6506. enableval=$enable_shared; p=${PACKAGE-default}
  6507. case $enableval in
  6508. yes) enable_shared=yes ;;
  6509. no) enable_shared=no ;;
  6510. *)
  6511. enable_shared=no
  6512. # Look at the argument we got. We use all the common list separators.
  6513. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6514. for pkg in $enableval; do
  6515. IFS="$lt_save_ifs"
  6516. if test "X$pkg" = "X$p"; then
  6517. enable_shared=yes
  6518. fi
  6519. done
  6520. IFS="$lt_save_ifs"
  6521. ;;
  6522. esac
  6523. else
  6524. enable_shared=yes
  6525. fi
  6526. # Check whether --enable-static was given.
  6527. if test "${enable_static+set}" = set; then :
  6528. enableval=$enable_static; p=${PACKAGE-default}
  6529. case $enableval in
  6530. yes) enable_static=yes ;;
  6531. no) enable_static=no ;;
  6532. *)
  6533. enable_static=no
  6534. # Look at the argument we got. We use all the common list separators.
  6535. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6536. for pkg in $enableval; do
  6537. IFS="$lt_save_ifs"
  6538. if test "X$pkg" = "X$p"; then
  6539. enable_static=yes
  6540. fi
  6541. done
  6542. IFS="$lt_save_ifs"
  6543. ;;
  6544. esac
  6545. else
  6546. enable_static=yes
  6547. fi
  6548. # Check whether --with-pic was given.
  6549. if test "${with_pic+set}" = set; then :
  6550. withval=$with_pic; lt_p=${PACKAGE-default}
  6551. case $withval in
  6552. yes|no) pic_mode=$withval ;;
  6553. *)
  6554. pic_mode=default
  6555. # Look at the argument we got. We use all the common list separators.
  6556. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6557. for lt_pkg in $withval; do
  6558. IFS="$lt_save_ifs"
  6559. if test "X$lt_pkg" = "X$lt_p"; then
  6560. pic_mode=yes
  6561. fi
  6562. done
  6563. IFS="$lt_save_ifs"
  6564. ;;
  6565. esac
  6566. else
  6567. pic_mode=default
  6568. fi
  6569. test -z "$pic_mode" && pic_mode=default
  6570. # Check whether --enable-fast-install was given.
  6571. if test "${enable_fast_install+set}" = set; then :
  6572. enableval=$enable_fast_install; p=${PACKAGE-default}
  6573. case $enableval in
  6574. yes) enable_fast_install=yes ;;
  6575. no) enable_fast_install=no ;;
  6576. *)
  6577. enable_fast_install=no
  6578. # Look at the argument we got. We use all the common list separators.
  6579. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6580. for pkg in $enableval; do
  6581. IFS="$lt_save_ifs"
  6582. if test "X$pkg" = "X$p"; then
  6583. enable_fast_install=yes
  6584. fi
  6585. done
  6586. IFS="$lt_save_ifs"
  6587. ;;
  6588. esac
  6589. else
  6590. enable_fast_install=yes
  6591. fi
  6592. # This can be used to rebuild libtool when needed
  6593. LIBTOOL_DEPS="$ltmain"
  6594. # Always use our own libtool.
  6595. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6596. test -z "$LN_S" && LN_S="ln -s"
  6597. if test -n "${ZSH_VERSION+set}" ; then
  6598. setopt NO_GLOB_SUBST
  6599. fi
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6601. $as_echo_n "checking for objdir... " >&6; }
  6602. if ${lt_cv_objdir+:} false; then :
  6603. $as_echo_n "(cached) " >&6
  6604. else
  6605. rm -f .libs 2>/dev/null
  6606. mkdir .libs 2>/dev/null
  6607. if test -d .libs; then
  6608. lt_cv_objdir=.libs
  6609. else
  6610. # MS-DOS does not allow filenames that begin with a dot.
  6611. lt_cv_objdir=_libs
  6612. fi
  6613. rmdir .libs 2>/dev/null
  6614. fi
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6616. $as_echo "$lt_cv_objdir" >&6; }
  6617. objdir=$lt_cv_objdir
  6618. cat >>confdefs.h <<_ACEOF
  6619. #define LT_OBJDIR "$lt_cv_objdir/"
  6620. _ACEOF
  6621. case $host_os in
  6622. aix3*)
  6623. # AIX sometimes has problems with the GCC collect2 program. For some
  6624. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6625. # vanish in a puff of smoke.
  6626. if test "X${COLLECT_NAMES+set}" != Xset; then
  6627. COLLECT_NAMES=
  6628. export COLLECT_NAMES
  6629. fi
  6630. ;;
  6631. esac
  6632. # Global variables:
  6633. ofile=libtool
  6634. can_build_shared=yes
  6635. # All known linkers require a `.a' archive for static linking (except MSVC,
  6636. # which needs '.lib').
  6637. libext=a
  6638. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6639. old_CC="$CC"
  6640. old_CFLAGS="$CFLAGS"
  6641. # Set sane defaults for various variables
  6642. test -z "$CC" && CC=cc
  6643. test -z "$LTCC" && LTCC=$CC
  6644. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6645. test -z "$LD" && LD=ld
  6646. test -z "$ac_objext" && ac_objext=o
  6647. for cc_temp in $compiler""; do
  6648. case $cc_temp in
  6649. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6650. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6651. \-*) ;;
  6652. *) break;;
  6653. esac
  6654. done
  6655. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6656. # Only perform the check for file, if the check method requires it
  6657. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6658. case $deplibs_check_method in
  6659. file_magic*)
  6660. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6662. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6663. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6664. $as_echo_n "(cached) " >&6
  6665. else
  6666. case $MAGIC_CMD in
  6667. [\\/*] | ?:[\\/]*)
  6668. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6669. ;;
  6670. *)
  6671. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6672. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6673. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6674. for ac_dir in $ac_dummy; do
  6675. IFS="$lt_save_ifs"
  6676. test -z "$ac_dir" && ac_dir=.
  6677. if test -f $ac_dir/${ac_tool_prefix}file; then
  6678. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6679. if test -n "$file_magic_test_file"; then
  6680. case $deplibs_check_method in
  6681. "file_magic "*)
  6682. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6683. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6684. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6685. $EGREP "$file_magic_regex" > /dev/null; then
  6686. :
  6687. else
  6688. cat <<_LT_EOF 1>&2
  6689. *** Warning: the command libtool uses to detect shared libraries,
  6690. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6691. *** The result is that libtool may fail to recognize shared libraries
  6692. *** as such. This will affect the creation of libtool libraries that
  6693. *** depend on shared libraries, but programs linked with such libtool
  6694. *** libraries will work regardless of this problem. Nevertheless, you
  6695. *** may want to report the problem to your system manager and/or to
  6696. *** bug-libtool@gnu.org
  6697. _LT_EOF
  6698. fi ;;
  6699. esac
  6700. fi
  6701. break
  6702. fi
  6703. done
  6704. IFS="$lt_save_ifs"
  6705. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6706. ;;
  6707. esac
  6708. fi
  6709. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6710. if test -n "$MAGIC_CMD"; then
  6711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6712. $as_echo "$MAGIC_CMD" >&6; }
  6713. else
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6715. $as_echo "no" >&6; }
  6716. fi
  6717. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6718. if test -n "$ac_tool_prefix"; then
  6719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6720. $as_echo_n "checking for file... " >&6; }
  6721. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6722. $as_echo_n "(cached) " >&6
  6723. else
  6724. case $MAGIC_CMD in
  6725. [\\/*] | ?:[\\/]*)
  6726. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6727. ;;
  6728. *)
  6729. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6730. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6731. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6732. for ac_dir in $ac_dummy; do
  6733. IFS="$lt_save_ifs"
  6734. test -z "$ac_dir" && ac_dir=.
  6735. if test -f $ac_dir/file; then
  6736. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6737. if test -n "$file_magic_test_file"; then
  6738. case $deplibs_check_method in
  6739. "file_magic "*)
  6740. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6741. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6742. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6743. $EGREP "$file_magic_regex" > /dev/null; then
  6744. :
  6745. else
  6746. cat <<_LT_EOF 1>&2
  6747. *** Warning: the command libtool uses to detect shared libraries,
  6748. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6749. *** The result is that libtool may fail to recognize shared libraries
  6750. *** as such. This will affect the creation of libtool libraries that
  6751. *** depend on shared libraries, but programs linked with such libtool
  6752. *** libraries will work regardless of this problem. Nevertheless, you
  6753. *** may want to report the problem to your system manager and/or to
  6754. *** bug-libtool@gnu.org
  6755. _LT_EOF
  6756. fi ;;
  6757. esac
  6758. fi
  6759. break
  6760. fi
  6761. done
  6762. IFS="$lt_save_ifs"
  6763. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6764. ;;
  6765. esac
  6766. fi
  6767. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6768. if test -n "$MAGIC_CMD"; then
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6770. $as_echo "$MAGIC_CMD" >&6; }
  6771. else
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6773. $as_echo "no" >&6; }
  6774. fi
  6775. else
  6776. MAGIC_CMD=:
  6777. fi
  6778. fi
  6779. fi
  6780. ;;
  6781. esac
  6782. # Use C for the default configuration in the libtool script
  6783. lt_save_CC="$CC"
  6784. ac_ext=c
  6785. ac_cpp='$CPP $CPPFLAGS'
  6786. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6787. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6788. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6789. # Source file extension for C test sources.
  6790. ac_ext=c
  6791. # Object file extension for compiled C test sources.
  6792. objext=o
  6793. objext=$objext
  6794. # Code to be used in simple compile tests
  6795. lt_simple_compile_test_code="int some_variable = 0;"
  6796. # Code to be used in simple link tests
  6797. lt_simple_link_test_code='int main(){return(0);}'
  6798. # If no C compiler was specified, use CC.
  6799. LTCC=${LTCC-"$CC"}
  6800. # If no C compiler flags were specified, use CFLAGS.
  6801. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6802. # Allow CC to be a program name with arguments.
  6803. compiler=$CC
  6804. # Save the default compiler, since it gets overwritten when the other
  6805. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6806. compiler_DEFAULT=$CC
  6807. # save warnings/boilerplate of simple test code
  6808. ac_outfile=conftest.$ac_objext
  6809. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6810. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6811. _lt_compiler_boilerplate=`cat conftest.err`
  6812. $RM conftest*
  6813. ac_outfile=conftest.$ac_objext
  6814. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6815. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6816. _lt_linker_boilerplate=`cat conftest.err`
  6817. $RM -r conftest*
  6818. ## CAVEAT EMPTOR:
  6819. ## There is no encapsulation within the following macros, do not change
  6820. ## the running order or otherwise move them around unless you know exactly
  6821. ## what you are doing...
  6822. if test -n "$compiler"; then
  6823. lt_prog_compiler_no_builtin_flag=
  6824. if test "$GCC" = yes; then
  6825. case $cc_basename in
  6826. nvcc*)
  6827. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6828. *)
  6829. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6830. esac
  6831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6832. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6833. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6834. $as_echo_n "(cached) " >&6
  6835. else
  6836. lt_cv_prog_compiler_rtti_exceptions=no
  6837. ac_outfile=conftest.$ac_objext
  6838. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6839. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6840. # Insert the option either (1) after the last *FLAGS variable, or
  6841. # (2) before a word containing "conftest.", or (3) at the end.
  6842. # Note that $ac_compile itself does not contain backslashes and begins
  6843. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6844. # The option is referenced via a variable to avoid confusing sed.
  6845. lt_compile=`echo "$ac_compile" | $SED \
  6846. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6847. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6848. -e 's:$: $lt_compiler_flag:'`
  6849. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6850. (eval "$lt_compile" 2>conftest.err)
  6851. ac_status=$?
  6852. cat conftest.err >&5
  6853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6854. if (exit $ac_status) && test -s "$ac_outfile"; then
  6855. # The compiler can only warn and ignore the option if not recognized
  6856. # So say no if there are warnings other than the usual output.
  6857. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6858. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6859. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6860. lt_cv_prog_compiler_rtti_exceptions=yes
  6861. fi
  6862. fi
  6863. $RM conftest*
  6864. fi
  6865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6866. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6867. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6868. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6869. else
  6870. :
  6871. fi
  6872. fi
  6873. lt_prog_compiler_wl=
  6874. lt_prog_compiler_pic=
  6875. lt_prog_compiler_static=
  6876. if test "$GCC" = yes; then
  6877. lt_prog_compiler_wl='-Wl,'
  6878. lt_prog_compiler_static='-static'
  6879. case $host_os in
  6880. aix*)
  6881. # All AIX code is PIC.
  6882. if test "$host_cpu" = ia64; then
  6883. # AIX 5 now supports IA64 processor
  6884. lt_prog_compiler_static='-Bstatic'
  6885. fi
  6886. ;;
  6887. amigaos*)
  6888. case $host_cpu in
  6889. powerpc)
  6890. # see comment about AmigaOS4 .so support
  6891. lt_prog_compiler_pic='-fPIC'
  6892. ;;
  6893. m68k)
  6894. # FIXME: we need at least 68020 code to build shared libraries, but
  6895. # adding the `-m68020' flag to GCC prevents building anything better,
  6896. # like `-m68040'.
  6897. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6898. ;;
  6899. esac
  6900. ;;
  6901. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6902. # PIC is the default for these OSes.
  6903. ;;
  6904. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6905. # This hack is so that the source file can tell whether it is being
  6906. # built for inclusion in a dll (and should export symbols for example).
  6907. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6908. # (--disable-auto-import) libraries
  6909. lt_prog_compiler_pic='-DDLL_EXPORT'
  6910. ;;
  6911. darwin* | rhapsody*)
  6912. # PIC is the default on this platform
  6913. # Common symbols not allowed in MH_DYLIB files
  6914. lt_prog_compiler_pic='-fno-common'
  6915. ;;
  6916. haiku*)
  6917. # PIC is the default for Haiku.
  6918. # The "-static" flag exists, but is broken.
  6919. lt_prog_compiler_static=
  6920. ;;
  6921. hpux*)
  6922. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6923. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6924. # sets the default TLS model and affects inlining.
  6925. case $host_cpu in
  6926. hppa*64*)
  6927. # +Z the default
  6928. ;;
  6929. *)
  6930. lt_prog_compiler_pic='-fPIC'
  6931. ;;
  6932. esac
  6933. ;;
  6934. interix[3-9]*)
  6935. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6936. # Instead, we relocate shared libraries at runtime.
  6937. ;;
  6938. msdosdjgpp*)
  6939. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6940. # on systems that don't support them.
  6941. lt_prog_compiler_can_build_shared=no
  6942. enable_shared=no
  6943. ;;
  6944. *nto* | *qnx*)
  6945. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6946. # it will coredump.
  6947. lt_prog_compiler_pic='-fPIC -shared'
  6948. ;;
  6949. sysv4*MP*)
  6950. if test -d /usr/nec; then
  6951. lt_prog_compiler_pic=-Kconform_pic
  6952. fi
  6953. ;;
  6954. *)
  6955. lt_prog_compiler_pic='-fPIC'
  6956. ;;
  6957. esac
  6958. case $cc_basename in
  6959. nvcc*) # Cuda Compiler Driver 2.2
  6960. lt_prog_compiler_wl='-Xlinker '
  6961. if test -n "$lt_prog_compiler_pic"; then
  6962. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6963. fi
  6964. ;;
  6965. esac
  6966. else
  6967. # PORTME Check for flag to pass linker flags through the system compiler.
  6968. case $host_os in
  6969. aix*)
  6970. lt_prog_compiler_wl='-Wl,'
  6971. if test "$host_cpu" = ia64; then
  6972. # AIX 5 now supports IA64 processor
  6973. lt_prog_compiler_static='-Bstatic'
  6974. else
  6975. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6976. fi
  6977. ;;
  6978. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6979. # This hack is so that the source file can tell whether it is being
  6980. # built for inclusion in a dll (and should export symbols for example).
  6981. lt_prog_compiler_pic='-DDLL_EXPORT'
  6982. ;;
  6983. hpux9* | hpux10* | hpux11*)
  6984. lt_prog_compiler_wl='-Wl,'
  6985. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6986. # not for PA HP-UX.
  6987. case $host_cpu in
  6988. hppa*64*|ia64*)
  6989. # +Z the default
  6990. ;;
  6991. *)
  6992. lt_prog_compiler_pic='+Z'
  6993. ;;
  6994. esac
  6995. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6996. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6997. ;;
  6998. irix5* | irix6* | nonstopux*)
  6999. lt_prog_compiler_wl='-Wl,'
  7000. # PIC (with -KPIC) is the default.
  7001. lt_prog_compiler_static='-non_shared'
  7002. ;;
  7003. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7004. case $cc_basename in
  7005. # old Intel for x86_64 which still supported -KPIC.
  7006. ecc*)
  7007. lt_prog_compiler_wl='-Wl,'
  7008. lt_prog_compiler_pic='-KPIC'
  7009. lt_prog_compiler_static='-static'
  7010. ;;
  7011. # icc used to be incompatible with GCC.
  7012. # ICC 10 doesn't accept -KPIC any more.
  7013. icc* | ifort*)
  7014. lt_prog_compiler_wl='-Wl,'
  7015. lt_prog_compiler_pic='-fPIC'
  7016. lt_prog_compiler_static='-static'
  7017. ;;
  7018. # Lahey Fortran 8.1.
  7019. lf95*)
  7020. lt_prog_compiler_wl='-Wl,'
  7021. lt_prog_compiler_pic='--shared'
  7022. lt_prog_compiler_static='--static'
  7023. ;;
  7024. nagfor*)
  7025. # NAG Fortran compiler
  7026. lt_prog_compiler_wl='-Wl,-Wl,,'
  7027. lt_prog_compiler_pic='-PIC'
  7028. lt_prog_compiler_static='-Bstatic'
  7029. ;;
  7030. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7031. # Portland Group compilers (*not* the Pentium gcc compiler,
  7032. # which looks to be a dead project)
  7033. lt_prog_compiler_wl='-Wl,'
  7034. lt_prog_compiler_pic='-fpic'
  7035. lt_prog_compiler_static='-Bstatic'
  7036. ;;
  7037. ccc*)
  7038. lt_prog_compiler_wl='-Wl,'
  7039. # All Alpha code is PIC.
  7040. lt_prog_compiler_static='-non_shared'
  7041. ;;
  7042. xl* | bgxl* | bgf* | mpixl*)
  7043. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7044. lt_prog_compiler_wl='-Wl,'
  7045. lt_prog_compiler_pic='-qpic'
  7046. lt_prog_compiler_static='-qstaticlink'
  7047. ;;
  7048. *)
  7049. case `$CC -V 2>&1 | sed 5q` in
  7050. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7051. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7052. lt_prog_compiler_pic='-KPIC'
  7053. lt_prog_compiler_static='-Bstatic'
  7054. lt_prog_compiler_wl=''
  7055. ;;
  7056. *Sun\ F* | *Sun*Fortran*)
  7057. lt_prog_compiler_pic='-KPIC'
  7058. lt_prog_compiler_static='-Bstatic'
  7059. lt_prog_compiler_wl='-Qoption ld '
  7060. ;;
  7061. *Sun\ C*)
  7062. # Sun C 5.9
  7063. lt_prog_compiler_pic='-KPIC'
  7064. lt_prog_compiler_static='-Bstatic'
  7065. lt_prog_compiler_wl='-Wl,'
  7066. ;;
  7067. *Intel*\ [CF]*Compiler*)
  7068. lt_prog_compiler_wl='-Wl,'
  7069. lt_prog_compiler_pic='-fPIC'
  7070. lt_prog_compiler_static='-static'
  7071. ;;
  7072. *Portland\ Group*)
  7073. lt_prog_compiler_wl='-Wl,'
  7074. lt_prog_compiler_pic='-fpic'
  7075. lt_prog_compiler_static='-Bstatic'
  7076. ;;
  7077. esac
  7078. ;;
  7079. esac
  7080. ;;
  7081. newsos6)
  7082. lt_prog_compiler_pic='-KPIC'
  7083. lt_prog_compiler_static='-Bstatic'
  7084. ;;
  7085. *nto* | *qnx*)
  7086. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7087. # it will coredump.
  7088. lt_prog_compiler_pic='-fPIC -shared'
  7089. ;;
  7090. osf3* | osf4* | osf5*)
  7091. lt_prog_compiler_wl='-Wl,'
  7092. # All OSF/1 code is PIC.
  7093. lt_prog_compiler_static='-non_shared'
  7094. ;;
  7095. rdos*)
  7096. lt_prog_compiler_static='-non_shared'
  7097. ;;
  7098. solaris*)
  7099. lt_prog_compiler_pic='-KPIC'
  7100. lt_prog_compiler_static='-Bstatic'
  7101. case $cc_basename in
  7102. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7103. lt_prog_compiler_wl='-Qoption ld ';;
  7104. *)
  7105. lt_prog_compiler_wl='-Wl,';;
  7106. esac
  7107. ;;
  7108. sunos4*)
  7109. lt_prog_compiler_wl='-Qoption ld '
  7110. lt_prog_compiler_pic='-PIC'
  7111. lt_prog_compiler_static='-Bstatic'
  7112. ;;
  7113. sysv4 | sysv4.2uw2* | sysv4.3*)
  7114. lt_prog_compiler_wl='-Wl,'
  7115. lt_prog_compiler_pic='-KPIC'
  7116. lt_prog_compiler_static='-Bstatic'
  7117. ;;
  7118. sysv4*MP*)
  7119. if test -d /usr/nec ;then
  7120. lt_prog_compiler_pic='-Kconform_pic'
  7121. lt_prog_compiler_static='-Bstatic'
  7122. fi
  7123. ;;
  7124. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7125. lt_prog_compiler_wl='-Wl,'
  7126. lt_prog_compiler_pic='-KPIC'
  7127. lt_prog_compiler_static='-Bstatic'
  7128. ;;
  7129. unicos*)
  7130. lt_prog_compiler_wl='-Wl,'
  7131. lt_prog_compiler_can_build_shared=no
  7132. ;;
  7133. uts4*)
  7134. lt_prog_compiler_pic='-pic'
  7135. lt_prog_compiler_static='-Bstatic'
  7136. ;;
  7137. *)
  7138. lt_prog_compiler_can_build_shared=no
  7139. ;;
  7140. esac
  7141. fi
  7142. case $host_os in
  7143. # For platforms which do not support PIC, -DPIC is meaningless:
  7144. *djgpp*)
  7145. lt_prog_compiler_pic=
  7146. ;;
  7147. *)
  7148. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7149. ;;
  7150. esac
  7151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7152. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7153. if ${lt_cv_prog_compiler_pic+:} false; then :
  7154. $as_echo_n "(cached) " >&6
  7155. else
  7156. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7157. fi
  7158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7159. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7160. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7161. #
  7162. # Check to make sure the PIC flag actually works.
  7163. #
  7164. if test -n "$lt_prog_compiler_pic"; then
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7166. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7167. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7168. $as_echo_n "(cached) " >&6
  7169. else
  7170. lt_cv_prog_compiler_pic_works=no
  7171. ac_outfile=conftest.$ac_objext
  7172. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7173. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7174. # Insert the option either (1) after the last *FLAGS variable, or
  7175. # (2) before a word containing "conftest.", or (3) at the end.
  7176. # Note that $ac_compile itself does not contain backslashes and begins
  7177. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7178. # The option is referenced via a variable to avoid confusing sed.
  7179. lt_compile=`echo "$ac_compile" | $SED \
  7180. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7181. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7182. -e 's:$: $lt_compiler_flag:'`
  7183. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7184. (eval "$lt_compile" 2>conftest.err)
  7185. ac_status=$?
  7186. cat conftest.err >&5
  7187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7188. if (exit $ac_status) && test -s "$ac_outfile"; then
  7189. # The compiler can only warn and ignore the option if not recognized
  7190. # So say no if there are warnings other than the usual output.
  7191. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7192. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7193. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7194. lt_cv_prog_compiler_pic_works=yes
  7195. fi
  7196. fi
  7197. $RM conftest*
  7198. fi
  7199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7200. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7201. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7202. case $lt_prog_compiler_pic in
  7203. "" | " "*) ;;
  7204. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7205. esac
  7206. else
  7207. lt_prog_compiler_pic=
  7208. lt_prog_compiler_can_build_shared=no
  7209. fi
  7210. fi
  7211. #
  7212. # Check to make sure the static flag actually works.
  7213. #
  7214. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7216. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7217. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7218. $as_echo_n "(cached) " >&6
  7219. else
  7220. lt_cv_prog_compiler_static_works=no
  7221. save_LDFLAGS="$LDFLAGS"
  7222. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7223. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7224. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7225. # The linker can only warn and ignore the option if not recognized
  7226. # So say no if there are warnings
  7227. if test -s conftest.err; then
  7228. # Append any errors to the config.log.
  7229. cat conftest.err 1>&5
  7230. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7231. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7232. if diff conftest.exp conftest.er2 >/dev/null; then
  7233. lt_cv_prog_compiler_static_works=yes
  7234. fi
  7235. else
  7236. lt_cv_prog_compiler_static_works=yes
  7237. fi
  7238. fi
  7239. $RM -r conftest*
  7240. LDFLAGS="$save_LDFLAGS"
  7241. fi
  7242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7243. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7244. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7245. :
  7246. else
  7247. lt_prog_compiler_static=
  7248. fi
  7249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7250. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7251. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7252. $as_echo_n "(cached) " >&6
  7253. else
  7254. lt_cv_prog_compiler_c_o=no
  7255. $RM -r conftest 2>/dev/null
  7256. mkdir conftest
  7257. cd conftest
  7258. mkdir out
  7259. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7260. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7261. # Insert the option either (1) after the last *FLAGS variable, or
  7262. # (2) before a word containing "conftest.", or (3) at the end.
  7263. # Note that $ac_compile itself does not contain backslashes and begins
  7264. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7265. lt_compile=`echo "$ac_compile" | $SED \
  7266. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7267. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7268. -e 's:$: $lt_compiler_flag:'`
  7269. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7270. (eval "$lt_compile" 2>out/conftest.err)
  7271. ac_status=$?
  7272. cat out/conftest.err >&5
  7273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7274. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7275. then
  7276. # The compiler can only warn and ignore the option if not recognized
  7277. # So say no if there are warnings
  7278. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7279. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7280. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7281. lt_cv_prog_compiler_c_o=yes
  7282. fi
  7283. fi
  7284. chmod u+w . 2>&5
  7285. $RM conftest*
  7286. # SGI C++ compiler will create directory out/ii_files/ for
  7287. # template instantiation
  7288. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7289. $RM out/* && rmdir out
  7290. cd ..
  7291. $RM -r conftest
  7292. $RM conftest*
  7293. fi
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7295. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7297. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7298. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7299. $as_echo_n "(cached) " >&6
  7300. else
  7301. lt_cv_prog_compiler_c_o=no
  7302. $RM -r conftest 2>/dev/null
  7303. mkdir conftest
  7304. cd conftest
  7305. mkdir out
  7306. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7307. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7308. # Insert the option either (1) after the last *FLAGS variable, or
  7309. # (2) before a word containing "conftest.", or (3) at the end.
  7310. # Note that $ac_compile itself does not contain backslashes and begins
  7311. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7312. lt_compile=`echo "$ac_compile" | $SED \
  7313. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7314. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7315. -e 's:$: $lt_compiler_flag:'`
  7316. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7317. (eval "$lt_compile" 2>out/conftest.err)
  7318. ac_status=$?
  7319. cat out/conftest.err >&5
  7320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7321. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7322. then
  7323. # The compiler can only warn and ignore the option if not recognized
  7324. # So say no if there are warnings
  7325. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7326. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7327. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7328. lt_cv_prog_compiler_c_o=yes
  7329. fi
  7330. fi
  7331. chmod u+w . 2>&5
  7332. $RM conftest*
  7333. # SGI C++ compiler will create directory out/ii_files/ for
  7334. # template instantiation
  7335. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7336. $RM out/* && rmdir out
  7337. cd ..
  7338. $RM -r conftest
  7339. $RM conftest*
  7340. fi
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7342. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7343. hard_links="nottested"
  7344. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7345. # do not overwrite the value of need_locks provided by the user
  7346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7347. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7348. hard_links=yes
  7349. $RM conftest*
  7350. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7351. touch conftest.a
  7352. ln conftest.a conftest.b 2>&5 || hard_links=no
  7353. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7355. $as_echo "$hard_links" >&6; }
  7356. if test "$hard_links" = no; then
  7357. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7358. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7359. need_locks=warn
  7360. fi
  7361. else
  7362. need_locks=no
  7363. fi
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7365. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7366. runpath_var=
  7367. allow_undefined_flag=
  7368. always_export_symbols=no
  7369. archive_cmds=
  7370. archive_expsym_cmds=
  7371. compiler_needs_object=no
  7372. enable_shared_with_static_runtimes=no
  7373. export_dynamic_flag_spec=
  7374. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7375. hardcode_automatic=no
  7376. hardcode_direct=no
  7377. hardcode_direct_absolute=no
  7378. hardcode_libdir_flag_spec=
  7379. hardcode_libdir_separator=
  7380. hardcode_minus_L=no
  7381. hardcode_shlibpath_var=unsupported
  7382. inherit_rpath=no
  7383. link_all_deplibs=unknown
  7384. module_cmds=
  7385. module_expsym_cmds=
  7386. old_archive_from_new_cmds=
  7387. old_archive_from_expsyms_cmds=
  7388. thread_safe_flag_spec=
  7389. whole_archive_flag_spec=
  7390. # include_expsyms should be a list of space-separated symbols to be *always*
  7391. # included in the symbol list
  7392. include_expsyms=
  7393. # exclude_expsyms can be an extended regexp of symbols to exclude
  7394. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7395. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7396. # as well as any symbol that contains `d'.
  7397. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7398. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7399. # platforms (ab)use it in PIC code, but their linkers get confused if
  7400. # the symbol is explicitly referenced. Since portable code cannot
  7401. # rely on this symbol name, it's probably fine to never include it in
  7402. # preloaded symbol tables.
  7403. # Exclude shared library initialization/finalization symbols.
  7404. extract_expsyms_cmds=
  7405. case $host_os in
  7406. cygwin* | mingw* | pw32* | cegcc*)
  7407. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7408. # When not using gcc, we currently assume that we are using
  7409. # Microsoft Visual C++.
  7410. if test "$GCC" != yes; then
  7411. with_gnu_ld=no
  7412. fi
  7413. ;;
  7414. interix*)
  7415. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7416. with_gnu_ld=yes
  7417. ;;
  7418. openbsd*)
  7419. with_gnu_ld=no
  7420. ;;
  7421. esac
  7422. ld_shlibs=yes
  7423. # On some targets, GNU ld is compatible enough with the native linker
  7424. # that we're better off using the native interface for both.
  7425. lt_use_gnu_ld_interface=no
  7426. if test "$with_gnu_ld" = yes; then
  7427. case $host_os in
  7428. aix*)
  7429. # The AIX port of GNU ld has always aspired to compatibility
  7430. # with the native linker. However, as the warning in the GNU ld
  7431. # block says, versions before 2.19.5* couldn't really create working
  7432. # shared libraries, regardless of the interface used.
  7433. case `$LD -v 2>&1` in
  7434. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7435. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7436. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7437. *)
  7438. lt_use_gnu_ld_interface=yes
  7439. ;;
  7440. esac
  7441. ;;
  7442. *)
  7443. lt_use_gnu_ld_interface=yes
  7444. ;;
  7445. esac
  7446. fi
  7447. if test "$lt_use_gnu_ld_interface" = yes; then
  7448. # If archive_cmds runs LD, not CC, wlarc should be empty
  7449. wlarc='${wl}'
  7450. # Set some defaults for GNU ld with shared library support. These
  7451. # are reset later if shared libraries are not supported. Putting them
  7452. # here allows them to be overridden if necessary.
  7453. runpath_var=LD_RUN_PATH
  7454. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7455. export_dynamic_flag_spec='${wl}--export-dynamic'
  7456. # ancient GNU ld didn't support --whole-archive et. al.
  7457. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7458. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7459. else
  7460. whole_archive_flag_spec=
  7461. fi
  7462. supports_anon_versioning=no
  7463. case `$LD -v 2>&1` in
  7464. *GNU\ gold*) supports_anon_versioning=yes ;;
  7465. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7466. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7467. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7468. *\ 2.11.*) ;; # other 2.11 versions
  7469. *) supports_anon_versioning=yes ;;
  7470. esac
  7471. # See if GNU ld supports shared libraries.
  7472. case $host_os in
  7473. aix[3-9]*)
  7474. # On AIX/PPC, the GNU linker is very broken
  7475. if test "$host_cpu" != ia64; then
  7476. ld_shlibs=no
  7477. cat <<_LT_EOF 1>&2
  7478. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7479. *** to be unable to reliably create shared libraries on AIX.
  7480. *** Therefore, libtool is disabling shared libraries support. If you
  7481. *** really care for shared libraries, you may want to install binutils
  7482. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7483. *** You will then need to restart the configuration process.
  7484. _LT_EOF
  7485. fi
  7486. ;;
  7487. amigaos*)
  7488. case $host_cpu in
  7489. powerpc)
  7490. # see comment about AmigaOS4 .so support
  7491. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7492. archive_expsym_cmds=''
  7493. ;;
  7494. m68k)
  7495. 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)'
  7496. hardcode_libdir_flag_spec='-L$libdir'
  7497. hardcode_minus_L=yes
  7498. ;;
  7499. esac
  7500. ;;
  7501. beos*)
  7502. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7503. allow_undefined_flag=unsupported
  7504. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7505. # support --undefined. This deserves some investigation. FIXME
  7506. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7507. else
  7508. ld_shlibs=no
  7509. fi
  7510. ;;
  7511. cygwin* | mingw* | pw32* | cegcc*)
  7512. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7513. # as there is no search path for DLLs.
  7514. hardcode_libdir_flag_spec='-L$libdir'
  7515. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7516. allow_undefined_flag=unsupported
  7517. always_export_symbols=no
  7518. enable_shared_with_static_runtimes=yes
  7519. 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'
  7520. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7521. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7522. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7523. # If the export-symbols file already is a .def file (1st line
  7524. # is EXPORTS), use it as is; otherwise, prepend...
  7525. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7526. cp $export_symbols $output_objdir/$soname.def;
  7527. else
  7528. echo EXPORTS > $output_objdir/$soname.def;
  7529. cat $export_symbols >> $output_objdir/$soname.def;
  7530. fi~
  7531. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7532. else
  7533. ld_shlibs=no
  7534. fi
  7535. ;;
  7536. haiku*)
  7537. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7538. link_all_deplibs=yes
  7539. ;;
  7540. interix[3-9]*)
  7541. hardcode_direct=no
  7542. hardcode_shlibpath_var=no
  7543. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7544. export_dynamic_flag_spec='${wl}-E'
  7545. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7546. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7547. # default) and relocated if they conflict, which is a slow very memory
  7548. # consuming and fragmenting process. To avoid this, we pick a random,
  7549. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7550. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7551. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7552. 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'
  7553. ;;
  7554. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7555. tmp_diet=no
  7556. if test "$host_os" = linux-dietlibc; then
  7557. case $cc_basename in
  7558. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7559. esac
  7560. fi
  7561. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7562. && test "$tmp_diet" = no
  7563. then
  7564. tmp_addflag=' $pic_flag'
  7565. tmp_sharedflag='-shared'
  7566. case $cc_basename,$host_cpu in
  7567. pgcc*) # Portland Group C compiler
  7568. 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'
  7569. tmp_addflag=' $pic_flag'
  7570. ;;
  7571. pgf77* | pgf90* | pgf95* | pgfortran*)
  7572. # Portland Group f77 and f90 compilers
  7573. 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'
  7574. tmp_addflag=' $pic_flag -Mnomain' ;;
  7575. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7576. tmp_addflag=' -i_dynamic' ;;
  7577. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7578. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7579. ifc* | ifort*) # Intel Fortran compiler
  7580. tmp_addflag=' -nofor_main' ;;
  7581. lf95*) # Lahey Fortran 8.1
  7582. whole_archive_flag_spec=
  7583. tmp_sharedflag='--shared' ;;
  7584. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7585. tmp_sharedflag='-qmkshrobj'
  7586. tmp_addflag= ;;
  7587. nvcc*) # Cuda Compiler Driver 2.2
  7588. 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'
  7589. compiler_needs_object=yes
  7590. ;;
  7591. esac
  7592. case `$CC -V 2>&1 | sed 5q` in
  7593. *Sun\ C*) # Sun C 5.9
  7594. 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'
  7595. compiler_needs_object=yes
  7596. tmp_sharedflag='-G' ;;
  7597. *Sun\ F*) # Sun Fortran 8.3
  7598. tmp_sharedflag='-G' ;;
  7599. esac
  7600. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7601. if test "x$supports_anon_versioning" = xyes; then
  7602. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7603. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7604. echo "local: *; };" >> $output_objdir/$libname.ver~
  7605. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7606. fi
  7607. case $cc_basename in
  7608. xlf* | bgf* | bgxlf* | mpixlf*)
  7609. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7610. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7611. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7612. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7613. if test "x$supports_anon_versioning" = xyes; then
  7614. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7615. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7616. echo "local: *; };" >> $output_objdir/$libname.ver~
  7617. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7618. fi
  7619. ;;
  7620. esac
  7621. else
  7622. ld_shlibs=no
  7623. fi
  7624. ;;
  7625. netbsd*)
  7626. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7627. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7628. wlarc=
  7629. else
  7630. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7631. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7632. fi
  7633. ;;
  7634. solaris*)
  7635. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7636. ld_shlibs=no
  7637. cat <<_LT_EOF 1>&2
  7638. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7639. *** create shared libraries on Solaris systems. Therefore, libtool
  7640. *** is disabling shared libraries support. We urge you to upgrade GNU
  7641. *** binutils to release 2.9.1 or newer. Another option is to modify
  7642. *** your PATH or compiler configuration so that the native linker is
  7643. *** used, and then restart.
  7644. _LT_EOF
  7645. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7646. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7647. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7648. else
  7649. ld_shlibs=no
  7650. fi
  7651. ;;
  7652. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7653. case `$LD -v 2>&1` in
  7654. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7655. ld_shlibs=no
  7656. cat <<_LT_EOF 1>&2
  7657. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7658. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7659. *** is disabling shared libraries support. We urge you to upgrade GNU
  7660. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7661. *** your PATH or compiler configuration so that the native linker is
  7662. *** used, and then restart.
  7663. _LT_EOF
  7664. ;;
  7665. *)
  7666. # For security reasons, it is highly recommended that you always
  7667. # use absolute paths for naming shared libraries, and exclude the
  7668. # DT_RUNPATH tag from executables and libraries. But doing so
  7669. # requires that you compile everything twice, which is a pain.
  7670. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7671. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7672. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7673. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7674. else
  7675. ld_shlibs=no
  7676. fi
  7677. ;;
  7678. esac
  7679. ;;
  7680. sunos4*)
  7681. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7682. wlarc=
  7683. hardcode_direct=yes
  7684. hardcode_shlibpath_var=no
  7685. ;;
  7686. *)
  7687. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7688. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7689. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7690. else
  7691. ld_shlibs=no
  7692. fi
  7693. ;;
  7694. esac
  7695. if test "$ld_shlibs" = no; then
  7696. runpath_var=
  7697. hardcode_libdir_flag_spec=
  7698. export_dynamic_flag_spec=
  7699. whole_archive_flag_spec=
  7700. fi
  7701. else
  7702. # PORTME fill in a description of your system's linker (not GNU ld)
  7703. case $host_os in
  7704. aix3*)
  7705. allow_undefined_flag=unsupported
  7706. always_export_symbols=yes
  7707. 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'
  7708. # Note: this linker hardcodes the directories in LIBPATH if there
  7709. # are no directories specified by -L.
  7710. hardcode_minus_L=yes
  7711. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7712. # Neither direct hardcoding nor static linking is supported with a
  7713. # broken collect2.
  7714. hardcode_direct=unsupported
  7715. fi
  7716. ;;
  7717. aix[4-9]*)
  7718. if test "$host_cpu" = ia64; then
  7719. # On IA64, the linker does run time linking by default, so we don't
  7720. # have to do anything special.
  7721. aix_use_runtimelinking=no
  7722. exp_sym_flag='-Bexport'
  7723. no_entry_flag=""
  7724. else
  7725. # If we're using GNU nm, then we don't want the "-C" option.
  7726. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7727. # Also, AIX nm treats weak defined symbols like other global
  7728. # defined symbols, whereas GNU nm marks them as "W".
  7729. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7730. 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'
  7731. else
  7732. 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'
  7733. fi
  7734. aix_use_runtimelinking=no
  7735. # Test if we are trying to use run time linking or normal
  7736. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7737. # need to do runtime linking.
  7738. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7739. for ld_flag in $LDFLAGS; do
  7740. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7741. aix_use_runtimelinking=yes
  7742. break
  7743. fi
  7744. done
  7745. ;;
  7746. esac
  7747. exp_sym_flag='-bexport'
  7748. no_entry_flag='-bnoentry'
  7749. fi
  7750. # When large executables or shared objects are built, AIX ld can
  7751. # have problems creating the table of contents. If linking a library
  7752. # or program results in "error TOC overflow" add -mminimal-toc to
  7753. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7754. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7755. archive_cmds=''
  7756. hardcode_direct=yes
  7757. hardcode_direct_absolute=yes
  7758. hardcode_libdir_separator=':'
  7759. link_all_deplibs=yes
  7760. file_list_spec='${wl}-f,'
  7761. if test "$GCC" = yes; then
  7762. case $host_os in aix4.[012]|aix4.[012].*)
  7763. # We only want to do this on AIX 4.2 and lower, the check
  7764. # below for broken collect2 doesn't work under 4.3+
  7765. collect2name=`${CC} -print-prog-name=collect2`
  7766. if test -f "$collect2name" &&
  7767. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7768. then
  7769. # We have reworked collect2
  7770. :
  7771. else
  7772. # We have old collect2
  7773. hardcode_direct=unsupported
  7774. # It fails to find uninstalled libraries when the uninstalled
  7775. # path is not listed in the libpath. Setting hardcode_minus_L
  7776. # to unsupported forces relinking
  7777. hardcode_minus_L=yes
  7778. hardcode_libdir_flag_spec='-L$libdir'
  7779. hardcode_libdir_separator=
  7780. fi
  7781. ;;
  7782. esac
  7783. shared_flag='-shared'
  7784. if test "$aix_use_runtimelinking" = yes; then
  7785. shared_flag="$shared_flag "'${wl}-G'
  7786. fi
  7787. else
  7788. # not using gcc
  7789. if test "$host_cpu" = ia64; then
  7790. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7791. # chokes on -Wl,-G. The following line is correct:
  7792. shared_flag='-G'
  7793. else
  7794. if test "$aix_use_runtimelinking" = yes; then
  7795. shared_flag='${wl}-G'
  7796. else
  7797. shared_flag='${wl}-bM:SRE'
  7798. fi
  7799. fi
  7800. fi
  7801. export_dynamic_flag_spec='${wl}-bexpall'
  7802. # It seems that -bexpall does not export symbols beginning with
  7803. # underscore (_), so it is better to generate a list of symbols to export.
  7804. always_export_symbols=yes
  7805. if test "$aix_use_runtimelinking" = yes; then
  7806. # Warning - without using the other runtime loading flags (-brtl),
  7807. # -berok will link without error, but may produce a broken library.
  7808. allow_undefined_flag='-berok'
  7809. # Determine the default libpath from the value encoded in an
  7810. # empty executable.
  7811. if test "${lt_cv_aix_libpath+set}" = set; then
  7812. aix_libpath=$lt_cv_aix_libpath
  7813. else
  7814. if ${lt_cv_aix_libpath_+:} false; then :
  7815. $as_echo_n "(cached) " >&6
  7816. else
  7817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7818. /* end confdefs.h. */
  7819. int
  7820. main ()
  7821. {
  7822. ;
  7823. return 0;
  7824. }
  7825. _ACEOF
  7826. if ac_fn_c_try_link "$LINENO"; then :
  7827. lt_aix_libpath_sed='
  7828. /Import File Strings/,/^$/ {
  7829. /^0/ {
  7830. s/^0 *\([^ ]*\) *$/\1/
  7831. p
  7832. }
  7833. }'
  7834. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7835. # Check for a 64-bit object if we didn't find anything.
  7836. if test -z "$lt_cv_aix_libpath_"; then
  7837. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7838. fi
  7839. fi
  7840. rm -f core conftest.err conftest.$ac_objext \
  7841. conftest$ac_exeext conftest.$ac_ext
  7842. if test -z "$lt_cv_aix_libpath_"; then
  7843. lt_cv_aix_libpath_="/usr/lib:/lib"
  7844. fi
  7845. fi
  7846. aix_libpath=$lt_cv_aix_libpath_
  7847. fi
  7848. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7849. 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"
  7850. else
  7851. if test "$host_cpu" = ia64; then
  7852. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7853. allow_undefined_flag="-z nodefs"
  7854. 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"
  7855. else
  7856. # Determine the default libpath from the value encoded in an
  7857. # empty executable.
  7858. if test "${lt_cv_aix_libpath+set}" = set; then
  7859. aix_libpath=$lt_cv_aix_libpath
  7860. else
  7861. if ${lt_cv_aix_libpath_+:} false; then :
  7862. $as_echo_n "(cached) " >&6
  7863. else
  7864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7865. /* end confdefs.h. */
  7866. int
  7867. main ()
  7868. {
  7869. ;
  7870. return 0;
  7871. }
  7872. _ACEOF
  7873. if ac_fn_c_try_link "$LINENO"; then :
  7874. lt_aix_libpath_sed='
  7875. /Import File Strings/,/^$/ {
  7876. /^0/ {
  7877. s/^0 *\([^ ]*\) *$/\1/
  7878. p
  7879. }
  7880. }'
  7881. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7882. # Check for a 64-bit object if we didn't find anything.
  7883. if test -z "$lt_cv_aix_libpath_"; then
  7884. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7885. fi
  7886. fi
  7887. rm -f core conftest.err conftest.$ac_objext \
  7888. conftest$ac_exeext conftest.$ac_ext
  7889. if test -z "$lt_cv_aix_libpath_"; then
  7890. lt_cv_aix_libpath_="/usr/lib:/lib"
  7891. fi
  7892. fi
  7893. aix_libpath=$lt_cv_aix_libpath_
  7894. fi
  7895. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7896. # Warning - without using the other run time loading flags,
  7897. # -berok will link without error, but may produce a broken library.
  7898. no_undefined_flag=' ${wl}-bernotok'
  7899. allow_undefined_flag=' ${wl}-berok'
  7900. if test "$with_gnu_ld" = yes; then
  7901. # We only use this code for GNU lds that support --whole-archive.
  7902. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7903. else
  7904. # Exported symbols can be pulled into shared objects from archives
  7905. whole_archive_flag_spec='$convenience'
  7906. fi
  7907. archive_cmds_need_lc=yes
  7908. # This is similar to how AIX traditionally builds its shared libraries.
  7909. 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'
  7910. fi
  7911. fi
  7912. ;;
  7913. amigaos*)
  7914. case $host_cpu in
  7915. powerpc)
  7916. # see comment about AmigaOS4 .so support
  7917. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7918. archive_expsym_cmds=''
  7919. ;;
  7920. m68k)
  7921. 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)'
  7922. hardcode_libdir_flag_spec='-L$libdir'
  7923. hardcode_minus_L=yes
  7924. ;;
  7925. esac
  7926. ;;
  7927. bsdi[45]*)
  7928. export_dynamic_flag_spec=-rdynamic
  7929. ;;
  7930. cygwin* | mingw* | pw32* | cegcc*)
  7931. # When not using gcc, we currently assume that we are using
  7932. # Microsoft Visual C++.
  7933. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7934. # no search path for DLLs.
  7935. case $cc_basename in
  7936. cl*)
  7937. # Native MSVC
  7938. hardcode_libdir_flag_spec=' '
  7939. allow_undefined_flag=unsupported
  7940. always_export_symbols=yes
  7941. file_list_spec='@'
  7942. # Tell ltmain to make .lib files, not .a files.
  7943. libext=lib
  7944. # Tell ltmain to make .dll files, not .so files.
  7945. shrext_cmds=".dll"
  7946. # FIXME: Setting linknames here is a bad hack.
  7947. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7948. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7949. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7950. else
  7951. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7952. fi~
  7953. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7954. linknames='
  7955. # The linker will not automatically build a static lib if we build a DLL.
  7956. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7957. enable_shared_with_static_runtimes=yes
  7958. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7959. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7960. # Don't use ranlib
  7961. old_postinstall_cmds='chmod 644 $oldlib'
  7962. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7963. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7964. case $lt_outputfile in
  7965. *.exe|*.EXE) ;;
  7966. *)
  7967. lt_outputfile="$lt_outputfile.exe"
  7968. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7969. ;;
  7970. esac~
  7971. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7972. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7973. $RM "$lt_outputfile.manifest";
  7974. fi'
  7975. ;;
  7976. *)
  7977. # Assume MSVC wrapper
  7978. hardcode_libdir_flag_spec=' '
  7979. allow_undefined_flag=unsupported
  7980. # Tell ltmain to make .lib files, not .a files.
  7981. libext=lib
  7982. # Tell ltmain to make .dll files, not .so files.
  7983. shrext_cmds=".dll"
  7984. # FIXME: Setting linknames here is a bad hack.
  7985. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7986. # The linker will automatically build a .lib file if we build a DLL.
  7987. old_archive_from_new_cmds='true'
  7988. # FIXME: Should let the user specify the lib program.
  7989. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7990. enable_shared_with_static_runtimes=yes
  7991. ;;
  7992. esac
  7993. ;;
  7994. darwin* | rhapsody*)
  7995. archive_cmds_need_lc=no
  7996. hardcode_direct=no
  7997. hardcode_automatic=yes
  7998. hardcode_shlibpath_var=unsupported
  7999. if test "$lt_cv_ld_force_load" = "yes"; then
  8000. 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\"`'
  8001. else
  8002. whole_archive_flag_spec=''
  8003. fi
  8004. link_all_deplibs=yes
  8005. allow_undefined_flag="$_lt_dar_allow_undefined"
  8006. case $cc_basename in
  8007. ifort*) _lt_dar_can_shared=yes ;;
  8008. *) _lt_dar_can_shared=$GCC ;;
  8009. esac
  8010. if test "$_lt_dar_can_shared" = "yes"; then
  8011. output_verbose_link_cmd=func_echo_all
  8012. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8013. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8014. 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}"
  8015. 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}"
  8016. else
  8017. ld_shlibs=no
  8018. fi
  8019. ;;
  8020. dgux*)
  8021. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8022. hardcode_libdir_flag_spec='-L$libdir'
  8023. hardcode_shlibpath_var=no
  8024. ;;
  8025. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8026. # support. Future versions do this automatically, but an explicit c++rt0.o
  8027. # does not break anything, and helps significantly (at the cost of a little
  8028. # extra space).
  8029. freebsd2.2*)
  8030. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8031. hardcode_libdir_flag_spec='-R$libdir'
  8032. hardcode_direct=yes
  8033. hardcode_shlibpath_var=no
  8034. ;;
  8035. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8036. freebsd2.*)
  8037. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8038. hardcode_direct=yes
  8039. hardcode_minus_L=yes
  8040. hardcode_shlibpath_var=no
  8041. ;;
  8042. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8043. freebsd* | dragonfly*)
  8044. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8045. hardcode_libdir_flag_spec='-R$libdir'
  8046. hardcode_direct=yes
  8047. hardcode_shlibpath_var=no
  8048. ;;
  8049. hpux9*)
  8050. if test "$GCC" = yes; then
  8051. 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'
  8052. else
  8053. 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'
  8054. fi
  8055. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8056. hardcode_libdir_separator=:
  8057. hardcode_direct=yes
  8058. # hardcode_minus_L: Not really in the search PATH,
  8059. # but as the default location of the library.
  8060. hardcode_minus_L=yes
  8061. export_dynamic_flag_spec='${wl}-E'
  8062. ;;
  8063. hpux10*)
  8064. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8065. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8066. else
  8067. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8068. fi
  8069. if test "$with_gnu_ld" = no; then
  8070. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8071. hardcode_libdir_separator=:
  8072. hardcode_direct=yes
  8073. hardcode_direct_absolute=yes
  8074. export_dynamic_flag_spec='${wl}-E'
  8075. # hardcode_minus_L: Not really in the search PATH,
  8076. # but as the default location of the library.
  8077. hardcode_minus_L=yes
  8078. fi
  8079. ;;
  8080. hpux11*)
  8081. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8082. case $host_cpu in
  8083. hppa*64*)
  8084. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8085. ;;
  8086. ia64*)
  8087. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8088. ;;
  8089. *)
  8090. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8091. ;;
  8092. esac
  8093. else
  8094. case $host_cpu in
  8095. hppa*64*)
  8096. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8097. ;;
  8098. ia64*)
  8099. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8100. ;;
  8101. *)
  8102. # Older versions of the 11.00 compiler do not understand -b yet
  8103. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8105. $as_echo_n "checking if $CC understands -b... " >&6; }
  8106. if ${lt_cv_prog_compiler__b+:} false; then :
  8107. $as_echo_n "(cached) " >&6
  8108. else
  8109. lt_cv_prog_compiler__b=no
  8110. save_LDFLAGS="$LDFLAGS"
  8111. LDFLAGS="$LDFLAGS -b"
  8112. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8113. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8114. # The linker can only warn and ignore the option if not recognized
  8115. # So say no if there are warnings
  8116. if test -s conftest.err; then
  8117. # Append any errors to the config.log.
  8118. cat conftest.err 1>&5
  8119. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8120. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8121. if diff conftest.exp conftest.er2 >/dev/null; then
  8122. lt_cv_prog_compiler__b=yes
  8123. fi
  8124. else
  8125. lt_cv_prog_compiler__b=yes
  8126. fi
  8127. fi
  8128. $RM -r conftest*
  8129. LDFLAGS="$save_LDFLAGS"
  8130. fi
  8131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8132. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8133. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8134. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8135. else
  8136. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8137. fi
  8138. ;;
  8139. esac
  8140. fi
  8141. if test "$with_gnu_ld" = no; then
  8142. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8143. hardcode_libdir_separator=:
  8144. case $host_cpu in
  8145. hppa*64*|ia64*)
  8146. hardcode_direct=no
  8147. hardcode_shlibpath_var=no
  8148. ;;
  8149. *)
  8150. hardcode_direct=yes
  8151. hardcode_direct_absolute=yes
  8152. export_dynamic_flag_spec='${wl}-E'
  8153. # hardcode_minus_L: Not really in the search PATH,
  8154. # but as the default location of the library.
  8155. hardcode_minus_L=yes
  8156. ;;
  8157. esac
  8158. fi
  8159. ;;
  8160. irix5* | irix6* | nonstopux*)
  8161. if test "$GCC" = yes; then
  8162. 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'
  8163. # Try to use the -exported_symbol ld option, if it does not
  8164. # work, assume that -exports_file does not work either and
  8165. # implicitly export all symbols.
  8166. # This should be the same for all languages, so no per-tag cache variable.
  8167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8168. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8169. if ${lt_cv_irix_exported_symbol+:} false; then :
  8170. $as_echo_n "(cached) " >&6
  8171. else
  8172. save_LDFLAGS="$LDFLAGS"
  8173. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8175. /* end confdefs.h. */
  8176. int foo (void) { return 0; }
  8177. _ACEOF
  8178. if ac_fn_c_try_link "$LINENO"; then :
  8179. lt_cv_irix_exported_symbol=yes
  8180. else
  8181. lt_cv_irix_exported_symbol=no
  8182. fi
  8183. rm -f core conftest.err conftest.$ac_objext \
  8184. conftest$ac_exeext conftest.$ac_ext
  8185. LDFLAGS="$save_LDFLAGS"
  8186. fi
  8187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8188. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8189. if test "$lt_cv_irix_exported_symbol" = yes; then
  8190. 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'
  8191. fi
  8192. else
  8193. 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'
  8194. 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'
  8195. fi
  8196. archive_cmds_need_lc='no'
  8197. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8198. hardcode_libdir_separator=:
  8199. inherit_rpath=yes
  8200. link_all_deplibs=yes
  8201. ;;
  8202. netbsd*)
  8203. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8204. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8205. else
  8206. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8207. fi
  8208. hardcode_libdir_flag_spec='-R$libdir'
  8209. hardcode_direct=yes
  8210. hardcode_shlibpath_var=no
  8211. ;;
  8212. newsos6)
  8213. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8214. hardcode_direct=yes
  8215. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8216. hardcode_libdir_separator=:
  8217. hardcode_shlibpath_var=no
  8218. ;;
  8219. *nto* | *qnx*)
  8220. ;;
  8221. openbsd*)
  8222. if test -f /usr/libexec/ld.so; then
  8223. hardcode_direct=yes
  8224. hardcode_shlibpath_var=no
  8225. hardcode_direct_absolute=yes
  8226. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8227. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8228. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8229. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8230. export_dynamic_flag_spec='${wl}-E'
  8231. else
  8232. case $host_os in
  8233. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8234. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8235. hardcode_libdir_flag_spec='-R$libdir'
  8236. ;;
  8237. *)
  8238. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8239. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8240. ;;
  8241. esac
  8242. fi
  8243. else
  8244. ld_shlibs=no
  8245. fi
  8246. ;;
  8247. os2*)
  8248. hardcode_libdir_flag_spec='-L$libdir'
  8249. hardcode_minus_L=yes
  8250. allow_undefined_flag=unsupported
  8251. 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'
  8252. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8253. ;;
  8254. osf3*)
  8255. if test "$GCC" = yes; then
  8256. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8257. 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'
  8258. else
  8259. allow_undefined_flag=' -expect_unresolved \*'
  8260. 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'
  8261. fi
  8262. archive_cmds_need_lc='no'
  8263. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8264. hardcode_libdir_separator=:
  8265. ;;
  8266. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8267. if test "$GCC" = yes; then
  8268. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8269. 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'
  8270. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8271. else
  8272. allow_undefined_flag=' -expect_unresolved \*'
  8273. 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'
  8274. 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~
  8275. $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'
  8276. # Both c and cxx compiler support -rpath directly
  8277. hardcode_libdir_flag_spec='-rpath $libdir'
  8278. fi
  8279. archive_cmds_need_lc='no'
  8280. hardcode_libdir_separator=:
  8281. ;;
  8282. solaris*)
  8283. no_undefined_flag=' -z defs'
  8284. if test "$GCC" = yes; then
  8285. wlarc='${wl}'
  8286. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8287. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8288. $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'
  8289. else
  8290. case `$CC -V 2>&1` in
  8291. *"Compilers 5.0"*)
  8292. wlarc=''
  8293. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8294. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8295. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8296. ;;
  8297. *)
  8298. wlarc='${wl}'
  8299. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8300. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8301. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8302. ;;
  8303. esac
  8304. fi
  8305. hardcode_libdir_flag_spec='-R$libdir'
  8306. hardcode_shlibpath_var=no
  8307. case $host_os in
  8308. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8309. *)
  8310. # The compiler driver will combine and reorder linker options,
  8311. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8312. # but is careful enough not to reorder.
  8313. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8314. if test "$GCC" = yes; then
  8315. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8316. else
  8317. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8318. fi
  8319. ;;
  8320. esac
  8321. link_all_deplibs=yes
  8322. ;;
  8323. sunos4*)
  8324. if test "x$host_vendor" = xsequent; then
  8325. # Use $CC to link under sequent, because it throws in some extra .o
  8326. # files that make .init and .fini sections work.
  8327. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8328. else
  8329. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8330. fi
  8331. hardcode_libdir_flag_spec='-L$libdir'
  8332. hardcode_direct=yes
  8333. hardcode_minus_L=yes
  8334. hardcode_shlibpath_var=no
  8335. ;;
  8336. sysv4)
  8337. case $host_vendor in
  8338. sni)
  8339. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8340. hardcode_direct=yes # is this really true???
  8341. ;;
  8342. siemens)
  8343. ## LD is ld it makes a PLAMLIB
  8344. ## CC just makes a GrossModule.
  8345. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8346. reload_cmds='$CC -r -o $output$reload_objs'
  8347. hardcode_direct=no
  8348. ;;
  8349. motorola)
  8350. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8351. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8352. ;;
  8353. esac
  8354. runpath_var='LD_RUN_PATH'
  8355. hardcode_shlibpath_var=no
  8356. ;;
  8357. sysv4.3*)
  8358. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8359. hardcode_shlibpath_var=no
  8360. export_dynamic_flag_spec='-Bexport'
  8361. ;;
  8362. sysv4*MP*)
  8363. if test -d /usr/nec; then
  8364. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8365. hardcode_shlibpath_var=no
  8366. runpath_var=LD_RUN_PATH
  8367. hardcode_runpath_var=yes
  8368. ld_shlibs=yes
  8369. fi
  8370. ;;
  8371. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8372. no_undefined_flag='${wl}-z,text'
  8373. archive_cmds_need_lc=no
  8374. hardcode_shlibpath_var=no
  8375. runpath_var='LD_RUN_PATH'
  8376. if test "$GCC" = yes; then
  8377. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8378. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8379. else
  8380. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8381. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8382. fi
  8383. ;;
  8384. sysv5* | sco3.2v5* | sco5v6*)
  8385. # Note: We can NOT use -z defs as we might desire, because we do not
  8386. # link with -lc, and that would cause any symbols used from libc to
  8387. # always be unresolved, which means just about no library would
  8388. # ever link correctly. If we're not using GNU ld we use -z text
  8389. # though, which does catch some bad symbols but isn't as heavy-handed
  8390. # as -z defs.
  8391. no_undefined_flag='${wl}-z,text'
  8392. allow_undefined_flag='${wl}-z,nodefs'
  8393. archive_cmds_need_lc=no
  8394. hardcode_shlibpath_var=no
  8395. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8396. hardcode_libdir_separator=':'
  8397. link_all_deplibs=yes
  8398. export_dynamic_flag_spec='${wl}-Bexport'
  8399. runpath_var='LD_RUN_PATH'
  8400. if test "$GCC" = yes; then
  8401. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8402. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8403. else
  8404. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8405. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8406. fi
  8407. ;;
  8408. uts4*)
  8409. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8410. hardcode_libdir_flag_spec='-L$libdir'
  8411. hardcode_shlibpath_var=no
  8412. ;;
  8413. *)
  8414. ld_shlibs=no
  8415. ;;
  8416. esac
  8417. if test x$host_vendor = xsni; then
  8418. case $host in
  8419. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8420. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8421. ;;
  8422. esac
  8423. fi
  8424. fi
  8425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8426. $as_echo "$ld_shlibs" >&6; }
  8427. test "$ld_shlibs" = no && can_build_shared=no
  8428. with_gnu_ld=$with_gnu_ld
  8429. #
  8430. # Do we need to explicitly link libc?
  8431. #
  8432. case "x$archive_cmds_need_lc" in
  8433. x|xyes)
  8434. # Assume -lc should be added
  8435. archive_cmds_need_lc=yes
  8436. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8437. case $archive_cmds in
  8438. *'~'*)
  8439. # FIXME: we may have to deal with multi-command sequences.
  8440. ;;
  8441. '$CC '*)
  8442. # Test whether the compiler implicitly links with -lc since on some
  8443. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8444. # to ld, don't add -lc before -lgcc.
  8445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8446. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8447. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8448. $as_echo_n "(cached) " >&6
  8449. else
  8450. $RM conftest*
  8451. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8452. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8453. (eval $ac_compile) 2>&5
  8454. ac_status=$?
  8455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8456. test $ac_status = 0; } 2>conftest.err; then
  8457. soname=conftest
  8458. lib=conftest
  8459. libobjs=conftest.$ac_objext
  8460. deplibs=
  8461. wl=$lt_prog_compiler_wl
  8462. pic_flag=$lt_prog_compiler_pic
  8463. compiler_flags=-v
  8464. linker_flags=-v
  8465. verstring=
  8466. output_objdir=.
  8467. libname=conftest
  8468. lt_save_allow_undefined_flag=$allow_undefined_flag
  8469. allow_undefined_flag=
  8470. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8471. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8472. ac_status=$?
  8473. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8474. test $ac_status = 0; }
  8475. then
  8476. lt_cv_archive_cmds_need_lc=no
  8477. else
  8478. lt_cv_archive_cmds_need_lc=yes
  8479. fi
  8480. allow_undefined_flag=$lt_save_allow_undefined_flag
  8481. else
  8482. cat conftest.err 1>&5
  8483. fi
  8484. $RM conftest*
  8485. fi
  8486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8487. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8488. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8489. ;;
  8490. esac
  8491. fi
  8492. ;;
  8493. esac
  8494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8495. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8496. if test "$GCC" = yes; then
  8497. case $host_os in
  8498. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8499. *) lt_awk_arg="/^libraries:/" ;;
  8500. esac
  8501. case $host_os in
  8502. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8503. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8504. esac
  8505. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8506. case $lt_search_path_spec in
  8507. *\;*)
  8508. # if the path contains ";" then we assume it to be the separator
  8509. # otherwise default to the standard path separator (i.e. ":") - it is
  8510. # assumed that no part of a normal pathname contains ";" but that should
  8511. # okay in the real world where ";" in dirpaths is itself problematic.
  8512. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8513. ;;
  8514. *)
  8515. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8516. ;;
  8517. esac
  8518. # Ok, now we have the path, separated by spaces, we can step through it
  8519. # and add multilib dir if necessary.
  8520. lt_tmp_lt_search_path_spec=
  8521. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8522. for lt_sys_path in $lt_search_path_spec; do
  8523. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8524. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8525. else
  8526. test -d "$lt_sys_path" && \
  8527. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8528. fi
  8529. done
  8530. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8531. BEGIN {RS=" "; FS="/|\n";} {
  8532. lt_foo="";
  8533. lt_count=0;
  8534. for (lt_i = NF; lt_i > 0; lt_i--) {
  8535. if ($lt_i != "" && $lt_i != ".") {
  8536. if ($lt_i == "..") {
  8537. lt_count++;
  8538. } else {
  8539. if (lt_count == 0) {
  8540. lt_foo="/" $lt_i lt_foo;
  8541. } else {
  8542. lt_count--;
  8543. }
  8544. }
  8545. }
  8546. }
  8547. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8548. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8549. }'`
  8550. # AWK program above erroneously prepends '/' to C:/dos/paths
  8551. # for these hosts.
  8552. case $host_os in
  8553. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8554. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8555. esac
  8556. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8557. else
  8558. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8559. fi
  8560. library_names_spec=
  8561. libname_spec='lib$name'
  8562. soname_spec=
  8563. shrext_cmds=".so"
  8564. postinstall_cmds=
  8565. postuninstall_cmds=
  8566. finish_cmds=
  8567. finish_eval=
  8568. shlibpath_var=
  8569. shlibpath_overrides_runpath=unknown
  8570. version_type=none
  8571. dynamic_linker="$host_os ld.so"
  8572. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8573. need_lib_prefix=unknown
  8574. hardcode_into_libs=no
  8575. # when you set need_version to no, make sure it does not cause -set_version
  8576. # flags to be left without arguments
  8577. need_version=unknown
  8578. case $host_os in
  8579. aix3*)
  8580. version_type=linux # correct to gnu/linux during the next big refactor
  8581. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8582. shlibpath_var=LIBPATH
  8583. # AIX 3 has no versioning support, so we append a major version to the name.
  8584. soname_spec='${libname}${release}${shared_ext}$major'
  8585. ;;
  8586. aix[4-9]*)
  8587. version_type=linux # correct to gnu/linux during the next big refactor
  8588. need_lib_prefix=no
  8589. need_version=no
  8590. hardcode_into_libs=yes
  8591. if test "$host_cpu" = ia64; then
  8592. # AIX 5 supports IA64
  8593. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8594. shlibpath_var=LD_LIBRARY_PATH
  8595. else
  8596. # With GCC up to 2.95.x, collect2 would create an import file
  8597. # for dependence libraries. The import file would start with
  8598. # the line `#! .'. This would cause the generated library to
  8599. # depend on `.', always an invalid library. This was fixed in
  8600. # development snapshots of GCC prior to 3.0.
  8601. case $host_os in
  8602. aix4 | aix4.[01] | aix4.[01].*)
  8603. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8604. echo ' yes '
  8605. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8606. :
  8607. else
  8608. can_build_shared=no
  8609. fi
  8610. ;;
  8611. esac
  8612. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8613. # soname into executable. Probably we can add versioning support to
  8614. # collect2, so additional links can be useful in future.
  8615. if test "$aix_use_runtimelinking" = yes; then
  8616. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8617. # instead of lib<name>.a to let people know that these are not
  8618. # typical AIX shared libraries.
  8619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8620. else
  8621. # We preserve .a as extension for shared libraries through AIX4.2
  8622. # and later when we are not doing run time linking.
  8623. library_names_spec='${libname}${release}.a $libname.a'
  8624. soname_spec='${libname}${release}${shared_ext}$major'
  8625. fi
  8626. shlibpath_var=LIBPATH
  8627. fi
  8628. ;;
  8629. amigaos*)
  8630. case $host_cpu in
  8631. powerpc)
  8632. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8633. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8634. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8635. ;;
  8636. m68k)
  8637. library_names_spec='$libname.ixlibrary $libname.a'
  8638. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8639. 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'
  8640. ;;
  8641. esac
  8642. ;;
  8643. beos*)
  8644. library_names_spec='${libname}${shared_ext}'
  8645. dynamic_linker="$host_os ld.so"
  8646. shlibpath_var=LIBRARY_PATH
  8647. ;;
  8648. bsdi[45]*)
  8649. version_type=linux # correct to gnu/linux during the next big refactor
  8650. need_version=no
  8651. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8652. soname_spec='${libname}${release}${shared_ext}$major'
  8653. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8654. shlibpath_var=LD_LIBRARY_PATH
  8655. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8656. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8657. # the default ld.so.conf also contains /usr/contrib/lib and
  8658. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8659. # libtool to hard-code these into programs
  8660. ;;
  8661. cygwin* | mingw* | pw32* | cegcc*)
  8662. version_type=windows
  8663. shrext_cmds=".dll"
  8664. need_version=no
  8665. need_lib_prefix=no
  8666. case $GCC,$cc_basename in
  8667. yes,*)
  8668. # gcc
  8669. library_names_spec='$libname.dll.a'
  8670. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8671. postinstall_cmds='base_file=`basename \${file}`~
  8672. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8673. dldir=$destdir/`dirname \$dlpath`~
  8674. test -d \$dldir || mkdir -p \$dldir~
  8675. $install_prog $dir/$dlname \$dldir/$dlname~
  8676. chmod a+x \$dldir/$dlname~
  8677. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8678. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8679. fi'
  8680. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8681. dlpath=$dir/\$dldll~
  8682. $RM \$dlpath'
  8683. shlibpath_overrides_runpath=yes
  8684. case $host_os in
  8685. cygwin*)
  8686. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8687. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8688. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8689. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8690. ;;
  8691. mingw* | cegcc*)
  8692. # MinGW DLLs use traditional 'lib' prefix
  8693. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8694. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8695. ;;
  8696. pw32*)
  8697. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8698. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8699. ;;
  8700. esac
  8701. dynamic_linker='Win32 ld.exe'
  8702. ;;
  8703. *,cl*)
  8704. # Native MSVC
  8705. libname_spec='$name'
  8706. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8707. library_names_spec='${libname}.dll.lib'
  8708. case $build_os in
  8709. mingw*)
  8710. sys_lib_search_path_spec=
  8711. lt_save_ifs=$IFS
  8712. IFS=';'
  8713. for lt_path in $LIB
  8714. do
  8715. IFS=$lt_save_ifs
  8716. # Let DOS variable expansion print the short 8.3 style file name.
  8717. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8718. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8719. done
  8720. IFS=$lt_save_ifs
  8721. # Convert to MSYS style.
  8722. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8723. ;;
  8724. cygwin*)
  8725. # Convert to unix form, then to dos form, then back to unix form
  8726. # but this time dos style (no spaces!) so that the unix form looks
  8727. # like /cygdrive/c/PROGRA~1:/cygdr...
  8728. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8729. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8730. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8731. ;;
  8732. *)
  8733. sys_lib_search_path_spec="$LIB"
  8734. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8735. # It is most probably a Windows format PATH.
  8736. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8737. else
  8738. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8739. fi
  8740. # FIXME: find the short name or the path components, as spaces are
  8741. # common. (e.g. "Program Files" -> "PROGRA~1")
  8742. ;;
  8743. esac
  8744. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8745. postinstall_cmds='base_file=`basename \${file}`~
  8746. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8747. dldir=$destdir/`dirname \$dlpath`~
  8748. test -d \$dldir || mkdir -p \$dldir~
  8749. $install_prog $dir/$dlname \$dldir/$dlname'
  8750. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8751. dlpath=$dir/\$dldll~
  8752. $RM \$dlpath'
  8753. shlibpath_overrides_runpath=yes
  8754. dynamic_linker='Win32 link.exe'
  8755. ;;
  8756. *)
  8757. # Assume MSVC wrapper
  8758. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8759. dynamic_linker='Win32 ld.exe'
  8760. ;;
  8761. esac
  8762. # FIXME: first we should search . and the directory the executable is in
  8763. shlibpath_var=PATH
  8764. ;;
  8765. darwin* | rhapsody*)
  8766. dynamic_linker="$host_os dyld"
  8767. version_type=darwin
  8768. need_lib_prefix=no
  8769. need_version=no
  8770. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8771. soname_spec='${libname}${release}${major}$shared_ext'
  8772. shlibpath_overrides_runpath=yes
  8773. shlibpath_var=DYLD_LIBRARY_PATH
  8774. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8775. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8776. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8777. ;;
  8778. dgux*)
  8779. version_type=linux # correct to gnu/linux during the next big refactor
  8780. need_lib_prefix=no
  8781. need_version=no
  8782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8783. soname_spec='${libname}${release}${shared_ext}$major'
  8784. shlibpath_var=LD_LIBRARY_PATH
  8785. ;;
  8786. freebsd* | dragonfly*)
  8787. # DragonFly does not have aout. When/if they implement a new
  8788. # versioning mechanism, adjust this.
  8789. if test -x /usr/bin/objformat; then
  8790. objformat=`/usr/bin/objformat`
  8791. else
  8792. case $host_os in
  8793. freebsd[23].*) objformat=aout ;;
  8794. *) objformat=elf ;;
  8795. esac
  8796. fi
  8797. version_type=freebsd-$objformat
  8798. case $version_type in
  8799. freebsd-elf*)
  8800. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8801. need_version=no
  8802. need_lib_prefix=no
  8803. ;;
  8804. freebsd-*)
  8805. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8806. need_version=yes
  8807. ;;
  8808. esac
  8809. shlibpath_var=LD_LIBRARY_PATH
  8810. case $host_os in
  8811. freebsd2.*)
  8812. shlibpath_overrides_runpath=yes
  8813. ;;
  8814. freebsd3.[01]* | freebsdelf3.[01]*)
  8815. shlibpath_overrides_runpath=yes
  8816. hardcode_into_libs=yes
  8817. ;;
  8818. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8819. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8820. shlibpath_overrides_runpath=no
  8821. hardcode_into_libs=yes
  8822. ;;
  8823. *) # from 4.6 on, and DragonFly
  8824. shlibpath_overrides_runpath=yes
  8825. hardcode_into_libs=yes
  8826. ;;
  8827. esac
  8828. ;;
  8829. gnu*)
  8830. version_type=linux # correct to gnu/linux during the next big refactor
  8831. need_lib_prefix=no
  8832. need_version=no
  8833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8834. soname_spec='${libname}${release}${shared_ext}$major'
  8835. shlibpath_var=LD_LIBRARY_PATH
  8836. shlibpath_overrides_runpath=no
  8837. hardcode_into_libs=yes
  8838. ;;
  8839. haiku*)
  8840. version_type=linux # correct to gnu/linux during the next big refactor
  8841. need_lib_prefix=no
  8842. need_version=no
  8843. dynamic_linker="$host_os runtime_loader"
  8844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8845. soname_spec='${libname}${release}${shared_ext}$major'
  8846. shlibpath_var=LIBRARY_PATH
  8847. shlibpath_overrides_runpath=yes
  8848. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8849. hardcode_into_libs=yes
  8850. ;;
  8851. hpux9* | hpux10* | hpux11*)
  8852. # Give a soname corresponding to the major version so that dld.sl refuses to
  8853. # link against other versions.
  8854. version_type=sunos
  8855. need_lib_prefix=no
  8856. need_version=no
  8857. case $host_cpu in
  8858. ia64*)
  8859. shrext_cmds='.so'
  8860. hardcode_into_libs=yes
  8861. dynamic_linker="$host_os dld.so"
  8862. shlibpath_var=LD_LIBRARY_PATH
  8863. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8865. soname_spec='${libname}${release}${shared_ext}$major'
  8866. if test "X$HPUX_IA64_MODE" = X32; then
  8867. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8868. else
  8869. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8870. fi
  8871. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8872. ;;
  8873. hppa*64*)
  8874. shrext_cmds='.sl'
  8875. hardcode_into_libs=yes
  8876. dynamic_linker="$host_os dld.sl"
  8877. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8878. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8880. soname_spec='${libname}${release}${shared_ext}$major'
  8881. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8882. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8883. ;;
  8884. *)
  8885. shrext_cmds='.sl'
  8886. dynamic_linker="$host_os dld.sl"
  8887. shlibpath_var=SHLIB_PATH
  8888. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8889. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8890. soname_spec='${libname}${release}${shared_ext}$major'
  8891. ;;
  8892. esac
  8893. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8894. postinstall_cmds='chmod 555 $lib'
  8895. # or fails outright, so override atomically:
  8896. install_override_mode=555
  8897. ;;
  8898. interix[3-9]*)
  8899. version_type=linux # correct to gnu/linux during the next big refactor
  8900. need_lib_prefix=no
  8901. need_version=no
  8902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8903. soname_spec='${libname}${release}${shared_ext}$major'
  8904. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8905. shlibpath_var=LD_LIBRARY_PATH
  8906. shlibpath_overrides_runpath=no
  8907. hardcode_into_libs=yes
  8908. ;;
  8909. irix5* | irix6* | nonstopux*)
  8910. case $host_os in
  8911. nonstopux*) version_type=nonstopux ;;
  8912. *)
  8913. if test "$lt_cv_prog_gnu_ld" = yes; then
  8914. version_type=linux # correct to gnu/linux during the next big refactor
  8915. else
  8916. version_type=irix
  8917. fi ;;
  8918. esac
  8919. need_lib_prefix=no
  8920. need_version=no
  8921. soname_spec='${libname}${release}${shared_ext}$major'
  8922. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8923. case $host_os in
  8924. irix5* | nonstopux*)
  8925. libsuff= shlibsuff=
  8926. ;;
  8927. *)
  8928. case $LD in # libtool.m4 will add one of these switches to LD
  8929. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8930. libsuff= shlibsuff= libmagic=32-bit;;
  8931. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8932. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8933. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8934. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8935. *) libsuff= shlibsuff= libmagic=never-match;;
  8936. esac
  8937. ;;
  8938. esac
  8939. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8940. shlibpath_overrides_runpath=no
  8941. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8942. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8943. hardcode_into_libs=yes
  8944. ;;
  8945. # No shared lib support for Linux oldld, aout, or coff.
  8946. linux*oldld* | linux*aout* | linux*coff*)
  8947. dynamic_linker=no
  8948. ;;
  8949. # This must be glibc/ELF.
  8950. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8951. version_type=linux # correct to gnu/linux during the next big refactor
  8952. need_lib_prefix=no
  8953. need_version=no
  8954. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8955. soname_spec='${libname}${release}${shared_ext}$major'
  8956. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8957. shlibpath_var=LD_LIBRARY_PATH
  8958. shlibpath_overrides_runpath=no
  8959. # Some binutils ld are patched to set DT_RUNPATH
  8960. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8961. $as_echo_n "(cached) " >&6
  8962. else
  8963. lt_cv_shlibpath_overrides_runpath=no
  8964. save_LDFLAGS=$LDFLAGS
  8965. save_libdir=$libdir
  8966. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8967. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8969. /* end confdefs.h. */
  8970. int
  8971. main ()
  8972. {
  8973. ;
  8974. return 0;
  8975. }
  8976. _ACEOF
  8977. if ac_fn_c_try_link "$LINENO"; then :
  8978. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8979. lt_cv_shlibpath_overrides_runpath=yes
  8980. fi
  8981. fi
  8982. rm -f core conftest.err conftest.$ac_objext \
  8983. conftest$ac_exeext conftest.$ac_ext
  8984. LDFLAGS=$save_LDFLAGS
  8985. libdir=$save_libdir
  8986. fi
  8987. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8988. # This implies no fast_install, which is unacceptable.
  8989. # Some rework will be needed to allow for fast_install
  8990. # before this can be enabled.
  8991. hardcode_into_libs=yes
  8992. # Append ld.so.conf contents to the search path
  8993. if test -f /etc/ld.so.conf; then
  8994. 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' ' '`
  8995. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8996. fi
  8997. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8998. # powerpc, because MkLinux only supported shared libraries with the
  8999. # GNU dynamic linker. Since this was broken with cross compilers,
  9000. # most powerpc-linux boxes support dynamic linking these days and
  9001. # people can always --disable-shared, the test was removed, and we
  9002. # assume the GNU/Linux dynamic linker is in use.
  9003. dynamic_linker='GNU/Linux ld.so'
  9004. ;;
  9005. netbsd*)
  9006. version_type=sunos
  9007. need_lib_prefix=no
  9008. need_version=no
  9009. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9011. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9012. dynamic_linker='NetBSD (a.out) ld.so'
  9013. else
  9014. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9015. soname_spec='${libname}${release}${shared_ext}$major'
  9016. dynamic_linker='NetBSD ld.elf_so'
  9017. fi
  9018. shlibpath_var=LD_LIBRARY_PATH
  9019. shlibpath_overrides_runpath=yes
  9020. hardcode_into_libs=yes
  9021. ;;
  9022. newsos6)
  9023. version_type=linux # correct to gnu/linux during the next big refactor
  9024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9025. shlibpath_var=LD_LIBRARY_PATH
  9026. shlibpath_overrides_runpath=yes
  9027. ;;
  9028. *nto* | *qnx*)
  9029. version_type=qnx
  9030. need_lib_prefix=no
  9031. need_version=no
  9032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9033. soname_spec='${libname}${release}${shared_ext}$major'
  9034. shlibpath_var=LD_LIBRARY_PATH
  9035. shlibpath_overrides_runpath=no
  9036. hardcode_into_libs=yes
  9037. dynamic_linker='ldqnx.so'
  9038. ;;
  9039. openbsd*)
  9040. version_type=sunos
  9041. sys_lib_dlsearch_path_spec="/usr/lib"
  9042. need_lib_prefix=no
  9043. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9044. case $host_os in
  9045. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9046. *) need_version=no ;;
  9047. esac
  9048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9049. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9050. shlibpath_var=LD_LIBRARY_PATH
  9051. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9052. case $host_os in
  9053. openbsd2.[89] | openbsd2.[89].*)
  9054. shlibpath_overrides_runpath=no
  9055. ;;
  9056. *)
  9057. shlibpath_overrides_runpath=yes
  9058. ;;
  9059. esac
  9060. else
  9061. shlibpath_overrides_runpath=yes
  9062. fi
  9063. ;;
  9064. os2*)
  9065. libname_spec='$name'
  9066. shrext_cmds=".dll"
  9067. need_lib_prefix=no
  9068. library_names_spec='$libname${shared_ext} $libname.a'
  9069. dynamic_linker='OS/2 ld.exe'
  9070. shlibpath_var=LIBPATH
  9071. ;;
  9072. osf3* | osf4* | osf5*)
  9073. version_type=osf
  9074. need_lib_prefix=no
  9075. need_version=no
  9076. soname_spec='${libname}${release}${shared_ext}$major'
  9077. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9078. shlibpath_var=LD_LIBRARY_PATH
  9079. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9080. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9081. ;;
  9082. rdos*)
  9083. dynamic_linker=no
  9084. ;;
  9085. solaris*)
  9086. version_type=linux # correct to gnu/linux during the next big refactor
  9087. need_lib_prefix=no
  9088. need_version=no
  9089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9090. soname_spec='${libname}${release}${shared_ext}$major'
  9091. shlibpath_var=LD_LIBRARY_PATH
  9092. shlibpath_overrides_runpath=yes
  9093. hardcode_into_libs=yes
  9094. # ldd complains unless libraries are executable
  9095. postinstall_cmds='chmod +x $lib'
  9096. ;;
  9097. sunos4*)
  9098. version_type=sunos
  9099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9100. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9101. shlibpath_var=LD_LIBRARY_PATH
  9102. shlibpath_overrides_runpath=yes
  9103. if test "$with_gnu_ld" = yes; then
  9104. need_lib_prefix=no
  9105. fi
  9106. need_version=yes
  9107. ;;
  9108. sysv4 | sysv4.3*)
  9109. version_type=linux # correct to gnu/linux during the next big refactor
  9110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9111. soname_spec='${libname}${release}${shared_ext}$major'
  9112. shlibpath_var=LD_LIBRARY_PATH
  9113. case $host_vendor in
  9114. sni)
  9115. shlibpath_overrides_runpath=no
  9116. need_lib_prefix=no
  9117. runpath_var=LD_RUN_PATH
  9118. ;;
  9119. siemens)
  9120. need_lib_prefix=no
  9121. ;;
  9122. motorola)
  9123. need_lib_prefix=no
  9124. need_version=no
  9125. shlibpath_overrides_runpath=no
  9126. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9127. ;;
  9128. esac
  9129. ;;
  9130. sysv4*MP*)
  9131. if test -d /usr/nec ;then
  9132. version_type=linux # correct to gnu/linux during the next big refactor
  9133. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9134. soname_spec='$libname${shared_ext}.$major'
  9135. shlibpath_var=LD_LIBRARY_PATH
  9136. fi
  9137. ;;
  9138. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9139. version_type=freebsd-elf
  9140. need_lib_prefix=no
  9141. need_version=no
  9142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9143. soname_spec='${libname}${release}${shared_ext}$major'
  9144. shlibpath_var=LD_LIBRARY_PATH
  9145. shlibpath_overrides_runpath=yes
  9146. hardcode_into_libs=yes
  9147. if test "$with_gnu_ld" = yes; then
  9148. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9149. else
  9150. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9151. case $host_os in
  9152. sco3.2v5*)
  9153. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9154. ;;
  9155. esac
  9156. fi
  9157. sys_lib_dlsearch_path_spec='/usr/lib'
  9158. ;;
  9159. tpf*)
  9160. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9161. version_type=linux # correct to gnu/linux during the next big refactor
  9162. need_lib_prefix=no
  9163. need_version=no
  9164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9165. shlibpath_var=LD_LIBRARY_PATH
  9166. shlibpath_overrides_runpath=no
  9167. hardcode_into_libs=yes
  9168. ;;
  9169. uts4*)
  9170. version_type=linux # correct to gnu/linux during the next big refactor
  9171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9172. soname_spec='${libname}${release}${shared_ext}$major'
  9173. shlibpath_var=LD_LIBRARY_PATH
  9174. ;;
  9175. *)
  9176. dynamic_linker=no
  9177. ;;
  9178. esac
  9179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9180. $as_echo "$dynamic_linker" >&6; }
  9181. test "$dynamic_linker" = no && can_build_shared=no
  9182. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9183. if test "$GCC" = yes; then
  9184. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9185. fi
  9186. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9187. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9188. fi
  9189. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9190. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9191. fi
  9192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9193. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9194. hardcode_action=
  9195. if test -n "$hardcode_libdir_flag_spec" ||
  9196. test -n "$runpath_var" ||
  9197. test "X$hardcode_automatic" = "Xyes" ; then
  9198. # We can hardcode non-existent directories.
  9199. if test "$hardcode_direct" != no &&
  9200. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9201. # have to relink, otherwise we might link with an installed library
  9202. # when we should be linking with a yet-to-be-installed one
  9203. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9204. test "$hardcode_minus_L" != no; then
  9205. # Linking always hardcodes the temporary library directory.
  9206. hardcode_action=relink
  9207. else
  9208. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9209. hardcode_action=immediate
  9210. fi
  9211. else
  9212. # We cannot hardcode anything, or else we can only hardcode existing
  9213. # directories.
  9214. hardcode_action=unsupported
  9215. fi
  9216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9217. $as_echo "$hardcode_action" >&6; }
  9218. if test "$hardcode_action" = relink ||
  9219. test "$inherit_rpath" = yes; then
  9220. # Fast installation is not supported
  9221. enable_fast_install=no
  9222. elif test "$shlibpath_overrides_runpath" = yes ||
  9223. test "$enable_shared" = no; then
  9224. # Fast installation is not necessary
  9225. enable_fast_install=needless
  9226. fi
  9227. if test "x$enable_dlopen" != xyes; then
  9228. enable_dlopen=unknown
  9229. enable_dlopen_self=unknown
  9230. enable_dlopen_self_static=unknown
  9231. else
  9232. lt_cv_dlopen=no
  9233. lt_cv_dlopen_libs=
  9234. case $host_os in
  9235. beos*)
  9236. lt_cv_dlopen="load_add_on"
  9237. lt_cv_dlopen_libs=
  9238. lt_cv_dlopen_self=yes
  9239. ;;
  9240. mingw* | pw32* | cegcc*)
  9241. lt_cv_dlopen="LoadLibrary"
  9242. lt_cv_dlopen_libs=
  9243. ;;
  9244. cygwin*)
  9245. lt_cv_dlopen="dlopen"
  9246. lt_cv_dlopen_libs=
  9247. ;;
  9248. darwin*)
  9249. # if libdl is installed we need to link against it
  9250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9251. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9252. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9253. $as_echo_n "(cached) " >&6
  9254. else
  9255. ac_check_lib_save_LIBS=$LIBS
  9256. LIBS="-ldl $LIBS"
  9257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9258. /* end confdefs.h. */
  9259. /* Override any GCC internal prototype to avoid an error.
  9260. Use char because int might match the return type of a GCC
  9261. builtin and then its argument prototype would still apply. */
  9262. #ifdef __cplusplus
  9263. extern "C"
  9264. #endif
  9265. char dlopen ();
  9266. int
  9267. main ()
  9268. {
  9269. return dlopen ();
  9270. ;
  9271. return 0;
  9272. }
  9273. _ACEOF
  9274. if ac_fn_c_try_link "$LINENO"; then :
  9275. ac_cv_lib_dl_dlopen=yes
  9276. else
  9277. ac_cv_lib_dl_dlopen=no
  9278. fi
  9279. rm -f core conftest.err conftest.$ac_objext \
  9280. conftest$ac_exeext conftest.$ac_ext
  9281. LIBS=$ac_check_lib_save_LIBS
  9282. fi
  9283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9284. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9285. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9286. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9287. else
  9288. lt_cv_dlopen="dyld"
  9289. lt_cv_dlopen_libs=
  9290. lt_cv_dlopen_self=yes
  9291. fi
  9292. ;;
  9293. *)
  9294. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9295. if test "x$ac_cv_func_shl_load" = xyes; then :
  9296. lt_cv_dlopen="shl_load"
  9297. else
  9298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9299. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9300. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9301. $as_echo_n "(cached) " >&6
  9302. else
  9303. ac_check_lib_save_LIBS=$LIBS
  9304. LIBS="-ldld $LIBS"
  9305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9306. /* end confdefs.h. */
  9307. /* Override any GCC internal prototype to avoid an error.
  9308. Use char because int might match the return type of a GCC
  9309. builtin and then its argument prototype would still apply. */
  9310. #ifdef __cplusplus
  9311. extern "C"
  9312. #endif
  9313. char shl_load ();
  9314. int
  9315. main ()
  9316. {
  9317. return shl_load ();
  9318. ;
  9319. return 0;
  9320. }
  9321. _ACEOF
  9322. if ac_fn_c_try_link "$LINENO"; then :
  9323. ac_cv_lib_dld_shl_load=yes
  9324. else
  9325. ac_cv_lib_dld_shl_load=no
  9326. fi
  9327. rm -f core conftest.err conftest.$ac_objext \
  9328. conftest$ac_exeext conftest.$ac_ext
  9329. LIBS=$ac_check_lib_save_LIBS
  9330. fi
  9331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9332. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9333. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9334. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9335. else
  9336. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9337. if test "x$ac_cv_func_dlopen" = xyes; then :
  9338. lt_cv_dlopen="dlopen"
  9339. else
  9340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9341. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9342. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9343. $as_echo_n "(cached) " >&6
  9344. else
  9345. ac_check_lib_save_LIBS=$LIBS
  9346. LIBS="-ldl $LIBS"
  9347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9348. /* end confdefs.h. */
  9349. /* Override any GCC internal prototype to avoid an error.
  9350. Use char because int might match the return type of a GCC
  9351. builtin and then its argument prototype would still apply. */
  9352. #ifdef __cplusplus
  9353. extern "C"
  9354. #endif
  9355. char dlopen ();
  9356. int
  9357. main ()
  9358. {
  9359. return dlopen ();
  9360. ;
  9361. return 0;
  9362. }
  9363. _ACEOF
  9364. if ac_fn_c_try_link "$LINENO"; then :
  9365. ac_cv_lib_dl_dlopen=yes
  9366. else
  9367. ac_cv_lib_dl_dlopen=no
  9368. fi
  9369. rm -f core conftest.err conftest.$ac_objext \
  9370. conftest$ac_exeext conftest.$ac_ext
  9371. LIBS=$ac_check_lib_save_LIBS
  9372. fi
  9373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9374. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9375. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9376. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9377. else
  9378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9379. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9380. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9381. $as_echo_n "(cached) " >&6
  9382. else
  9383. ac_check_lib_save_LIBS=$LIBS
  9384. LIBS="-lsvld $LIBS"
  9385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9386. /* end confdefs.h. */
  9387. /* Override any GCC internal prototype to avoid an error.
  9388. Use char because int might match the return type of a GCC
  9389. builtin and then its argument prototype would still apply. */
  9390. #ifdef __cplusplus
  9391. extern "C"
  9392. #endif
  9393. char dlopen ();
  9394. int
  9395. main ()
  9396. {
  9397. return dlopen ();
  9398. ;
  9399. return 0;
  9400. }
  9401. _ACEOF
  9402. if ac_fn_c_try_link "$LINENO"; then :
  9403. ac_cv_lib_svld_dlopen=yes
  9404. else
  9405. ac_cv_lib_svld_dlopen=no
  9406. fi
  9407. rm -f core conftest.err conftest.$ac_objext \
  9408. conftest$ac_exeext conftest.$ac_ext
  9409. LIBS=$ac_check_lib_save_LIBS
  9410. fi
  9411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9412. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9413. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9414. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9415. else
  9416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9417. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9418. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9419. $as_echo_n "(cached) " >&6
  9420. else
  9421. ac_check_lib_save_LIBS=$LIBS
  9422. LIBS="-ldld $LIBS"
  9423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9424. /* end confdefs.h. */
  9425. /* Override any GCC internal prototype to avoid an error.
  9426. Use char because int might match the return type of a GCC
  9427. builtin and then its argument prototype would still apply. */
  9428. #ifdef __cplusplus
  9429. extern "C"
  9430. #endif
  9431. char dld_link ();
  9432. int
  9433. main ()
  9434. {
  9435. return dld_link ();
  9436. ;
  9437. return 0;
  9438. }
  9439. _ACEOF
  9440. if ac_fn_c_try_link "$LINENO"; then :
  9441. ac_cv_lib_dld_dld_link=yes
  9442. else
  9443. ac_cv_lib_dld_dld_link=no
  9444. fi
  9445. rm -f core conftest.err conftest.$ac_objext \
  9446. conftest$ac_exeext conftest.$ac_ext
  9447. LIBS=$ac_check_lib_save_LIBS
  9448. fi
  9449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9450. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9451. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9452. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9453. fi
  9454. fi
  9455. fi
  9456. fi
  9457. fi
  9458. fi
  9459. ;;
  9460. esac
  9461. if test "x$lt_cv_dlopen" != xno; then
  9462. enable_dlopen=yes
  9463. else
  9464. enable_dlopen=no
  9465. fi
  9466. case $lt_cv_dlopen in
  9467. dlopen)
  9468. save_CPPFLAGS="$CPPFLAGS"
  9469. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9470. save_LDFLAGS="$LDFLAGS"
  9471. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9472. save_LIBS="$LIBS"
  9473. LIBS="$lt_cv_dlopen_libs $LIBS"
  9474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9475. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9476. if ${lt_cv_dlopen_self+:} false; then :
  9477. $as_echo_n "(cached) " >&6
  9478. else
  9479. if test "$cross_compiling" = yes; then :
  9480. lt_cv_dlopen_self=cross
  9481. else
  9482. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9483. lt_status=$lt_dlunknown
  9484. cat > conftest.$ac_ext <<_LT_EOF
  9485. #line $LINENO "configure"
  9486. #include "confdefs.h"
  9487. #if HAVE_DLFCN_H
  9488. #include <dlfcn.h>
  9489. #endif
  9490. #include <stdio.h>
  9491. #ifdef RTLD_GLOBAL
  9492. # define LT_DLGLOBAL RTLD_GLOBAL
  9493. #else
  9494. # ifdef DL_GLOBAL
  9495. # define LT_DLGLOBAL DL_GLOBAL
  9496. # else
  9497. # define LT_DLGLOBAL 0
  9498. # endif
  9499. #endif
  9500. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9501. find out it does not work in some platform. */
  9502. #ifndef LT_DLLAZY_OR_NOW
  9503. # ifdef RTLD_LAZY
  9504. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9505. # else
  9506. # ifdef DL_LAZY
  9507. # define LT_DLLAZY_OR_NOW DL_LAZY
  9508. # else
  9509. # ifdef RTLD_NOW
  9510. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9511. # else
  9512. # ifdef DL_NOW
  9513. # define LT_DLLAZY_OR_NOW DL_NOW
  9514. # else
  9515. # define LT_DLLAZY_OR_NOW 0
  9516. # endif
  9517. # endif
  9518. # endif
  9519. # endif
  9520. #endif
  9521. /* When -fvisbility=hidden is used, assume the code has been annotated
  9522. correspondingly for the symbols needed. */
  9523. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9524. int fnord () __attribute__((visibility("default")));
  9525. #endif
  9526. int fnord () { return 42; }
  9527. int main ()
  9528. {
  9529. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9530. int status = $lt_dlunknown;
  9531. if (self)
  9532. {
  9533. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9534. else
  9535. {
  9536. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9537. else puts (dlerror ());
  9538. }
  9539. /* dlclose (self); */
  9540. }
  9541. else
  9542. puts (dlerror ());
  9543. return status;
  9544. }
  9545. _LT_EOF
  9546. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9547. (eval $ac_link) 2>&5
  9548. ac_status=$?
  9549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9550. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9551. (./conftest; exit; ) >&5 2>/dev/null
  9552. lt_status=$?
  9553. case x$lt_status in
  9554. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9555. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9556. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9557. esac
  9558. else :
  9559. # compilation failed
  9560. lt_cv_dlopen_self=no
  9561. fi
  9562. fi
  9563. rm -fr conftest*
  9564. fi
  9565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9566. $as_echo "$lt_cv_dlopen_self" >&6; }
  9567. if test "x$lt_cv_dlopen_self" = xyes; then
  9568. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9570. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9571. if ${lt_cv_dlopen_self_static+:} false; then :
  9572. $as_echo_n "(cached) " >&6
  9573. else
  9574. if test "$cross_compiling" = yes; then :
  9575. lt_cv_dlopen_self_static=cross
  9576. else
  9577. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9578. lt_status=$lt_dlunknown
  9579. cat > conftest.$ac_ext <<_LT_EOF
  9580. #line $LINENO "configure"
  9581. #include "confdefs.h"
  9582. #if HAVE_DLFCN_H
  9583. #include <dlfcn.h>
  9584. #endif
  9585. #include <stdio.h>
  9586. #ifdef RTLD_GLOBAL
  9587. # define LT_DLGLOBAL RTLD_GLOBAL
  9588. #else
  9589. # ifdef DL_GLOBAL
  9590. # define LT_DLGLOBAL DL_GLOBAL
  9591. # else
  9592. # define LT_DLGLOBAL 0
  9593. # endif
  9594. #endif
  9595. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9596. find out it does not work in some platform. */
  9597. #ifndef LT_DLLAZY_OR_NOW
  9598. # ifdef RTLD_LAZY
  9599. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9600. # else
  9601. # ifdef DL_LAZY
  9602. # define LT_DLLAZY_OR_NOW DL_LAZY
  9603. # else
  9604. # ifdef RTLD_NOW
  9605. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9606. # else
  9607. # ifdef DL_NOW
  9608. # define LT_DLLAZY_OR_NOW DL_NOW
  9609. # else
  9610. # define LT_DLLAZY_OR_NOW 0
  9611. # endif
  9612. # endif
  9613. # endif
  9614. # endif
  9615. #endif
  9616. /* When -fvisbility=hidden is used, assume the code has been annotated
  9617. correspondingly for the symbols needed. */
  9618. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9619. int fnord () __attribute__((visibility("default")));
  9620. #endif
  9621. int fnord () { return 42; }
  9622. int main ()
  9623. {
  9624. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9625. int status = $lt_dlunknown;
  9626. if (self)
  9627. {
  9628. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9629. else
  9630. {
  9631. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9632. else puts (dlerror ());
  9633. }
  9634. /* dlclose (self); */
  9635. }
  9636. else
  9637. puts (dlerror ());
  9638. return status;
  9639. }
  9640. _LT_EOF
  9641. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9642. (eval $ac_link) 2>&5
  9643. ac_status=$?
  9644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9645. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9646. (./conftest; exit; ) >&5 2>/dev/null
  9647. lt_status=$?
  9648. case x$lt_status in
  9649. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9650. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9651. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9652. esac
  9653. else :
  9654. # compilation failed
  9655. lt_cv_dlopen_self_static=no
  9656. fi
  9657. fi
  9658. rm -fr conftest*
  9659. fi
  9660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9661. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9662. fi
  9663. CPPFLAGS="$save_CPPFLAGS"
  9664. LDFLAGS="$save_LDFLAGS"
  9665. LIBS="$save_LIBS"
  9666. ;;
  9667. esac
  9668. case $lt_cv_dlopen_self in
  9669. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9670. *) enable_dlopen_self=unknown ;;
  9671. esac
  9672. case $lt_cv_dlopen_self_static in
  9673. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9674. *) enable_dlopen_self_static=unknown ;;
  9675. esac
  9676. fi
  9677. striplib=
  9678. old_striplib=
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9680. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9681. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9682. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9683. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9685. $as_echo "yes" >&6; }
  9686. else
  9687. # FIXME - insert some real tests, host_os isn't really good enough
  9688. case $host_os in
  9689. darwin*)
  9690. if test -n "$STRIP" ; then
  9691. striplib="$STRIP -x"
  9692. old_striplib="$STRIP -S"
  9693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9694. $as_echo "yes" >&6; }
  9695. else
  9696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9697. $as_echo "no" >&6; }
  9698. fi
  9699. ;;
  9700. *)
  9701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9702. $as_echo "no" >&6; }
  9703. ;;
  9704. esac
  9705. fi
  9706. # Report which library types will actually be built
  9707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9708. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9710. $as_echo "$can_build_shared" >&6; }
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9712. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9713. test "$can_build_shared" = "no" && enable_shared=no
  9714. # On AIX, shared libraries and static libraries use the same namespace, and
  9715. # are all built from PIC.
  9716. case $host_os in
  9717. aix3*)
  9718. test "$enable_shared" = yes && enable_static=no
  9719. if test -n "$RANLIB"; then
  9720. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9721. postinstall_cmds='$RANLIB $lib'
  9722. fi
  9723. ;;
  9724. aix[4-9]*)
  9725. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9726. test "$enable_shared" = yes && enable_static=no
  9727. fi
  9728. ;;
  9729. esac
  9730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9731. $as_echo "$enable_shared" >&6; }
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9733. $as_echo_n "checking whether to build static libraries... " >&6; }
  9734. # Make sure either enable_shared or enable_static is yes.
  9735. test "$enable_shared" = yes || enable_static=yes
  9736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9737. $as_echo "$enable_static" >&6; }
  9738. fi
  9739. ac_ext=c
  9740. ac_cpp='$CPP $CPPFLAGS'
  9741. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9742. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9743. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9744. CC="$lt_save_CC"
  9745. ac_config_commands="$ac_config_commands libtool"
  9746. # Only expand once:
  9747. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9748. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9749. LT_REVISION=$SDL_INTERFACE_AGE
  9750. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9751. ac_ext=c
  9752. ac_cpp='$CPP $CPPFLAGS'
  9753. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9754. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9755. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9756. if test -n "$ac_tool_prefix"; then
  9757. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9758. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9760. $as_echo_n "checking for $ac_word... " >&6; }
  9761. if ${ac_cv_prog_CC+:} false; then :
  9762. $as_echo_n "(cached) " >&6
  9763. else
  9764. if test -n "$CC"; then
  9765. ac_cv_prog_CC="$CC" # Let the user override the test.
  9766. else
  9767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9768. for as_dir in $PATH
  9769. do
  9770. IFS=$as_save_IFS
  9771. test -z "$as_dir" && as_dir=.
  9772. for ac_exec_ext in '' $ac_executable_extensions; do
  9773. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9774. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9776. break 2
  9777. fi
  9778. done
  9779. done
  9780. IFS=$as_save_IFS
  9781. fi
  9782. fi
  9783. CC=$ac_cv_prog_CC
  9784. if test -n "$CC"; then
  9785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9786. $as_echo "$CC" >&6; }
  9787. else
  9788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9789. $as_echo "no" >&6; }
  9790. fi
  9791. fi
  9792. if test -z "$ac_cv_prog_CC"; then
  9793. ac_ct_CC=$CC
  9794. # Extract the first word of "gcc", so it can be a program name with args.
  9795. set dummy gcc; ac_word=$2
  9796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9797. $as_echo_n "checking for $ac_word... " >&6; }
  9798. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9799. $as_echo_n "(cached) " >&6
  9800. else
  9801. if test -n "$ac_ct_CC"; then
  9802. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9803. else
  9804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9805. for as_dir in $PATH
  9806. do
  9807. IFS=$as_save_IFS
  9808. test -z "$as_dir" && as_dir=.
  9809. for ac_exec_ext in '' $ac_executable_extensions; do
  9810. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9811. ac_cv_prog_ac_ct_CC="gcc"
  9812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9813. break 2
  9814. fi
  9815. done
  9816. done
  9817. IFS=$as_save_IFS
  9818. fi
  9819. fi
  9820. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9821. if test -n "$ac_ct_CC"; then
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9823. $as_echo "$ac_ct_CC" >&6; }
  9824. else
  9825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9826. $as_echo "no" >&6; }
  9827. fi
  9828. if test "x$ac_ct_CC" = x; then
  9829. CC=""
  9830. else
  9831. case $cross_compiling:$ac_tool_warned in
  9832. yes:)
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9834. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9835. ac_tool_warned=yes ;;
  9836. esac
  9837. CC=$ac_ct_CC
  9838. fi
  9839. else
  9840. CC="$ac_cv_prog_CC"
  9841. fi
  9842. if test -z "$CC"; then
  9843. if test -n "$ac_tool_prefix"; then
  9844. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9845. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9847. $as_echo_n "checking for $ac_word... " >&6; }
  9848. if ${ac_cv_prog_CC+:} false; then :
  9849. $as_echo_n "(cached) " >&6
  9850. else
  9851. if test -n "$CC"; then
  9852. ac_cv_prog_CC="$CC" # Let the user override the test.
  9853. else
  9854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9855. for as_dir in $PATH
  9856. do
  9857. IFS=$as_save_IFS
  9858. test -z "$as_dir" && as_dir=.
  9859. for ac_exec_ext in '' $ac_executable_extensions; do
  9860. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9861. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9862. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9863. break 2
  9864. fi
  9865. done
  9866. done
  9867. IFS=$as_save_IFS
  9868. fi
  9869. fi
  9870. CC=$ac_cv_prog_CC
  9871. if test -n "$CC"; then
  9872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9873. $as_echo "$CC" >&6; }
  9874. else
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9876. $as_echo "no" >&6; }
  9877. fi
  9878. fi
  9879. fi
  9880. if test -z "$CC"; then
  9881. # Extract the first word of "cc", so it can be a program name with args.
  9882. set dummy cc; ac_word=$2
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9884. $as_echo_n "checking for $ac_word... " >&6; }
  9885. if ${ac_cv_prog_CC+:} false; then :
  9886. $as_echo_n "(cached) " >&6
  9887. else
  9888. if test -n "$CC"; then
  9889. ac_cv_prog_CC="$CC" # Let the user override the test.
  9890. else
  9891. ac_prog_rejected=no
  9892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9893. for as_dir in $PATH
  9894. do
  9895. IFS=$as_save_IFS
  9896. test -z "$as_dir" && as_dir=.
  9897. for ac_exec_ext in '' $ac_executable_extensions; do
  9898. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9899. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9900. ac_prog_rejected=yes
  9901. continue
  9902. fi
  9903. ac_cv_prog_CC="cc"
  9904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9905. break 2
  9906. fi
  9907. done
  9908. done
  9909. IFS=$as_save_IFS
  9910. if test $ac_prog_rejected = yes; then
  9911. # We found a bogon in the path, so make sure we never use it.
  9912. set dummy $ac_cv_prog_CC
  9913. shift
  9914. if test $# != 0; then
  9915. # We chose a different compiler from the bogus one.
  9916. # However, it has the same basename, so the bogon will be chosen
  9917. # first if we set CC to just the basename; use the full file name.
  9918. shift
  9919. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9920. fi
  9921. fi
  9922. fi
  9923. fi
  9924. CC=$ac_cv_prog_CC
  9925. if test -n "$CC"; then
  9926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9927. $as_echo "$CC" >&6; }
  9928. else
  9929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9930. $as_echo "no" >&6; }
  9931. fi
  9932. fi
  9933. if test -z "$CC"; then
  9934. if test -n "$ac_tool_prefix"; then
  9935. for ac_prog in cl.exe
  9936. do
  9937. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9938. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9940. $as_echo_n "checking for $ac_word... " >&6; }
  9941. if ${ac_cv_prog_CC+:} false; then :
  9942. $as_echo_n "(cached) " >&6
  9943. else
  9944. if test -n "$CC"; then
  9945. ac_cv_prog_CC="$CC" # Let the user override the test.
  9946. else
  9947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9948. for as_dir in $PATH
  9949. do
  9950. IFS=$as_save_IFS
  9951. test -z "$as_dir" && as_dir=.
  9952. for ac_exec_ext in '' $ac_executable_extensions; do
  9953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9954. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9956. break 2
  9957. fi
  9958. done
  9959. done
  9960. IFS=$as_save_IFS
  9961. fi
  9962. fi
  9963. CC=$ac_cv_prog_CC
  9964. if test -n "$CC"; then
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9966. $as_echo "$CC" >&6; }
  9967. else
  9968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9969. $as_echo "no" >&6; }
  9970. fi
  9971. test -n "$CC" && break
  9972. done
  9973. fi
  9974. if test -z "$CC"; then
  9975. ac_ct_CC=$CC
  9976. for ac_prog in cl.exe
  9977. do
  9978. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9979. set dummy $ac_prog; ac_word=$2
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9981. $as_echo_n "checking for $ac_word... " >&6; }
  9982. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9983. $as_echo_n "(cached) " >&6
  9984. else
  9985. if test -n "$ac_ct_CC"; then
  9986. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9987. else
  9988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9989. for as_dir in $PATH
  9990. do
  9991. IFS=$as_save_IFS
  9992. test -z "$as_dir" && as_dir=.
  9993. for ac_exec_ext in '' $ac_executable_extensions; do
  9994. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9995. ac_cv_prog_ac_ct_CC="$ac_prog"
  9996. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9997. break 2
  9998. fi
  9999. done
  10000. done
  10001. IFS=$as_save_IFS
  10002. fi
  10003. fi
  10004. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10005. if test -n "$ac_ct_CC"; then
  10006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10007. $as_echo "$ac_ct_CC" >&6; }
  10008. else
  10009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10010. $as_echo "no" >&6; }
  10011. fi
  10012. test -n "$ac_ct_CC" && break
  10013. done
  10014. if test "x$ac_ct_CC" = x; then
  10015. CC=""
  10016. else
  10017. case $cross_compiling:$ac_tool_warned in
  10018. yes:)
  10019. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10020. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10021. ac_tool_warned=yes ;;
  10022. esac
  10023. CC=$ac_ct_CC
  10024. fi
  10025. fi
  10026. fi
  10027. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10028. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10029. as_fn_error $? "no acceptable C compiler found in \$PATH
  10030. See \`config.log' for more details" "$LINENO" 5; }
  10031. # Provide some information about the compiler.
  10032. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10033. set X $ac_compile
  10034. ac_compiler=$2
  10035. for ac_option in --version -v -V -qversion; do
  10036. { { ac_try="$ac_compiler $ac_option >&5"
  10037. case "(($ac_try" in
  10038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10039. *) ac_try_echo=$ac_try;;
  10040. esac
  10041. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10042. $as_echo "$ac_try_echo"; } >&5
  10043. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10044. ac_status=$?
  10045. if test -s conftest.err; then
  10046. sed '10a\
  10047. ... rest of stderr output deleted ...
  10048. 10q' conftest.err >conftest.er1
  10049. cat conftest.er1 >&5
  10050. fi
  10051. rm -f conftest.er1 conftest.err
  10052. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10053. test $ac_status = 0; }
  10054. done
  10055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10056. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10057. if ${ac_cv_c_compiler_gnu+:} false; then :
  10058. $as_echo_n "(cached) " >&6
  10059. else
  10060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10061. /* end confdefs.h. */
  10062. int
  10063. main ()
  10064. {
  10065. #ifndef __GNUC__
  10066. choke me
  10067. #endif
  10068. ;
  10069. return 0;
  10070. }
  10071. _ACEOF
  10072. if ac_fn_c_try_compile "$LINENO"; then :
  10073. ac_compiler_gnu=yes
  10074. else
  10075. ac_compiler_gnu=no
  10076. fi
  10077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10078. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10079. fi
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10081. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10082. if test $ac_compiler_gnu = yes; then
  10083. GCC=yes
  10084. else
  10085. GCC=
  10086. fi
  10087. ac_test_CFLAGS=${CFLAGS+set}
  10088. ac_save_CFLAGS=$CFLAGS
  10089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10090. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10091. if ${ac_cv_prog_cc_g+:} false; then :
  10092. $as_echo_n "(cached) " >&6
  10093. else
  10094. ac_save_c_werror_flag=$ac_c_werror_flag
  10095. ac_c_werror_flag=yes
  10096. ac_cv_prog_cc_g=no
  10097. CFLAGS="-g"
  10098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10099. /* end confdefs.h. */
  10100. int
  10101. main ()
  10102. {
  10103. ;
  10104. return 0;
  10105. }
  10106. _ACEOF
  10107. if ac_fn_c_try_compile "$LINENO"; then :
  10108. ac_cv_prog_cc_g=yes
  10109. else
  10110. CFLAGS=""
  10111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10112. /* end confdefs.h. */
  10113. int
  10114. main ()
  10115. {
  10116. ;
  10117. return 0;
  10118. }
  10119. _ACEOF
  10120. if ac_fn_c_try_compile "$LINENO"; then :
  10121. else
  10122. ac_c_werror_flag=$ac_save_c_werror_flag
  10123. CFLAGS="-g"
  10124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10125. /* end confdefs.h. */
  10126. int
  10127. main ()
  10128. {
  10129. ;
  10130. return 0;
  10131. }
  10132. _ACEOF
  10133. if ac_fn_c_try_compile "$LINENO"; then :
  10134. ac_cv_prog_cc_g=yes
  10135. fi
  10136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_c_werror_flag=$ac_save_c_werror_flag
  10142. fi
  10143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10144. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10145. if test "$ac_test_CFLAGS" = set; then
  10146. CFLAGS=$ac_save_CFLAGS
  10147. elif test $ac_cv_prog_cc_g = yes; then
  10148. if test "$GCC" = yes; then
  10149. CFLAGS="-g -O2"
  10150. else
  10151. CFLAGS="-g"
  10152. fi
  10153. else
  10154. if test "$GCC" = yes; then
  10155. CFLAGS="-O2"
  10156. else
  10157. CFLAGS=
  10158. fi
  10159. fi
  10160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10161. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10162. if ${ac_cv_prog_cc_c89+:} false; then :
  10163. $as_echo_n "(cached) " >&6
  10164. else
  10165. ac_cv_prog_cc_c89=no
  10166. ac_save_CC=$CC
  10167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10168. /* end confdefs.h. */
  10169. #include <stdarg.h>
  10170. #include <stdio.h>
  10171. struct stat;
  10172. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10173. struct buf { int x; };
  10174. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10175. static char *e (p, i)
  10176. char **p;
  10177. int i;
  10178. {
  10179. return p[i];
  10180. }
  10181. static char *f (char * (*g) (char **, int), char **p, ...)
  10182. {
  10183. char *s;
  10184. va_list v;
  10185. va_start (v,p);
  10186. s = g (p, va_arg (v,int));
  10187. va_end (v);
  10188. return s;
  10189. }
  10190. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10191. function prototypes and stuff, but not '\xHH' hex character constants.
  10192. These don't provoke an error unfortunately, instead are silently treated
  10193. as 'x'. The following induces an error, until -std is added to get
  10194. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10195. array size at least. It's necessary to write '\x00'==0 to get something
  10196. that's true only with -std. */
  10197. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10198. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10199. inside strings and character constants. */
  10200. #define FOO(x) 'x'
  10201. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10202. int test (int i, double x);
  10203. struct s1 {int (*f) (int a);};
  10204. struct s2 {int (*f) (double a);};
  10205. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10206. int argc;
  10207. char **argv;
  10208. int
  10209. main ()
  10210. {
  10211. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10212. ;
  10213. return 0;
  10214. }
  10215. _ACEOF
  10216. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10217. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10218. do
  10219. CC="$ac_save_CC $ac_arg"
  10220. if ac_fn_c_try_compile "$LINENO"; then :
  10221. ac_cv_prog_cc_c89=$ac_arg
  10222. fi
  10223. rm -f core conftest.err conftest.$ac_objext
  10224. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10225. done
  10226. rm -f conftest.$ac_ext
  10227. CC=$ac_save_CC
  10228. fi
  10229. # AC_CACHE_VAL
  10230. case "x$ac_cv_prog_cc_c89" in
  10231. x)
  10232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10233. $as_echo "none needed" >&6; } ;;
  10234. xno)
  10235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10236. $as_echo "unsupported" >&6; } ;;
  10237. *)
  10238. CC="$CC $ac_cv_prog_cc_c89"
  10239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10240. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10241. esac
  10242. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10243. fi
  10244. ac_ext=c
  10245. ac_cpp='$CPP $CPPFLAGS'
  10246. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10247. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10248. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10249. ac_ext=cpp
  10250. ac_cpp='$CXXCPP $CPPFLAGS'
  10251. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10252. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10253. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10254. if test -z "$CXX"; then
  10255. if test -n "$CCC"; then
  10256. CXX=$CCC
  10257. else
  10258. if test -n "$ac_tool_prefix"; then
  10259. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10260. do
  10261. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10262. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10264. $as_echo_n "checking for $ac_word... " >&6; }
  10265. if ${ac_cv_prog_CXX+:} false; then :
  10266. $as_echo_n "(cached) " >&6
  10267. else
  10268. if test -n "$CXX"; then
  10269. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10270. else
  10271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10272. for as_dir in $PATH
  10273. do
  10274. IFS=$as_save_IFS
  10275. test -z "$as_dir" && as_dir=.
  10276. for ac_exec_ext in '' $ac_executable_extensions; do
  10277. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10278. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10279. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10280. break 2
  10281. fi
  10282. done
  10283. done
  10284. IFS=$as_save_IFS
  10285. fi
  10286. fi
  10287. CXX=$ac_cv_prog_CXX
  10288. if test -n "$CXX"; then
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10290. $as_echo "$CXX" >&6; }
  10291. else
  10292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10293. $as_echo "no" >&6; }
  10294. fi
  10295. test -n "$CXX" && break
  10296. done
  10297. fi
  10298. if test -z "$CXX"; then
  10299. ac_ct_CXX=$CXX
  10300. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10301. do
  10302. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10303. set dummy $ac_prog; ac_word=$2
  10304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10305. $as_echo_n "checking for $ac_word... " >&6; }
  10306. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10307. $as_echo_n "(cached) " >&6
  10308. else
  10309. if test -n "$ac_ct_CXX"; then
  10310. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10311. else
  10312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10313. for as_dir in $PATH
  10314. do
  10315. IFS=$as_save_IFS
  10316. test -z "$as_dir" && as_dir=.
  10317. for ac_exec_ext in '' $ac_executable_extensions; do
  10318. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10319. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10321. break 2
  10322. fi
  10323. done
  10324. done
  10325. IFS=$as_save_IFS
  10326. fi
  10327. fi
  10328. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10329. if test -n "$ac_ct_CXX"; then
  10330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10331. $as_echo "$ac_ct_CXX" >&6; }
  10332. else
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10334. $as_echo "no" >&6; }
  10335. fi
  10336. test -n "$ac_ct_CXX" && break
  10337. done
  10338. if test "x$ac_ct_CXX" = x; then
  10339. CXX="g++"
  10340. else
  10341. case $cross_compiling:$ac_tool_warned in
  10342. yes:)
  10343. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10344. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10345. ac_tool_warned=yes ;;
  10346. esac
  10347. CXX=$ac_ct_CXX
  10348. fi
  10349. fi
  10350. fi
  10351. fi
  10352. # Provide some information about the compiler.
  10353. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10354. set X $ac_compile
  10355. ac_compiler=$2
  10356. for ac_option in --version -v -V -qversion; do
  10357. { { ac_try="$ac_compiler $ac_option >&5"
  10358. case "(($ac_try" in
  10359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10360. *) ac_try_echo=$ac_try;;
  10361. esac
  10362. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10363. $as_echo "$ac_try_echo"; } >&5
  10364. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10365. ac_status=$?
  10366. if test -s conftest.err; then
  10367. sed '10a\
  10368. ... rest of stderr output deleted ...
  10369. 10q' conftest.err >conftest.er1
  10370. cat conftest.er1 >&5
  10371. fi
  10372. rm -f conftest.er1 conftest.err
  10373. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10374. test $ac_status = 0; }
  10375. done
  10376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10377. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10378. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10379. $as_echo_n "(cached) " >&6
  10380. else
  10381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10382. /* end confdefs.h. */
  10383. int
  10384. main ()
  10385. {
  10386. #ifndef __GNUC__
  10387. choke me
  10388. #endif
  10389. ;
  10390. return 0;
  10391. }
  10392. _ACEOF
  10393. if ac_fn_cxx_try_compile "$LINENO"; then :
  10394. ac_compiler_gnu=yes
  10395. else
  10396. ac_compiler_gnu=no
  10397. fi
  10398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10399. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10400. fi
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10402. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10403. if test $ac_compiler_gnu = yes; then
  10404. GXX=yes
  10405. else
  10406. GXX=
  10407. fi
  10408. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10409. ac_save_CXXFLAGS=$CXXFLAGS
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10411. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10412. if ${ac_cv_prog_cxx_g+:} false; then :
  10413. $as_echo_n "(cached) " >&6
  10414. else
  10415. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10416. ac_cxx_werror_flag=yes
  10417. ac_cv_prog_cxx_g=no
  10418. CXXFLAGS="-g"
  10419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10420. /* end confdefs.h. */
  10421. int
  10422. main ()
  10423. {
  10424. ;
  10425. return 0;
  10426. }
  10427. _ACEOF
  10428. if ac_fn_cxx_try_compile "$LINENO"; then :
  10429. ac_cv_prog_cxx_g=yes
  10430. else
  10431. CXXFLAGS=""
  10432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10433. /* end confdefs.h. */
  10434. int
  10435. main ()
  10436. {
  10437. ;
  10438. return 0;
  10439. }
  10440. _ACEOF
  10441. if ac_fn_cxx_try_compile "$LINENO"; then :
  10442. else
  10443. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10444. CXXFLAGS="-g"
  10445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10446. /* end confdefs.h. */
  10447. int
  10448. main ()
  10449. {
  10450. ;
  10451. return 0;
  10452. }
  10453. _ACEOF
  10454. if ac_fn_cxx_try_compile "$LINENO"; then :
  10455. ac_cv_prog_cxx_g=yes
  10456. fi
  10457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10463. fi
  10464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10465. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10466. if test "$ac_test_CXXFLAGS" = set; then
  10467. CXXFLAGS=$ac_save_CXXFLAGS
  10468. elif test $ac_cv_prog_cxx_g = yes; then
  10469. if test "$GXX" = yes; then
  10470. CXXFLAGS="-g -O2"
  10471. else
  10472. CXXFLAGS="-g"
  10473. fi
  10474. else
  10475. if test "$GXX" = yes; then
  10476. CXXFLAGS="-O2"
  10477. else
  10478. CXXFLAGS=
  10479. fi
  10480. fi
  10481. ac_ext=c
  10482. ac_cpp='$CPP $CPPFLAGS'
  10483. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10484. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10485. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10486. func_stripname_cnf ()
  10487. {
  10488. case ${2} in
  10489. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10490. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10491. esac
  10492. } # func_stripname_cnf
  10493. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10494. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10495. (test "X$CXX" != "Xg++"))) ; then
  10496. ac_ext=cpp
  10497. ac_cpp='$CXXCPP $CPPFLAGS'
  10498. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10499. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10500. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10502. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10503. if test -z "$CXXCPP"; then
  10504. if ${ac_cv_prog_CXXCPP+:} false; then :
  10505. $as_echo_n "(cached) " >&6
  10506. else
  10507. # Double quotes because CXXCPP needs to be expanded
  10508. for CXXCPP in "$CXX -E" "/lib/cpp"
  10509. do
  10510. ac_preproc_ok=false
  10511. for ac_cxx_preproc_warn_flag in '' yes
  10512. do
  10513. # Use a header file that comes with gcc, so configuring glibc
  10514. # with a fresh cross-compiler works.
  10515. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10516. # <limits.h> exists even on freestanding compilers.
  10517. # On the NeXT, cc -E runs the code through the compiler's parser,
  10518. # not just through cpp. "Syntax error" is here to catch this case.
  10519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10520. /* end confdefs.h. */
  10521. #ifdef __STDC__
  10522. # include <limits.h>
  10523. #else
  10524. # include <assert.h>
  10525. #endif
  10526. Syntax error
  10527. _ACEOF
  10528. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10529. else
  10530. # Broken: fails on valid input.
  10531. continue
  10532. fi
  10533. rm -f conftest.err conftest.i conftest.$ac_ext
  10534. # OK, works on sane cases. Now check whether nonexistent headers
  10535. # can be detected and how.
  10536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10537. /* end confdefs.h. */
  10538. #include <ac_nonexistent.h>
  10539. _ACEOF
  10540. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10541. # Broken: success on invalid input.
  10542. continue
  10543. else
  10544. # Passes both tests.
  10545. ac_preproc_ok=:
  10546. break
  10547. fi
  10548. rm -f conftest.err conftest.i conftest.$ac_ext
  10549. done
  10550. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10551. rm -f conftest.i conftest.err conftest.$ac_ext
  10552. if $ac_preproc_ok; then :
  10553. break
  10554. fi
  10555. done
  10556. ac_cv_prog_CXXCPP=$CXXCPP
  10557. fi
  10558. CXXCPP=$ac_cv_prog_CXXCPP
  10559. else
  10560. ac_cv_prog_CXXCPP=$CXXCPP
  10561. fi
  10562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10563. $as_echo "$CXXCPP" >&6; }
  10564. ac_preproc_ok=false
  10565. for ac_cxx_preproc_warn_flag in '' yes
  10566. do
  10567. # Use a header file that comes with gcc, so configuring glibc
  10568. # with a fresh cross-compiler works.
  10569. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10570. # <limits.h> exists even on freestanding compilers.
  10571. # On the NeXT, cc -E runs the code through the compiler's parser,
  10572. # not just through cpp. "Syntax error" is here to catch this case.
  10573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10574. /* end confdefs.h. */
  10575. #ifdef __STDC__
  10576. # include <limits.h>
  10577. #else
  10578. # include <assert.h>
  10579. #endif
  10580. Syntax error
  10581. _ACEOF
  10582. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10583. else
  10584. # Broken: fails on valid input.
  10585. continue
  10586. fi
  10587. rm -f conftest.err conftest.i conftest.$ac_ext
  10588. # OK, works on sane cases. Now check whether nonexistent headers
  10589. # can be detected and how.
  10590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10591. /* end confdefs.h. */
  10592. #include <ac_nonexistent.h>
  10593. _ACEOF
  10594. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10595. # Broken: success on invalid input.
  10596. continue
  10597. else
  10598. # Passes both tests.
  10599. ac_preproc_ok=:
  10600. break
  10601. fi
  10602. rm -f conftest.err conftest.i conftest.$ac_ext
  10603. done
  10604. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10605. rm -f conftest.i conftest.err conftest.$ac_ext
  10606. if $ac_preproc_ok; then :
  10607. else
  10608. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10609. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10610. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10611. See \`config.log' for more details" "$LINENO" 5; }
  10612. fi
  10613. ac_ext=c
  10614. ac_cpp='$CPP $CPPFLAGS'
  10615. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10616. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10617. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10618. else
  10619. _lt_caught_CXX_error=yes
  10620. fi
  10621. ac_ext=cpp
  10622. ac_cpp='$CXXCPP $CPPFLAGS'
  10623. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10624. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10625. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10626. archive_cmds_need_lc_CXX=no
  10627. allow_undefined_flag_CXX=
  10628. always_export_symbols_CXX=no
  10629. archive_expsym_cmds_CXX=
  10630. compiler_needs_object_CXX=no
  10631. export_dynamic_flag_spec_CXX=
  10632. hardcode_direct_CXX=no
  10633. hardcode_direct_absolute_CXX=no
  10634. hardcode_libdir_flag_spec_CXX=
  10635. hardcode_libdir_separator_CXX=
  10636. hardcode_minus_L_CXX=no
  10637. hardcode_shlibpath_var_CXX=unsupported
  10638. hardcode_automatic_CXX=no
  10639. inherit_rpath_CXX=no
  10640. module_cmds_CXX=
  10641. module_expsym_cmds_CXX=
  10642. link_all_deplibs_CXX=unknown
  10643. old_archive_cmds_CXX=$old_archive_cmds
  10644. reload_flag_CXX=$reload_flag
  10645. reload_cmds_CXX=$reload_cmds
  10646. no_undefined_flag_CXX=
  10647. whole_archive_flag_spec_CXX=
  10648. enable_shared_with_static_runtimes_CXX=no
  10649. # Source file extension for C++ test sources.
  10650. ac_ext=cpp
  10651. # Object file extension for compiled C++ test sources.
  10652. objext=o
  10653. objext_CXX=$objext
  10654. # No sense in running all these tests if we already determined that
  10655. # the CXX compiler isn't working. Some variables (like enable_shared)
  10656. # are currently assumed to apply to all compilers on this platform,
  10657. # and will be corrupted by setting them based on a non-working compiler.
  10658. if test "$_lt_caught_CXX_error" != yes; then
  10659. # Code to be used in simple compile tests
  10660. lt_simple_compile_test_code="int some_variable = 0;"
  10661. # Code to be used in simple link tests
  10662. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10663. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10664. # If no C compiler was specified, use CC.
  10665. LTCC=${LTCC-"$CC"}
  10666. # If no C compiler flags were specified, use CFLAGS.
  10667. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10668. # Allow CC to be a program name with arguments.
  10669. compiler=$CC
  10670. # save warnings/boilerplate of simple test code
  10671. ac_outfile=conftest.$ac_objext
  10672. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10673. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10674. _lt_compiler_boilerplate=`cat conftest.err`
  10675. $RM conftest*
  10676. ac_outfile=conftest.$ac_objext
  10677. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10678. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10679. _lt_linker_boilerplate=`cat conftest.err`
  10680. $RM -r conftest*
  10681. # Allow CC to be a program name with arguments.
  10682. lt_save_CC=$CC
  10683. lt_save_CFLAGS=$CFLAGS
  10684. lt_save_LD=$LD
  10685. lt_save_GCC=$GCC
  10686. GCC=$GXX
  10687. lt_save_with_gnu_ld=$with_gnu_ld
  10688. lt_save_path_LD=$lt_cv_path_LD
  10689. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10690. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10691. else
  10692. $as_unset lt_cv_prog_gnu_ld
  10693. fi
  10694. if test -n "${lt_cv_path_LDCXX+set}"; then
  10695. lt_cv_path_LD=$lt_cv_path_LDCXX
  10696. else
  10697. $as_unset lt_cv_path_LD
  10698. fi
  10699. test -z "${LDCXX+set}" || LD=$LDCXX
  10700. CC=${CXX-"c++"}
  10701. CFLAGS=$CXXFLAGS
  10702. compiler=$CC
  10703. compiler_CXX=$CC
  10704. for cc_temp in $compiler""; do
  10705. case $cc_temp in
  10706. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10707. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10708. \-*) ;;
  10709. *) break;;
  10710. esac
  10711. done
  10712. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10713. if test -n "$compiler"; then
  10714. # We don't want -fno-exception when compiling C++ code, so set the
  10715. # no_builtin_flag separately
  10716. if test "$GXX" = yes; then
  10717. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10718. else
  10719. lt_prog_compiler_no_builtin_flag_CXX=
  10720. fi
  10721. if test "$GXX" = yes; then
  10722. # Set up default GNU C++ configuration
  10723. # Check whether --with-gnu-ld was given.
  10724. if test "${with_gnu_ld+set}" = set; then :
  10725. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10726. else
  10727. with_gnu_ld=no
  10728. fi
  10729. ac_prog=ld
  10730. if test "$GCC" = yes; then
  10731. # Check if gcc -print-prog-name=ld gives a path.
  10732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10733. $as_echo_n "checking for ld used by $CC... " >&6; }
  10734. case $host in
  10735. *-*-mingw*)
  10736. # gcc leaves a trailing carriage return which upsets mingw
  10737. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10738. *)
  10739. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10740. esac
  10741. case $ac_prog in
  10742. # Accept absolute paths.
  10743. [\\/]* | ?:[\\/]*)
  10744. re_direlt='/[^/][^/]*/\.\./'
  10745. # Canonicalize the pathname of ld
  10746. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10747. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10748. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10749. done
  10750. test -z "$LD" && LD="$ac_prog"
  10751. ;;
  10752. "")
  10753. # If it fails, then pretend we aren't using GCC.
  10754. ac_prog=ld
  10755. ;;
  10756. *)
  10757. # If it is relative, then search for the first ld in PATH.
  10758. with_gnu_ld=unknown
  10759. ;;
  10760. esac
  10761. elif test "$with_gnu_ld" = yes; then
  10762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10763. $as_echo_n "checking for GNU ld... " >&6; }
  10764. else
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10766. $as_echo_n "checking for non-GNU ld... " >&6; }
  10767. fi
  10768. if ${lt_cv_path_LD+:} false; then :
  10769. $as_echo_n "(cached) " >&6
  10770. else
  10771. if test -z "$LD"; then
  10772. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10773. for ac_dir in $PATH; do
  10774. IFS="$lt_save_ifs"
  10775. test -z "$ac_dir" && ac_dir=.
  10776. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10777. lt_cv_path_LD="$ac_dir/$ac_prog"
  10778. # Check to see if the program is GNU ld. I'd rather use --version,
  10779. # but apparently some variants of GNU ld only accept -v.
  10780. # Break only if it was the GNU/non-GNU ld that we prefer.
  10781. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10782. *GNU* | *'with BFD'*)
  10783. test "$with_gnu_ld" != no && break
  10784. ;;
  10785. *)
  10786. test "$with_gnu_ld" != yes && break
  10787. ;;
  10788. esac
  10789. fi
  10790. done
  10791. IFS="$lt_save_ifs"
  10792. else
  10793. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10794. fi
  10795. fi
  10796. LD="$lt_cv_path_LD"
  10797. if test -n "$LD"; then
  10798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10799. $as_echo "$LD" >&6; }
  10800. else
  10801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10802. $as_echo "no" >&6; }
  10803. fi
  10804. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10806. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10807. if ${lt_cv_prog_gnu_ld+:} false; then :
  10808. $as_echo_n "(cached) " >&6
  10809. else
  10810. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10811. case `$LD -v 2>&1 </dev/null` in
  10812. *GNU* | *'with BFD'*)
  10813. lt_cv_prog_gnu_ld=yes
  10814. ;;
  10815. *)
  10816. lt_cv_prog_gnu_ld=no
  10817. ;;
  10818. esac
  10819. fi
  10820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10821. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10822. with_gnu_ld=$lt_cv_prog_gnu_ld
  10823. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10824. # archiving commands below assume that GNU ld is being used.
  10825. if test "$with_gnu_ld" = yes; then
  10826. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10827. 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'
  10828. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10829. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10830. # If archive_cmds runs LD, not CC, wlarc should be empty
  10831. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10832. # investigate it a little bit more. (MM)
  10833. wlarc='${wl}'
  10834. # ancient GNU ld didn't support --whole-archive et. al.
  10835. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10836. $GREP 'no-whole-archive' > /dev/null; then
  10837. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10838. else
  10839. whole_archive_flag_spec_CXX=
  10840. fi
  10841. else
  10842. with_gnu_ld=no
  10843. wlarc=
  10844. # A generic and very simple default shared library creation
  10845. # command for GNU C++ for the case where it uses the native
  10846. # linker, instead of GNU ld. If possible, this setting should
  10847. # overridden to take advantage of the native linker features on
  10848. # the platform it is being used on.
  10849. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10850. fi
  10851. # Commands to make compiler produce verbose output that lists
  10852. # what "hidden" libraries, object files and flags are used when
  10853. # linking a shared library.
  10854. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10855. else
  10856. GXX=no
  10857. with_gnu_ld=no
  10858. wlarc=
  10859. fi
  10860. # PORTME: fill in a description of your system's C++ link characteristics
  10861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10862. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10863. ld_shlibs_CXX=yes
  10864. case $host_os in
  10865. aix3*)
  10866. # FIXME: insert proper C++ library support
  10867. ld_shlibs_CXX=no
  10868. ;;
  10869. aix[4-9]*)
  10870. if test "$host_cpu" = ia64; then
  10871. # On IA64, the linker does run time linking by default, so we don't
  10872. # have to do anything special.
  10873. aix_use_runtimelinking=no
  10874. exp_sym_flag='-Bexport'
  10875. no_entry_flag=""
  10876. else
  10877. aix_use_runtimelinking=no
  10878. # Test if we are trying to use run time linking or normal
  10879. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10880. # need to do runtime linking.
  10881. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10882. for ld_flag in $LDFLAGS; do
  10883. case $ld_flag in
  10884. *-brtl*)
  10885. aix_use_runtimelinking=yes
  10886. break
  10887. ;;
  10888. esac
  10889. done
  10890. ;;
  10891. esac
  10892. exp_sym_flag='-bexport'
  10893. no_entry_flag='-bnoentry'
  10894. fi
  10895. # When large executables or shared objects are built, AIX ld can
  10896. # have problems creating the table of contents. If linking a library
  10897. # or program results in "error TOC overflow" add -mminimal-toc to
  10898. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10899. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10900. archive_cmds_CXX=''
  10901. hardcode_direct_CXX=yes
  10902. hardcode_direct_absolute_CXX=yes
  10903. hardcode_libdir_separator_CXX=':'
  10904. link_all_deplibs_CXX=yes
  10905. file_list_spec_CXX='${wl}-f,'
  10906. if test "$GXX" = yes; then
  10907. case $host_os in aix4.[012]|aix4.[012].*)
  10908. # We only want to do this on AIX 4.2 and lower, the check
  10909. # below for broken collect2 doesn't work under 4.3+
  10910. collect2name=`${CC} -print-prog-name=collect2`
  10911. if test -f "$collect2name" &&
  10912. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10913. then
  10914. # We have reworked collect2
  10915. :
  10916. else
  10917. # We have old collect2
  10918. hardcode_direct_CXX=unsupported
  10919. # It fails to find uninstalled libraries when the uninstalled
  10920. # path is not listed in the libpath. Setting hardcode_minus_L
  10921. # to unsupported forces relinking
  10922. hardcode_minus_L_CXX=yes
  10923. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10924. hardcode_libdir_separator_CXX=
  10925. fi
  10926. esac
  10927. shared_flag='-shared'
  10928. if test "$aix_use_runtimelinking" = yes; then
  10929. shared_flag="$shared_flag "'${wl}-G'
  10930. fi
  10931. else
  10932. # not using gcc
  10933. if test "$host_cpu" = ia64; then
  10934. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10935. # chokes on -Wl,-G. The following line is correct:
  10936. shared_flag='-G'
  10937. else
  10938. if test "$aix_use_runtimelinking" = yes; then
  10939. shared_flag='${wl}-G'
  10940. else
  10941. shared_flag='${wl}-bM:SRE'
  10942. fi
  10943. fi
  10944. fi
  10945. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10946. # It seems that -bexpall does not export symbols beginning with
  10947. # underscore (_), so it is better to generate a list of symbols to
  10948. # export.
  10949. always_export_symbols_CXX=yes
  10950. if test "$aix_use_runtimelinking" = yes; then
  10951. # Warning - without using the other runtime loading flags (-brtl),
  10952. # -berok will link without error, but may produce a broken library.
  10953. allow_undefined_flag_CXX='-berok'
  10954. # Determine the default libpath from the value encoded in an empty
  10955. # executable.
  10956. if test "${lt_cv_aix_libpath+set}" = set; then
  10957. aix_libpath=$lt_cv_aix_libpath
  10958. else
  10959. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10960. $as_echo_n "(cached) " >&6
  10961. else
  10962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10963. /* end confdefs.h. */
  10964. int
  10965. main ()
  10966. {
  10967. ;
  10968. return 0;
  10969. }
  10970. _ACEOF
  10971. if ac_fn_cxx_try_link "$LINENO"; then :
  10972. lt_aix_libpath_sed='
  10973. /Import File Strings/,/^$/ {
  10974. /^0/ {
  10975. s/^0 *\([^ ]*\) *$/\1/
  10976. p
  10977. }
  10978. }'
  10979. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10980. # Check for a 64-bit object if we didn't find anything.
  10981. if test -z "$lt_cv_aix_libpath__CXX"; then
  10982. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10983. fi
  10984. fi
  10985. rm -f core conftest.err conftest.$ac_objext \
  10986. conftest$ac_exeext conftest.$ac_ext
  10987. if test -z "$lt_cv_aix_libpath__CXX"; then
  10988. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10989. fi
  10990. fi
  10991. aix_libpath=$lt_cv_aix_libpath__CXX
  10992. fi
  10993. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10994. 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"
  10995. else
  10996. if test "$host_cpu" = ia64; then
  10997. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10998. allow_undefined_flag_CXX="-z nodefs"
  10999. 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"
  11000. else
  11001. # Determine the default libpath from the value encoded in an
  11002. # empty executable.
  11003. if test "${lt_cv_aix_libpath+set}" = set; then
  11004. aix_libpath=$lt_cv_aix_libpath
  11005. else
  11006. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11007. $as_echo_n "(cached) " >&6
  11008. else
  11009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11010. /* end confdefs.h. */
  11011. int
  11012. main ()
  11013. {
  11014. ;
  11015. return 0;
  11016. }
  11017. _ACEOF
  11018. if ac_fn_cxx_try_link "$LINENO"; then :
  11019. lt_aix_libpath_sed='
  11020. /Import File Strings/,/^$/ {
  11021. /^0/ {
  11022. s/^0 *\([^ ]*\) *$/\1/
  11023. p
  11024. }
  11025. }'
  11026. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11027. # Check for a 64-bit object if we didn't find anything.
  11028. if test -z "$lt_cv_aix_libpath__CXX"; then
  11029. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11030. fi
  11031. fi
  11032. rm -f core conftest.err conftest.$ac_objext \
  11033. conftest$ac_exeext conftest.$ac_ext
  11034. if test -z "$lt_cv_aix_libpath__CXX"; then
  11035. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11036. fi
  11037. fi
  11038. aix_libpath=$lt_cv_aix_libpath__CXX
  11039. fi
  11040. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11041. # Warning - without using the other run time loading flags,
  11042. # -berok will link without error, but may produce a broken library.
  11043. no_undefined_flag_CXX=' ${wl}-bernotok'
  11044. allow_undefined_flag_CXX=' ${wl}-berok'
  11045. if test "$with_gnu_ld" = yes; then
  11046. # We only use this code for GNU lds that support --whole-archive.
  11047. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11048. else
  11049. # Exported symbols can be pulled into shared objects from archives
  11050. whole_archive_flag_spec_CXX='$convenience'
  11051. fi
  11052. archive_cmds_need_lc_CXX=yes
  11053. # This is similar to how AIX traditionally builds its shared
  11054. # libraries.
  11055. 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'
  11056. fi
  11057. fi
  11058. ;;
  11059. beos*)
  11060. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11061. allow_undefined_flag_CXX=unsupported
  11062. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11063. # support --undefined. This deserves some investigation. FIXME
  11064. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11065. else
  11066. ld_shlibs_CXX=no
  11067. fi
  11068. ;;
  11069. chorus*)
  11070. case $cc_basename in
  11071. *)
  11072. # FIXME: insert proper C++ library support
  11073. ld_shlibs_CXX=no
  11074. ;;
  11075. esac
  11076. ;;
  11077. cygwin* | mingw* | pw32* | cegcc*)
  11078. case $GXX,$cc_basename in
  11079. ,cl* | no,cl*)
  11080. # Native MSVC
  11081. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11082. # no search path for DLLs.
  11083. hardcode_libdir_flag_spec_CXX=' '
  11084. allow_undefined_flag_CXX=unsupported
  11085. always_export_symbols_CXX=yes
  11086. file_list_spec_CXX='@'
  11087. # Tell ltmain to make .lib files, not .a files.
  11088. libext=lib
  11089. # Tell ltmain to make .dll files, not .so files.
  11090. shrext_cmds=".dll"
  11091. # FIXME: Setting linknames here is a bad hack.
  11092. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11093. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11094. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11095. else
  11096. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11097. fi~
  11098. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11099. linknames='
  11100. # The linker will not automatically build a static lib if we build a DLL.
  11101. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11102. enable_shared_with_static_runtimes_CXX=yes
  11103. # Don't use ranlib
  11104. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11105. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11106. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11107. case $lt_outputfile in
  11108. *.exe|*.EXE) ;;
  11109. *)
  11110. lt_outputfile="$lt_outputfile.exe"
  11111. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11112. ;;
  11113. esac~
  11114. func_to_tool_file "$lt_outputfile"~
  11115. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11116. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11117. $RM "$lt_outputfile.manifest";
  11118. fi'
  11119. ;;
  11120. *)
  11121. # g++
  11122. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11123. # as there is no search path for DLLs.
  11124. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11125. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11126. allow_undefined_flag_CXX=unsupported
  11127. always_export_symbols_CXX=no
  11128. enable_shared_with_static_runtimes_CXX=yes
  11129. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11130. 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'
  11131. # If the export-symbols file already is a .def file (1st line
  11132. # is EXPORTS), use it as is; otherwise, prepend...
  11133. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11134. cp $export_symbols $output_objdir/$soname.def;
  11135. else
  11136. echo EXPORTS > $output_objdir/$soname.def;
  11137. cat $export_symbols >> $output_objdir/$soname.def;
  11138. fi~
  11139. $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'
  11140. else
  11141. ld_shlibs_CXX=no
  11142. fi
  11143. ;;
  11144. esac
  11145. ;;
  11146. darwin* | rhapsody*)
  11147. archive_cmds_need_lc_CXX=no
  11148. hardcode_direct_CXX=no
  11149. hardcode_automatic_CXX=yes
  11150. hardcode_shlibpath_var_CXX=unsupported
  11151. if test "$lt_cv_ld_force_load" = "yes"; then
  11152. 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\"`'
  11153. else
  11154. whole_archive_flag_spec_CXX=''
  11155. fi
  11156. link_all_deplibs_CXX=yes
  11157. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11158. case $cc_basename in
  11159. ifort*) _lt_dar_can_shared=yes ;;
  11160. *) _lt_dar_can_shared=$GCC ;;
  11161. esac
  11162. if test "$_lt_dar_can_shared" = "yes"; then
  11163. output_verbose_link_cmd=func_echo_all
  11164. 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}"
  11165. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11166. 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}"
  11167. 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}"
  11168. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11169. 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}"
  11170. 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}"
  11171. fi
  11172. else
  11173. ld_shlibs_CXX=no
  11174. fi
  11175. ;;
  11176. dgux*)
  11177. case $cc_basename in
  11178. ec++*)
  11179. # FIXME: insert proper C++ library support
  11180. ld_shlibs_CXX=no
  11181. ;;
  11182. ghcx*)
  11183. # Green Hills C++ Compiler
  11184. # FIXME: insert proper C++ library support
  11185. ld_shlibs_CXX=no
  11186. ;;
  11187. *)
  11188. # FIXME: insert proper C++ library support
  11189. ld_shlibs_CXX=no
  11190. ;;
  11191. esac
  11192. ;;
  11193. freebsd2.*)
  11194. # C++ shared libraries reported to be fairly broken before
  11195. # switch to ELF
  11196. ld_shlibs_CXX=no
  11197. ;;
  11198. freebsd-elf*)
  11199. archive_cmds_need_lc_CXX=no
  11200. ;;
  11201. freebsd* | dragonfly*)
  11202. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11203. # conventions
  11204. ld_shlibs_CXX=yes
  11205. ;;
  11206. gnu*)
  11207. ;;
  11208. haiku*)
  11209. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11210. link_all_deplibs_CXX=yes
  11211. ;;
  11212. hpux9*)
  11213. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11214. hardcode_libdir_separator_CXX=:
  11215. export_dynamic_flag_spec_CXX='${wl}-E'
  11216. hardcode_direct_CXX=yes
  11217. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11218. # but as the default
  11219. # location of the library.
  11220. case $cc_basename in
  11221. CC*)
  11222. # FIXME: insert proper C++ library support
  11223. ld_shlibs_CXX=no
  11224. ;;
  11225. aCC*)
  11226. 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'
  11227. # Commands to make compiler produce verbose output that lists
  11228. # what "hidden" libraries, object files and flags are used when
  11229. # linking a shared library.
  11230. #
  11231. # There doesn't appear to be a way to prevent this compiler from
  11232. # explicitly linking system object files so we need to strip them
  11233. # from the output so that they don't get included in the library
  11234. # dependencies.
  11235. 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"'
  11236. ;;
  11237. *)
  11238. if test "$GXX" = yes; then
  11239. 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'
  11240. else
  11241. # FIXME: insert proper C++ library support
  11242. ld_shlibs_CXX=no
  11243. fi
  11244. ;;
  11245. esac
  11246. ;;
  11247. hpux10*|hpux11*)
  11248. if test $with_gnu_ld = no; then
  11249. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11250. hardcode_libdir_separator_CXX=:
  11251. case $host_cpu in
  11252. hppa*64*|ia64*)
  11253. ;;
  11254. *)
  11255. export_dynamic_flag_spec_CXX='${wl}-E'
  11256. ;;
  11257. esac
  11258. fi
  11259. case $host_cpu in
  11260. hppa*64*|ia64*)
  11261. hardcode_direct_CXX=no
  11262. hardcode_shlibpath_var_CXX=no
  11263. ;;
  11264. *)
  11265. hardcode_direct_CXX=yes
  11266. hardcode_direct_absolute_CXX=yes
  11267. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11268. # but as the default
  11269. # location of the library.
  11270. ;;
  11271. esac
  11272. case $cc_basename in
  11273. CC*)
  11274. # FIXME: insert proper C++ library support
  11275. ld_shlibs_CXX=no
  11276. ;;
  11277. aCC*)
  11278. case $host_cpu in
  11279. hppa*64*)
  11280. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11281. ;;
  11282. ia64*)
  11283. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11284. ;;
  11285. *)
  11286. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11287. ;;
  11288. esac
  11289. # Commands to make compiler produce verbose output that lists
  11290. # what "hidden" libraries, object files and flags are used when
  11291. # linking a shared library.
  11292. #
  11293. # There doesn't appear to be a way to prevent this compiler from
  11294. # explicitly linking system object files so we need to strip them
  11295. # from the output so that they don't get included in the library
  11296. # dependencies.
  11297. 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"'
  11298. ;;
  11299. *)
  11300. if test "$GXX" = yes; then
  11301. if test $with_gnu_ld = no; then
  11302. case $host_cpu in
  11303. hppa*64*)
  11304. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11305. ;;
  11306. ia64*)
  11307. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11308. ;;
  11309. *)
  11310. 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'
  11311. ;;
  11312. esac
  11313. fi
  11314. else
  11315. # FIXME: insert proper C++ library support
  11316. ld_shlibs_CXX=no
  11317. fi
  11318. ;;
  11319. esac
  11320. ;;
  11321. interix[3-9]*)
  11322. hardcode_direct_CXX=no
  11323. hardcode_shlibpath_var_CXX=no
  11324. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11325. export_dynamic_flag_spec_CXX='${wl}-E'
  11326. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11327. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11328. # default) and relocated if they conflict, which is a slow very memory
  11329. # consuming and fragmenting process. To avoid this, we pick a random,
  11330. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11331. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11332. 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'
  11333. 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'
  11334. ;;
  11335. irix5* | irix6*)
  11336. case $cc_basename in
  11337. CC*)
  11338. # SGI C++
  11339. 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'
  11340. # Archives containing C++ object files must be created using
  11341. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11342. # necessary to make sure instantiated templates are included
  11343. # in the archive.
  11344. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11345. ;;
  11346. *)
  11347. if test "$GXX" = yes; then
  11348. if test "$with_gnu_ld" = no; then
  11349. 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'
  11350. else
  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"` -o $lib'
  11352. fi
  11353. fi
  11354. link_all_deplibs_CXX=yes
  11355. ;;
  11356. esac
  11357. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11358. hardcode_libdir_separator_CXX=:
  11359. inherit_rpath_CXX=yes
  11360. ;;
  11361. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11362. case $cc_basename in
  11363. KCC*)
  11364. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11365. # KCC will only create a shared library if the output file
  11366. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11367. # to its proper name (with version) after linking.
  11368. 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'
  11369. 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'
  11370. # Commands to make compiler produce verbose output that lists
  11371. # what "hidden" libraries, object files and flags are used when
  11372. # linking a shared library.
  11373. #
  11374. # There doesn't appear to be a way to prevent this compiler from
  11375. # explicitly linking system object files so we need to strip them
  11376. # from the output so that they don't get included in the library
  11377. # dependencies.
  11378. 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"'
  11379. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11380. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11381. # Archives containing C++ object files must be created using
  11382. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11383. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11384. ;;
  11385. icpc* | ecpc* )
  11386. # Intel C++
  11387. with_gnu_ld=yes
  11388. # version 8.0 and above of icpc choke on multiply defined symbols
  11389. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11390. # earlier do not add the objects themselves.
  11391. case `$CC -V 2>&1` in
  11392. *"Version 7."*)
  11393. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11394. 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'
  11395. ;;
  11396. *) # Version 8.0 or newer
  11397. tmp_idyn=
  11398. case $host_cpu in
  11399. ia64*) tmp_idyn=' -i_dynamic';;
  11400. esac
  11401. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11402. 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'
  11403. ;;
  11404. esac
  11405. archive_cmds_need_lc_CXX=no
  11406. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11407. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11408. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11409. ;;
  11410. pgCC* | pgcpp*)
  11411. # Portland Group C++ compiler
  11412. case `$CC -V` in
  11413. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11414. prelink_cmds_CXX='tpldir=Template.dir~
  11415. rm -rf $tpldir~
  11416. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11417. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11418. old_archive_cmds_CXX='tpldir=Template.dir~
  11419. rm -rf $tpldir~
  11420. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11421. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11422. $RANLIB $oldlib'
  11423. archive_cmds_CXX='tpldir=Template.dir~
  11424. rm -rf $tpldir~
  11425. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11426. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11427. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11428. rm -rf $tpldir~
  11429. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11430. $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'
  11431. ;;
  11432. *) # Version 6 and above use weak symbols
  11433. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11434. 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'
  11435. ;;
  11436. esac
  11437. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11438. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11439. 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'
  11440. ;;
  11441. cxx*)
  11442. # Compaq C++
  11443. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11444. 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'
  11445. runpath_var=LD_RUN_PATH
  11446. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11447. hardcode_libdir_separator_CXX=:
  11448. # Commands to make compiler produce verbose output that lists
  11449. # what "hidden" libraries, object files and flags are used when
  11450. # linking a shared library.
  11451. #
  11452. # There doesn't appear to be a way to prevent this compiler from
  11453. # explicitly linking system object files so we need to strip them
  11454. # from the output so that they don't get included in the library
  11455. # dependencies.
  11456. 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'
  11457. ;;
  11458. xl* | mpixl* | bgxl*)
  11459. # IBM XL 8.0 on PPC, with GNU ld
  11460. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11461. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11462. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11463. if test "x$supports_anon_versioning" = xyes; then
  11464. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11465. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11466. echo "local: *; };" >> $output_objdir/$libname.ver~
  11467. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11468. fi
  11469. ;;
  11470. *)
  11471. case `$CC -V 2>&1 | sed 5q` in
  11472. *Sun\ C*)
  11473. # Sun C++ 5.9
  11474. no_undefined_flag_CXX=' -zdefs'
  11475. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11476. 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'
  11477. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11478. 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'
  11479. compiler_needs_object_CXX=yes
  11480. # Not sure whether something based on
  11481. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11482. # would be better.
  11483. output_verbose_link_cmd='func_echo_all'
  11484. # Archives containing C++ object files must be created using
  11485. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11486. # necessary to make sure instantiated templates are included
  11487. # in the archive.
  11488. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11489. ;;
  11490. esac
  11491. ;;
  11492. esac
  11493. ;;
  11494. lynxos*)
  11495. # FIXME: insert proper C++ library support
  11496. ld_shlibs_CXX=no
  11497. ;;
  11498. m88k*)
  11499. # FIXME: insert proper C++ library support
  11500. ld_shlibs_CXX=no
  11501. ;;
  11502. mvs*)
  11503. case $cc_basename in
  11504. cxx*)
  11505. # FIXME: insert proper C++ library support
  11506. ld_shlibs_CXX=no
  11507. ;;
  11508. *)
  11509. # FIXME: insert proper C++ library support
  11510. ld_shlibs_CXX=no
  11511. ;;
  11512. esac
  11513. ;;
  11514. netbsd*)
  11515. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11516. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11517. wlarc=
  11518. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11519. hardcode_direct_CXX=yes
  11520. hardcode_shlibpath_var_CXX=no
  11521. fi
  11522. # Workaround some broken pre-1.5 toolchains
  11523. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11524. ;;
  11525. *nto* | *qnx*)
  11526. ld_shlibs_CXX=yes
  11527. ;;
  11528. openbsd2*)
  11529. # C++ shared libraries are fairly broken
  11530. ld_shlibs_CXX=no
  11531. ;;
  11532. openbsd*)
  11533. if test -f /usr/libexec/ld.so; then
  11534. hardcode_direct_CXX=yes
  11535. hardcode_shlibpath_var_CXX=no
  11536. hardcode_direct_absolute_CXX=yes
  11537. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11538. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11539. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11540. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11541. export_dynamic_flag_spec_CXX='${wl}-E'
  11542. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11543. fi
  11544. output_verbose_link_cmd=func_echo_all
  11545. else
  11546. ld_shlibs_CXX=no
  11547. fi
  11548. ;;
  11549. osf3* | osf4* | osf5*)
  11550. case $cc_basename in
  11551. KCC*)
  11552. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11553. # KCC will only create a shared library if the output file
  11554. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11555. # to its proper name (with version) after linking.
  11556. 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'
  11557. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11558. hardcode_libdir_separator_CXX=:
  11559. # Archives containing C++ object files must be created using
  11560. # the KAI C++ compiler.
  11561. case $host in
  11562. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11563. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11564. esac
  11565. ;;
  11566. RCC*)
  11567. # Rational C++ 2.4.1
  11568. # FIXME: insert proper C++ library support
  11569. ld_shlibs_CXX=no
  11570. ;;
  11571. cxx*)
  11572. case $host in
  11573. osf3*)
  11574. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11575. 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'
  11576. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11577. ;;
  11578. *)
  11579. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11580. 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'
  11581. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11582. echo "-hidden">> $lib.exp~
  11583. $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~
  11584. $RM $lib.exp'
  11585. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11586. ;;
  11587. esac
  11588. hardcode_libdir_separator_CXX=:
  11589. # Commands to make compiler produce verbose output that lists
  11590. # what "hidden" libraries, object files and flags are used when
  11591. # linking a shared library.
  11592. #
  11593. # There doesn't appear to be a way to prevent this compiler from
  11594. # explicitly linking system object files so we need to strip them
  11595. # from the output so that they don't get included in the library
  11596. # dependencies.
  11597. 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"'
  11598. ;;
  11599. *)
  11600. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11601. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11602. case $host in
  11603. osf3*)
  11604. 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'
  11605. ;;
  11606. *)
  11607. 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'
  11608. ;;
  11609. esac
  11610. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11611. hardcode_libdir_separator_CXX=:
  11612. # Commands to make compiler produce verbose output that lists
  11613. # what "hidden" libraries, object files and flags are used when
  11614. # linking a shared library.
  11615. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11616. else
  11617. # FIXME: insert proper C++ library support
  11618. ld_shlibs_CXX=no
  11619. fi
  11620. ;;
  11621. esac
  11622. ;;
  11623. psos*)
  11624. # FIXME: insert proper C++ library support
  11625. ld_shlibs_CXX=no
  11626. ;;
  11627. sunos4*)
  11628. case $cc_basename in
  11629. CC*)
  11630. # Sun C++ 4.x
  11631. # FIXME: insert proper C++ library support
  11632. ld_shlibs_CXX=no
  11633. ;;
  11634. lcc*)
  11635. # Lucid
  11636. # FIXME: insert proper C++ library support
  11637. ld_shlibs_CXX=no
  11638. ;;
  11639. *)
  11640. # FIXME: insert proper C++ library support
  11641. ld_shlibs_CXX=no
  11642. ;;
  11643. esac
  11644. ;;
  11645. solaris*)
  11646. case $cc_basename in
  11647. CC* | sunCC*)
  11648. # Sun C++ 4.2, 5.x and Centerline C++
  11649. archive_cmds_need_lc_CXX=yes
  11650. no_undefined_flag_CXX=' -zdefs'
  11651. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11652. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11653. $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'
  11654. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11655. hardcode_shlibpath_var_CXX=no
  11656. case $host_os in
  11657. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11658. *)
  11659. # The compiler driver will combine and reorder linker options,
  11660. # but understands `-z linker_flag'.
  11661. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11662. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11663. ;;
  11664. esac
  11665. link_all_deplibs_CXX=yes
  11666. output_verbose_link_cmd='func_echo_all'
  11667. # Archives containing C++ object files must be created using
  11668. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11669. # necessary to make sure instantiated templates are included
  11670. # in the archive.
  11671. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11672. ;;
  11673. gcx*)
  11674. # Green Hills C++ Compiler
  11675. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11676. # The C++ compiler must be used to create the archive.
  11677. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11678. ;;
  11679. *)
  11680. # GNU C++ compiler with Solaris linker
  11681. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11682. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11683. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11684. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11685. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11686. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11687. # Commands to make compiler produce verbose output that lists
  11688. # what "hidden" libraries, object files and flags are used when
  11689. # linking a shared library.
  11690. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11691. else
  11692. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11693. # platform.
  11694. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11695. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11696. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11697. # Commands to make compiler produce verbose output that lists
  11698. # what "hidden" libraries, object files and flags are used when
  11699. # linking a shared library.
  11700. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11701. fi
  11702. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11703. case $host_os in
  11704. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11705. *)
  11706. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11707. ;;
  11708. esac
  11709. fi
  11710. ;;
  11711. esac
  11712. ;;
  11713. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11714. no_undefined_flag_CXX='${wl}-z,text'
  11715. archive_cmds_need_lc_CXX=no
  11716. hardcode_shlibpath_var_CXX=no
  11717. runpath_var='LD_RUN_PATH'
  11718. case $cc_basename in
  11719. CC*)
  11720. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11721. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11722. ;;
  11723. *)
  11724. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11725. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11726. ;;
  11727. esac
  11728. ;;
  11729. sysv5* | sco3.2v5* | sco5v6*)
  11730. # Note: We can NOT use -z defs as we might desire, because we do not
  11731. # link with -lc, and that would cause any symbols used from libc to
  11732. # always be unresolved, which means just about no library would
  11733. # ever link correctly. If we're not using GNU ld we use -z text
  11734. # though, which does catch some bad symbols but isn't as heavy-handed
  11735. # as -z defs.
  11736. no_undefined_flag_CXX='${wl}-z,text'
  11737. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11738. archive_cmds_need_lc_CXX=no
  11739. hardcode_shlibpath_var_CXX=no
  11740. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11741. hardcode_libdir_separator_CXX=':'
  11742. link_all_deplibs_CXX=yes
  11743. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11744. runpath_var='LD_RUN_PATH'
  11745. case $cc_basename in
  11746. CC*)
  11747. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11748. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11749. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11750. '"$old_archive_cmds_CXX"
  11751. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11752. '"$reload_cmds_CXX"
  11753. ;;
  11754. *)
  11755. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11756. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11757. ;;
  11758. esac
  11759. ;;
  11760. tandem*)
  11761. case $cc_basename in
  11762. NCC*)
  11763. # NonStop-UX NCC 3.20
  11764. # FIXME: insert proper C++ library support
  11765. ld_shlibs_CXX=no
  11766. ;;
  11767. *)
  11768. # FIXME: insert proper C++ library support
  11769. ld_shlibs_CXX=no
  11770. ;;
  11771. esac
  11772. ;;
  11773. vxworks*)
  11774. # FIXME: insert proper C++ library support
  11775. ld_shlibs_CXX=no
  11776. ;;
  11777. *)
  11778. # FIXME: insert proper C++ library support
  11779. ld_shlibs_CXX=no
  11780. ;;
  11781. esac
  11782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11783. $as_echo "$ld_shlibs_CXX" >&6; }
  11784. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11785. GCC_CXX="$GXX"
  11786. LD_CXX="$LD"
  11787. ## CAVEAT EMPTOR:
  11788. ## There is no encapsulation within the following macros, do not change
  11789. ## the running order or otherwise move them around unless you know exactly
  11790. ## what you are doing...
  11791. # Dependencies to place before and after the object being linked:
  11792. predep_objects_CXX=
  11793. postdep_objects_CXX=
  11794. predeps_CXX=
  11795. postdeps_CXX=
  11796. compiler_lib_search_path_CXX=
  11797. cat > conftest.$ac_ext <<_LT_EOF
  11798. class Foo
  11799. {
  11800. public:
  11801. Foo (void) { a = 0; }
  11802. private:
  11803. int a;
  11804. };
  11805. _LT_EOF
  11806. _lt_libdeps_save_CFLAGS=$CFLAGS
  11807. case "$CC $CFLAGS " in #(
  11808. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11809. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11810. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11811. esac
  11812. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11813. (eval $ac_compile) 2>&5
  11814. ac_status=$?
  11815. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11816. test $ac_status = 0; }; then
  11817. # Parse the compiler output and extract the necessary
  11818. # objects, libraries and library flags.
  11819. # Sentinel used to keep track of whether or not we are before
  11820. # the conftest object file.
  11821. pre_test_object_deps_done=no
  11822. for p in `eval "$output_verbose_link_cmd"`; do
  11823. case ${prev}${p} in
  11824. -L* | -R* | -l*)
  11825. # Some compilers place space between "-{L,R}" and the path.
  11826. # Remove the space.
  11827. if test $p = "-L" ||
  11828. test $p = "-R"; then
  11829. prev=$p
  11830. continue
  11831. fi
  11832. # Expand the sysroot to ease extracting the directories later.
  11833. if test -z "$prev"; then
  11834. case $p in
  11835. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11836. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11837. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11838. esac
  11839. fi
  11840. case $p in
  11841. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11842. esac
  11843. if test "$pre_test_object_deps_done" = no; then
  11844. case ${prev} in
  11845. -L | -R)
  11846. # Internal compiler library paths should come after those
  11847. # provided the user. The postdeps already come after the
  11848. # user supplied libs so there is no need to process them.
  11849. if test -z "$compiler_lib_search_path_CXX"; then
  11850. compiler_lib_search_path_CXX="${prev}${p}"
  11851. else
  11852. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11853. fi
  11854. ;;
  11855. # The "-l" case would never come before the object being
  11856. # linked, so don't bother handling this case.
  11857. esac
  11858. else
  11859. if test -z "$postdeps_CXX"; then
  11860. postdeps_CXX="${prev}${p}"
  11861. else
  11862. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11863. fi
  11864. fi
  11865. prev=
  11866. ;;
  11867. *.lto.$objext) ;; # Ignore GCC LTO objects
  11868. *.$objext)
  11869. # This assumes that the test object file only shows up
  11870. # once in the compiler output.
  11871. if test "$p" = "conftest.$objext"; then
  11872. pre_test_object_deps_done=yes
  11873. continue
  11874. fi
  11875. if test "$pre_test_object_deps_done" = no; then
  11876. if test -z "$predep_objects_CXX"; then
  11877. predep_objects_CXX="$p"
  11878. else
  11879. predep_objects_CXX="$predep_objects_CXX $p"
  11880. fi
  11881. else
  11882. if test -z "$postdep_objects_CXX"; then
  11883. postdep_objects_CXX="$p"
  11884. else
  11885. postdep_objects_CXX="$postdep_objects_CXX $p"
  11886. fi
  11887. fi
  11888. ;;
  11889. *) ;; # Ignore the rest.
  11890. esac
  11891. done
  11892. # Clean up.
  11893. rm -f a.out a.exe
  11894. else
  11895. echo "libtool.m4: error: problem compiling CXX test program"
  11896. fi
  11897. $RM -f confest.$objext
  11898. CFLAGS=$_lt_libdeps_save_CFLAGS
  11899. # PORTME: override above test on systems where it is broken
  11900. case $host_os in
  11901. interix[3-9]*)
  11902. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11903. # hack all around it, let's just trust "g++" to DTRT.
  11904. predep_objects_CXX=
  11905. postdep_objects_CXX=
  11906. postdeps_CXX=
  11907. ;;
  11908. linux*)
  11909. case `$CC -V 2>&1 | sed 5q` in
  11910. *Sun\ C*)
  11911. # Sun C++ 5.9
  11912. # The more standards-conforming stlport4 library is
  11913. # incompatible with the Cstd library. Avoid specifying
  11914. # it if it's in CXXFLAGS. Ignore libCrun as
  11915. # -library=stlport4 depends on it.
  11916. case " $CXX $CXXFLAGS " in
  11917. *" -library=stlport4 "*)
  11918. solaris_use_stlport4=yes
  11919. ;;
  11920. esac
  11921. if test "$solaris_use_stlport4" != yes; then
  11922. postdeps_CXX='-library=Cstd -library=Crun'
  11923. fi
  11924. ;;
  11925. esac
  11926. ;;
  11927. solaris*)
  11928. case $cc_basename in
  11929. CC* | sunCC*)
  11930. # The more standards-conforming stlport4 library is
  11931. # incompatible with the Cstd library. Avoid specifying
  11932. # it if it's in CXXFLAGS. Ignore libCrun as
  11933. # -library=stlport4 depends on it.
  11934. case " $CXX $CXXFLAGS " in
  11935. *" -library=stlport4 "*)
  11936. solaris_use_stlport4=yes
  11937. ;;
  11938. esac
  11939. # Adding this requires a known-good setup of shared libraries for
  11940. # Sun compiler versions before 5.6, else PIC objects from an old
  11941. # archive will be linked into the output, leading to subtle bugs.
  11942. if test "$solaris_use_stlport4" != yes; then
  11943. postdeps_CXX='-library=Cstd -library=Crun'
  11944. fi
  11945. ;;
  11946. esac
  11947. ;;
  11948. esac
  11949. case " $postdeps_CXX " in
  11950. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11951. esac
  11952. compiler_lib_search_dirs_CXX=
  11953. if test -n "${compiler_lib_search_path_CXX}"; then
  11954. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11955. fi
  11956. lt_prog_compiler_wl_CXX=
  11957. lt_prog_compiler_pic_CXX=
  11958. lt_prog_compiler_static_CXX=
  11959. # C++ specific cases for pic, static, wl, etc.
  11960. if test "$GXX" = yes; then
  11961. lt_prog_compiler_wl_CXX='-Wl,'
  11962. lt_prog_compiler_static_CXX='-static'
  11963. case $host_os in
  11964. aix*)
  11965. # All AIX code is PIC.
  11966. if test "$host_cpu" = ia64; then
  11967. # AIX 5 now supports IA64 processor
  11968. lt_prog_compiler_static_CXX='-Bstatic'
  11969. fi
  11970. ;;
  11971. amigaos*)
  11972. case $host_cpu in
  11973. powerpc)
  11974. # see comment about AmigaOS4 .so support
  11975. lt_prog_compiler_pic_CXX='-fPIC'
  11976. ;;
  11977. m68k)
  11978. # FIXME: we need at least 68020 code to build shared libraries, but
  11979. # adding the `-m68020' flag to GCC prevents building anything better,
  11980. # like `-m68040'.
  11981. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11982. ;;
  11983. esac
  11984. ;;
  11985. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11986. # PIC is the default for these OSes.
  11987. ;;
  11988. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11989. # This hack is so that the source file can tell whether it is being
  11990. # built for inclusion in a dll (and should export symbols for example).
  11991. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11992. # (--disable-auto-import) libraries
  11993. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11994. ;;
  11995. darwin* | rhapsody*)
  11996. # PIC is the default on this platform
  11997. # Common symbols not allowed in MH_DYLIB files
  11998. lt_prog_compiler_pic_CXX='-fno-common'
  11999. ;;
  12000. *djgpp*)
  12001. # DJGPP does not support shared libraries at all
  12002. lt_prog_compiler_pic_CXX=
  12003. ;;
  12004. haiku*)
  12005. # PIC is the default for Haiku.
  12006. # The "-static" flag exists, but is broken.
  12007. lt_prog_compiler_static_CXX=
  12008. ;;
  12009. interix[3-9]*)
  12010. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12011. # Instead, we relocate shared libraries at runtime.
  12012. ;;
  12013. sysv4*MP*)
  12014. if test -d /usr/nec; then
  12015. lt_prog_compiler_pic_CXX=-Kconform_pic
  12016. fi
  12017. ;;
  12018. hpux*)
  12019. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12020. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12021. # sets the default TLS model and affects inlining.
  12022. case $host_cpu in
  12023. hppa*64*)
  12024. ;;
  12025. *)
  12026. lt_prog_compiler_pic_CXX='-fPIC'
  12027. ;;
  12028. esac
  12029. ;;
  12030. *qnx* | *nto*)
  12031. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12032. # it will coredump.
  12033. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12034. ;;
  12035. *)
  12036. lt_prog_compiler_pic_CXX='-fPIC'
  12037. ;;
  12038. esac
  12039. else
  12040. case $host_os in
  12041. aix[4-9]*)
  12042. # All AIX code is PIC.
  12043. if test "$host_cpu" = ia64; then
  12044. # AIX 5 now supports IA64 processor
  12045. lt_prog_compiler_static_CXX='-Bstatic'
  12046. else
  12047. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12048. fi
  12049. ;;
  12050. chorus*)
  12051. case $cc_basename in
  12052. cxch68*)
  12053. # Green Hills C++ Compiler
  12054. # _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"
  12055. ;;
  12056. esac
  12057. ;;
  12058. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12059. # This hack is so that the source file can tell whether it is being
  12060. # built for inclusion in a dll (and should export symbols for example).
  12061. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12062. ;;
  12063. dgux*)
  12064. case $cc_basename in
  12065. ec++*)
  12066. lt_prog_compiler_pic_CXX='-KPIC'
  12067. ;;
  12068. ghcx*)
  12069. # Green Hills C++ Compiler
  12070. lt_prog_compiler_pic_CXX='-pic'
  12071. ;;
  12072. *)
  12073. ;;
  12074. esac
  12075. ;;
  12076. freebsd* | dragonfly*)
  12077. # FreeBSD uses GNU C++
  12078. ;;
  12079. hpux9* | hpux10* | hpux11*)
  12080. case $cc_basename in
  12081. CC*)
  12082. lt_prog_compiler_wl_CXX='-Wl,'
  12083. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12084. if test "$host_cpu" != ia64; then
  12085. lt_prog_compiler_pic_CXX='+Z'
  12086. fi
  12087. ;;
  12088. aCC*)
  12089. lt_prog_compiler_wl_CXX='-Wl,'
  12090. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12091. case $host_cpu in
  12092. hppa*64*|ia64*)
  12093. # +Z the default
  12094. ;;
  12095. *)
  12096. lt_prog_compiler_pic_CXX='+Z'
  12097. ;;
  12098. esac
  12099. ;;
  12100. *)
  12101. ;;
  12102. esac
  12103. ;;
  12104. interix*)
  12105. # This is c89, which is MS Visual C++ (no shared libs)
  12106. # Anyone wants to do a port?
  12107. ;;
  12108. irix5* | irix6* | nonstopux*)
  12109. case $cc_basename in
  12110. CC*)
  12111. lt_prog_compiler_wl_CXX='-Wl,'
  12112. lt_prog_compiler_static_CXX='-non_shared'
  12113. # CC pic flag -KPIC is the default.
  12114. ;;
  12115. *)
  12116. ;;
  12117. esac
  12118. ;;
  12119. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12120. case $cc_basename in
  12121. KCC*)
  12122. # KAI C++ Compiler
  12123. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12124. lt_prog_compiler_pic_CXX='-fPIC'
  12125. ;;
  12126. ecpc* )
  12127. # old Intel C++ for x86_64 which still supported -KPIC.
  12128. lt_prog_compiler_wl_CXX='-Wl,'
  12129. lt_prog_compiler_pic_CXX='-KPIC'
  12130. lt_prog_compiler_static_CXX='-static'
  12131. ;;
  12132. icpc* )
  12133. # Intel C++, used to be incompatible with GCC.
  12134. # ICC 10 doesn't accept -KPIC any more.
  12135. lt_prog_compiler_wl_CXX='-Wl,'
  12136. lt_prog_compiler_pic_CXX='-fPIC'
  12137. lt_prog_compiler_static_CXX='-static'
  12138. ;;
  12139. pgCC* | pgcpp*)
  12140. # Portland Group C++ compiler
  12141. lt_prog_compiler_wl_CXX='-Wl,'
  12142. lt_prog_compiler_pic_CXX='-fpic'
  12143. lt_prog_compiler_static_CXX='-Bstatic'
  12144. ;;
  12145. cxx*)
  12146. # Compaq C++
  12147. # Make sure the PIC flag is empty. It appears that all Alpha
  12148. # Linux and Compaq Tru64 Unix objects are PIC.
  12149. lt_prog_compiler_pic_CXX=
  12150. lt_prog_compiler_static_CXX='-non_shared'
  12151. ;;
  12152. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12153. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12154. lt_prog_compiler_wl_CXX='-Wl,'
  12155. lt_prog_compiler_pic_CXX='-qpic'
  12156. lt_prog_compiler_static_CXX='-qstaticlink'
  12157. ;;
  12158. *)
  12159. case `$CC -V 2>&1 | sed 5q` in
  12160. *Sun\ C*)
  12161. # Sun C++ 5.9
  12162. lt_prog_compiler_pic_CXX='-KPIC'
  12163. lt_prog_compiler_static_CXX='-Bstatic'
  12164. lt_prog_compiler_wl_CXX='-Qoption ld '
  12165. ;;
  12166. esac
  12167. ;;
  12168. esac
  12169. ;;
  12170. lynxos*)
  12171. ;;
  12172. m88k*)
  12173. ;;
  12174. mvs*)
  12175. case $cc_basename in
  12176. cxx*)
  12177. lt_prog_compiler_pic_CXX='-W c,exportall'
  12178. ;;
  12179. *)
  12180. ;;
  12181. esac
  12182. ;;
  12183. netbsd*)
  12184. ;;
  12185. *qnx* | *nto*)
  12186. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12187. # it will coredump.
  12188. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12189. ;;
  12190. osf3* | osf4* | osf5*)
  12191. case $cc_basename in
  12192. KCC*)
  12193. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12194. ;;
  12195. RCC*)
  12196. # Rational C++ 2.4.1
  12197. lt_prog_compiler_pic_CXX='-pic'
  12198. ;;
  12199. cxx*)
  12200. # Digital/Compaq C++
  12201. lt_prog_compiler_wl_CXX='-Wl,'
  12202. # Make sure the PIC flag is empty. It appears that all Alpha
  12203. # Linux and Compaq Tru64 Unix objects are PIC.
  12204. lt_prog_compiler_pic_CXX=
  12205. lt_prog_compiler_static_CXX='-non_shared'
  12206. ;;
  12207. *)
  12208. ;;
  12209. esac
  12210. ;;
  12211. psos*)
  12212. ;;
  12213. solaris*)
  12214. case $cc_basename in
  12215. CC* | sunCC*)
  12216. # Sun C++ 4.2, 5.x and Centerline C++
  12217. lt_prog_compiler_pic_CXX='-KPIC'
  12218. lt_prog_compiler_static_CXX='-Bstatic'
  12219. lt_prog_compiler_wl_CXX='-Qoption ld '
  12220. ;;
  12221. gcx*)
  12222. # Green Hills C++ Compiler
  12223. lt_prog_compiler_pic_CXX='-PIC'
  12224. ;;
  12225. *)
  12226. ;;
  12227. esac
  12228. ;;
  12229. sunos4*)
  12230. case $cc_basename in
  12231. CC*)
  12232. # Sun C++ 4.x
  12233. lt_prog_compiler_pic_CXX='-pic'
  12234. lt_prog_compiler_static_CXX='-Bstatic'
  12235. ;;
  12236. lcc*)
  12237. # Lucid
  12238. lt_prog_compiler_pic_CXX='-pic'
  12239. ;;
  12240. *)
  12241. ;;
  12242. esac
  12243. ;;
  12244. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12245. case $cc_basename in
  12246. CC*)
  12247. lt_prog_compiler_wl_CXX='-Wl,'
  12248. lt_prog_compiler_pic_CXX='-KPIC'
  12249. lt_prog_compiler_static_CXX='-Bstatic'
  12250. ;;
  12251. esac
  12252. ;;
  12253. tandem*)
  12254. case $cc_basename in
  12255. NCC*)
  12256. # NonStop-UX NCC 3.20
  12257. lt_prog_compiler_pic_CXX='-KPIC'
  12258. ;;
  12259. *)
  12260. ;;
  12261. esac
  12262. ;;
  12263. vxworks*)
  12264. ;;
  12265. *)
  12266. lt_prog_compiler_can_build_shared_CXX=no
  12267. ;;
  12268. esac
  12269. fi
  12270. case $host_os in
  12271. # For platforms which do not support PIC, -DPIC is meaningless:
  12272. *djgpp*)
  12273. lt_prog_compiler_pic_CXX=
  12274. ;;
  12275. *)
  12276. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12277. ;;
  12278. esac
  12279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12280. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12281. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12282. $as_echo_n "(cached) " >&6
  12283. else
  12284. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12285. fi
  12286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12287. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12288. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12289. #
  12290. # Check to make sure the PIC flag actually works.
  12291. #
  12292. if test -n "$lt_prog_compiler_pic_CXX"; then
  12293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12294. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12295. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12296. $as_echo_n "(cached) " >&6
  12297. else
  12298. lt_cv_prog_compiler_pic_works_CXX=no
  12299. ac_outfile=conftest.$ac_objext
  12300. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12301. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12302. # Insert the option either (1) after the last *FLAGS variable, or
  12303. # (2) before a word containing "conftest.", or (3) at the end.
  12304. # Note that $ac_compile itself does not contain backslashes and begins
  12305. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12306. # The option is referenced via a variable to avoid confusing sed.
  12307. lt_compile=`echo "$ac_compile" | $SED \
  12308. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12309. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12310. -e 's:$: $lt_compiler_flag:'`
  12311. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12312. (eval "$lt_compile" 2>conftest.err)
  12313. ac_status=$?
  12314. cat conftest.err >&5
  12315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12316. if (exit $ac_status) && test -s "$ac_outfile"; then
  12317. # The compiler can only warn and ignore the option if not recognized
  12318. # So say no if there are warnings other than the usual output.
  12319. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12320. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12321. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12322. lt_cv_prog_compiler_pic_works_CXX=yes
  12323. fi
  12324. fi
  12325. $RM conftest*
  12326. fi
  12327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12328. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12329. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12330. case $lt_prog_compiler_pic_CXX in
  12331. "" | " "*) ;;
  12332. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12333. esac
  12334. else
  12335. lt_prog_compiler_pic_CXX=
  12336. lt_prog_compiler_can_build_shared_CXX=no
  12337. fi
  12338. fi
  12339. #
  12340. # Check to make sure the static flag actually works.
  12341. #
  12342. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12344. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12345. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12346. $as_echo_n "(cached) " >&6
  12347. else
  12348. lt_cv_prog_compiler_static_works_CXX=no
  12349. save_LDFLAGS="$LDFLAGS"
  12350. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12351. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12352. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12353. # The linker can only warn and ignore the option if not recognized
  12354. # So say no if there are warnings
  12355. if test -s conftest.err; then
  12356. # Append any errors to the config.log.
  12357. cat conftest.err 1>&5
  12358. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12359. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12360. if diff conftest.exp conftest.er2 >/dev/null; then
  12361. lt_cv_prog_compiler_static_works_CXX=yes
  12362. fi
  12363. else
  12364. lt_cv_prog_compiler_static_works_CXX=yes
  12365. fi
  12366. fi
  12367. $RM -r conftest*
  12368. LDFLAGS="$save_LDFLAGS"
  12369. fi
  12370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12371. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12372. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12373. :
  12374. else
  12375. lt_prog_compiler_static_CXX=
  12376. fi
  12377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12378. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12379. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12380. $as_echo_n "(cached) " >&6
  12381. else
  12382. lt_cv_prog_compiler_c_o_CXX=no
  12383. $RM -r conftest 2>/dev/null
  12384. mkdir conftest
  12385. cd conftest
  12386. mkdir out
  12387. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12388. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12389. # Insert the option either (1) after the last *FLAGS variable, or
  12390. # (2) before a word containing "conftest.", or (3) at the end.
  12391. # Note that $ac_compile itself does not contain backslashes and begins
  12392. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12393. lt_compile=`echo "$ac_compile" | $SED \
  12394. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12395. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12396. -e 's:$: $lt_compiler_flag:'`
  12397. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12398. (eval "$lt_compile" 2>out/conftest.err)
  12399. ac_status=$?
  12400. cat out/conftest.err >&5
  12401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12402. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12403. then
  12404. # The compiler can only warn and ignore the option if not recognized
  12405. # So say no if there are warnings
  12406. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12407. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12408. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12409. lt_cv_prog_compiler_c_o_CXX=yes
  12410. fi
  12411. fi
  12412. chmod u+w . 2>&5
  12413. $RM conftest*
  12414. # SGI C++ compiler will create directory out/ii_files/ for
  12415. # template instantiation
  12416. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12417. $RM out/* && rmdir out
  12418. cd ..
  12419. $RM -r conftest
  12420. $RM conftest*
  12421. fi
  12422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12423. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12425. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12426. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12427. $as_echo_n "(cached) " >&6
  12428. else
  12429. lt_cv_prog_compiler_c_o_CXX=no
  12430. $RM -r conftest 2>/dev/null
  12431. mkdir conftest
  12432. cd conftest
  12433. mkdir out
  12434. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12435. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12436. # Insert the option either (1) after the last *FLAGS variable, or
  12437. # (2) before a word containing "conftest.", or (3) at the end.
  12438. # Note that $ac_compile itself does not contain backslashes and begins
  12439. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12440. lt_compile=`echo "$ac_compile" | $SED \
  12441. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12442. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12443. -e 's:$: $lt_compiler_flag:'`
  12444. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12445. (eval "$lt_compile" 2>out/conftest.err)
  12446. ac_status=$?
  12447. cat out/conftest.err >&5
  12448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12449. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12450. then
  12451. # The compiler can only warn and ignore the option if not recognized
  12452. # So say no if there are warnings
  12453. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12454. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12455. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12456. lt_cv_prog_compiler_c_o_CXX=yes
  12457. fi
  12458. fi
  12459. chmod u+w . 2>&5
  12460. $RM conftest*
  12461. # SGI C++ compiler will create directory out/ii_files/ for
  12462. # template instantiation
  12463. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12464. $RM out/* && rmdir out
  12465. cd ..
  12466. $RM -r conftest
  12467. $RM conftest*
  12468. fi
  12469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12470. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12471. hard_links="nottested"
  12472. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12473. # do not overwrite the value of need_locks provided by the user
  12474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12475. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12476. hard_links=yes
  12477. $RM conftest*
  12478. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12479. touch conftest.a
  12480. ln conftest.a conftest.b 2>&5 || hard_links=no
  12481. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12483. $as_echo "$hard_links" >&6; }
  12484. if test "$hard_links" = no; then
  12485. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12486. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12487. need_locks=warn
  12488. fi
  12489. else
  12490. need_locks=no
  12491. fi
  12492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12493. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12494. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12495. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12496. case $host_os in
  12497. aix[4-9]*)
  12498. # If we're using GNU nm, then we don't want the "-C" option.
  12499. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12500. # Also, AIX nm treats weak defined symbols like other global defined
  12501. # symbols, whereas GNU nm marks them as "W".
  12502. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12503. 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'
  12504. else
  12505. 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'
  12506. fi
  12507. ;;
  12508. pw32*)
  12509. export_symbols_cmds_CXX="$ltdll_cmds"
  12510. ;;
  12511. cygwin* | mingw* | cegcc*)
  12512. case $cc_basename in
  12513. cl*)
  12514. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12515. ;;
  12516. *)
  12517. 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'
  12518. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12519. ;;
  12520. esac
  12521. ;;
  12522. *)
  12523. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12524. ;;
  12525. esac
  12526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12527. $as_echo "$ld_shlibs_CXX" >&6; }
  12528. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12529. with_gnu_ld_CXX=$with_gnu_ld
  12530. #
  12531. # Do we need to explicitly link libc?
  12532. #
  12533. case "x$archive_cmds_need_lc_CXX" in
  12534. x|xyes)
  12535. # Assume -lc should be added
  12536. archive_cmds_need_lc_CXX=yes
  12537. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12538. case $archive_cmds_CXX in
  12539. *'~'*)
  12540. # FIXME: we may have to deal with multi-command sequences.
  12541. ;;
  12542. '$CC '*)
  12543. # Test whether the compiler implicitly links with -lc since on some
  12544. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12545. # to ld, don't add -lc before -lgcc.
  12546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12547. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12548. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12549. $as_echo_n "(cached) " >&6
  12550. else
  12551. $RM conftest*
  12552. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12553. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12554. (eval $ac_compile) 2>&5
  12555. ac_status=$?
  12556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12557. test $ac_status = 0; } 2>conftest.err; then
  12558. soname=conftest
  12559. lib=conftest
  12560. libobjs=conftest.$ac_objext
  12561. deplibs=
  12562. wl=$lt_prog_compiler_wl_CXX
  12563. pic_flag=$lt_prog_compiler_pic_CXX
  12564. compiler_flags=-v
  12565. linker_flags=-v
  12566. verstring=
  12567. output_objdir=.
  12568. libname=conftest
  12569. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12570. allow_undefined_flag_CXX=
  12571. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12572. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12573. ac_status=$?
  12574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12575. test $ac_status = 0; }
  12576. then
  12577. lt_cv_archive_cmds_need_lc_CXX=no
  12578. else
  12579. lt_cv_archive_cmds_need_lc_CXX=yes
  12580. fi
  12581. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12582. else
  12583. cat conftest.err 1>&5
  12584. fi
  12585. $RM conftest*
  12586. fi
  12587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12588. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12589. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12590. ;;
  12591. esac
  12592. fi
  12593. ;;
  12594. esac
  12595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12596. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12597. library_names_spec=
  12598. libname_spec='lib$name'
  12599. soname_spec=
  12600. shrext_cmds=".so"
  12601. postinstall_cmds=
  12602. postuninstall_cmds=
  12603. finish_cmds=
  12604. finish_eval=
  12605. shlibpath_var=
  12606. shlibpath_overrides_runpath=unknown
  12607. version_type=none
  12608. dynamic_linker="$host_os ld.so"
  12609. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12610. need_lib_prefix=unknown
  12611. hardcode_into_libs=no
  12612. # when you set need_version to no, make sure it does not cause -set_version
  12613. # flags to be left without arguments
  12614. need_version=unknown
  12615. case $host_os in
  12616. aix3*)
  12617. version_type=linux # correct to gnu/linux during the next big refactor
  12618. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12619. shlibpath_var=LIBPATH
  12620. # AIX 3 has no versioning support, so we append a major version to the name.
  12621. soname_spec='${libname}${release}${shared_ext}$major'
  12622. ;;
  12623. aix[4-9]*)
  12624. version_type=linux # correct to gnu/linux during the next big refactor
  12625. need_lib_prefix=no
  12626. need_version=no
  12627. hardcode_into_libs=yes
  12628. if test "$host_cpu" = ia64; then
  12629. # AIX 5 supports IA64
  12630. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12631. shlibpath_var=LD_LIBRARY_PATH
  12632. else
  12633. # With GCC up to 2.95.x, collect2 would create an import file
  12634. # for dependence libraries. The import file would start with
  12635. # the line `#! .'. This would cause the generated library to
  12636. # depend on `.', always an invalid library. This was fixed in
  12637. # development snapshots of GCC prior to 3.0.
  12638. case $host_os in
  12639. aix4 | aix4.[01] | aix4.[01].*)
  12640. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12641. echo ' yes '
  12642. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12643. :
  12644. else
  12645. can_build_shared=no
  12646. fi
  12647. ;;
  12648. esac
  12649. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12650. # soname into executable. Probably we can add versioning support to
  12651. # collect2, so additional links can be useful in future.
  12652. if test "$aix_use_runtimelinking" = yes; then
  12653. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12654. # instead of lib<name>.a to let people know that these are not
  12655. # typical AIX shared libraries.
  12656. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12657. else
  12658. # We preserve .a as extension for shared libraries through AIX4.2
  12659. # and later when we are not doing run time linking.
  12660. library_names_spec='${libname}${release}.a $libname.a'
  12661. soname_spec='${libname}${release}${shared_ext}$major'
  12662. fi
  12663. shlibpath_var=LIBPATH
  12664. fi
  12665. ;;
  12666. amigaos*)
  12667. case $host_cpu in
  12668. powerpc)
  12669. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12670. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12671. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12672. ;;
  12673. m68k)
  12674. library_names_spec='$libname.ixlibrary $libname.a'
  12675. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12676. 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'
  12677. ;;
  12678. esac
  12679. ;;
  12680. beos*)
  12681. library_names_spec='${libname}${shared_ext}'
  12682. dynamic_linker="$host_os ld.so"
  12683. shlibpath_var=LIBRARY_PATH
  12684. ;;
  12685. bsdi[45]*)
  12686. version_type=linux # correct to gnu/linux during the next big refactor
  12687. need_version=no
  12688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12689. soname_spec='${libname}${release}${shared_ext}$major'
  12690. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12691. shlibpath_var=LD_LIBRARY_PATH
  12692. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12693. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12694. # the default ld.so.conf also contains /usr/contrib/lib and
  12695. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12696. # libtool to hard-code these into programs
  12697. ;;
  12698. cygwin* | mingw* | pw32* | cegcc*)
  12699. version_type=windows
  12700. shrext_cmds=".dll"
  12701. need_version=no
  12702. need_lib_prefix=no
  12703. case $GCC,$cc_basename in
  12704. yes,*)
  12705. # gcc
  12706. library_names_spec='$libname.dll.a'
  12707. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12708. postinstall_cmds='base_file=`basename \${file}`~
  12709. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12710. dldir=$destdir/`dirname \$dlpath`~
  12711. test -d \$dldir || mkdir -p \$dldir~
  12712. $install_prog $dir/$dlname \$dldir/$dlname~
  12713. chmod a+x \$dldir/$dlname~
  12714. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12715. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12716. fi'
  12717. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12718. dlpath=$dir/\$dldll~
  12719. $RM \$dlpath'
  12720. shlibpath_overrides_runpath=yes
  12721. case $host_os in
  12722. cygwin*)
  12723. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12724. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12725. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12726. ;;
  12727. mingw* | cegcc*)
  12728. # MinGW DLLs use traditional 'lib' prefix
  12729. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12730. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12731. ;;
  12732. pw32*)
  12733. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12734. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12735. ;;
  12736. esac
  12737. dynamic_linker='Win32 ld.exe'
  12738. ;;
  12739. *,cl*)
  12740. # Native MSVC
  12741. libname_spec='$name'
  12742. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12743. library_names_spec='${libname}.dll.lib'
  12744. case $build_os in
  12745. mingw*)
  12746. sys_lib_search_path_spec=
  12747. lt_save_ifs=$IFS
  12748. IFS=';'
  12749. for lt_path in $LIB
  12750. do
  12751. IFS=$lt_save_ifs
  12752. # Let DOS variable expansion print the short 8.3 style file name.
  12753. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12754. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12755. done
  12756. IFS=$lt_save_ifs
  12757. # Convert to MSYS style.
  12758. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12759. ;;
  12760. cygwin*)
  12761. # Convert to unix form, then to dos form, then back to unix form
  12762. # but this time dos style (no spaces!) so that the unix form looks
  12763. # like /cygdrive/c/PROGRA~1:/cygdr...
  12764. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12765. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12766. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12767. ;;
  12768. *)
  12769. sys_lib_search_path_spec="$LIB"
  12770. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12771. # It is most probably a Windows format PATH.
  12772. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12773. else
  12774. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12775. fi
  12776. # FIXME: find the short name or the path components, as spaces are
  12777. # common. (e.g. "Program Files" -> "PROGRA~1")
  12778. ;;
  12779. esac
  12780. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12781. postinstall_cmds='base_file=`basename \${file}`~
  12782. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12783. dldir=$destdir/`dirname \$dlpath`~
  12784. test -d \$dldir || mkdir -p \$dldir~
  12785. $install_prog $dir/$dlname \$dldir/$dlname'
  12786. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12787. dlpath=$dir/\$dldll~
  12788. $RM \$dlpath'
  12789. shlibpath_overrides_runpath=yes
  12790. dynamic_linker='Win32 link.exe'
  12791. ;;
  12792. *)
  12793. # Assume MSVC wrapper
  12794. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12795. dynamic_linker='Win32 ld.exe'
  12796. ;;
  12797. esac
  12798. # FIXME: first we should search . and the directory the executable is in
  12799. shlibpath_var=PATH
  12800. ;;
  12801. darwin* | rhapsody*)
  12802. dynamic_linker="$host_os dyld"
  12803. version_type=darwin
  12804. need_lib_prefix=no
  12805. need_version=no
  12806. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12807. soname_spec='${libname}${release}${major}$shared_ext'
  12808. shlibpath_overrides_runpath=yes
  12809. shlibpath_var=DYLD_LIBRARY_PATH
  12810. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12811. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12812. ;;
  12813. dgux*)
  12814. version_type=linux # correct to gnu/linux during the next big refactor
  12815. need_lib_prefix=no
  12816. need_version=no
  12817. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12818. soname_spec='${libname}${release}${shared_ext}$major'
  12819. shlibpath_var=LD_LIBRARY_PATH
  12820. ;;
  12821. freebsd* | dragonfly*)
  12822. # DragonFly does not have aout. When/if they implement a new
  12823. # versioning mechanism, adjust this.
  12824. if test -x /usr/bin/objformat; then
  12825. objformat=`/usr/bin/objformat`
  12826. else
  12827. case $host_os in
  12828. freebsd[23].*) objformat=aout ;;
  12829. *) objformat=elf ;;
  12830. esac
  12831. fi
  12832. version_type=freebsd-$objformat
  12833. case $version_type in
  12834. freebsd-elf*)
  12835. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12836. need_version=no
  12837. need_lib_prefix=no
  12838. ;;
  12839. freebsd-*)
  12840. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12841. need_version=yes
  12842. ;;
  12843. esac
  12844. shlibpath_var=LD_LIBRARY_PATH
  12845. case $host_os in
  12846. freebsd2.*)
  12847. shlibpath_overrides_runpath=yes
  12848. ;;
  12849. freebsd3.[01]* | freebsdelf3.[01]*)
  12850. shlibpath_overrides_runpath=yes
  12851. hardcode_into_libs=yes
  12852. ;;
  12853. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12854. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12855. shlibpath_overrides_runpath=no
  12856. hardcode_into_libs=yes
  12857. ;;
  12858. *) # from 4.6 on, and DragonFly
  12859. shlibpath_overrides_runpath=yes
  12860. hardcode_into_libs=yes
  12861. ;;
  12862. esac
  12863. ;;
  12864. gnu*)
  12865. version_type=linux # correct to gnu/linux during the next big refactor
  12866. need_lib_prefix=no
  12867. need_version=no
  12868. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12869. soname_spec='${libname}${release}${shared_ext}$major'
  12870. shlibpath_var=LD_LIBRARY_PATH
  12871. shlibpath_overrides_runpath=no
  12872. hardcode_into_libs=yes
  12873. ;;
  12874. haiku*)
  12875. version_type=linux # correct to gnu/linux during the next big refactor
  12876. need_lib_prefix=no
  12877. need_version=no
  12878. dynamic_linker="$host_os runtime_loader"
  12879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12880. soname_spec='${libname}${release}${shared_ext}$major'
  12881. shlibpath_var=LIBRARY_PATH
  12882. shlibpath_overrides_runpath=yes
  12883. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12884. hardcode_into_libs=yes
  12885. ;;
  12886. hpux9* | hpux10* | hpux11*)
  12887. # Give a soname corresponding to the major version so that dld.sl refuses to
  12888. # link against other versions.
  12889. version_type=sunos
  12890. need_lib_prefix=no
  12891. need_version=no
  12892. case $host_cpu in
  12893. ia64*)
  12894. shrext_cmds='.so'
  12895. hardcode_into_libs=yes
  12896. dynamic_linker="$host_os dld.so"
  12897. shlibpath_var=LD_LIBRARY_PATH
  12898. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12900. soname_spec='${libname}${release}${shared_ext}$major'
  12901. if test "X$HPUX_IA64_MODE" = X32; then
  12902. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12903. else
  12904. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12905. fi
  12906. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12907. ;;
  12908. hppa*64*)
  12909. shrext_cmds='.sl'
  12910. hardcode_into_libs=yes
  12911. dynamic_linker="$host_os dld.sl"
  12912. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12913. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12914. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12915. soname_spec='${libname}${release}${shared_ext}$major'
  12916. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12917. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12918. ;;
  12919. *)
  12920. shrext_cmds='.sl'
  12921. dynamic_linker="$host_os dld.sl"
  12922. shlibpath_var=SHLIB_PATH
  12923. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12924. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12925. soname_spec='${libname}${release}${shared_ext}$major'
  12926. ;;
  12927. esac
  12928. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12929. postinstall_cmds='chmod 555 $lib'
  12930. # or fails outright, so override atomically:
  12931. install_override_mode=555
  12932. ;;
  12933. interix[3-9]*)
  12934. version_type=linux # correct to gnu/linux during the next big refactor
  12935. need_lib_prefix=no
  12936. need_version=no
  12937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12938. soname_spec='${libname}${release}${shared_ext}$major'
  12939. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12940. shlibpath_var=LD_LIBRARY_PATH
  12941. shlibpath_overrides_runpath=no
  12942. hardcode_into_libs=yes
  12943. ;;
  12944. irix5* | irix6* | nonstopux*)
  12945. case $host_os in
  12946. nonstopux*) version_type=nonstopux ;;
  12947. *)
  12948. if test "$lt_cv_prog_gnu_ld" = yes; then
  12949. version_type=linux # correct to gnu/linux during the next big refactor
  12950. else
  12951. version_type=irix
  12952. fi ;;
  12953. esac
  12954. need_lib_prefix=no
  12955. need_version=no
  12956. soname_spec='${libname}${release}${shared_ext}$major'
  12957. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12958. case $host_os in
  12959. irix5* | nonstopux*)
  12960. libsuff= shlibsuff=
  12961. ;;
  12962. *)
  12963. case $LD in # libtool.m4 will add one of these switches to LD
  12964. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12965. libsuff= shlibsuff= libmagic=32-bit;;
  12966. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12967. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12968. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12969. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12970. *) libsuff= shlibsuff= libmagic=never-match;;
  12971. esac
  12972. ;;
  12973. esac
  12974. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12975. shlibpath_overrides_runpath=no
  12976. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12977. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12978. hardcode_into_libs=yes
  12979. ;;
  12980. # No shared lib support for Linux oldld, aout, or coff.
  12981. linux*oldld* | linux*aout* | linux*coff*)
  12982. dynamic_linker=no
  12983. ;;
  12984. # This must be glibc/ELF.
  12985. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12986. version_type=linux # correct to gnu/linux during the next big refactor
  12987. need_lib_prefix=no
  12988. need_version=no
  12989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12990. soname_spec='${libname}${release}${shared_ext}$major'
  12991. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12992. shlibpath_var=LD_LIBRARY_PATH
  12993. shlibpath_overrides_runpath=no
  12994. # Some binutils ld are patched to set DT_RUNPATH
  12995. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12996. $as_echo_n "(cached) " >&6
  12997. else
  12998. lt_cv_shlibpath_overrides_runpath=no
  12999. save_LDFLAGS=$LDFLAGS
  13000. save_libdir=$libdir
  13001. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13002. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13004. /* end confdefs.h. */
  13005. int
  13006. main ()
  13007. {
  13008. ;
  13009. return 0;
  13010. }
  13011. _ACEOF
  13012. if ac_fn_cxx_try_link "$LINENO"; then :
  13013. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13014. lt_cv_shlibpath_overrides_runpath=yes
  13015. fi
  13016. fi
  13017. rm -f core conftest.err conftest.$ac_objext \
  13018. conftest$ac_exeext conftest.$ac_ext
  13019. LDFLAGS=$save_LDFLAGS
  13020. libdir=$save_libdir
  13021. fi
  13022. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13023. # This implies no fast_install, which is unacceptable.
  13024. # Some rework will be needed to allow for fast_install
  13025. # before this can be enabled.
  13026. hardcode_into_libs=yes
  13027. # Append ld.so.conf contents to the search path
  13028. if test -f /etc/ld.so.conf; then
  13029. 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' ' '`
  13030. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13031. fi
  13032. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13033. # powerpc, because MkLinux only supported shared libraries with the
  13034. # GNU dynamic linker. Since this was broken with cross compilers,
  13035. # most powerpc-linux boxes support dynamic linking these days and
  13036. # people can always --disable-shared, the test was removed, and we
  13037. # assume the GNU/Linux dynamic linker is in use.
  13038. dynamic_linker='GNU/Linux ld.so'
  13039. ;;
  13040. netbsd*)
  13041. version_type=sunos
  13042. need_lib_prefix=no
  13043. need_version=no
  13044. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13046. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13047. dynamic_linker='NetBSD (a.out) ld.so'
  13048. else
  13049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13050. soname_spec='${libname}${release}${shared_ext}$major'
  13051. dynamic_linker='NetBSD ld.elf_so'
  13052. fi
  13053. shlibpath_var=LD_LIBRARY_PATH
  13054. shlibpath_overrides_runpath=yes
  13055. hardcode_into_libs=yes
  13056. ;;
  13057. newsos6)
  13058. version_type=linux # correct to gnu/linux during the next big refactor
  13059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13060. shlibpath_var=LD_LIBRARY_PATH
  13061. shlibpath_overrides_runpath=yes
  13062. ;;
  13063. *nto* | *qnx*)
  13064. version_type=qnx
  13065. need_lib_prefix=no
  13066. need_version=no
  13067. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13068. soname_spec='${libname}${release}${shared_ext}$major'
  13069. shlibpath_var=LD_LIBRARY_PATH
  13070. shlibpath_overrides_runpath=no
  13071. hardcode_into_libs=yes
  13072. dynamic_linker='ldqnx.so'
  13073. ;;
  13074. openbsd*)
  13075. version_type=sunos
  13076. sys_lib_dlsearch_path_spec="/usr/lib"
  13077. need_lib_prefix=no
  13078. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13079. case $host_os in
  13080. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13081. *) need_version=no ;;
  13082. esac
  13083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13084. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13085. shlibpath_var=LD_LIBRARY_PATH
  13086. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13087. case $host_os in
  13088. openbsd2.[89] | openbsd2.[89].*)
  13089. shlibpath_overrides_runpath=no
  13090. ;;
  13091. *)
  13092. shlibpath_overrides_runpath=yes
  13093. ;;
  13094. esac
  13095. else
  13096. shlibpath_overrides_runpath=yes
  13097. fi
  13098. ;;
  13099. os2*)
  13100. libname_spec='$name'
  13101. shrext_cmds=".dll"
  13102. need_lib_prefix=no
  13103. library_names_spec='$libname${shared_ext} $libname.a'
  13104. dynamic_linker='OS/2 ld.exe'
  13105. shlibpath_var=LIBPATH
  13106. ;;
  13107. osf3* | osf4* | osf5*)
  13108. version_type=osf
  13109. need_lib_prefix=no
  13110. need_version=no
  13111. soname_spec='${libname}${release}${shared_ext}$major'
  13112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13113. shlibpath_var=LD_LIBRARY_PATH
  13114. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13115. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13116. ;;
  13117. rdos*)
  13118. dynamic_linker=no
  13119. ;;
  13120. solaris*)
  13121. version_type=linux # correct to gnu/linux during the next big refactor
  13122. need_lib_prefix=no
  13123. need_version=no
  13124. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13125. soname_spec='${libname}${release}${shared_ext}$major'
  13126. shlibpath_var=LD_LIBRARY_PATH
  13127. shlibpath_overrides_runpath=yes
  13128. hardcode_into_libs=yes
  13129. # ldd complains unless libraries are executable
  13130. postinstall_cmds='chmod +x $lib'
  13131. ;;
  13132. sunos4*)
  13133. version_type=sunos
  13134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13135. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13136. shlibpath_var=LD_LIBRARY_PATH
  13137. shlibpath_overrides_runpath=yes
  13138. if test "$with_gnu_ld" = yes; then
  13139. need_lib_prefix=no
  13140. fi
  13141. need_version=yes
  13142. ;;
  13143. sysv4 | sysv4.3*)
  13144. version_type=linux # correct to gnu/linux during the next big refactor
  13145. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13146. soname_spec='${libname}${release}${shared_ext}$major'
  13147. shlibpath_var=LD_LIBRARY_PATH
  13148. case $host_vendor in
  13149. sni)
  13150. shlibpath_overrides_runpath=no
  13151. need_lib_prefix=no
  13152. runpath_var=LD_RUN_PATH
  13153. ;;
  13154. siemens)
  13155. need_lib_prefix=no
  13156. ;;
  13157. motorola)
  13158. need_lib_prefix=no
  13159. need_version=no
  13160. shlibpath_overrides_runpath=no
  13161. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13162. ;;
  13163. esac
  13164. ;;
  13165. sysv4*MP*)
  13166. if test -d /usr/nec ;then
  13167. version_type=linux # correct to gnu/linux during the next big refactor
  13168. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13169. soname_spec='$libname${shared_ext}.$major'
  13170. shlibpath_var=LD_LIBRARY_PATH
  13171. fi
  13172. ;;
  13173. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13174. version_type=freebsd-elf
  13175. need_lib_prefix=no
  13176. need_version=no
  13177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13178. soname_spec='${libname}${release}${shared_ext}$major'
  13179. shlibpath_var=LD_LIBRARY_PATH
  13180. shlibpath_overrides_runpath=yes
  13181. hardcode_into_libs=yes
  13182. if test "$with_gnu_ld" = yes; then
  13183. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13184. else
  13185. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13186. case $host_os in
  13187. sco3.2v5*)
  13188. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13189. ;;
  13190. esac
  13191. fi
  13192. sys_lib_dlsearch_path_spec='/usr/lib'
  13193. ;;
  13194. tpf*)
  13195. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13196. version_type=linux # correct to gnu/linux during the next big refactor
  13197. need_lib_prefix=no
  13198. need_version=no
  13199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13200. shlibpath_var=LD_LIBRARY_PATH
  13201. shlibpath_overrides_runpath=no
  13202. hardcode_into_libs=yes
  13203. ;;
  13204. uts4*)
  13205. version_type=linux # correct to gnu/linux during the next big refactor
  13206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13207. soname_spec='${libname}${release}${shared_ext}$major'
  13208. shlibpath_var=LD_LIBRARY_PATH
  13209. ;;
  13210. *)
  13211. dynamic_linker=no
  13212. ;;
  13213. esac
  13214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13215. $as_echo "$dynamic_linker" >&6; }
  13216. test "$dynamic_linker" = no && can_build_shared=no
  13217. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13218. if test "$GCC" = yes; then
  13219. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13220. fi
  13221. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13222. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13223. fi
  13224. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13225. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13226. fi
  13227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13228. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13229. hardcode_action_CXX=
  13230. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13231. test -n "$runpath_var_CXX" ||
  13232. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13233. # We can hardcode non-existent directories.
  13234. if test "$hardcode_direct_CXX" != no &&
  13235. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13236. # have to relink, otherwise we might link with an installed library
  13237. # when we should be linking with a yet-to-be-installed one
  13238. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13239. test "$hardcode_minus_L_CXX" != no; then
  13240. # Linking always hardcodes the temporary library directory.
  13241. hardcode_action_CXX=relink
  13242. else
  13243. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13244. hardcode_action_CXX=immediate
  13245. fi
  13246. else
  13247. # We cannot hardcode anything, or else we can only hardcode existing
  13248. # directories.
  13249. hardcode_action_CXX=unsupported
  13250. fi
  13251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13252. $as_echo "$hardcode_action_CXX" >&6; }
  13253. if test "$hardcode_action_CXX" = relink ||
  13254. test "$inherit_rpath_CXX" = yes; then
  13255. # Fast installation is not supported
  13256. enable_fast_install=no
  13257. elif test "$shlibpath_overrides_runpath" = yes ||
  13258. test "$enable_shared" = no; then
  13259. # Fast installation is not necessary
  13260. enable_fast_install=needless
  13261. fi
  13262. fi # test -n "$compiler"
  13263. CC=$lt_save_CC
  13264. CFLAGS=$lt_save_CFLAGS
  13265. LDCXX=$LD
  13266. LD=$lt_save_LD
  13267. GCC=$lt_save_GCC
  13268. with_gnu_ld=$lt_save_with_gnu_ld
  13269. lt_cv_path_LDCXX=$lt_cv_path_LD
  13270. lt_cv_path_LD=$lt_save_path_LD
  13271. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13272. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13273. fi # test "$_lt_caught_CXX_error" != yes
  13274. ac_ext=c
  13275. ac_cpp='$CPP $CPPFLAGS'
  13276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13279. # Find a good install program. We prefer a C program (faster),
  13280. # so one script is as good as another. But avoid the broken or
  13281. # incompatible versions:
  13282. # SysV /etc/install, /usr/sbin/install
  13283. # SunOS /usr/etc/install
  13284. # IRIX /sbin/install
  13285. # AIX /bin/install
  13286. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13287. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13288. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13289. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13290. # OS/2's system install, which has a completely different semantic
  13291. # ./install, which can be erroneously created by make from ./install.sh.
  13292. # Reject install programs that cannot install multiple files.
  13293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13294. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13295. if test -z "$INSTALL"; then
  13296. if ${ac_cv_path_install+:} false; then :
  13297. $as_echo_n "(cached) " >&6
  13298. else
  13299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13300. for as_dir in $PATH
  13301. do
  13302. IFS=$as_save_IFS
  13303. test -z "$as_dir" && as_dir=.
  13304. # Account for people who put trailing slashes in PATH elements.
  13305. case $as_dir/ in #((
  13306. ./ | .// | /[cC]/* | \
  13307. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13308. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13309. /usr/ucb/* ) ;;
  13310. *)
  13311. # OSF1 and SCO ODT 3.0 have their own names for install.
  13312. # Don't use installbsd from OSF since it installs stuff as root
  13313. # by default.
  13314. for ac_prog in ginstall scoinst install; do
  13315. for ac_exec_ext in '' $ac_executable_extensions; do
  13316. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13317. if test $ac_prog = install &&
  13318. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13319. # AIX install. It has an incompatible calling convention.
  13320. :
  13321. elif test $ac_prog = install &&
  13322. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13323. # program-specific install script used by HP pwplus--don't use.
  13324. :
  13325. else
  13326. rm -rf conftest.one conftest.two conftest.dir
  13327. echo one > conftest.one
  13328. echo two > conftest.two
  13329. mkdir conftest.dir
  13330. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13331. test -s conftest.one && test -s conftest.two &&
  13332. test -s conftest.dir/conftest.one &&
  13333. test -s conftest.dir/conftest.two
  13334. then
  13335. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13336. break 3
  13337. fi
  13338. fi
  13339. fi
  13340. done
  13341. done
  13342. ;;
  13343. esac
  13344. done
  13345. IFS=$as_save_IFS
  13346. rm -rf conftest.one conftest.two conftest.dir
  13347. fi
  13348. if test "${ac_cv_path_install+set}" = set; then
  13349. INSTALL=$ac_cv_path_install
  13350. else
  13351. # As a last resort, use the slow shell script. Don't cache a
  13352. # value for INSTALL within a source directory, because that will
  13353. # break other packages using the cache if that directory is
  13354. # removed, or if the value is a relative name.
  13355. INSTALL=$ac_install_sh
  13356. fi
  13357. fi
  13358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13359. $as_echo "$INSTALL" >&6; }
  13360. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13361. # It thinks the first close brace ends the variable substitution.
  13362. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13363. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13364. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13366. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13367. set x ${MAKE-make}
  13368. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13369. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13370. $as_echo_n "(cached) " >&6
  13371. else
  13372. cat >conftest.make <<\_ACEOF
  13373. SHELL = /bin/sh
  13374. all:
  13375. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13376. _ACEOF
  13377. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13378. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13379. *@@@%%%=?*=@@@%%%*)
  13380. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13381. *)
  13382. eval ac_cv_prog_make_${ac_make}_set=no;;
  13383. esac
  13384. rm -f conftest.make
  13385. fi
  13386. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13388. $as_echo "yes" >&6; }
  13389. SET_MAKE=
  13390. else
  13391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13392. $as_echo "no" >&6; }
  13393. SET_MAKE="MAKE=${MAKE-make}"
  13394. fi
  13395. if test -n "$ac_tool_prefix"; then
  13396. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13397. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13399. $as_echo_n "checking for $ac_word... " >&6; }
  13400. if ${ac_cv_prog_WINDRES+:} false; then :
  13401. $as_echo_n "(cached) " >&6
  13402. else
  13403. if test -n "$WINDRES"; then
  13404. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13405. else
  13406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13407. for as_dir in $PATH
  13408. do
  13409. IFS=$as_save_IFS
  13410. test -z "$as_dir" && as_dir=.
  13411. for ac_exec_ext in '' $ac_executable_extensions; do
  13412. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13413. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13414. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13415. break 2
  13416. fi
  13417. done
  13418. done
  13419. IFS=$as_save_IFS
  13420. fi
  13421. fi
  13422. WINDRES=$ac_cv_prog_WINDRES
  13423. if test -n "$WINDRES"; then
  13424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13425. $as_echo "$WINDRES" >&6; }
  13426. else
  13427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13428. $as_echo "no" >&6; }
  13429. fi
  13430. fi
  13431. if test -z "$ac_cv_prog_WINDRES"; then
  13432. ac_ct_WINDRES=$WINDRES
  13433. # Extract the first word of "windres", so it can be a program name with args.
  13434. set dummy windres; ac_word=$2
  13435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13436. $as_echo_n "checking for $ac_word... " >&6; }
  13437. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13438. $as_echo_n "(cached) " >&6
  13439. else
  13440. if test -n "$ac_ct_WINDRES"; then
  13441. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13442. else
  13443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13444. for as_dir in $PATH
  13445. do
  13446. IFS=$as_save_IFS
  13447. test -z "$as_dir" && as_dir=.
  13448. for ac_exec_ext in '' $ac_executable_extensions; do
  13449. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13450. ac_cv_prog_ac_ct_WINDRES="windres"
  13451. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13452. break 2
  13453. fi
  13454. done
  13455. done
  13456. IFS=$as_save_IFS
  13457. fi
  13458. fi
  13459. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13460. if test -n "$ac_ct_WINDRES"; then
  13461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13462. $as_echo "$ac_ct_WINDRES" >&6; }
  13463. else
  13464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13465. $as_echo "no" >&6; }
  13466. fi
  13467. if test "x$ac_ct_WINDRES" = x; then
  13468. WINDRES=":"
  13469. else
  13470. case $cross_compiling:$ac_tool_warned in
  13471. yes:)
  13472. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13473. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13474. ac_tool_warned=yes ;;
  13475. esac
  13476. WINDRES=$ac_ct_WINDRES
  13477. fi
  13478. else
  13479. WINDRES="$ac_cv_prog_WINDRES"
  13480. fi
  13481. case "$host" in
  13482. *-*-mingw32*)
  13483. # Except on msys, where make can't handle full pathnames (bug 1972)
  13484. ;;
  13485. *)
  13486. srcdir=`cd $srcdir && pwd`
  13487. ;;
  13488. esac
  13489. INCLUDE="-I$srcdir/include"
  13490. if test x$srcdir != x.; then
  13491. INCLUDE="-Iinclude $INCLUDE"
  13492. elif test -d .hg; then
  13493. as_fn_error $? "
  13494. *** When building from Mercurial you should configure and build in a
  13495. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13496. " "$LINENO" 5
  13497. fi
  13498. BASE_CFLAGS=""
  13499. BASE_LDFLAGS=""
  13500. case "$host" in
  13501. *-*-cygwin*)
  13502. # We build SDL on cygwin without the UNIX emulation layer
  13503. save_CFLAGS="$CFLAGS"
  13504. have_no_cygwin=no
  13505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13506. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13507. CFLAGS="$save_CFLAGS -mno-cygwin"
  13508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13509. /* end confdefs.h. */
  13510. int
  13511. main ()
  13512. {
  13513. ;
  13514. return 0;
  13515. }
  13516. _ACEOF
  13517. if ac_fn_c_try_compile "$LINENO"; then :
  13518. have_no_cygwin=yes
  13519. fi
  13520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13522. $as_echo "$have_no_cygwin" >&6; }
  13523. CFLAGS="$save_CFLAGS"
  13524. if test x$have_no_cygwin = xyes; then
  13525. BASE_CFLAGS="-mno-cygwin"
  13526. BASE_LDFLAGS="-mno-cygwin"
  13527. fi
  13528. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13529. ;;
  13530. esac
  13531. # Uncomment the following line if you want to force SDL and applications
  13532. # built with it to be compiled for a particular architecture.
  13533. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13534. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13535. # The default optimization for SDL is -O3 (Bug #31)
  13536. if test "x$orig_CFLAGS" = x; then
  13537. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13538. fi
  13539. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13540. BUILD_LDFLAGS="$LDFLAGS"
  13541. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13542. ## These are common directories to find software packages
  13543. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13544. # if test -d $path/include; then
  13545. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13546. # fi
  13547. # if test -d $path/lib; then
  13548. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13549. # fi
  13550. #done
  13551. SDL_CFLAGS="$BASE_CFLAGS"
  13552. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13553. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13554. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13555. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13556. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13557. find_lib()
  13558. {
  13559. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13560. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13561. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13562. if test "$cross_compiling" = yes; then
  13563. host_lib_path=""
  13564. else
  13565. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13566. fi
  13567. for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
  13568. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13569. if test x$lib != x; then
  13570. echo $lib
  13571. return
  13572. fi
  13573. done
  13574. }
  13575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13576. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13577. if ${ac_cv_c_const+:} false; then :
  13578. $as_echo_n "(cached) " >&6
  13579. else
  13580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13581. /* end confdefs.h. */
  13582. int
  13583. main ()
  13584. {
  13585. #ifndef __cplusplus
  13586. /* Ultrix mips cc rejects this sort of thing. */
  13587. typedef int charset[2];
  13588. const charset cs = { 0, 0 };
  13589. /* SunOS 4.1.1 cc rejects this. */
  13590. char const *const *pcpcc;
  13591. char **ppc;
  13592. /* NEC SVR4.0.2 mips cc rejects this. */
  13593. struct point {int x, y;};
  13594. static struct point const zero = {0,0};
  13595. /* AIX XL C 1.02.0.0 rejects this.
  13596. It does not let you subtract one const X* pointer from another in
  13597. an arm of an if-expression whose if-part is not a constant
  13598. expression */
  13599. const char *g = "string";
  13600. pcpcc = &g + (g ? g-g : 0);
  13601. /* HPUX 7.0 cc rejects these. */
  13602. ++pcpcc;
  13603. ppc = (char**) pcpcc;
  13604. pcpcc = (char const *const *) ppc;
  13605. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13606. char tx;
  13607. char *t = &tx;
  13608. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13609. *t++ = 0;
  13610. if (s) return 0;
  13611. }
  13612. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13613. int x[] = {25, 17};
  13614. const int *foo = &x[0];
  13615. ++foo;
  13616. }
  13617. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13618. typedef const int *iptr;
  13619. iptr p = 0;
  13620. ++p;
  13621. }
  13622. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13623. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13624. struct s { int j; const int *ap[3]; } bx;
  13625. struct s *b = &bx; b->j = 5;
  13626. }
  13627. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13628. const int foo = 10;
  13629. if (!foo) return 0;
  13630. }
  13631. return !cs[0] && !zero.x;
  13632. #endif
  13633. ;
  13634. return 0;
  13635. }
  13636. _ACEOF
  13637. if ac_fn_c_try_compile "$LINENO"; then :
  13638. ac_cv_c_const=yes
  13639. else
  13640. ac_cv_c_const=no
  13641. fi
  13642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13643. fi
  13644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13645. $as_echo "$ac_cv_c_const" >&6; }
  13646. if test $ac_cv_c_const = no; then
  13647. $as_echo "#define const /**/" >>confdefs.h
  13648. fi
  13649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13650. $as_echo_n "checking for inline... " >&6; }
  13651. if ${ac_cv_c_inline+:} false; then :
  13652. $as_echo_n "(cached) " >&6
  13653. else
  13654. ac_cv_c_inline=no
  13655. for ac_kw in inline __inline__ __inline; do
  13656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13657. /* end confdefs.h. */
  13658. #ifndef __cplusplus
  13659. typedef int foo_t;
  13660. static $ac_kw foo_t static_foo () {return 0; }
  13661. $ac_kw foo_t foo () {return 0; }
  13662. #endif
  13663. _ACEOF
  13664. if ac_fn_c_try_compile "$LINENO"; then :
  13665. ac_cv_c_inline=$ac_kw
  13666. fi
  13667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13668. test "$ac_cv_c_inline" != no && break
  13669. done
  13670. fi
  13671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13672. $as_echo "$ac_cv_c_inline" >&6; }
  13673. case $ac_cv_c_inline in
  13674. inline | yes) ;;
  13675. *)
  13676. case $ac_cv_c_inline in
  13677. no) ac_val=;;
  13678. *) ac_val=$ac_cv_c_inline;;
  13679. esac
  13680. cat >>confdefs.h <<_ACEOF
  13681. #ifndef __cplusplus
  13682. #define inline $ac_val
  13683. #endif
  13684. _ACEOF
  13685. ;;
  13686. esac
  13687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13688. $as_echo_n "checking for working volatile... " >&6; }
  13689. if ${ac_cv_c_volatile+:} false; then :
  13690. $as_echo_n "(cached) " >&6
  13691. else
  13692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13693. /* end confdefs.h. */
  13694. int
  13695. main ()
  13696. {
  13697. volatile int x;
  13698. int * volatile y = (int *) 0;
  13699. return !x && !y;
  13700. ;
  13701. return 0;
  13702. }
  13703. _ACEOF
  13704. if ac_fn_c_try_compile "$LINENO"; then :
  13705. ac_cv_c_volatile=yes
  13706. else
  13707. ac_cv_c_volatile=no
  13708. fi
  13709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13710. fi
  13711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13712. $as_echo "$ac_cv_c_volatile" >&6; }
  13713. if test $ac_cv_c_volatile = no; then
  13714. $as_echo "#define volatile /**/" >>confdefs.h
  13715. fi
  13716. # Check whether --enable-assertions was given.
  13717. if test "${enable_assertions+set}" = set; then :
  13718. enableval=$enable_assertions;
  13719. else
  13720. enable_assertions=auto
  13721. fi
  13722. case "$enable_assertions" in
  13723. auto) # Use optimization settings to determine assertion level
  13724. ;;
  13725. disabled)
  13726. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13727. ;;
  13728. release)
  13729. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13730. ;;
  13731. enabled)
  13732. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13733. ;;
  13734. paranoid)
  13735. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13736. ;;
  13737. *)
  13738. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13739. ;;
  13740. esac
  13741. # Check whether --enable-dependency-tracking was given.
  13742. if test "${enable_dependency_tracking+set}" = set; then :
  13743. enableval=$enable_dependency_tracking;
  13744. else
  13745. enable_dependency_tracking=yes
  13746. fi
  13747. if test x$enable_dependency_tracking = xyes; then
  13748. have_gcc_mmd_mt=no
  13749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13750. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13752. /* end confdefs.h. */
  13753. #if !defined(__GNUC__) || __GNUC__ < 3
  13754. #error Dependency tracking requires GCC 3.0 or newer
  13755. #endif
  13756. int
  13757. main ()
  13758. {
  13759. ;
  13760. return 0;
  13761. }
  13762. _ACEOF
  13763. if ac_fn_c_try_compile "$LINENO"; then :
  13764. have_gcc_mmd_mt=yes
  13765. fi
  13766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13768. $as_echo "$have_gcc_mmd_mt" >&6; }
  13769. if test x$have_gcc_mmd_mt = xyes; then
  13770. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13771. fi
  13772. fi
  13773. # Actually this doesn't work on OpenBSD and BeOS
  13774. #AC_MSG_CHECKING(for linker option --no-undefined)
  13775. #have_no_undefined=no
  13776. #save_LDFLAGS="$LDFLAGS"
  13777. #LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13778. #AC_TRY_LINK([
  13779. #],[
  13780. #],[
  13781. #have_no_undefined=yes
  13782. #EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13783. #])
  13784. #LDFLAGS="$save_LDFLAGS"
  13785. #AC_MSG_RESULT($have_no_undefined)
  13786. # Check whether --enable-libc was given.
  13787. if test "${enable_libc+set}" = set; then :
  13788. enableval=$enable_libc;
  13789. else
  13790. enable_libc=yes
  13791. fi
  13792. if test x$enable_libc = xyes; then
  13793. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13795. $as_echo_n "checking for ANSI C header files... " >&6; }
  13796. if ${ac_cv_header_stdc+:} false; then :
  13797. $as_echo_n "(cached) " >&6
  13798. else
  13799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13800. /* end confdefs.h. */
  13801. #include <stdlib.h>
  13802. #include <stdarg.h>
  13803. #include <string.h>
  13804. #include <float.h>
  13805. int
  13806. main ()
  13807. {
  13808. ;
  13809. return 0;
  13810. }
  13811. _ACEOF
  13812. if ac_fn_c_try_compile "$LINENO"; then :
  13813. ac_cv_header_stdc=yes
  13814. else
  13815. ac_cv_header_stdc=no
  13816. fi
  13817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13818. if test $ac_cv_header_stdc = yes; then
  13819. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13821. /* end confdefs.h. */
  13822. #include <string.h>
  13823. _ACEOF
  13824. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13825. $EGREP "memchr" >/dev/null 2>&1; then :
  13826. else
  13827. ac_cv_header_stdc=no
  13828. fi
  13829. rm -f conftest*
  13830. fi
  13831. if test $ac_cv_header_stdc = yes; then
  13832. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13834. /* end confdefs.h. */
  13835. #include <stdlib.h>
  13836. _ACEOF
  13837. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13838. $EGREP "free" >/dev/null 2>&1; then :
  13839. else
  13840. ac_cv_header_stdc=no
  13841. fi
  13842. rm -f conftest*
  13843. fi
  13844. if test $ac_cv_header_stdc = yes; then
  13845. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13846. if test "$cross_compiling" = yes; then :
  13847. :
  13848. else
  13849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13850. /* end confdefs.h. */
  13851. #include <ctype.h>
  13852. #include <stdlib.h>
  13853. #if ((' ' & 0x0FF) == 0x020)
  13854. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13855. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13856. #else
  13857. # define ISLOWER(c) \
  13858. (('a' <= (c) && (c) <= 'i') \
  13859. || ('j' <= (c) && (c) <= 'r') \
  13860. || ('s' <= (c) && (c) <= 'z'))
  13861. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13862. #endif
  13863. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13864. int
  13865. main ()
  13866. {
  13867. int i;
  13868. for (i = 0; i < 256; i++)
  13869. if (XOR (islower (i), ISLOWER (i))
  13870. || toupper (i) != TOUPPER (i))
  13871. return 2;
  13872. return 0;
  13873. }
  13874. _ACEOF
  13875. if ac_fn_c_try_run "$LINENO"; then :
  13876. else
  13877. ac_cv_header_stdc=no
  13878. fi
  13879. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13880. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13881. fi
  13882. fi
  13883. fi
  13884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13885. $as_echo "$ac_cv_header_stdc" >&6; }
  13886. if test $ac_cv_header_stdc = yes; then
  13887. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13888. fi
  13889. 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
  13890. do :
  13891. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13892. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13893. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13894. cat >>confdefs.h <<_ACEOF
  13895. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13896. _ACEOF
  13897. fi
  13898. done
  13899. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13900. if test "x$ac_cv_type_size_t" = xyes; then :
  13901. else
  13902. cat >>confdefs.h <<_ACEOF
  13903. #define size_t unsigned int
  13904. _ACEOF
  13905. fi
  13906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13907. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13908. if ${ac_cv_define_M_PI+:} false; then :
  13909. $as_echo_n "(cached) " >&6
  13910. else
  13911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13912. /* end confdefs.h. */
  13913. #include <math.h>
  13914. #ifdef M_PI
  13915. YES_IS_DEFINED
  13916. #endif
  13917. _ACEOF
  13918. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13919. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13920. ac_cv_define_M_PI=yes
  13921. else
  13922. ac_cv_define_M_PI=no
  13923. fi
  13924. rm -f conftest*
  13925. fi
  13926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13927. $as_echo "$ac_cv_define_M_PI" >&6; }
  13928. if test "$ac_cv_define_M_PI" = "yes" ; then
  13929. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13930. fi
  13931. case "$host" in
  13932. *-*-cygwin* | *-*-mingw32*)
  13933. ;;
  13934. *)
  13935. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13936. # for constant arguments. Useless!
  13937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13938. $as_echo_n "checking for working alloca.h... " >&6; }
  13939. if ${ac_cv_working_alloca_h+:} false; then :
  13940. $as_echo_n "(cached) " >&6
  13941. else
  13942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13943. /* end confdefs.h. */
  13944. #include <alloca.h>
  13945. int
  13946. main ()
  13947. {
  13948. char *p = (char *) alloca (2 * sizeof (int));
  13949. if (p) return 0;
  13950. ;
  13951. return 0;
  13952. }
  13953. _ACEOF
  13954. if ac_fn_c_try_link "$LINENO"; then :
  13955. ac_cv_working_alloca_h=yes
  13956. else
  13957. ac_cv_working_alloca_h=no
  13958. fi
  13959. rm -f core conftest.err conftest.$ac_objext \
  13960. conftest$ac_exeext conftest.$ac_ext
  13961. fi
  13962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13963. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13964. if test $ac_cv_working_alloca_h = yes; then
  13965. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  13966. fi
  13967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13968. $as_echo_n "checking for alloca... " >&6; }
  13969. if ${ac_cv_func_alloca_works+:} false; then :
  13970. $as_echo_n "(cached) " >&6
  13971. else
  13972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13973. /* end confdefs.h. */
  13974. #ifdef __GNUC__
  13975. # define alloca __builtin_alloca
  13976. #else
  13977. # ifdef _MSC_VER
  13978. # include <malloc.h>
  13979. # define alloca _alloca
  13980. # else
  13981. # ifdef HAVE_ALLOCA_H
  13982. # include <alloca.h>
  13983. # else
  13984. # ifdef _AIX
  13985. #pragma alloca
  13986. # else
  13987. # ifndef alloca /* predefined by HP cc +Olibcalls */
  13988. void *alloca (size_t);
  13989. # endif
  13990. # endif
  13991. # endif
  13992. # endif
  13993. #endif
  13994. int
  13995. main ()
  13996. {
  13997. char *p = (char *) alloca (1);
  13998. if (p) return 0;
  13999. ;
  14000. return 0;
  14001. }
  14002. _ACEOF
  14003. if ac_fn_c_try_link "$LINENO"; then :
  14004. ac_cv_func_alloca_works=yes
  14005. else
  14006. ac_cv_func_alloca_works=no
  14007. fi
  14008. rm -f core conftest.err conftest.$ac_objext \
  14009. conftest$ac_exeext conftest.$ac_ext
  14010. fi
  14011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14012. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14013. if test $ac_cv_func_alloca_works = yes; then
  14014. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14015. else
  14016. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14017. # that cause trouble. Some versions do not even contain alloca or
  14018. # contain a buggy version. If you still want to use their alloca,
  14019. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14020. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14021. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14023. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14024. if ${ac_cv_os_cray+:} false; then :
  14025. $as_echo_n "(cached) " >&6
  14026. else
  14027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14028. /* end confdefs.h. */
  14029. #if defined CRAY && ! defined CRAY2
  14030. webecray
  14031. #else
  14032. wenotbecray
  14033. #endif
  14034. _ACEOF
  14035. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14036. $EGREP "webecray" >/dev/null 2>&1; then :
  14037. ac_cv_os_cray=yes
  14038. else
  14039. ac_cv_os_cray=no
  14040. fi
  14041. rm -f conftest*
  14042. fi
  14043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14044. $as_echo "$ac_cv_os_cray" >&6; }
  14045. if test $ac_cv_os_cray = yes; then
  14046. for ac_func in _getb67 GETB67 getb67; do
  14047. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14048. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14049. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14050. cat >>confdefs.h <<_ACEOF
  14051. #define CRAY_STACKSEG_END $ac_func
  14052. _ACEOF
  14053. break
  14054. fi
  14055. done
  14056. fi
  14057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14058. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14059. if ${ac_cv_c_stack_direction+:} false; then :
  14060. $as_echo_n "(cached) " >&6
  14061. else
  14062. if test "$cross_compiling" = yes; then :
  14063. ac_cv_c_stack_direction=0
  14064. else
  14065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14066. /* end confdefs.h. */
  14067. $ac_includes_default
  14068. int
  14069. find_stack_direction (int *addr, int depth)
  14070. {
  14071. int dir, dummy = 0;
  14072. if (! addr)
  14073. addr = &dummy;
  14074. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14075. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14076. return dir + dummy;
  14077. }
  14078. int
  14079. main (int argc, char **argv)
  14080. {
  14081. return find_stack_direction (0, argc + !argv + 20) < 0;
  14082. }
  14083. _ACEOF
  14084. if ac_fn_c_try_run "$LINENO"; then :
  14085. ac_cv_c_stack_direction=1
  14086. else
  14087. ac_cv_c_stack_direction=-1
  14088. fi
  14089. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14090. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14091. fi
  14092. fi
  14093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14094. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14095. cat >>confdefs.h <<_ACEOF
  14096. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14097. _ACEOF
  14098. fi
  14099. ;;
  14100. esac
  14101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14102. $as_echo_n "checking for working memcmp... " >&6; }
  14103. if ${ac_cv_func_memcmp_working+:} false; then :
  14104. $as_echo_n "(cached) " >&6
  14105. else
  14106. if test "$cross_compiling" = yes; then :
  14107. ac_cv_func_memcmp_working=no
  14108. else
  14109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14110. /* end confdefs.h. */
  14111. $ac_includes_default
  14112. int
  14113. main ()
  14114. {
  14115. /* Some versions of memcmp are not 8-bit clean. */
  14116. char c0 = '\100', c1 = '\200', c2 = '\201';
  14117. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14118. return 1;
  14119. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14120. or more and with at least one buffer not starting on a 4-byte boundary.
  14121. William Lewis provided this test program. */
  14122. {
  14123. char foo[21];
  14124. char bar[21];
  14125. int i;
  14126. for (i = 0; i < 4; i++)
  14127. {
  14128. char *a = foo + i;
  14129. char *b = bar + i;
  14130. strcpy (a, "--------01111111");
  14131. strcpy (b, "--------10000000");
  14132. if (memcmp (a, b, 16) >= 0)
  14133. return 1;
  14134. }
  14135. return 0;
  14136. }
  14137. ;
  14138. return 0;
  14139. }
  14140. _ACEOF
  14141. if ac_fn_c_try_run "$LINENO"; then :
  14142. ac_cv_func_memcmp_working=yes
  14143. else
  14144. ac_cv_func_memcmp_working=no
  14145. fi
  14146. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14147. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14148. fi
  14149. fi
  14150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14151. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14152. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14153. *" memcmp.$ac_objext "* ) ;;
  14154. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14155. ;;
  14156. esac
  14157. if test x$ac_cv_func_memcmp_working = xyes; then
  14158. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14159. fi
  14160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14161. $as_echo_n "checking for working strtod... " >&6; }
  14162. if ${ac_cv_func_strtod+:} false; then :
  14163. $as_echo_n "(cached) " >&6
  14164. else
  14165. if test "$cross_compiling" = yes; then :
  14166. ac_cv_func_strtod=no
  14167. else
  14168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14169. /* end confdefs.h. */
  14170. $ac_includes_default
  14171. #ifndef strtod
  14172. double strtod ();
  14173. #endif
  14174. int
  14175. main()
  14176. {
  14177. {
  14178. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14179. char *string = " +69";
  14180. char *term;
  14181. double value;
  14182. value = strtod (string, &term);
  14183. if (value != 69 || term != (string + 4))
  14184. return 1;
  14185. }
  14186. {
  14187. /* Under Solaris 2.4, strtod returns the wrong value for the
  14188. terminating character under some conditions. */
  14189. char *string = "NaN";
  14190. char *term;
  14191. strtod (string, &term);
  14192. if (term != string && *(term - 1) == 0)
  14193. return 1;
  14194. }
  14195. return 0;
  14196. }
  14197. _ACEOF
  14198. if ac_fn_c_try_run "$LINENO"; then :
  14199. ac_cv_func_strtod=yes
  14200. else
  14201. ac_cv_func_strtod=no
  14202. fi
  14203. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14204. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14205. fi
  14206. fi
  14207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14208. $as_echo "$ac_cv_func_strtod" >&6; }
  14209. if test $ac_cv_func_strtod = no; then
  14210. case " $LIBOBJS " in
  14211. *" strtod.$ac_objext "* ) ;;
  14212. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14213. ;;
  14214. esac
  14215. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14216. if test "x$ac_cv_func_pow" = xyes; then :
  14217. fi
  14218. if test $ac_cv_func_pow = no; then
  14219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14220. $as_echo_n "checking for pow in -lm... " >&6; }
  14221. if ${ac_cv_lib_m_pow+:} false; then :
  14222. $as_echo_n "(cached) " >&6
  14223. else
  14224. ac_check_lib_save_LIBS=$LIBS
  14225. LIBS="-lm $LIBS"
  14226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14227. /* end confdefs.h. */
  14228. /* Override any GCC internal prototype to avoid an error.
  14229. Use char because int might match the return type of a GCC
  14230. builtin and then its argument prototype would still apply. */
  14231. #ifdef __cplusplus
  14232. extern "C"
  14233. #endif
  14234. char pow ();
  14235. int
  14236. main ()
  14237. {
  14238. return pow ();
  14239. ;
  14240. return 0;
  14241. }
  14242. _ACEOF
  14243. if ac_fn_c_try_link "$LINENO"; then :
  14244. ac_cv_lib_m_pow=yes
  14245. else
  14246. ac_cv_lib_m_pow=no
  14247. fi
  14248. rm -f core conftest.err conftest.$ac_objext \
  14249. conftest$ac_exeext conftest.$ac_ext
  14250. LIBS=$ac_check_lib_save_LIBS
  14251. fi
  14252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14253. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14254. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14255. POW_LIB=-lm
  14256. else
  14257. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14258. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14259. fi
  14260. fi
  14261. fi
  14262. if test x$ac_cv_func_strtod = xyes; then
  14263. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14264. fi
  14265. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14266. if test "x$ac_cv_func_mprotect" = xyes; then :
  14267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14268. /* end confdefs.h. */
  14269. #include <sys/types.h>
  14270. #include <sys/mman.h>
  14271. int
  14272. main ()
  14273. {
  14274. ;
  14275. return 0;
  14276. }
  14277. _ACEOF
  14278. if ac_fn_c_try_compile "$LINENO"; then :
  14279. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14280. fi
  14281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14282. fi
  14283. 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
  14284. do :
  14285. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14286. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14287. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14288. cat >>confdefs.h <<_ACEOF
  14289. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14290. _ACEOF
  14291. fi
  14292. done
  14293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14294. $as_echo_n "checking for pow in -lm... " >&6; }
  14295. if ${ac_cv_lib_m_pow+:} false; then :
  14296. $as_echo_n "(cached) " >&6
  14297. else
  14298. ac_check_lib_save_LIBS=$LIBS
  14299. LIBS="-lm $LIBS"
  14300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14301. /* end confdefs.h. */
  14302. /* Override any GCC internal prototype to avoid an error.
  14303. Use char because int might match the return type of a GCC
  14304. builtin and then its argument prototype would still apply. */
  14305. #ifdef __cplusplus
  14306. extern "C"
  14307. #endif
  14308. char pow ();
  14309. int
  14310. main ()
  14311. {
  14312. return pow ();
  14313. ;
  14314. return 0;
  14315. }
  14316. _ACEOF
  14317. if ac_fn_c_try_link "$LINENO"; then :
  14318. ac_cv_lib_m_pow=yes
  14319. else
  14320. ac_cv_lib_m_pow=no
  14321. fi
  14322. rm -f core conftest.err conftest.$ac_objext \
  14323. conftest$ac_exeext conftest.$ac_ext
  14324. LIBS=$ac_check_lib_save_LIBS
  14325. fi
  14326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14327. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14328. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14329. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14330. fi
  14331. for ac_func in atan atan2 ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt
  14332. do :
  14333. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14334. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14335. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14336. cat >>confdefs.h <<_ACEOF
  14337. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14338. _ACEOF
  14339. fi
  14340. done
  14341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14342. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14343. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14344. $as_echo_n "(cached) " >&6
  14345. else
  14346. ac_check_lib_save_LIBS=$LIBS
  14347. LIBS="-liconv $LIBS"
  14348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14349. /* end confdefs.h. */
  14350. /* Override any GCC internal prototype to avoid an error.
  14351. Use char because int might match the return type of a GCC
  14352. builtin and then its argument prototype would still apply. */
  14353. #ifdef __cplusplus
  14354. extern "C"
  14355. #endif
  14356. char iconv_open ();
  14357. int
  14358. main ()
  14359. {
  14360. return iconv_open ();
  14361. ;
  14362. return 0;
  14363. }
  14364. _ACEOF
  14365. if ac_fn_c_try_link "$LINENO"; then :
  14366. ac_cv_lib_iconv_iconv_open=yes
  14367. else
  14368. ac_cv_lib_iconv_iconv_open=no
  14369. fi
  14370. rm -f core conftest.err conftest.$ac_objext \
  14371. conftest$ac_exeext conftest.$ac_ext
  14372. LIBS=$ac_check_lib_save_LIBS
  14373. fi
  14374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14375. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14376. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14377. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14378. fi
  14379. for ac_func in iconv
  14380. do :
  14381. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14382. if test "x$ac_cv_func_iconv" = xyes; then :
  14383. cat >>confdefs.h <<_ACEOF
  14384. #define HAVE_ICONV 1
  14385. _ACEOF
  14386. fi
  14387. done
  14388. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14389. "
  14390. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14391. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14392. fi
  14393. fi
  14394. # Check whether --enable-gcc-atomics was given.
  14395. if test "${enable_gcc_atomics+set}" = set; then :
  14396. enableval=$enable_gcc_atomics;
  14397. else
  14398. enable_gcc_atomics=yes
  14399. fi
  14400. if test x$enable_gcc_atomics = xyes; then
  14401. have_gcc_atomics=no
  14402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14403. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14405. /* end confdefs.h. */
  14406. int
  14407. main ()
  14408. {
  14409. int a;
  14410. void *x, *y, *z;
  14411. __sync_lock_test_and_set(&a, 4);
  14412. __sync_lock_test_and_set(&x, y);
  14413. __sync_fetch_and_add(&a, 1);
  14414. __sync_bool_compare_and_swap(&a, 5, 10);
  14415. __sync_bool_compare_and_swap(&x, y, z);
  14416. ;
  14417. return 0;
  14418. }
  14419. _ACEOF
  14420. if ac_fn_c_try_link "$LINENO"; then :
  14421. have_gcc_atomics=yes
  14422. fi
  14423. rm -f core conftest.err conftest.$ac_objext \
  14424. conftest$ac_exeext conftest.$ac_ext
  14425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14426. $as_echo "$have_gcc_atomics" >&6; }
  14427. if test x$have_gcc_atomics = xyes; then
  14428. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14429. else
  14430. # See if we have the minimum operation needed for GCC atomics
  14431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14432. /* end confdefs.h. */
  14433. int
  14434. main ()
  14435. {
  14436. int a;
  14437. __sync_lock_test_and_set(&a, 1);
  14438. __sync_lock_release(&a);
  14439. ;
  14440. return 0;
  14441. }
  14442. _ACEOF
  14443. if ac_fn_c_try_link "$LINENO"; then :
  14444. have_gcc_sync_lock_test_and_set=yes
  14445. fi
  14446. rm -f core conftest.err conftest.$ac_objext \
  14447. conftest$ac_exeext conftest.$ac_ext
  14448. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14449. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14450. fi
  14451. fi
  14452. fi
  14453. # Standard C sources
  14454. SOURCES="$SOURCES $srcdir/src/*.c"
  14455. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14456. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14457. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14458. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14459. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14460. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14461. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14462. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14463. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14464. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14465. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14466. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14467. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14468. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14469. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14470. # Check whether --enable-atomic was given.
  14471. if test "${enable_atomic+set}" = set; then :
  14472. enableval=$enable_atomic;
  14473. else
  14474. enable_atomic=yes
  14475. fi
  14476. if test x$enable_atomic != xyes; then
  14477. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14478. fi
  14479. # Check whether --enable-audio was given.
  14480. if test "${enable_audio+set}" = set; then :
  14481. enableval=$enable_audio;
  14482. else
  14483. enable_audio=yes
  14484. fi
  14485. if test x$enable_audio != xyes; then
  14486. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14487. fi
  14488. # Check whether --enable-video was given.
  14489. if test "${enable_video+set}" = set; then :
  14490. enableval=$enable_video;
  14491. else
  14492. enable_video=yes
  14493. fi
  14494. if test x$enable_video != xyes; then
  14495. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14496. fi
  14497. # Check whether --enable-render was given.
  14498. if test "${enable_render+set}" = set; then :
  14499. enableval=$enable_render;
  14500. else
  14501. enable_render=yes
  14502. fi
  14503. if test x$enable_render != xyes; then
  14504. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14505. fi
  14506. # Check whether --enable-events was given.
  14507. if test "${enable_events+set}" = set; then :
  14508. enableval=$enable_events;
  14509. else
  14510. enable_events=yes
  14511. fi
  14512. if test x$enable_events != xyes; then
  14513. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14514. fi
  14515. # Check whether --enable-joystick was given.
  14516. if test "${enable_joystick+set}" = set; then :
  14517. enableval=$enable_joystick;
  14518. else
  14519. enable_joystick=yes
  14520. fi
  14521. if test x$enable_joystick != xyes; then
  14522. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14523. fi
  14524. # Check whether --enable-haptic was given.
  14525. if test "${enable_haptic+set}" = set; then :
  14526. enableval=$enable_haptic;
  14527. else
  14528. enable_haptic=yes
  14529. fi
  14530. if test x$enable_haptic != xyes; then
  14531. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14532. fi
  14533. # Check whether --enable-power was given.
  14534. if test "${enable_power+set}" = set; then :
  14535. enableval=$enable_power;
  14536. else
  14537. enable_power=yes
  14538. fi
  14539. if test x$enable_power != xyes; then
  14540. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14541. fi
  14542. # Check whether --enable-threads was given.
  14543. if test "${enable_threads+set}" = set; then :
  14544. enableval=$enable_threads;
  14545. else
  14546. enable_threads=yes
  14547. fi
  14548. if test x$enable_threads != xyes; then
  14549. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14550. fi
  14551. # Check whether --enable-timers was given.
  14552. if test "${enable_timers+set}" = set; then :
  14553. enableval=$enable_timers;
  14554. else
  14555. enable_timers=yes
  14556. fi
  14557. if test x$enable_timers != xyes; then
  14558. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14559. fi
  14560. # Check whether --enable-file was given.
  14561. if test "${enable_file+set}" = set; then :
  14562. enableval=$enable_file;
  14563. else
  14564. enable_file=yes
  14565. fi
  14566. if test x$enable_file != xyes; then
  14567. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14568. fi
  14569. # Check whether --enable-loadso was given.
  14570. if test "${enable_loadso+set}" = set; then :
  14571. enableval=$enable_loadso;
  14572. else
  14573. enable_loadso=yes
  14574. fi
  14575. if test x$enable_loadso != xyes; then
  14576. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14577. fi
  14578. # Check whether --enable-cpuinfo was given.
  14579. if test "${enable_cpuinfo+set}" = set; then :
  14580. enableval=$enable_cpuinfo;
  14581. else
  14582. enable_cpuinfo=yes
  14583. fi
  14584. if test x$enable_cpuinfo != xyes; then
  14585. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14586. fi
  14587. # Check whether --enable-atomic was given.
  14588. if test "${enable_atomic+set}" = set; then :
  14589. enableval=$enable_atomic;
  14590. else
  14591. enable_atomic=yes
  14592. fi
  14593. if test x$enable_atomic != xyes; then
  14594. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14595. fi
  14596. # Check whether --enable-assembly was given.
  14597. if test "${enable_assembly+set}" = set; then :
  14598. enableval=$enable_assembly;
  14599. else
  14600. enable_assembly=yes
  14601. fi
  14602. if test x$enable_assembly = xyes; then
  14603. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14604. # Make sure that we don't generate floating point code that would
  14605. # cause illegal instruction exceptions on older processors
  14606. case "$host" in
  14607. *-*-darwin*)
  14608. # Don't need to worry about Apple hardware, it's all SSE capable
  14609. default_ssemath=yes
  14610. ;;
  14611. *64-*-*)
  14612. # x86 64-bit architectures all have SSE instructions
  14613. default_ssemath=yes
  14614. ;;
  14615. *)
  14616. default_ssemath=no
  14617. ;;
  14618. esac
  14619. # Check whether --enable-ssemath was given.
  14620. if test "${enable_ssemath+set}" = set; then :
  14621. enableval=$enable_ssemath;
  14622. else
  14623. enable_ssemath=$default_ssemath
  14624. fi
  14625. if test x$enable_ssemath = xno; then
  14626. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14627. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14628. fi
  14629. fi
  14630. # Check whether --enable-mmx was given.
  14631. if test "${enable_mmx+set}" = set; then :
  14632. enableval=$enable_mmx;
  14633. else
  14634. enable_mmx=yes
  14635. fi
  14636. if test x$enable_mmx = xyes; then
  14637. save_CFLAGS="$CFLAGS"
  14638. have_gcc_mmx=no
  14639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14640. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14641. mmx_CFLAGS="-mmmx"
  14642. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14644. /* end confdefs.h. */
  14645. #ifdef __MINGW32__
  14646. #include <_mingw.h>
  14647. #ifdef __MINGW64_VERSION_MAJOR
  14648. #include <intrin.h>
  14649. #else
  14650. #include <mmintrin.h>
  14651. #endif
  14652. #else
  14653. #include <mmintrin.h>
  14654. #endif
  14655. #ifndef __MMX__
  14656. #error Assembler CPP flag not enabled
  14657. #endif
  14658. int
  14659. main ()
  14660. {
  14661. ;
  14662. return 0;
  14663. }
  14664. _ACEOF
  14665. if ac_fn_c_try_compile "$LINENO"; then :
  14666. have_gcc_mmx=yes
  14667. fi
  14668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14670. $as_echo "$have_gcc_mmx" >&6; }
  14671. CFLAGS="$save_CFLAGS"
  14672. if test x$have_gcc_mmx = xyes; then
  14673. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14674. fi
  14675. fi
  14676. # Check whether --enable-3dnow was given.
  14677. if test "${enable_3dnow+set}" = set; then :
  14678. enableval=$enable_3dnow;
  14679. else
  14680. enable_3dnow=yes
  14681. fi
  14682. if test x$enable_3dnow = xyes; then
  14683. save_CFLAGS="$CFLAGS"
  14684. have_gcc_3dnow=no
  14685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14686. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14687. amd3dnow_CFLAGS="-m3dnow"
  14688. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14690. /* end confdefs.h. */
  14691. #include <mm3dnow.h>
  14692. #ifndef __3dNOW__
  14693. #error Assembler CPP flag not enabled
  14694. #endif
  14695. int
  14696. main ()
  14697. {
  14698. void *p = 0;
  14699. _m_prefetch(p);
  14700. ;
  14701. return 0;
  14702. }
  14703. _ACEOF
  14704. if ac_fn_c_try_link "$LINENO"; then :
  14705. have_gcc_3dnow=yes
  14706. fi
  14707. rm -f core conftest.err conftest.$ac_objext \
  14708. conftest$ac_exeext conftest.$ac_ext
  14709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14710. $as_echo "$have_gcc_3dnow" >&6; }
  14711. CFLAGS="$save_CFLAGS"
  14712. if test x$have_gcc_3dnow = xyes; then
  14713. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14714. fi
  14715. fi
  14716. # Check whether --enable-sse was given.
  14717. if test "${enable_sse+set}" = set; then :
  14718. enableval=$enable_sse;
  14719. else
  14720. enable_sse=yes
  14721. fi
  14722. if test x$enable_sse = xyes; then
  14723. save_CFLAGS="$CFLAGS"
  14724. have_gcc_sse=no
  14725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14726. $as_echo_n "checking for GCC -msse option... " >&6; }
  14727. sse_CFLAGS="-msse"
  14728. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14730. /* end confdefs.h. */
  14731. #ifdef __MINGW32__
  14732. #include <_mingw.h>
  14733. #ifdef __MINGW64_VERSION_MAJOR
  14734. #include <intrin.h>
  14735. #else
  14736. #include <xmmintrin.h>
  14737. #endif
  14738. #else
  14739. #include <xmmintrin.h>
  14740. #endif
  14741. #ifndef __SSE__
  14742. #error Assembler CPP flag not enabled
  14743. #endif
  14744. int
  14745. main ()
  14746. {
  14747. ;
  14748. return 0;
  14749. }
  14750. _ACEOF
  14751. if ac_fn_c_try_compile "$LINENO"; then :
  14752. have_gcc_sse=yes
  14753. fi
  14754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14756. $as_echo "$have_gcc_sse" >&6; }
  14757. CFLAGS="$save_CFLAGS"
  14758. if test x$have_gcc_sse = xyes; then
  14759. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14760. fi
  14761. fi
  14762. # Check whether --enable-sse2 was given.
  14763. if test "${enable_sse2+set}" = set; then :
  14764. enableval=$enable_sse2;
  14765. else
  14766. enable_sse2=$default_ssemath
  14767. fi
  14768. if test x$enable_sse2 = xyes; then
  14769. save_CFLAGS="$CFLAGS"
  14770. have_gcc_sse2=no
  14771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14772. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14773. sse2_CFLAGS="-msse2"
  14774. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14776. /* end confdefs.h. */
  14777. #ifdef __MINGW32__
  14778. #include <_mingw.h>
  14779. #ifdef __MINGW64_VERSION_MAJOR
  14780. #include <intrin.h>
  14781. #else
  14782. #include <emmintrin.h>
  14783. #endif
  14784. #else
  14785. #include <emmintrin.h>
  14786. #endif
  14787. #ifndef __SSE2__
  14788. #error Assembler CPP flag not enabled
  14789. #endif
  14790. int
  14791. main ()
  14792. {
  14793. ;
  14794. return 0;
  14795. }
  14796. _ACEOF
  14797. if ac_fn_c_try_compile "$LINENO"; then :
  14798. have_gcc_sse2=yes
  14799. fi
  14800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14802. $as_echo "$have_gcc_sse2" >&6; }
  14803. CFLAGS="$save_CFLAGS"
  14804. if test x$have_gcc_sse2 = xyes; then
  14805. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14806. fi
  14807. fi
  14808. # Check whether --enable-altivec was given.
  14809. if test "${enable_altivec+set}" = set; then :
  14810. enableval=$enable_altivec;
  14811. else
  14812. enable_altivec=yes
  14813. fi
  14814. if test x$enable_altivec = xyes; then
  14815. save_CFLAGS="$CFLAGS"
  14816. have_gcc_altivec=no
  14817. have_altivec_h_hdr=no
  14818. altivec_CFLAGS="-maltivec"
  14819. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14821. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14823. /* end confdefs.h. */
  14824. #include <altivec.h>
  14825. vector unsigned int vzero() {
  14826. return vec_splat_u32(0);
  14827. }
  14828. int
  14829. main ()
  14830. {
  14831. ;
  14832. return 0;
  14833. }
  14834. _ACEOF
  14835. if ac_fn_c_try_compile "$LINENO"; then :
  14836. have_gcc_altivec=yes
  14837. have_altivec_h_hdr=yes
  14838. fi
  14839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14841. $as_echo "$have_gcc_altivec" >&6; }
  14842. if test x$have_gcc_altivec = xno; then
  14843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14844. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14846. /* end confdefs.h. */
  14847. vector unsigned int vzero() {
  14848. return vec_splat_u32(0);
  14849. }
  14850. int
  14851. main ()
  14852. {
  14853. ;
  14854. return 0;
  14855. }
  14856. _ACEOF
  14857. if ac_fn_c_try_compile "$LINENO"; then :
  14858. have_gcc_altivec=yes
  14859. fi
  14860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14862. $as_echo "$have_gcc_altivec" >&6; }
  14863. fi
  14864. if test x$have_gcc_altivec = xno; then
  14865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14866. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14867. altivec_CFLAGS="-faltivec"
  14868. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14870. /* end confdefs.h. */
  14871. #include <altivec.h>
  14872. vector unsigned int vzero() {
  14873. return vec_splat_u32(0);
  14874. }
  14875. int
  14876. main ()
  14877. {
  14878. ;
  14879. return 0;
  14880. }
  14881. _ACEOF
  14882. if ac_fn_c_try_compile "$LINENO"; then :
  14883. have_gcc_altivec=yes
  14884. have_altivec_h_hdr=yes
  14885. fi
  14886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14888. $as_echo "$have_gcc_altivec" >&6; }
  14889. fi
  14890. if test x$have_gcc_altivec = xno; then
  14891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14892. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14894. /* end confdefs.h. */
  14895. vector unsigned int vzero() {
  14896. return vec_splat_u32(0);
  14897. }
  14898. int
  14899. main ()
  14900. {
  14901. ;
  14902. return 0;
  14903. }
  14904. _ACEOF
  14905. if ac_fn_c_try_compile "$LINENO"; then :
  14906. have_gcc_altivec=yes
  14907. fi
  14908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14910. $as_echo "$have_gcc_altivec" >&6; }
  14911. fi
  14912. CFLAGS="$save_CFLAGS"
  14913. if test x$have_gcc_altivec = xyes; then
  14914. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  14915. if test x$have_altivec_h_hdr = xyes; then
  14916. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  14917. fi
  14918. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  14919. fi
  14920. fi
  14921. fi
  14922. CheckOSS()
  14923. {
  14924. # Check whether --enable-oss was given.
  14925. if test "${enable_oss+set}" = set; then :
  14926. enableval=$enable_oss;
  14927. else
  14928. enable_oss=maybe
  14929. fi
  14930. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  14931. # use sndio instead. So on there, we default to disabled. You can force
  14932. # it on if you really want, though.
  14933. if test x$enable_oss = xmaybe; then
  14934. enable_oss=yes
  14935. case "$host" in
  14936. *-*-openbsd*)
  14937. enable_oss=no;;
  14938. esac
  14939. fi
  14940. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  14941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  14942. $as_echo_n "checking for OSS audio support... " >&6; }
  14943. have_oss=no
  14944. if test x$have_oss != xyes; then
  14945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14946. /* end confdefs.h. */
  14947. #include <sys/soundcard.h>
  14948. int
  14949. main ()
  14950. {
  14951. int arg = SNDCTL_DSP_SETFRAGMENT;
  14952. ;
  14953. return 0;
  14954. }
  14955. _ACEOF
  14956. if ac_fn_c_try_compile "$LINENO"; then :
  14957. have_oss=yes
  14958. fi
  14959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14960. fi
  14961. if test x$have_oss != xyes; then
  14962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14963. /* end confdefs.h. */
  14964. #include <soundcard.h>
  14965. int
  14966. main ()
  14967. {
  14968. int arg = SNDCTL_DSP_SETFRAGMENT;
  14969. ;
  14970. return 0;
  14971. }
  14972. _ACEOF
  14973. if ac_fn_c_try_compile "$LINENO"; then :
  14974. have_oss=yes
  14975. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  14976. fi
  14977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14978. fi
  14979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  14980. $as_echo "$have_oss" >&6; }
  14981. if test x$have_oss = xyes; then
  14982. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  14983. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  14984. have_audio=yes
  14985. # We may need to link with ossaudio emulation library
  14986. case "$host" in
  14987. *-*-openbsd*|*-*-netbsd*)
  14988. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  14989. esac
  14990. fi
  14991. fi
  14992. }
  14993. CheckALSA()
  14994. {
  14995. # Check whether --enable-alsa was given.
  14996. if test "${enable_alsa+set}" = set; then :
  14997. enableval=$enable_alsa;
  14998. else
  14999. enable_alsa=yes
  15000. fi
  15001. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15002. alsa_save_CFLAGS="$CFLAGS"
  15003. alsa_save_LDFLAGS="$LDFLAGS"
  15004. alsa_save_LIBS="$LIBS"
  15005. alsa_found=yes
  15006. # Check whether --with-alsa-prefix was given.
  15007. if test "${with_alsa_prefix+set}" = set; then :
  15008. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15009. else
  15010. alsa_prefix=""
  15011. fi
  15012. # Check whether --with-alsa-inc-prefix was given.
  15013. if test "${with_alsa_inc_prefix+set}" = set; then :
  15014. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15015. else
  15016. alsa_inc_prefix=""
  15017. fi
  15018. # Check whether --enable-alsatest was given.
  15019. if test "${enable_alsatest+set}" = set; then :
  15020. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15021. else
  15022. enable_alsatest=yes
  15023. fi
  15024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15025. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15026. if test "$alsa_inc_prefix" != "" ; then
  15027. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15028. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15029. fi
  15030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15031. $as_echo "$ALSA_CFLAGS" >&6; }
  15032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15033. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15034. if test "$alsa_prefix" != "" ; then
  15035. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15036. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15037. fi
  15038. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15039. LIBS=`echo $LIBS | sed 's/-lm//'`
  15040. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15041. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15042. LIBS=`echo $LIBS | sed 's/ //'`
  15043. LIBS="$ALSA_LIBS $LIBS"
  15044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15045. $as_echo "$ALSA_LIBS" >&6; }
  15046. min_alsa_version=0.9.0
  15047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15048. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15049. no_alsa=""
  15050. alsa_min_major_version=`echo $min_alsa_version | \
  15051. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15052. alsa_min_minor_version=`echo $min_alsa_version | \
  15053. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15054. alsa_min_micro_version=`echo $min_alsa_version | \
  15055. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15056. ac_ext=c
  15057. ac_cpp='$CPP $CPPFLAGS'
  15058. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15059. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15060. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15062. /* end confdefs.h. */
  15063. #include <alsa/asoundlib.h>
  15064. int
  15065. main ()
  15066. {
  15067. /* ensure backward compatibility */
  15068. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15069. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15070. #endif
  15071. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15072. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15073. #endif
  15074. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15075. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15076. #endif
  15077. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15078. exit(0);
  15079. # else
  15080. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15081. # error not present
  15082. # endif
  15083. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15084. exit(0);
  15085. # else
  15086. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15087. # error not present
  15088. # endif
  15089. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15090. # error not present
  15091. # endif
  15092. # endif
  15093. # endif
  15094. exit(0);
  15095. ;
  15096. return 0;
  15097. }
  15098. _ACEOF
  15099. if ac_fn_c_try_compile "$LINENO"; then :
  15100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15101. $as_echo "found." >&6; }
  15102. else
  15103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15104. $as_echo "not present." >&6; }
  15105. alsa_found=no
  15106. fi
  15107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15108. ac_ext=c
  15109. ac_cpp='$CPP $CPPFLAGS'
  15110. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15111. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15112. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15113. if test "x$enable_alsatest" = "xyes"; then
  15114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15115. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15116. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15117. $as_echo_n "(cached) " >&6
  15118. else
  15119. ac_check_lib_save_LIBS=$LIBS
  15120. LIBS="-lasound $LIBS"
  15121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15122. /* end confdefs.h. */
  15123. /* Override any GCC internal prototype to avoid an error.
  15124. Use char because int might match the return type of a GCC
  15125. builtin and then its argument prototype would still apply. */
  15126. #ifdef __cplusplus
  15127. extern "C"
  15128. #endif
  15129. char snd_ctl_open ();
  15130. int
  15131. main ()
  15132. {
  15133. return snd_ctl_open ();
  15134. ;
  15135. return 0;
  15136. }
  15137. _ACEOF
  15138. if ac_fn_c_try_link "$LINENO"; then :
  15139. ac_cv_lib_asound_snd_ctl_open=yes
  15140. else
  15141. ac_cv_lib_asound_snd_ctl_open=no
  15142. fi
  15143. rm -f core conftest.err conftest.$ac_objext \
  15144. conftest$ac_exeext conftest.$ac_ext
  15145. LIBS=$ac_check_lib_save_LIBS
  15146. fi
  15147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15148. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15149. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15150. cat >>confdefs.h <<_ACEOF
  15151. #define HAVE_LIBASOUND 1
  15152. _ACEOF
  15153. LIBS="-lasound $LIBS"
  15154. else
  15155. alsa_found=no
  15156. fi
  15157. fi
  15158. if test "x$alsa_found" = "xyes" ; then
  15159. have_alsa=yes
  15160. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15161. LIBS=`echo $LIBS | sed 's/ //'`
  15162. LIBS="-lasound $LIBS"
  15163. fi
  15164. if test "x$alsa_found" = "xno" ; then
  15165. have_alsa=no
  15166. CFLAGS="$alsa_save_CFLAGS"
  15167. LDFLAGS="$alsa_save_LDFLAGS"
  15168. LIBS="$alsa_save_LIBS"
  15169. ALSA_CFLAGS=""
  15170. ALSA_LIBS=""
  15171. fi
  15172. # Restore all flags from before the ALSA detection runs
  15173. CFLAGS="$alsa_save_CFLAGS"
  15174. LDFLAGS="$alsa_save_LDFLAGS"
  15175. LIBS="$alsa_save_LIBS"
  15176. if test x$have_alsa = xyes; then
  15177. # Check whether --enable-alsa-shared was given.
  15178. if test "${enable_alsa_shared+set}" = set; then :
  15179. enableval=$enable_alsa_shared;
  15180. else
  15181. enable_alsa_shared=yes
  15182. fi
  15183. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15184. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15185. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15186. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15187. if test x$have_loadso != xyes && \
  15188. test x$enable_alsa_shared = xyes; then
  15189. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15190. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15191. fi
  15192. if test x$have_loadso = xyes && \
  15193. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15194. echo "-- dynamic libasound -> $alsa_lib"
  15195. cat >>confdefs.h <<_ACEOF
  15196. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15197. _ACEOF
  15198. else
  15199. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15200. fi
  15201. have_audio=yes
  15202. fi
  15203. fi
  15204. }
  15205. CheckESD()
  15206. {
  15207. # Check whether --enable-esd was given.
  15208. if test "${enable_esd+set}" = set; then :
  15209. enableval=$enable_esd;
  15210. else
  15211. enable_esd=yes
  15212. fi
  15213. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15214. # Check whether --with-esd-prefix was given.
  15215. if test "${with_esd_prefix+set}" = set; then :
  15216. withval=$with_esd_prefix; esd_prefix="$withval"
  15217. else
  15218. esd_prefix=""
  15219. fi
  15220. # Check whether --with-esd-exec-prefix was given.
  15221. if test "${with_esd_exec_prefix+set}" = set; then :
  15222. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15223. else
  15224. esd_exec_prefix=""
  15225. fi
  15226. # Check whether --enable-esdtest was given.
  15227. if test "${enable_esdtest+set}" = set; then :
  15228. enableval=$enable_esdtest;
  15229. else
  15230. enable_esdtest=yes
  15231. fi
  15232. if test x$esd_exec_prefix != x ; then
  15233. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15234. if test x${ESD_CONFIG+set} != xset ; then
  15235. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15236. fi
  15237. fi
  15238. if test x$esd_prefix != x ; then
  15239. esd_args="$esd_args --prefix=$esd_prefix"
  15240. if test x${ESD_CONFIG+set} != xset ; then
  15241. ESD_CONFIG=$esd_prefix/bin/esd-config
  15242. fi
  15243. fi
  15244. # Extract the first word of "esd-config", so it can be a program name with args.
  15245. set dummy esd-config; ac_word=$2
  15246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15247. $as_echo_n "checking for $ac_word... " >&6; }
  15248. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15249. $as_echo_n "(cached) " >&6
  15250. else
  15251. case $ESD_CONFIG in
  15252. [\\/]* | ?:[\\/]*)
  15253. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15254. ;;
  15255. *)
  15256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15257. for as_dir in $PATH
  15258. do
  15259. IFS=$as_save_IFS
  15260. test -z "$as_dir" && as_dir=.
  15261. for ac_exec_ext in '' $ac_executable_extensions; do
  15262. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15263. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15265. break 2
  15266. fi
  15267. done
  15268. done
  15269. IFS=$as_save_IFS
  15270. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15271. ;;
  15272. esac
  15273. fi
  15274. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15275. if test -n "$ESD_CONFIG"; then
  15276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15277. $as_echo "$ESD_CONFIG" >&6; }
  15278. else
  15279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15280. $as_echo "no" >&6; }
  15281. fi
  15282. min_esd_version=0.2.8
  15283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15284. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15285. no_esd=""
  15286. if test "$ESD_CONFIG" = "no" ; then
  15287. no_esd=yes
  15288. else
  15289. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15290. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15291. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15292. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15293. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15294. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15295. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15296. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15297. if test "x$enable_esdtest" = "xyes" ; then
  15298. ac_save_CFLAGS="$CFLAGS"
  15299. ac_save_LIBS="$LIBS"
  15300. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15301. LIBS="$LIBS $ESD_LIBS"
  15302. rm -f conf.esdtest
  15303. if test "$cross_compiling" = yes; then :
  15304. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15305. else
  15306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15307. /* end confdefs.h. */
  15308. #include <stdio.h>
  15309. #include <stdlib.h>
  15310. #include <string.h>
  15311. #include <esd.h>
  15312. char*
  15313. my_strdup (char *str)
  15314. {
  15315. char *new_str;
  15316. if (str)
  15317. {
  15318. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15319. strcpy (new_str, str);
  15320. }
  15321. else
  15322. new_str = NULL;
  15323. return new_str;
  15324. }
  15325. int main ()
  15326. {
  15327. int major, minor, micro;
  15328. char *tmp_version;
  15329. system ("touch conf.esdtest");
  15330. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15331. tmp_version = my_strdup("$min_esd_version");
  15332. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15333. printf("%s, bad version string\n", "$min_esd_version");
  15334. exit(1);
  15335. }
  15336. if (($esd_major_version > major) ||
  15337. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15338. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15339. {
  15340. return 0;
  15341. }
  15342. else
  15343. {
  15344. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15345. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15346. printf("*** best to upgrade to the required version.\n");
  15347. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15348. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15349. printf("*** config.cache before re-running configure\n");
  15350. return 1;
  15351. }
  15352. }
  15353. _ACEOF
  15354. if ac_fn_c_try_run "$LINENO"; then :
  15355. else
  15356. no_esd=yes
  15357. fi
  15358. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15359. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15360. fi
  15361. CFLAGS="$ac_save_CFLAGS"
  15362. LIBS="$ac_save_LIBS"
  15363. fi
  15364. fi
  15365. if test "x$no_esd" = x ; then
  15366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15367. $as_echo "yes" >&6; }
  15368. have_esd=yes
  15369. else
  15370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15371. $as_echo "no" >&6; }
  15372. if test "$ESD_CONFIG" = "no" ; then
  15373. echo "*** The esd-config script installed by ESD could not be found"
  15374. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15375. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15376. echo "*** full path to esd-config."
  15377. else
  15378. if test -f conf.esdtest ; then
  15379. :
  15380. else
  15381. echo "*** Could not run ESD test program, checking why..."
  15382. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15383. LIBS="$LIBS $ESD_LIBS"
  15384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15385. /* end confdefs.h. */
  15386. #include <stdio.h>
  15387. #include <esd.h>
  15388. int
  15389. main ()
  15390. {
  15391. return 0;
  15392. ;
  15393. return 0;
  15394. }
  15395. _ACEOF
  15396. if ac_fn_c_try_link "$LINENO"; then :
  15397. echo "*** The test program compiled, but did not run. This usually means"
  15398. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15399. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15400. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15401. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15402. echo "*** is required on your system"
  15403. echo "***"
  15404. echo "*** If you have an old version installed, it is best to remove it, although"
  15405. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15406. else
  15407. echo "*** The test program failed to compile or link. See the file config.log for the"
  15408. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15409. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15410. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15411. fi
  15412. rm -f core conftest.err conftest.$ac_objext \
  15413. conftest$ac_exeext conftest.$ac_ext
  15414. CFLAGS="$ac_save_CFLAGS"
  15415. LIBS="$ac_save_LIBS"
  15416. fi
  15417. fi
  15418. ESD_CFLAGS=""
  15419. ESD_LIBS=""
  15420. have_esd=no
  15421. fi
  15422. rm -f conf.esdtest
  15423. if test x$have_esd = xyes; then
  15424. # Check whether --enable-esd-shared was given.
  15425. if test "${enable_esd_shared+set}" = set; then :
  15426. enableval=$enable_esd_shared;
  15427. else
  15428. enable_esd_shared=yes
  15429. fi
  15430. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15431. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15432. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15433. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15434. if test x$have_loadso != xyes && \
  15435. test x$enable_esd_shared = xyes; then
  15436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15437. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15438. fi
  15439. if test x$have_loadso = xyes && \
  15440. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15441. echo "-- dynamic libesd -> $esd_lib"
  15442. cat >>confdefs.h <<_ACEOF
  15443. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15444. _ACEOF
  15445. else
  15446. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15447. fi
  15448. have_audio=yes
  15449. fi
  15450. fi
  15451. }
  15452. CheckPulseAudio()
  15453. {
  15454. # Check whether --enable-pulseaudio was given.
  15455. if test "${enable_pulseaudio+set}" = set; then :
  15456. enableval=$enable_pulseaudio;
  15457. else
  15458. enable_pulseaudio=yes
  15459. fi
  15460. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15461. audio_pulseaudio=no
  15462. PULSEAUDIO_REQUIRED_VERSION=0.9
  15463. # Extract the first word of "pkg-config", so it can be a program name with args.
  15464. set dummy pkg-config; ac_word=$2
  15465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15466. $as_echo_n "checking for $ac_word... " >&6; }
  15467. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15468. $as_echo_n "(cached) " >&6
  15469. else
  15470. case $PKG_CONFIG in
  15471. [\\/]* | ?:[\\/]*)
  15472. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15473. ;;
  15474. *)
  15475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15476. for as_dir in $PATH
  15477. do
  15478. IFS=$as_save_IFS
  15479. test -z "$as_dir" && as_dir=.
  15480. for ac_exec_ext in '' $ac_executable_extensions; do
  15481. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15482. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15484. break 2
  15485. fi
  15486. done
  15487. done
  15488. IFS=$as_save_IFS
  15489. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15490. ;;
  15491. esac
  15492. fi
  15493. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15494. if test -n "$PKG_CONFIG"; then
  15495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15496. $as_echo "$PKG_CONFIG" >&6; }
  15497. else
  15498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15499. $as_echo "no" >&6; }
  15500. fi
  15501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15502. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15503. if test x$PKG_CONFIG != xno; then
  15504. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15505. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15506. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15507. audio_pulseaudio=yes
  15508. fi
  15509. fi
  15510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15511. $as_echo "$audio_pulseaudio" >&6; }
  15512. if test x$audio_pulseaudio = xyes; then
  15513. # Check whether --enable-pulseaudio-shared was given.
  15514. if test "${enable_pulseaudio_shared+set}" = set; then :
  15515. enableval=$enable_pulseaudio_shared;
  15516. else
  15517. enable_pulseaudio_shared=yes
  15518. fi
  15519. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15520. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15521. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15522. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15523. if test x$have_loadso != xyes && \
  15524. test x$enable_pulseaudio_shared = xyes; then
  15525. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15526. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15527. fi
  15528. if test x$have_loadso = xyes && \
  15529. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15530. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15531. cat >>confdefs.h <<_ACEOF
  15532. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15533. _ACEOF
  15534. case "$host" in
  15535. # On Solaris, pulseaudio must be linked deferred explicitly
  15536. # to prevent undefined symbol failures.
  15537. *-*-solaris*)
  15538. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15539. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15540. esac
  15541. else
  15542. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15543. fi
  15544. have_audio=yes
  15545. fi
  15546. fi
  15547. }
  15548. CheckARTSC()
  15549. {
  15550. # Check whether --enable-arts was given.
  15551. if test "${enable_arts+set}" = set; then :
  15552. enableval=$enable_arts;
  15553. else
  15554. enable_arts=yes
  15555. fi
  15556. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15557. # Extract the first word of "artsc-config", so it can be a program name with args.
  15558. set dummy artsc-config; ac_word=$2
  15559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15560. $as_echo_n "checking for $ac_word... " >&6; }
  15561. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15562. $as_echo_n "(cached) " >&6
  15563. else
  15564. case $ARTSCONFIG in
  15565. [\\/]* | ?:[\\/]*)
  15566. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15567. ;;
  15568. *)
  15569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15570. for as_dir in $PATH
  15571. do
  15572. IFS=$as_save_IFS
  15573. test -z "$as_dir" && as_dir=.
  15574. for ac_exec_ext in '' $ac_executable_extensions; do
  15575. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15576. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15578. break 2
  15579. fi
  15580. done
  15581. done
  15582. IFS=$as_save_IFS
  15583. ;;
  15584. esac
  15585. fi
  15586. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15587. if test -n "$ARTSCONFIG"; then
  15588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15589. $as_echo "$ARTSCONFIG" >&6; }
  15590. else
  15591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15592. $as_echo "no" >&6; }
  15593. fi
  15594. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15595. : # arts isn't installed
  15596. else
  15597. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15598. ARTS_LIBS=`$ARTSCONFIG --libs`
  15599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15600. $as_echo_n "checking for aRts development environment... " >&6; }
  15601. audio_arts=no
  15602. save_CFLAGS="$CFLAGS"
  15603. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15605. /* end confdefs.h. */
  15606. #include <artsc.h>
  15607. int
  15608. main ()
  15609. {
  15610. arts_stream_t stream;
  15611. ;
  15612. return 0;
  15613. }
  15614. _ACEOF
  15615. if ac_fn_c_try_compile "$LINENO"; then :
  15616. audio_arts=yes
  15617. fi
  15618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15619. CFLAGS="$save_CFLAGS"
  15620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15621. $as_echo "$audio_arts" >&6; }
  15622. if test x$audio_arts = xyes; then
  15623. # Check whether --enable-arts-shared was given.
  15624. if test "${enable_arts_shared+set}" = set; then :
  15625. enableval=$enable_arts_shared;
  15626. else
  15627. enable_arts_shared=yes
  15628. fi
  15629. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15630. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15631. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15632. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15633. if test x$have_loadso != xyes && \
  15634. test x$enable_arts_shared = xyes; then
  15635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15636. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15637. fi
  15638. if test x$have_loadso = xyes && \
  15639. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15640. echo "-- dynamic libartsc -> $arts_lib"
  15641. cat >>confdefs.h <<_ACEOF
  15642. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15643. _ACEOF
  15644. else
  15645. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15646. fi
  15647. have_audio=yes
  15648. fi
  15649. fi
  15650. fi
  15651. }
  15652. CheckNAS()
  15653. {
  15654. # Check whether --enable-nas was given.
  15655. if test "${enable_nas+set}" = set; then :
  15656. enableval=$enable_nas;
  15657. else
  15658. enable_nas=yes
  15659. fi
  15660. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15661. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15662. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15663. have_nas_hdr=yes
  15664. fi
  15665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15666. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15667. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15668. $as_echo_n "(cached) " >&6
  15669. else
  15670. ac_check_lib_save_LIBS=$LIBS
  15671. LIBS="-laudio $LIBS"
  15672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15673. /* end confdefs.h. */
  15674. /* Override any GCC internal prototype to avoid an error.
  15675. Use char because int might match the return type of a GCC
  15676. builtin and then its argument prototype would still apply. */
  15677. #ifdef __cplusplus
  15678. extern "C"
  15679. #endif
  15680. char AuOpenServer ();
  15681. int
  15682. main ()
  15683. {
  15684. return AuOpenServer ();
  15685. ;
  15686. return 0;
  15687. }
  15688. _ACEOF
  15689. if ac_fn_c_try_link "$LINENO"; then :
  15690. ac_cv_lib_audio_AuOpenServer=yes
  15691. else
  15692. ac_cv_lib_audio_AuOpenServer=no
  15693. fi
  15694. rm -f core conftest.err conftest.$ac_objext \
  15695. conftest$ac_exeext conftest.$ac_ext
  15696. LIBS=$ac_check_lib_save_LIBS
  15697. fi
  15698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15699. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15700. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15701. have_nas_lib=yes
  15702. fi
  15703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15704. $as_echo_n "checking for NAS audio support... " >&6; }
  15705. have_nas=no
  15706. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15707. have_nas=yes
  15708. NAS_LIBS="-laudio"
  15709. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15710. have_nas=yes
  15711. NAS_CFLAGS="-I/usr/X11R6/include/"
  15712. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15713. fi
  15714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15715. $as_echo "$have_nas" >&6; }
  15716. if test x$have_nas = xyes; then
  15717. # Check whether --enable-nas-shared was given.
  15718. if test "${enable_nas_shared+set}" = set; then :
  15719. enableval=$enable_nas_shared;
  15720. else
  15721. enable_nas_shared=yes
  15722. fi
  15723. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15724. if test x$have_loadso != xyes && \
  15725. test x$enable_nas_shared = xyes; then
  15726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15727. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15728. fi
  15729. if test x$have_loadso = xyes && \
  15730. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15731. echo "-- dynamic libaudio -> $nas_lib"
  15732. cat >>confdefs.h <<_ACEOF
  15733. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15734. _ACEOF
  15735. else
  15736. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15737. fi
  15738. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15739. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15740. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15741. have_audio=yes
  15742. fi
  15743. fi
  15744. }
  15745. CheckSNDIO()
  15746. {
  15747. # Check whether --enable-sndio was given.
  15748. if test "${enable_sndio+set}" = set; then :
  15749. enableval=$enable_sndio;
  15750. else
  15751. enable_sndio=yes
  15752. fi
  15753. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15754. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15755. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15756. have_sndio_hdr=yes
  15757. fi
  15758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15759. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15760. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15761. $as_echo_n "(cached) " >&6
  15762. else
  15763. ac_check_lib_save_LIBS=$LIBS
  15764. LIBS="-lsndio $LIBS"
  15765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15766. /* end confdefs.h. */
  15767. /* Override any GCC internal prototype to avoid an error.
  15768. Use char because int might match the return type of a GCC
  15769. builtin and then its argument prototype would still apply. */
  15770. #ifdef __cplusplus
  15771. extern "C"
  15772. #endif
  15773. char sio_open ();
  15774. int
  15775. main ()
  15776. {
  15777. return sio_open ();
  15778. ;
  15779. return 0;
  15780. }
  15781. _ACEOF
  15782. if ac_fn_c_try_link "$LINENO"; then :
  15783. ac_cv_lib_sndio_sio_open=yes
  15784. else
  15785. ac_cv_lib_sndio_sio_open=no
  15786. fi
  15787. rm -f core conftest.err conftest.$ac_objext \
  15788. conftest$ac_exeext conftest.$ac_ext
  15789. LIBS=$ac_check_lib_save_LIBS
  15790. fi
  15791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15792. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15793. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15794. have_sndio_lib=yes
  15795. fi
  15796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15797. $as_echo_n "checking for sndio audio support... " >&6; }
  15798. have_sndio=no
  15799. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15800. have_sndio=yes
  15801. SNDIO_LIBS="-lsndio"
  15802. fi
  15803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15804. $as_echo "$have_sndio" >&6; }
  15805. if test x$have_sndio = xyes; then
  15806. # Check whether --enable-sndio-shared was given.
  15807. if test "${enable_sndio_shared+set}" = set; then :
  15808. enableval=$enable_sndio_shared;
  15809. else
  15810. enable_sndio_shared=yes
  15811. fi
  15812. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15813. if test x$have_loadso != xyes && \
  15814. test x$enable_sndio_shared = xyes; then
  15815. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15816. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15817. fi
  15818. if test x$have_loadso = xyes && \
  15819. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15820. echo "-- dynamic libsndio -> $sndio_lib"
  15821. cat >>confdefs.h <<_ACEOF
  15822. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15823. _ACEOF
  15824. else
  15825. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15826. fi
  15827. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15828. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15829. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15830. have_audio=yes
  15831. fi
  15832. fi
  15833. }
  15834. CheckDiskAudio()
  15835. {
  15836. # Check whether --enable-diskaudio was given.
  15837. if test "${enable_diskaudio+set}" = set; then :
  15838. enableval=$enable_diskaudio;
  15839. else
  15840. enable_diskaudio=yes
  15841. fi
  15842. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15843. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15844. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15845. fi
  15846. }
  15847. CheckDummyAudio()
  15848. {
  15849. # Check whether --enable-dummyaudio was given.
  15850. if test "${enable_dummyaudio+set}" = set; then :
  15851. enableval=$enable_dummyaudio;
  15852. else
  15853. enable_dummyaudio=yes
  15854. fi
  15855. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15856. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15857. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15858. fi
  15859. }
  15860. CheckVisibilityHidden()
  15861. {
  15862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15863. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15864. have_gcc_fvisibility=no
  15865. visibility_CFLAGS="-fvisibility=hidden"
  15866. save_CFLAGS="$CFLAGS"
  15867. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15869. /* end confdefs.h. */
  15870. #if !defined(__GNUC__) || __GNUC__ < 4
  15871. #error SDL only uses visibility attributes in GCC 4 or newer
  15872. #endif
  15873. int
  15874. main ()
  15875. {
  15876. ;
  15877. return 0;
  15878. }
  15879. _ACEOF
  15880. if ac_fn_c_try_compile "$LINENO"; then :
  15881. have_gcc_fvisibility=yes
  15882. fi
  15883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15885. $as_echo "$have_gcc_fvisibility" >&6; }
  15886. CFLAGS="$save_CFLAGS"
  15887. if test x$have_gcc_fvisibility = xyes; then
  15888. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15889. fi
  15890. }
  15891. CheckStackBoundary()
  15892. {
  15893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  15894. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  15895. have_gcc_preferred_stack_boundary=no
  15896. save_CFLAGS="$CFLAGS"
  15897. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  15898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15899. /* end confdefs.h. */
  15900. int x = 0;
  15901. int
  15902. main ()
  15903. {
  15904. ;
  15905. return 0;
  15906. }
  15907. _ACEOF
  15908. if ac_fn_c_try_compile "$LINENO"; then :
  15909. have_gcc_preferred_stack_boundary=yes
  15910. fi
  15911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  15913. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  15914. CFLAGS="$save_CFLAGS"
  15915. if test x$have_gcc_preferred_stack_boundary = xyes; then
  15916. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  15917. fi
  15918. }
  15919. CheckWarnAll()
  15920. {
  15921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  15922. $as_echo_n "checking for GCC -Wall option... " >&6; }
  15923. have_gcc_Wall=no
  15924. save_CFLAGS="$CFLAGS"
  15925. CFLAGS="$save_CFLAGS -Wall"
  15926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15927. /* end confdefs.h. */
  15928. int x = 0;
  15929. int
  15930. main ()
  15931. {
  15932. ;
  15933. return 0;
  15934. }
  15935. _ACEOF
  15936. if ac_fn_c_try_compile "$LINENO"; then :
  15937. have_gcc_Wall=yes
  15938. fi
  15939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  15941. $as_echo "$have_gcc_Wall" >&6; }
  15942. CFLAGS="$save_CFLAGS"
  15943. if test x$have_gcc_Wall = xyes; then
  15944. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  15945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  15946. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  15947. need_gcc_Wno_multichar=no
  15948. case "$host" in
  15949. *-*-beos* | *-*-haiku*)
  15950. need_gcc_Wno_multichar=yes
  15951. ;;
  15952. esac
  15953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  15954. $as_echo "$need_gcc_Wno_multichar" >&6; }
  15955. if test x$need_gcc_Wno_multichar = xyes; then
  15956. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  15957. fi
  15958. fi
  15959. }
  15960. CheckX11()
  15961. {
  15962. # Check whether --enable-video-x11 was given.
  15963. if test "${enable_video_x11+set}" = set; then :
  15964. enableval=$enable_video_x11;
  15965. else
  15966. enable_video_x11=yes
  15967. fi
  15968. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  15969. case "$host" in
  15970. *-*-darwin*)
  15971. # This isn't necessary for X11, but fixes GLX detection
  15972. if test "x$x_includes" = xNONE && \
  15973. test "x$x_libraries" = xNONE && \
  15974. test -d /usr/X11R6/include && \
  15975. test -d /usr/X11R6/lib; then
  15976. x_includes="/usr/X11R6/include"
  15977. x_libraries="/usr/X11R6/lib"
  15978. fi
  15979. ;;
  15980. esac
  15981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  15982. $as_echo_n "checking for X... " >&6; }
  15983. # Check whether --with-x was given.
  15984. if test "${with_x+set}" = set; then :
  15985. withval=$with_x;
  15986. fi
  15987. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  15988. if test "x$with_x" = xno; then
  15989. # The user explicitly disabled X.
  15990. have_x=disabled
  15991. else
  15992. case $x_includes,$x_libraries in #(
  15993. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  15994. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  15995. $as_echo_n "(cached) " >&6
  15996. else
  15997. # One or both of the vars are not set, and there is no cached value.
  15998. ac_x_includes=no ac_x_libraries=no
  15999. rm -f -r conftest.dir
  16000. if mkdir conftest.dir; then
  16001. cd conftest.dir
  16002. cat >Imakefile <<'_ACEOF'
  16003. incroot:
  16004. @echo incroot='${INCROOT}'
  16005. usrlibdir:
  16006. @echo usrlibdir='${USRLIBDIR}'
  16007. libdir:
  16008. @echo libdir='${LIBDIR}'
  16009. _ACEOF
  16010. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16011. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16012. for ac_var in incroot usrlibdir libdir; do
  16013. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16014. done
  16015. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16016. for ac_extension in a so sl dylib la dll; do
  16017. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16018. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16019. ac_im_usrlibdir=$ac_im_libdir; break
  16020. fi
  16021. done
  16022. # Screen out bogus values from the imake configuration. They are
  16023. # bogus both because they are the default anyway, and because
  16024. # using them would break gcc on systems where it needs fixed includes.
  16025. case $ac_im_incroot in
  16026. /usr/include) ac_x_includes= ;;
  16027. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16028. esac
  16029. case $ac_im_usrlibdir in
  16030. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16031. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16032. esac
  16033. fi
  16034. cd ..
  16035. rm -f -r conftest.dir
  16036. fi
  16037. # Standard set of common directories for X headers.
  16038. # Check X11 before X11Rn because it is often a symlink to the current release.
  16039. ac_x_header_dirs='
  16040. /usr/X11/include
  16041. /usr/X11R7/include
  16042. /usr/X11R6/include
  16043. /usr/X11R5/include
  16044. /usr/X11R4/include
  16045. /usr/include/X11
  16046. /usr/include/X11R7
  16047. /usr/include/X11R6
  16048. /usr/include/X11R5
  16049. /usr/include/X11R4
  16050. /usr/local/X11/include
  16051. /usr/local/X11R7/include
  16052. /usr/local/X11R6/include
  16053. /usr/local/X11R5/include
  16054. /usr/local/X11R4/include
  16055. /usr/local/include/X11
  16056. /usr/local/include/X11R7
  16057. /usr/local/include/X11R6
  16058. /usr/local/include/X11R5
  16059. /usr/local/include/X11R4
  16060. /usr/X386/include
  16061. /usr/x386/include
  16062. /usr/XFree86/include/X11
  16063. /usr/include
  16064. /usr/local/include
  16065. /usr/unsupported/include
  16066. /usr/athena/include
  16067. /usr/local/x11r5/include
  16068. /usr/lpp/Xamples/include
  16069. /usr/openwin/include
  16070. /usr/openwin/share/include'
  16071. if test "$ac_x_includes" = no; then
  16072. # Guess where to find include files, by looking for Xlib.h.
  16073. # First, try using that file with no special directory specified.
  16074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16075. /* end confdefs.h. */
  16076. #include <X11/Xlib.h>
  16077. _ACEOF
  16078. if ac_fn_c_try_cpp "$LINENO"; then :
  16079. # We can compile using X headers with no special include directory.
  16080. ac_x_includes=
  16081. else
  16082. for ac_dir in $ac_x_header_dirs; do
  16083. if test -r "$ac_dir/X11/Xlib.h"; then
  16084. ac_x_includes=$ac_dir
  16085. break
  16086. fi
  16087. done
  16088. fi
  16089. rm -f conftest.err conftest.i conftest.$ac_ext
  16090. fi # $ac_x_includes = no
  16091. if test "$ac_x_libraries" = no; then
  16092. # Check for the libraries.
  16093. # See if we find them without any special options.
  16094. # Don't add to $LIBS permanently.
  16095. ac_save_LIBS=$LIBS
  16096. LIBS="-lX11 $LIBS"
  16097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16098. /* end confdefs.h. */
  16099. #include <X11/Xlib.h>
  16100. int
  16101. main ()
  16102. {
  16103. XrmInitialize ()
  16104. ;
  16105. return 0;
  16106. }
  16107. _ACEOF
  16108. if ac_fn_c_try_link "$LINENO"; then :
  16109. LIBS=$ac_save_LIBS
  16110. # We can link X programs with no special library path.
  16111. ac_x_libraries=
  16112. else
  16113. LIBS=$ac_save_LIBS
  16114. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16115. do
  16116. # Don't even attempt the hair of trying to link an X program!
  16117. for ac_extension in a so sl dylib la dll; do
  16118. if test -r "$ac_dir/libX11.$ac_extension"; then
  16119. ac_x_libraries=$ac_dir
  16120. break 2
  16121. fi
  16122. done
  16123. done
  16124. fi
  16125. rm -f core conftest.err conftest.$ac_objext \
  16126. conftest$ac_exeext conftest.$ac_ext
  16127. fi # $ac_x_libraries = no
  16128. case $ac_x_includes,$ac_x_libraries in #(
  16129. no,* | *,no | *\'*)
  16130. # Didn't find X, or a directory has "'" in its name.
  16131. ac_cv_have_x="have_x=no";; #(
  16132. *)
  16133. # Record where we found X for the cache.
  16134. ac_cv_have_x="have_x=yes\
  16135. ac_x_includes='$ac_x_includes'\
  16136. ac_x_libraries='$ac_x_libraries'"
  16137. esac
  16138. fi
  16139. ;; #(
  16140. *) have_x=yes;;
  16141. esac
  16142. eval "$ac_cv_have_x"
  16143. fi # $with_x != no
  16144. if test "$have_x" != yes; then
  16145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16146. $as_echo "$have_x" >&6; }
  16147. no_x=yes
  16148. else
  16149. # If each of the values was on the command line, it overrides each guess.
  16150. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16151. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16152. # Update the cache value to reflect the command line values.
  16153. ac_cv_have_x="have_x=yes\
  16154. ac_x_includes='$x_includes'\
  16155. ac_x_libraries='$x_libraries'"
  16156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16157. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16158. fi
  16159. if test "$no_x" = yes; then
  16160. # Not all programs may use this symbol, but it does not hurt to define it.
  16161. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16162. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16163. else
  16164. if test -n "$x_includes"; then
  16165. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16166. fi
  16167. # It would also be nice to do this for all -L options, not just this one.
  16168. if test -n "$x_libraries"; then
  16169. X_LIBS="$X_LIBS -L$x_libraries"
  16170. # For Solaris; some versions of Sun CC require a space after -R and
  16171. # others require no space. Words are not sufficient . . . .
  16172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16173. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16174. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16175. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16176. ac_c_werror_flag=yes
  16177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16178. /* end confdefs.h. */
  16179. int
  16180. main ()
  16181. {
  16182. ;
  16183. return 0;
  16184. }
  16185. _ACEOF
  16186. if ac_fn_c_try_link "$LINENO"; then :
  16187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16188. $as_echo "no" >&6; }
  16189. X_LIBS="$X_LIBS -R$x_libraries"
  16190. else
  16191. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16193. /* end confdefs.h. */
  16194. int
  16195. main ()
  16196. {
  16197. ;
  16198. return 0;
  16199. }
  16200. _ACEOF
  16201. if ac_fn_c_try_link "$LINENO"; then :
  16202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16203. $as_echo "yes" >&6; }
  16204. X_LIBS="$X_LIBS -R $x_libraries"
  16205. else
  16206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16207. $as_echo "neither works" >&6; }
  16208. fi
  16209. rm -f core conftest.err conftest.$ac_objext \
  16210. conftest$ac_exeext conftest.$ac_ext
  16211. fi
  16212. rm -f core conftest.err conftest.$ac_objext \
  16213. conftest$ac_exeext conftest.$ac_ext
  16214. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16215. LIBS=$ac_xsave_LIBS
  16216. fi
  16217. # Check for system-dependent libraries X programs must link with.
  16218. # Do this before checking for the system-independent R6 libraries
  16219. # (-lICE), since we may need -lsocket or whatever for X linking.
  16220. if test "$ISC" = yes; then
  16221. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16222. else
  16223. # Martyn Johnson says this is needed for Ultrix, if the X
  16224. # libraries were built with DECnet support. And Karl Berry says
  16225. # the Alpha needs dnet_stub (dnet does not exist).
  16226. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16228. /* end confdefs.h. */
  16229. /* Override any GCC internal prototype to avoid an error.
  16230. Use char because int might match the return type of a GCC
  16231. builtin and then its argument prototype would still apply. */
  16232. #ifdef __cplusplus
  16233. extern "C"
  16234. #endif
  16235. char XOpenDisplay ();
  16236. int
  16237. main ()
  16238. {
  16239. return XOpenDisplay ();
  16240. ;
  16241. return 0;
  16242. }
  16243. _ACEOF
  16244. if ac_fn_c_try_link "$LINENO"; then :
  16245. else
  16246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16247. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16248. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16249. $as_echo_n "(cached) " >&6
  16250. else
  16251. ac_check_lib_save_LIBS=$LIBS
  16252. LIBS="-ldnet $LIBS"
  16253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16254. /* end confdefs.h. */
  16255. /* Override any GCC internal prototype to avoid an error.
  16256. Use char because int might match the return type of a GCC
  16257. builtin and then its argument prototype would still apply. */
  16258. #ifdef __cplusplus
  16259. extern "C"
  16260. #endif
  16261. char dnet_ntoa ();
  16262. int
  16263. main ()
  16264. {
  16265. return dnet_ntoa ();
  16266. ;
  16267. return 0;
  16268. }
  16269. _ACEOF
  16270. if ac_fn_c_try_link "$LINENO"; then :
  16271. ac_cv_lib_dnet_dnet_ntoa=yes
  16272. else
  16273. ac_cv_lib_dnet_dnet_ntoa=no
  16274. fi
  16275. rm -f core conftest.err conftest.$ac_objext \
  16276. conftest$ac_exeext conftest.$ac_ext
  16277. LIBS=$ac_check_lib_save_LIBS
  16278. fi
  16279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16280. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16281. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16282. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16283. fi
  16284. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16286. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16287. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16288. $as_echo_n "(cached) " >&6
  16289. else
  16290. ac_check_lib_save_LIBS=$LIBS
  16291. LIBS="-ldnet_stub $LIBS"
  16292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16293. /* end confdefs.h. */
  16294. /* Override any GCC internal prototype to avoid an error.
  16295. Use char because int might match the return type of a GCC
  16296. builtin and then its argument prototype would still apply. */
  16297. #ifdef __cplusplus
  16298. extern "C"
  16299. #endif
  16300. char dnet_ntoa ();
  16301. int
  16302. main ()
  16303. {
  16304. return dnet_ntoa ();
  16305. ;
  16306. return 0;
  16307. }
  16308. _ACEOF
  16309. if ac_fn_c_try_link "$LINENO"; then :
  16310. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16311. else
  16312. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16313. fi
  16314. rm -f core conftest.err conftest.$ac_objext \
  16315. conftest$ac_exeext conftest.$ac_ext
  16316. LIBS=$ac_check_lib_save_LIBS
  16317. fi
  16318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16319. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16320. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16321. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16322. fi
  16323. fi
  16324. fi
  16325. rm -f core conftest.err conftest.$ac_objext \
  16326. conftest$ac_exeext conftest.$ac_ext
  16327. LIBS="$ac_xsave_LIBS"
  16328. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16329. # to get the SysV transport functions.
  16330. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16331. # needs -lnsl.
  16332. # The nsl library prevents programs from opening the X display
  16333. # on Irix 5.2, according to T.E. Dickey.
  16334. # The functions gethostbyname, getservbyname, and inet_addr are
  16335. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16336. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16337. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16338. fi
  16339. if test $ac_cv_func_gethostbyname = no; then
  16340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16341. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16342. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16343. $as_echo_n "(cached) " >&6
  16344. else
  16345. ac_check_lib_save_LIBS=$LIBS
  16346. LIBS="-lnsl $LIBS"
  16347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16348. /* end confdefs.h. */
  16349. /* Override any GCC internal prototype to avoid an error.
  16350. Use char because int might match the return type of a GCC
  16351. builtin and then its argument prototype would still apply. */
  16352. #ifdef __cplusplus
  16353. extern "C"
  16354. #endif
  16355. char gethostbyname ();
  16356. int
  16357. main ()
  16358. {
  16359. return gethostbyname ();
  16360. ;
  16361. return 0;
  16362. }
  16363. _ACEOF
  16364. if ac_fn_c_try_link "$LINENO"; then :
  16365. ac_cv_lib_nsl_gethostbyname=yes
  16366. else
  16367. ac_cv_lib_nsl_gethostbyname=no
  16368. fi
  16369. rm -f core conftest.err conftest.$ac_objext \
  16370. conftest$ac_exeext conftest.$ac_ext
  16371. LIBS=$ac_check_lib_save_LIBS
  16372. fi
  16373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16374. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16375. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16376. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16377. fi
  16378. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16380. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16381. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16382. $as_echo_n "(cached) " >&6
  16383. else
  16384. ac_check_lib_save_LIBS=$LIBS
  16385. LIBS="-lbsd $LIBS"
  16386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16387. /* end confdefs.h. */
  16388. /* Override any GCC internal prototype to avoid an error.
  16389. Use char because int might match the return type of a GCC
  16390. builtin and then its argument prototype would still apply. */
  16391. #ifdef __cplusplus
  16392. extern "C"
  16393. #endif
  16394. char gethostbyname ();
  16395. int
  16396. main ()
  16397. {
  16398. return gethostbyname ();
  16399. ;
  16400. return 0;
  16401. }
  16402. _ACEOF
  16403. if ac_fn_c_try_link "$LINENO"; then :
  16404. ac_cv_lib_bsd_gethostbyname=yes
  16405. else
  16406. ac_cv_lib_bsd_gethostbyname=no
  16407. fi
  16408. rm -f core conftest.err conftest.$ac_objext \
  16409. conftest$ac_exeext conftest.$ac_ext
  16410. LIBS=$ac_check_lib_save_LIBS
  16411. fi
  16412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16413. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16414. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16415. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16416. fi
  16417. fi
  16418. fi
  16419. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16420. # socket/setsockopt and other routines are undefined under SCO ODT
  16421. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16422. # on later versions), says Simon Leinen: it contains gethostby*
  16423. # variants that don't use the name server (or something). -lsocket
  16424. # must be given before -lnsl if both are needed. We assume that
  16425. # if connect needs -lnsl, so does gethostbyname.
  16426. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16427. if test "x$ac_cv_func_connect" = xyes; then :
  16428. fi
  16429. if test $ac_cv_func_connect = no; then
  16430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16431. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16432. if ${ac_cv_lib_socket_connect+:} false; then :
  16433. $as_echo_n "(cached) " >&6
  16434. else
  16435. ac_check_lib_save_LIBS=$LIBS
  16436. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16438. /* end confdefs.h. */
  16439. /* Override any GCC internal prototype to avoid an error.
  16440. Use char because int might match the return type of a GCC
  16441. builtin and then its argument prototype would still apply. */
  16442. #ifdef __cplusplus
  16443. extern "C"
  16444. #endif
  16445. char connect ();
  16446. int
  16447. main ()
  16448. {
  16449. return connect ();
  16450. ;
  16451. return 0;
  16452. }
  16453. _ACEOF
  16454. if ac_fn_c_try_link "$LINENO"; then :
  16455. ac_cv_lib_socket_connect=yes
  16456. else
  16457. ac_cv_lib_socket_connect=no
  16458. fi
  16459. rm -f core conftest.err conftest.$ac_objext \
  16460. conftest$ac_exeext conftest.$ac_ext
  16461. LIBS=$ac_check_lib_save_LIBS
  16462. fi
  16463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16464. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16465. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16466. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16467. fi
  16468. fi
  16469. # Guillermo Gomez says -lposix is necessary on A/UX.
  16470. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16471. if test "x$ac_cv_func_remove" = xyes; then :
  16472. fi
  16473. if test $ac_cv_func_remove = no; then
  16474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16475. $as_echo_n "checking for remove in -lposix... " >&6; }
  16476. if ${ac_cv_lib_posix_remove+:} false; then :
  16477. $as_echo_n "(cached) " >&6
  16478. else
  16479. ac_check_lib_save_LIBS=$LIBS
  16480. LIBS="-lposix $LIBS"
  16481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16482. /* end confdefs.h. */
  16483. /* Override any GCC internal prototype to avoid an error.
  16484. Use char because int might match the return type of a GCC
  16485. builtin and then its argument prototype would still apply. */
  16486. #ifdef __cplusplus
  16487. extern "C"
  16488. #endif
  16489. char remove ();
  16490. int
  16491. main ()
  16492. {
  16493. return remove ();
  16494. ;
  16495. return 0;
  16496. }
  16497. _ACEOF
  16498. if ac_fn_c_try_link "$LINENO"; then :
  16499. ac_cv_lib_posix_remove=yes
  16500. else
  16501. ac_cv_lib_posix_remove=no
  16502. fi
  16503. rm -f core conftest.err conftest.$ac_objext \
  16504. conftest$ac_exeext conftest.$ac_ext
  16505. LIBS=$ac_check_lib_save_LIBS
  16506. fi
  16507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16508. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16509. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16510. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16511. fi
  16512. fi
  16513. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16514. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16515. if test "x$ac_cv_func_shmat" = xyes; then :
  16516. fi
  16517. if test $ac_cv_func_shmat = no; then
  16518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16519. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16520. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16521. $as_echo_n "(cached) " >&6
  16522. else
  16523. ac_check_lib_save_LIBS=$LIBS
  16524. LIBS="-lipc $LIBS"
  16525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16526. /* end confdefs.h. */
  16527. /* Override any GCC internal prototype to avoid an error.
  16528. Use char because int might match the return type of a GCC
  16529. builtin and then its argument prototype would still apply. */
  16530. #ifdef __cplusplus
  16531. extern "C"
  16532. #endif
  16533. char shmat ();
  16534. int
  16535. main ()
  16536. {
  16537. return shmat ();
  16538. ;
  16539. return 0;
  16540. }
  16541. _ACEOF
  16542. if ac_fn_c_try_link "$LINENO"; then :
  16543. ac_cv_lib_ipc_shmat=yes
  16544. else
  16545. ac_cv_lib_ipc_shmat=no
  16546. fi
  16547. rm -f core conftest.err conftest.$ac_objext \
  16548. conftest$ac_exeext conftest.$ac_ext
  16549. LIBS=$ac_check_lib_save_LIBS
  16550. fi
  16551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16552. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16553. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16554. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16555. fi
  16556. fi
  16557. fi
  16558. # Check for libraries that X11R6 Xt/Xaw programs need.
  16559. ac_save_LDFLAGS=$LDFLAGS
  16560. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16561. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16562. # check for ICE first), but we must link in the order -lSM -lICE or
  16563. # we get undefined symbols. So assume we have SM if we have ICE.
  16564. # These have to be linked with before -lX11, unlike the other
  16565. # libraries we check for below, so use a different variable.
  16566. # John Interrante, Karl Berry
  16567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16568. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16569. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16570. $as_echo_n "(cached) " >&6
  16571. else
  16572. ac_check_lib_save_LIBS=$LIBS
  16573. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  16574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16575. /* end confdefs.h. */
  16576. /* Override any GCC internal prototype to avoid an error.
  16577. Use char because int might match the return type of a GCC
  16578. builtin and then its argument prototype would still apply. */
  16579. #ifdef __cplusplus
  16580. extern "C"
  16581. #endif
  16582. char IceConnectionNumber ();
  16583. int
  16584. main ()
  16585. {
  16586. return IceConnectionNumber ();
  16587. ;
  16588. return 0;
  16589. }
  16590. _ACEOF
  16591. if ac_fn_c_try_link "$LINENO"; then :
  16592. ac_cv_lib_ICE_IceConnectionNumber=yes
  16593. else
  16594. ac_cv_lib_ICE_IceConnectionNumber=no
  16595. fi
  16596. rm -f core conftest.err conftest.$ac_objext \
  16597. conftest$ac_exeext conftest.$ac_ext
  16598. LIBS=$ac_check_lib_save_LIBS
  16599. fi
  16600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  16601. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  16602. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  16603. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  16604. fi
  16605. LDFLAGS=$ac_save_LDFLAGS
  16606. fi
  16607. if test x$have_x = xyes; then
  16608. # Only allow dynamically loaded X11 if the X11 function pointers
  16609. # will not end up in the global namespace, which causes problems
  16610. # with other libraries calling X11 functions.
  16611. x11_symbols_private=$have_gcc_fvisibility
  16612. # Check whether --enable-x11-shared was given.
  16613. if test "${enable_x11_shared+set}" = set; then :
  16614. enableval=$enable_x11_shared;
  16615. else
  16616. enable_x11_shared=maybe
  16617. fi
  16618. case "$host" in
  16619. *-*-darwin*)
  16620. x11_symbols_private=yes
  16621. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  16622. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  16623. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  16624. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  16625. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  16626. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  16627. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  16628. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  16629. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  16630. ;;
  16631. *-*-openbsd*)
  16632. x11_lib='libX11.so'
  16633. x11ext_lib='libXext.so'
  16634. xcursor_lib='libXcursor.so'
  16635. xinerama_lib='libXinerama.so'
  16636. xinput_lib='libXi.so'
  16637. xrandr_lib='libXrandr.so'
  16638. xrender_lib='libXrender.so'
  16639. xss_lib='libXss.so'
  16640. xvidmode_lib='libXxf86vm.so'
  16641. ;;
  16642. *)
  16643. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16644. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16645. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16646. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16647. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16648. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16649. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16650. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16651. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16652. ;;
  16653. esac
  16654. if test x$ac_cv_func_shmat != xyes; then
  16655. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  16656. fi
  16657. CFLAGS="$CFLAGS $X_CFLAGS"
  16658. LDFLAGS="$LDFLAGS $X_LIBS"
  16659. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  16660. #include <X11/Xproto.h>
  16661. "
  16662. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  16663. have_xext_h_hdr=yes
  16664. else
  16665. have_xext_h_hdr=no
  16666. fi
  16667. if test x$have_xext_h_hdr != xyes; then
  16668. as_fn_error $? "
  16669. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  16670. " "$LINENO" 5
  16671. fi
  16672. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  16673. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  16674. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  16675. # Needed so SDL applications can include SDL_syswm.h
  16676. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  16677. if test x$enable_x11_shared = xmaybe; then
  16678. enable_x11_shared=$x11_symbols_private
  16679. fi
  16680. if test x$have_loadso != xyes && \
  16681. test x$enable_x11_shared = xyes; then
  16682. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  16683. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  16684. enable_x11_shared=no
  16685. fi
  16686. if test x$x11_symbols_private != xyes && \
  16687. test x$enable_x11_shared = xyes; then
  16688. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&5
  16689. $as_echo "$as_me: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&2;}
  16690. enable_x11_shared=no
  16691. fi
  16692. if test x$have_loadso = xyes && \
  16693. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  16694. echo "-- dynamic libX11 -> $x11_lib"
  16695. echo "-- dynamic libX11ext -> $x11ext_lib"
  16696. cat >>confdefs.h <<_ACEOF
  16697. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  16698. _ACEOF
  16699. cat >>confdefs.h <<_ACEOF
  16700. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  16701. _ACEOF
  16702. else
  16703. enable_x11_shared=no
  16704. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  16705. fi
  16706. have_video=yes
  16707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  16708. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  16709. have_const_param_XextAddDisplay=no
  16710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16711. /* end confdefs.h. */
  16712. #include <X11/Xlib.h>
  16713. #include <X11/Xproto.h>
  16714. #include <X11/extensions/Xext.h>
  16715. #include <X11/extensions/extutil.h>
  16716. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  16717. int
  16718. main ()
  16719. {
  16720. ;
  16721. return 0;
  16722. }
  16723. _ACEOF
  16724. if ac_fn_c_try_compile "$LINENO"; then :
  16725. have_const_param_XextAddDisplay=yes
  16726. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  16727. fi
  16728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  16730. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  16731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to _XData32" >&5
  16732. $as_echo_n "checking for const parameter to _XData32... " >&6; }
  16733. have_const_param_xdata32=no
  16734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16735. /* end confdefs.h. */
  16736. #include <X11/Xlibint.h>
  16737. extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
  16738. int
  16739. main ()
  16740. {
  16741. ;
  16742. return 0;
  16743. }
  16744. _ACEOF
  16745. if ac_fn_c_try_compile "$LINENO"; then :
  16746. have_const_param_xdata32=yes
  16747. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1" >>confdefs.h
  16748. fi
  16749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_xdata32" >&5
  16751. $as_echo "$have_const_param_xdata32" >&6; }
  16752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  16753. $as_echo_n "checking for XGenericEvent... " >&6; }
  16754. have_XGenericEvent=no
  16755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16756. /* end confdefs.h. */
  16757. #include <X11/Xlib.h>
  16758. int
  16759. main ()
  16760. {
  16761. Display *display;
  16762. XEvent event;
  16763. XGenericEventCookie *cookie = &event.xcookie;
  16764. XNextEvent(display, &event);
  16765. XGetEventData(display, cookie);
  16766. XFreeEventData(display, cookie);
  16767. ;
  16768. return 0;
  16769. }
  16770. _ACEOF
  16771. if ac_fn_c_try_compile "$LINENO"; then :
  16772. have_XGenericEvent=yes
  16773. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  16774. fi
  16775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  16777. $as_echo "$have_XGenericEvent" >&6; }
  16778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  16779. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  16780. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  16781. $as_echo_n "(cached) " >&6
  16782. else
  16783. ac_check_lib_save_LIBS=$LIBS
  16784. LIBS="-lX11 $LIBS"
  16785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16786. /* end confdefs.h. */
  16787. /* Override any GCC internal prototype to avoid an error.
  16788. Use char because int might match the return type of a GCC
  16789. builtin and then its argument prototype would still apply. */
  16790. #ifdef __cplusplus
  16791. extern "C"
  16792. #endif
  16793. char XkbKeycodeToKeysym ();
  16794. int
  16795. main ()
  16796. {
  16797. return XkbKeycodeToKeysym ();
  16798. ;
  16799. return 0;
  16800. }
  16801. _ACEOF
  16802. if ac_fn_c_try_link "$LINENO"; then :
  16803. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  16804. else
  16805. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  16806. fi
  16807. rm -f core conftest.err conftest.$ac_objext \
  16808. conftest$ac_exeext conftest.$ac_ext
  16809. LIBS=$ac_check_lib_save_LIBS
  16810. fi
  16811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  16812. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  16813. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  16814. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  16815. fi
  16816. # Check whether --enable-video-x11-xcursor was given.
  16817. if test "${enable_video_x11_xcursor+set}" = set; then :
  16818. enableval=$enable_video_x11_xcursor;
  16819. else
  16820. enable_video_x11_xcursor=yes
  16821. fi
  16822. if test x$enable_video_x11_xcursor = xyes; then
  16823. definitely_enable_video_x11_xcursor=no
  16824. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  16825. "
  16826. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  16827. have_xcursor_h_hdr=yes
  16828. else
  16829. have_xcursor_h_hdr=no
  16830. fi
  16831. if test x$have_xcursor_h_hdr = xyes; then
  16832. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  16833. echo "-- dynamic libXcursor -> $xcursor_lib"
  16834. cat >>confdefs.h <<_ACEOF
  16835. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  16836. _ACEOF
  16837. definitely_enable_video_x11_xcursor=yes
  16838. else
  16839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  16840. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  16841. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  16842. $as_echo_n "(cached) " >&6
  16843. else
  16844. ac_check_lib_save_LIBS=$LIBS
  16845. LIBS="-lXcursor $LIBS"
  16846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16847. /* end confdefs.h. */
  16848. /* Override any GCC internal prototype to avoid an error.
  16849. Use char because int might match the return type of a GCC
  16850. builtin and then its argument prototype would still apply. */
  16851. #ifdef __cplusplus
  16852. extern "C"
  16853. #endif
  16854. char XcursorImageCreate ();
  16855. int
  16856. main ()
  16857. {
  16858. return XcursorImageCreate ();
  16859. ;
  16860. return 0;
  16861. }
  16862. _ACEOF
  16863. if ac_fn_c_try_link "$LINENO"; then :
  16864. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  16865. else
  16866. ac_cv_lib_Xcursor_XcursorImageCreate=no
  16867. fi
  16868. rm -f core conftest.err conftest.$ac_objext \
  16869. conftest$ac_exeext conftest.$ac_ext
  16870. LIBS=$ac_check_lib_save_LIBS
  16871. fi
  16872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  16873. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  16874. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  16875. have_xcursor_lib=yes
  16876. fi
  16877. if test x$have_xcursor_lib = xyes ; then
  16878. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  16879. definitely_enable_video_x11_xcursor=yes
  16880. fi
  16881. fi
  16882. fi
  16883. fi
  16884. if test x$definitely_enable_video_x11_xcursor = xyes; then
  16885. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  16886. fi
  16887. # Check whether --enable-video-x11-xinerama was given.
  16888. if test "${enable_video_x11_xinerama+set}" = set; then :
  16889. enableval=$enable_video_x11_xinerama;
  16890. else
  16891. enable_video_x11_xinerama=yes
  16892. fi
  16893. if test x$enable_video_x11_xinerama = xyes; then
  16894. definitely_enable_video_x11_xinerama=no
  16895. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  16896. "
  16897. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  16898. have_xinerama_h_hdr=yes
  16899. else
  16900. have_xinerama_h_hdr=no
  16901. fi
  16902. if test x$have_xinerama_h_hdr = xyes; then
  16903. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  16904. echo "-- dynamic libXinerama -> $xinerama_lib"
  16905. cat >>confdefs.h <<_ACEOF
  16906. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  16907. _ACEOF
  16908. definitely_enable_video_x11_xinerama=yes
  16909. else
  16910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  16911. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  16912. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  16913. $as_echo_n "(cached) " >&6
  16914. else
  16915. ac_check_lib_save_LIBS=$LIBS
  16916. LIBS="-lXinerama $LIBS"
  16917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16918. /* end confdefs.h. */
  16919. /* Override any GCC internal prototype to avoid an error.
  16920. Use char because int might match the return type of a GCC
  16921. builtin and then its argument prototype would still apply. */
  16922. #ifdef __cplusplus
  16923. extern "C"
  16924. #endif
  16925. char XineramaQueryExtension ();
  16926. int
  16927. main ()
  16928. {
  16929. return XineramaQueryExtension ();
  16930. ;
  16931. return 0;
  16932. }
  16933. _ACEOF
  16934. if ac_fn_c_try_link "$LINENO"; then :
  16935. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  16936. else
  16937. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  16938. fi
  16939. rm -f core conftest.err conftest.$ac_objext \
  16940. conftest$ac_exeext conftest.$ac_ext
  16941. LIBS=$ac_check_lib_save_LIBS
  16942. fi
  16943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  16944. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  16945. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  16946. have_xinerama_lib=yes
  16947. fi
  16948. if test x$have_xinerama_lib = xyes ; then
  16949. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  16950. definitely_enable_video_x11_xinerama=yes
  16951. fi
  16952. fi
  16953. fi
  16954. fi
  16955. if test x$definitely_enable_video_x11_xinerama = xyes; then
  16956. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  16957. fi
  16958. # Check whether --enable-video-x11-xinput was given.
  16959. if test "${enable_video_x11_xinput+set}" = set; then :
  16960. enableval=$enable_video_x11_xinput;
  16961. else
  16962. enable_video_x11_xinput=yes
  16963. fi
  16964. if test x$enable_video_x11_xinput = xyes; then
  16965. definitely_enable_video_x11_xinput=no
  16966. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  16967. "
  16968. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  16969. have_xinput_h_hdr=yes
  16970. else
  16971. have_xinput_h_hdr=no
  16972. fi
  16973. if test x$have_xinput_h_hdr = xyes; then
  16974. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  16975. echo "-- dynamic libXi -> $xinput_lib"
  16976. cat >>confdefs.h <<_ACEOF
  16977. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  16978. _ACEOF
  16979. definitely_enable_video_x11_xinput=yes
  16980. else
  16981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  16982. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  16983. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  16984. $as_echo_n "(cached) " >&6
  16985. else
  16986. ac_check_lib_save_LIBS=$LIBS
  16987. LIBS="-lXi $LIBS"
  16988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16989. /* end confdefs.h. */
  16990. /* Override any GCC internal prototype to avoid an error.
  16991. Use char because int might match the return type of a GCC
  16992. builtin and then its argument prototype would still apply. */
  16993. #ifdef __cplusplus
  16994. extern "C"
  16995. #endif
  16996. char XOpenDevice ();
  16997. int
  16998. main ()
  16999. {
  17000. return XOpenDevice ();
  17001. ;
  17002. return 0;
  17003. }
  17004. _ACEOF
  17005. if ac_fn_c_try_link "$LINENO"; then :
  17006. ac_cv_lib_Xi_XOpenDevice=yes
  17007. else
  17008. ac_cv_lib_Xi_XOpenDevice=no
  17009. fi
  17010. rm -f core conftest.err conftest.$ac_objext \
  17011. conftest$ac_exeext conftest.$ac_ext
  17012. LIBS=$ac_check_lib_save_LIBS
  17013. fi
  17014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17015. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17016. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17017. have_xinput_lib=yes
  17018. fi
  17019. if test x$have_xinput_lib = xyes ; then
  17020. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17021. definitely_enable_video_x11_xinput=yes
  17022. fi
  17023. fi
  17024. fi
  17025. fi
  17026. if test x$definitely_enable_video_x11_xinput = xyes; then
  17027. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17029. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17030. have_xinput2_multitouch=no
  17031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17032. /* end confdefs.h. */
  17033. #include <X11/Xlib.h>
  17034. #include <X11/Xproto.h>
  17035. #include <X11/extensions/XInput2.h>
  17036. int
  17037. main ()
  17038. {
  17039. int event_type = XI_TouchBegin;
  17040. XITouchClassInfo *t;
  17041. Status
  17042. XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f)
  17043. {
  17044. return (Status)0;
  17045. }
  17046. ;
  17047. return 0;
  17048. }
  17049. _ACEOF
  17050. if ac_fn_c_try_compile "$LINENO"; then :
  17051. have_xinput2_multitouch=yes
  17052. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17053. fi
  17054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17056. $as_echo "$have_xinput2_multitouch" >&6; }
  17057. fi
  17058. # Check whether --enable-video-x11-xrandr was given.
  17059. if test "${enable_video_x11_xrandr+set}" = set; then :
  17060. enableval=$enable_video_x11_xrandr;
  17061. else
  17062. enable_video_x11_xrandr=yes
  17063. fi
  17064. if test x$enable_video_x11_xrandr = xyes; then
  17065. definitely_enable_video_x11_xrandr=no
  17066. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "#include <X11/Xlib.h>
  17067. "
  17068. if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then :
  17069. have_xrandr_h_hdr=yes
  17070. else
  17071. have_xrandr_h_hdr=no
  17072. fi
  17073. if test x$have_xrandr_h_hdr = xyes; then
  17074. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17075. echo "-- dynamic libXrandr -> $xrandr_lib"
  17076. cat >>confdefs.h <<_ACEOF
  17077. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17078. _ACEOF
  17079. definitely_enable_video_x11_xrandr=yes
  17080. else
  17081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17082. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17083. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17084. $as_echo_n "(cached) " >&6
  17085. else
  17086. ac_check_lib_save_LIBS=$LIBS
  17087. LIBS="-lXrandr $LIBS"
  17088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17089. /* end confdefs.h. */
  17090. /* Override any GCC internal prototype to avoid an error.
  17091. Use char because int might match the return type of a GCC
  17092. builtin and then its argument prototype would still apply. */
  17093. #ifdef __cplusplus
  17094. extern "C"
  17095. #endif
  17096. char XRRQueryExtension ();
  17097. int
  17098. main ()
  17099. {
  17100. return XRRQueryExtension ();
  17101. ;
  17102. return 0;
  17103. }
  17104. _ACEOF
  17105. if ac_fn_c_try_link "$LINENO"; then :
  17106. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17107. else
  17108. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17109. fi
  17110. rm -f core conftest.err conftest.$ac_objext \
  17111. conftest$ac_exeext conftest.$ac_ext
  17112. LIBS=$ac_check_lib_save_LIBS
  17113. fi
  17114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17115. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17116. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17117. have_xrandr_lib=yes
  17118. fi
  17119. if test x$have_xrandr_lib = xyes ; then
  17120. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17121. definitely_enable_video_x11_xrandr=yes
  17122. fi
  17123. fi
  17124. fi
  17125. fi
  17126. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17127. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17128. fi
  17129. # Check whether --enable-video-x11-scrnsaver was given.
  17130. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17131. enableval=$enable_video_x11_scrnsaver;
  17132. else
  17133. enable_video_x11_scrnsaver=yes
  17134. fi
  17135. if test x$enable_video_x11_scrnsaver = xyes; then
  17136. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17137. "
  17138. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17139. have_scrnsaver_h_hdr=yes
  17140. else
  17141. have_scrnsaver_h_hdr=no
  17142. fi
  17143. if test x$have_scrnsaver_h_hdr = xyes; then
  17144. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17145. echo "-- dynamic libXss -> $xss_lib"
  17146. cat >>confdefs.h <<_ACEOF
  17147. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17148. _ACEOF
  17149. definitely_enable_video_x11_scrnsaver=yes
  17150. else
  17151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17152. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17153. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17154. $as_echo_n "(cached) " >&6
  17155. else
  17156. ac_check_lib_save_LIBS=$LIBS
  17157. LIBS="-lXss $LIBS"
  17158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17159. /* end confdefs.h. */
  17160. /* Override any GCC internal prototype to avoid an error.
  17161. Use char because int might match the return type of a GCC
  17162. builtin and then its argument prototype would still apply. */
  17163. #ifdef __cplusplus
  17164. extern "C"
  17165. #endif
  17166. char XScreenSaverSuspend ();
  17167. int
  17168. main ()
  17169. {
  17170. return XScreenSaverSuspend ();
  17171. ;
  17172. return 0;
  17173. }
  17174. _ACEOF
  17175. if ac_fn_c_try_link "$LINENO"; then :
  17176. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17177. else
  17178. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17179. fi
  17180. rm -f core conftest.err conftest.$ac_objext \
  17181. conftest$ac_exeext conftest.$ac_ext
  17182. LIBS=$ac_check_lib_save_LIBS
  17183. fi
  17184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17185. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17186. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17187. have_xss_lib=yes
  17188. fi
  17189. if test x$have_xss_lib = xyes ; then
  17190. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17191. definitely_enable_video_x11_scrnsaver=yes
  17192. fi
  17193. fi
  17194. fi
  17195. fi
  17196. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17197. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17198. fi
  17199. # Check whether --enable-video-x11-xshape was given.
  17200. if test "${enable_video_x11_xshape+set}" = set; then :
  17201. enableval=$enable_video_x11_xshape;
  17202. else
  17203. enable_video_x11_xshape=yes
  17204. fi
  17205. if test x$enable_video_x11_xshape = xyes; then
  17206. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17207. "
  17208. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17209. have_shape_h_hdr=yes
  17210. else
  17211. have_shape_h_hdr=no
  17212. fi
  17213. if test x$have_shape_h_hdr = xyes; then
  17214. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17215. fi
  17216. fi
  17217. # Check whether --enable-video-x11-vm was given.
  17218. if test "${enable_video_x11_vm+set}" = set; then :
  17219. enableval=$enable_video_x11_vm;
  17220. else
  17221. enable_video_x11_vm=yes
  17222. fi
  17223. if test x$enable_video_x11_vm = xyes; then
  17224. definitely_enable_video_x11_vm=no
  17225. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17226. "
  17227. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17228. have_vm_h_hdr=yes
  17229. else
  17230. have_vm_h_hdr=no
  17231. fi
  17232. if test x$have_vm_h_hdr = xyes; then
  17233. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17234. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17235. cat >>confdefs.h <<_ACEOF
  17236. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17237. _ACEOF
  17238. definitely_enable_video_x11_vm=yes
  17239. else
  17240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17241. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17242. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17243. $as_echo_n "(cached) " >&6
  17244. else
  17245. ac_check_lib_save_LIBS=$LIBS
  17246. LIBS="-lXxf86vm $LIBS"
  17247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17248. /* end confdefs.h. */
  17249. /* Override any GCC internal prototype to avoid an error.
  17250. Use char because int might match the return type of a GCC
  17251. builtin and then its argument prototype would still apply. */
  17252. #ifdef __cplusplus
  17253. extern "C"
  17254. #endif
  17255. char XF86VidModeQueryVersion ();
  17256. int
  17257. main ()
  17258. {
  17259. return XF86VidModeQueryVersion ();
  17260. ;
  17261. return 0;
  17262. }
  17263. _ACEOF
  17264. if ac_fn_c_try_link "$LINENO"; then :
  17265. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17266. else
  17267. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17268. fi
  17269. rm -f core conftest.err conftest.$ac_objext \
  17270. conftest$ac_exeext conftest.$ac_ext
  17271. LIBS=$ac_check_lib_save_LIBS
  17272. fi
  17273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17274. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17275. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17276. have_vm_lib=yes
  17277. fi
  17278. if test x$have_vm_lib = xyes ; then
  17279. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17280. definitely_enable_video_x11_vm=yes
  17281. fi
  17282. fi
  17283. fi
  17284. fi
  17285. if test x$definitely_enable_video_x11_vm = xyes; then
  17286. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17287. fi
  17288. fi
  17289. fi
  17290. }
  17291. CheckBWINDOW()
  17292. {
  17293. if test x$enable_video = xyes; then
  17294. $as_echo "#define SDL_VIDEO_DRIVER_BWINDOW 1" >>confdefs.h
  17295. SOURCES="$SOURCES $srcdir/src/video/bwindow/*.cc"
  17296. have_video=yes
  17297. fi
  17298. }
  17299. CheckCOCOA()
  17300. {
  17301. # Check whether --enable-video-cocoa was given.
  17302. if test "${enable_video_cocoa+set}" = set; then :
  17303. enableval=$enable_video_cocoa;
  17304. else
  17305. enable_video_cocoa=yes
  17306. fi
  17307. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17308. save_CFLAGS="$CFLAGS"
  17309. CFLAGS="$CFLAGS -x objective-c"
  17310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17311. $as_echo_n "checking for Cocoa framework... " >&6; }
  17312. have_cocoa=no
  17313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17314. /* end confdefs.h. */
  17315. #import <Cocoa/Cocoa.h>
  17316. int
  17317. main ()
  17318. {
  17319. ;
  17320. return 0;
  17321. }
  17322. _ACEOF
  17323. if ac_fn_c_try_compile "$LINENO"; then :
  17324. have_cocoa=yes
  17325. fi
  17326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17328. $as_echo "$have_cocoa" >&6; }
  17329. CFLAGS="$save_CFLAGS"
  17330. if test x$have_cocoa = xyes; then
  17331. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17332. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17333. have_video=yes
  17334. fi
  17335. fi
  17336. }
  17337. CheckDirectFB()
  17338. {
  17339. # Check whether --enable-video-directfb was given.
  17340. if test "${enable_video_directfb+set}" = set; then :
  17341. enableval=$enable_video_directfb;
  17342. else
  17343. enable_video_directfb=no
  17344. fi
  17345. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17346. video_directfb=no
  17347. DIRECTFB_REQUIRED_VERSION=1.0.0
  17348. for ac_prog in directfb-config
  17349. do
  17350. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17351. set dummy $ac_prog; ac_word=$2
  17352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17353. $as_echo_n "checking for $ac_word... " >&6; }
  17354. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17355. $as_echo_n "(cached) " >&6
  17356. else
  17357. case $DIRECTFBCONFIG in
  17358. [\\/]* | ?:[\\/]*)
  17359. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17360. ;;
  17361. *)
  17362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17363. as_dummy="$prefix/bin:$PATH"
  17364. for as_dir in $as_dummy
  17365. do
  17366. IFS=$as_save_IFS
  17367. test -z "$as_dir" && as_dir=.
  17368. for ac_exec_ext in '' $ac_executable_extensions; do
  17369. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17370. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17371. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17372. break 2
  17373. fi
  17374. done
  17375. done
  17376. IFS=$as_save_IFS
  17377. ;;
  17378. esac
  17379. fi
  17380. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17381. if test -n "$DIRECTFBCONFIG"; then
  17382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17383. $as_echo "$DIRECTFBCONFIG" >&6; }
  17384. else
  17385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17386. $as_echo "no" >&6; }
  17387. fi
  17388. test -n "$DIRECTFBCONFIG" && break
  17389. done
  17390. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17391. if test x$DIRECTFBCONFIG = xno; then
  17392. # Extract the first word of "pkg-config", so it can be a program name with args.
  17393. set dummy pkg-config; ac_word=$2
  17394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17395. $as_echo_n "checking for $ac_word... " >&6; }
  17396. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17397. $as_echo_n "(cached) " >&6
  17398. else
  17399. case $PKG_CONFIG in
  17400. [\\/]* | ?:[\\/]*)
  17401. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17402. ;;
  17403. *)
  17404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17405. for as_dir in $PATH
  17406. do
  17407. IFS=$as_save_IFS
  17408. test -z "$as_dir" && as_dir=.
  17409. for ac_exec_ext in '' $ac_executable_extensions; do
  17410. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17411. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17412. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17413. break 2
  17414. fi
  17415. done
  17416. done
  17417. IFS=$as_save_IFS
  17418. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17419. ;;
  17420. esac
  17421. fi
  17422. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17423. if test -n "$PKG_CONFIG"; then
  17424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17425. $as_echo "$PKG_CONFIG" >&6; }
  17426. else
  17427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17428. $as_echo "no" >&6; }
  17429. fi
  17430. if test x$PKG_CONFIG != xno; then
  17431. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17432. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17433. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17434. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17435. video_directfb=yes
  17436. fi
  17437. fi
  17438. else
  17439. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17440. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17441. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17442. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17443. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17444. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17445. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17446. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17447. video_directfb=yes
  17448. fi
  17449. fi
  17450. if test x$video_directfb = xyes; then
  17451. # SuSE 11.1 installs directfb-config without directfb-devel
  17452. save_CPPFLAGS="$CPPFLAGS"
  17453. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17454. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17455. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17456. have_directfb_hdr=yes
  17457. else
  17458. have_directfb_hdr=no
  17459. fi
  17460. CPPFLAGS="$save_CPPFLAGS"
  17461. video_directfb=$have_directfb_hdr
  17462. fi
  17463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17464. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17466. $as_echo "$video_directfb" >&6; }
  17467. if test x$video_directfb = xyes; then
  17468. # Check whether --enable-directfb-shared was given.
  17469. if test "${enable_directfb_shared+set}" = set; then :
  17470. enableval=$enable_directfb_shared;
  17471. else
  17472. enable_directfb_shared=yes
  17473. fi
  17474. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17475. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17476. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17477. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17479. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17480. directfb_shared=no
  17481. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17482. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17484. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17485. if test x$have_loadso != xyes && \
  17486. test x$enable_directfb_shared = xyes; then
  17487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17488. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17489. fi
  17490. if test x$have_loadso = xyes && \
  17491. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17492. directfb_shared=yes
  17493. echo "-- $directfb_lib_spec -> $directfb_lib"
  17494. cat >>confdefs.h <<_ACEOF
  17495. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17496. _ACEOF
  17497. else
  17498. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17499. fi
  17500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17501. $as_echo "$directfb_shared" >&6; }
  17502. have_video=yes
  17503. fi
  17504. fi
  17505. }
  17506. CheckFusionSound()
  17507. {
  17508. # Check whether --enable-fusionsound was given.
  17509. if test "${enable_fusionsound+set}" = set; then :
  17510. enableval=$enable_fusionsound;
  17511. else
  17512. enable_fusionsound=no
  17513. fi
  17514. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17515. fusionsound=no
  17516. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  17517. # Extract the first word of "pkg-config", so it can be a program name with args.
  17518. set dummy pkg-config; ac_word=$2
  17519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17520. $as_echo_n "checking for $ac_word... " >&6; }
  17521. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17522. $as_echo_n "(cached) " >&6
  17523. else
  17524. case $PKG_CONFIG in
  17525. [\\/]* | ?:[\\/]*)
  17526. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17527. ;;
  17528. *)
  17529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17530. for as_dir in $PATH
  17531. do
  17532. IFS=$as_save_IFS
  17533. test -z "$as_dir" && as_dir=.
  17534. for ac_exec_ext in '' $ac_executable_extensions; do
  17535. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17536. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17537. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17538. break 2
  17539. fi
  17540. done
  17541. done
  17542. IFS=$as_save_IFS
  17543. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17544. ;;
  17545. esac
  17546. fi
  17547. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17548. if test -n "$PKG_CONFIG"; then
  17549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17550. $as_echo "$PKG_CONFIG" >&6; }
  17551. else
  17552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17553. $as_echo "no" >&6; }
  17554. fi
  17555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  17556. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  17557. if test x$PKG_CONFIG != xno; then
  17558. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  17559. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  17560. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  17561. fusionsound=yes
  17562. fi
  17563. fi
  17564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  17565. $as_echo "$fusionsound" >&6; }
  17566. if test x$fusionsound = xyes; then
  17567. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17568. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17569. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17570. # Check whether --enable-fusionsound-shared was given.
  17571. if test "${enable_fusionsound_shared+set}" = set; then :
  17572. enableval=$enable_fusionsound_shared;
  17573. else
  17574. enable_fusionsound_shared=yes
  17575. fi
  17576. fusionsound_shared=no
  17577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17578. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17579. if test x$have_loadso != xyes && \
  17580. test x$enable_fusionsound_shared = xyes; then
  17581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17582. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17583. fi
  17584. if test x$have_loadso = xyes && \
  17585. test x$enable_fusionsound_shared = xyes; then
  17586. cat >>confdefs.h <<_ACEOF
  17587. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17588. _ACEOF
  17589. fusionsound_shared=yes
  17590. else
  17591. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17592. fi
  17593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17594. $as_echo "$fusionsound_shared" >&6; }
  17595. have_audio=yes
  17596. fi
  17597. fi
  17598. }
  17599. CheckDummyVideo()
  17600. {
  17601. # Check whether --enable-video-dummy was given.
  17602. if test "${enable_video_dummy+set}" = set; then :
  17603. enableval=$enable_video_dummy;
  17604. else
  17605. enable_video_dummy=yes
  17606. fi
  17607. if test x$enable_video_dummy = xyes; then
  17608. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  17609. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  17610. have_video=yes
  17611. fi
  17612. }
  17613. # Check whether --enable-video-opengl was given.
  17614. if test "${enable_video_opengl+set}" = set; then :
  17615. enableval=$enable_video_opengl;
  17616. else
  17617. enable_video_opengl=yes
  17618. fi
  17619. CheckOpenGLX11()
  17620. {
  17621. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  17623. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  17624. video_opengl=no
  17625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17626. /* end confdefs.h. */
  17627. #include <GL/gl.h>
  17628. #include <GL/glx.h>
  17629. int
  17630. main ()
  17631. {
  17632. ;
  17633. return 0;
  17634. }
  17635. _ACEOF
  17636. if ac_fn_c_try_compile "$LINENO"; then :
  17637. video_opengl=yes
  17638. fi
  17639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  17641. $as_echo "$video_opengl" >&6; }
  17642. if test x$video_opengl = xyes; then
  17643. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17644. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  17645. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17646. fi
  17647. fi
  17648. }
  17649. # Check whether --enable-video-opengles was given.
  17650. if test "${enable_video_opengles+set}" = set; then :
  17651. enableval=$enable_video_opengles;
  17652. else
  17653. enable_video_opengles=yes
  17654. fi
  17655. CheckOpenGLESX11()
  17656. {
  17657. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  17658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES (EGL) support" >&5
  17659. $as_echo_n "checking for OpenGL ES (EGL) support... " >&6; }
  17660. video_opengles=no
  17661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17662. /* end confdefs.h. */
  17663. #include <EGL/egl.h>
  17664. int
  17665. main ()
  17666. {
  17667. ;
  17668. return 0;
  17669. }
  17670. _ACEOF
  17671. if ac_fn_c_try_compile "$LINENO"; then :
  17672. video_opengles=yes
  17673. fi
  17674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles" >&5
  17676. $as_echo "$video_opengles" >&6; }
  17677. if test x$video_opengles = xyes; then
  17678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  17679. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  17680. video_opengles_v1=no
  17681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17682. /* end confdefs.h. */
  17683. #include <GLES/gl.h>
  17684. #include <GLES/glext.h>
  17685. int
  17686. main ()
  17687. {
  17688. ;
  17689. return 0;
  17690. }
  17691. _ACEOF
  17692. if ac_fn_c_try_compile "$LINENO"; then :
  17693. video_opengles_v1=yes
  17694. fi
  17695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  17697. $as_echo "$video_opengles_v1" >&6; }
  17698. if test x$video_opengles_v1 = xyes; then
  17699. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  17700. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  17701. fi
  17702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  17703. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  17704. video_opengles_v2=no
  17705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17706. /* end confdefs.h. */
  17707. #include <GLES2/gl2.h>
  17708. #include <GLES2/gl2ext.h>
  17709. int
  17710. main ()
  17711. {
  17712. ;
  17713. return 0;
  17714. }
  17715. _ACEOF
  17716. if ac_fn_c_try_compile "$LINENO"; then :
  17717. video_opengles_v2=yes
  17718. fi
  17719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  17721. $as_echo "$video_opengles_v2" >&6; }
  17722. if test x$video_opengles_v2 = xyes; then
  17723. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17724. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17725. fi
  17726. fi
  17727. fi
  17728. }
  17729. CheckWINDOWSGL()
  17730. {
  17731. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17732. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17733. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  17734. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17735. fi
  17736. }
  17737. CheckBeGL()
  17738. {
  17739. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17740. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17741. $as_echo "#define SDL_VIDEO_OPENGL_BGL 1" >>confdefs.h
  17742. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17743. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  17744. fi
  17745. }
  17746. CheckMacGL()
  17747. {
  17748. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17749. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17750. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  17751. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17752. case "$host" in
  17753. *-*-darwin*)
  17754. if test x$enable_video_cocoa = xyes; then
  17755. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
  17756. fi
  17757. esac
  17758. fi
  17759. }
  17760. CheckInputEvents()
  17761. {
  17762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  17763. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  17764. use_input_events=no
  17765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17766. /* end confdefs.h. */
  17767. #include <linux/input.h>
  17768. int
  17769. main ()
  17770. {
  17771. #ifndef EVIOCGNAME
  17772. #error EVIOCGNAME() ioctl not available
  17773. #endif
  17774. ;
  17775. return 0;
  17776. }
  17777. _ACEOF
  17778. if ac_fn_c_try_compile "$LINENO"; then :
  17779. use_input_events=yes
  17780. fi
  17781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  17783. $as_echo "$use_input_events" >&6; }
  17784. if test x$use_input_events = xyes; then
  17785. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  17786. fi
  17787. }
  17788. CheckLibUDev()
  17789. {
  17790. # Check whether --enable-libudev was given.
  17791. if test "${enable_libudev+set}" = set; then :
  17792. enableval=$enable_libudev;
  17793. else
  17794. enable_libudev=yes
  17795. fi
  17796. if test x$enable_libudev = xyes; then
  17797. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  17798. if test "x$ac_cv_header_libudev_h" = xyes; then :
  17799. have_libudev_h_hdr=yes
  17800. else
  17801. have_libudev_h_hdr=no
  17802. fi
  17803. if test x$have_libudev_h_hdr = xyes; then
  17804. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  17805. fi
  17806. fi
  17807. }
  17808. CheckDBus()
  17809. {
  17810. # Check whether --enable-dbus was given.
  17811. if test "${enable_dbus+set}" = set; then :
  17812. enableval=$enable_dbus;
  17813. else
  17814. enable_dbus=yes
  17815. fi
  17816. if test x$enable_dbus = xyes; then
  17817. # Extract the first word of "pkg-config", so it can be a program name with args.
  17818. set dummy pkg-config; ac_word=$2
  17819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17820. $as_echo_n "checking for $ac_word... " >&6; }
  17821. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17822. $as_echo_n "(cached) " >&6
  17823. else
  17824. case $PKG_CONFIG in
  17825. [\\/]* | ?:[\\/]*)
  17826. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17827. ;;
  17828. *)
  17829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17830. for as_dir in $PATH
  17831. do
  17832. IFS=$as_save_IFS
  17833. test -z "$as_dir" && as_dir=.
  17834. for ac_exec_ext in '' $ac_executable_extensions; do
  17835. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17836. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17838. break 2
  17839. fi
  17840. done
  17841. done
  17842. IFS=$as_save_IFS
  17843. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17844. ;;
  17845. esac
  17846. fi
  17847. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17848. if test -n "$PKG_CONFIG"; then
  17849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17850. $as_echo "$PKG_CONFIG" >&6; }
  17851. else
  17852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17853. $as_echo "no" >&6; }
  17854. fi
  17855. if test x$PKG_CONFIG != xno; then
  17856. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  17857. save_CFLAGS="$CFLAGS"
  17858. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  17859. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  17860. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  17861. have_dbus_dbus_h_hdr=yes
  17862. else
  17863. have_dbus_dbus_h_hdr=no
  17864. fi
  17865. CFLAGS="$save_CFLAGS"
  17866. if test x$have_dbus_dbus_h_hdr = xyes; then
  17867. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  17868. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  17869. fi
  17870. fi
  17871. fi
  17872. }
  17873. CheckTslib()
  17874. {
  17875. # Check whether --enable-input-tslib was given.
  17876. if test "${enable_input_tslib+set}" = set; then :
  17877. enableval=$enable_input_tslib;
  17878. else
  17879. enable_input_tslib=yes
  17880. fi
  17881. if test x$enable_input_tslib = xyes; then
  17882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  17883. $as_echo_n "checking for Touchscreen library support... " >&6; }
  17884. enable_input_tslib=no
  17885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17886. /* end confdefs.h. */
  17887. #include "tslib.h"
  17888. int
  17889. main ()
  17890. {
  17891. ;
  17892. return 0;
  17893. }
  17894. _ACEOF
  17895. if ac_fn_c_try_compile "$LINENO"; then :
  17896. enable_input_tslib=yes
  17897. fi
  17898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  17900. $as_echo "$enable_input_tslib" >&6; }
  17901. if test x$enable_input_tslib = xyes; then
  17902. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  17903. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  17904. fi
  17905. fi
  17906. }
  17907. CheckPTHREAD()
  17908. {
  17909. # Check whether --enable-pthreads was given.
  17910. if test "${enable_pthreads+set}" = set; then :
  17911. enableval=$enable_pthreads;
  17912. else
  17913. enable_pthreads=yes
  17914. fi
  17915. # Check whether --enable-pthread-sem was given.
  17916. if test "${enable_pthread_sem+set}" = set; then :
  17917. enableval=$enable_pthread_sem;
  17918. else
  17919. enable_pthread_sem=yes
  17920. fi
  17921. case "$host" in
  17922. *-*-linux*|*-*-uclinux*)
  17923. pthread_cflags="-D_REENTRANT"
  17924. pthread_lib="-lpthread"
  17925. ;;
  17926. *-*-bsdi*)
  17927. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  17928. pthread_lib=""
  17929. ;;
  17930. *-*-darwin*)
  17931. pthread_cflags="-D_THREAD_SAFE"
  17932. # causes Carbon.p complaints?
  17933. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  17934. ;;
  17935. *-*-freebsd*|*-*-dragonfly*)
  17936. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  17937. pthread_lib="-pthread"
  17938. ;;
  17939. *-*-netbsd*)
  17940. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  17941. pthread_lib="-lpthread"
  17942. ;;
  17943. *-*-openbsd*)
  17944. pthread_cflags="-D_REENTRANT"
  17945. pthread_lib="-pthread"
  17946. ;;
  17947. *-*-solaris2.9)
  17948. # From Solaris 9+, posix4's preferred name is rt.
  17949. pthread_cflags="-D_REENTRANT"
  17950. pthread_lib="-lpthread -lrt"
  17951. ;;
  17952. *-*-solaris2.10)
  17953. # Solaris 10+ merged pthread into libc.
  17954. pthread_cflags="-D_REENTRANT"
  17955. pthread_lib="-lrt"
  17956. ;;
  17957. *-*-solaris*)
  17958. # Solaris 11+ merged rt into libc.
  17959. pthread_cflags="-D_REENTRANT"
  17960. pthread_lib=""
  17961. ;;
  17962. *-*-sysv5*)
  17963. pthread_cflags="-D_REENTRANT -Kthread"
  17964. pthread_lib=""
  17965. ;;
  17966. *-*-aix*)
  17967. pthread_cflags="-D_REENTRANT -mthreads"
  17968. pthread_lib="-lpthread"
  17969. ;;
  17970. *-*-hpux11*)
  17971. pthread_cflags="-D_REENTRANT"
  17972. pthread_lib="-L/usr/lib -lpthread"
  17973. ;;
  17974. *)
  17975. pthread_cflags="-D_REENTRANT"
  17976. pthread_lib="-lpthread"
  17977. ;;
  17978. esac
  17979. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  17980. # Save the original compiler flags and libraries
  17981. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17982. # Add the pthread compiler flags and libraries
  17983. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  17984. # Check to see if we have pthread support on this system
  17985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  17986. $as_echo_n "checking for pthreads... " >&6; }
  17987. use_pthreads=no
  17988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17989. /* end confdefs.h. */
  17990. #include <pthread.h>
  17991. int
  17992. main ()
  17993. {
  17994. pthread_attr_t type;
  17995. pthread_attr_init(&type);
  17996. ;
  17997. return 0;
  17998. }
  17999. _ACEOF
  18000. if ac_fn_c_try_link "$LINENO"; then :
  18001. use_pthreads=yes
  18002. fi
  18003. rm -f core conftest.err conftest.$ac_objext \
  18004. conftest$ac_exeext conftest.$ac_ext
  18005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18006. $as_echo "$use_pthreads" >&6; }
  18007. # Restore the compiler flags and libraries
  18008. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18009. # Do futher testing if we have pthread support...
  18010. if test x$use_pthreads = xyes; then
  18011. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18012. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18013. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18014. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18015. SDL_LIBS="$SDL_LIBS $pthread_lib"
  18016. # Save the original compiler flags and libraries
  18017. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18018. # Add the pthread compiler flags and libraries
  18019. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18020. # Check to see if recursive mutexes are available
  18021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18022. $as_echo_n "checking for recursive mutexes... " >&6; }
  18023. has_recursive_mutexes=no
  18024. if test x$has_recursive_mutexes = xno; then
  18025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18026. /* end confdefs.h. */
  18027. #include <pthread.h>
  18028. int
  18029. main ()
  18030. {
  18031. pthread_mutexattr_t attr;
  18032. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18033. ;
  18034. return 0;
  18035. }
  18036. _ACEOF
  18037. if ac_fn_c_try_compile "$LINENO"; then :
  18038. has_recursive_mutexes=yes
  18039. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18040. fi
  18041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18042. fi
  18043. if test x$has_recursive_mutexes = xno; then
  18044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18045. /* end confdefs.h. */
  18046. #include <pthread.h>
  18047. int
  18048. main ()
  18049. {
  18050. pthread_mutexattr_t attr;
  18051. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18052. ;
  18053. return 0;
  18054. }
  18055. _ACEOF
  18056. if ac_fn_c_try_compile "$LINENO"; then :
  18057. has_recursive_mutexes=yes
  18058. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18059. fi
  18060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18061. fi
  18062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18063. $as_echo "$has_recursive_mutexes" >&6; }
  18064. # Check to see if pthread semaphore support is missing
  18065. if test x$enable_pthread_sem = xyes; then
  18066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18067. $as_echo_n "checking for pthread semaphores... " >&6; }
  18068. have_pthread_sem=no
  18069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18070. /* end confdefs.h. */
  18071. #include <pthread.h>
  18072. #include <semaphore.h>
  18073. int
  18074. main ()
  18075. {
  18076. ;
  18077. return 0;
  18078. }
  18079. _ACEOF
  18080. if ac_fn_c_try_compile "$LINENO"; then :
  18081. have_pthread_sem=yes
  18082. fi
  18083. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18085. $as_echo "$have_pthread_sem" >&6; }
  18086. fi
  18087. if test x$have_pthread_sem = xyes; then
  18088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18089. $as_echo_n "checking for sem_timedwait... " >&6; }
  18090. have_sem_timedwait=no
  18091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18092. /* end confdefs.h. */
  18093. #include <pthread.h>
  18094. #include <semaphore.h>
  18095. int
  18096. main ()
  18097. {
  18098. sem_timedwait(NULL, NULL);
  18099. ;
  18100. return 0;
  18101. }
  18102. _ACEOF
  18103. if ac_fn_c_try_link "$LINENO"; then :
  18104. have_sem_timedwait=yes
  18105. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18106. fi
  18107. rm -f core conftest.err conftest.$ac_objext \
  18108. conftest$ac_exeext conftest.$ac_ext
  18109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18110. $as_echo "$have_sem_timedwait" >&6; }
  18111. fi
  18112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_spin_trylock" >&5
  18113. $as_echo_n "checking for pthread_spin_trylock... " >&6; }
  18114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18115. /* end confdefs.h. */
  18116. /* Override any GCC internal prototype to avoid an error.
  18117. Use char because int might match the return type of a GCC
  18118. builtin and then its argument prototype would still apply. */
  18119. #ifdef __cplusplus
  18120. extern "C"
  18121. #endif
  18122. char pthread_spin_trylock ();
  18123. int
  18124. main ()
  18125. {
  18126. return pthread_spin_trylock ();
  18127. ;
  18128. return 0;
  18129. }
  18130. _ACEOF
  18131. if ac_fn_c_try_link "$LINENO"; then :
  18132. has_pthread_spin_trylock=yes
  18133. $as_echo "#define HAVE_PTHREAD_SPINLOCK 1" >>confdefs.h
  18134. else
  18135. has_pthread_spin_trylock=no
  18136. fi
  18137. rm -f core conftest.err conftest.$ac_objext \
  18138. conftest$ac_exeext conftest.$ac_ext
  18139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_spin_trylock" >&5
  18140. $as_echo "$has_pthread_spin_trylock" >&6; }
  18141. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18142. "
  18143. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18144. have_pthread_np_h=yes
  18145. else
  18146. have_pthread_np_h=no
  18147. fi
  18148. if test x$have_pthread_np_h = xyes; then
  18149. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18150. fi
  18151. # Check to see if pthread naming is available
  18152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18153. $as_echo_n "checking for pthread_setname_np... " >&6; }
  18154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18155. /* end confdefs.h. */
  18156. /* Override any GCC internal prototype to avoid an error.
  18157. Use char because int might match the return type of a GCC
  18158. builtin and then its argument prototype would still apply. */
  18159. #ifdef __cplusplus
  18160. extern "C"
  18161. #endif
  18162. char pthread_setname_np ();
  18163. int
  18164. main ()
  18165. {
  18166. return pthread_setname_np ();
  18167. ;
  18168. return 0;
  18169. }
  18170. _ACEOF
  18171. if ac_fn_c_try_link "$LINENO"; then :
  18172. has_pthread_setname_np=yes
  18173. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18174. else
  18175. has_pthread_setname_np=no
  18176. fi
  18177. rm -f core conftest.err conftest.$ac_objext \
  18178. conftest$ac_exeext conftest.$ac_ext
  18179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  18180. $as_echo "$has_pthread_setname_np" >&6; }
  18181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  18182. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  18183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18184. /* end confdefs.h. */
  18185. /* Override any GCC internal prototype to avoid an error.
  18186. Use char because int might match the return type of a GCC
  18187. builtin and then its argument prototype would still apply. */
  18188. #ifdef __cplusplus
  18189. extern "C"
  18190. #endif
  18191. char pthread_set_name_np ();
  18192. int
  18193. main ()
  18194. {
  18195. return pthread_set_name_np ();
  18196. ;
  18197. return 0;
  18198. }
  18199. _ACEOF
  18200. if ac_fn_c_try_link "$LINENO"; then :
  18201. has_pthread_set_name_np=yes
  18202. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  18203. else
  18204. has_pthread_set_name_np=no
  18205. fi
  18206. rm -f core conftest.err conftest.$ac_objext \
  18207. conftest$ac_exeext conftest.$ac_ext
  18208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  18209. $as_echo "$has_pthread_set_name_np" >&6; }
  18210. # Restore the compiler flags and libraries
  18211. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18212. # Basic thread creation functions
  18213. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  18214. # Semaphores
  18215. # We can fake these with mutexes and condition variables if necessary
  18216. if test x$have_pthread_sem = xyes; then
  18217. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  18218. else
  18219. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  18220. fi
  18221. # Mutexes
  18222. # We can fake these with semaphores if necessary
  18223. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  18224. # Condition variables
  18225. # We can fake these with semaphores and mutexes if necessary
  18226. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  18227. # Thread local storage
  18228. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  18229. have_threads=yes
  18230. fi
  18231. fi
  18232. }
  18233. CheckWINDOWS()
  18234. {
  18235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  18236. $as_echo_n "checking Windows compiler... " >&6; }
  18237. have_win32_gcc=no
  18238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18239. /* end confdefs.h. */
  18240. #include <windows.h>
  18241. int
  18242. main ()
  18243. {
  18244. ;
  18245. return 0;
  18246. }
  18247. _ACEOF
  18248. if ac_fn_c_try_compile "$LINENO"; then :
  18249. have_win32_gcc=yes
  18250. fi
  18251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  18253. $as_echo "$have_win32_gcc" >&6; }
  18254. if test x$have_win32_gcc != xyes; then
  18255. as_fn_error $? "
  18256. *** Your compiler ($CC) does not produce Windows executables!
  18257. " "$LINENO" 5
  18258. fi
  18259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  18260. $as_echo_n "checking Windows CE... " >&6; }
  18261. have_wince=no
  18262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18263. /* end confdefs.h. */
  18264. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  18265. #error This is not Windows CE
  18266. #endif
  18267. int
  18268. main ()
  18269. {
  18270. ;
  18271. return 0;
  18272. }
  18273. _ACEOF
  18274. if ac_fn_c_try_compile "$LINENO"; then :
  18275. have_wince=yes
  18276. as_fn_error $? "
  18277. *** Sorry, Windows CE is no longer supported.
  18278. " "$LINENO" 5
  18279. fi
  18280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  18282. $as_echo "$have_wince" >&6; }
  18283. # This fixes Windows stack alignment with newer GCC
  18284. CheckStackBoundary
  18285. }
  18286. CheckDIRECTX()
  18287. {
  18288. # Check whether --enable-directx was given.
  18289. if test "${enable_directx+set}" = set; then :
  18290. enableval=$enable_directx;
  18291. else
  18292. enable_directx=yes
  18293. fi
  18294. if test x$enable_directx = xyes; then
  18295. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  18296. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  18297. have_d3d=yes
  18298. fi
  18299. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  18300. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  18301. have_ddraw=yes
  18302. fi
  18303. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  18304. if test "x$ac_cv_header_dsound_h" = xyes; then :
  18305. have_dsound=yes
  18306. fi
  18307. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  18308. if test "x$ac_cv_header_dinput_h" = xyes; then :
  18309. have_dinput=yes
  18310. fi
  18311. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  18312. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  18313. have_xaudio2=yes
  18314. fi
  18315. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  18316. # FIXME: ...so force it off for now.
  18317. case "$host" in
  18318. *-*-cygwin*)
  18319. have_dinput=false
  18320. ;;
  18321. esac
  18322. fi
  18323. }
  18324. CheckDLOPEN()
  18325. {
  18326. # Check whether --enable-sdl-dlopen was given.
  18327. if test "${enable_sdl_dlopen+set}" = set; then :
  18328. enableval=$enable_sdl_dlopen;
  18329. else
  18330. enable_sdl_dlopen=yes
  18331. fi
  18332. if test x$enable_sdl_dlopen = xyes; then
  18333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  18334. $as_echo_n "checking for dlopen... " >&6; }
  18335. have_dlopen=no
  18336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18337. /* end confdefs.h. */
  18338. #include <dlfcn.h>
  18339. int
  18340. main ()
  18341. {
  18342. void *handle = dlopen("", RTLD_NOW);
  18343. const char *loaderror = (char *) dlerror();
  18344. ;
  18345. return 0;
  18346. }
  18347. _ACEOF
  18348. if ac_fn_c_try_compile "$LINENO"; then :
  18349. have_dlopen=yes
  18350. fi
  18351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  18353. $as_echo "$have_dlopen" >&6; }
  18354. if test x$have_dlopen = xyes; then
  18355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  18356. $as_echo_n "checking for dlopen in -lc... " >&6; }
  18357. if ${ac_cv_lib_c_dlopen+:} false; then :
  18358. $as_echo_n "(cached) " >&6
  18359. else
  18360. ac_check_lib_save_LIBS=$LIBS
  18361. LIBS="-lc $LIBS"
  18362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18363. /* end confdefs.h. */
  18364. /* Override any GCC internal prototype to avoid an error.
  18365. Use char because int might match the return type of a GCC
  18366. builtin and then its argument prototype would still apply. */
  18367. #ifdef __cplusplus
  18368. extern "C"
  18369. #endif
  18370. char dlopen ();
  18371. int
  18372. main ()
  18373. {
  18374. return dlopen ();
  18375. ;
  18376. return 0;
  18377. }
  18378. _ACEOF
  18379. if ac_fn_c_try_link "$LINENO"; then :
  18380. ac_cv_lib_c_dlopen=yes
  18381. else
  18382. ac_cv_lib_c_dlopen=no
  18383. fi
  18384. rm -f core conftest.err conftest.$ac_objext \
  18385. conftest$ac_exeext conftest.$ac_ext
  18386. LIBS=$ac_check_lib_save_LIBS
  18387. fi
  18388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  18389. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  18390. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  18391. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  18392. else
  18393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  18394. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  18395. if ${ac_cv_lib_dl_dlopen+:} false; then :
  18396. $as_echo_n "(cached) " >&6
  18397. else
  18398. ac_check_lib_save_LIBS=$LIBS
  18399. LIBS="-ldl $LIBS"
  18400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18401. /* end confdefs.h. */
  18402. /* Override any GCC internal prototype to avoid an error.
  18403. Use char because int might match the return type of a GCC
  18404. builtin and then its argument prototype would still apply. */
  18405. #ifdef __cplusplus
  18406. extern "C"
  18407. #endif
  18408. char dlopen ();
  18409. int
  18410. main ()
  18411. {
  18412. return dlopen ();
  18413. ;
  18414. return 0;
  18415. }
  18416. _ACEOF
  18417. if ac_fn_c_try_link "$LINENO"; then :
  18418. ac_cv_lib_dl_dlopen=yes
  18419. else
  18420. ac_cv_lib_dl_dlopen=no
  18421. fi
  18422. rm -f core conftest.err conftest.$ac_objext \
  18423. conftest$ac_exeext conftest.$ac_ext
  18424. LIBS=$ac_check_lib_save_LIBS
  18425. fi
  18426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  18427. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  18428. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  18429. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  18430. else
  18431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  18432. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  18433. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  18434. $as_echo_n "(cached) " >&6
  18435. else
  18436. ac_check_lib_save_LIBS=$LIBS
  18437. LIBS="-lltdl $LIBS"
  18438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18439. /* end confdefs.h. */
  18440. /* Override any GCC internal prototype to avoid an error.
  18441. Use char because int might match the return type of a GCC
  18442. builtin and then its argument prototype would still apply. */
  18443. #ifdef __cplusplus
  18444. extern "C"
  18445. #endif
  18446. char dlopen ();
  18447. int
  18448. main ()
  18449. {
  18450. return dlopen ();
  18451. ;
  18452. return 0;
  18453. }
  18454. _ACEOF
  18455. if ac_fn_c_try_link "$LINENO"; then :
  18456. ac_cv_lib_ltdl_dlopen=yes
  18457. else
  18458. ac_cv_lib_ltdl_dlopen=no
  18459. fi
  18460. rm -f core conftest.err conftest.$ac_objext \
  18461. conftest$ac_exeext conftest.$ac_ext
  18462. LIBS=$ac_check_lib_save_LIBS
  18463. fi
  18464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  18465. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  18466. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  18467. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  18468. fi
  18469. fi
  18470. fi
  18471. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  18472. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  18473. have_loadso=yes
  18474. fi
  18475. fi
  18476. }
  18477. CheckUSBHID()
  18478. {
  18479. if test x$enable_joystick = xyes; then
  18480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  18481. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  18482. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  18483. $as_echo_n "(cached) " >&6
  18484. else
  18485. ac_check_lib_save_LIBS=$LIBS
  18486. LIBS="-lusbhid $LIBS"
  18487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18488. /* end confdefs.h. */
  18489. /* Override any GCC internal prototype to avoid an error.
  18490. Use char because int might match the return type of a GCC
  18491. builtin and then its argument prototype would still apply. */
  18492. #ifdef __cplusplus
  18493. extern "C"
  18494. #endif
  18495. char hid_init ();
  18496. int
  18497. main ()
  18498. {
  18499. return hid_init ();
  18500. ;
  18501. return 0;
  18502. }
  18503. _ACEOF
  18504. if ac_fn_c_try_link "$LINENO"; then :
  18505. ac_cv_lib_usbhid_hid_init=yes
  18506. else
  18507. ac_cv_lib_usbhid_hid_init=no
  18508. fi
  18509. rm -f core conftest.err conftest.$ac_objext \
  18510. conftest$ac_exeext conftest.$ac_ext
  18511. LIBS=$ac_check_lib_save_LIBS
  18512. fi
  18513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  18514. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  18515. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  18516. have_libusbhid=yes
  18517. fi
  18518. if test x$have_libusbhid = xyes; then
  18519. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  18520. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  18521. USB_CFLAGS="-DHAVE_USBHID_H"
  18522. fi
  18523. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  18524. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  18525. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  18526. fi
  18527. USB_LIBS="$USB_LIBS -lusbhid"
  18528. else
  18529. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  18530. if test "x$ac_cv_header_usb_h" = xyes; then :
  18531. USB_CFLAGS="-DHAVE_USB_H"
  18532. fi
  18533. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  18534. if test "x$ac_cv_header_libusb_h" = xyes; then :
  18535. USB_CFLAGS="-DHAVE_LIBUSB_H"
  18536. fi
  18537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  18538. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  18539. if ${ac_cv_lib_usb_hid_init+:} false; then :
  18540. $as_echo_n "(cached) " >&6
  18541. else
  18542. ac_check_lib_save_LIBS=$LIBS
  18543. LIBS="-lusb $LIBS"
  18544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18545. /* end confdefs.h. */
  18546. /* Override any GCC internal prototype to avoid an error.
  18547. Use char because int might match the return type of a GCC
  18548. builtin and then its argument prototype would still apply. */
  18549. #ifdef __cplusplus
  18550. extern "C"
  18551. #endif
  18552. char hid_init ();
  18553. int
  18554. main ()
  18555. {
  18556. return hid_init ();
  18557. ;
  18558. return 0;
  18559. }
  18560. _ACEOF
  18561. if ac_fn_c_try_link "$LINENO"; then :
  18562. ac_cv_lib_usb_hid_init=yes
  18563. else
  18564. ac_cv_lib_usb_hid_init=no
  18565. fi
  18566. rm -f core conftest.err conftest.$ac_objext \
  18567. conftest$ac_exeext conftest.$ac_ext
  18568. LIBS=$ac_check_lib_save_LIBS
  18569. fi
  18570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  18571. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  18572. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  18573. USB_LIBS="$USB_LIBS -lusb"
  18574. fi
  18575. fi
  18576. save_CFLAGS="$CFLAGS"
  18577. CFLAGS="$CFLAGS $USB_CFLAGS"
  18578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  18579. $as_echo_n "checking for usbhid... " >&6; }
  18580. have_usbhid=no
  18581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18582. /* end confdefs.h. */
  18583. #include <sys/types.h>
  18584. #if defined(HAVE_USB_H)
  18585. #include <usb.h>
  18586. #endif
  18587. #ifdef __DragonFly__
  18588. # include <bus/usb/usb.h>
  18589. # include <bus/usb/usbhid.h>
  18590. #else
  18591. # include <dev/usb/usb.h>
  18592. # include <dev/usb/usbhid.h>
  18593. #endif
  18594. #if defined(HAVE_USBHID_H)
  18595. #include <usbhid.h>
  18596. #elif defined(HAVE_LIBUSB_H)
  18597. #include <libusb.h>
  18598. #elif defined(HAVE_LIBUSBHID_H)
  18599. #include <libusbhid.h>
  18600. #endif
  18601. int
  18602. main ()
  18603. {
  18604. struct report_desc *repdesc;
  18605. struct usb_ctl_report *repbuf;
  18606. hid_kind_t hidkind;
  18607. ;
  18608. return 0;
  18609. }
  18610. _ACEOF
  18611. if ac_fn_c_try_compile "$LINENO"; then :
  18612. have_usbhid=yes
  18613. fi
  18614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  18616. $as_echo "$have_usbhid" >&6; }
  18617. if test x$have_usbhid = xyes; then
  18618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  18619. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  18620. have_usbhid_ucr_data=no
  18621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18622. /* end confdefs.h. */
  18623. #include <sys/types.h>
  18624. #if defined(HAVE_USB_H)
  18625. #include <usb.h>
  18626. #endif
  18627. #ifdef __DragonFly__
  18628. # include <bus/usb/usb.h>
  18629. # include <bus/usb/usbhid.h>
  18630. #else
  18631. # include <dev/usb/usb.h>
  18632. # include <dev/usb/usbhid.h>
  18633. #endif
  18634. #if defined(HAVE_USBHID_H)
  18635. #include <usbhid.h>
  18636. #elif defined(HAVE_LIBUSB_H)
  18637. #include <libusb.h>
  18638. #elif defined(HAVE_LIBUSBHID_H)
  18639. #include <libusbhid.h>
  18640. #endif
  18641. int
  18642. main ()
  18643. {
  18644. struct usb_ctl_report buf;
  18645. if (buf.ucr_data) { }
  18646. ;
  18647. return 0;
  18648. }
  18649. _ACEOF
  18650. if ac_fn_c_try_compile "$LINENO"; then :
  18651. have_usbhid_ucr_data=yes
  18652. fi
  18653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18654. if test x$have_usbhid_ucr_data = xyes; then
  18655. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  18656. fi
  18657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  18658. $as_echo "$have_usbhid_ucr_data" >&6; }
  18659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  18660. $as_echo_n "checking for new usbhid API... " >&6; }
  18661. have_usbhid_new=no
  18662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18663. /* end confdefs.h. */
  18664. #include <sys/types.h>
  18665. #if defined(HAVE_USB_H)
  18666. #include <usb.h>
  18667. #endif
  18668. #ifdef __DragonFly__
  18669. #include <bus/usb/usb.h>
  18670. #include <bus/usb/usbhid.h>
  18671. #else
  18672. #include <dev/usb/usb.h>
  18673. #include <dev/usb/usbhid.h>
  18674. #endif
  18675. #if defined(HAVE_USBHID_H)
  18676. #include <usbhid.h>
  18677. #elif defined(HAVE_LIBUSB_H)
  18678. #include <libusb.h>
  18679. #elif defined(HAVE_LIBUSBHID_H)
  18680. #include <libusbhid.h>
  18681. #endif
  18682. int
  18683. main ()
  18684. {
  18685. report_desc_t d;
  18686. hid_start_parse(d, 1, 1);
  18687. ;
  18688. return 0;
  18689. }
  18690. _ACEOF
  18691. if ac_fn_c_try_compile "$LINENO"; then :
  18692. have_usbhid_new=yes
  18693. fi
  18694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18695. if test x$have_usbhid_new = xyes; then
  18696. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  18697. fi
  18698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  18699. $as_echo "$have_usbhid_new" >&6; }
  18700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  18701. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  18702. have_machine_joystick=no
  18703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18704. /* end confdefs.h. */
  18705. #include <machine/joystick.h>
  18706. int
  18707. main ()
  18708. {
  18709. struct joystick t;
  18710. ;
  18711. return 0;
  18712. }
  18713. _ACEOF
  18714. if ac_fn_c_try_compile "$LINENO"; then :
  18715. have_machine_joystick=yes
  18716. fi
  18717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18718. if test x$have_machine_joystick = xyes; then
  18719. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  18720. fi
  18721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  18722. $as_echo "$have_machine_joystick" >&6; }
  18723. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  18724. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  18725. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  18726. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  18727. have_joystick=yes
  18728. fi
  18729. CFLAGS="$save_CFLAGS"
  18730. fi
  18731. }
  18732. CheckClockGettime()
  18733. {
  18734. # Check whether --enable-clock_gettime was given.
  18735. if test "${enable_clock_gettime+set}" = set; then :
  18736. enableval=$enable_clock_gettime;
  18737. else
  18738. enable_clock_gettime=yes
  18739. fi
  18740. if test x$enable_clock_gettime = xyes; then
  18741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  18742. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  18743. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  18744. $as_echo_n "(cached) " >&6
  18745. else
  18746. ac_check_lib_save_LIBS=$LIBS
  18747. LIBS="-lrt $LIBS"
  18748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18749. /* end confdefs.h. */
  18750. /* Override any GCC internal prototype to avoid an error.
  18751. Use char because int might match the return type of a GCC
  18752. builtin and then its argument prototype would still apply. */
  18753. #ifdef __cplusplus
  18754. extern "C"
  18755. #endif
  18756. char clock_gettime ();
  18757. int
  18758. main ()
  18759. {
  18760. return clock_gettime ();
  18761. ;
  18762. return 0;
  18763. }
  18764. _ACEOF
  18765. if ac_fn_c_try_link "$LINENO"; then :
  18766. ac_cv_lib_rt_clock_gettime=yes
  18767. else
  18768. ac_cv_lib_rt_clock_gettime=no
  18769. fi
  18770. rm -f core conftest.err conftest.$ac_objext \
  18771. conftest$ac_exeext conftest.$ac_ext
  18772. LIBS=$ac_check_lib_save_LIBS
  18773. fi
  18774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  18775. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  18776. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  18777. have_clock_gettime=yes
  18778. fi
  18779. if test x$have_clock_gettime = xyes; then
  18780. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  18781. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  18782. else
  18783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  18784. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  18785. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  18786. $as_echo_n "(cached) " >&6
  18787. else
  18788. ac_check_lib_save_LIBS=$LIBS
  18789. LIBS="-lc $LIBS"
  18790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18791. /* end confdefs.h. */
  18792. /* Override any GCC internal prototype to avoid an error.
  18793. Use char because int might match the return type of a GCC
  18794. builtin and then its argument prototype would still apply. */
  18795. #ifdef __cplusplus
  18796. extern "C"
  18797. #endif
  18798. char clock_gettime ();
  18799. int
  18800. main ()
  18801. {
  18802. return clock_gettime ();
  18803. ;
  18804. return 0;
  18805. }
  18806. _ACEOF
  18807. if ac_fn_c_try_link "$LINENO"; then :
  18808. ac_cv_lib_c_clock_gettime=yes
  18809. else
  18810. ac_cv_lib_c_clock_gettime=no
  18811. fi
  18812. rm -f core conftest.err conftest.$ac_objext \
  18813. conftest$ac_exeext conftest.$ac_ext
  18814. LIBS=$ac_check_lib_save_LIBS
  18815. fi
  18816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  18817. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  18818. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  18819. have_clock_gettime=yes
  18820. fi
  18821. if test x$have_clock_gettime = xyes; then
  18822. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  18823. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  18824. fi
  18825. fi
  18826. fi
  18827. }
  18828. CheckLinuxVersion()
  18829. {
  18830. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  18831. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  18832. have_linux_version_h=yes
  18833. fi
  18834. if test x$have_linux_version_h = xyes; then
  18835. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  18836. fi
  18837. }
  18838. CheckRPATH()
  18839. {
  18840. # Check whether --enable-rpath was given.
  18841. if test "${enable_rpath+set}" = set; then :
  18842. enableval=$enable_rpath;
  18843. else
  18844. enable_rpath=yes
  18845. fi
  18846. }
  18847. case "$host" in
  18848. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  18849. case "$host" in
  18850. *-*-linux*) ARCH=linux ;;
  18851. *-*-uclinux*) ARCH=linux ;;
  18852. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  18853. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  18854. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  18855. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  18856. *-*-bsdi*) ARCH=bsdi ;;
  18857. *-*-freebsd*) ARCH=freebsd ;;
  18858. *-*-dragonfly*) ARCH=freebsd ;;
  18859. *-*-netbsd*) ARCH=netbsd ;;
  18860. *-*-openbsd*) ARCH=openbsd ;;
  18861. *-*-sysv5*) ARCH=sysv5 ;;
  18862. *-*-solaris*) ARCH=solaris ;;
  18863. *-*-hpux*) ARCH=hpux ;;
  18864. *-*-aix*) ARCH=aix ;;
  18865. *-*-minix*) ARCH=minix ;;
  18866. esac
  18867. CheckVisibilityHidden
  18868. CheckDummyVideo
  18869. CheckDiskAudio
  18870. CheckDummyAudio
  18871. CheckDLOPEN
  18872. CheckOSS
  18873. CheckALSA
  18874. CheckPulseAudio
  18875. CheckARTSC
  18876. CheckESD
  18877. CheckNAS
  18878. CheckSNDIO
  18879. CheckX11
  18880. CheckDirectFB
  18881. CheckFusionSound
  18882. CheckOpenGLX11
  18883. CheckOpenGLESX11
  18884. CheckLibUDev
  18885. CheckDBus
  18886. CheckInputEvents
  18887. CheckTslib
  18888. CheckUSBHID
  18889. CheckPTHREAD
  18890. CheckClockGettime
  18891. CheckLinuxVersion
  18892. CheckRPATH
  18893. # Set up files for the audio library
  18894. if test x$enable_audio = xyes; then
  18895. case $ARCH in
  18896. sysv5|solaris|hpux)
  18897. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  18898. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  18899. have_audio=yes
  18900. ;;
  18901. netbsd) # Don't use this on OpenBSD, it's busted.
  18902. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  18903. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  18904. have_audio=yes
  18905. ;;
  18906. aix)
  18907. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  18908. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  18909. have_audio=yes
  18910. ;;
  18911. esac
  18912. fi
  18913. # Set up files for the joystick library
  18914. if test x$enable_joystick = xyes; then
  18915. case $ARCH in
  18916. linux)
  18917. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  18918. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  18919. have_joystick=yes
  18920. ;;
  18921. esac
  18922. fi
  18923. # Set up files for the haptic library
  18924. if test x$enable_haptic = xyes; then
  18925. if test x$use_input_events = xyes; then
  18926. case $ARCH in
  18927. linux)
  18928. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  18929. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  18930. have_haptic=yes
  18931. ;;
  18932. esac
  18933. fi
  18934. fi
  18935. # Set up files for the power library
  18936. if test x$enable_power = xyes; then
  18937. case $ARCH in
  18938. linux)
  18939. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  18940. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  18941. have_power=yes
  18942. ;;
  18943. esac
  18944. fi
  18945. # Set up files for the timer library
  18946. if test x$enable_timers = xyes; then
  18947. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  18948. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  18949. have_timers=yes
  18950. fi
  18951. ;;
  18952. *-*-cygwin* | *-*-mingw32*)
  18953. ARCH=win32
  18954. if test "$build" != "$host"; then # cross-compiling
  18955. # Default cross-compile location
  18956. ac_default_prefix=/usr/local/cross-tools/$host
  18957. else
  18958. # Look for the location of the tools and install there
  18959. if test "$BUILD_PREFIX" != ""; then
  18960. ac_default_prefix=$BUILD_PREFIX
  18961. fi
  18962. fi
  18963. CheckDummyVideo
  18964. CheckDiskAudio
  18965. CheckDummyAudio
  18966. CheckWINDOWS
  18967. CheckWINDOWSGL
  18968. CheckDIRECTX
  18969. # Set up the core platform files
  18970. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  18971. # Set up files for the video library
  18972. if test x$enable_video = xyes; then
  18973. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  18974. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  18975. have_video=yes
  18976. # Check whether --enable-render-d3d was given.
  18977. if test "${enable_render_d3d+set}" = set; then :
  18978. enableval=$enable_render_d3d;
  18979. else
  18980. enable_render_d3d=yes
  18981. fi
  18982. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  18983. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  18984. fi
  18985. fi
  18986. # Set up files for the audio library
  18987. if test x$enable_audio = xyes; then
  18988. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  18989. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  18990. if test x$have_dsound = xyes; then
  18991. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  18992. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  18993. fi
  18994. if test x$have_xaudio2 = xyes; then
  18995. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  18996. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  18997. fi
  18998. have_audio=yes
  18999. fi
  19000. # Set up files for the joystick library
  19001. if test x$enable_joystick = xyes; then
  19002. if test x$have_dinput = xyes; then
  19003. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19004. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_dxjoystick.c"
  19005. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19006. else
  19007. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19008. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_mmjoystick.c"
  19009. fi
  19010. have_joystick=yes
  19011. fi
  19012. if test x$enable_haptic = xyes; then
  19013. if test x$have_dinput = xyes; then
  19014. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19015. SOURCES="$SOURCES $srcdir/src/haptic/windows/SDL_syshaptic.c"
  19016. have_haptic=yes
  19017. fi
  19018. fi
  19019. if test x$enable_power = xyes; then
  19020. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  19021. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19022. have_power=yes
  19023. fi
  19024. # Set up files for the thread library
  19025. if test x$enable_threads = xyes; then
  19026. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19027. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19028. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19029. have_threads=yes
  19030. fi
  19031. # Set up files for the timer library
  19032. if test x$enable_timers = xyes; then
  19033. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  19034. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  19035. have_timers=yes
  19036. fi
  19037. # Set up files for the shared object loading library
  19038. if test x$enable_loadso = xyes; then
  19039. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  19040. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  19041. have_loadso=yes
  19042. fi
  19043. # Set up the system libraries we need
  19044. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -XCClinker -static-libgcc"
  19045. # The Windows platform requires special setup
  19046. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  19047. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  19048. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  19049. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  19050. # Check to see if this is a mingw or cygwin build
  19051. have_mingw32=
  19052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  19053. $as_echo_n "checking for main in -lmingw32... " >&6; }
  19054. if ${ac_cv_lib_mingw32_main+:} false; then :
  19055. $as_echo_n "(cached) " >&6
  19056. else
  19057. ac_check_lib_save_LIBS=$LIBS
  19058. LIBS="-lmingw32 $LIBS"
  19059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19060. /* end confdefs.h. */
  19061. int
  19062. main ()
  19063. {
  19064. return main ();
  19065. ;
  19066. return 0;
  19067. }
  19068. _ACEOF
  19069. if ac_fn_c_try_link "$LINENO"; then :
  19070. ac_cv_lib_mingw32_main=yes
  19071. else
  19072. ac_cv_lib_mingw32_main=no
  19073. fi
  19074. rm -f core conftest.err conftest.$ac_objext \
  19075. conftest$ac_exeext conftest.$ac_ext
  19076. LIBS=$ac_check_lib_save_LIBS
  19077. fi
  19078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  19079. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  19080. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  19081. have_mingw32=yes
  19082. fi
  19083. if test x$have_mingw32 = xyes; then
  19084. SDL_LIBS="-lmingw32 $SDL_LIBS"
  19085. else
  19086. SDL_LIBS="-lcygwin $SDL_LIBS"
  19087. fi
  19088. ;;
  19089. *-*-beos* | *-*-haiku*)
  19090. ARCH=beos
  19091. ac_default_prefix=/boot/common
  19092. CheckDummyVideo
  19093. CheckDiskAudio
  19094. CheckDummyAudio
  19095. CheckBWINDOW
  19096. CheckBeGL
  19097. # Set up files for the audio library
  19098. if test x$enable_audio = xyes; then
  19099. $as_echo "#define SDL_AUDIO_DRIVER_BEOSAUDIO 1" >>confdefs.h
  19100. SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc"
  19101. have_audio=yes
  19102. fi
  19103. # Set up files for the joystick library
  19104. if test x$enable_joystick = xyes; then
  19105. $as_echo "#define SDL_JOYSTICK_BEOS 1" >>confdefs.h
  19106. SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc"
  19107. have_joystick=yes
  19108. fi
  19109. # Set up files for the thread library
  19110. if test x$enable_threads = xyes; then
  19111. $as_echo "#define SDL_THREAD_BEOS 1" >>confdefs.h
  19112. SOURCES="$SOURCES $srcdir/src/thread/beos/*.c"
  19113. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
  19114. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19115. have_threads=yes
  19116. fi
  19117. # Set up files for the timer library
  19118. if test x$enable_timers = xyes; then
  19119. $as_echo "#define SDL_TIMER_BEOS 1" >>confdefs.h
  19120. SOURCES="$SOURCES $srcdir/src/timer/beos/*.c"
  19121. have_timers=yes
  19122. fi
  19123. # Set up files for the shared object loading library
  19124. if test x$enable_loadso = xyes; then
  19125. $as_echo "#define SDL_LOADSO_BEOS 1" >>confdefs.h
  19126. SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c"
  19127. have_loadso=yes
  19128. fi
  19129. # Set up files for the system power library
  19130. if test x$enable_power = xyes; then
  19131. $as_echo "#define SDL_POWER_BEOS 1" >>confdefs.h
  19132. SOURCES="$SOURCES $srcdir/src/power/beos/*.c"
  19133. have_power=yes
  19134. fi
  19135. # The BeOS platform requires special setup.
  19136. SOURCES="$srcdir/src/main/beos/*.cc $SOURCES"
  19137. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  19138. ;;
  19139. arm*-apple-darwin*)
  19140. # iOS - We are not writing anything to confdefs.h because you have to replace
  19141. # SDL_config.h for SDL_config_iphoneos.h anyway
  19142. ARCH=ios
  19143. CheckVisibilityHidden
  19144. CheckDummyVideo
  19145. CheckDiskAudio
  19146. CheckDummyAudio
  19147. CheckDLOPEN
  19148. CheckCOCOA
  19149. CheckPTHREAD
  19150. # Set up files for the audio library
  19151. if test x$enable_audio = xyes; then
  19152. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19153. have_audio=yes
  19154. fi
  19155. # Set up files for the joystick library
  19156. if test x$enable_joystick = xyes; then
  19157. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  19158. have_joystick=yes
  19159. fi
  19160. # Set up files for the haptic library
  19161. #if test x$enable_haptic = xyes; then
  19162. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19163. # have_haptic=yes
  19164. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19165. #fi
  19166. # Set up files for the power library
  19167. if test x$enable_power = xyes; then
  19168. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  19169. have_power=yes
  19170. fi
  19171. # Set up files for the timer library
  19172. if test x$enable_timers = xyes; then
  19173. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19174. have_timers=yes
  19175. fi
  19176. # Set up additional files for the file library
  19177. if test x$enable_file = xyes; then
  19178. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19179. fi
  19180. # The iOS platform requires special setup.
  19181. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  19182. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19183. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  19184. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  19185. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  19186. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  19187. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  19188. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  19189. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  19190. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  19191. ;;
  19192. *-*-darwin* )
  19193. # This could be either full "Mac OS X", or plain "Darwin" which is
  19194. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  19195. # Next line is broken, and a few files below require Mac OS X (full)
  19196. ARCH=macosx
  19197. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  19198. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  19199. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  19200. CheckVisibilityHidden
  19201. CheckDummyVideo
  19202. CheckDiskAudio
  19203. CheckDummyAudio
  19204. CheckDLOPEN
  19205. CheckCOCOA
  19206. CheckX11
  19207. CheckMacGL
  19208. CheckOpenGLX11
  19209. CheckPTHREAD
  19210. # Good optimization on Mac OS X, yes...
  19211. EXTRA_CFLAGS="$EXTRA_CFLAGS -falign-loops=16"
  19212. # Need this or things might misbuild on a G3.
  19213. EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL"
  19214. # Set up files for the audio library
  19215. if test x$enable_audio = xyes; then
  19216. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  19217. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19218. have_audio=yes
  19219. fi
  19220. # Set up files for the joystick library
  19221. if test x$enable_joystick = xyes; then
  19222. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  19223. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  19224. have_joystick=yes
  19225. fi
  19226. # Set up files for the haptic library
  19227. if test x$enable_haptic = xyes; then
  19228. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  19229. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19230. have_haptic=yes
  19231. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19232. fi
  19233. # Set up files for the power library
  19234. if test x$enable_power = xyes; then
  19235. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  19236. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  19237. have_power=yes
  19238. fi
  19239. # Set up files for the timer library
  19240. if test x$enable_timers = xyes; then
  19241. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19242. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19243. have_timers=yes
  19244. fi
  19245. # Set up additional files for the file library
  19246. if test x$enable_file = xyes; then
  19247. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19248. fi
  19249. # The Mac OS X platform requires special setup.
  19250. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19251. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  19252. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  19253. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  19254. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  19255. # If audio is used, add the AudioUnit framework
  19256. if test x$enable_audio = xyes; then
  19257. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
  19258. fi
  19259. ;;
  19260. *)
  19261. as_fn_error $? "
  19262. *** Unsupported host: Please add to configure.in
  19263. " "$LINENO" 5
  19264. ;;
  19265. esac
  19266. CheckWarnAll
  19267. # Verify that we have all the platform specific files we need
  19268. if test x$have_joystick != xyes; then
  19269. if test x$enable_joystick = xyes; then
  19270. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  19271. fi
  19272. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  19273. fi
  19274. if test x$have_haptic != xyes; then
  19275. if test x$enable_haptic = xyes; then
  19276. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  19277. fi
  19278. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  19279. fi
  19280. if test x$have_threads != xyes; then
  19281. if test x$enable_threads = xyes; then
  19282. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  19283. fi
  19284. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  19285. fi
  19286. if test x$have_timers != xyes; then
  19287. if test x$enable_timers = xyes; then
  19288. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  19289. fi
  19290. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  19291. fi
  19292. if test x$have_loadso != xyes; then
  19293. if test x$enable_loadso = xyes; then
  19294. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  19295. fi
  19296. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  19297. fi
  19298. if test x$SDLMAIN_SOURCES = x; then
  19299. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  19300. fi
  19301. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  19302. OBJECTS=`echo $SOURCES`
  19303. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  19304. for EXT in asm cc m c S; do
  19305. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  19306. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  19307. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  19308. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19309. done
  19310. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  19311. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  19312. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  19313. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  19314. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  19315. \\$(WINDRES) \\$< \\$@,g"`
  19316. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  19317. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  19318. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  19319. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  19320. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  19321. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19322. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  19323. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  19324. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  19325. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  19326. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  19327. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19328. # Set runtime shared library paths as needed
  19329. if test "x$enable_rpath" = "xyes"; then
  19330. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  19331. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  19332. fi
  19333. if test $ARCH = solaris; then
  19334. SDL_RLD_FLAGS="-R\${libdir}"
  19335. fi
  19336. else
  19337. SDL_RLD_FLAGS=""
  19338. fi
  19339. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  19340. if test x$enable_shared = xyes; then
  19341. ENABLE_SHARED_TRUE=
  19342. ENABLE_SHARED_FALSE="#"
  19343. else
  19344. ENABLE_SHARED_TRUE="#"
  19345. ENABLE_SHARED_FALSE=
  19346. fi
  19347. if test x$enable_static = xyes; then
  19348. ENABLE_STATIC_TRUE=
  19349. ENABLE_STATIC_FALSE="#"
  19350. else
  19351. ENABLE_STATIC_TRUE="#"
  19352. ENABLE_STATIC_FALSE=
  19353. fi
  19354. cat >Makefile.rules <<__EOF__
  19355. # Build rules for objects
  19356. -include \$(OBJECTS:.lo=.d)
  19357. # Special dependency for SDL.c, since it depends on SDL_revision.h
  19358. $srcdir/src/SDL.c: update-revision
  19359. $DEPENDS
  19360. $VERSION_DEPENDS
  19361. $SDLMAIN_DEPENDS
  19362. $SDLTEST_DEPENDS
  19363. __EOF__
  19364. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config SDL2.spec sdl2.pc"
  19365. cat >confcache <<\_ACEOF
  19366. # This file is a shell script that caches the results of configure
  19367. # tests run on this system so they can be shared between configure
  19368. # scripts and configure runs, see configure's option --config-cache.
  19369. # It is not useful on other systems. If it contains results you don't
  19370. # want to keep, you may remove or edit it.
  19371. #
  19372. # config.status only pays attention to the cache file if you give it
  19373. # the --recheck option to rerun configure.
  19374. #
  19375. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19376. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19377. # following values.
  19378. _ACEOF
  19379. # The following way of writing the cache mishandles newlines in values,
  19380. # but we know of no workaround that is simple, portable, and efficient.
  19381. # So, we kill variables containing newlines.
  19382. # Ultrix sh set writes to stderr and can't be redirected directly,
  19383. # and sets the high bit in the cache file unless we assign to the vars.
  19384. (
  19385. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19386. eval ac_val=\$$ac_var
  19387. case $ac_val in #(
  19388. *${as_nl}*)
  19389. case $ac_var in #(
  19390. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  19391. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  19392. esac
  19393. case $ac_var in #(
  19394. _ | IFS | as_nl) ;; #(
  19395. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  19396. *) { eval $ac_var=; unset $ac_var;} ;;
  19397. esac ;;
  19398. esac
  19399. done
  19400. (set) 2>&1 |
  19401. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19402. *${as_nl}ac_space=\ *)
  19403. # `set' does not quote correctly, so add quotes: double-quote
  19404. # substitution turns \\\\ into \\, and sed turns \\ into \.
  19405. sed -n \
  19406. "s/'/'\\\\''/g;
  19407. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19408. ;; #(
  19409. *)
  19410. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19411. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19412. ;;
  19413. esac |
  19414. sort
  19415. ) |
  19416. sed '
  19417. /^ac_cv_env_/b end
  19418. t clear
  19419. :clear
  19420. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19421. t end
  19422. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19423. :end' >>confcache
  19424. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19425. if test -w "$cache_file"; then
  19426. if test "x$cache_file" != "x/dev/null"; then
  19427. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  19428. $as_echo "$as_me: updating cache $cache_file" >&6;}
  19429. if test ! -f "$cache_file" || test -h "$cache_file"; then
  19430. cat confcache >"$cache_file"
  19431. else
  19432. case $cache_file in #(
  19433. */* | ?:*)
  19434. mv -f confcache "$cache_file"$$ &&
  19435. mv -f "$cache_file"$$ "$cache_file" ;; #(
  19436. *)
  19437. mv -f confcache "$cache_file" ;;
  19438. esac
  19439. fi
  19440. fi
  19441. else
  19442. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  19443. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19444. fi
  19445. fi
  19446. rm -f confcache
  19447. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19448. # Let make expand exec_prefix.
  19449. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19450. DEFS=-DHAVE_CONFIG_H
  19451. ac_libobjs=
  19452. ac_ltlibobjs=
  19453. U=
  19454. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19455. # 1. Remove the extension, and $U if already installed.
  19456. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19457. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  19458. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19459. # will be set to the directory where LIBOBJS objects are built.
  19460. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19461. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  19462. done
  19463. LIBOBJS=$ac_libobjs
  19464. LTLIBOBJS=$ac_ltlibobjs
  19465. : "${CONFIG_STATUS=./config.status}"
  19466. ac_write_fail=0
  19467. ac_clean_files_save=$ac_clean_files
  19468. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19469. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  19470. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19471. as_write_fail=0
  19472. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  19473. #! $SHELL
  19474. # Generated by $as_me.
  19475. # Run this file to recreate the current configuration.
  19476. # Compiler output produced by configure, useful for debugging
  19477. # configure, is in config.log if it exists.
  19478. debug=false
  19479. ac_cs_recheck=false
  19480. ac_cs_silent=false
  19481. SHELL=\${CONFIG_SHELL-$SHELL}
  19482. export SHELL
  19483. _ASEOF
  19484. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  19485. ## -------------------- ##
  19486. ## M4sh Initialization. ##
  19487. ## -------------------- ##
  19488. # Be more Bourne compatible
  19489. DUALCASE=1; export DUALCASE # for MKS sh
  19490. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19491. emulate sh
  19492. NULLCMD=:
  19493. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  19494. # is contrary to our usage. Disable this feature.
  19495. alias -g '${1+"$@"}'='"$@"'
  19496. setopt NO_GLOB_SUBST
  19497. else
  19498. case `(set -o) 2>/dev/null` in #(
  19499. *posix*) :
  19500. set -o posix ;; #(
  19501. *) :
  19502. ;;
  19503. esac
  19504. fi
  19505. as_nl='
  19506. '
  19507. export as_nl
  19508. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  19509. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  19510. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  19511. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  19512. # Prefer a ksh shell builtin over an external printf program on Solaris,
  19513. # but without wasting forks for bash or zsh.
  19514. if test -z "$BASH_VERSION$ZSH_VERSION" \
  19515. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  19516. as_echo='print -r --'
  19517. as_echo_n='print -rn --'
  19518. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  19519. as_echo='printf %s\n'
  19520. as_echo_n='printf %s'
  19521. else
  19522. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  19523. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  19524. as_echo_n='/usr/ucb/echo -n'
  19525. else
  19526. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  19527. as_echo_n_body='eval
  19528. arg=$1;
  19529. case $arg in #(
  19530. *"$as_nl"*)
  19531. expr "X$arg" : "X\\(.*\\)$as_nl";
  19532. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  19533. esac;
  19534. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  19535. '
  19536. export as_echo_n_body
  19537. as_echo_n='sh -c $as_echo_n_body as_echo'
  19538. fi
  19539. export as_echo_body
  19540. as_echo='sh -c $as_echo_body as_echo'
  19541. fi
  19542. # The user is always right.
  19543. if test "${PATH_SEPARATOR+set}" != set; then
  19544. PATH_SEPARATOR=:
  19545. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  19546. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  19547. PATH_SEPARATOR=';'
  19548. }
  19549. fi
  19550. # IFS
  19551. # We need space, tab and new line, in precisely that order. Quoting is
  19552. # there to prevent editors from complaining about space-tab.
  19553. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19554. # splitting by setting IFS to empty value.)
  19555. IFS=" "" $as_nl"
  19556. # Find who we are. Look in the path if we contain no directory separator.
  19557. as_myself=
  19558. case $0 in #((
  19559. *[\\/]* ) as_myself=$0 ;;
  19560. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19561. for as_dir in $PATH
  19562. do
  19563. IFS=$as_save_IFS
  19564. test -z "$as_dir" && as_dir=.
  19565. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19566. done
  19567. IFS=$as_save_IFS
  19568. ;;
  19569. esac
  19570. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19571. # in which case we are not to be found in the path.
  19572. if test "x$as_myself" = x; then
  19573. as_myself=$0
  19574. fi
  19575. if test ! -f "$as_myself"; then
  19576. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19577. exit 1
  19578. fi
  19579. # Unset variables that we do not need and which cause bugs (e.g. in
  19580. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  19581. # suppresses any "Segmentation fault" message there. '((' could
  19582. # trigger a bug in pdksh 5.2.14.
  19583. for as_var in BASH_ENV ENV MAIL MAILPATH
  19584. do eval test x\${$as_var+set} = xset \
  19585. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  19586. done
  19587. PS1='$ '
  19588. PS2='> '
  19589. PS4='+ '
  19590. # NLS nuisances.
  19591. LC_ALL=C
  19592. export LC_ALL
  19593. LANGUAGE=C
  19594. export LANGUAGE
  19595. # CDPATH.
  19596. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19597. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  19598. # ----------------------------------------
  19599. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  19600. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  19601. # script with STATUS, using 1 if that was 0.
  19602. as_fn_error ()
  19603. {
  19604. as_status=$1; test $as_status -eq 0 && as_status=1
  19605. if test "$4"; then
  19606. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19607. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  19608. fi
  19609. $as_echo "$as_me: error: $2" >&2
  19610. as_fn_exit $as_status
  19611. } # as_fn_error
  19612. # as_fn_set_status STATUS
  19613. # -----------------------
  19614. # Set $? to STATUS, without forking.
  19615. as_fn_set_status ()
  19616. {
  19617. return $1
  19618. } # as_fn_set_status
  19619. # as_fn_exit STATUS
  19620. # -----------------
  19621. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  19622. as_fn_exit ()
  19623. {
  19624. set +e
  19625. as_fn_set_status $1
  19626. exit $1
  19627. } # as_fn_exit
  19628. # as_fn_unset VAR
  19629. # ---------------
  19630. # Portably unset VAR.
  19631. as_fn_unset ()
  19632. {
  19633. { eval $1=; unset $1;}
  19634. }
  19635. as_unset=as_fn_unset
  19636. # as_fn_append VAR VALUE
  19637. # ----------------------
  19638. # Append the text in VALUE to the end of the definition contained in VAR. Take
  19639. # advantage of any shell optimizations that allow amortized linear growth over
  19640. # repeated appends, instead of the typical quadratic growth present in naive
  19641. # implementations.
  19642. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  19643. eval 'as_fn_append ()
  19644. {
  19645. eval $1+=\$2
  19646. }'
  19647. else
  19648. as_fn_append ()
  19649. {
  19650. eval $1=\$$1\$2
  19651. }
  19652. fi # as_fn_append
  19653. # as_fn_arith ARG...
  19654. # ------------------
  19655. # Perform arithmetic evaluation on the ARGs, and store the result in the
  19656. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  19657. # must be portable across $(()) and expr.
  19658. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  19659. eval 'as_fn_arith ()
  19660. {
  19661. as_val=$(( $* ))
  19662. }'
  19663. else
  19664. as_fn_arith ()
  19665. {
  19666. as_val=`expr "$@" || test $? -eq 1`
  19667. }
  19668. fi # as_fn_arith
  19669. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19670. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19671. as_expr=expr
  19672. else
  19673. as_expr=false
  19674. fi
  19675. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19676. as_basename=basename
  19677. else
  19678. as_basename=false
  19679. fi
  19680. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19681. as_dirname=dirname
  19682. else
  19683. as_dirname=false
  19684. fi
  19685. as_me=`$as_basename -- "$0" ||
  19686. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19687. X"$0" : 'X\(//\)$' \| \
  19688. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19689. $as_echo X/"$0" |
  19690. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19691. s//\1/
  19692. q
  19693. }
  19694. /^X\/\(\/\/\)$/{
  19695. s//\1/
  19696. q
  19697. }
  19698. /^X\/\(\/\).*/{
  19699. s//\1/
  19700. q
  19701. }
  19702. s/.*/./; q'`
  19703. # Avoid depending upon Character Ranges.
  19704. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19705. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19706. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19707. as_cr_digits='0123456789'
  19708. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19709. ECHO_C= ECHO_N= ECHO_T=
  19710. case `echo -n x` in #(((((
  19711. -n*)
  19712. case `echo 'xy\c'` in
  19713. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19714. xy) ECHO_C='\c';;
  19715. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  19716. ECHO_T=' ';;
  19717. esac;;
  19718. *)
  19719. ECHO_N='-n';;
  19720. esac
  19721. rm -f conf$$ conf$$.exe conf$$.file
  19722. if test -d conf$$.dir; then
  19723. rm -f conf$$.dir/conf$$.file
  19724. else
  19725. rm -f conf$$.dir
  19726. mkdir conf$$.dir 2>/dev/null
  19727. fi
  19728. if (echo >conf$$.file) 2>/dev/null; then
  19729. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19730. as_ln_s='ln -s'
  19731. # ... but there are two gotchas:
  19732. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19733. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19734. # In both cases, we have to default to `cp -pR'.
  19735. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19736. as_ln_s='cp -pR'
  19737. elif ln conf$$.file conf$$ 2>/dev/null; then
  19738. as_ln_s=ln
  19739. else
  19740. as_ln_s='cp -pR'
  19741. fi
  19742. else
  19743. as_ln_s='cp -pR'
  19744. fi
  19745. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19746. rmdir conf$$.dir 2>/dev/null
  19747. # as_fn_mkdir_p
  19748. # -------------
  19749. # Create "$as_dir" as a directory, including parents if necessary.
  19750. as_fn_mkdir_p ()
  19751. {
  19752. case $as_dir in #(
  19753. -*) as_dir=./$as_dir;;
  19754. esac
  19755. test -d "$as_dir" || eval $as_mkdir_p || {
  19756. as_dirs=
  19757. while :; do
  19758. case $as_dir in #(
  19759. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  19760. *) as_qdir=$as_dir;;
  19761. esac
  19762. as_dirs="'$as_qdir' $as_dirs"
  19763. as_dir=`$as_dirname -- "$as_dir" ||
  19764. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19765. X"$as_dir" : 'X\(//\)[^/]' \| \
  19766. X"$as_dir" : 'X\(//\)$' \| \
  19767. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  19768. $as_echo X"$as_dir" |
  19769. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19770. s//\1/
  19771. q
  19772. }
  19773. /^X\(\/\/\)[^/].*/{
  19774. s//\1/
  19775. q
  19776. }
  19777. /^X\(\/\/\)$/{
  19778. s//\1/
  19779. q
  19780. }
  19781. /^X\(\/\).*/{
  19782. s//\1/
  19783. q
  19784. }
  19785. s/.*/./; q'`
  19786. test -d "$as_dir" && break
  19787. done
  19788. test -z "$as_dirs" || eval "mkdir $as_dirs"
  19789. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  19790. } # as_fn_mkdir_p
  19791. if mkdir -p . 2>/dev/null; then
  19792. as_mkdir_p='mkdir -p "$as_dir"'
  19793. else
  19794. test -d ./-p && rmdir ./-p
  19795. as_mkdir_p=false
  19796. fi
  19797. # as_fn_executable_p FILE
  19798. # -----------------------
  19799. # Test if FILE is an executable regular file.
  19800. as_fn_executable_p ()
  19801. {
  19802. test -f "$1" && test -x "$1"
  19803. } # as_fn_executable_p
  19804. as_test_x='test -x'
  19805. as_executable_p=as_fn_executable_p
  19806. # Sed expression to map a string onto a valid CPP name.
  19807. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19808. # Sed expression to map a string onto a valid variable name.
  19809. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19810. exec 6>&1
  19811. ## ----------------------------------- ##
  19812. ## Main body of $CONFIG_STATUS script. ##
  19813. ## ----------------------------------- ##
  19814. _ASEOF
  19815. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  19816. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19817. # Save the log message, to keep $0 and so on meaningful, and to
  19818. # report actual input values of CONFIG_FILES etc. instead of their
  19819. # values after options handling.
  19820. ac_log="
  19821. This file was extended by $as_me, which was
  19822. generated by GNU Autoconf 2.69. Invocation command line was
  19823. CONFIG_FILES = $CONFIG_FILES
  19824. CONFIG_HEADERS = $CONFIG_HEADERS
  19825. CONFIG_LINKS = $CONFIG_LINKS
  19826. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19827. $ $0 $@
  19828. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19829. "
  19830. _ACEOF
  19831. case $ac_config_files in *"
  19832. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  19833. esac
  19834. case $ac_config_headers in *"
  19835. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  19836. esac
  19837. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19838. # Files that config.status was made for.
  19839. config_files="$ac_config_files"
  19840. config_headers="$ac_config_headers"
  19841. config_commands="$ac_config_commands"
  19842. _ACEOF
  19843. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19844. ac_cs_usage="\
  19845. \`$as_me' instantiates files and other configuration actions
  19846. from templates according to the current configuration. Unless the files
  19847. and actions are specified as TAGs, all are instantiated by default.
  19848. Usage: $0 [OPTION]... [TAG]...
  19849. -h, --help print this help, then exit
  19850. -V, --version print version number and configuration settings, then exit
  19851. --config print configuration, then exit
  19852. -q, --quiet, --silent
  19853. do not print progress messages
  19854. -d, --debug don't remove temporary files
  19855. --recheck update $as_me by reconfiguring in the same conditions
  19856. --file=FILE[:TEMPLATE]
  19857. instantiate the configuration file FILE
  19858. --header=FILE[:TEMPLATE]
  19859. instantiate the configuration header FILE
  19860. Configuration files:
  19861. $config_files
  19862. Configuration headers:
  19863. $config_headers
  19864. Configuration commands:
  19865. $config_commands
  19866. Report bugs to the package provider."
  19867. _ACEOF
  19868. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19869. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  19870. ac_cs_version="\\
  19871. config.status
  19872. configured by $0, generated by GNU Autoconf 2.69,
  19873. with options \\"\$ac_cs_config\\"
  19874. Copyright (C) 2012 Free Software Foundation, Inc.
  19875. This config.status script is free software; the Free Software Foundation
  19876. gives unlimited permission to copy, distribute and modify it."
  19877. ac_pwd='$ac_pwd'
  19878. srcdir='$srcdir'
  19879. INSTALL='$INSTALL'
  19880. AWK='$AWK'
  19881. test -n "\$AWK" || AWK=awk
  19882. _ACEOF
  19883. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19884. # The default lists apply if the user does not specify any file.
  19885. ac_need_defaults=:
  19886. while test $# != 0
  19887. do
  19888. case $1 in
  19889. --*=?*)
  19890. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19891. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19892. ac_shift=:
  19893. ;;
  19894. --*=)
  19895. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19896. ac_optarg=
  19897. ac_shift=:
  19898. ;;
  19899. *)
  19900. ac_option=$1
  19901. ac_optarg=$2
  19902. ac_shift=shift
  19903. ;;
  19904. esac
  19905. case $ac_option in
  19906. # Handling of the options.
  19907. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19908. ac_cs_recheck=: ;;
  19909. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19910. $as_echo "$ac_cs_version"; exit ;;
  19911. --config | --confi | --conf | --con | --co | --c )
  19912. $as_echo "$ac_cs_config"; exit ;;
  19913. --debug | --debu | --deb | --de | --d | -d )
  19914. debug=: ;;
  19915. --file | --fil | --fi | --f )
  19916. $ac_shift
  19917. case $ac_optarg in
  19918. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19919. '') as_fn_error $? "missing file argument" ;;
  19920. esac
  19921. as_fn_append CONFIG_FILES " '$ac_optarg'"
  19922. ac_need_defaults=false;;
  19923. --header | --heade | --head | --hea )
  19924. $ac_shift
  19925. case $ac_optarg in
  19926. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19927. esac
  19928. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  19929. ac_need_defaults=false;;
  19930. --he | --h)
  19931. # Conflict between --help and --header
  19932. as_fn_error $? "ambiguous option: \`$1'
  19933. Try \`$0 --help' for more information.";;
  19934. --help | --hel | -h )
  19935. $as_echo "$ac_cs_usage"; exit ;;
  19936. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19937. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19938. ac_cs_silent=: ;;
  19939. # This is an error.
  19940. -*) as_fn_error $? "unrecognized option: \`$1'
  19941. Try \`$0 --help' for more information." ;;
  19942. *) as_fn_append ac_config_targets " $1"
  19943. ac_need_defaults=false ;;
  19944. esac
  19945. shift
  19946. done
  19947. ac_configure_extra_args=
  19948. if $ac_cs_silent; then
  19949. exec 6>/dev/null
  19950. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19951. fi
  19952. _ACEOF
  19953. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19954. if \$ac_cs_recheck; then
  19955. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19956. shift
  19957. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  19958. CONFIG_SHELL='$SHELL'
  19959. export CONFIG_SHELL
  19960. exec "\$@"
  19961. fi
  19962. _ACEOF
  19963. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19964. exec 5>>config.log
  19965. {
  19966. echo
  19967. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19968. ## Running $as_me. ##
  19969. _ASBOX
  19970. $as_echo "$ac_log"
  19971. } >&5
  19972. _ACEOF
  19973. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19974. #
  19975. # INIT-COMMANDS
  19976. #
  19977. # The HP-UX ksh and POSIX shell print the target directory to stdout
  19978. # if CDPATH is set.
  19979. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19980. sed_quote_subst='$sed_quote_subst'
  19981. double_quote_subst='$double_quote_subst'
  19982. delay_variable_subst='$delay_variable_subst'
  19983. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  19984. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  19985. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  19986. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  19987. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  19988. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  19989. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  19990. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  19991. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  19992. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  19993. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  19994. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  19995. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  19996. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  19997. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  19998. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  19999. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20000. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20001. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20002. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20003. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20004. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20005. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20006. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20007. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20008. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20009. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20010. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20011. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20012. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20013. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20014. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20015. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20016. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20017. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20018. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20019. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20020. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20021. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20022. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20023. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20024. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20025. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20026. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20027. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20028. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20029. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20030. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20031. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20032. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20033. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20034. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20035. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20036. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20037. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  20038. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  20039. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  20040. 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"`'
  20041. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  20042. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  20043. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  20044. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  20045. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  20046. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  20047. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  20048. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  20049. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  20050. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  20051. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  20052. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  20053. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  20054. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  20055. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  20056. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  20057. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  20058. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  20059. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20060. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  20061. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  20062. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  20063. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  20064. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  20065. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  20066. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20067. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  20068. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20069. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  20070. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20071. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  20072. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20073. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20074. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  20075. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  20076. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  20077. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  20078. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  20079. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20080. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  20081. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  20082. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  20083. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  20084. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  20085. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  20086. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  20087. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  20088. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  20089. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  20090. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  20091. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  20092. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  20093. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  20094. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  20095. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20096. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  20097. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  20098. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  20099. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  20100. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  20101. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20102. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20103. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  20104. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  20105. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  20106. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  20107. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  20108. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  20109. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  20110. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  20111. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  20112. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  20113. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  20114. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  20115. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  20116. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  20117. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  20118. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  20119. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  20120. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  20121. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20122. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20123. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20124. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  20125. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  20126. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20127. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  20128. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  20129. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  20130. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  20131. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  20132. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  20133. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20134. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20135. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  20136. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20137. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20138. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20139. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20140. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20141. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20142. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  20143. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20144. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20145. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20146. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  20147. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  20148. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  20149. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  20150. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  20151. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  20152. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  20153. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  20154. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  20155. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20156. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20157. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20158. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20159. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20160. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20161. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  20162. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  20163. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20164. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20165. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  20166. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  20167. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  20168. LTCC='$LTCC'
  20169. LTCFLAGS='$LTCFLAGS'
  20170. compiler='$compiler_DEFAULT'
  20171. # A function that is used when there is no print builtin or printf.
  20172. func_fallback_echo ()
  20173. {
  20174. eval 'cat <<_LTECHO_EOF
  20175. \$1
  20176. _LTECHO_EOF'
  20177. }
  20178. # Quote evaled strings.
  20179. for var in AS \
  20180. DLLTOOL \
  20181. OBJDUMP \
  20182. SHELL \
  20183. ECHO \
  20184. PATH_SEPARATOR \
  20185. SED \
  20186. GREP \
  20187. EGREP \
  20188. FGREP \
  20189. LD \
  20190. NM \
  20191. LN_S \
  20192. lt_SP2NL \
  20193. lt_NL2SP \
  20194. reload_flag \
  20195. deplibs_check_method \
  20196. file_magic_cmd \
  20197. file_magic_glob \
  20198. want_nocaseglob \
  20199. sharedlib_from_linklib_cmd \
  20200. AR \
  20201. AR_FLAGS \
  20202. archiver_list_spec \
  20203. STRIP \
  20204. RANLIB \
  20205. CC \
  20206. CFLAGS \
  20207. compiler \
  20208. lt_cv_sys_global_symbol_pipe \
  20209. lt_cv_sys_global_symbol_to_cdecl \
  20210. lt_cv_sys_global_symbol_to_c_name_address \
  20211. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  20212. nm_file_list_spec \
  20213. lt_prog_compiler_no_builtin_flag \
  20214. lt_prog_compiler_pic \
  20215. lt_prog_compiler_wl \
  20216. lt_prog_compiler_static \
  20217. lt_cv_prog_compiler_c_o \
  20218. need_locks \
  20219. MANIFEST_TOOL \
  20220. DSYMUTIL \
  20221. NMEDIT \
  20222. LIPO \
  20223. OTOOL \
  20224. OTOOL64 \
  20225. shrext_cmds \
  20226. export_dynamic_flag_spec \
  20227. whole_archive_flag_spec \
  20228. compiler_needs_object \
  20229. with_gnu_ld \
  20230. allow_undefined_flag \
  20231. no_undefined_flag \
  20232. hardcode_libdir_flag_spec \
  20233. hardcode_libdir_separator \
  20234. exclude_expsyms \
  20235. include_expsyms \
  20236. file_list_spec \
  20237. variables_saved_for_relink \
  20238. libname_spec \
  20239. library_names_spec \
  20240. soname_spec \
  20241. install_override_mode \
  20242. finish_eval \
  20243. old_striplib \
  20244. striplib \
  20245. compiler_lib_search_dirs \
  20246. predep_objects \
  20247. postdep_objects \
  20248. predeps \
  20249. postdeps \
  20250. compiler_lib_search_path \
  20251. LD_CXX \
  20252. reload_flag_CXX \
  20253. compiler_CXX \
  20254. lt_prog_compiler_no_builtin_flag_CXX \
  20255. lt_prog_compiler_pic_CXX \
  20256. lt_prog_compiler_wl_CXX \
  20257. lt_prog_compiler_static_CXX \
  20258. lt_cv_prog_compiler_c_o_CXX \
  20259. export_dynamic_flag_spec_CXX \
  20260. whole_archive_flag_spec_CXX \
  20261. compiler_needs_object_CXX \
  20262. with_gnu_ld_CXX \
  20263. allow_undefined_flag_CXX \
  20264. no_undefined_flag_CXX \
  20265. hardcode_libdir_flag_spec_CXX \
  20266. hardcode_libdir_separator_CXX \
  20267. exclude_expsyms_CXX \
  20268. include_expsyms_CXX \
  20269. file_list_spec_CXX \
  20270. compiler_lib_search_dirs_CXX \
  20271. predep_objects_CXX \
  20272. postdep_objects_CXX \
  20273. predeps_CXX \
  20274. postdeps_CXX \
  20275. compiler_lib_search_path_CXX; do
  20276. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20277. *[\\\\\\\`\\"\\\$]*)
  20278. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  20279. ;;
  20280. *)
  20281. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20282. ;;
  20283. esac
  20284. done
  20285. # Double-quote double-evaled strings.
  20286. for var in reload_cmds \
  20287. old_postinstall_cmds \
  20288. old_postuninstall_cmds \
  20289. old_archive_cmds \
  20290. extract_expsyms_cmds \
  20291. old_archive_from_new_cmds \
  20292. old_archive_from_expsyms_cmds \
  20293. archive_cmds \
  20294. archive_expsym_cmds \
  20295. module_cmds \
  20296. module_expsym_cmds \
  20297. export_symbols_cmds \
  20298. prelink_cmds \
  20299. postlink_cmds \
  20300. postinstall_cmds \
  20301. postuninstall_cmds \
  20302. finish_cmds \
  20303. sys_lib_search_path_spec \
  20304. sys_lib_dlsearch_path_spec \
  20305. reload_cmds_CXX \
  20306. old_archive_cmds_CXX \
  20307. old_archive_from_new_cmds_CXX \
  20308. old_archive_from_expsyms_cmds_CXX \
  20309. archive_cmds_CXX \
  20310. archive_expsym_cmds_CXX \
  20311. module_cmds_CXX \
  20312. module_expsym_cmds_CXX \
  20313. export_symbols_cmds_CXX \
  20314. prelink_cmds_CXX \
  20315. postlink_cmds_CXX; do
  20316. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20317. *[\\\\\\\`\\"\\\$]*)
  20318. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  20319. ;;
  20320. *)
  20321. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20322. ;;
  20323. esac
  20324. done
  20325. ac_aux_dir='$ac_aux_dir'
  20326. xsi_shell='$xsi_shell'
  20327. lt_shell_append='$lt_shell_append'
  20328. # See if we are running on zsh, and set the options which allow our
  20329. # commands through without removal of \ escapes INIT.
  20330. if test -n "\${ZSH_VERSION+set}" ; then
  20331. setopt NO_GLOB_SUBST
  20332. fi
  20333. PACKAGE='$PACKAGE'
  20334. VERSION='$VERSION'
  20335. TIMESTAMP='$TIMESTAMP'
  20336. RM='$RM'
  20337. ofile='$ofile'
  20338. _ACEOF
  20339. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20340. # Handling of arguments.
  20341. for ac_config_target in $ac_config_targets
  20342. do
  20343. case $ac_config_target in
  20344. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  20345. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  20346. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  20347. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  20348. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  20349. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  20350. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  20351. esac
  20352. done
  20353. # If the user did not use the arguments to specify the items to instantiate,
  20354. # then the envvar interface is used. Set only those that are not.
  20355. # We use the long form for the default assignment because of an extremely
  20356. # bizarre bug on SunOS 4.1.3.
  20357. if $ac_need_defaults; then
  20358. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20359. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20360. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20361. fi
  20362. # Have a temporary directory for convenience. Make it in the build tree
  20363. # simply because there is no reason against having it here, and in addition,
  20364. # creating and moving files from /tmp can sometimes cause problems.
  20365. # Hook for its removal unless debugging.
  20366. # Note that there is a small window in which the directory will not be cleaned:
  20367. # after its creation but before its name has been assigned to `$tmp'.
  20368. $debug ||
  20369. {
  20370. tmp= ac_tmp=
  20371. trap 'exit_status=$?
  20372. : "${ac_tmp:=$tmp}"
  20373. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  20374. ' 0
  20375. trap 'as_fn_exit 1' 1 2 13 15
  20376. }
  20377. # Create a (secure) tmp directory for tmp files.
  20378. {
  20379. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20380. test -d "$tmp"
  20381. } ||
  20382. {
  20383. tmp=./conf$$-$RANDOM
  20384. (umask 077 && mkdir "$tmp")
  20385. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  20386. ac_tmp=$tmp
  20387. # Set up the scripts for CONFIG_FILES section.
  20388. # No need to generate them if there are no CONFIG_FILES.
  20389. # This happens for instance with `./config.status config.h'.
  20390. if test -n "$CONFIG_FILES"; then
  20391. ac_cr=`echo X | tr X '\015'`
  20392. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  20393. # But we know of no other shell where ac_cr would be empty at this
  20394. # point, so we can use a bashism as a fallback.
  20395. if test "x$ac_cr" = x; then
  20396. eval ac_cr=\$\'\\r\'
  20397. fi
  20398. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  20399. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  20400. ac_cs_awk_cr='\\r'
  20401. else
  20402. ac_cs_awk_cr=$ac_cr
  20403. fi
  20404. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  20405. _ACEOF
  20406. {
  20407. echo "cat >conf$$subs.awk <<_ACEOF" &&
  20408. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  20409. echo "_ACEOF"
  20410. } >conf$$subs.sh ||
  20411. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20412. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  20413. ac_delim='%!_!# '
  20414. for ac_last_try in false false false false false :; do
  20415. . ./conf$$subs.sh ||
  20416. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20417. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  20418. if test $ac_delim_n = $ac_delim_num; then
  20419. break
  20420. elif $ac_last_try; then
  20421. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20422. else
  20423. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20424. fi
  20425. done
  20426. rm -f conf$$subs.sh
  20427. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20428. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  20429. _ACEOF
  20430. sed -n '
  20431. h
  20432. s/^/S["/; s/!.*/"]=/
  20433. p
  20434. g
  20435. s/^[^!]*!//
  20436. :repl
  20437. t repl
  20438. s/'"$ac_delim"'$//
  20439. t delim
  20440. :nl
  20441. h
  20442. s/\(.\{148\}\)..*/\1/
  20443. t more1
  20444. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  20445. p
  20446. n
  20447. b repl
  20448. :more1
  20449. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20450. p
  20451. g
  20452. s/.\{148\}//
  20453. t nl
  20454. :delim
  20455. h
  20456. s/\(.\{148\}\)..*/\1/
  20457. t more2
  20458. s/["\\]/\\&/g; s/^/"/; s/$/"/
  20459. p
  20460. b
  20461. :more2
  20462. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20463. p
  20464. g
  20465. s/.\{148\}//
  20466. t delim
  20467. ' <conf$$subs.awk | sed '
  20468. /^[^""]/{
  20469. N
  20470. s/\n//
  20471. }
  20472. ' >>$CONFIG_STATUS || ac_write_fail=1
  20473. rm -f conf$$subs.awk
  20474. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20475. _ACAWK
  20476. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  20477. for (key in S) S_is_set[key] = 1
  20478. FS = ""
  20479. }
  20480. {
  20481. line = $ 0
  20482. nfields = split(line, field, "@")
  20483. substed = 0
  20484. len = length(field[1])
  20485. for (i = 2; i < nfields; i++) {
  20486. key = field[i]
  20487. keylen = length(key)
  20488. if (S_is_set[key]) {
  20489. value = S[key]
  20490. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  20491. len += length(value) + length(field[++i])
  20492. substed = 1
  20493. } else
  20494. len += 1 + keylen
  20495. }
  20496. print line
  20497. }
  20498. _ACAWK
  20499. _ACEOF
  20500. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20501. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  20502. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  20503. else
  20504. cat
  20505. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  20506. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  20507. _ACEOF
  20508. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  20509. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  20510. # trailing colons and then remove the whole line if VPATH becomes empty
  20511. # (actually we leave an empty line to preserve line numbers).
  20512. if test "x$srcdir" = x.; then
  20513. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  20514. h
  20515. s///
  20516. s/^/:/
  20517. s/[ ]*$/:/
  20518. s/:\$(srcdir):/:/g
  20519. s/:\${srcdir}:/:/g
  20520. s/:@srcdir@:/:/g
  20521. s/^:*//
  20522. s/:*$//
  20523. x
  20524. s/\(=[ ]*\).*/\1/
  20525. G
  20526. s/\n//
  20527. s/^[^=]*=[ ]*$//
  20528. }'
  20529. fi
  20530. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20531. fi # test -n "$CONFIG_FILES"
  20532. # Set up the scripts for CONFIG_HEADERS section.
  20533. # No need to generate them if there are no CONFIG_HEADERS.
  20534. # This happens for instance with `./config.status Makefile'.
  20535. if test -n "$CONFIG_HEADERS"; then
  20536. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  20537. BEGIN {
  20538. _ACEOF
  20539. # Transform confdefs.h into an awk script `defines.awk', embedded as
  20540. # here-document in config.status, that substitutes the proper values into
  20541. # config.h.in to produce config.h.
  20542. # Create a delimiter string that does not exist in confdefs.h, to ease
  20543. # handling of long lines.
  20544. ac_delim='%!_!# '
  20545. for ac_last_try in false false :; do
  20546. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  20547. if test -z "$ac_tt"; then
  20548. break
  20549. elif $ac_last_try; then
  20550. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  20551. else
  20552. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20553. fi
  20554. done
  20555. # For the awk script, D is an array of macro values keyed by name,
  20556. # likewise P contains macro parameters if any. Preserve backslash
  20557. # newline sequences.
  20558. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20559. sed -n '
  20560. s/.\{148\}/&'"$ac_delim"'/g
  20561. t rset
  20562. :rset
  20563. s/^[ ]*#[ ]*define[ ][ ]*/ /
  20564. t def
  20565. d
  20566. :def
  20567. s/\\$//
  20568. t bsnl
  20569. s/["\\]/\\&/g
  20570. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20571. D["\1"]=" \3"/p
  20572. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  20573. d
  20574. :bsnl
  20575. s/["\\]/\\&/g
  20576. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20577. D["\1"]=" \3\\\\\\n"\\/p
  20578. t cont
  20579. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  20580. t cont
  20581. d
  20582. :cont
  20583. n
  20584. s/.\{148\}/&'"$ac_delim"'/g
  20585. t clear
  20586. :clear
  20587. s/\\$//
  20588. t bsnlc
  20589. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  20590. d
  20591. :bsnlc
  20592. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  20593. b cont
  20594. ' <confdefs.h | sed '
  20595. s/'"$ac_delim"'/"\\\
  20596. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  20597. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20598. for (key in D) D_is_set[key] = 1
  20599. FS = ""
  20600. }
  20601. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  20602. line = \$ 0
  20603. split(line, arg, " ")
  20604. if (arg[1] == "#") {
  20605. defundef = arg[2]
  20606. mac1 = arg[3]
  20607. } else {
  20608. defundef = substr(arg[1], 2)
  20609. mac1 = arg[2]
  20610. }
  20611. split(mac1, mac2, "(") #)
  20612. macro = mac2[1]
  20613. prefix = substr(line, 1, index(line, defundef) - 1)
  20614. if (D_is_set[macro]) {
  20615. # Preserve the white space surrounding the "#".
  20616. print prefix "define", macro P[macro] D[macro]
  20617. next
  20618. } else {
  20619. # Replace #undef with comments. This is necessary, for example,
  20620. # in the case of _POSIX_SOURCE, which is predefined and required
  20621. # on some systems where configure will not decide to define it.
  20622. if (defundef == "undef") {
  20623. print "/*", prefix defundef, macro, "*/"
  20624. next
  20625. }
  20626. }
  20627. }
  20628. { print }
  20629. _ACAWK
  20630. _ACEOF
  20631. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20632. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  20633. fi # test -n "$CONFIG_HEADERS"
  20634. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  20635. shift
  20636. for ac_tag
  20637. do
  20638. case $ac_tag in
  20639. :[FHLC]) ac_mode=$ac_tag; continue;;
  20640. esac
  20641. case $ac_mode$ac_tag in
  20642. :[FHL]*:*);;
  20643. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  20644. :[FH]-) ac_tag=-:-;;
  20645. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20646. esac
  20647. ac_save_IFS=$IFS
  20648. IFS=:
  20649. set x $ac_tag
  20650. IFS=$ac_save_IFS
  20651. shift
  20652. ac_file=$1
  20653. shift
  20654. case $ac_mode in
  20655. :L) ac_source=$1;;
  20656. :[FH])
  20657. ac_file_inputs=
  20658. for ac_f
  20659. do
  20660. case $ac_f in
  20661. -) ac_f="$ac_tmp/stdin";;
  20662. *) # Look for the file first in the build tree, then in the source tree
  20663. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20664. # because $ac_f cannot contain `:'.
  20665. test -f "$ac_f" ||
  20666. case $ac_f in
  20667. [\\/$]*) false;;
  20668. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20669. esac ||
  20670. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  20671. esac
  20672. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  20673. as_fn_append ac_file_inputs " '$ac_f'"
  20674. done
  20675. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20676. # use $as_me), people would be surprised to read:
  20677. # /* config.h. Generated by config.status. */
  20678. configure_input='Generated from '`
  20679. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  20680. `' by configure.'
  20681. if test x"$ac_file" != x-; then
  20682. configure_input="$ac_file. $configure_input"
  20683. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  20684. $as_echo "$as_me: creating $ac_file" >&6;}
  20685. fi
  20686. # Neutralize special characters interpreted by sed in replacement strings.
  20687. case $configure_input in #(
  20688. *\&* | *\|* | *\\* )
  20689. ac_sed_conf_input=`$as_echo "$configure_input" |
  20690. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  20691. *) ac_sed_conf_input=$configure_input;;
  20692. esac
  20693. case $ac_tag in
  20694. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  20695. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  20696. esac
  20697. ;;
  20698. esac
  20699. ac_dir=`$as_dirname -- "$ac_file" ||
  20700. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20701. X"$ac_file" : 'X\(//\)[^/]' \| \
  20702. X"$ac_file" : 'X\(//\)$' \| \
  20703. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20704. $as_echo X"$ac_file" |
  20705. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20706. s//\1/
  20707. q
  20708. }
  20709. /^X\(\/\/\)[^/].*/{
  20710. s//\1/
  20711. q
  20712. }
  20713. /^X\(\/\/\)$/{
  20714. s//\1/
  20715. q
  20716. }
  20717. /^X\(\/\).*/{
  20718. s//\1/
  20719. q
  20720. }
  20721. s/.*/./; q'`
  20722. as_dir="$ac_dir"; as_fn_mkdir_p
  20723. ac_builddir=.
  20724. case "$ac_dir" in
  20725. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20726. *)
  20727. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  20728. # A ".." for each directory in $ac_dir_suffix.
  20729. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  20730. case $ac_top_builddir_sub in
  20731. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20732. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20733. esac ;;
  20734. esac
  20735. ac_abs_top_builddir=$ac_pwd
  20736. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20737. # for backward compatibility:
  20738. ac_top_builddir=$ac_top_build_prefix
  20739. case $srcdir in
  20740. .) # We are building in place.
  20741. ac_srcdir=.
  20742. ac_top_srcdir=$ac_top_builddir_sub
  20743. ac_abs_top_srcdir=$ac_pwd ;;
  20744. [\\/]* | ?:[\\/]* ) # Absolute name.
  20745. ac_srcdir=$srcdir$ac_dir_suffix;
  20746. ac_top_srcdir=$srcdir
  20747. ac_abs_top_srcdir=$srcdir ;;
  20748. *) # Relative name.
  20749. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20750. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20751. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20752. esac
  20753. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20754. case $ac_mode in
  20755. :F)
  20756. #
  20757. # CONFIG_FILE
  20758. #
  20759. case $INSTALL in
  20760. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20761. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20762. esac
  20763. _ACEOF
  20764. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20765. # If the template does not know about datarootdir, expand it.
  20766. # FIXME: This hack should be removed a few years after 2.60.
  20767. ac_datarootdir_hack=; ac_datarootdir_seen=
  20768. ac_sed_dataroot='
  20769. /datarootdir/ {
  20770. p
  20771. q
  20772. }
  20773. /@datadir@/p
  20774. /@docdir@/p
  20775. /@infodir@/p
  20776. /@localedir@/p
  20777. /@mandir@/p'
  20778. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  20779. *datarootdir*) ac_datarootdir_seen=yes;;
  20780. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20781. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20782. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20783. _ACEOF
  20784. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20785. ac_datarootdir_hack='
  20786. s&@datadir@&$datadir&g
  20787. s&@docdir@&$docdir&g
  20788. s&@infodir@&$infodir&g
  20789. s&@localedir@&$localedir&g
  20790. s&@mandir@&$mandir&g
  20791. s&\\\${datarootdir}&$datarootdir&g' ;;
  20792. esac
  20793. _ACEOF
  20794. # Neutralize VPATH when `$srcdir' = `.'.
  20795. # Shell code in configure.ac might set extrasub.
  20796. # FIXME: do we really want to maintain this feature?
  20797. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20798. ac_sed_extra="$ac_vpsub
  20799. $extrasub
  20800. _ACEOF
  20801. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20802. :t
  20803. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20804. s|@configure_input@|$ac_sed_conf_input|;t t
  20805. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20806. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  20807. s&@srcdir@&$ac_srcdir&;t t
  20808. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20809. s&@top_srcdir@&$ac_top_srcdir&;t t
  20810. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20811. s&@builddir@&$ac_builddir&;t t
  20812. s&@abs_builddir@&$ac_abs_builddir&;t t
  20813. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20814. s&@INSTALL@&$ac_INSTALL&;t t
  20815. $ac_datarootdir_hack
  20816. "
  20817. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  20818. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20819. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20820. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  20821. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  20822. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  20823. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20824. which seems to be undefined. Please make sure it is defined" >&5
  20825. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20826. which seems to be undefined. Please make sure it is defined" >&2;}
  20827. rm -f "$ac_tmp/stdin"
  20828. case $ac_file in
  20829. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  20830. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  20831. esac \
  20832. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20833. ;;
  20834. :H)
  20835. #
  20836. # CONFIG_HEADER
  20837. #
  20838. if test x"$ac_file" != x-; then
  20839. {
  20840. $as_echo "/* $configure_input */" \
  20841. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  20842. } >"$ac_tmp/config.h" \
  20843. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20844. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  20845. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  20846. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  20847. else
  20848. rm -f "$ac_file"
  20849. mv "$ac_tmp/config.h" "$ac_file" \
  20850. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20851. fi
  20852. else
  20853. $as_echo "/* $configure_input */" \
  20854. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  20855. || as_fn_error $? "could not create -" "$LINENO" 5
  20856. fi
  20857. ;;
  20858. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  20859. $as_echo "$as_me: executing $ac_file commands" >&6;}
  20860. ;;
  20861. esac
  20862. case $ac_file$ac_mode in
  20863. "libtool":C)
  20864. # See if we are running on zsh, and set the options which allow our
  20865. # commands through without removal of \ escapes.
  20866. if test -n "${ZSH_VERSION+set}" ; then
  20867. setopt NO_GLOB_SUBST
  20868. fi
  20869. cfgfile="${ofile}T"
  20870. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  20871. $RM "$cfgfile"
  20872. cat <<_LT_EOF >> "$cfgfile"
  20873. #! $SHELL
  20874. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  20875. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  20876. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  20877. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20878. #
  20879. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  20880. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  20881. # Foundation, Inc.
  20882. # Written by Gordon Matzigkeit, 1996
  20883. #
  20884. # This file is part of GNU Libtool.
  20885. #
  20886. # GNU Libtool is free software; you can redistribute it and/or
  20887. # modify it under the terms of the GNU General Public License as
  20888. # published by the Free Software Foundation; either version 2 of
  20889. # the License, or (at your option) any later version.
  20890. #
  20891. # As a special exception to the GNU General Public License,
  20892. # if you distribute this file as part of a program or library that
  20893. # is built using GNU Libtool, you may include this file under the
  20894. # same distribution terms that you use for the rest of that program.
  20895. #
  20896. # GNU Libtool is distributed in the hope that it will be useful,
  20897. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20898. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20899. # GNU General Public License for more details.
  20900. #
  20901. # You should have received a copy of the GNU General Public License
  20902. # along with GNU Libtool; see the file COPYING. If not, a copy
  20903. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  20904. # obtained by writing to the Free Software Foundation, Inc.,
  20905. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20906. # The names of the tagged configurations supported by this script.
  20907. available_tags="CXX "
  20908. # ### BEGIN LIBTOOL CONFIG
  20909. # Which release of libtool.m4 was used?
  20910. macro_version=$macro_version
  20911. macro_revision=$macro_revision
  20912. # Assembler program.
  20913. AS=$lt_AS
  20914. # DLL creation program.
  20915. DLLTOOL=$lt_DLLTOOL
  20916. # Object dumper program.
  20917. OBJDUMP=$lt_OBJDUMP
  20918. # Whether or not to build shared libraries.
  20919. build_libtool_libs=$enable_shared
  20920. # Whether or not to build static libraries.
  20921. build_old_libs=$enable_static
  20922. # What type of objects to build.
  20923. pic_mode=$pic_mode
  20924. # Whether or not to optimize for fast installation.
  20925. fast_install=$enable_fast_install
  20926. # Shell to use when invoking shell scripts.
  20927. SHELL=$lt_SHELL
  20928. # An echo program that protects backslashes.
  20929. ECHO=$lt_ECHO
  20930. # The PATH separator for the build system.
  20931. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  20932. # The host system.
  20933. host_alias=$host_alias
  20934. host=$host
  20935. host_os=$host_os
  20936. # The build system.
  20937. build_alias=$build_alias
  20938. build=$build
  20939. build_os=$build_os
  20940. # A sed program that does not truncate output.
  20941. SED=$lt_SED
  20942. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20943. Xsed="\$SED -e 1s/^X//"
  20944. # A grep program that handles long lines.
  20945. GREP=$lt_GREP
  20946. # An ERE matcher.
  20947. EGREP=$lt_EGREP
  20948. # A literal string matcher.
  20949. FGREP=$lt_FGREP
  20950. # A BSD- or MS-compatible name lister.
  20951. NM=$lt_NM
  20952. # Whether we need soft or hard links.
  20953. LN_S=$lt_LN_S
  20954. # What is the maximum length of a command?
  20955. max_cmd_len=$max_cmd_len
  20956. # Object file suffix (normally "o").
  20957. objext=$ac_objext
  20958. # Executable file suffix (normally "").
  20959. exeext=$exeext
  20960. # whether the shell understands "unset".
  20961. lt_unset=$lt_unset
  20962. # turn spaces into newlines.
  20963. SP2NL=$lt_lt_SP2NL
  20964. # turn newlines into spaces.
  20965. NL2SP=$lt_lt_NL2SP
  20966. # convert \$build file names to \$host format.
  20967. to_host_file_cmd=$lt_cv_to_host_file_cmd
  20968. # convert \$build files to toolchain format.
  20969. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  20970. # Method to check whether dependent libraries are shared objects.
  20971. deplibs_check_method=$lt_deplibs_check_method
  20972. # Command to use when deplibs_check_method = "file_magic".
  20973. file_magic_cmd=$lt_file_magic_cmd
  20974. # How to find potential files when deplibs_check_method = "file_magic".
  20975. file_magic_glob=$lt_file_magic_glob
  20976. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  20977. want_nocaseglob=$lt_want_nocaseglob
  20978. # Command to associate shared and link libraries.
  20979. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  20980. # The archiver.
  20981. AR=$lt_AR
  20982. # Flags to create an archive.
  20983. AR_FLAGS=$lt_AR_FLAGS
  20984. # How to feed a file listing to the archiver.
  20985. archiver_list_spec=$lt_archiver_list_spec
  20986. # A symbol stripping program.
  20987. STRIP=$lt_STRIP
  20988. # Commands used to install an old-style archive.
  20989. RANLIB=$lt_RANLIB
  20990. old_postinstall_cmds=$lt_old_postinstall_cmds
  20991. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20992. # Whether to use a lock for old archive extraction.
  20993. lock_old_archive_extraction=$lock_old_archive_extraction
  20994. # A C compiler.
  20995. LTCC=$lt_CC
  20996. # LTCC compiler flags.
  20997. LTCFLAGS=$lt_CFLAGS
  20998. # Take the output of nm and produce a listing of raw symbols and C names.
  20999. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21000. # Transform the output of nm in a proper C declaration.
  21001. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21002. # Transform the output of nm in a C name address pair.
  21003. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21004. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21005. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21006. # Specify filename containing input files for \$NM.
  21007. nm_file_list_spec=$lt_nm_file_list_spec
  21008. # The root where to search for dependent libraries,and in which our libraries should be installed.
  21009. lt_sysroot=$lt_sysroot
  21010. # The name of the directory that contains temporary libtool files.
  21011. objdir=$objdir
  21012. # Used to examine libraries when file_magic_cmd begins with "file".
  21013. MAGIC_CMD=$MAGIC_CMD
  21014. # Must we lock files when doing compilation?
  21015. need_locks=$lt_need_locks
  21016. # Manifest tool.
  21017. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21018. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21019. DSYMUTIL=$lt_DSYMUTIL
  21020. # Tool to change global to local symbols on Mac OS X.
  21021. NMEDIT=$lt_NMEDIT
  21022. # Tool to manipulate fat objects and archives on Mac OS X.
  21023. LIPO=$lt_LIPO
  21024. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21025. OTOOL=$lt_OTOOL
  21026. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21027. OTOOL64=$lt_OTOOL64
  21028. # Old archive suffix (normally "a").
  21029. libext=$libext
  21030. # Shared library suffix (normally ".so").
  21031. shrext_cmds=$lt_shrext_cmds
  21032. # The commands to extract the exported symbol list from a shared archive.
  21033. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21034. # Variables whose values should be saved in libtool wrapper scripts and
  21035. # restored at link time.
  21036. variables_saved_for_relink=$lt_variables_saved_for_relink
  21037. # Do we need the "lib" prefix for modules?
  21038. need_lib_prefix=$need_lib_prefix
  21039. # Do we need a version for libraries?
  21040. need_version=$need_version
  21041. # Library versioning type.
  21042. version_type=$version_type
  21043. # Shared library runtime path variable.
  21044. runpath_var=$runpath_var
  21045. # Shared library path variable.
  21046. shlibpath_var=$shlibpath_var
  21047. # Is shlibpath searched before the hard-coded library search path?
  21048. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21049. # Format of library name prefix.
  21050. libname_spec=$lt_libname_spec
  21051. # List of archive names. First name is the real one, the rest are links.
  21052. # The last name is the one that the linker finds with -lNAME
  21053. library_names_spec=$lt_library_names_spec
  21054. # The coded name of the library, if different from the real name.
  21055. soname_spec=$lt_soname_spec
  21056. # Permission mode override for installation of shared libraries.
  21057. install_override_mode=$lt_install_override_mode
  21058. # Command to use after installation of a shared archive.
  21059. postinstall_cmds=$lt_postinstall_cmds
  21060. # Command to use after uninstallation of a shared archive.
  21061. postuninstall_cmds=$lt_postuninstall_cmds
  21062. # Commands used to finish a libtool library installation in a directory.
  21063. finish_cmds=$lt_finish_cmds
  21064. # As "finish_cmds", except a single script fragment to be evaled but
  21065. # not shown.
  21066. finish_eval=$lt_finish_eval
  21067. # Whether we should hardcode library paths into libraries.
  21068. hardcode_into_libs=$hardcode_into_libs
  21069. # Compile-time system search path for libraries.
  21070. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21071. # Run-time system search path for libraries.
  21072. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  21073. # Whether dlopen is supported.
  21074. dlopen_support=$enable_dlopen
  21075. # Whether dlopen of programs is supported.
  21076. dlopen_self=$enable_dlopen_self
  21077. # Whether dlopen of statically linked programs is supported.
  21078. dlopen_self_static=$enable_dlopen_self_static
  21079. # Commands to strip libraries.
  21080. old_striplib=$lt_old_striplib
  21081. striplib=$lt_striplib
  21082. # The linker used to build libraries.
  21083. LD=$lt_LD
  21084. # How to create reloadable object files.
  21085. reload_flag=$lt_reload_flag
  21086. reload_cmds=$lt_reload_cmds
  21087. # Commands used to build an old-style archive.
  21088. old_archive_cmds=$lt_old_archive_cmds
  21089. # A language specific compiler.
  21090. CC=$lt_compiler
  21091. # Is the compiler the GNU compiler?
  21092. with_gcc=$GCC
  21093. # Compiler flag to turn off builtin functions.
  21094. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  21095. # Additional compiler flags for building library objects.
  21096. pic_flag=$lt_lt_prog_compiler_pic
  21097. # How to pass a linker flag through the compiler.
  21098. wl=$lt_lt_prog_compiler_wl
  21099. # Compiler flag to prevent dynamic linking.
  21100. link_static_flag=$lt_lt_prog_compiler_static
  21101. # Does compiler simultaneously support -c and -o options?
  21102. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  21103. # Whether or not to add -lc for building shared libraries.
  21104. build_libtool_need_lc=$archive_cmds_need_lc
  21105. # Whether or not to disallow shared libs when runtime libs are static.
  21106. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  21107. # Compiler flag to allow reflexive dlopens.
  21108. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  21109. # Compiler flag to generate shared objects directly from archives.
  21110. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  21111. # Whether the compiler copes with passing no objects directly.
  21112. compiler_needs_object=$lt_compiler_needs_object
  21113. # Create an old-style archive from a shared archive.
  21114. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  21115. # Create a temporary old-style archive to link instead of a shared archive.
  21116. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  21117. # Commands used to build a shared archive.
  21118. archive_cmds=$lt_archive_cmds
  21119. archive_expsym_cmds=$lt_archive_expsym_cmds
  21120. # Commands used to build a loadable module if different from building
  21121. # a shared archive.
  21122. module_cmds=$lt_module_cmds
  21123. module_expsym_cmds=$lt_module_expsym_cmds
  21124. # Whether we are building with GNU ld or not.
  21125. with_gnu_ld=$lt_with_gnu_ld
  21126. # Flag that allows shared libraries with undefined symbols to be built.
  21127. allow_undefined_flag=$lt_allow_undefined_flag
  21128. # Flag that enforces no undefined symbols.
  21129. no_undefined_flag=$lt_no_undefined_flag
  21130. # Flag to hardcode \$libdir into a binary during linking.
  21131. # This must work even if \$libdir does not exist
  21132. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21133. # Whether we need a single "-rpath" flag with a separated argument.
  21134. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21135. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21136. # DIR into the resulting binary.
  21137. hardcode_direct=$hardcode_direct
  21138. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21139. # DIR into the resulting binary and the resulting library dependency is
  21140. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21141. # library is relocated.
  21142. hardcode_direct_absolute=$hardcode_direct_absolute
  21143. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21144. # into the resulting binary.
  21145. hardcode_minus_L=$hardcode_minus_L
  21146. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21147. # into the resulting binary.
  21148. hardcode_shlibpath_var=$hardcode_shlibpath_var
  21149. # Set to "yes" if building a shared library automatically hardcodes DIR
  21150. # into the library and all subsequent libraries and executables linked
  21151. # against it.
  21152. hardcode_automatic=$hardcode_automatic
  21153. # Set to yes if linker adds runtime paths of dependent libraries
  21154. # to runtime path list.
  21155. inherit_rpath=$inherit_rpath
  21156. # Whether libtool must link a program against all its dependency libraries.
  21157. link_all_deplibs=$link_all_deplibs
  21158. # Set to "yes" if exported symbols are required.
  21159. always_export_symbols=$always_export_symbols
  21160. # The commands to list exported symbols.
  21161. export_symbols_cmds=$lt_export_symbols_cmds
  21162. # Symbols that should not be listed in the preloaded symbols.
  21163. exclude_expsyms=$lt_exclude_expsyms
  21164. # Symbols that must always be exported.
  21165. include_expsyms=$lt_include_expsyms
  21166. # Commands necessary for linking programs (against libraries) with templates.
  21167. prelink_cmds=$lt_prelink_cmds
  21168. # Commands necessary for finishing linking programs.
  21169. postlink_cmds=$lt_postlink_cmds
  21170. # Specify filename containing input files.
  21171. file_list_spec=$lt_file_list_spec
  21172. # How to hardcode a shared library path into an executable.
  21173. hardcode_action=$hardcode_action
  21174. # The directories searched by this compiler when creating a shared library.
  21175. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  21176. # Dependencies to place before and after the objects being linked to
  21177. # create a shared library.
  21178. predep_objects=$lt_predep_objects
  21179. postdep_objects=$lt_postdep_objects
  21180. predeps=$lt_predeps
  21181. postdeps=$lt_postdeps
  21182. # The library search path used internally by the compiler when linking
  21183. # a shared library.
  21184. compiler_lib_search_path=$lt_compiler_lib_search_path
  21185. # ### END LIBTOOL CONFIG
  21186. _LT_EOF
  21187. case $host_os in
  21188. aix3*)
  21189. cat <<\_LT_EOF >> "$cfgfile"
  21190. # AIX sometimes has problems with the GCC collect2 program. For some
  21191. # reason, if we set the COLLECT_NAMES environment variable, the problems
  21192. # vanish in a puff of smoke.
  21193. if test "X${COLLECT_NAMES+set}" != Xset; then
  21194. COLLECT_NAMES=
  21195. export COLLECT_NAMES
  21196. fi
  21197. _LT_EOF
  21198. ;;
  21199. esac
  21200. ltmain="$ac_aux_dir/ltmain.sh"
  21201. # We use sed instead of cat because bash on DJGPP gets confused if
  21202. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21203. # text mode, it properly converts lines to CR/LF. This bash problem
  21204. # is reportedly fixed, but why not run on old versions too?
  21205. sed '$q' "$ltmain" >> "$cfgfile" \
  21206. || (rm -f "$cfgfile"; exit 1)
  21207. if test x"$xsi_shell" = xyes; then
  21208. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  21209. func_dirname ()\
  21210. {\
  21211. \ case ${1} in\
  21212. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21213. \ * ) func_dirname_result="${3}" ;;\
  21214. \ esac\
  21215. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  21216. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21217. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21218. test 0 -eq $? || _lt_function_replace_fail=:
  21219. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  21220. func_basename ()\
  21221. {\
  21222. \ func_basename_result="${1##*/}"\
  21223. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21224. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21225. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21226. test 0 -eq $? || _lt_function_replace_fail=:
  21227. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  21228. func_dirname_and_basename ()\
  21229. {\
  21230. \ case ${1} in\
  21231. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21232. \ * ) func_dirname_result="${3}" ;;\
  21233. \ esac\
  21234. \ func_basename_result="${1##*/}"\
  21235. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21236. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21237. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21238. test 0 -eq $? || _lt_function_replace_fail=:
  21239. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  21240. func_stripname ()\
  21241. {\
  21242. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  21243. \ # positional parameters, so assign one to ordinary parameter first.\
  21244. \ func_stripname_result=${3}\
  21245. \ func_stripname_result=${func_stripname_result#"${1}"}\
  21246. \ func_stripname_result=${func_stripname_result%"${2}"}\
  21247. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  21248. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21249. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21250. test 0 -eq $? || _lt_function_replace_fail=:
  21251. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  21252. func_split_long_opt ()\
  21253. {\
  21254. \ func_split_long_opt_name=${1%%=*}\
  21255. \ func_split_long_opt_arg=${1#*=}\
  21256. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  21257. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21258. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21259. test 0 -eq $? || _lt_function_replace_fail=:
  21260. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  21261. func_split_short_opt ()\
  21262. {\
  21263. \ func_split_short_opt_arg=${1#??}\
  21264. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  21265. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  21266. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21267. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21268. test 0 -eq $? || _lt_function_replace_fail=:
  21269. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  21270. func_lo2o ()\
  21271. {\
  21272. \ case ${1} in\
  21273. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  21274. \ *) func_lo2o_result=${1} ;;\
  21275. \ esac\
  21276. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  21277. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21278. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21279. test 0 -eq $? || _lt_function_replace_fail=:
  21280. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  21281. func_xform ()\
  21282. {\
  21283. func_xform_result=${1%.*}.lo\
  21284. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  21285. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21286. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21287. test 0 -eq $? || _lt_function_replace_fail=:
  21288. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  21289. func_arith ()\
  21290. {\
  21291. func_arith_result=$(( $* ))\
  21292. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  21293. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21294. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21295. test 0 -eq $? || _lt_function_replace_fail=:
  21296. sed -e '/^func_len ()$/,/^} # func_len /c\
  21297. func_len ()\
  21298. {\
  21299. func_len_result=${#1}\
  21300. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  21301. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21302. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21303. test 0 -eq $? || _lt_function_replace_fail=:
  21304. fi
  21305. if test x"$lt_shell_append" = xyes; then
  21306. sed -e '/^func_append ()$/,/^} # func_append /c\
  21307. func_append ()\
  21308. {\
  21309. eval "${1}+=\\${2}"\
  21310. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  21311. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21312. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21313. test 0 -eq $? || _lt_function_replace_fail=:
  21314. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  21315. func_append_quoted ()\
  21316. {\
  21317. \ func_quote_for_eval "${2}"\
  21318. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  21319. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  21320. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21321. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21322. test 0 -eq $? || _lt_function_replace_fail=:
  21323. # Save a `func_append' function call where possible by direct use of '+='
  21324. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  21325. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21326. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21327. test 0 -eq $? || _lt_function_replace_fail=:
  21328. else
  21329. # Save a `func_append' function call even when '+=' is not available
  21330. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  21331. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21332. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21333. test 0 -eq $? || _lt_function_replace_fail=:
  21334. fi
  21335. if test x"$_lt_function_replace_fail" = x":"; then
  21336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  21337. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  21338. fi
  21339. mv -f "$cfgfile" "$ofile" ||
  21340. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  21341. chmod +x "$ofile"
  21342. cat <<_LT_EOF >> "$ofile"
  21343. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  21344. # The linker used to build libraries.
  21345. LD=$lt_LD_CXX
  21346. # How to create reloadable object files.
  21347. reload_flag=$lt_reload_flag_CXX
  21348. reload_cmds=$lt_reload_cmds_CXX
  21349. # Commands used to build an old-style archive.
  21350. old_archive_cmds=$lt_old_archive_cmds_CXX
  21351. # A language specific compiler.
  21352. CC=$lt_compiler_CXX
  21353. # Is the compiler the GNU compiler?
  21354. with_gcc=$GCC_CXX
  21355. # Compiler flag to turn off builtin functions.
  21356. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  21357. # Additional compiler flags for building library objects.
  21358. pic_flag=$lt_lt_prog_compiler_pic_CXX
  21359. # How to pass a linker flag through the compiler.
  21360. wl=$lt_lt_prog_compiler_wl_CXX
  21361. # Compiler flag to prevent dynamic linking.
  21362. link_static_flag=$lt_lt_prog_compiler_static_CXX
  21363. # Does compiler simultaneously support -c and -o options?
  21364. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  21365. # Whether or not to add -lc for building shared libraries.
  21366. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  21367. # Whether or not to disallow shared libs when runtime libs are static.
  21368. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  21369. # Compiler flag to allow reflexive dlopens.
  21370. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  21371. # Compiler flag to generate shared objects directly from archives.
  21372. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  21373. # Whether the compiler copes with passing no objects directly.
  21374. compiler_needs_object=$lt_compiler_needs_object_CXX
  21375. # Create an old-style archive from a shared archive.
  21376. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  21377. # Create a temporary old-style archive to link instead of a shared archive.
  21378. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  21379. # Commands used to build a shared archive.
  21380. archive_cmds=$lt_archive_cmds_CXX
  21381. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  21382. # Commands used to build a loadable module if different from building
  21383. # a shared archive.
  21384. module_cmds=$lt_module_cmds_CXX
  21385. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  21386. # Whether we are building with GNU ld or not.
  21387. with_gnu_ld=$lt_with_gnu_ld_CXX
  21388. # Flag that allows shared libraries with undefined symbols to be built.
  21389. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  21390. # Flag that enforces no undefined symbols.
  21391. no_undefined_flag=$lt_no_undefined_flag_CXX
  21392. # Flag to hardcode \$libdir into a binary during linking.
  21393. # This must work even if \$libdir does not exist
  21394. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  21395. # Whether we need a single "-rpath" flag with a separated argument.
  21396. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  21397. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21398. # DIR into the resulting binary.
  21399. hardcode_direct=$hardcode_direct_CXX
  21400. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21401. # DIR into the resulting binary and the resulting library dependency is
  21402. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21403. # library is relocated.
  21404. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  21405. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21406. # into the resulting binary.
  21407. hardcode_minus_L=$hardcode_minus_L_CXX
  21408. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21409. # into the resulting binary.
  21410. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  21411. # Set to "yes" if building a shared library automatically hardcodes DIR
  21412. # into the library and all subsequent libraries and executables linked
  21413. # against it.
  21414. hardcode_automatic=$hardcode_automatic_CXX
  21415. # Set to yes if linker adds runtime paths of dependent libraries
  21416. # to runtime path list.
  21417. inherit_rpath=$inherit_rpath_CXX
  21418. # Whether libtool must link a program against all its dependency libraries.
  21419. link_all_deplibs=$link_all_deplibs_CXX
  21420. # Set to "yes" if exported symbols are required.
  21421. always_export_symbols=$always_export_symbols_CXX
  21422. # The commands to list exported symbols.
  21423. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  21424. # Symbols that should not be listed in the preloaded symbols.
  21425. exclude_expsyms=$lt_exclude_expsyms_CXX
  21426. # Symbols that must always be exported.
  21427. include_expsyms=$lt_include_expsyms_CXX
  21428. # Commands necessary for linking programs (against libraries) with templates.
  21429. prelink_cmds=$lt_prelink_cmds_CXX
  21430. # Commands necessary for finishing linking programs.
  21431. postlink_cmds=$lt_postlink_cmds_CXX
  21432. # Specify filename containing input files.
  21433. file_list_spec=$lt_file_list_spec_CXX
  21434. # How to hardcode a shared library path into an executable.
  21435. hardcode_action=$hardcode_action_CXX
  21436. # The directories searched by this compiler when creating a shared library.
  21437. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  21438. # Dependencies to place before and after the objects being linked to
  21439. # create a shared library.
  21440. predep_objects=$lt_predep_objects_CXX
  21441. postdep_objects=$lt_postdep_objects_CXX
  21442. predeps=$lt_predeps_CXX
  21443. postdeps=$lt_postdeps_CXX
  21444. # The library search path used internally by the compiler when linking
  21445. # a shared library.
  21446. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  21447. # ### END LIBTOOL TAG CONFIG: CXX
  21448. _LT_EOF
  21449. ;;
  21450. esac
  21451. done # for ac_tag
  21452. as_fn_exit 0
  21453. _ACEOF
  21454. ac_clean_files=$ac_clean_files_save
  21455. test $ac_write_fail = 0 ||
  21456. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  21457. # configure is writing to config.log, and then calls config.status.
  21458. # config.status does its own redirection, appending to config.log.
  21459. # Unfortunately, on DOS this fails, as config.log is still kept open
  21460. # by configure, so config.status won't be able to write to it; its
  21461. # output is simply discarded. So we exec the FD to /dev/null,
  21462. # effectively closing config.log, so it can be properly (re)opened and
  21463. # appended to by config.status. When coming back to configure, we
  21464. # need to make the FD available again.
  21465. if test "$no_create" != yes; then
  21466. ac_cs_success=:
  21467. ac_config_status_args=
  21468. test "$silent" = yes &&
  21469. ac_config_status_args="$ac_config_status_args --quiet"
  21470. exec 5>/dev/null
  21471. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21472. exec 5>>config.log
  21473. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21474. # would make configure fail if this is the last instruction.
  21475. $ac_cs_success || as_fn_exit 1
  21476. fi
  21477. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  21478. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  21479. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  21480. fi
  21481. chmod a+x sdl2-config