configure 464 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for libtheora 1.1.1.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. { (exit 1); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$as_shell") 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell [email protected] about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. # Check that we are running under the correct shell.
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. case X$lt_ECHO in
  498. X*--fallback-echo)
  499. # Remove one level of quotation (which was required for Make).
  500. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  501. ;;
  502. esac
  503. ECHO=${lt_ECHO-echo}
  504. if test "X$1" = X--no-reexec; then
  505. # Discard the --no-reexec flag, and continue.
  506. shift
  507. elif test "X$1" = X--fallback-echo; then
  508. # Avoid inline document here, it may be left over
  509. :
  510. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  511. # Yippee, $ECHO works!
  512. :
  513. else
  514. # Restart under the correct shell.
  515. exec $SHELL "$0" --no-reexec ${1+"$@"}
  516. fi
  517. if test "X$1" = X--fallback-echo; then
  518. # used as fallback echo
  519. shift
  520. cat <<_LT_EOF
  521. $*
  522. _LT_EOF
  523. exit 0
  524. fi
  525. # The HP-UX ksh and POSIX shell print the target directory to stdout
  526. # if CDPATH is set.
  527. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  528. if test -z "$lt_ECHO"; then
  529. if test "X${echo_test_string+set}" != Xset; then
  530. # find a string as large as possible, as long as the shell can cope with it
  531. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  532. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  533. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  534. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  535. then
  536. break
  537. fi
  538. done
  539. fi
  540. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  541. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  542. test "X$echo_testing_string" = "X$echo_test_string"; then
  543. :
  544. else
  545. # The Solaris, AIX, and Digital Unix default echo programs unquote
  546. # backslashes. This makes it impossible to quote backslashes using
  547. # echo "$something" | sed 's/\\/\\\\/g'
  548. #
  549. # So, first we look for a working echo in the user's PATH.
  550. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  551. for dir in $PATH /usr/ucb; do
  552. IFS="$lt_save_ifs"
  553. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  554. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. ECHO="$dir/echo"
  558. break
  559. fi
  560. done
  561. IFS="$lt_save_ifs"
  562. if test "X$ECHO" = Xecho; then
  563. # We didn't find a better echo, so look for alternatives.
  564. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  565. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  566. test "X$echo_testing_string" = "X$echo_test_string"; then
  567. # This shell has a builtin print -r that does the trick.
  568. ECHO='print -r'
  569. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  570. test "X$CONFIG_SHELL" != X/bin/ksh; then
  571. # If we have ksh, try running configure again with it.
  572. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  573. export ORIGINAL_CONFIG_SHELL
  574. CONFIG_SHELL=/bin/ksh
  575. export CONFIG_SHELL
  576. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  577. else
  578. # Try using printf.
  579. ECHO='printf %s\n'
  580. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  581. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  582. test "X$echo_testing_string" = "X$echo_test_string"; then
  583. # Cool, printf works
  584. :
  585. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  590. export CONFIG_SHELL
  591. SHELL="$CONFIG_SHELL"
  592. export SHELL
  593. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  594. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  595. test "X$echo_testing_string" = 'X\t' &&
  596. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  597. test "X$echo_testing_string" = "X$echo_test_string"; then
  598. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  599. else
  600. # maybe with a smaller string...
  601. prev=:
  602. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  603. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  604. then
  605. break
  606. fi
  607. prev="$cmd"
  608. done
  609. if test "$prev" != 'sed 50q "$0"'; then
  610. echo_test_string=`eval $prev`
  611. export echo_test_string
  612. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  613. else
  614. # Oops. We lost completely, so just stick with echo.
  615. ECHO=echo
  616. fi
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. # Copy echo and quote the copy suitably for passing to libtool from
  623. # the Makefile, instead of quoting the original, which is used later.
  624. lt_ECHO=$ECHO
  625. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  626. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  627. fi
  628. exec 7<&0 </dev/null 6>&1
  629. # Name of the host.
  630. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  631. # so uname gets run too.
  632. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  633. #
  634. # Initializations.
  635. #
  636. ac_default_prefix=/usr/local
  637. ac_clean_files=
  638. ac_config_libobj_dir=.
  639. LIBOBJS=
  640. cross_compiling=no
  641. subdirs=
  642. MFLAGS=
  643. MAKEFLAGS=
  644. SHELL=${CONFIG_SHELL-/bin/sh}
  645. # Identity of this package.
  646. PACKAGE_NAME='libtheora'
  647. PACKAGE_TARNAME='libtheora'
  648. PACKAGE_VERSION='1.1.1'
  649. PACKAGE_STRING='libtheora 1.1.1'
  650. PACKAGE_BUGREPORT=''
  651. ac_unique_file="lib/fdct.c"
  652. # Factoring default headers for most tests.
  653. ac_includes_default="\
  654. #include <stdio.h>
  655. #ifdef HAVE_SYS_TYPES_H
  656. # include <sys/types.h>
  657. #endif
  658. #ifdef HAVE_SYS_STAT_H
  659. # include <sys/stat.h>
  660. #endif
  661. #ifdef STDC_HEADERS
  662. # include <stdlib.h>
  663. # include <stddef.h>
  664. #else
  665. # ifdef HAVE_STDLIB_H
  666. # include <stdlib.h>
  667. # endif
  668. #endif
  669. #ifdef HAVE_STRING_H
  670. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  671. # include <memory.h>
  672. # endif
  673. # include <string.h>
  674. #endif
  675. #ifdef HAVE_STRINGS_H
  676. # include <strings.h>
  677. #endif
  678. #ifdef HAVE_INTTYPES_H
  679. # include <inttypes.h>
  680. #endif
  681. #ifdef HAVE_STDINT_H
  682. # include <stdint.h>
  683. #endif
  684. #ifdef HAVE_UNISTD_H
  685. # include <unistd.h>
  686. #endif"
  687. ac_subst_vars='DOCDIR
  688. BINDIR
  689. INCLUDEDIR
  690. LIBDIR
  691. LTLIBOBJS
  692. LIBOBJS
  693. PROFILE
  694. DEBUG
  695. BUILDABLE_EXAMPLES
  696. GETOPT_OBJS
  697. THEORA_ENABLE_EXAMPLES_FALSE
  698. THEORA_ENABLE_EXAMPLES_TRUE
  699. THEORA_DISABLE_ENCODE_FALSE
  700. THEORA_DISABLE_ENCODE_TRUE
  701. THEORA_DISABLE_FLOAT_FALSE
  702. THEORA_DISABLE_FLOAT_TRUE
  703. CAIRO_LIBS
  704. CAIRO_CFLAGS
  705. PNG_LIBS
  706. PNG_CFLAGS
  707. OSS_LIBS
  708. SDL_LIBS
  709. SDL_CFLAGS
  710. SDL_CONFIG
  711. VORBISFILE_LIBS
  712. VORBISENC_LIBS
  713. VORBIS_LIBS
  714. VORBIS_CFLAGS
  715. OGG_LIBS
  716. OGG_CFLAGS
  717. PKG_CONFIG
  718. HAVE_PKG_CONFIG
  719. THEORA_LDFLAGS
  720. THEORAENC_LDFLAGS
  721. THEORADEC_LDFLAGS
  722. CPU_x86_32_FALSE
  723. CPU_x86_32_TRUE
  724. CPU_x86_64_FALSE
  725. CPU_x86_64_TRUE
  726. VALGRIND_ENVIRONMENT
  727. HAVE_VALGRIND
  728. BUILD_SPEC_FALSE
  729. BUILD_SPEC_TRUE
  730. HAVE_TRANSFIG
  731. HAVE_BIBTEX
  732. HAVE_PDFLATEX
  733. HAVE_DOXYGEN_FALSE
  734. HAVE_DOXYGEN_TRUE
  735. HAVE_DOXYGEN
  736. ACLOCAL_AMFLAGS
  737. OTOOL64
  738. OTOOL
  739. LIPO
  740. NMEDIT
  741. DSYMUTIL
  742. lt_ECHO
  743. RANLIB
  744. AR
  745. LN_S
  746. NM
  747. ac_ct_DUMPBIN
  748. DUMPBIN
  749. LD
  750. FGREP
  751. EGREP
  752. GREP
  753. SED
  754. LIBTOOL
  755. OBJDUMP
  756. DLLTOOL
  757. AS
  758. CPP
  759. CCDEPMODE
  760. AMDEPBACKSLASH
  761. AMDEP_FALSE
  762. AMDEP_TRUE
  763. am__quote
  764. am__include
  765. DEPDIR
  766. OBJEXT
  767. EXEEXT
  768. ac_ct_CC
  769. CPPFLAGS
  770. LDFLAGS
  771. CFLAGS
  772. CC
  773. THENC_LIB_AGE
  774. THENC_LIB_REVISION
  775. THENC_LIB_CURRENT
  776. THDEC_LIB_AGE
  777. THDEC_LIB_REVISION
  778. THDEC_LIB_CURRENT
  779. TH_LIB_AGE
  780. TH_LIB_REVISION
  781. TH_LIB_CURRENT
  782. MAINT
  783. MAINTAINER_MODE_FALSE
  784. MAINTAINER_MODE_TRUE
  785. SET_MAKE
  786. AWK
  787. INSTALL_STRIP_PROGRAM
  788. STRIP
  789. install_sh
  790. AMTAR
  791. MAKEINFO
  792. AUTOHEADER
  793. AUTOMAKE
  794. AUTOCONF
  795. ACLOCAL
  796. VERSION
  797. PACKAGE
  798. INSTALL_DATA
  799. INSTALL_SCRIPT
  800. INSTALL_PROGRAM
  801. target_os
  802. target_vendor
  803. target_cpu
  804. target
  805. host_os
  806. host_vendor
  807. host_cpu
  808. host
  809. build_os
  810. build_vendor
  811. build_cpu
  812. build
  813. target_alias
  814. host_alias
  815. build_alias
  816. LIBS
  817. ECHO_T
  818. ECHO_N
  819. ECHO_C
  820. DEFS
  821. mandir
  822. localedir
  823. libdir
  824. psdir
  825. pdfdir
  826. dvidir
  827. htmldir
  828. infodir
  829. docdir
  830. oldincludedir
  831. includedir
  832. localstatedir
  833. sharedstatedir
  834. sysconfdir
  835. datadir
  836. datarootdir
  837. libexecdir
  838. sbindir
  839. bindir
  840. program_transform_name
  841. prefix
  842. exec_prefix
  843. PACKAGE_BUGREPORT
  844. PACKAGE_STRING
  845. PACKAGE_VERSION
  846. PACKAGE_TARNAME
  847. PACKAGE_NAME
  848. PATH_SEPARATOR
  849. SHELL'
  850. ac_subst_files=''
  851. ac_user_opts='
  852. enable_option_checking
  853. enable_maintainer_mode
  854. enable_dependency_tracking
  855. enable_shared
  856. enable_static
  857. with_pic
  858. enable_fast_install
  859. with_gnu_ld
  860. enable_libtool_lock
  861. enable_spec
  862. enable_valgrind_testing
  863. enable_asm
  864. with_ogg
  865. with_ogg_libraries
  866. with_ogg_includes
  867. enable_oggtest
  868. with_vorbis
  869. with_vorbis_libraries
  870. with_vorbis_includes
  871. enable_vorbistest
  872. with_sdl_prefix
  873. with_sdl_exec_prefix
  874. enable_sdltest
  875. enable_telemetry
  876. enable_float
  877. enable_encode
  878. enable_examples
  879. '
  880. ac_precious_vars='build_alias
  881. host_alias
  882. target_alias
  883. CC
  884. CFLAGS
  885. LDFLAGS
  886. LIBS
  887. CPPFLAGS
  888. CPP
  889. PKG_CONFIG
  890. OGG_CFLAGS
  891. OGG_LIBS
  892. VORBIS_CFLAGS
  893. VORBIS_LIBS
  894. PNG_CFLAGS
  895. PNG_LIBS
  896. CAIRO_CFLAGS
  897. CAIRO_LIBS'
  898. # Initialize some variables set by options.
  899. ac_init_help=
  900. ac_init_version=false
  901. ac_unrecognized_opts=
  902. ac_unrecognized_sep=
  903. # The variables have the same names as the options, with
  904. # dashes changed to underlines.
  905. cache_file=/dev/null
  906. exec_prefix=NONE
  907. no_create=
  908. no_recursion=
  909. prefix=NONE
  910. program_prefix=NONE
  911. program_suffix=NONE
  912. program_transform_name=s,x,x,
  913. silent=
  914. site=
  915. srcdir=
  916. verbose=
  917. x_includes=NONE
  918. x_libraries=NONE
  919. # Installation directory options.
  920. # These are left unexpanded so users can "make install exec_prefix=/foo"
  921. # and all the variables that are supposed to be based on exec_prefix
  922. # by default will actually change.
  923. # Use braces instead of parens because sh, perl, etc. also accept them.
  924. # (The list follows the same order as the GNU Coding Standards.)
  925. bindir='${exec_prefix}/bin'
  926. sbindir='${exec_prefix}/sbin'
  927. libexecdir='${exec_prefix}/libexec'
  928. datarootdir='${prefix}/share'
  929. datadir='${datarootdir}'
  930. sysconfdir='${prefix}/etc'
  931. sharedstatedir='${prefix}/com'
  932. localstatedir='${prefix}/var'
  933. includedir='${prefix}/include'
  934. oldincludedir='/usr/include'
  935. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  936. infodir='${datarootdir}/info'
  937. htmldir='${docdir}'
  938. dvidir='${docdir}'
  939. pdfdir='${docdir}'
  940. psdir='${docdir}'
  941. libdir='${exec_prefix}/lib'
  942. localedir='${datarootdir}/locale'
  943. mandir='${datarootdir}/man'
  944. ac_prev=
  945. ac_dashdash=
  946. for ac_option
  947. do
  948. # If the previous option needs an argument, assign it.
  949. if test -n "$ac_prev"; then
  950. eval $ac_prev=\$ac_option
  951. ac_prev=
  952. continue
  953. fi
  954. case $ac_option in
  955. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  956. *) ac_optarg=yes ;;
  957. esac
  958. # Accept the important Cygnus configure options, so we can diagnose typos.
  959. case $ac_dashdash$ac_option in
  960. --)
  961. ac_dashdash=yes ;;
  962. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  963. ac_prev=bindir ;;
  964. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  965. bindir=$ac_optarg ;;
  966. -build | --build | --buil | --bui | --bu)
  967. ac_prev=build_alias ;;
  968. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  969. build_alias=$ac_optarg ;;
  970. -cache-file | --cache-file | --cache-fil | --cache-fi \
  971. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  972. ac_prev=cache_file ;;
  973. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  974. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  975. cache_file=$ac_optarg ;;
  976. --config-cache | -C)
  977. cache_file=config.cache ;;
  978. -datadir | --datadir | --datadi | --datad)
  979. ac_prev=datadir ;;
  980. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  981. datadir=$ac_optarg ;;
  982. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  983. | --dataroo | --dataro | --datar)
  984. ac_prev=datarootdir ;;
  985. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  986. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  987. datarootdir=$ac_optarg ;;
  988. -disable-* | --disable-*)
  989. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  990. # Reject names that are not valid shell variable names.
  991. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  992. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  993. { (exit 1); exit 1; }; }
  994. ac_useropt_orig=$ac_useropt
  995. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  996. case $ac_user_opts in
  997. *"
  998. "enable_$ac_useropt"
  999. "*) ;;
  1000. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1001. ac_unrecognized_sep=', ';;
  1002. esac
  1003. eval enable_$ac_useropt=no ;;
  1004. -docdir | --docdir | --docdi | --doc | --do)
  1005. ac_prev=docdir ;;
  1006. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1007. docdir=$ac_optarg ;;
  1008. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1009. ac_prev=dvidir ;;
  1010. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1011. dvidir=$ac_optarg ;;
  1012. -enable-* | --enable-*)
  1013. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1014. # Reject names that are not valid shell variable names.
  1015. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1016. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1017. { (exit 1); exit 1; }; }
  1018. ac_useropt_orig=$ac_useropt
  1019. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1020. case $ac_user_opts in
  1021. *"
  1022. "enable_$ac_useropt"
  1023. "*) ;;
  1024. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1025. ac_unrecognized_sep=', ';;
  1026. esac
  1027. eval enable_$ac_useropt=\$ac_optarg ;;
  1028. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1029. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1030. | --exec | --exe | --ex)
  1031. ac_prev=exec_prefix ;;
  1032. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1033. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1034. | --exec=* | --exe=* | --ex=*)
  1035. exec_prefix=$ac_optarg ;;
  1036. -gas | --gas | --ga | --g)
  1037. # Obsolete; use --with-gas.
  1038. with_gas=yes ;;
  1039. -help | --help | --hel | --he | -h)
  1040. ac_init_help=long ;;
  1041. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1042. ac_init_help=recursive ;;
  1043. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1044. ac_init_help=short ;;
  1045. -host | --host | --hos | --ho)
  1046. ac_prev=host_alias ;;
  1047. -host=* | --host=* | --hos=* | --ho=*)
  1048. host_alias=$ac_optarg ;;
  1049. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1050. ac_prev=htmldir ;;
  1051. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1052. | --ht=*)
  1053. htmldir=$ac_optarg ;;
  1054. -includedir | --includedir | --includedi | --included | --include \
  1055. | --includ | --inclu | --incl | --inc)
  1056. ac_prev=includedir ;;
  1057. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1058. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1059. includedir=$ac_optarg ;;
  1060. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1061. ac_prev=infodir ;;
  1062. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1063. infodir=$ac_optarg ;;
  1064. -libdir | --libdir | --libdi | --libd)
  1065. ac_prev=libdir ;;
  1066. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1067. libdir=$ac_optarg ;;
  1068. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1069. | --libexe | --libex | --libe)
  1070. ac_prev=libexecdir ;;
  1071. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1072. | --libexe=* | --libex=* | --libe=*)
  1073. libexecdir=$ac_optarg ;;
  1074. -localedir | --localedir | --localedi | --localed | --locale)
  1075. ac_prev=localedir ;;
  1076. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1077. localedir=$ac_optarg ;;
  1078. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1079. | --localstate | --localstat | --localsta | --localst | --locals)
  1080. ac_prev=localstatedir ;;
  1081. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1082. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1083. localstatedir=$ac_optarg ;;
  1084. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1085. ac_prev=mandir ;;
  1086. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1087. mandir=$ac_optarg ;;
  1088. -nfp | --nfp | --nf)
  1089. # Obsolete; use --without-fp.
  1090. with_fp=no ;;
  1091. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1092. | --no-cr | --no-c | -n)
  1093. no_create=yes ;;
  1094. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1095. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1096. no_recursion=yes ;;
  1097. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1098. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1099. | --oldin | --oldi | --old | --ol | --o)
  1100. ac_prev=oldincludedir ;;
  1101. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1102. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1103. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1104. oldincludedir=$ac_optarg ;;
  1105. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1106. ac_prev=prefix ;;
  1107. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1108. prefix=$ac_optarg ;;
  1109. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1110. | --program-pre | --program-pr | --program-p)
  1111. ac_prev=program_prefix ;;
  1112. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1113. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1114. program_prefix=$ac_optarg ;;
  1115. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1116. | --program-suf | --program-su | --program-s)
  1117. ac_prev=program_suffix ;;
  1118. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1119. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1120. program_suffix=$ac_optarg ;;
  1121. -program-transform-name | --program-transform-name \
  1122. | --program-transform-nam | --program-transform-na \
  1123. | --program-transform-n | --program-transform- \
  1124. | --program-transform | --program-transfor \
  1125. | --program-transfo | --program-transf \
  1126. | --program-trans | --program-tran \
  1127. | --progr-tra | --program-tr | --program-t)
  1128. ac_prev=program_transform_name ;;
  1129. -program-transform-name=* | --program-transform-name=* \
  1130. | --program-transform-nam=* | --program-transform-na=* \
  1131. | --program-transform-n=* | --program-transform-=* \
  1132. | --program-transform=* | --program-transfor=* \
  1133. | --program-transfo=* | --program-transf=* \
  1134. | --program-trans=* | --program-tran=* \
  1135. | --progr-tra=* | --program-tr=* | --program-t=*)
  1136. program_transform_name=$ac_optarg ;;
  1137. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1138. ac_prev=pdfdir ;;
  1139. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1140. pdfdir=$ac_optarg ;;
  1141. -psdir | --psdir | --psdi | --psd | --ps)
  1142. ac_prev=psdir ;;
  1143. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1144. psdir=$ac_optarg ;;
  1145. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1146. | -silent | --silent | --silen | --sile | --sil)
  1147. silent=yes ;;
  1148. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1149. ac_prev=sbindir ;;
  1150. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1151. | --sbi=* | --sb=*)
  1152. sbindir=$ac_optarg ;;
  1153. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1154. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1155. | --sharedst | --shareds | --shared | --share | --shar \
  1156. | --sha | --sh)
  1157. ac_prev=sharedstatedir ;;
  1158. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1159. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1160. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1161. | --sha=* | --sh=*)
  1162. sharedstatedir=$ac_optarg ;;
  1163. -site | --site | --sit)
  1164. ac_prev=site ;;
  1165. -site=* | --site=* | --sit=*)
  1166. site=$ac_optarg ;;
  1167. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1168. ac_prev=srcdir ;;
  1169. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1170. srcdir=$ac_optarg ;;
  1171. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1172. | --syscon | --sysco | --sysc | --sys | --sy)
  1173. ac_prev=sysconfdir ;;
  1174. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1175. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1176. sysconfdir=$ac_optarg ;;
  1177. -target | --target | --targe | --targ | --tar | --ta | --t)
  1178. ac_prev=target_alias ;;
  1179. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1180. target_alias=$ac_optarg ;;
  1181. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1182. verbose=yes ;;
  1183. -version | --version | --versio | --versi | --vers | -V)
  1184. ac_init_version=: ;;
  1185. -with-* | --with-*)
  1186. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1187. # Reject names that are not valid shell variable names.
  1188. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1189. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1190. { (exit 1); exit 1; }; }
  1191. ac_useropt_orig=$ac_useropt
  1192. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1193. case $ac_user_opts in
  1194. *"
  1195. "with_$ac_useropt"
  1196. "*) ;;
  1197. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1198. ac_unrecognized_sep=', ';;
  1199. esac
  1200. eval with_$ac_useropt=\$ac_optarg ;;
  1201. -without-* | --without-*)
  1202. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1203. # Reject names that are not valid shell variable names.
  1204. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1205. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1206. { (exit 1); exit 1; }; }
  1207. ac_useropt_orig=$ac_useropt
  1208. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1209. case $ac_user_opts in
  1210. *"
  1211. "with_$ac_useropt"
  1212. "*) ;;
  1213. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1214. ac_unrecognized_sep=', ';;
  1215. esac
  1216. eval with_$ac_useropt=no ;;
  1217. --x)
  1218. # Obsolete; use --with-x.
  1219. with_x=yes ;;
  1220. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1221. | --x-incl | --x-inc | --x-in | --x-i)
  1222. ac_prev=x_includes ;;
  1223. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1224. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1225. x_includes=$ac_optarg ;;
  1226. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1227. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1228. ac_prev=x_libraries ;;
  1229. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1230. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1231. x_libraries=$ac_optarg ;;
  1232. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1233. Try \`$0 --help' for more information." >&2
  1234. { (exit 1); exit 1; }; }
  1235. ;;
  1236. *=*)
  1237. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1238. # Reject names that are not valid shell variable names.
  1239. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1240. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1241. { (exit 1); exit 1; }; }
  1242. eval $ac_envvar=\$ac_optarg
  1243. export $ac_envvar ;;
  1244. *)
  1245. # FIXME: should be removed in autoconf 3.0.
  1246. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1247. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1248. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1249. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1250. ;;
  1251. esac
  1252. done
  1253. if test -n "$ac_prev"; then
  1254. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1255. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1256. { (exit 1); exit 1; }; }
  1257. fi
  1258. if test -n "$ac_unrecognized_opts"; then
  1259. case $enable_option_checking in
  1260. no) ;;
  1261. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1262. { (exit 1); exit 1; }; } ;;
  1263. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1264. esac
  1265. fi
  1266. # Check all directory arguments for consistency.
  1267. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1268. datadir sysconfdir sharedstatedir localstatedir includedir \
  1269. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1270. libdir localedir mandir
  1271. do
  1272. eval ac_val=\$$ac_var
  1273. # Remove trailing slashes.
  1274. case $ac_val in
  1275. */ )
  1276. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1277. eval $ac_var=\$ac_val;;
  1278. esac
  1279. # Be sure to have absolute directory names.
  1280. case $ac_val in
  1281. [\\/$]* | ?:[\\/]* ) continue;;
  1282. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1283. esac
  1284. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1285. { (exit 1); exit 1; }; }
  1286. done
  1287. # There might be people who depend on the old broken behavior: `$host'
  1288. # used to hold the argument of --host etc.
  1289. # FIXME: To remove some day.
  1290. build=$build_alias
  1291. host=$host_alias
  1292. target=$target_alias
  1293. # FIXME: To remove some day.
  1294. if test "x$host_alias" != x; then
  1295. if test "x$build_alias" = x; then
  1296. cross_compiling=maybe
  1297. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1298. If a cross compiler is detected then cross compile mode will be used." >&2
  1299. elif test "x$build_alias" != "x$host_alias"; then
  1300. cross_compiling=yes
  1301. fi
  1302. fi
  1303. ac_tool_prefix=
  1304. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1305. test "$silent" = yes && exec 6>/dev/null
  1306. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1307. ac_ls_di=`ls -di .` &&
  1308. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1309. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1310. { (exit 1); exit 1; }; }
  1311. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1312. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1313. { (exit 1); exit 1; }; }
  1314. # Find the source files, if location was not specified.
  1315. if test -z "$srcdir"; then
  1316. ac_srcdir_defaulted=yes
  1317. # Try the directory containing this script, then the parent directory.
  1318. ac_confdir=`$as_dirname -- "$as_myself" ||
  1319. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1320. X"$as_myself" : 'X\(//\)[^/]' \| \
  1321. X"$as_myself" : 'X\(//\)$' \| \
  1322. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1323. $as_echo X"$as_myself" |
  1324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1325. s//\1/
  1326. q
  1327. }
  1328. /^X\(\/\/\)[^/].*/{
  1329. s//\1/
  1330. q
  1331. }
  1332. /^X\(\/\/\)$/{
  1333. s//\1/
  1334. q
  1335. }
  1336. /^X\(\/\).*/{
  1337. s//\1/
  1338. q
  1339. }
  1340. s/.*/./; q'`
  1341. srcdir=$ac_confdir
  1342. if test ! -r "$srcdir/$ac_unique_file"; then
  1343. srcdir=..
  1344. fi
  1345. else
  1346. ac_srcdir_defaulted=no
  1347. fi
  1348. if test ! -r "$srcdir/$ac_unique_file"; then
  1349. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1350. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1351. { (exit 1); exit 1; }; }
  1352. fi
  1353. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1354. ac_abs_confdir=`(
  1355. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1356. { (exit 1); exit 1; }; }
  1357. pwd)`
  1358. # When building in place, set srcdir=.
  1359. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1360. srcdir=.
  1361. fi
  1362. # Remove unnecessary trailing slashes from srcdir.
  1363. # Double slashes in file names in object file debugging info
  1364. # mess up M-x gdb in Emacs.
  1365. case $srcdir in
  1366. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1367. esac
  1368. for ac_var in $ac_precious_vars; do
  1369. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1370. eval ac_env_${ac_var}_value=\$${ac_var}
  1371. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1372. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1373. done
  1374. #
  1375. # Report the --help message.
  1376. #
  1377. if test "$ac_init_help" = "long"; then
  1378. # Omit some internal or obsolete options to make the list less imposing.
  1379. # This message is too long to be a string in the A/UX 3.1 sh.
  1380. cat <<_ACEOF
  1381. \`configure' configures libtheora 1.1.1 to adapt to many kinds of systems.
  1382. Usage: $0 [OPTION]... [VAR=VALUE]...
  1383. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1384. VAR=VALUE. See below for descriptions of some of the useful variables.
  1385. Defaults for the options are specified in brackets.
  1386. Configuration:
  1387. -h, --help display this help and exit
  1388. --help=short display options specific to this package
  1389. --help=recursive display the short help of all the included packages
  1390. -V, --version display version information and exit
  1391. -q, --quiet, --silent do not print \`checking...' messages
  1392. --cache-file=FILE cache test results in FILE [disabled]
  1393. -C, --config-cache alias for \`--cache-file=config.cache'
  1394. -n, --no-create do not create output files
  1395. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1396. Installation directories:
  1397. --prefix=PREFIX install architecture-independent files in PREFIX
  1398. [$ac_default_prefix]
  1399. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1400. [PREFIX]
  1401. By default, \`make install' will install all the files in
  1402. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1403. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1404. for instance \`--prefix=\$HOME'.
  1405. For better control, use the options below.
  1406. Fine tuning of the installation directories:
  1407. --bindir=DIR user executables [EPREFIX/bin]
  1408. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1409. --libexecdir=DIR program executables [EPREFIX/libexec]
  1410. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1411. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1412. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1413. --libdir=DIR object code libraries [EPREFIX/lib]
  1414. --includedir=DIR C header files [PREFIX/include]
  1415. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1416. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1417. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1418. --infodir=DIR info documentation [DATAROOTDIR/info]
  1419. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1420. --mandir=DIR man documentation [DATAROOTDIR/man]
  1421. --docdir=DIR documentation root [DATAROOTDIR/doc/libtheora]
  1422. --htmldir=DIR html documentation [DOCDIR]
  1423. --dvidir=DIR dvi documentation [DOCDIR]
  1424. --pdfdir=DIR pdf documentation [DOCDIR]
  1425. --psdir=DIR ps documentation [DOCDIR]
  1426. _ACEOF
  1427. cat <<\_ACEOF
  1428. Program names:
  1429. --program-prefix=PREFIX prepend PREFIX to installed program names
  1430. --program-suffix=SUFFIX append SUFFIX to installed program names
  1431. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1432. System types:
  1433. --build=BUILD configure for building on BUILD [guessed]
  1434. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1435. --target=TARGET configure for building compilers for TARGET [HOST]
  1436. _ACEOF
  1437. fi
  1438. if test -n "$ac_init_help"; then
  1439. case $ac_init_help in
  1440. short | recursive ) echo "Configuration of libtheora 1.1.1:";;
  1441. esac
  1442. cat <<\_ACEOF
  1443. Optional Features:
  1444. --disable-option-checking ignore unrecognized --enable/--with options
  1445. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1446. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1447. --enable-maintainer-mode enable make rules and dependencies not useful
  1448. (and sometimes confusing) to the casual installer
  1449. --disable-dependency-tracking Speeds up one-time builds
  1450. --enable-dependency-tracking Do not reject slow dependency extractors
  1451. --enable-shared[=PKGS] build shared libraries [default=yes]
  1452. --enable-static[=PKGS] build static libraries [default=yes]
  1453. --enable-fast-install[=PKGS]
  1454. optimize for fast installation [default=yes]
  1455. --disable-libtool-lock avoid locking (might break parallel builds)
  1456. --disable-spec do not build spec
  1457. --enable-valgrind-testing enable running of tests inside Valgrind
  1458. --disable-asm disable assembly optimizations
  1459. --disable-oggtest Do not try to compile and run a test Ogg program
  1460. --disable-vorbistest Do not try to compile and run a test Vorbis program
  1461. --disable-sdltest Do not try to compile and run a test SDL program
  1462. --enable-telemetry enable debugging output controls
  1463. --disable-float disable use of floating point code
  1464. --disable-encode disable encoding support
  1465. --disable-examples disable examples
  1466. Optional Packages:
  1467. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1468. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1469. --with-pic try to use only PIC/non-PIC objects [default=use
  1470. both]
  1471. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1472. --with-ogg=PFX Prefix where libogg is installed (optional)
  1473. --with-ogg-libraries=DIR
  1474. Directory where libogg library is installed
  1475. (optional)
  1476. --with-ogg-includes=DIR Directory where libogg header files are installed
  1477. (optional)
  1478. --with-vorbis=PFX Prefix where libvorbis is installed (optional)
  1479. --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
  1480. --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
  1481. --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
  1482. --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
  1483. Some influential environment variables:
  1484. CC C compiler command
  1485. CFLAGS C compiler flags
  1486. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1487. nonstandard directory <lib dir>
  1488. LIBS libraries to pass to the linker, e.g. -l<library>
  1489. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1490. you have headers in a nonstandard directory <include dir>
  1491. CPP C preprocessor
  1492. PKG_CONFIG path to pkg-config utility
  1493. OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
  1494. OGG_LIBS linker flags for OGG, overriding pkg-config
  1495. VORBIS_CFLAGS
  1496. C compiler flags for VORBIS, overriding pkg-config
  1497. VORBIS_LIBS linker flags for VORBIS, overriding pkg-config
  1498. PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
  1499. PNG_LIBS linker flags for PNG, overriding pkg-config
  1500. CAIRO_CFLAGS
  1501. C compiler flags for CAIRO, overriding pkg-config
  1502. CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
  1503. Use these variables to override the choices made by `configure' or to help
  1504. it to find libraries and programs with nonstandard names/locations.
  1505. _ACEOF
  1506. ac_status=$?
  1507. fi
  1508. if test "$ac_init_help" = "recursive"; then
  1509. # If there are subdirs, report their specific --help.
  1510. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1511. test -d "$ac_dir" ||
  1512. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1513. continue
  1514. ac_builddir=.
  1515. case "$ac_dir" in
  1516. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1517. *)
  1518. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1519. # A ".." for each directory in $ac_dir_suffix.
  1520. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1521. case $ac_top_builddir_sub in
  1522. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1523. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1524. esac ;;
  1525. esac
  1526. ac_abs_top_builddir=$ac_pwd
  1527. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1528. # for backward compatibility:
  1529. ac_top_builddir=$ac_top_build_prefix
  1530. case $srcdir in
  1531. .) # We are building in place.
  1532. ac_srcdir=.
  1533. ac_top_srcdir=$ac_top_builddir_sub
  1534. ac_abs_top_srcdir=$ac_pwd ;;
  1535. [\\/]* | ?:[\\/]* ) # Absolute name.
  1536. ac_srcdir=$srcdir$ac_dir_suffix;
  1537. ac_top_srcdir=$srcdir
  1538. ac_abs_top_srcdir=$srcdir ;;
  1539. *) # Relative name.
  1540. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1541. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1542. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1543. esac
  1544. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1545. cd "$ac_dir" || { ac_status=$?; continue; }
  1546. # Check for guested configure.
  1547. if test -f "$ac_srcdir/configure.gnu"; then
  1548. echo &&
  1549. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1550. elif test -f "$ac_srcdir/configure"; then
  1551. echo &&
  1552. $SHELL "$ac_srcdir/configure" --help=recursive
  1553. else
  1554. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1555. fi || ac_status=$?
  1556. cd "$ac_pwd" || { ac_status=$?; break; }
  1557. done
  1558. fi
  1559. test -n "$ac_init_help" && exit $ac_status
  1560. if $ac_init_version; then
  1561. cat <<\_ACEOF
  1562. libtheora configure 1.1.1
  1563. generated by GNU Autoconf 2.63
  1564. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1565. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1566. This configure script is free software; the Free Software Foundation
  1567. gives unlimited permission to copy, distribute and modify it.
  1568. _ACEOF
  1569. exit
  1570. fi
  1571. cat >config.log <<_ACEOF
  1572. This file contains any messages produced by compilers while
  1573. running configure, to aid debugging if configure makes a mistake.
  1574. It was created by libtheora $as_me 1.1.1, which was
  1575. generated by GNU Autoconf 2.63. Invocation command line was
  1576. $ $0 $@
  1577. _ACEOF
  1578. exec 5>>config.log
  1579. {
  1580. cat <<_ASUNAME
  1581. ## --------- ##
  1582. ## Platform. ##
  1583. ## --------- ##
  1584. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1585. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1586. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1587. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1588. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1589. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1590. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1591. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1592. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1593. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1594. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1595. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1596. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1597. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1598. _ASUNAME
  1599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1600. for as_dir in $PATH
  1601. do
  1602. IFS=$as_save_IFS
  1603. test -z "$as_dir" && as_dir=.
  1604. $as_echo "PATH: $as_dir"
  1605. done
  1606. IFS=$as_save_IFS
  1607. } >&5
  1608. cat >&5 <<_ACEOF
  1609. ## ----------- ##
  1610. ## Core tests. ##
  1611. ## ----------- ##
  1612. _ACEOF
  1613. # Keep a trace of the command line.
  1614. # Strip out --no-create and --no-recursion so they do not pile up.
  1615. # Strip out --silent because we don't want to record it for future runs.
  1616. # Also quote any args containing shell meta-characters.
  1617. # Make two passes to allow for proper duplicate-argument suppression.
  1618. ac_configure_args=
  1619. ac_configure_args0=
  1620. ac_configure_args1=
  1621. ac_must_keep_next=false
  1622. for ac_pass in 1 2
  1623. do
  1624. for ac_arg
  1625. do
  1626. case $ac_arg in
  1627. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1628. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1629. | -silent | --silent | --silen | --sile | --sil)
  1630. continue ;;
  1631. *\'*)
  1632. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1633. esac
  1634. case $ac_pass in
  1635. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1636. 2)
  1637. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1638. if test $ac_must_keep_next = true; then
  1639. ac_must_keep_next=false # Got value, back to normal.
  1640. else
  1641. case $ac_arg in
  1642. *=* | --config-cache | -C | -disable-* | --disable-* \
  1643. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1644. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1645. | -with-* | --with-* | -without-* | --without-* | --x)
  1646. case "$ac_configure_args0 " in
  1647. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1648. esac
  1649. ;;
  1650. -* ) ac_must_keep_next=true ;;
  1651. esac
  1652. fi
  1653. ac_configure_args="$ac_configure_args '$ac_arg'"
  1654. ;;
  1655. esac
  1656. done
  1657. done
  1658. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1659. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1660. # When interrupted or exit'd, cleanup temporary files, and complete
  1661. # config.log. We remove comments because anyway the quotes in there
  1662. # would cause problems or look ugly.
  1663. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1664. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1665. trap 'exit_status=$?
  1666. # Save into config.log some information that might help in debugging.
  1667. {
  1668. echo
  1669. cat <<\_ASBOX
  1670. ## ---------------- ##
  1671. ## Cache variables. ##
  1672. ## ---------------- ##
  1673. _ASBOX
  1674. echo
  1675. # The following way of writing the cache mishandles newlines in values,
  1676. (
  1677. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1678. eval ac_val=\$$ac_var
  1679. case $ac_val in #(
  1680. *${as_nl}*)
  1681. case $ac_var in #(
  1682. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1683. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1684. esac
  1685. case $ac_var in #(
  1686. _ | IFS | as_nl) ;; #(
  1687. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1688. *) $as_unset $ac_var ;;
  1689. esac ;;
  1690. esac
  1691. done
  1692. (set) 2>&1 |
  1693. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1694. *${as_nl}ac_space=\ *)
  1695. sed -n \
  1696. "s/'\''/'\''\\\\'\'''\''/g;
  1697. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1698. ;; #(
  1699. *)
  1700. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1701. ;;
  1702. esac |
  1703. sort
  1704. )
  1705. echo
  1706. cat <<\_ASBOX
  1707. ## ----------------- ##
  1708. ## Output variables. ##
  1709. ## ----------------- ##
  1710. _ASBOX
  1711. echo
  1712. for ac_var in $ac_subst_vars
  1713. do
  1714. eval ac_val=\$$ac_var
  1715. case $ac_val in
  1716. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1717. esac
  1718. $as_echo "$ac_var='\''$ac_val'\''"
  1719. done | sort
  1720. echo
  1721. if test -n "$ac_subst_files"; then
  1722. cat <<\_ASBOX
  1723. ## ------------------- ##
  1724. ## File substitutions. ##
  1725. ## ------------------- ##
  1726. _ASBOX
  1727. echo
  1728. for ac_var in $ac_subst_files
  1729. do
  1730. eval ac_val=\$$ac_var
  1731. case $ac_val in
  1732. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1733. esac
  1734. $as_echo "$ac_var='\''$ac_val'\''"
  1735. done | sort
  1736. echo
  1737. fi
  1738. if test -s confdefs.h; then
  1739. cat <<\_ASBOX
  1740. ## ----------- ##
  1741. ## confdefs.h. ##
  1742. ## ----------- ##
  1743. _ASBOX
  1744. echo
  1745. cat confdefs.h
  1746. echo
  1747. fi
  1748. test "$ac_signal" != 0 &&
  1749. $as_echo "$as_me: caught signal $ac_signal"
  1750. $as_echo "$as_me: exit $exit_status"
  1751. } >&5
  1752. rm -f core *.core core.conftest.* &&
  1753. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1754. exit $exit_status
  1755. ' 0
  1756. for ac_signal in 1 2 13 15; do
  1757. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1758. done
  1759. ac_signal=0
  1760. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1761. rm -f -r conftest* confdefs.h
  1762. # Predefined preprocessor variables.
  1763. cat >>confdefs.h <<_ACEOF
  1764. #define PACKAGE_NAME "$PACKAGE_NAME"
  1765. _ACEOF
  1766. cat >>confdefs.h <<_ACEOF
  1767. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1768. _ACEOF
  1769. cat >>confdefs.h <<_ACEOF
  1770. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1771. _ACEOF
  1772. cat >>confdefs.h <<_ACEOF
  1773. #define PACKAGE_STRING "$PACKAGE_STRING"
  1774. _ACEOF
  1775. cat >>confdefs.h <<_ACEOF
  1776. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1777. _ACEOF
  1778. # Let the site file select an alternate cache file if it wants to.
  1779. # Prefer an explicitly selected file to automatically selected ones.
  1780. ac_site_file1=NONE
  1781. ac_site_file2=NONE
  1782. if test -n "$CONFIG_SITE"; then
  1783. ac_site_file1=$CONFIG_SITE
  1784. elif test "x$prefix" != xNONE; then
  1785. ac_site_file1=$prefix/share/config.site
  1786. ac_site_file2=$prefix/etc/config.site
  1787. else
  1788. ac_site_file1=$ac_default_prefix/share/config.site
  1789. ac_site_file2=$ac_default_prefix/etc/config.site
  1790. fi
  1791. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1792. do
  1793. test "x$ac_site_file" = xNONE && continue
  1794. if test -r "$ac_site_file"; then
  1795. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1796. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1797. sed 's/^/| /' "$ac_site_file" >&5
  1798. . "$ac_site_file"
  1799. fi
  1800. done
  1801. if test -r "$cache_file"; then
  1802. # Some versions of bash will fail to source /dev/null (special
  1803. # files actually), so we avoid doing that.
  1804. if test -f "$cache_file"; then
  1805. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1806. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1807. case $cache_file in
  1808. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1809. *) . "./$cache_file";;
  1810. esac
  1811. fi
  1812. else
  1813. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1814. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1815. >$cache_file
  1816. fi
  1817. # Check that the precious variables saved in the cache have kept the same
  1818. # value.
  1819. ac_cache_corrupted=false
  1820. for ac_var in $ac_precious_vars; do
  1821. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1822. eval ac_new_set=\$ac_env_${ac_var}_set
  1823. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1824. eval ac_new_val=\$ac_env_${ac_var}_value
  1825. case $ac_old_set,$ac_new_set in
  1826. set,)
  1827. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1828. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1829. ac_cache_corrupted=: ;;
  1830. ,set)
  1831. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1832. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1833. ac_cache_corrupted=: ;;
  1834. ,);;
  1835. *)
  1836. if test "x$ac_old_val" != "x$ac_new_val"; then
  1837. # differences in whitespace do not lead to failure.
  1838. ac_old_val_w=`echo x $ac_old_val`
  1839. ac_new_val_w=`echo x $ac_new_val`
  1840. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1841. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1842. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1843. ac_cache_corrupted=:
  1844. else
  1845. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1846. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1847. eval $ac_var=\$ac_old_val
  1848. fi
  1849. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1850. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1851. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1852. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1853. fi;;
  1854. esac
  1855. # Pass precious variables to config.status.
  1856. if test "$ac_new_set" = set; then
  1857. case $ac_new_val in
  1858. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1859. *) ac_arg=$ac_var=$ac_new_val ;;
  1860. esac
  1861. case " $ac_configure_args " in
  1862. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1863. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1864. esac
  1865. fi
  1866. done
  1867. if $ac_cache_corrupted; then
  1868. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1869. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1870. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1871. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1872. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1873. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1874. { (exit 1); exit 1; }; }
  1875. fi
  1876. ac_ext=c
  1877. ac_cpp='$CPP $CPPFLAGS'
  1878. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1879. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1880. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1881. ac_aux_dir=
  1882. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1883. if test -f "$ac_dir/install-sh"; then
  1884. ac_aux_dir=$ac_dir
  1885. ac_install_sh="$ac_aux_dir/install-sh -c"
  1886. break
  1887. elif test -f "$ac_dir/install.sh"; then
  1888. ac_aux_dir=$ac_dir
  1889. ac_install_sh="$ac_aux_dir/install.sh -c"
  1890. break
  1891. elif test -f "$ac_dir/shtool"; then
  1892. ac_aux_dir=$ac_dir
  1893. ac_install_sh="$ac_aux_dir/shtool install -c"
  1894. break
  1895. fi
  1896. done
  1897. if test -z "$ac_aux_dir"; then
  1898. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1899. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1900. { (exit 1); exit 1; }; }
  1901. fi
  1902. # These three variables are undocumented and unsupported,
  1903. # and are intended to be withdrawn in a future Autoconf release.
  1904. # They can cause serious problems if a builder's source tree is in a directory
  1905. # whose full name contains unusual characters.
  1906. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1907. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1908. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1909. # Make sure we can run config.sub.
  1910. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1911. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1912. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1913. { (exit 1); exit 1; }; }
  1914. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  1915. $as_echo_n "checking build system type... " >&6; }
  1916. if test "${ac_cv_build+set}" = set; then
  1917. $as_echo_n "(cached) " >&6
  1918. else
  1919. ac_build_alias=$build_alias
  1920. test "x$ac_build_alias" = x &&
  1921. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1922. test "x$ac_build_alias" = x &&
  1923. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1924. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1925. { (exit 1); exit 1; }; }
  1926. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1927. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1928. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1929. { (exit 1); exit 1; }; }
  1930. fi
  1931. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1932. $as_echo "$ac_cv_build" >&6; }
  1933. case $ac_cv_build in
  1934. *-*-*) ;;
  1935. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1936. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  1937. { (exit 1); exit 1; }; };;
  1938. esac
  1939. build=$ac_cv_build
  1940. ac_save_IFS=$IFS; IFS='-'
  1941. set x $ac_cv_build
  1942. shift
  1943. build_cpu=$1
  1944. build_vendor=$2
  1945. shift; shift
  1946. # Remember, the first character of IFS is used to create $*,
  1947. # except with old shells:
  1948. build_os=$*
  1949. IFS=$ac_save_IFS
  1950. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1951. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  1952. $as_echo_n "checking host system type... " >&6; }
  1953. if test "${ac_cv_host+set}" = set; then
  1954. $as_echo_n "(cached) " >&6
  1955. else
  1956. if test "x$host_alias" = x; then
  1957. ac_cv_host=$ac_cv_build
  1958. else
  1959. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1960. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1961. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1962. { (exit 1); exit 1; }; }
  1963. fi
  1964. fi
  1965. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1966. $as_echo "$ac_cv_host" >&6; }
  1967. case $ac_cv_host in
  1968. *-*-*) ;;
  1969. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1970. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  1971. { (exit 1); exit 1; }; };;
  1972. esac
  1973. host=$ac_cv_host
  1974. ac_save_IFS=$IFS; IFS='-'
  1975. set x $ac_cv_host
  1976. shift
  1977. host_cpu=$1
  1978. host_vendor=$2
  1979. shift; shift
  1980. # Remember, the first character of IFS is used to create $*,
  1981. # except with old shells:
  1982. host_os=$*
  1983. IFS=$ac_save_IFS
  1984. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1985. { $as_echo "$as_me:$LINENO: checking target system type" >&5
  1986. $as_echo_n "checking target system type... " >&6; }
  1987. if test "${ac_cv_target+set}" = set; then
  1988. $as_echo_n "(cached) " >&6
  1989. else
  1990. if test "x$target_alias" = x; then
  1991. ac_cv_target=$ac_cv_host
  1992. else
  1993. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1994. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1995. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1996. { (exit 1); exit 1; }; }
  1997. fi
  1998. fi
  1999. { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  2000. $as_echo "$ac_cv_target" >&6; }
  2001. case $ac_cv_target in
  2002. *-*-*) ;;
  2003. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  2004. $as_echo "$as_me: error: invalid value of canonical target" >&2;}
  2005. { (exit 1); exit 1; }; };;
  2006. esac
  2007. target=$ac_cv_target
  2008. ac_save_IFS=$IFS; IFS='-'
  2009. set x $ac_cv_target
  2010. shift
  2011. target_cpu=$1
  2012. target_vendor=$2
  2013. shift; shift
  2014. # Remember, the first character of IFS is used to create $*,
  2015. # except with old shells:
  2016. target_os=$*
  2017. IFS=$ac_save_IFS
  2018. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2019. # The aliases save the names the user supplied, while $host etc.
  2020. # will get canonicalized.
  2021. test -n "$target_alias" &&
  2022. test "$program_prefix$program_suffix$program_transform_name" = \
  2023. NONENONEs,x,x, &&
  2024. program_prefix=${target_alias}-
  2025. # Add the stamp file to the list of files AC keeps track of,
  2026. # along with our hook.
  2027. ac_config_headers="$ac_config_headers config.h"
  2028. am__api_version="1.6"
  2029. # Find a good install program. We prefer a C program (faster),
  2030. # so one script is as good as another. But avoid the broken or
  2031. # incompatible versions:
  2032. # SysV /etc/install, /usr/sbin/install
  2033. # SunOS /usr/etc/install
  2034. # IRIX /sbin/install
  2035. # AIX /bin/install
  2036. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2037. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2038. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2039. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2040. # OS/2's system install, which has a completely different semantic
  2041. # ./install, which can be erroneously created by make from ./install.sh.
  2042. # Reject install programs that cannot install multiple files.
  2043. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2044. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2045. if test -z "$INSTALL"; then
  2046. if test "${ac_cv_path_install+set}" = set; then
  2047. $as_echo_n "(cached) " >&6
  2048. else
  2049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2050. for as_dir in $PATH
  2051. do
  2052. IFS=$as_save_IFS
  2053. test -z "$as_dir" && as_dir=.
  2054. # Account for people who put trailing slashes in PATH elements.
  2055. case $as_dir/ in
  2056. ./ | .// | /cC/* | \
  2057. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2058. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2059. /usr/ucb/* ) ;;
  2060. *)
  2061. # OSF1 and SCO ODT 3.0 have their own names for install.
  2062. # Don't use installbsd from OSF since it installs stuff as root
  2063. # by default.
  2064. for ac_prog in ginstall scoinst install; do
  2065. for ac_exec_ext in '' $ac_executable_extensions; do
  2066. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2067. if test $ac_prog = install &&
  2068. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2069. # AIX install. It has an incompatible calling convention.
  2070. :
  2071. elif test $ac_prog = install &&
  2072. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2073. # program-specific install script used by HP pwplus--don't use.
  2074. :
  2075. else
  2076. rm -rf conftest.one conftest.two conftest.dir
  2077. echo one > conftest.one
  2078. echo two > conftest.two
  2079. mkdir conftest.dir
  2080. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2081. test -s conftest.one && test -s conftest.two &&
  2082. test -s conftest.dir/conftest.one &&
  2083. test -s conftest.dir/conftest.two
  2084. then
  2085. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2086. break 3
  2087. fi
  2088. fi
  2089. fi
  2090. done
  2091. done
  2092. ;;
  2093. esac
  2094. done
  2095. IFS=$as_save_IFS
  2096. rm -rf conftest.one conftest.two conftest.dir
  2097. fi
  2098. if test "${ac_cv_path_install+set}" = set; then
  2099. INSTALL=$ac_cv_path_install
  2100. else
  2101. # As a last resort, use the slow shell script. Don't cache a
  2102. # value for INSTALL within a source directory, because that will
  2103. # break other packages using the cache if that directory is
  2104. # removed, or if the value is a relative name.
  2105. INSTALL=$ac_install_sh
  2106. fi
  2107. fi
  2108. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2109. $as_echo "$INSTALL" >&6; }
  2110. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2111. # It thinks the first close brace ends the variable substitution.
  2112. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2113. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2114. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2115. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2116. $as_echo_n "checking whether build environment is sane... " >&6; }
  2117. # Just in case
  2118. sleep 1
  2119. echo timestamp > conftest.file
  2120. # Do `set' in a subshell so we don't clobber the current shell's
  2121. # arguments. Must try -L first in case configure is actually a
  2122. # symlink; some systems play weird games with the mod time of symlinks
  2123. # (eg FreeBSD returns the mod time of the symlink's containing
  2124. # directory).
  2125. if (
  2126. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2127. if test "$*" = "X"; then
  2128. # -L didn't work.
  2129. set X `ls -t $srcdir/configure conftest.file`
  2130. fi
  2131. rm -f conftest.file
  2132. if test "$*" != "X $srcdir/configure conftest.file" \
  2133. && test "$*" != "X conftest.file $srcdir/configure"; then
  2134. # If neither matched, then we have a broken ls. This can happen
  2135. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2136. # broken ls alias from the environment. This has actually
  2137. # happened. Such a system could not be considered "sane".
  2138. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2139. alias in your environment" >&5
  2140. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2141. alias in your environment" >&2;}
  2142. { (exit 1); exit 1; }; }
  2143. fi
  2144. test "$2" = conftest.file
  2145. )
  2146. then
  2147. # Ok.
  2148. :
  2149. else
  2150. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2151. Check your system clock" >&5
  2152. $as_echo "$as_me: error: newly created file is older than distributed files!
  2153. Check your system clock" >&2;}
  2154. { (exit 1); exit 1; }; }
  2155. fi
  2156. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2157. $as_echo "yes" >&6; }
  2158. test "$program_prefix" != NONE &&
  2159. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2160. # Use a double $ so make ignores it.
  2161. test "$program_suffix" != NONE &&
  2162. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2163. # Double any \ or $.
  2164. # By default was `s,x,x', remove it if useless.
  2165. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2166. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2167. # expand $ac_aux_dir to an absolute path
  2168. am_aux_dir=`cd $ac_aux_dir && pwd`
  2169. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2170. # Use eval to expand $SHELL
  2171. if eval "$MISSING --run true"; then
  2172. am_missing_run="$MISSING --run "
  2173. else
  2174. am_missing_run=
  2175. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2176. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2177. fi
  2178. for ac_prog in gawk mawk nawk awk
  2179. do
  2180. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2181. set dummy $ac_prog; ac_word=$2
  2182. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2183. $as_echo_n "checking for $ac_word... " >&6; }
  2184. if test "${ac_cv_prog_AWK+set}" = set; then
  2185. $as_echo_n "(cached) " >&6
  2186. else
  2187. if test -n "$AWK"; then
  2188. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2189. else
  2190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2191. for as_dir in $PATH
  2192. do
  2193. IFS=$as_save_IFS
  2194. test -z "$as_dir" && as_dir=.
  2195. for ac_exec_ext in '' $ac_executable_extensions; do
  2196. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2197. ac_cv_prog_AWK="$ac_prog"
  2198. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2199. break 2
  2200. fi
  2201. done
  2202. done
  2203. IFS=$as_save_IFS
  2204. fi
  2205. fi
  2206. AWK=$ac_cv_prog_AWK
  2207. if test -n "$AWK"; then
  2208. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2209. $as_echo "$AWK" >&6; }
  2210. else
  2211. { $as_echo "$as_me:$LINENO: result: no" >&5
  2212. $as_echo "no" >&6; }
  2213. fi
  2214. test -n "$AWK" && break
  2215. done
  2216. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2217. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2218. set x ${MAKE-make}
  2219. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2220. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2221. $as_echo_n "(cached) " >&6
  2222. else
  2223. cat >conftest.make <<\_ACEOF
  2224. SHELL = /bin/sh
  2225. all:
  2226. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2227. _ACEOF
  2228. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2229. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2230. *@@@%%%=?*=@@@%%%*)
  2231. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2232. *)
  2233. eval ac_cv_prog_make_${ac_make}_set=no;;
  2234. esac
  2235. rm -f conftest.make
  2236. fi
  2237. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2238. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2239. $as_echo "yes" >&6; }
  2240. SET_MAKE=
  2241. else
  2242. { $as_echo "$as_me:$LINENO: result: no" >&5
  2243. $as_echo "no" >&6; }
  2244. SET_MAKE="MAKE=${MAKE-make}"
  2245. fi
  2246. # test to see if srcdir already configured
  2247. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2248. test -f $srcdir/config.status; then
  2249. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2250. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2251. { (exit 1); exit 1; }; }
  2252. fi
  2253. # Define the identity of the package.
  2254. PACKAGE=libtheora
  2255. VERSION=1.1.1
  2256. cat >>confdefs.h <<_ACEOF
  2257. #define PACKAGE "$PACKAGE"
  2258. _ACEOF
  2259. cat >>confdefs.h <<_ACEOF
  2260. #define VERSION "$VERSION"
  2261. _ACEOF
  2262. # Some tools Automake needs.
  2263. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2264. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2265. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2266. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2267. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2268. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2269. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2270. # Installed binaries are usually stripped using `strip' when the user
  2271. # run `make install-strip'. However `strip' might not be the right
  2272. # tool to use in cross-compilation environments, therefore Automake
  2273. # will honor the `STRIP' environment variable to overrule this program.
  2274. if test "$cross_compiling" != no; then
  2275. if test -n "$ac_tool_prefix"; then
  2276. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2277. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2278. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2279. $as_echo_n "checking for $ac_word... " >&6; }
  2280. if test "${ac_cv_prog_STRIP+set}" = set; then
  2281. $as_echo_n "(cached) " >&6
  2282. else
  2283. if test -n "$STRIP"; then
  2284. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2285. else
  2286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2287. for as_dir in $PATH
  2288. do
  2289. IFS=$as_save_IFS
  2290. test -z "$as_dir" && as_dir=.
  2291. for ac_exec_ext in '' $ac_executable_extensions; do
  2292. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2293. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2294. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2295. break 2
  2296. fi
  2297. done
  2298. done
  2299. IFS=$as_save_IFS
  2300. fi
  2301. fi
  2302. STRIP=$ac_cv_prog_STRIP
  2303. if test -n "$STRIP"; then
  2304. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2305. $as_echo "$STRIP" >&6; }
  2306. else
  2307. { $as_echo "$as_me:$LINENO: result: no" >&5
  2308. $as_echo "no" >&6; }
  2309. fi
  2310. fi
  2311. if test -z "$ac_cv_prog_STRIP"; then
  2312. ac_ct_STRIP=$STRIP
  2313. # Extract the first word of "strip", so it can be a program name with args.
  2314. set dummy strip; ac_word=$2
  2315. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2316. $as_echo_n "checking for $ac_word... " >&6; }
  2317. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2318. $as_echo_n "(cached) " >&6
  2319. else
  2320. if test -n "$ac_ct_STRIP"; then
  2321. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2322. else
  2323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2324. for as_dir in $PATH
  2325. do
  2326. IFS=$as_save_IFS
  2327. test -z "$as_dir" && as_dir=.
  2328. for ac_exec_ext in '' $ac_executable_extensions; do
  2329. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2330. ac_cv_prog_ac_ct_STRIP="strip"
  2331. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2332. break 2
  2333. fi
  2334. done
  2335. done
  2336. IFS=$as_save_IFS
  2337. fi
  2338. fi
  2339. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2340. if test -n "$ac_ct_STRIP"; then
  2341. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2342. $as_echo "$ac_ct_STRIP" >&6; }
  2343. else
  2344. { $as_echo "$as_me:$LINENO: result: no" >&5
  2345. $as_echo "no" >&6; }
  2346. fi
  2347. if test "x$ac_ct_STRIP" = x; then
  2348. STRIP=":"
  2349. else
  2350. case $cross_compiling:$ac_tool_warned in
  2351. yes:)
  2352. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2353. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2354. ac_tool_warned=yes ;;
  2355. esac
  2356. STRIP=$ac_ct_STRIP
  2357. fi
  2358. else
  2359. STRIP="$ac_cv_prog_STRIP"
  2360. fi
  2361. fi
  2362. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2363. # We need awk for the "check" target. The system "awk" is bad on
  2364. # some platforms.
  2365. { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2366. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2367. # Check whether --enable-maintainer-mode was given.
  2368. if test "${enable_maintainer_mode+set}" = set; then
  2369. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2370. else
  2371. USE_MAINTAINER_MODE=no
  2372. fi
  2373. { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2374. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2375. if test $USE_MAINTAINER_MODE = yes; then
  2376. MAINTAINER_MODE_TRUE=
  2377. MAINTAINER_MODE_FALSE='#'
  2378. else
  2379. MAINTAINER_MODE_TRUE='#'
  2380. MAINTAINER_MODE_FALSE=
  2381. fi
  2382. MAINT=$MAINTAINER_MODE_TRUE
  2383. TH_LIB_CURRENT=3
  2384. TH_LIB_REVISION=10
  2385. TH_LIB_AGE=3
  2386. THDEC_LIB_CURRENT=2
  2387. THDEC_LIB_REVISION=4
  2388. THDEC_LIB_AGE=1
  2389. THENC_LIB_CURRENT=2
  2390. THENC_LIB_REVISION=2
  2391. THENC_LIB_AGE=1
  2392. THEORA_LDFLAGS=""
  2393. cflags_save="$CFLAGS"
  2394. ac_ext=c
  2395. ac_cpp='$CPP $CPPFLAGS'
  2396. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2397. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2398. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2399. if test -n "$ac_tool_prefix"; then
  2400. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2401. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2402. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2403. $as_echo_n "checking for $ac_word... " >&6; }
  2404. if test "${ac_cv_prog_CC+set}" = set; then
  2405. $as_echo_n "(cached) " >&6
  2406. else
  2407. if test -n "$CC"; then
  2408. ac_cv_prog_CC="$CC" # Let the user override the test.
  2409. else
  2410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2411. for as_dir in $PATH
  2412. do
  2413. IFS=$as_save_IFS
  2414. test -z "$as_dir" && as_dir=.
  2415. for ac_exec_ext in '' $ac_executable_extensions; do
  2416. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2417. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2418. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2419. break 2
  2420. fi
  2421. done
  2422. done
  2423. IFS=$as_save_IFS
  2424. fi
  2425. fi
  2426. CC=$ac_cv_prog_CC
  2427. if test -n "$CC"; then
  2428. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2429. $as_echo "$CC" >&6; }
  2430. else
  2431. { $as_echo "$as_me:$LINENO: result: no" >&5
  2432. $as_echo "no" >&6; }
  2433. fi
  2434. fi
  2435. if test -z "$ac_cv_prog_CC"; then
  2436. ac_ct_CC=$CC
  2437. # Extract the first word of "gcc", so it can be a program name with args.
  2438. set dummy gcc; ac_word=$2
  2439. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2440. $as_echo_n "checking for $ac_word... " >&6; }
  2441. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2442. $as_echo_n "(cached) " >&6
  2443. else
  2444. if test -n "$ac_ct_CC"; then
  2445. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2446. else
  2447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2448. for as_dir in $PATH
  2449. do
  2450. IFS=$as_save_IFS
  2451. test -z "$as_dir" && as_dir=.
  2452. for ac_exec_ext in '' $ac_executable_extensions; do
  2453. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2454. ac_cv_prog_ac_ct_CC="gcc"
  2455. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2456. break 2
  2457. fi
  2458. done
  2459. done
  2460. IFS=$as_save_IFS
  2461. fi
  2462. fi
  2463. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2464. if test -n "$ac_ct_CC"; then
  2465. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2466. $as_echo "$ac_ct_CC" >&6; }
  2467. else
  2468. { $as_echo "$as_me:$LINENO: result: no" >&5
  2469. $as_echo "no" >&6; }
  2470. fi
  2471. if test "x$ac_ct_CC" = x; then
  2472. CC=""
  2473. else
  2474. case $cross_compiling:$ac_tool_warned in
  2475. yes:)
  2476. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2477. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2478. ac_tool_warned=yes ;;
  2479. esac
  2480. CC=$ac_ct_CC
  2481. fi
  2482. else
  2483. CC="$ac_cv_prog_CC"
  2484. fi
  2485. if test -z "$CC"; then
  2486. if test -n "$ac_tool_prefix"; then
  2487. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2488. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2489. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2490. $as_echo_n "checking for $ac_word... " >&6; }
  2491. if test "${ac_cv_prog_CC+set}" = set; then
  2492. $as_echo_n "(cached) " >&6
  2493. else
  2494. if test -n "$CC"; then
  2495. ac_cv_prog_CC="$CC" # Let the user override the test.
  2496. else
  2497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2498. for as_dir in $PATH
  2499. do
  2500. IFS=$as_save_IFS
  2501. test -z "$as_dir" && as_dir=.
  2502. for ac_exec_ext in '' $ac_executable_extensions; do
  2503. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2504. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2505. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2506. break 2
  2507. fi
  2508. done
  2509. done
  2510. IFS=$as_save_IFS
  2511. fi
  2512. fi
  2513. CC=$ac_cv_prog_CC
  2514. if test -n "$CC"; then
  2515. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2516. $as_echo "$CC" >&6; }
  2517. else
  2518. { $as_echo "$as_me:$LINENO: result: no" >&5
  2519. $as_echo "no" >&6; }
  2520. fi
  2521. fi
  2522. fi
  2523. if test -z "$CC"; then
  2524. # Extract the first word of "cc", so it can be a program name with args.
  2525. set dummy cc; ac_word=$2
  2526. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2527. $as_echo_n "checking for $ac_word... " >&6; }
  2528. if test "${ac_cv_prog_CC+set}" = set; then
  2529. $as_echo_n "(cached) " >&6
  2530. else
  2531. if test -n "$CC"; then
  2532. ac_cv_prog_CC="$CC" # Let the user override the test.
  2533. else
  2534. ac_prog_rejected=no
  2535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2536. for as_dir in $PATH
  2537. do
  2538. IFS=$as_save_IFS
  2539. test -z "$as_dir" && as_dir=.
  2540. for ac_exec_ext in '' $ac_executable_extensions; do
  2541. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2542. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2543. ac_prog_rejected=yes
  2544. continue
  2545. fi
  2546. ac_cv_prog_CC="cc"
  2547. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2548. break 2
  2549. fi
  2550. done
  2551. done
  2552. IFS=$as_save_IFS
  2553. if test $ac_prog_rejected = yes; then
  2554. # We found a bogon in the path, so make sure we never use it.
  2555. set dummy $ac_cv_prog_CC
  2556. shift
  2557. if test $# != 0; then
  2558. # We chose a different compiler from the bogus one.
  2559. # However, it has the same basename, so the bogon will be chosen
  2560. # first if we set CC to just the basename; use the full file name.
  2561. shift
  2562. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2563. fi
  2564. fi
  2565. fi
  2566. fi
  2567. CC=$ac_cv_prog_CC
  2568. if test -n "$CC"; then
  2569. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2570. $as_echo "$CC" >&6; }
  2571. else
  2572. { $as_echo "$as_me:$LINENO: result: no" >&5
  2573. $as_echo "no" >&6; }
  2574. fi
  2575. fi
  2576. if test -z "$CC"; then
  2577. if test -n "$ac_tool_prefix"; then
  2578. for ac_prog in cl.exe
  2579. do
  2580. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2581. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2582. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2583. $as_echo_n "checking for $ac_word... " >&6; }
  2584. if test "${ac_cv_prog_CC+set}" = set; then
  2585. $as_echo_n "(cached) " >&6
  2586. else
  2587. if test -n "$CC"; then
  2588. ac_cv_prog_CC="$CC" # Let the user override the test.
  2589. else
  2590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2591. for as_dir in $PATH
  2592. do
  2593. IFS=$as_save_IFS
  2594. test -z "$as_dir" && as_dir=.
  2595. for ac_exec_ext in '' $ac_executable_extensions; do
  2596. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2597. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2598. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2599. break 2
  2600. fi
  2601. done
  2602. done
  2603. IFS=$as_save_IFS
  2604. fi
  2605. fi
  2606. CC=$ac_cv_prog_CC
  2607. if test -n "$CC"; then
  2608. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2609. $as_echo "$CC" >&6; }
  2610. else
  2611. { $as_echo "$as_me:$LINENO: result: no" >&5
  2612. $as_echo "no" >&6; }
  2613. fi
  2614. test -n "$CC" && break
  2615. done
  2616. fi
  2617. if test -z "$CC"; then
  2618. ac_ct_CC=$CC
  2619. for ac_prog in cl.exe
  2620. do
  2621. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2622. set dummy $ac_prog; ac_word=$2
  2623. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2624. $as_echo_n "checking for $ac_word... " >&6; }
  2625. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2626. $as_echo_n "(cached) " >&6
  2627. else
  2628. if test -n "$ac_ct_CC"; then
  2629. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2630. else
  2631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2632. for as_dir in $PATH
  2633. do
  2634. IFS=$as_save_IFS
  2635. test -z "$as_dir" && as_dir=.
  2636. for ac_exec_ext in '' $ac_executable_extensions; do
  2637. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2638. ac_cv_prog_ac_ct_CC="$ac_prog"
  2639. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2640. break 2
  2641. fi
  2642. done
  2643. done
  2644. IFS=$as_save_IFS
  2645. fi
  2646. fi
  2647. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2648. if test -n "$ac_ct_CC"; then
  2649. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2650. $as_echo "$ac_ct_CC" >&6; }
  2651. else
  2652. { $as_echo "$as_me:$LINENO: result: no" >&5
  2653. $as_echo "no" >&6; }
  2654. fi
  2655. test -n "$ac_ct_CC" && break
  2656. done
  2657. if test "x$ac_ct_CC" = x; then
  2658. CC=""
  2659. else
  2660. case $cross_compiling:$ac_tool_warned in
  2661. yes:)
  2662. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2663. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2664. ac_tool_warned=yes ;;
  2665. esac
  2666. CC=$ac_ct_CC
  2667. fi
  2668. fi
  2669. fi
  2670. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2671. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2672. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2673. See \`config.log' for more details." >&5
  2674. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2675. See \`config.log' for more details." >&2;}
  2676. { (exit 1); exit 1; }; }; }
  2677. # Provide some information about the compiler.
  2678. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2679. set X $ac_compile
  2680. ac_compiler=$2
  2681. { (ac_try="$ac_compiler --version >&5"
  2682. case "(($ac_try" in
  2683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2684. *) ac_try_echo=$ac_try;;
  2685. esac
  2686. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2687. $as_echo "$ac_try_echo") >&5
  2688. (eval "$ac_compiler --version >&5") 2>&5
  2689. ac_status=$?
  2690. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2691. (exit $ac_status); }
  2692. { (ac_try="$ac_compiler -v >&5"
  2693. case "(($ac_try" in
  2694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2695. *) ac_try_echo=$ac_try;;
  2696. esac
  2697. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2698. $as_echo "$ac_try_echo") >&5
  2699. (eval "$ac_compiler -v >&5") 2>&5
  2700. ac_status=$?
  2701. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2702. (exit $ac_status); }
  2703. { (ac_try="$ac_compiler -V >&5"
  2704. case "(($ac_try" in
  2705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2706. *) ac_try_echo=$ac_try;;
  2707. esac
  2708. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2709. $as_echo "$ac_try_echo") >&5
  2710. (eval "$ac_compiler -V >&5") 2>&5
  2711. ac_status=$?
  2712. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2713. (exit $ac_status); }
  2714. cat >conftest.$ac_ext <<_ACEOF
  2715. /* confdefs.h. */
  2716. _ACEOF
  2717. cat confdefs.h >>conftest.$ac_ext
  2718. cat >>conftest.$ac_ext <<_ACEOF
  2719. /* end confdefs.h. */
  2720. int
  2721. main ()
  2722. {
  2723. ;
  2724. return 0;
  2725. }
  2726. _ACEOF
  2727. ac_clean_files_save=$ac_clean_files
  2728. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2729. # Try to create an executable without -o first, disregard a.out.
  2730. # It will help us diagnose broken compilers, and finding out an intuition
  2731. # of exeext.
  2732. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2733. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2734. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2735. # The possible output files:
  2736. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2737. ac_rmfiles=
  2738. for ac_file in $ac_files
  2739. do
  2740. case $ac_file in
  2741. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2742. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2743. esac
  2744. done
  2745. rm -f $ac_rmfiles
  2746. if { (ac_try="$ac_link_default"
  2747. case "(($ac_try" in
  2748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2749. *) ac_try_echo=$ac_try;;
  2750. esac
  2751. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2752. $as_echo "$ac_try_echo") >&5
  2753. (eval "$ac_link_default") 2>&5
  2754. ac_status=$?
  2755. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2756. (exit $ac_status); }; then
  2757. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2758. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2759. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2760. # so that the user can short-circuit this test for compilers unknown to
  2761. # Autoconf.
  2762. for ac_file in $ac_files ''
  2763. do
  2764. test -f "$ac_file" || continue
  2765. case $ac_file in
  2766. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2767. ;;
  2768. [ab].out )
  2769. # We found the default executable, but exeext='' is most
  2770. # certainly right.
  2771. break;;
  2772. *.* )
  2773. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2774. then :; else
  2775. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2776. fi
  2777. # We set ac_cv_exeext here because the later test for it is not
  2778. # safe: cross compilers may not add the suffix if given an `-o'
  2779. # argument, so we may need to know it at that point already.
  2780. # Even if this section looks crufty: it has the advantage of
  2781. # actually working.
  2782. break;;
  2783. * )
  2784. break;;
  2785. esac
  2786. done
  2787. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2788. else
  2789. ac_file=''
  2790. fi
  2791. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2792. $as_echo "$ac_file" >&6; }
  2793. if test -z "$ac_file"; then
  2794. $as_echo "$as_me: failed program was:" >&5
  2795. sed 's/^/| /' conftest.$ac_ext >&5
  2796. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2797. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2798. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2799. See \`config.log' for more details." >&5
  2800. $as_echo "$as_me: error: C compiler cannot create executables
  2801. See \`config.log' for more details." >&2;}
  2802. { (exit 77); exit 77; }; }; }
  2803. fi
  2804. ac_exeext=$ac_cv_exeext
  2805. # Check that the compiler produces executables we can run. If not, either
  2806. # the compiler is broken, or we cross compile.
  2807. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2808. $as_echo_n "checking whether the C compiler works... " >&6; }
  2809. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2810. # If not cross compiling, check that we can run a simple program.
  2811. if test "$cross_compiling" != yes; then
  2812. if { ac_try='./$ac_file'
  2813. { (case "(($ac_try" in
  2814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2815. *) ac_try_echo=$ac_try;;
  2816. esac
  2817. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2818. $as_echo "$ac_try_echo") >&5
  2819. (eval "$ac_try") 2>&5
  2820. ac_status=$?
  2821. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2822. (exit $ac_status); }; }; then
  2823. cross_compiling=no
  2824. else
  2825. if test "$cross_compiling" = maybe; then
  2826. cross_compiling=yes
  2827. else
  2828. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2829. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2830. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2831. If you meant to cross compile, use \`--host'.
  2832. See \`config.log' for more details." >&5
  2833. $as_echo "$as_me: error: cannot run C compiled programs.
  2834. If you meant to cross compile, use \`--host'.
  2835. See \`config.log' for more details." >&2;}
  2836. { (exit 1); exit 1; }; }; }
  2837. fi
  2838. fi
  2839. fi
  2840. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2841. $as_echo "yes" >&6; }
  2842. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2843. ac_clean_files=$ac_clean_files_save
  2844. # Check that the compiler produces executables we can run. If not, either
  2845. # the compiler is broken, or we cross compile.
  2846. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2847. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2848. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2849. $as_echo "$cross_compiling" >&6; }
  2850. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2851. $as_echo_n "checking for suffix of executables... " >&6; }
  2852. if { (ac_try="$ac_link"
  2853. case "(($ac_try" in
  2854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2855. *) ac_try_echo=$ac_try;;
  2856. esac
  2857. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2858. $as_echo "$ac_try_echo") >&5
  2859. (eval "$ac_link") 2>&5
  2860. ac_status=$?
  2861. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2862. (exit $ac_status); }; then
  2863. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2864. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2865. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2866. # `rm'.
  2867. for ac_file in conftest.exe conftest conftest.*; do
  2868. test -f "$ac_file" || continue
  2869. case $ac_file in
  2870. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2871. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2872. break;;
  2873. * ) break;;
  2874. esac
  2875. done
  2876. else
  2877. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2878. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2879. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2880. See \`config.log' for more details." >&5
  2881. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2882. See \`config.log' for more details." >&2;}
  2883. { (exit 1); exit 1; }; }; }
  2884. fi
  2885. rm -f conftest$ac_cv_exeext
  2886. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2887. $as_echo "$ac_cv_exeext" >&6; }
  2888. rm -f conftest.$ac_ext
  2889. EXEEXT=$ac_cv_exeext
  2890. ac_exeext=$EXEEXT
  2891. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2892. $as_echo_n "checking for suffix of object files... " >&6; }
  2893. if test "${ac_cv_objext+set}" = set; then
  2894. $as_echo_n "(cached) " >&6
  2895. else
  2896. cat >conftest.$ac_ext <<_ACEOF
  2897. /* confdefs.h. */
  2898. _ACEOF
  2899. cat confdefs.h >>conftest.$ac_ext
  2900. cat >>conftest.$ac_ext <<_ACEOF
  2901. /* end confdefs.h. */
  2902. int
  2903. main ()
  2904. {
  2905. ;
  2906. return 0;
  2907. }
  2908. _ACEOF
  2909. rm -f conftest.o conftest.obj
  2910. if { (ac_try="$ac_compile"
  2911. case "(($ac_try" in
  2912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2913. *) ac_try_echo=$ac_try;;
  2914. esac
  2915. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2916. $as_echo "$ac_try_echo") >&5
  2917. (eval "$ac_compile") 2>&5
  2918. ac_status=$?
  2919. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2920. (exit $ac_status); }; then
  2921. for ac_file in conftest.o conftest.obj conftest.*; do
  2922. test -f "$ac_file" || continue;
  2923. case $ac_file in
  2924. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2925. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2926. break;;
  2927. esac
  2928. done
  2929. else
  2930. $as_echo "$as_me: failed program was:" >&5
  2931. sed 's/^/| /' conftest.$ac_ext >&5
  2932. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2933. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2934. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2935. See \`config.log' for more details." >&5
  2936. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2937. See \`config.log' for more details." >&2;}
  2938. { (exit 1); exit 1; }; }; }
  2939. fi
  2940. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2941. fi
  2942. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2943. $as_echo "$ac_cv_objext" >&6; }
  2944. OBJEXT=$ac_cv_objext
  2945. ac_objext=$OBJEXT
  2946. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2947. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2948. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2949. $as_echo_n "(cached) " >&6
  2950. else
  2951. cat >conftest.$ac_ext <<_ACEOF
  2952. /* confdefs.h. */
  2953. _ACEOF
  2954. cat confdefs.h >>conftest.$ac_ext
  2955. cat >>conftest.$ac_ext <<_ACEOF
  2956. /* end confdefs.h. */
  2957. int
  2958. main ()
  2959. {
  2960. #ifndef __GNUC__
  2961. choke me
  2962. #endif
  2963. ;
  2964. return 0;
  2965. }
  2966. _ACEOF
  2967. rm -f conftest.$ac_objext
  2968. if { (ac_try="$ac_compile"
  2969. case "(($ac_try" in
  2970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2971. *) ac_try_echo=$ac_try;;
  2972. esac
  2973. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2974. $as_echo "$ac_try_echo") >&5
  2975. (eval "$ac_compile") 2>conftest.er1
  2976. ac_status=$?
  2977. grep -v '^ *+' conftest.er1 >conftest.err
  2978. rm -f conftest.er1
  2979. cat conftest.err >&5
  2980. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2981. (exit $ac_status); } && {
  2982. test -z "$ac_c_werror_flag" ||
  2983. test ! -s conftest.err
  2984. } && test -s conftest.$ac_objext; then
  2985. ac_compiler_gnu=yes
  2986. else
  2987. $as_echo "$as_me: failed program was:" >&5
  2988. sed 's/^/| /' conftest.$ac_ext >&5
  2989. ac_compiler_gnu=no
  2990. fi
  2991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2992. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2993. fi
  2994. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2995. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2996. if test $ac_compiler_gnu = yes; then
  2997. GCC=yes
  2998. else
  2999. GCC=
  3000. fi
  3001. ac_test_CFLAGS=${CFLAGS+set}
  3002. ac_save_CFLAGS=$CFLAGS
  3003. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3004. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3005. if test "${ac_cv_prog_cc_g+set}" = set; then
  3006. $as_echo_n "(cached) " >&6
  3007. else
  3008. ac_save_c_werror_flag=$ac_c_werror_flag
  3009. ac_c_werror_flag=yes
  3010. ac_cv_prog_cc_g=no
  3011. CFLAGS="-g"
  3012. cat >conftest.$ac_ext <<_ACEOF
  3013. /* confdefs.h. */
  3014. _ACEOF
  3015. cat confdefs.h >>conftest.$ac_ext
  3016. cat >>conftest.$ac_ext <<_ACEOF
  3017. /* end confdefs.h. */
  3018. int
  3019. main ()
  3020. {
  3021. ;
  3022. return 0;
  3023. }
  3024. _ACEOF
  3025. rm -f conftest.$ac_objext
  3026. if { (ac_try="$ac_compile"
  3027. case "(($ac_try" in
  3028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3029. *) ac_try_echo=$ac_try;;
  3030. esac
  3031. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3032. $as_echo "$ac_try_echo") >&5
  3033. (eval "$ac_compile") 2>conftest.er1
  3034. ac_status=$?
  3035. grep -v '^ *+' conftest.er1 >conftest.err
  3036. rm -f conftest.er1
  3037. cat conftest.err >&5
  3038. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3039. (exit $ac_status); } && {
  3040. test -z "$ac_c_werror_flag" ||
  3041. test ! -s conftest.err
  3042. } && test -s conftest.$ac_objext; then
  3043. ac_cv_prog_cc_g=yes
  3044. else
  3045. $as_echo "$as_me: failed program was:" >&5
  3046. sed 's/^/| /' conftest.$ac_ext >&5
  3047. CFLAGS=""
  3048. cat >conftest.$ac_ext <<_ACEOF
  3049. /* confdefs.h. */
  3050. _ACEOF
  3051. cat confdefs.h >>conftest.$ac_ext
  3052. cat >>conftest.$ac_ext <<_ACEOF
  3053. /* end confdefs.h. */
  3054. int
  3055. main ()
  3056. {
  3057. ;
  3058. return 0;
  3059. }
  3060. _ACEOF
  3061. rm -f conftest.$ac_objext
  3062. if { (ac_try="$ac_compile"
  3063. case "(($ac_try" in
  3064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3065. *) ac_try_echo=$ac_try;;
  3066. esac
  3067. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3068. $as_echo "$ac_try_echo") >&5
  3069. (eval "$ac_compile") 2>conftest.er1
  3070. ac_status=$?
  3071. grep -v '^ *+' conftest.er1 >conftest.err
  3072. rm -f conftest.er1
  3073. cat conftest.err >&5
  3074. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3075. (exit $ac_status); } && {
  3076. test -z "$ac_c_werror_flag" ||
  3077. test ! -s conftest.err
  3078. } && test -s conftest.$ac_objext; then
  3079. :
  3080. else
  3081. $as_echo "$as_me: failed program was:" >&5
  3082. sed 's/^/| /' conftest.$ac_ext >&5
  3083. ac_c_werror_flag=$ac_save_c_werror_flag
  3084. CFLAGS="-g"
  3085. cat >conftest.$ac_ext <<_ACEOF
  3086. /* confdefs.h. */
  3087. _ACEOF
  3088. cat confdefs.h >>conftest.$ac_ext
  3089. cat >>conftest.$ac_ext <<_ACEOF
  3090. /* end confdefs.h. */
  3091. int
  3092. main ()
  3093. {
  3094. ;
  3095. return 0;
  3096. }
  3097. _ACEOF
  3098. rm -f conftest.$ac_objext
  3099. if { (ac_try="$ac_compile"
  3100. case "(($ac_try" in
  3101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3102. *) ac_try_echo=$ac_try;;
  3103. esac
  3104. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3105. $as_echo "$ac_try_echo") >&5
  3106. (eval "$ac_compile") 2>conftest.er1
  3107. ac_status=$?
  3108. grep -v '^ *+' conftest.er1 >conftest.err
  3109. rm -f conftest.er1
  3110. cat conftest.err >&5
  3111. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3112. (exit $ac_status); } && {
  3113. test -z "$ac_c_werror_flag" ||
  3114. test ! -s conftest.err
  3115. } && test -s conftest.$ac_objext; then
  3116. ac_cv_prog_cc_g=yes
  3117. else
  3118. $as_echo "$as_me: failed program was:" >&5
  3119. sed 's/^/| /' conftest.$ac_ext >&5
  3120. fi
  3121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3122. fi
  3123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3124. fi
  3125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3126. ac_c_werror_flag=$ac_save_c_werror_flag
  3127. fi
  3128. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3129. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3130. if test "$ac_test_CFLAGS" = set; then
  3131. CFLAGS=$ac_save_CFLAGS
  3132. elif test $ac_cv_prog_cc_g = yes; then
  3133. if test "$GCC" = yes; then
  3134. CFLAGS="-g -O2"
  3135. else
  3136. CFLAGS="-g"
  3137. fi
  3138. else
  3139. if test "$GCC" = yes; then
  3140. CFLAGS="-O2"
  3141. else
  3142. CFLAGS=
  3143. fi
  3144. fi
  3145. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3146. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3147. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3148. $as_echo_n "(cached) " >&6
  3149. else
  3150. ac_cv_prog_cc_c89=no
  3151. ac_save_CC=$CC
  3152. cat >conftest.$ac_ext <<_ACEOF
  3153. /* confdefs.h. */
  3154. _ACEOF
  3155. cat confdefs.h >>conftest.$ac_ext
  3156. cat >>conftest.$ac_ext <<_ACEOF
  3157. /* end confdefs.h. */
  3158. #include <stdarg.h>
  3159. #include <stdio.h>
  3160. #include <sys/types.h>
  3161. #include <sys/stat.h>
  3162. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3163. struct buf { int x; };
  3164. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3165. static char *e (p, i)
  3166. char **p;
  3167. int i;
  3168. {
  3169. return p[i];
  3170. }
  3171. static char *f (char * (*g) (char **, int), char **p, ...)
  3172. {
  3173. char *s;
  3174. va_list v;
  3175. va_start (v,p);
  3176. s = g (p, va_arg (v,int));
  3177. va_end (v);
  3178. return s;
  3179. }
  3180. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3181. function prototypes and stuff, but not '\xHH' hex character constants.
  3182. These don't provoke an error unfortunately, instead are silently treated
  3183. as 'x'. The following induces an error, until -std is added to get
  3184. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3185. array size at least. It's necessary to write '\x00'==0 to get something
  3186. that's true only with -std. */
  3187. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3188. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3189. inside strings and character constants. */
  3190. #define FOO(x) 'x'
  3191. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3192. int test (int i, double x);
  3193. struct s1 {int (*f) (int a);};
  3194. struct s2 {int (*f) (double a);};
  3195. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3196. int argc;
  3197. char **argv;
  3198. int
  3199. main ()
  3200. {
  3201. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3202. ;
  3203. return 0;
  3204. }
  3205. _ACEOF
  3206. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3207. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3208. do
  3209. CC="$ac_save_CC $ac_arg"
  3210. rm -f conftest.$ac_objext
  3211. if { (ac_try="$ac_compile"
  3212. case "(($ac_try" in
  3213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3214. *) ac_try_echo=$ac_try;;
  3215. esac
  3216. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3217. $as_echo "$ac_try_echo") >&5
  3218. (eval "$ac_compile") 2>conftest.er1
  3219. ac_status=$?
  3220. grep -v '^ *+' conftest.er1 >conftest.err
  3221. rm -f conftest.er1
  3222. cat conftest.err >&5
  3223. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3224. (exit $ac_status); } && {
  3225. test -z "$ac_c_werror_flag" ||
  3226. test ! -s conftest.err
  3227. } && test -s conftest.$ac_objext; then
  3228. ac_cv_prog_cc_c89=$ac_arg
  3229. else
  3230. $as_echo "$as_me: failed program was:" >&5
  3231. sed 's/^/| /' conftest.$ac_ext >&5
  3232. fi
  3233. rm -f core conftest.err conftest.$ac_objext
  3234. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3235. done
  3236. rm -f conftest.$ac_ext
  3237. CC=$ac_save_CC
  3238. fi
  3239. # AC_CACHE_VAL
  3240. case "x$ac_cv_prog_cc_c89" in
  3241. x)
  3242. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3243. $as_echo "none needed" >&6; } ;;
  3244. xno)
  3245. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3246. $as_echo "unsupported" >&6; } ;;
  3247. *)
  3248. CC="$CC $ac_cv_prog_cc_c89"
  3249. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3250. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3251. esac
  3252. ac_ext=c
  3253. ac_cpp='$CPP $CPPFLAGS'
  3254. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3255. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3256. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3257. rm -f .deps 2>/dev/null
  3258. mkdir .deps 2>/dev/null
  3259. if test -d .deps; then
  3260. DEPDIR=.deps
  3261. else
  3262. # MS-DOS does not allow filenames that begin with a dot.
  3263. DEPDIR=_deps
  3264. fi
  3265. rmdir .deps 2>/dev/null
  3266. ac_config_commands="$ac_config_commands depfiles"
  3267. am_make=${MAKE-make}
  3268. cat > confinc << 'END'
  3269. doit:
  3270. @echo done
  3271. END
  3272. # If we don't find an include directive, just comment out the code.
  3273. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3274. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3275. am__include="#"
  3276. am__quote=
  3277. _am_result=none
  3278. # First try GNU make style include.
  3279. echo "include confinc" > confmf
  3280. # We grep out `Entering directory' and `Leaving directory'
  3281. # messages which can occur if `w' ends up in MAKEFLAGS.
  3282. # In particular we don't look at `^make:' because GNU make might
  3283. # be invoked under some other name (usually "gmake"), in which
  3284. # case it prints its new name instead of `make'.
  3285. if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
  3286. am__include=include
  3287. am__quote=
  3288. _am_result=GNU
  3289. fi
  3290. # Now try BSD make style include.
  3291. if test "$am__include" = "#"; then
  3292. echo '.include "confinc"' > confmf
  3293. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3294. am__include=.include
  3295. am__quote="\""
  3296. _am_result=BSD
  3297. fi
  3298. fi
  3299. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3300. $as_echo "$_am_result" >&6; }
  3301. rm -f confinc confmf
  3302. # Check whether --enable-dependency-tracking was given.
  3303. if test "${enable_dependency_tracking+set}" = set; then
  3304. enableval=$enable_dependency_tracking;
  3305. fi
  3306. if test "x$enable_dependency_tracking" != xno; then
  3307. am_depcomp="$ac_aux_dir/depcomp"
  3308. AMDEPBACKSLASH='\'
  3309. fi
  3310. if test "x$enable_dependency_tracking" != xno; then
  3311. AMDEP_TRUE=
  3312. AMDEP_FALSE='#'
  3313. else
  3314. AMDEP_TRUE='#'
  3315. AMDEP_FALSE=
  3316. fi
  3317. depcc="$CC" am_compiler_list=
  3318. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3319. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3320. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3321. $as_echo_n "(cached) " >&6
  3322. else
  3323. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3324. # We make a subdir and do the tests there. Otherwise we can end up
  3325. # making bogus files that we don't know about and never remove. For
  3326. # instance it was reported that on HP-UX the gcc test will end up
  3327. # making a dummy file named `D' -- because `-MD' means `put the output
  3328. # in D'.
  3329. mkdir conftest.dir
  3330. # Copy depcomp to subdir because otherwise we won't find it if we're
  3331. # using a relative directory.
  3332. cp "$am_depcomp" conftest.dir
  3333. cd conftest.dir
  3334. am_cv_CC_dependencies_compiler_type=none
  3335. if test "$am_compiler_list" = ""; then
  3336. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3337. fi
  3338. for depmode in $am_compiler_list; do
  3339. # We need to recreate these files for each test, as the compiler may
  3340. # overwrite some of them when testing with obscure command lines.
  3341. # This happens at least with the AIX C compiler.
  3342. echo '#include "conftest.h"' > conftest.c
  3343. echo 'int i;' > conftest.h
  3344. echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
  3345. case $depmode in
  3346. nosideeffect)
  3347. # after this tag, mechanisms are not by side-effect, so they'll
  3348. # only be used when explicitly requested
  3349. if test "x$enable_dependency_tracking" = xyes; then
  3350. continue
  3351. else
  3352. break
  3353. fi
  3354. ;;
  3355. none) break ;;
  3356. esac
  3357. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3358. # mode. It turns out that the SunPro C++ compiler does not properly
  3359. # handle `-M -o', and we need to detect this.
  3360. if depmode=$depmode \
  3361. source=conftest.c object=conftest.o \
  3362. depfile=conftest.Po tmpdepfile=conftest.TPo \
  3363. $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
  3364. grep conftest.h conftest.Po > /dev/null 2>&1 &&
  3365. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3366. am_cv_CC_dependencies_compiler_type=$depmode
  3367. break
  3368. fi
  3369. done
  3370. cd ..
  3371. rm -rf conftest.dir
  3372. else
  3373. am_cv_CC_dependencies_compiler_type=none
  3374. fi
  3375. fi
  3376. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3377. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3378. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3379. ac_ext=c
  3380. ac_cpp='$CPP $CPPFLAGS'
  3381. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3382. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3383. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3384. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3385. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3386. # On Suns, sometimes $CPP names a directory.
  3387. if test -n "$CPP" && test -d "$CPP"; then
  3388. CPP=
  3389. fi
  3390. if test -z "$CPP"; then
  3391. if test "${ac_cv_prog_CPP+set}" = set; then
  3392. $as_echo_n "(cached) " >&6
  3393. else
  3394. # Double quotes because CPP needs to be expanded
  3395. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3396. do
  3397. ac_preproc_ok=false
  3398. for ac_c_preproc_warn_flag in '' yes
  3399. do
  3400. # Use a header file that comes with gcc, so configuring glibc
  3401. # with a fresh cross-compiler works.
  3402. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3403. # <limits.h> exists even on freestanding compilers.
  3404. # On the NeXT, cc -E runs the code through the compiler's parser,
  3405. # not just through cpp. "Syntax error" is here to catch this case.
  3406. cat >conftest.$ac_ext <<_ACEOF
  3407. /* confdefs.h. */
  3408. _ACEOF
  3409. cat confdefs.h >>conftest.$ac_ext
  3410. cat >>conftest.$ac_ext <<_ACEOF
  3411. /* end confdefs.h. */
  3412. #ifdef __STDC__
  3413. # include <limits.h>
  3414. #else
  3415. # include <assert.h>
  3416. #endif
  3417. Syntax error
  3418. _ACEOF
  3419. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3420. case "(($ac_try" in
  3421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3422. *) ac_try_echo=$ac_try;;
  3423. esac
  3424. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3425. $as_echo "$ac_try_echo") >&5
  3426. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3427. ac_status=$?
  3428. grep -v '^ *+' conftest.er1 >conftest.err
  3429. rm -f conftest.er1
  3430. cat conftest.err >&5
  3431. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3432. (exit $ac_status); } >/dev/null && {
  3433. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3434. test ! -s conftest.err
  3435. }; then
  3436. :
  3437. else
  3438. $as_echo "$as_me: failed program was:" >&5
  3439. sed 's/^/| /' conftest.$ac_ext >&5
  3440. # Broken: fails on valid input.
  3441. continue
  3442. fi
  3443. rm -f conftest.err conftest.$ac_ext
  3444. # OK, works on sane cases. Now check whether nonexistent headers
  3445. # can be detected and how.
  3446. cat >conftest.$ac_ext <<_ACEOF
  3447. /* confdefs.h. */
  3448. _ACEOF
  3449. cat confdefs.h >>conftest.$ac_ext
  3450. cat >>conftest.$ac_ext <<_ACEOF
  3451. /* end confdefs.h. */
  3452. #include <ac_nonexistent.h>
  3453. _ACEOF
  3454. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3455. case "(($ac_try" in
  3456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3457. *) ac_try_echo=$ac_try;;
  3458. esac
  3459. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3460. $as_echo "$ac_try_echo") >&5
  3461. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3462. ac_status=$?
  3463. grep -v '^ *+' conftest.er1 >conftest.err
  3464. rm -f conftest.er1
  3465. cat conftest.err >&5
  3466. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3467. (exit $ac_status); } >/dev/null && {
  3468. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3469. test ! -s conftest.err
  3470. }; then
  3471. # Broken: success on invalid input.
  3472. continue
  3473. else
  3474. $as_echo "$as_me: failed program was:" >&5
  3475. sed 's/^/| /' conftest.$ac_ext >&5
  3476. # Passes both tests.
  3477. ac_preproc_ok=:
  3478. break
  3479. fi
  3480. rm -f conftest.err conftest.$ac_ext
  3481. done
  3482. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3483. rm -f conftest.err conftest.$ac_ext
  3484. if $ac_preproc_ok; then
  3485. break
  3486. fi
  3487. done
  3488. ac_cv_prog_CPP=$CPP
  3489. fi
  3490. CPP=$ac_cv_prog_CPP
  3491. else
  3492. ac_cv_prog_CPP=$CPP
  3493. fi
  3494. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  3495. $as_echo "$CPP" >&6; }
  3496. ac_preproc_ok=false
  3497. for ac_c_preproc_warn_flag in '' yes
  3498. do
  3499. # Use a header file that comes with gcc, so configuring glibc
  3500. # with a fresh cross-compiler works.
  3501. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3502. # <limits.h> exists even on freestanding compilers.
  3503. # On the NeXT, cc -E runs the code through the compiler's parser,
  3504. # not just through cpp. "Syntax error" is here to catch this case.
  3505. cat >conftest.$ac_ext <<_ACEOF
  3506. /* confdefs.h. */
  3507. _ACEOF
  3508. cat confdefs.h >>conftest.$ac_ext
  3509. cat >>conftest.$ac_ext <<_ACEOF
  3510. /* end confdefs.h. */
  3511. #ifdef __STDC__
  3512. # include <limits.h>
  3513. #else
  3514. # include <assert.h>
  3515. #endif
  3516. Syntax error
  3517. _ACEOF
  3518. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3519. case "(($ac_try" in
  3520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3521. *) ac_try_echo=$ac_try;;
  3522. esac
  3523. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3524. $as_echo "$ac_try_echo") >&5
  3525. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3526. ac_status=$?
  3527. grep -v '^ *+' conftest.er1 >conftest.err
  3528. rm -f conftest.er1
  3529. cat conftest.err >&5
  3530. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3531. (exit $ac_status); } >/dev/null && {
  3532. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3533. test ! -s conftest.err
  3534. }; then
  3535. :
  3536. else
  3537. $as_echo "$as_me: failed program was:" >&5
  3538. sed 's/^/| /' conftest.$ac_ext >&5
  3539. # Broken: fails on valid input.
  3540. continue
  3541. fi
  3542. rm -f conftest.err conftest.$ac_ext
  3543. # OK, works on sane cases. Now check whether nonexistent headers
  3544. # can be detected and how.
  3545. cat >conftest.$ac_ext <<_ACEOF
  3546. /* confdefs.h. */
  3547. _ACEOF
  3548. cat confdefs.h >>conftest.$ac_ext
  3549. cat >>conftest.$ac_ext <<_ACEOF
  3550. /* end confdefs.h. */
  3551. #include <ac_nonexistent.h>
  3552. _ACEOF
  3553. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3554. case "(($ac_try" in
  3555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3556. *) ac_try_echo=$ac_try;;
  3557. esac
  3558. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3559. $as_echo "$ac_try_echo") >&5
  3560. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3561. ac_status=$?
  3562. grep -v '^ *+' conftest.er1 >conftest.err
  3563. rm -f conftest.er1
  3564. cat conftest.err >&5
  3565. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3566. (exit $ac_status); } >/dev/null && {
  3567. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3568. test ! -s conftest.err
  3569. }; then
  3570. # Broken: success on invalid input.
  3571. continue
  3572. else
  3573. $as_echo "$as_me: failed program was:" >&5
  3574. sed 's/^/| /' conftest.$ac_ext >&5
  3575. # Passes both tests.
  3576. ac_preproc_ok=:
  3577. break
  3578. fi
  3579. rm -f conftest.err conftest.$ac_ext
  3580. done
  3581. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3582. rm -f conftest.err conftest.$ac_ext
  3583. if $ac_preproc_ok; then
  3584. :
  3585. else
  3586. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3587. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3588. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3589. See \`config.log' for more details." >&5
  3590. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3591. See \`config.log' for more details." >&2;}
  3592. { (exit 1); exit 1; }; }; }
  3593. fi
  3594. ac_ext=c
  3595. ac_cpp='$CPP $CPPFLAGS'
  3596. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3597. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3598. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3599. CFLAGS="$cflags_save"
  3600. if test "x$CC" != xcc; then
  3601. { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3602. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  3603. else
  3604. { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3605. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  3606. fi
  3607. set dummy $CC; ac_cc=`$as_echo "$2" |
  3608. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3609. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  3610. $as_echo_n "(cached) " >&6
  3611. else
  3612. cat >conftest.$ac_ext <<_ACEOF
  3613. /* confdefs.h. */
  3614. _ACEOF
  3615. cat confdefs.h >>conftest.$ac_ext
  3616. cat >>conftest.$ac_ext <<_ACEOF
  3617. /* end confdefs.h. */
  3618. int
  3619. main ()
  3620. {
  3621. ;
  3622. return 0;
  3623. }
  3624. _ACEOF
  3625. # Make sure it works both with $CC and with simple cc.
  3626. # We do the test twice because some compilers refuse to overwrite an
  3627. # existing .o file with -o, though they will create one.
  3628. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3629. rm -f conftest2.*
  3630. if { (case "(($ac_try" in
  3631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3632. *) ac_try_echo=$ac_try;;
  3633. esac
  3634. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3635. $as_echo "$ac_try_echo") >&5
  3636. (eval "$ac_try") 2>&5
  3637. ac_status=$?
  3638. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3639. (exit $ac_status); } &&
  3640. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3642. *) ac_try_echo=$ac_try;;
  3643. esac
  3644. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3645. $as_echo "$ac_try_echo") >&5
  3646. (eval "$ac_try") 2>&5
  3647. ac_status=$?
  3648. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3649. (exit $ac_status); };
  3650. then
  3651. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3652. if test "x$CC" != xcc; then
  3653. # Test first that cc exists at all.
  3654. if { ac_try='cc -c conftest.$ac_ext >&5'
  3655. { (case "(($ac_try" in
  3656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3657. *) ac_try_echo=$ac_try;;
  3658. esac
  3659. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3660. $as_echo "$ac_try_echo") >&5
  3661. (eval "$ac_try") 2>&5
  3662. ac_status=$?
  3663. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3664. (exit $ac_status); }; }; then
  3665. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3666. rm -f conftest2.*
  3667. if { (case "(($ac_try" in
  3668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3669. *) ac_try_echo=$ac_try;;
  3670. esac
  3671. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3672. $as_echo "$ac_try_echo") >&5
  3673. (eval "$ac_try") 2>&5
  3674. ac_status=$?
  3675. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3676. (exit $ac_status); } &&
  3677. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3679. *) ac_try_echo=$ac_try;;
  3680. esac
  3681. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3682. $as_echo "$ac_try_echo") >&5
  3683. (eval "$ac_try") 2>&5
  3684. ac_status=$?
  3685. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3686. (exit $ac_status); };
  3687. then
  3688. # cc works too.
  3689. :
  3690. else
  3691. # cc exists but doesn't like -o.
  3692. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3693. fi
  3694. fi
  3695. fi
  3696. else
  3697. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3698. fi
  3699. rm -f core conftest*
  3700. fi
  3701. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3702. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3703. $as_echo "yes" >&6; }
  3704. else
  3705. { $as_echo "$as_me:$LINENO: result: no" >&5
  3706. $as_echo "no" >&6; }
  3707. cat >>confdefs.h <<\_ACEOF
  3708. #define NO_MINUS_C_MINUS_O 1
  3709. _ACEOF
  3710. fi
  3711. # FIXME: we rely on the cache variable name because
  3712. # there is no other way.
  3713. set dummy $CC
  3714. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3715. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3716. # Losing compiler, so override with the script.
  3717. # FIXME: It is wrong to rewrite CC.
  3718. # But if we don't then we get into trouble of one sort or another.
  3719. # A longer-term fix would be to have automake use am__CC in this case,
  3720. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3721. CC="$am_aux_dir/compile $CC"
  3722. fi
  3723. enable_win32_dll=yes
  3724. case $host in
  3725. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  3726. if test -n "$ac_tool_prefix"; then
  3727. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3728. set dummy ${ac_tool_prefix}as; ac_word=$2
  3729. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3730. $as_echo_n "checking for $ac_word... " >&6; }
  3731. if test "${ac_cv_prog_AS+set}" = set; then
  3732. $as_echo_n "(cached) " >&6
  3733. else
  3734. if test -n "$AS"; then
  3735. ac_cv_prog_AS="$AS" # Let the user override the test.
  3736. else
  3737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3738. for as_dir in $PATH
  3739. do
  3740. IFS=$as_save_IFS
  3741. test -z "$as_dir" && as_dir=.
  3742. for ac_exec_ext in '' $ac_executable_extensions; do
  3743. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3744. ac_cv_prog_AS="${ac_tool_prefix}as"
  3745. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3746. break 2
  3747. fi
  3748. done
  3749. done
  3750. IFS=$as_save_IFS
  3751. fi
  3752. fi
  3753. AS=$ac_cv_prog_AS
  3754. if test -n "$AS"; then
  3755. { $as_echo "$as_me:$LINENO: result: $AS" >&5
  3756. $as_echo "$AS" >&6; }
  3757. else
  3758. { $as_echo "$as_me:$LINENO: result: no" >&5
  3759. $as_echo "no" >&6; }
  3760. fi
  3761. fi
  3762. if test -z "$ac_cv_prog_AS"; then
  3763. ac_ct_AS=$AS
  3764. # Extract the first word of "as", so it can be a program name with args.
  3765. set dummy as; ac_word=$2
  3766. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3767. $as_echo_n "checking for $ac_word... " >&6; }
  3768. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  3769. $as_echo_n "(cached) " >&6
  3770. else
  3771. if test -n "$ac_ct_AS"; then
  3772. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3773. else
  3774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3775. for as_dir in $PATH
  3776. do
  3777. IFS=$as_save_IFS
  3778. test -z "$as_dir" && as_dir=.
  3779. for ac_exec_ext in '' $ac_executable_extensions; do
  3780. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3781. ac_cv_prog_ac_ct_AS="as"
  3782. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3783. break 2
  3784. fi
  3785. done
  3786. done
  3787. IFS=$as_save_IFS
  3788. fi
  3789. fi
  3790. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3791. if test -n "$ac_ct_AS"; then
  3792. { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  3793. $as_echo "$ac_ct_AS" >&6; }
  3794. else
  3795. { $as_echo "$as_me:$LINENO: result: no" >&5
  3796. $as_echo "no" >&6; }
  3797. fi
  3798. if test "x$ac_ct_AS" = x; then
  3799. AS="false"
  3800. else
  3801. case $cross_compiling:$ac_tool_warned in
  3802. yes:)
  3803. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3804. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3805. ac_tool_warned=yes ;;
  3806. esac
  3807. AS=$ac_ct_AS
  3808. fi
  3809. else
  3810. AS="$ac_cv_prog_AS"
  3811. fi
  3812. if test -n "$ac_tool_prefix"; then
  3813. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3814. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3815. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3816. $as_echo_n "checking for $ac_word... " >&6; }
  3817. if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  3818. $as_echo_n "(cached) " >&6
  3819. else
  3820. if test -n "$DLLTOOL"; then
  3821. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3822. else
  3823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3824. for as_dir in $PATH
  3825. do
  3826. IFS=$as_save_IFS
  3827. test -z "$as_dir" && as_dir=.
  3828. for ac_exec_ext in '' $ac_executable_extensions; do
  3829. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3830. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3831. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3832. break 2
  3833. fi
  3834. done
  3835. done
  3836. IFS=$as_save_IFS
  3837. fi
  3838. fi
  3839. DLLTOOL=$ac_cv_prog_DLLTOOL
  3840. if test -n "$DLLTOOL"; then
  3841. { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  3842. $as_echo "$DLLTOOL" >&6; }
  3843. else
  3844. { $as_echo "$as_me:$LINENO: result: no" >&5
  3845. $as_echo "no" >&6; }
  3846. fi
  3847. fi
  3848. if test -z "$ac_cv_prog_DLLTOOL"; then
  3849. ac_ct_DLLTOOL=$DLLTOOL
  3850. # Extract the first word of "dlltool", so it can be a program name with args.
  3851. set dummy dlltool; ac_word=$2
  3852. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3853. $as_echo_n "checking for $ac_word... " >&6; }
  3854. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  3855. $as_echo_n "(cached) " >&6
  3856. else
  3857. if test -n "$ac_ct_DLLTOOL"; then
  3858. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3859. else
  3860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3861. for as_dir in $PATH
  3862. do
  3863. IFS=$as_save_IFS
  3864. test -z "$as_dir" && as_dir=.
  3865. for ac_exec_ext in '' $ac_executable_extensions; do
  3866. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3867. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3868. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3869. break 2
  3870. fi
  3871. done
  3872. done
  3873. IFS=$as_save_IFS
  3874. fi
  3875. fi
  3876. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3877. if test -n "$ac_ct_DLLTOOL"; then
  3878. { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  3879. $as_echo "$ac_ct_DLLTOOL" >&6; }
  3880. else
  3881. { $as_echo "$as_me:$LINENO: result: no" >&5
  3882. $as_echo "no" >&6; }
  3883. fi
  3884. if test "x$ac_ct_DLLTOOL" = x; then
  3885. DLLTOOL="false"
  3886. else
  3887. case $cross_compiling:$ac_tool_warned in
  3888. yes:)
  3889. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3890. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3891. ac_tool_warned=yes ;;
  3892. esac
  3893. DLLTOOL=$ac_ct_DLLTOOL
  3894. fi
  3895. else
  3896. DLLTOOL="$ac_cv_prog_DLLTOOL"
  3897. fi
  3898. if test -n "$ac_tool_prefix"; then
  3899. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3900. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3901. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3902. $as_echo_n "checking for $ac_word... " >&6; }
  3903. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  3904. $as_echo_n "(cached) " >&6
  3905. else
  3906. if test -n "$OBJDUMP"; then
  3907. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3908. else
  3909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3910. for as_dir in $PATH
  3911. do
  3912. IFS=$as_save_IFS
  3913. test -z "$as_dir" && as_dir=.
  3914. for ac_exec_ext in '' $ac_executable_extensions; do
  3915. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3916. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3917. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3918. break 2
  3919. fi
  3920. done
  3921. done
  3922. IFS=$as_save_IFS
  3923. fi
  3924. fi
  3925. OBJDUMP=$ac_cv_prog_OBJDUMP
  3926. if test -n "$OBJDUMP"; then
  3927. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  3928. $as_echo "$OBJDUMP" >&6; }
  3929. else
  3930. { $as_echo "$as_me:$LINENO: result: no" >&5
  3931. $as_echo "no" >&6; }
  3932. fi
  3933. fi
  3934. if test -z "$ac_cv_prog_OBJDUMP"; then
  3935. ac_ct_OBJDUMP=$OBJDUMP
  3936. # Extract the first word of "objdump", so it can be a program name with args.
  3937. set dummy objdump; ac_word=$2
  3938. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3939. $as_echo_n "checking for $ac_word... " >&6; }
  3940. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  3941. $as_echo_n "(cached) " >&6
  3942. else
  3943. if test -n "$ac_ct_OBJDUMP"; then
  3944. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3945. else
  3946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3947. for as_dir in $PATH
  3948. do
  3949. IFS=$as_save_IFS
  3950. test -z "$as_dir" && as_dir=.
  3951. for ac_exec_ext in '' $ac_executable_extensions; do
  3952. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3953. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  3954. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3955. break 2
  3956. fi
  3957. done
  3958. done
  3959. IFS=$as_save_IFS
  3960. fi
  3961. fi
  3962. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  3963. if test -n "$ac_ct_OBJDUMP"; then
  3964. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  3965. $as_echo "$ac_ct_OBJDUMP" >&6; }
  3966. else
  3967. { $as_echo "$as_me:$LINENO: result: no" >&5
  3968. $as_echo "no" >&6; }
  3969. fi
  3970. if test "x$ac_ct_OBJDUMP" = x; then
  3971. OBJDUMP="false"
  3972. else
  3973. case $cross_compiling:$ac_tool_warned in
  3974. yes:)
  3975. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3976. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3977. ac_tool_warned=yes ;;
  3978. esac
  3979. OBJDUMP=$ac_ct_OBJDUMP
  3980. fi
  3981. else
  3982. OBJDUMP="$ac_cv_prog_OBJDUMP"
  3983. fi
  3984. ;;
  3985. esac
  3986. test -z "$AS" && AS=as
  3987. test -z "$DLLTOOL" && DLLTOOL=dlltool
  3988. test -z "$OBJDUMP" && OBJDUMP=objdump
  3989. case `pwd` in
  3990. *\ * | *\ *)
  3991. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3992. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3993. esac
  3994. macro_version='2.2.6'
  3995. macro_revision='1.3012'
  3996. ltmain="$ac_aux_dir/ltmain.sh"
  3997. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3998. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3999. if test "${ac_cv_path_SED+set}" = set; then
  4000. $as_echo_n "(cached) " >&6
  4001. else
  4002. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4003. for ac_i in 1 2 3 4 5 6 7; do
  4004. ac_script="$ac_script$as_nl$ac_script"
  4005. done
  4006. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4007. $as_unset ac_script || ac_script=
  4008. if test -z "$SED"; then
  4009. ac_path_SED_found=false
  4010. # Loop through the user's path and test for each of PROGNAME-LIST
  4011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4012. for as_dir in $PATH
  4013. do
  4014. IFS=$as_save_IFS
  4015. test -z "$as_dir" && as_dir=.
  4016. for ac_prog in sed gsed; do
  4017. for ac_exec_ext in '' $ac_executable_extensions; do
  4018. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4019. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4020. # Check for GNU ac_path_SED and select it if it is found.
  4021. # Check for GNU $ac_path_SED
  4022. case `"$ac_path_SED" --version 2>&1` in
  4023. *GNU*)
  4024. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4025. *)
  4026. ac_count=0
  4027. $as_echo_n 0123456789 >"conftest.in"
  4028. while :
  4029. do
  4030. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4031. mv "conftest.tmp" "conftest.in"
  4032. cp "conftest.in" "conftest.nl"
  4033. $as_echo '' >> "conftest.nl"
  4034. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4035. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4036. ac_count=`expr $ac_count + 1`
  4037. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4038. # Best one so far, save it but keep looking for a better one
  4039. ac_cv_path_SED="$ac_path_SED"
  4040. ac_path_SED_max=$ac_count
  4041. fi
  4042. # 10*(2^10) chars as input seems more than enough
  4043. test $ac_count -gt 10 && break
  4044. done
  4045. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4046. esac
  4047. $ac_path_SED_found && break 3
  4048. done
  4049. done
  4050. done
  4051. IFS=$as_save_IFS
  4052. if test -z "$ac_cv_path_SED"; then
  4053. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  4054. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  4055. { (exit 1); exit 1; }; }
  4056. fi
  4057. else
  4058. ac_cv_path_SED=$SED
  4059. fi
  4060. fi
  4061. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  4062. $as_echo "$ac_cv_path_SED" >&6; }
  4063. SED="$ac_cv_path_SED"
  4064. rm -f conftest.sed
  4065. test -z "$SED" && SED=sed
  4066. Xsed="$SED -e 1s/^X//"
  4067. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4068. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4069. if test "${ac_cv_path_GREP+set}" = set; then
  4070. $as_echo_n "(cached) " >&6
  4071. else
  4072. if test -z "$GREP"; then
  4073. ac_path_GREP_found=false
  4074. # Loop through the user's path and test for each of PROGNAME-LIST
  4075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4076. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4077. do
  4078. IFS=$as_save_IFS
  4079. test -z "$as_dir" && as_dir=.
  4080. for ac_prog in grep ggrep; do
  4081. for ac_exec_ext in '' $ac_executable_extensions; do
  4082. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4083. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4084. # Check for GNU ac_path_GREP and select it if it is found.
  4085. # Check for GNU $ac_path_GREP
  4086. case `"$ac_path_GREP" --version 2>&1` in
  4087. *GNU*)
  4088. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4089. *)
  4090. ac_count=0
  4091. $as_echo_n 0123456789 >"conftest.in"
  4092. while :
  4093. do
  4094. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4095. mv "conftest.tmp" "conftest.in"
  4096. cp "conftest.in" "conftest.nl"
  4097. $as_echo 'GREP' >> "conftest.nl"
  4098. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4099. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4100. ac_count=`expr $ac_count + 1`
  4101. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4102. # Best one so far, save it but keep looking for a better one
  4103. ac_cv_path_GREP="$ac_path_GREP"
  4104. ac_path_GREP_max=$ac_count
  4105. fi
  4106. # 10*(2^10) chars as input seems more than enough
  4107. test $ac_count -gt 10 && break
  4108. done
  4109. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4110. esac
  4111. $ac_path_GREP_found && break 3
  4112. done
  4113. done
  4114. done
  4115. IFS=$as_save_IFS
  4116. if test -z "$ac_cv_path_GREP"; then
  4117. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4118. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4119. { (exit 1); exit 1; }; }
  4120. fi
  4121. else
  4122. ac_cv_path_GREP=$GREP
  4123. fi
  4124. fi
  4125. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4126. $as_echo "$ac_cv_path_GREP" >&6; }
  4127. GREP="$ac_cv_path_GREP"
  4128. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4129. $as_echo_n "checking for egrep... " >&6; }
  4130. if test "${ac_cv_path_EGREP+set}" = set; then
  4131. $as_echo_n "(cached) " >&6
  4132. else
  4133. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4134. then ac_cv_path_EGREP="$GREP -E"
  4135. else
  4136. if test -z "$EGREP"; then
  4137. ac_path_EGREP_found=false
  4138. # Loop through the user's path and test for each of PROGNAME-LIST
  4139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4140. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4141. do
  4142. IFS=$as_save_IFS
  4143. test -z "$as_dir" && as_dir=.
  4144. for ac_prog in egrep; do
  4145. for ac_exec_ext in '' $ac_executable_extensions; do
  4146. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4147. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4148. # Check for GNU ac_path_EGREP and select it if it is found.
  4149. # Check for GNU $ac_path_EGREP
  4150. case `"$ac_path_EGREP" --version 2>&1` in
  4151. *GNU*)
  4152. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4153. *)
  4154. ac_count=0
  4155. $as_echo_n 0123456789 >"conftest.in"
  4156. while :
  4157. do
  4158. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4159. mv "conftest.tmp" "conftest.in"
  4160. cp "conftest.in" "conftest.nl"
  4161. $as_echo 'EGREP' >> "conftest.nl"
  4162. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4163. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4164. ac_count=`expr $ac_count + 1`
  4165. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4166. # Best one so far, save it but keep looking for a better one
  4167. ac_cv_path_EGREP="$ac_path_EGREP"
  4168. ac_path_EGREP_max=$ac_count
  4169. fi
  4170. # 10*(2^10) chars as input seems more than enough
  4171. test $ac_count -gt 10 && break
  4172. done
  4173. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4174. esac
  4175. $ac_path_EGREP_found && break 3
  4176. done
  4177. done
  4178. done
  4179. IFS=$as_save_IFS
  4180. if test -z "$ac_cv_path_EGREP"; then
  4181. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4182. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4183. { (exit 1); exit 1; }; }
  4184. fi
  4185. else
  4186. ac_cv_path_EGREP=$EGREP
  4187. fi
  4188. fi
  4189. fi
  4190. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4191. $as_echo "$ac_cv_path_EGREP" >&6; }
  4192. EGREP="$ac_cv_path_EGREP"
  4193. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  4194. $as_echo_n "checking for fgrep... " >&6; }
  4195. if test "${ac_cv_path_FGREP+set}" = set; then
  4196. $as_echo_n "(cached) " >&6
  4197. else
  4198. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4199. then ac_cv_path_FGREP="$GREP -F"
  4200. else
  4201. if test -z "$FGREP"; then
  4202. ac_path_FGREP_found=false
  4203. # Loop through the user's path and test for each of PROGNAME-LIST
  4204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4205. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4206. do
  4207. IFS=$as_save_IFS
  4208. test -z "$as_dir" && as_dir=.
  4209. for ac_prog in fgrep; do
  4210. for ac_exec_ext in '' $ac_executable_extensions; do
  4211. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4212. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4213. # Check for GNU ac_path_FGREP and select it if it is found.
  4214. # Check for GNU $ac_path_FGREP
  4215. case `"$ac_path_FGREP" --version 2>&1` in
  4216. *GNU*)
  4217. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4218. *)
  4219. ac_count=0
  4220. $as_echo_n 0123456789 >"conftest.in"
  4221. while :
  4222. do
  4223. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4224. mv "conftest.tmp" "conftest.in"
  4225. cp "conftest.in" "conftest.nl"
  4226. $as_echo 'FGREP' >> "conftest.nl"
  4227. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4228. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4229. ac_count=`expr $ac_count + 1`
  4230. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4231. # Best one so far, save it but keep looking for a better one
  4232. ac_cv_path_FGREP="$ac_path_FGREP"
  4233. ac_path_FGREP_max=$ac_count
  4234. fi
  4235. # 10*(2^10) chars as input seems more than enough
  4236. test $ac_count -gt 10 && break
  4237. done
  4238. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4239. esac
  4240. $ac_path_FGREP_found && break 3
  4241. done
  4242. done
  4243. done
  4244. IFS=$as_save_IFS
  4245. if test -z "$ac_cv_path_FGREP"; then
  4246. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4247. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4248. { (exit 1); exit 1; }; }
  4249. fi
  4250. else
  4251. ac_cv_path_FGREP=$FGREP
  4252. fi
  4253. fi
  4254. fi
  4255. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  4256. $as_echo "$ac_cv_path_FGREP" >&6; }
  4257. FGREP="$ac_cv_path_FGREP"
  4258. test -z "$GREP" && GREP=grep
  4259. # Check whether --with-gnu-ld was given.
  4260. if test "${with_gnu_ld+set}" = set; then
  4261. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4262. else
  4263. with_gnu_ld=no
  4264. fi
  4265. ac_prog=ld
  4266. if test "$GCC" = yes; then
  4267. # Check if gcc -print-prog-name=ld gives a path.
  4268. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4269. $as_echo_n "checking for ld used by $CC... " >&6; }
  4270. case $host in
  4271. *-*-mingw*)
  4272. # gcc leaves a trailing carriage return which upsets mingw
  4273. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4274. *)
  4275. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4276. esac
  4277. case $ac_prog in
  4278. # Accept absolute paths.
  4279. [\\/]* | ?:[\\/]*)
  4280. re_direlt='/[^/][^/]*/\.\./'
  4281. # Canonicalize the pathname of ld
  4282. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4283. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4284. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4285. done
  4286. test -z "$LD" && LD="$ac_prog"
  4287. ;;
  4288. "")
  4289. # If it fails, then pretend we aren't using GCC.
  4290. ac_prog=ld
  4291. ;;
  4292. *)
  4293. # If it is relative, then search for the first ld in PATH.
  4294. with_gnu_ld=unknown
  4295. ;;
  4296. esac
  4297. elif test "$with_gnu_ld" = yes; then
  4298. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  4299. $as_echo_n "checking for GNU ld... " >&6; }
  4300. else
  4301. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4302. $as_echo_n "checking for non-GNU ld... " >&6; }
  4303. fi
  4304. if test "${lt_cv_path_LD+set}" = set; then
  4305. $as_echo_n "(cached) " >&6
  4306. else
  4307. if test -z "$LD"; then
  4308. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4309. for ac_dir in $PATH; do
  4310. IFS="$lt_save_ifs"
  4311. test -z "$ac_dir" && ac_dir=.
  4312. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4313. lt_cv_path_LD="$ac_dir/$ac_prog"
  4314. # Check to see if the program is GNU ld. I'd rather use --version,
  4315. # but apparently some variants of GNU ld only accept -v.
  4316. # Break only if it was the GNU/non-GNU ld that we prefer.
  4317. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4318. *GNU* | *'with BFD'*)
  4319. test "$with_gnu_ld" != no && break
  4320. ;;
  4321. *)
  4322. test "$with_gnu_ld" != yes && break
  4323. ;;
  4324. esac
  4325. fi
  4326. done
  4327. IFS="$lt_save_ifs"
  4328. else
  4329. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4330. fi
  4331. fi
  4332. LD="$lt_cv_path_LD"
  4333. if test -n "$LD"; then
  4334. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  4335. $as_echo "$LD" >&6; }
  4336. else
  4337. { $as_echo "$as_me:$LINENO: result: no" >&5
  4338. $as_echo "no" >&6; }
  4339. fi
  4340. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4341. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4342. { (exit 1); exit 1; }; }
  4343. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4344. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4345. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4346. $as_echo_n "(cached) " >&6
  4347. else
  4348. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4349. case `$LD -v 2>&1 </dev/null` in
  4350. *GNU* | *'with BFD'*)
  4351. lt_cv_prog_gnu_ld=yes
  4352. ;;
  4353. *)
  4354. lt_cv_prog_gnu_ld=no
  4355. ;;
  4356. esac
  4357. fi
  4358. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4359. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4360. with_gnu_ld=$lt_cv_prog_gnu_ld
  4361. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  4362. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4363. if test "${lt_cv_path_NM+set}" = set; then
  4364. $as_echo_n "(cached) " >&6
  4365. else
  4366. if test -n "$NM"; then
  4367. # Let the user override the test.
  4368. lt_cv_path_NM="$NM"
  4369. else
  4370. lt_nm_to_check="${ac_tool_prefix}nm"
  4371. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4372. lt_nm_to_check="$lt_nm_to_check nm"
  4373. fi
  4374. for lt_tmp_nm in $lt_nm_to_check; do
  4375. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4376. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4377. IFS="$lt_save_ifs"
  4378. test -z "$ac_dir" && ac_dir=.
  4379. tmp_nm="$ac_dir/$lt_tmp_nm"
  4380. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4381. # Check to see if the nm accepts a BSD-compat flag.
  4382. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4383. # nm: unknown option "B" ignored
  4384. # Tru64's nm complains that /dev/null is an invalid object file
  4385. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4386. */dev/null* | *'Invalid file or object type'*)
  4387. lt_cv_path_NM="$tmp_nm -B"
  4388. break
  4389. ;;
  4390. *)
  4391. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4392. */dev/null*)
  4393. lt_cv_path_NM="$tmp_nm -p"
  4394. break
  4395. ;;
  4396. *)
  4397. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4398. continue # so that we can try to find one that supports BSD flags
  4399. ;;
  4400. esac
  4401. ;;
  4402. esac
  4403. fi
  4404. done
  4405. IFS="$lt_save_ifs"
  4406. done
  4407. : ${lt_cv_path_NM=no}
  4408. fi
  4409. fi
  4410. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4411. $as_echo "$lt_cv_path_NM" >&6; }
  4412. if test "$lt_cv_path_NM" != "no"; then
  4413. NM="$lt_cv_path_NM"
  4414. else
  4415. # Didn't find any BSD compatible name lister, look for dumpbin.
  4416. if test -n "$ac_tool_prefix"; then
  4417. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4418. do
  4419. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4420. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4421. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4422. $as_echo_n "checking for $ac_word... " >&6; }
  4423. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  4424. $as_echo_n "(cached) " >&6
  4425. else
  4426. if test -n "$DUMPBIN"; then
  4427. ac_cv_prog_DUMPBIN="$DUMPBIN" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4436. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4437. $as_echo "$as_me:$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. DUMPBIN=$ac_cv_prog_DUMPBIN
  4446. if test -n "$DUMPBIN"; then
  4447. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  4448. $as_echo "$DUMPBIN" >&6; }
  4449. else
  4450. { $as_echo "$as_me:$LINENO: result: no" >&5
  4451. $as_echo "no" >&6; }
  4452. fi
  4453. test -n "$DUMPBIN" && break
  4454. done
  4455. fi
  4456. if test -z "$DUMPBIN"; then
  4457. ac_ct_DUMPBIN=$DUMPBIN
  4458. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4459. do
  4460. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4461. set dummy $ac_prog; ac_word=$2
  4462. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4463. $as_echo_n "checking for $ac_word... " >&6; }
  4464. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  4465. $as_echo_n "(cached) " >&6
  4466. else
  4467. if test -n "$ac_ct_DUMPBIN"; then
  4468. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4469. else
  4470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4471. for as_dir in $PATH
  4472. do
  4473. IFS=$as_save_IFS
  4474. test -z "$as_dir" && as_dir=.
  4475. for ac_exec_ext in '' $ac_executable_extensions; do
  4476. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4477. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4478. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4479. break 2
  4480. fi
  4481. done
  4482. done
  4483. IFS=$as_save_IFS
  4484. fi
  4485. fi
  4486. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4487. if test -n "$ac_ct_DUMPBIN"; then
  4488. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  4489. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4490. else
  4491. { $as_echo "$as_me:$LINENO: result: no" >&5
  4492. $as_echo "no" >&6; }
  4493. fi
  4494. test -n "$ac_ct_DUMPBIN" && break
  4495. done
  4496. if test "x$ac_ct_DUMPBIN" = x; then
  4497. DUMPBIN=":"
  4498. else
  4499. case $cross_compiling:$ac_tool_warned in
  4500. yes:)
  4501. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4502. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4503. ac_tool_warned=yes ;;
  4504. esac
  4505. DUMPBIN=$ac_ct_DUMPBIN
  4506. fi
  4507. fi
  4508. if test "$DUMPBIN" != ":"; then
  4509. NM="$DUMPBIN"
  4510. fi
  4511. fi
  4512. test -z "$NM" && NM=nm
  4513. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  4514. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4515. if test "${lt_cv_nm_interface+set}" = set; then
  4516. $as_echo_n "(cached) " >&6
  4517. else
  4518. lt_cv_nm_interface="BSD nm"
  4519. echo "int some_variable = 0;" > conftest.$ac_ext
  4520. (eval echo "\"\$as_me:5101: $ac_compile\"" >&5)
  4521. (eval "$ac_compile" 2>conftest.err)
  4522. cat conftest.err >&5
  4523. (eval echo "\"\$as_me:5104: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4524. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4525. cat conftest.err >&5
  4526. (eval echo "\"\$as_me:5107: output\"" >&5)
  4527. cat conftest.out >&5
  4528. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4529. lt_cv_nm_interface="MS dumpbin"
  4530. fi
  4531. rm -f conftest*
  4532. fi
  4533. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  4534. $as_echo "$lt_cv_nm_interface" >&6; }
  4535. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4536. $as_echo_n "checking whether ln -s works... " >&6; }
  4537. LN_S=$as_ln_s
  4538. if test "$LN_S" = "ln -s"; then
  4539. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4540. $as_echo "yes" >&6; }
  4541. else
  4542. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4543. $as_echo "no, using $LN_S" >&6; }
  4544. fi
  4545. # find the maximum length of command line arguments
  4546. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4547. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4548. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4549. $as_echo_n "(cached) " >&6
  4550. else
  4551. i=0
  4552. teststring="ABCD"
  4553. case $build_os in
  4554. msdosdjgpp*)
  4555. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4556. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4557. # during glob expansion). Even if it were fixed, the result of this
  4558. # check would be larger than it should be.
  4559. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4560. ;;
  4561. gnu*)
  4562. # Under GNU Hurd, this test is not required because there is
  4563. # no limit to the length of command line arguments.
  4564. # Libtool will interpret -1 as no limit whatsoever
  4565. lt_cv_sys_max_cmd_len=-1;
  4566. ;;
  4567. cygwin* | mingw* | cegcc*)
  4568. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4569. # about 5 minutes as the teststring grows exponentially.
  4570. # Worse, since 9x/ME are not pre-emptively multitasking,
  4571. # you end up with a "frozen" computer, even though with patience
  4572. # the test eventually succeeds (with a max line length of 256k).
  4573. # Instead, let's just punt: use the minimum linelength reported by
  4574. # all of the supported platforms: 8192 (on NT/2K/XP).
  4575. lt_cv_sys_max_cmd_len=8192;
  4576. ;;
  4577. amigaos*)
  4578. # On AmigaOS with pdksh, this test takes hours, literally.
  4579. # So we just punt and use a minimum line length of 8192.
  4580. lt_cv_sys_max_cmd_len=8192;
  4581. ;;
  4582. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4583. # This has been around since 386BSD, at least. Likely further.
  4584. if test -x /sbin/sysctl; then
  4585. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4586. elif test -x /usr/sbin/sysctl; then
  4587. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4588. else
  4589. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4590. fi
  4591. # And add a safety zone
  4592. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4593. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4594. ;;
  4595. interix*)
  4596. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4597. lt_cv_sys_max_cmd_len=196608
  4598. ;;
  4599. osf*)
  4600. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4601. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4602. # nice to cause kernel panics so lets avoid the loop below.
  4603. # First set a reasonable default.
  4604. lt_cv_sys_max_cmd_len=16384
  4605. #
  4606. if test -x /sbin/sysconfig; then
  4607. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4608. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4609. esac
  4610. fi
  4611. ;;
  4612. sco3.2v5*)
  4613. lt_cv_sys_max_cmd_len=102400
  4614. ;;
  4615. sysv5* | sco5v6* | sysv4.2uw2*)
  4616. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4617. if test -n "$kargmax"; then
  4618. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4619. else
  4620. lt_cv_sys_max_cmd_len=32768
  4621. fi
  4622. ;;
  4623. *)
  4624. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4625. if test -n "$lt_cv_sys_max_cmd_len"; then
  4626. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4627. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4628. else
  4629. # Make teststring a little bigger before we do anything with it.
  4630. # a 1K string should be a reasonable start.
  4631. for i in 1 2 3 4 5 6 7 8 ; do
  4632. teststring=$teststring$teststring
  4633. done
  4634. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4635. # If test is not a shell built-in, we'll probably end up computing a
  4636. # maximum length that is only half of the actual maximum length, but
  4637. # we can't tell.
  4638. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4639. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4640. test $i != 17 # 1/2 MB should be enough
  4641. do
  4642. i=`expr $i + 1`
  4643. teststring=$teststring$teststring
  4644. done
  4645. # Only check the string length outside the loop.
  4646. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4647. teststring=
  4648. # Add a significant safety factor because C++ compilers can tack on
  4649. # massive amounts of additional arguments before passing them to the
  4650. # linker. It appears as though 1/2 is a usable value.
  4651. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4652. fi
  4653. ;;
  4654. esac
  4655. fi
  4656. if test -n $lt_cv_sys_max_cmd_len ; then
  4657. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4658. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4659. else
  4660. { $as_echo "$as_me:$LINENO: result: none" >&5
  4661. $as_echo "none" >&6; }
  4662. fi
  4663. max_cmd_len=$lt_cv_sys_max_cmd_len
  4664. : ${CP="cp -f"}
  4665. : ${MV="mv -f"}
  4666. : ${RM="rm -f"}
  4667. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  4668. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4669. # Try some XSI features
  4670. xsi_shell=no
  4671. ( _lt_dummy="a/b/c"
  4672. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4673. = c,a/b,, \
  4674. && eval 'test $(( 1 + 1 )) -eq 2 \
  4675. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4676. && xsi_shell=yes
  4677. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  4678. $as_echo "$xsi_shell" >&6; }
  4679. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  4680. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4681. lt_shell_append=no
  4682. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4683. >/dev/null 2>&1 \
  4684. && lt_shell_append=yes
  4685. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  4686. $as_echo "$lt_shell_append" >&6; }
  4687. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4688. lt_unset=unset
  4689. else
  4690. lt_unset=false
  4691. fi
  4692. # test EBCDIC or ASCII
  4693. case `echo X|tr X '\101'` in
  4694. A) # ASCII based system
  4695. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4696. lt_SP2NL='tr \040 \012'
  4697. lt_NL2SP='tr \015\012 \040\040'
  4698. ;;
  4699. *) # EBCDIC based system
  4700. lt_SP2NL='tr \100 \n'
  4701. lt_NL2SP='tr \r\n \100\100'
  4702. ;;
  4703. esac
  4704. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4705. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4706. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4707. $as_echo_n "(cached) " >&6
  4708. else
  4709. lt_cv_ld_reload_flag='-r'
  4710. fi
  4711. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4712. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4713. reload_flag=$lt_cv_ld_reload_flag
  4714. case $reload_flag in
  4715. "" | " "*) ;;
  4716. *) reload_flag=" $reload_flag" ;;
  4717. esac
  4718. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4719. case $host_os in
  4720. darwin*)
  4721. if test "$GCC" = yes; then
  4722. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4723. else
  4724. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4725. fi
  4726. ;;
  4727. esac
  4728. if test -n "$ac_tool_prefix"; then
  4729. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4730. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4731. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4732. $as_echo_n "checking for $ac_word... " >&6; }
  4733. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4734. $as_echo_n "(cached) " >&6
  4735. else
  4736. if test -n "$OBJDUMP"; then
  4737. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4738. else
  4739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4740. for as_dir in $PATH
  4741. do
  4742. IFS=$as_save_IFS
  4743. test -z "$as_dir" && as_dir=.
  4744. for ac_exec_ext in '' $ac_executable_extensions; do
  4745. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4746. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4747. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4748. break 2
  4749. fi
  4750. done
  4751. done
  4752. IFS=$as_save_IFS
  4753. fi
  4754. fi
  4755. OBJDUMP=$ac_cv_prog_OBJDUMP
  4756. if test -n "$OBJDUMP"; then
  4757. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4758. $as_echo "$OBJDUMP" >&6; }
  4759. else
  4760. { $as_echo "$as_me:$LINENO: result: no" >&5
  4761. $as_echo "no" >&6; }
  4762. fi
  4763. fi
  4764. if test -z "$ac_cv_prog_OBJDUMP"; then
  4765. ac_ct_OBJDUMP=$OBJDUMP
  4766. # Extract the first word of "objdump", so it can be a program name with args.
  4767. set dummy objdump; ac_word=$2
  4768. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4769. $as_echo_n "checking for $ac_word... " >&6; }
  4770. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4771. $as_echo_n "(cached) " >&6
  4772. else
  4773. if test -n "$ac_ct_OBJDUMP"; then
  4774. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4775. else
  4776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4777. for as_dir in $PATH
  4778. do
  4779. IFS=$as_save_IFS
  4780. test -z "$as_dir" && as_dir=.
  4781. for ac_exec_ext in '' $ac_executable_extensions; do
  4782. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4783. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4784. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4785. break 2
  4786. fi
  4787. done
  4788. done
  4789. IFS=$as_save_IFS
  4790. fi
  4791. fi
  4792. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4793. if test -n "$ac_ct_OBJDUMP"; then
  4794. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4795. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4796. else
  4797. { $as_echo "$as_me:$LINENO: result: no" >&5
  4798. $as_echo "no" >&6; }
  4799. fi
  4800. if test "x$ac_ct_OBJDUMP" = x; then
  4801. OBJDUMP="false"
  4802. else
  4803. case $cross_compiling:$ac_tool_warned in
  4804. yes:)
  4805. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4806. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4807. ac_tool_warned=yes ;;
  4808. esac
  4809. OBJDUMP=$ac_ct_OBJDUMP
  4810. fi
  4811. else
  4812. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4813. fi
  4814. test -z "$OBJDUMP" && OBJDUMP=objdump
  4815. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4816. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4817. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4818. $as_echo_n "(cached) " >&6
  4819. else
  4820. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4821. lt_cv_file_magic_test_file=
  4822. lt_cv_deplibs_check_method='unknown'
  4823. # Need to set the preceding variable on all platforms that support
  4824. # interlibrary dependencies.
  4825. # 'none' -- dependencies not supported.
  4826. # `unknown' -- same as none, but documents that we really don't know.
  4827. # 'pass_all' -- all dependencies passed with no checks.
  4828. # 'test_compile' -- check by making test program.
  4829. # 'file_magic [[regex]]' -- check by looking for files in library path
  4830. # which responds to the $file_magic_cmd with a given extended regex.
  4831. # If you have `file' or equivalent on your system and you're not sure
  4832. # whether `pass_all' will *always* work, you probably want this one.
  4833. case $host_os in
  4834. aix[4-9]*)
  4835. lt_cv_deplibs_check_method=pass_all
  4836. ;;
  4837. beos*)
  4838. lt_cv_deplibs_check_method=pass_all
  4839. ;;
  4840. bsdi[45]*)
  4841. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4842. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4843. lt_cv_file_magic_test_file=/shlib/libc.so
  4844. ;;
  4845. cygwin*)
  4846. # func_win32_libid is a shell function defined in ltmain.sh
  4847. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4848. lt_cv_file_magic_cmd='func_win32_libid'
  4849. ;;
  4850. mingw* | pw32*)
  4851. # Base MSYS/MinGW do not provide the 'file' command needed by
  4852. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4853. # unless we find 'file', for example because we are cross-compiling.
  4854. if ( file / ) >/dev/null 2>&1; then
  4855. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4856. lt_cv_file_magic_cmd='func_win32_libid'
  4857. else
  4858. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4859. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4860. fi
  4861. ;;
  4862. cegcc)
  4863. # use the weaker test based on 'objdump'. See mingw*.
  4864. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4865. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4866. ;;
  4867. darwin* | rhapsody*)
  4868. lt_cv_deplibs_check_method=pass_all
  4869. ;;
  4870. freebsd* | dragonfly*)
  4871. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4872. case $host_cpu in
  4873. i*86 )
  4874. # Not sure whether the presence of OpenBSD here was a mistake.
  4875. # Let's accept both of them until this is cleared up.
  4876. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4877. lt_cv_file_magic_cmd=/usr/bin/file
  4878. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4879. ;;
  4880. esac
  4881. else
  4882. lt_cv_deplibs_check_method=pass_all
  4883. fi
  4884. ;;
  4885. gnu*)
  4886. lt_cv_deplibs_check_method=pass_all
  4887. ;;
  4888. hpux10.20* | hpux11*)
  4889. lt_cv_file_magic_cmd=/usr/bin/file
  4890. case $host_cpu in
  4891. ia64*)
  4892. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4893. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4894. ;;
  4895. hppa*64*)
  4896. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4897. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4898. ;;
  4899. *)
  4900. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4901. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4902. ;;
  4903. esac
  4904. ;;
  4905. interix[3-9]*)
  4906. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4907. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4908. ;;
  4909. irix5* | irix6* | nonstopux*)
  4910. case $LD in
  4911. *-32|*"-32 ") libmagic=32-bit;;
  4912. *-n32|*"-n32 ") libmagic=N32;;
  4913. *-64|*"-64 ") libmagic=64-bit;;
  4914. *) libmagic=never-match;;
  4915. esac
  4916. lt_cv_deplibs_check_method=pass_all
  4917. ;;
  4918. # This must be Linux ELF.
  4919. linux* | k*bsd*-gnu)
  4920. lt_cv_deplibs_check_method=pass_all
  4921. ;;
  4922. netbsd*)
  4923. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4924. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4925. else
  4926. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4927. fi
  4928. ;;
  4929. newos6*)
  4930. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4931. lt_cv_file_magic_cmd=/usr/bin/file
  4932. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4933. ;;
  4934. *nto* | *qnx*)
  4935. lt_cv_deplibs_check_method=pass_all
  4936. ;;
  4937. openbsd*)
  4938. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4939. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4940. else
  4941. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4942. fi
  4943. ;;
  4944. osf3* | osf4* | osf5*)
  4945. lt_cv_deplibs_check_method=pass_all
  4946. ;;
  4947. rdos*)
  4948. lt_cv_deplibs_check_method=pass_all
  4949. ;;
  4950. solaris*)
  4951. lt_cv_deplibs_check_method=pass_all
  4952. ;;
  4953. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4954. lt_cv_deplibs_check_method=pass_all
  4955. ;;
  4956. sysv4 | sysv4.3*)
  4957. case $host_vendor in
  4958. motorola)
  4959. 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]'
  4960. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4961. ;;
  4962. ncr)
  4963. lt_cv_deplibs_check_method=pass_all
  4964. ;;
  4965. sequent)
  4966. lt_cv_file_magic_cmd='/bin/file'
  4967. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4968. ;;
  4969. sni)
  4970. lt_cv_file_magic_cmd='/bin/file'
  4971. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4972. lt_cv_file_magic_test_file=/lib/libc.so
  4973. ;;
  4974. siemens)
  4975. lt_cv_deplibs_check_method=pass_all
  4976. ;;
  4977. pc)
  4978. lt_cv_deplibs_check_method=pass_all
  4979. ;;
  4980. esac
  4981. ;;
  4982. tpf*)
  4983. lt_cv_deplibs_check_method=pass_all
  4984. ;;
  4985. esac
  4986. fi
  4987. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4988. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4989. file_magic_cmd=$lt_cv_file_magic_cmd
  4990. deplibs_check_method=$lt_cv_deplibs_check_method
  4991. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4992. if test -n "$ac_tool_prefix"; then
  4993. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4994. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4995. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4996. $as_echo_n "checking for $ac_word... " >&6; }
  4997. if test "${ac_cv_prog_AR+set}" = set; then
  4998. $as_echo_n "(cached) " >&6
  4999. else
  5000. if test -n "$AR"; then
  5001. ac_cv_prog_AR="$AR" # Let the user override the test.
  5002. else
  5003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5004. for as_dir in $PATH
  5005. do
  5006. IFS=$as_save_IFS
  5007. test -z "$as_dir" && as_dir=.
  5008. for ac_exec_ext in '' $ac_executable_extensions; do
  5009. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5010. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5011. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5012. break 2
  5013. fi
  5014. done
  5015. done
  5016. IFS=$as_save_IFS
  5017. fi
  5018. fi
  5019. AR=$ac_cv_prog_AR
  5020. if test -n "$AR"; then
  5021. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  5022. $as_echo "$AR" >&6; }
  5023. else
  5024. { $as_echo "$as_me:$LINENO: result: no" >&5
  5025. $as_echo "no" >&6; }
  5026. fi
  5027. fi
  5028. if test -z "$ac_cv_prog_AR"; then
  5029. ac_ct_AR=$AR
  5030. # Extract the first word of "ar", so it can be a program name with args.
  5031. set dummy ar; ac_word=$2
  5032. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5033. $as_echo_n "checking for $ac_word... " >&6; }
  5034. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5035. $as_echo_n "(cached) " >&6
  5036. else
  5037. if test -n "$ac_ct_AR"; then
  5038. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5039. else
  5040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5041. for as_dir in $PATH
  5042. do
  5043. IFS=$as_save_IFS
  5044. test -z "$as_dir" && as_dir=.
  5045. for ac_exec_ext in '' $ac_executable_extensions; do
  5046. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5047. ac_cv_prog_ac_ct_AR="ar"
  5048. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5049. break 2
  5050. fi
  5051. done
  5052. done
  5053. IFS=$as_save_IFS
  5054. fi
  5055. fi
  5056. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5057. if test -n "$ac_ct_AR"; then
  5058. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5059. $as_echo "$ac_ct_AR" >&6; }
  5060. else
  5061. { $as_echo "$as_me:$LINENO: result: no" >&5
  5062. $as_echo "no" >&6; }
  5063. fi
  5064. if test "x$ac_ct_AR" = x; then
  5065. AR="false"
  5066. else
  5067. case $cross_compiling:$ac_tool_warned in
  5068. yes:)
  5069. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5070. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5071. ac_tool_warned=yes ;;
  5072. esac
  5073. AR=$ac_ct_AR
  5074. fi
  5075. else
  5076. AR="$ac_cv_prog_AR"
  5077. fi
  5078. test -z "$AR" && AR=ar
  5079. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5080. if test -n "$ac_tool_prefix"; then
  5081. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5082. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5083. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5084. $as_echo_n "checking for $ac_word... " >&6; }
  5085. if test "${ac_cv_prog_STRIP+set}" = set; then
  5086. $as_echo_n "(cached) " >&6
  5087. else
  5088. if test -n "$STRIP"; then
  5089. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5090. else
  5091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5092. for as_dir in $PATH
  5093. do
  5094. IFS=$as_save_IFS
  5095. test -z "$as_dir" && as_dir=.
  5096. for ac_exec_ext in '' $ac_executable_extensions; do
  5097. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5098. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5099. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5100. break 2
  5101. fi
  5102. done
  5103. done
  5104. IFS=$as_save_IFS
  5105. fi
  5106. fi
  5107. STRIP=$ac_cv_prog_STRIP
  5108. if test -n "$STRIP"; then
  5109. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  5110. $as_echo "$STRIP" >&6; }
  5111. else
  5112. { $as_echo "$as_me:$LINENO: result: no" >&5
  5113. $as_echo "no" >&6; }
  5114. fi
  5115. fi
  5116. if test -z "$ac_cv_prog_STRIP"; then
  5117. ac_ct_STRIP=$STRIP
  5118. # Extract the first word of "strip", so it can be a program name with args.
  5119. set dummy strip; ac_word=$2
  5120. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5121. $as_echo_n "checking for $ac_word... " >&6; }
  5122. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5123. $as_echo_n "(cached) " >&6
  5124. else
  5125. if test -n "$ac_ct_STRIP"; then
  5126. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5127. else
  5128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5129. for as_dir in $PATH
  5130. do
  5131. IFS=$as_save_IFS
  5132. test -z "$as_dir" && as_dir=.
  5133. for ac_exec_ext in '' $ac_executable_extensions; do
  5134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5135. ac_cv_prog_ac_ct_STRIP="strip"
  5136. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5137. break 2
  5138. fi
  5139. done
  5140. done
  5141. IFS=$as_save_IFS
  5142. fi
  5143. fi
  5144. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5145. if test -n "$ac_ct_STRIP"; then
  5146. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5147. $as_echo "$ac_ct_STRIP" >&6; }
  5148. else
  5149. { $as_echo "$as_me:$LINENO: result: no" >&5
  5150. $as_echo "no" >&6; }
  5151. fi
  5152. if test "x$ac_ct_STRIP" = x; then
  5153. STRIP=":"
  5154. else
  5155. case $cross_compiling:$ac_tool_warned in
  5156. yes:)
  5157. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5158. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5159. ac_tool_warned=yes ;;
  5160. esac
  5161. STRIP=$ac_ct_STRIP
  5162. fi
  5163. else
  5164. STRIP="$ac_cv_prog_STRIP"
  5165. fi
  5166. test -z "$STRIP" && STRIP=:
  5167. if test -n "$ac_tool_prefix"; then
  5168. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5169. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5170. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5171. $as_echo_n "checking for $ac_word... " >&6; }
  5172. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5173. $as_echo_n "(cached) " >&6
  5174. else
  5175. if test -n "$RANLIB"; then
  5176. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5177. else
  5178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5179. for as_dir in $PATH
  5180. do
  5181. IFS=$as_save_IFS
  5182. test -z "$as_dir" && as_dir=.
  5183. for ac_exec_ext in '' $ac_executable_extensions; do
  5184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5185. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5186. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5187. break 2
  5188. fi
  5189. done
  5190. done
  5191. IFS=$as_save_IFS
  5192. fi
  5193. fi
  5194. RANLIB=$ac_cv_prog_RANLIB
  5195. if test -n "$RANLIB"; then
  5196. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  5197. $as_echo "$RANLIB" >&6; }
  5198. else
  5199. { $as_echo "$as_me:$LINENO: result: no" >&5
  5200. $as_echo "no" >&6; }
  5201. fi
  5202. fi
  5203. if test -z "$ac_cv_prog_RANLIB"; then
  5204. ac_ct_RANLIB=$RANLIB
  5205. # Extract the first word of "ranlib", so it can be a program name with args.
  5206. set dummy ranlib; ac_word=$2
  5207. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5208. $as_echo_n "checking for $ac_word... " >&6; }
  5209. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5210. $as_echo_n "(cached) " >&6
  5211. else
  5212. if test -n "$ac_ct_RANLIB"; then
  5213. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5214. else
  5215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5216. for as_dir in $PATH
  5217. do
  5218. IFS=$as_save_IFS
  5219. test -z "$as_dir" && as_dir=.
  5220. for ac_exec_ext in '' $ac_executable_extensions; do
  5221. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5222. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5223. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5224. break 2
  5225. fi
  5226. done
  5227. done
  5228. IFS=$as_save_IFS
  5229. fi
  5230. fi
  5231. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5232. if test -n "$ac_ct_RANLIB"; then
  5233. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5234. $as_echo "$ac_ct_RANLIB" >&6; }
  5235. else
  5236. { $as_echo "$as_me:$LINENO: result: no" >&5
  5237. $as_echo "no" >&6; }
  5238. fi
  5239. if test "x$ac_ct_RANLIB" = x; then
  5240. RANLIB=":"
  5241. else
  5242. case $cross_compiling:$ac_tool_warned in
  5243. yes:)
  5244. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5245. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5246. ac_tool_warned=yes ;;
  5247. esac
  5248. RANLIB=$ac_ct_RANLIB
  5249. fi
  5250. else
  5251. RANLIB="$ac_cv_prog_RANLIB"
  5252. fi
  5253. test -z "$RANLIB" && RANLIB=:
  5254. # Determine commands to create old-style static archives.
  5255. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5256. old_postinstall_cmds='chmod 644 $oldlib'
  5257. old_postuninstall_cmds=
  5258. if test -n "$RANLIB"; then
  5259. case $host_os in
  5260. openbsd*)
  5261. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5262. ;;
  5263. *)
  5264. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5265. ;;
  5266. esac
  5267. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5268. fi
  5269. # If no C compiler was specified, use CC.
  5270. LTCC=${LTCC-"$CC"}
  5271. # If no C compiler flags were specified, use CFLAGS.
  5272. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5273. # Allow CC to be a program name with arguments.
  5274. compiler=$CC
  5275. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5276. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5277. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5278. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5279. $as_echo_n "(cached) " >&6
  5280. else
  5281. # These are sane defaults that work on at least a few old systems.
  5282. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5283. # Character class describing NM global symbol codes.
  5284. symcode='[BCDEGRST]'
  5285. # Regexp to match symbols that can be accessed directly from C.
  5286. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5287. # Define system-specific variables.
  5288. case $host_os in
  5289. aix*)
  5290. symcode='[BCDT]'
  5291. ;;
  5292. cygwin* | mingw* | pw32* | cegcc*)
  5293. symcode='[ABCDGISTW]'
  5294. ;;
  5295. hpux*)
  5296. if test "$host_cpu" = ia64; then
  5297. symcode='[ABCDEGRST]'
  5298. fi
  5299. ;;
  5300. irix* | nonstopux*)
  5301. symcode='[BCDEGRST]'
  5302. ;;
  5303. osf*)
  5304. symcode='[BCDEGQRST]'
  5305. ;;
  5306. solaris*)
  5307. symcode='[BDRT]'
  5308. ;;
  5309. sco3.2v5*)
  5310. symcode='[DT]'
  5311. ;;
  5312. sysv4.2uw2*)
  5313. symcode='[DT]'
  5314. ;;
  5315. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5316. symcode='[ABDT]'
  5317. ;;
  5318. sysv4)
  5319. symcode='[DFNSTU]'
  5320. ;;
  5321. esac
  5322. # If we're using GNU nm, then use its standard symbol codes.
  5323. case `$NM -V 2>&1` in
  5324. *GNU* | *'with BFD'*)
  5325. symcode='[ABCDGIRSTW]' ;;
  5326. esac
  5327. # Transform an extracted symbol line into a proper C declaration.
  5328. # Some systems (esp. on ia64) link data and code symbols differently,
  5329. # so use this general approach.
  5330. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5331. # Transform an extracted symbol line into symbol name and symbol address
  5332. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5333. 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'"
  5334. # Handle CRLF in mingw tool chain
  5335. opt_cr=
  5336. case $build_os in
  5337. mingw*)
  5338. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5339. ;;
  5340. esac
  5341. # Try without a prefix underscore, then with it.
  5342. for ac_symprfx in "" "_"; do
  5343. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5344. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5345. # Write the raw and C identifiers.
  5346. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5347. # Fake it for dumpbin and say T for any non-static function
  5348. # and D for any global variable.
  5349. # Also find C++ and __fastcall symbols from MSVC++,
  5350. # which start with @ or ?.
  5351. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5352. " {last_section=section; section=\$ 3};"\
  5353. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5354. " \$ 0!~/External *\|/{next};"\
  5355. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5356. " {if(hide[section]) next};"\
  5357. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5358. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5359. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5360. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5361. " ' prfx=^$ac_symprfx"
  5362. else
  5363. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5364. fi
  5365. # Check to see that the pipe works correctly.
  5366. pipe_works=no
  5367. rm -f conftest*
  5368. cat > conftest.$ac_ext <<_LT_EOF
  5369. #ifdef __cplusplus
  5370. extern "C" {
  5371. #endif
  5372. char nm_test_var;
  5373. void nm_test_func(void);
  5374. void nm_test_func(void){}
  5375. #ifdef __cplusplus
  5376. }
  5377. #endif
  5378. int main(){nm_test_var='a';nm_test_func();return(0);}
  5379. _LT_EOF
  5380. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5381. (eval $ac_compile) 2>&5
  5382. ac_status=$?
  5383. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5384. (exit $ac_status); }; then
  5385. # Now try to grab the symbols.
  5386. nlist=conftest.nm
  5387. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5388. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5389. ac_status=$?
  5390. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5391. (exit $ac_status); } && test -s "$nlist"; then
  5392. # Try sorting and uniquifying the output.
  5393. if sort "$nlist" | uniq > "$nlist"T; then
  5394. mv -f "$nlist"T "$nlist"
  5395. else
  5396. rm -f "$nlist"T
  5397. fi
  5398. # Make sure that we snagged all the symbols we need.
  5399. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5400. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5401. cat <<_LT_EOF > conftest.$ac_ext
  5402. #ifdef __cplusplus
  5403. extern "C" {
  5404. #endif
  5405. _LT_EOF
  5406. # Now generate the symbol file.
  5407. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5408. cat <<_LT_EOF >> conftest.$ac_ext
  5409. /* The mapping between symbol names and symbols. */
  5410. const struct {
  5411. const char *name;
  5412. void *address;
  5413. }
  5414. lt__PROGRAM__LTX_preloaded_symbols[] =
  5415. {
  5416. { "@PROGRAM@", (void *) 0 },
  5417. _LT_EOF
  5418. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5419. cat <<\_LT_EOF >> conftest.$ac_ext
  5420. {0, (void *) 0}
  5421. };
  5422. /* This works around a problem in FreeBSD linker */
  5423. #ifdef FREEBSD_WORKAROUND
  5424. static const void *lt_preloaded_setup() {
  5425. return lt__PROGRAM__LTX_preloaded_symbols;
  5426. }
  5427. #endif
  5428. #ifdef __cplusplus
  5429. }
  5430. #endif
  5431. _LT_EOF
  5432. # Now try linking the two files.
  5433. mv conftest.$ac_objext conftstm.$ac_objext
  5434. lt_save_LIBS="$LIBS"
  5435. lt_save_CFLAGS="$CFLAGS"
  5436. LIBS="conftstm.$ac_objext"
  5437. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5438. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5439. (eval $ac_link) 2>&5
  5440. ac_status=$?
  5441. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5442. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5443. pipe_works=yes
  5444. fi
  5445. LIBS="$lt_save_LIBS"
  5446. CFLAGS="$lt_save_CFLAGS"
  5447. else
  5448. echo "cannot find nm_test_func in $nlist" >&5
  5449. fi
  5450. else
  5451. echo "cannot find nm_test_var in $nlist" >&5
  5452. fi
  5453. else
  5454. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5455. fi
  5456. else
  5457. echo "$progname: failed program was:" >&5
  5458. cat conftest.$ac_ext >&5
  5459. fi
  5460. rm -rf conftest* conftst*
  5461. # Do not use the global_symbol_pipe unless it works.
  5462. if test "$pipe_works" = yes; then
  5463. break
  5464. else
  5465. lt_cv_sys_global_symbol_pipe=
  5466. fi
  5467. done
  5468. fi
  5469. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5470. lt_cv_sys_global_symbol_to_cdecl=
  5471. fi
  5472. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5473. { $as_echo "$as_me:$LINENO: result: failed" >&5
  5474. $as_echo "failed" >&6; }
  5475. else
  5476. { $as_echo "$as_me:$LINENO: result: ok" >&5
  5477. $as_echo "ok" >&6; }
  5478. fi
  5479. # Check whether --enable-libtool-lock was given.
  5480. if test "${enable_libtool_lock+set}" = set; then
  5481. enableval=$enable_libtool_lock;
  5482. fi
  5483. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5484. # Some flags need to be propagated to the compiler or linker for good
  5485. # libtool support.
  5486. case $host in
  5487. ia64-*-hpux*)
  5488. # Find out which ABI we are using.
  5489. echo 'int i;' > conftest.$ac_ext
  5490. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5491. (eval $ac_compile) 2>&5
  5492. ac_status=$?
  5493. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5494. (exit $ac_status); }; then
  5495. case `/usr/bin/file conftest.$ac_objext` in
  5496. *ELF-32*)
  5497. HPUX_IA64_MODE="32"
  5498. ;;
  5499. *ELF-64*)
  5500. HPUX_IA64_MODE="64"
  5501. ;;
  5502. esac
  5503. fi
  5504. rm -rf conftest*
  5505. ;;
  5506. *-*-irix6*)
  5507. # Find out which ABI we are using.
  5508. echo '#line 6310 "configure"' > conftest.$ac_ext
  5509. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5510. (eval $ac_compile) 2>&5
  5511. ac_status=$?
  5512. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5513. (exit $ac_status); }; then
  5514. if test "$lt_cv_prog_gnu_ld" = yes; then
  5515. case `/usr/bin/file conftest.$ac_objext` in
  5516. *32-bit*)
  5517. LD="${LD-ld} -melf32bsmip"
  5518. ;;
  5519. *N32*)
  5520. LD="${LD-ld} -melf32bmipn32"
  5521. ;;
  5522. *64-bit*)
  5523. LD="${LD-ld} -melf64bmip"
  5524. ;;
  5525. esac
  5526. else
  5527. case `/usr/bin/file conftest.$ac_objext` in
  5528. *32-bit*)
  5529. LD="${LD-ld} -32"
  5530. ;;
  5531. *N32*)
  5532. LD="${LD-ld} -n32"
  5533. ;;
  5534. *64-bit*)
  5535. LD="${LD-ld} -64"
  5536. ;;
  5537. esac
  5538. fi
  5539. fi
  5540. rm -rf conftest*
  5541. ;;
  5542. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5543. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5544. # Find out which ABI we are using.
  5545. echo 'int i;' > conftest.$ac_ext
  5546. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5547. (eval $ac_compile) 2>&5
  5548. ac_status=$?
  5549. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5550. (exit $ac_status); }; then
  5551. case `/usr/bin/file conftest.o` in
  5552. *32-bit*)
  5553. case $host in
  5554. x86_64-*kfreebsd*-gnu)
  5555. LD="${LD-ld} -m elf_i386_fbsd"
  5556. ;;
  5557. x86_64-*linux*)
  5558. LD="${LD-ld} -m elf_i386"
  5559. ;;
  5560. ppc64-*linux*|powerpc64-*linux*)
  5561. LD="${LD-ld} -m elf32ppclinux"
  5562. ;;
  5563. s390x-*linux*)
  5564. LD="${LD-ld} -m elf_s390"
  5565. ;;
  5566. sparc64-*linux*)
  5567. LD="${LD-ld} -m elf32_sparc"
  5568. ;;
  5569. esac
  5570. ;;
  5571. *64-bit*)
  5572. case $host in
  5573. x86_64-*kfreebsd*-gnu)
  5574. LD="${LD-ld} -m elf_x86_64_fbsd"
  5575. ;;
  5576. x86_64-*linux*)
  5577. LD="${LD-ld} -m elf_x86_64"
  5578. ;;
  5579. ppc*-*linux*|powerpc*-*linux*)
  5580. LD="${LD-ld} -m elf64ppc"
  5581. ;;
  5582. s390*-*linux*|s390*-*tpf*)
  5583. LD="${LD-ld} -m elf64_s390"
  5584. ;;
  5585. sparc*-*linux*)
  5586. LD="${LD-ld} -m elf64_sparc"
  5587. ;;
  5588. esac
  5589. ;;
  5590. esac
  5591. fi
  5592. rm -rf conftest*
  5593. ;;
  5594. *-*-sco3.2v5*)
  5595. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5596. SAVE_CFLAGS="$CFLAGS"
  5597. CFLAGS="$CFLAGS -belf"
  5598. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5599. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5600. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5601. $as_echo_n "(cached) " >&6
  5602. else
  5603. ac_ext=c
  5604. ac_cpp='$CPP $CPPFLAGS'
  5605. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5606. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5607. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5608. cat >conftest.$ac_ext <<_ACEOF
  5609. /* confdefs.h. */
  5610. _ACEOF
  5611. cat confdefs.h >>conftest.$ac_ext
  5612. cat >>conftest.$ac_ext <<_ACEOF
  5613. /* end confdefs.h. */
  5614. int
  5615. main ()
  5616. {
  5617. ;
  5618. return 0;
  5619. }
  5620. _ACEOF
  5621. rm -f conftest.$ac_objext conftest$ac_exeext
  5622. if { (ac_try="$ac_link"
  5623. case "(($ac_try" in
  5624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5625. *) ac_try_echo=$ac_try;;
  5626. esac
  5627. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5628. $as_echo "$ac_try_echo") >&5
  5629. (eval "$ac_link") 2>conftest.er1
  5630. ac_status=$?
  5631. grep -v '^ *+' conftest.er1 >conftest.err
  5632. rm -f conftest.er1
  5633. cat conftest.err >&5
  5634. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5635. (exit $ac_status); } && {
  5636. test -z "$ac_c_werror_flag" ||
  5637. test ! -s conftest.err
  5638. } && test -s conftest$ac_exeext && {
  5639. test "$cross_compiling" = yes ||
  5640. $as_test_x conftest$ac_exeext
  5641. }; then
  5642. lt_cv_cc_needs_belf=yes
  5643. else
  5644. $as_echo "$as_me: failed program was:" >&5
  5645. sed 's/^/| /' conftest.$ac_ext >&5
  5646. lt_cv_cc_needs_belf=no
  5647. fi
  5648. rm -rf conftest.dSYM
  5649. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5650. conftest$ac_exeext conftest.$ac_ext
  5651. ac_ext=c
  5652. ac_cpp='$CPP $CPPFLAGS'
  5653. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5654. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5655. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5656. fi
  5657. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5658. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5659. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5660. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5661. CFLAGS="$SAVE_CFLAGS"
  5662. fi
  5663. ;;
  5664. sparc*-*solaris*)
  5665. # Find out which ABI we are using.
  5666. echo 'int i;' > conftest.$ac_ext
  5667. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5668. (eval $ac_compile) 2>&5
  5669. ac_status=$?
  5670. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5671. (exit $ac_status); }; then
  5672. case `/usr/bin/file conftest.o` in
  5673. *64-bit*)
  5674. case $lt_cv_prog_gnu_ld in
  5675. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5676. *)
  5677. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5678. LD="${LD-ld} -64"
  5679. fi
  5680. ;;
  5681. esac
  5682. ;;
  5683. esac
  5684. fi
  5685. rm -rf conftest*
  5686. ;;
  5687. esac
  5688. need_locks="$enable_libtool_lock"
  5689. case $host_os in
  5690. rhapsody* | darwin*)
  5691. if test -n "$ac_tool_prefix"; then
  5692. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5693. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5694. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5695. $as_echo_n "checking for $ac_word... " >&6; }
  5696. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  5697. $as_echo_n "(cached) " >&6
  5698. else
  5699. if test -n "$DSYMUTIL"; then
  5700. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5701. else
  5702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5703. for as_dir in $PATH
  5704. do
  5705. IFS=$as_save_IFS
  5706. test -z "$as_dir" && as_dir=.
  5707. for ac_exec_ext in '' $ac_executable_extensions; do
  5708. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5709. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5710. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5711. break 2
  5712. fi
  5713. done
  5714. done
  5715. IFS=$as_save_IFS
  5716. fi
  5717. fi
  5718. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5719. if test -n "$DSYMUTIL"; then
  5720. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  5721. $as_echo "$DSYMUTIL" >&6; }
  5722. else
  5723. { $as_echo "$as_me:$LINENO: result: no" >&5
  5724. $as_echo "no" >&6; }
  5725. fi
  5726. fi
  5727. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5728. ac_ct_DSYMUTIL=$DSYMUTIL
  5729. # Extract the first word of "dsymutil", so it can be a program name with args.
  5730. set dummy dsymutil; ac_word=$2
  5731. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5732. $as_echo_n "checking for $ac_word... " >&6; }
  5733. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  5734. $as_echo_n "(cached) " >&6
  5735. else
  5736. if test -n "$ac_ct_DSYMUTIL"; then
  5737. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5738. else
  5739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5740. for as_dir in $PATH
  5741. do
  5742. IFS=$as_save_IFS
  5743. test -z "$as_dir" && as_dir=.
  5744. for ac_exec_ext in '' $ac_executable_extensions; do
  5745. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5746. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5747. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5748. break 2
  5749. fi
  5750. done
  5751. done
  5752. IFS=$as_save_IFS
  5753. fi
  5754. fi
  5755. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5756. if test -n "$ac_ct_DSYMUTIL"; then
  5757. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  5758. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5759. else
  5760. { $as_echo "$as_me:$LINENO: result: no" >&5
  5761. $as_echo "no" >&6; }
  5762. fi
  5763. if test "x$ac_ct_DSYMUTIL" = x; then
  5764. DSYMUTIL=":"
  5765. else
  5766. case $cross_compiling:$ac_tool_warned in
  5767. yes:)
  5768. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5769. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5770. ac_tool_warned=yes ;;
  5771. esac
  5772. DSYMUTIL=$ac_ct_DSYMUTIL
  5773. fi
  5774. else
  5775. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5776. fi
  5777. if test -n "$ac_tool_prefix"; then
  5778. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5779. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5780. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5781. $as_echo_n "checking for $ac_word... " >&6; }
  5782. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  5783. $as_echo_n "(cached) " >&6
  5784. else
  5785. if test -n "$NMEDIT"; then
  5786. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5787. else
  5788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5789. for as_dir in $PATH
  5790. do
  5791. IFS=$as_save_IFS
  5792. test -z "$as_dir" && as_dir=.
  5793. for ac_exec_ext in '' $ac_executable_extensions; do
  5794. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5795. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5796. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5797. break 2
  5798. fi
  5799. done
  5800. done
  5801. IFS=$as_save_IFS
  5802. fi
  5803. fi
  5804. NMEDIT=$ac_cv_prog_NMEDIT
  5805. if test -n "$NMEDIT"; then
  5806. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  5807. $as_echo "$NMEDIT" >&6; }
  5808. else
  5809. { $as_echo "$as_me:$LINENO: result: no" >&5
  5810. $as_echo "no" >&6; }
  5811. fi
  5812. fi
  5813. if test -z "$ac_cv_prog_NMEDIT"; then
  5814. ac_ct_NMEDIT=$NMEDIT
  5815. # Extract the first word of "nmedit", so it can be a program name with args.
  5816. set dummy nmedit; ac_word=$2
  5817. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5818. $as_echo_n "checking for $ac_word... " >&6; }
  5819. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  5820. $as_echo_n "(cached) " >&6
  5821. else
  5822. if test -n "$ac_ct_NMEDIT"; then
  5823. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5824. else
  5825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5826. for as_dir in $PATH
  5827. do
  5828. IFS=$as_save_IFS
  5829. test -z "$as_dir" && as_dir=.
  5830. for ac_exec_ext in '' $ac_executable_extensions; do
  5831. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5832. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5833. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5834. break 2
  5835. fi
  5836. done
  5837. done
  5838. IFS=$as_save_IFS
  5839. fi
  5840. fi
  5841. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5842. if test -n "$ac_ct_NMEDIT"; then
  5843. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  5844. $as_echo "$ac_ct_NMEDIT" >&6; }
  5845. else
  5846. { $as_echo "$as_me:$LINENO: result: no" >&5
  5847. $as_echo "no" >&6; }
  5848. fi
  5849. if test "x$ac_ct_NMEDIT" = x; then
  5850. NMEDIT=":"
  5851. else
  5852. case $cross_compiling:$ac_tool_warned in
  5853. yes:)
  5854. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5855. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5856. ac_tool_warned=yes ;;
  5857. esac
  5858. NMEDIT=$ac_ct_NMEDIT
  5859. fi
  5860. else
  5861. NMEDIT="$ac_cv_prog_NMEDIT"
  5862. fi
  5863. if test -n "$ac_tool_prefix"; then
  5864. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5865. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5866. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5867. $as_echo_n "checking for $ac_word... " >&6; }
  5868. if test "${ac_cv_prog_LIPO+set}" = set; then
  5869. $as_echo_n "(cached) " >&6
  5870. else
  5871. if test -n "$LIPO"; then
  5872. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5873. else
  5874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5875. for as_dir in $PATH
  5876. do
  5877. IFS=$as_save_IFS
  5878. test -z "$as_dir" && as_dir=.
  5879. for ac_exec_ext in '' $ac_executable_extensions; do
  5880. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5881. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5882. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5883. break 2
  5884. fi
  5885. done
  5886. done
  5887. IFS=$as_save_IFS
  5888. fi
  5889. fi
  5890. LIPO=$ac_cv_prog_LIPO
  5891. if test -n "$LIPO"; then
  5892. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  5893. $as_echo "$LIPO" >&6; }
  5894. else
  5895. { $as_echo "$as_me:$LINENO: result: no" >&5
  5896. $as_echo "no" >&6; }
  5897. fi
  5898. fi
  5899. if test -z "$ac_cv_prog_LIPO"; then
  5900. ac_ct_LIPO=$LIPO
  5901. # Extract the first word of "lipo", so it can be a program name with args.
  5902. set dummy lipo; ac_word=$2
  5903. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5904. $as_echo_n "checking for $ac_word... " >&6; }
  5905. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  5906. $as_echo_n "(cached) " >&6
  5907. else
  5908. if test -n "$ac_ct_LIPO"; then
  5909. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5910. else
  5911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5912. for as_dir in $PATH
  5913. do
  5914. IFS=$as_save_IFS
  5915. test -z "$as_dir" && as_dir=.
  5916. for ac_exec_ext in '' $ac_executable_extensions; do
  5917. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5918. ac_cv_prog_ac_ct_LIPO="lipo"
  5919. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5920. break 2
  5921. fi
  5922. done
  5923. done
  5924. IFS=$as_save_IFS
  5925. fi
  5926. fi
  5927. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5928. if test -n "$ac_ct_LIPO"; then
  5929. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  5930. $as_echo "$ac_ct_LIPO" >&6; }
  5931. else
  5932. { $as_echo "$as_me:$LINENO: result: no" >&5
  5933. $as_echo "no" >&6; }
  5934. fi
  5935. if test "x$ac_ct_LIPO" = x; then
  5936. LIPO=":"
  5937. else
  5938. case $cross_compiling:$ac_tool_warned in
  5939. yes:)
  5940. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5941. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5942. ac_tool_warned=yes ;;
  5943. esac
  5944. LIPO=$ac_ct_LIPO
  5945. fi
  5946. else
  5947. LIPO="$ac_cv_prog_LIPO"
  5948. fi
  5949. if test -n "$ac_tool_prefix"; then
  5950. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5951. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5952. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5953. $as_echo_n "checking for $ac_word... " >&6; }
  5954. if test "${ac_cv_prog_OTOOL+set}" = set; then
  5955. $as_echo_n "(cached) " >&6
  5956. else
  5957. if test -n "$OTOOL"; then
  5958. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5959. else
  5960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5961. for as_dir in $PATH
  5962. do
  5963. IFS=$as_save_IFS
  5964. test -z "$as_dir" && as_dir=.
  5965. for ac_exec_ext in '' $ac_executable_extensions; do
  5966. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5967. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5968. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5969. break 2
  5970. fi
  5971. done
  5972. done
  5973. IFS=$as_save_IFS
  5974. fi
  5975. fi
  5976. OTOOL=$ac_cv_prog_OTOOL
  5977. if test -n "$OTOOL"; then
  5978. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  5979. $as_echo "$OTOOL" >&6; }
  5980. else
  5981. { $as_echo "$as_me:$LINENO: result: no" >&5
  5982. $as_echo "no" >&6; }
  5983. fi
  5984. fi
  5985. if test -z "$ac_cv_prog_OTOOL"; then
  5986. ac_ct_OTOOL=$OTOOL
  5987. # Extract the first word of "otool", so it can be a program name with args.
  5988. set dummy otool; ac_word=$2
  5989. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5990. $as_echo_n "checking for $ac_word... " >&6; }
  5991. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  5992. $as_echo_n "(cached) " >&6
  5993. else
  5994. if test -n "$ac_ct_OTOOL"; then
  5995. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5996. else
  5997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5998. for as_dir in $PATH
  5999. do
  6000. IFS=$as_save_IFS
  6001. test -z "$as_dir" && as_dir=.
  6002. for ac_exec_ext in '' $ac_executable_extensions; do
  6003. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6004. ac_cv_prog_ac_ct_OTOOL="otool"
  6005. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6006. break 2
  6007. fi
  6008. done
  6009. done
  6010. IFS=$as_save_IFS
  6011. fi
  6012. fi
  6013. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6014. if test -n "$ac_ct_OTOOL"; then
  6015. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  6016. $as_echo "$ac_ct_OTOOL" >&6; }
  6017. else
  6018. { $as_echo "$as_me:$LINENO: result: no" >&5
  6019. $as_echo "no" >&6; }
  6020. fi
  6021. if test "x$ac_ct_OTOOL" = x; then
  6022. OTOOL=":"
  6023. else
  6024. case $cross_compiling:$ac_tool_warned in
  6025. yes:)
  6026. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6027. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6028. ac_tool_warned=yes ;;
  6029. esac
  6030. OTOOL=$ac_ct_OTOOL
  6031. fi
  6032. else
  6033. OTOOL="$ac_cv_prog_OTOOL"
  6034. fi
  6035. if test -n "$ac_tool_prefix"; then
  6036. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6037. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6038. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6039. $as_echo_n "checking for $ac_word... " >&6; }
  6040. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  6041. $as_echo_n "(cached) " >&6
  6042. else
  6043. if test -n "$OTOOL64"; then
  6044. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6045. else
  6046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6047. for as_dir in $PATH
  6048. do
  6049. IFS=$as_save_IFS
  6050. test -z "$as_dir" && as_dir=.
  6051. for ac_exec_ext in '' $ac_executable_extensions; do
  6052. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6053. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6054. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6055. break 2
  6056. fi
  6057. done
  6058. done
  6059. IFS=$as_save_IFS
  6060. fi
  6061. fi
  6062. OTOOL64=$ac_cv_prog_OTOOL64
  6063. if test -n "$OTOOL64"; then
  6064. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  6065. $as_echo "$OTOOL64" >&6; }
  6066. else
  6067. { $as_echo "$as_me:$LINENO: result: no" >&5
  6068. $as_echo "no" >&6; }
  6069. fi
  6070. fi
  6071. if test -z "$ac_cv_prog_OTOOL64"; then
  6072. ac_ct_OTOOL64=$OTOOL64
  6073. # Extract the first word of "otool64", so it can be a program name with args.
  6074. set dummy otool64; ac_word=$2
  6075. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6076. $as_echo_n "checking for $ac_word... " >&6; }
  6077. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  6078. $as_echo_n "(cached) " >&6
  6079. else
  6080. if test -n "$ac_ct_OTOOL64"; then
  6081. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6082. else
  6083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6084. for as_dir in $PATH
  6085. do
  6086. IFS=$as_save_IFS
  6087. test -z "$as_dir" && as_dir=.
  6088. for ac_exec_ext in '' $ac_executable_extensions; do
  6089. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6090. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6091. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6092. break 2
  6093. fi
  6094. done
  6095. done
  6096. IFS=$as_save_IFS
  6097. fi
  6098. fi
  6099. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6100. if test -n "$ac_ct_OTOOL64"; then
  6101. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  6102. $as_echo "$ac_ct_OTOOL64" >&6; }
  6103. else
  6104. { $as_echo "$as_me:$LINENO: result: no" >&5
  6105. $as_echo "no" >&6; }
  6106. fi
  6107. if test "x$ac_ct_OTOOL64" = x; then
  6108. OTOOL64=":"
  6109. else
  6110. case $cross_compiling:$ac_tool_warned in
  6111. yes:)
  6112. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6113. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6114. ac_tool_warned=yes ;;
  6115. esac
  6116. OTOOL64=$ac_ct_OTOOL64
  6117. fi
  6118. else
  6119. OTOOL64="$ac_cv_prog_OTOOL64"
  6120. fi
  6121. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  6122. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6123. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  6124. $as_echo_n "(cached) " >&6
  6125. else
  6126. lt_cv_apple_cc_single_mod=no
  6127. if test -z "${LT_MULTI_MODULE}"; then
  6128. # By default we will add the -single_module flag. You can override
  6129. # by either setting the environment variable LT_MULTI_MODULE
  6130. # non-empty at configure time, or by adding -multi_module to the
  6131. # link flags.
  6132. rm -rf libconftest.dylib*
  6133. echo "int foo(void){return 1;}" > conftest.c
  6134. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6135. -dynamiclib -Wl,-single_module conftest.c" >&5
  6136. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6137. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6138. _lt_result=$?
  6139. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6140. lt_cv_apple_cc_single_mod=yes
  6141. else
  6142. cat conftest.err >&5
  6143. fi
  6144. rm -rf libconftest.dylib*
  6145. rm -f conftest.*
  6146. fi
  6147. fi
  6148. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  6149. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6150. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  6151. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6152. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  6153. $as_echo_n "(cached) " >&6
  6154. else
  6155. lt_cv_ld_exported_symbols_list=no
  6156. save_LDFLAGS=$LDFLAGS
  6157. echo "_main" > conftest.sym
  6158. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6159. cat >conftest.$ac_ext <<_ACEOF
  6160. /* confdefs.h. */
  6161. _ACEOF
  6162. cat confdefs.h >>conftest.$ac_ext
  6163. cat >>conftest.$ac_ext <<_ACEOF
  6164. /* end confdefs.h. */
  6165. int
  6166. main ()
  6167. {
  6168. ;
  6169. return 0;
  6170. }
  6171. _ACEOF
  6172. rm -f conftest.$ac_objext conftest$ac_exeext
  6173. if { (ac_try="$ac_link"
  6174. case "(($ac_try" in
  6175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6176. *) ac_try_echo=$ac_try;;
  6177. esac
  6178. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6179. $as_echo "$ac_try_echo") >&5
  6180. (eval "$ac_link") 2>conftest.er1
  6181. ac_status=$?
  6182. grep -v '^ *+' conftest.er1 >conftest.err
  6183. rm -f conftest.er1
  6184. cat conftest.err >&5
  6185. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6186. (exit $ac_status); } && {
  6187. test -z "$ac_c_werror_flag" ||
  6188. test ! -s conftest.err
  6189. } && test -s conftest$ac_exeext && {
  6190. test "$cross_compiling" = yes ||
  6191. $as_test_x conftest$ac_exeext
  6192. }; then
  6193. lt_cv_ld_exported_symbols_list=yes
  6194. else
  6195. $as_echo "$as_me: failed program was:" >&5
  6196. sed 's/^/| /' conftest.$ac_ext >&5
  6197. lt_cv_ld_exported_symbols_list=no
  6198. fi
  6199. rm -rf conftest.dSYM
  6200. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6201. conftest$ac_exeext conftest.$ac_ext
  6202. LDFLAGS="$save_LDFLAGS"
  6203. fi
  6204. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  6205. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6206. case $host_os in
  6207. rhapsody* | darwin1.[012])
  6208. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6209. darwin1.*)
  6210. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6211. darwin*) # darwin 5.x on
  6212. # if running on 10.5 or later, the deployment target defaults
  6213. # to the OS version, if on x86, and 10.4, the deployment
  6214. # target defaults to 10.4. Don't you love it?
  6215. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6216. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6217. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6218. 10.[012]*)
  6219. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6220. 10.*)
  6221. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6222. esac
  6223. ;;
  6224. esac
  6225. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6226. _lt_dar_single_mod='$single_module'
  6227. fi
  6228. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6229. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6230. else
  6231. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6232. fi
  6233. if test "$DSYMUTIL" != ":"; then
  6234. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6235. else
  6236. _lt_dsymutil=
  6237. fi
  6238. ;;
  6239. esac
  6240. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6241. $as_echo_n "checking for ANSI C header files... " >&6; }
  6242. if test "${ac_cv_header_stdc+set}" = set; then
  6243. $as_echo_n "(cached) " >&6
  6244. else
  6245. cat >conftest.$ac_ext <<_ACEOF
  6246. /* confdefs.h. */
  6247. _ACEOF
  6248. cat confdefs.h >>conftest.$ac_ext
  6249. cat >>conftest.$ac_ext <<_ACEOF
  6250. /* end confdefs.h. */
  6251. #include <stdlib.h>
  6252. #include <stdarg.h>
  6253. #include <string.h>
  6254. #include <float.h>
  6255. int
  6256. main ()
  6257. {
  6258. ;
  6259. return 0;
  6260. }
  6261. _ACEOF
  6262. rm -f conftest.$ac_objext
  6263. if { (ac_try="$ac_compile"
  6264. case "(($ac_try" in
  6265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6266. *) ac_try_echo=$ac_try;;
  6267. esac
  6268. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6269. $as_echo "$ac_try_echo") >&5
  6270. (eval "$ac_compile") 2>conftest.er1
  6271. ac_status=$?
  6272. grep -v '^ *+' conftest.er1 >conftest.err
  6273. rm -f conftest.er1
  6274. cat conftest.err >&5
  6275. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6276. (exit $ac_status); } && {
  6277. test -z "$ac_c_werror_flag" ||
  6278. test ! -s conftest.err
  6279. } && test -s conftest.$ac_objext; then
  6280. ac_cv_header_stdc=yes
  6281. else
  6282. $as_echo "$as_me: failed program was:" >&5
  6283. sed 's/^/| /' conftest.$ac_ext >&5
  6284. ac_cv_header_stdc=no
  6285. fi
  6286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6287. if test $ac_cv_header_stdc = yes; then
  6288. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6289. cat >conftest.$ac_ext <<_ACEOF
  6290. /* confdefs.h. */
  6291. _ACEOF
  6292. cat confdefs.h >>conftest.$ac_ext
  6293. cat >>conftest.$ac_ext <<_ACEOF
  6294. /* end confdefs.h. */
  6295. #include <string.h>
  6296. _ACEOF
  6297. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6298. $EGREP "memchr" >/dev/null 2>&1; then
  6299. :
  6300. else
  6301. ac_cv_header_stdc=no
  6302. fi
  6303. rm -f conftest*
  6304. fi
  6305. if test $ac_cv_header_stdc = yes; then
  6306. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6307. cat >conftest.$ac_ext <<_ACEOF
  6308. /* confdefs.h. */
  6309. _ACEOF
  6310. cat confdefs.h >>conftest.$ac_ext
  6311. cat >>conftest.$ac_ext <<_ACEOF
  6312. /* end confdefs.h. */
  6313. #include <stdlib.h>
  6314. _ACEOF
  6315. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6316. $EGREP "free" >/dev/null 2>&1; then
  6317. :
  6318. else
  6319. ac_cv_header_stdc=no
  6320. fi
  6321. rm -f conftest*
  6322. fi
  6323. if test $ac_cv_header_stdc = yes; then
  6324. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6325. if test "$cross_compiling" = yes; then
  6326. :
  6327. else
  6328. cat >conftest.$ac_ext <<_ACEOF
  6329. /* confdefs.h. */
  6330. _ACEOF
  6331. cat confdefs.h >>conftest.$ac_ext
  6332. cat >>conftest.$ac_ext <<_ACEOF
  6333. /* end confdefs.h. */
  6334. #include <ctype.h>
  6335. #include <stdlib.h>
  6336. #if ((' ' & 0x0FF) == 0x020)
  6337. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6338. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6339. #else
  6340. # define ISLOWER(c) \
  6341. (('a' <= (c) && (c) <= 'i') \
  6342. || ('j' <= (c) && (c) <= 'r') \
  6343. || ('s' <= (c) && (c) <= 'z'))
  6344. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6345. #endif
  6346. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6347. int
  6348. main ()
  6349. {
  6350. int i;
  6351. for (i = 0; i < 256; i++)
  6352. if (XOR (islower (i), ISLOWER (i))
  6353. || toupper (i) != TOUPPER (i))
  6354. return 2;
  6355. return 0;
  6356. }
  6357. _ACEOF
  6358. rm -f conftest$ac_exeext
  6359. if { (ac_try="$ac_link"
  6360. case "(($ac_try" in
  6361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6362. *) ac_try_echo=$ac_try;;
  6363. esac
  6364. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6365. $as_echo "$ac_try_echo") >&5
  6366. (eval "$ac_link") 2>&5
  6367. ac_status=$?
  6368. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6369. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6370. { (case "(($ac_try" in
  6371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6372. *) ac_try_echo=$ac_try;;
  6373. esac
  6374. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6375. $as_echo "$ac_try_echo") >&5
  6376. (eval "$ac_try") 2>&5
  6377. ac_status=$?
  6378. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6379. (exit $ac_status); }; }; then
  6380. :
  6381. else
  6382. $as_echo "$as_me: program exited with status $ac_status" >&5
  6383. $as_echo "$as_me: failed program was:" >&5
  6384. sed 's/^/| /' conftest.$ac_ext >&5
  6385. ( exit $ac_status )
  6386. ac_cv_header_stdc=no
  6387. fi
  6388. rm -rf conftest.dSYM
  6389. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6390. fi
  6391. fi
  6392. fi
  6393. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6394. $as_echo "$ac_cv_header_stdc" >&6; }
  6395. if test $ac_cv_header_stdc = yes; then
  6396. cat >>confdefs.h <<\_ACEOF
  6397. #define STDC_HEADERS 1
  6398. _ACEOF
  6399. fi
  6400. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6401. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6402. inttypes.h stdint.h unistd.h
  6403. do
  6404. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6405. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6406. $as_echo_n "checking for $ac_header... " >&6; }
  6407. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6408. $as_echo_n "(cached) " >&6
  6409. else
  6410. cat >conftest.$ac_ext <<_ACEOF
  6411. /* confdefs.h. */
  6412. _ACEOF
  6413. cat confdefs.h >>conftest.$ac_ext
  6414. cat >>conftest.$ac_ext <<_ACEOF
  6415. /* end confdefs.h. */
  6416. $ac_includes_default
  6417. #include <$ac_header>
  6418. _ACEOF
  6419. rm -f conftest.$ac_objext
  6420. if { (ac_try="$ac_compile"
  6421. case "(($ac_try" in
  6422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6423. *) ac_try_echo=$ac_try;;
  6424. esac
  6425. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6426. $as_echo "$ac_try_echo") >&5
  6427. (eval "$ac_compile") 2>conftest.er1
  6428. ac_status=$?
  6429. grep -v '^ *+' conftest.er1 >conftest.err
  6430. rm -f conftest.er1
  6431. cat conftest.err >&5
  6432. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6433. (exit $ac_status); } && {
  6434. test -z "$ac_c_werror_flag" ||
  6435. test ! -s conftest.err
  6436. } && test -s conftest.$ac_objext; then
  6437. eval "$as_ac_Header=yes"
  6438. else
  6439. $as_echo "$as_me: failed program was:" >&5
  6440. sed 's/^/| /' conftest.$ac_ext >&5
  6441. eval "$as_ac_Header=no"
  6442. fi
  6443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6444. fi
  6445. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6446. $as_echo "$as_val"'`
  6447. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6448. $as_echo "$ac_res" >&6; }
  6449. as_val=`eval 'as_val=${'$as_ac_Header'}
  6450. $as_echo "$as_val"'`
  6451. if test "x$as_val" = x""yes; then
  6452. cat >>confdefs.h <<_ACEOF
  6453. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6454. _ACEOF
  6455. fi
  6456. done
  6457. for ac_header in dlfcn.h
  6458. do
  6459. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6460. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6461. $as_echo_n "checking for $ac_header... " >&6; }
  6462. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6463. $as_echo_n "(cached) " >&6
  6464. else
  6465. cat >conftest.$ac_ext <<_ACEOF
  6466. /* confdefs.h. */
  6467. _ACEOF
  6468. cat confdefs.h >>conftest.$ac_ext
  6469. cat >>conftest.$ac_ext <<_ACEOF
  6470. /* end confdefs.h. */
  6471. $ac_includes_default
  6472. #include <$ac_header>
  6473. _ACEOF
  6474. rm -f conftest.$ac_objext
  6475. if { (ac_try="$ac_compile"
  6476. case "(($ac_try" in
  6477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6478. *) ac_try_echo=$ac_try;;
  6479. esac
  6480. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6481. $as_echo "$ac_try_echo") >&5
  6482. (eval "$ac_compile") 2>conftest.er1
  6483. ac_status=$?
  6484. grep -v '^ *+' conftest.er1 >conftest.err
  6485. rm -f conftest.er1
  6486. cat conftest.err >&5
  6487. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6488. (exit $ac_status); } && {
  6489. test -z "$ac_c_werror_flag" ||
  6490. test ! -s conftest.err
  6491. } && test -s conftest.$ac_objext; then
  6492. eval "$as_ac_Header=yes"
  6493. else
  6494. $as_echo "$as_me: failed program was:" >&5
  6495. sed 's/^/| /' conftest.$ac_ext >&5
  6496. eval "$as_ac_Header=no"
  6497. fi
  6498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6499. fi
  6500. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6501. $as_echo "$as_val"'`
  6502. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6503. $as_echo "$ac_res" >&6; }
  6504. as_val=`eval 'as_val=${'$as_ac_Header'}
  6505. $as_echo "$as_val"'`
  6506. if test "x$as_val" = x""yes; then
  6507. cat >>confdefs.h <<_ACEOF
  6508. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6509. _ACEOF
  6510. fi
  6511. done
  6512. # Set options
  6513. enable_dlopen=no
  6514. # Check whether --enable-shared was given.
  6515. if test "${enable_shared+set}" = set; then
  6516. enableval=$enable_shared; p=${PACKAGE-default}
  6517. case $enableval in
  6518. yes) enable_shared=yes ;;
  6519. no) enable_shared=no ;;
  6520. *)
  6521. enable_shared=no
  6522. # Look at the argument we got. We use all the common list separators.
  6523. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6524. for pkg in $enableval; do
  6525. IFS="$lt_save_ifs"
  6526. if test "X$pkg" = "X$p"; then
  6527. enable_shared=yes
  6528. fi
  6529. done
  6530. IFS="$lt_save_ifs"
  6531. ;;
  6532. esac
  6533. else
  6534. enable_shared=yes
  6535. fi
  6536. # Check whether --enable-static was given.
  6537. if test "${enable_static+set}" = set; then
  6538. enableval=$enable_static; p=${PACKAGE-default}
  6539. case $enableval in
  6540. yes) enable_static=yes ;;
  6541. no) enable_static=no ;;
  6542. *)
  6543. enable_static=no
  6544. # Look at the argument we got. We use all the common list separators.
  6545. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6546. for pkg in $enableval; do
  6547. IFS="$lt_save_ifs"
  6548. if test "X$pkg" = "X$p"; then
  6549. enable_static=yes
  6550. fi
  6551. done
  6552. IFS="$lt_save_ifs"
  6553. ;;
  6554. esac
  6555. else
  6556. enable_static=yes
  6557. fi
  6558. # Check whether --with-pic was given.
  6559. if test "${with_pic+set}" = set; then
  6560. withval=$with_pic; pic_mode="$withval"
  6561. else
  6562. pic_mode=default
  6563. fi
  6564. test -z "$pic_mode" && pic_mode=default
  6565. # Check whether --enable-fast-install was given.
  6566. if test "${enable_fast_install+set}" = set; then
  6567. enableval=$enable_fast_install; p=${PACKAGE-default}
  6568. case $enableval in
  6569. yes) enable_fast_install=yes ;;
  6570. no) enable_fast_install=no ;;
  6571. *)
  6572. enable_fast_install=no
  6573. # Look at the argument we got. We use all the common list separators.
  6574. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6575. for pkg in $enableval; do
  6576. IFS="$lt_save_ifs"
  6577. if test "X$pkg" = "X$p"; then
  6578. enable_fast_install=yes
  6579. fi
  6580. done
  6581. IFS="$lt_save_ifs"
  6582. ;;
  6583. esac
  6584. else
  6585. enable_fast_install=yes
  6586. fi
  6587. # This can be used to rebuild libtool when needed
  6588. LIBTOOL_DEPS="$ltmain"
  6589. # Always use our own libtool.
  6590. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6591. test -z "$LN_S" && LN_S="ln -s"
  6592. if test -n "${ZSH_VERSION+set}" ; then
  6593. setopt NO_GLOB_SUBST
  6594. fi
  6595. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  6596. $as_echo_n "checking for objdir... " >&6; }
  6597. if test "${lt_cv_objdir+set}" = set; then
  6598. $as_echo_n "(cached) " >&6
  6599. else
  6600. rm -f .libs 2>/dev/null
  6601. mkdir .libs 2>/dev/null
  6602. if test -d .libs; then
  6603. lt_cv_objdir=.libs
  6604. else
  6605. # MS-DOS does not allow filenames that begin with a dot.
  6606. lt_cv_objdir=_libs
  6607. fi
  6608. rmdir .libs 2>/dev/null
  6609. fi
  6610. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6611. $as_echo "$lt_cv_objdir" >&6; }
  6612. objdir=$lt_cv_objdir
  6613. cat >>confdefs.h <<_ACEOF
  6614. #define LT_OBJDIR "$lt_cv_objdir/"
  6615. _ACEOF
  6616. case $host_os in
  6617. aix3*)
  6618. # AIX sometimes has problems with the GCC collect2 program. For some
  6619. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6620. # vanish in a puff of smoke.
  6621. if test "X${COLLECT_NAMES+set}" != Xset; then
  6622. COLLECT_NAMES=
  6623. export COLLECT_NAMES
  6624. fi
  6625. ;;
  6626. esac
  6627. # Sed substitution that helps us do robust quoting. It backslashifies
  6628. # metacharacters that are still active within double-quoted strings.
  6629. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6630. # Same as above, but do not quote variable references.
  6631. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6632. # Sed substitution to delay expansion of an escaped shell variable in a
  6633. # double_quote_subst'ed string.
  6634. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6635. # Sed substitution to delay expansion of an escaped single quote.
  6636. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6637. # Sed substitution to avoid accidental globbing in evaled expressions
  6638. no_glob_subst='s/\*/\\\*/g'
  6639. # Global variables:
  6640. ofile=libtool
  6641. can_build_shared=yes
  6642. # All known linkers require a `.a' archive for static linking (except MSVC,
  6643. # which needs '.lib').
  6644. libext=a
  6645. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6646. old_CC="$CC"
  6647. old_CFLAGS="$CFLAGS"
  6648. # Set sane defaults for various variables
  6649. test -z "$CC" && CC=cc
  6650. test -z "$LTCC" && LTCC=$CC
  6651. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6652. test -z "$LD" && LD=ld
  6653. test -z "$ac_objext" && ac_objext=o
  6654. for cc_temp in $compiler""; do
  6655. case $cc_temp in
  6656. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6657. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6658. \-*) ;;
  6659. *) break;;
  6660. esac
  6661. done
  6662. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6663. # Only perform the check for file, if the check method requires it
  6664. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6665. case $deplibs_check_method in
  6666. file_magic*)
  6667. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6668. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6669. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6670. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6671. $as_echo_n "(cached) " >&6
  6672. else
  6673. case $MAGIC_CMD in
  6674. [\\/*] | ?:[\\/]*)
  6675. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6676. ;;
  6677. *)
  6678. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6679. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6680. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6681. for ac_dir in $ac_dummy; do
  6682. IFS="$lt_save_ifs"
  6683. test -z "$ac_dir" && ac_dir=.
  6684. if test -f $ac_dir/${ac_tool_prefix}file; then
  6685. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6686. if test -n "$file_magic_test_file"; then
  6687. case $deplibs_check_method in
  6688. "file_magic "*)
  6689. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6690. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6691. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6692. $EGREP "$file_magic_regex" > /dev/null; then
  6693. :
  6694. else
  6695. cat <<_LT_EOF 1>&2
  6696. *** Warning: the command libtool uses to detect shared libraries,
  6697. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6698. *** The result is that libtool may fail to recognize shared libraries
  6699. *** as such. This will affect the creation of libtool libraries that
  6700. *** depend on shared libraries, but programs linked with such libtool
  6701. *** libraries will work regardless of this problem. Nevertheless, you
  6702. *** may want to report the problem to your system manager and/or to
  6703. *** [email protected]
  6704. _LT_EOF
  6705. fi ;;
  6706. esac
  6707. fi
  6708. break
  6709. fi
  6710. done
  6711. IFS="$lt_save_ifs"
  6712. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6713. ;;
  6714. esac
  6715. fi
  6716. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6717. if test -n "$MAGIC_CMD"; then
  6718. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6719. $as_echo "$MAGIC_CMD" >&6; }
  6720. else
  6721. { $as_echo "$as_me:$LINENO: result: no" >&5
  6722. $as_echo "no" >&6; }
  6723. fi
  6724. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6725. if test -n "$ac_tool_prefix"; then
  6726. { $as_echo "$as_me:$LINENO: checking for file" >&5
  6727. $as_echo_n "checking for file... " >&6; }
  6728. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6729. $as_echo_n "(cached) " >&6
  6730. else
  6731. case $MAGIC_CMD in
  6732. [\\/*] | ?:[\\/]*)
  6733. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6734. ;;
  6735. *)
  6736. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6737. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6738. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6739. for ac_dir in $ac_dummy; do
  6740. IFS="$lt_save_ifs"
  6741. test -z "$ac_dir" && ac_dir=.
  6742. if test -f $ac_dir/file; then
  6743. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6744. if test -n "$file_magic_test_file"; then
  6745. case $deplibs_check_method in
  6746. "file_magic "*)
  6747. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6748. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6749. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6750. $EGREP "$file_magic_regex" > /dev/null; then
  6751. :
  6752. else
  6753. cat <<_LT_EOF 1>&2
  6754. *** Warning: the command libtool uses to detect shared libraries,
  6755. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6756. *** The result is that libtool may fail to recognize shared libraries
  6757. *** as such. This will affect the creation of libtool libraries that
  6758. *** depend on shared libraries, but programs linked with such libtool
  6759. *** libraries will work regardless of this problem. Nevertheless, you
  6760. *** may want to report the problem to your system manager and/or to
  6761. *** [email protected]
  6762. _LT_EOF
  6763. fi ;;
  6764. esac
  6765. fi
  6766. break
  6767. fi
  6768. done
  6769. IFS="$lt_save_ifs"
  6770. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6771. ;;
  6772. esac
  6773. fi
  6774. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6775. if test -n "$MAGIC_CMD"; then
  6776. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6777. $as_echo "$MAGIC_CMD" >&6; }
  6778. else
  6779. { $as_echo "$as_me:$LINENO: result: no" >&5
  6780. $as_echo "no" >&6; }
  6781. fi
  6782. else
  6783. MAGIC_CMD=:
  6784. fi
  6785. fi
  6786. fi
  6787. ;;
  6788. esac
  6789. # Use C for the default configuration in the libtool script
  6790. lt_save_CC="$CC"
  6791. ac_ext=c
  6792. ac_cpp='$CPP $CPPFLAGS'
  6793. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6794. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6795. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6796. # Source file extension for C test sources.
  6797. ac_ext=c
  6798. # Object file extension for compiled C test sources.
  6799. objext=o
  6800. objext=$objext
  6801. # Code to be used in simple compile tests
  6802. lt_simple_compile_test_code="int some_variable = 0;"
  6803. # Code to be used in simple link tests
  6804. lt_simple_link_test_code='int main(){return(0);}'
  6805. # If no C compiler was specified, use CC.
  6806. LTCC=${LTCC-"$CC"}
  6807. # If no C compiler flags were specified, use CFLAGS.
  6808. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6809. # Allow CC to be a program name with arguments.
  6810. compiler=$CC
  6811. # Save the default compiler, since it gets overwritten when the other
  6812. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6813. compiler_DEFAULT=$CC
  6814. # save warnings/boilerplate of simple test code
  6815. ac_outfile=conftest.$ac_objext
  6816. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6817. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6818. _lt_compiler_boilerplate=`cat conftest.err`
  6819. $RM conftest*
  6820. ac_outfile=conftest.$ac_objext
  6821. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6822. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6823. _lt_linker_boilerplate=`cat conftest.err`
  6824. $RM -r conftest*
  6825. if test -n "$compiler"; then
  6826. lt_prog_compiler_no_builtin_flag=
  6827. if test "$GCC" = yes; then
  6828. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6829. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6830. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6831. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6832. $as_echo_n "(cached) " >&6
  6833. else
  6834. lt_cv_prog_compiler_rtti_exceptions=no
  6835. ac_outfile=conftest.$ac_objext
  6836. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6837. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6838. # Insert the option either (1) after the last *FLAGS variable, or
  6839. # (2) before a word containing "conftest.", or (3) at the end.
  6840. # Note that $ac_compile itself does not contain backslashes and begins
  6841. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6842. # The option is referenced via a variable to avoid confusing sed.
  6843. lt_compile=`echo "$ac_compile" | $SED \
  6844. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6845. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6846. -e 's:$: $lt_compiler_flag:'`
  6847. (eval echo "\"\$as_me:7925: $lt_compile\"" >&5)
  6848. (eval "$lt_compile" 2>conftest.err)
  6849. ac_status=$?
  6850. cat conftest.err >&5
  6851. echo "$as_me:7929: \$? = $ac_status" >&5
  6852. if (exit $ac_status) && test -s "$ac_outfile"; then
  6853. # The compiler can only warn and ignore the option if not recognized
  6854. # So say no if there are warnings other than the usual output.
  6855. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6856. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6857. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6858. lt_cv_prog_compiler_rtti_exceptions=yes
  6859. fi
  6860. fi
  6861. $RM conftest*
  6862. fi
  6863. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6864. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6865. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6866. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6867. else
  6868. :
  6869. fi
  6870. fi
  6871. lt_prog_compiler_wl=
  6872. lt_prog_compiler_pic=
  6873. lt_prog_compiler_static=
  6874. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6875. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  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. hpux*)
  6917. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6918. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6919. # sets the default TLS model and affects inlining.
  6920. case $host_cpu in
  6921. hppa*64*)
  6922. # +Z the default
  6923. ;;
  6924. *)
  6925. lt_prog_compiler_pic='-fPIC'
  6926. ;;
  6927. esac
  6928. ;;
  6929. interix[3-9]*)
  6930. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6931. # Instead, we relocate shared libraries at runtime.
  6932. ;;
  6933. msdosdjgpp*)
  6934. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6935. # on systems that don't support them.
  6936. lt_prog_compiler_can_build_shared=no
  6937. enable_shared=no
  6938. ;;
  6939. *nto* | *qnx*)
  6940. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6941. # it will coredump.
  6942. lt_prog_compiler_pic='-fPIC -shared'
  6943. ;;
  6944. sysv4*MP*)
  6945. if test -d /usr/nec; then
  6946. lt_prog_compiler_pic=-Kconform_pic
  6947. fi
  6948. ;;
  6949. *)
  6950. lt_prog_compiler_pic='-fPIC'
  6951. ;;
  6952. esac
  6953. else
  6954. # PORTME Check for flag to pass linker flags through the system compiler.
  6955. case $host_os in
  6956. aix*)
  6957. lt_prog_compiler_wl='-Wl,'
  6958. if test "$host_cpu" = ia64; then
  6959. # AIX 5 now supports IA64 processor
  6960. lt_prog_compiler_static='-Bstatic'
  6961. else
  6962. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6963. fi
  6964. ;;
  6965. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6966. # This hack is so that the source file can tell whether it is being
  6967. # built for inclusion in a dll (and should export symbols for example).
  6968. lt_prog_compiler_pic='-DDLL_EXPORT'
  6969. ;;
  6970. hpux9* | hpux10* | hpux11*)
  6971. lt_prog_compiler_wl='-Wl,'
  6972. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6973. # not for PA HP-UX.
  6974. case $host_cpu in
  6975. hppa*64*|ia64*)
  6976. # +Z the default
  6977. ;;
  6978. *)
  6979. lt_prog_compiler_pic='+Z'
  6980. ;;
  6981. esac
  6982. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6983. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6984. ;;
  6985. irix5* | irix6* | nonstopux*)
  6986. lt_prog_compiler_wl='-Wl,'
  6987. # PIC (with -KPIC) is the default.
  6988. lt_prog_compiler_static='-non_shared'
  6989. ;;
  6990. linux* | k*bsd*-gnu)
  6991. case $cc_basename in
  6992. # old Intel for x86_64 which still supported -KPIC.
  6993. ecc*)
  6994. lt_prog_compiler_wl='-Wl,'
  6995. lt_prog_compiler_pic='-KPIC'
  6996. lt_prog_compiler_static='-static'
  6997. ;;
  6998. # icc used to be incompatible with GCC.
  6999. # ICC 10 doesn't accept -KPIC any more.
  7000. icc* | ifort*)
  7001. lt_prog_compiler_wl='-Wl,'
  7002. lt_prog_compiler_pic='-fPIC'
  7003. lt_prog_compiler_static='-static'
  7004. ;;
  7005. # Lahey Fortran 8.1.
  7006. lf95*)
  7007. lt_prog_compiler_wl='-Wl,'
  7008. lt_prog_compiler_pic='--shared'
  7009. lt_prog_compiler_static='--static'
  7010. ;;
  7011. pgcc* | pgf77* | pgf90* | pgf95*)
  7012. # Portland Group compilers (*not* the Pentium gcc compiler,
  7013. # which looks to be a dead project)
  7014. lt_prog_compiler_wl='-Wl,'
  7015. lt_prog_compiler_pic='-fpic'
  7016. lt_prog_compiler_static='-Bstatic'
  7017. ;;
  7018. ccc*)
  7019. lt_prog_compiler_wl='-Wl,'
  7020. # All Alpha code is PIC.
  7021. lt_prog_compiler_static='-non_shared'
  7022. ;;
  7023. xl*)
  7024. # IBM XL C 8.0/Fortran 10.1 on PPC
  7025. lt_prog_compiler_wl='-Wl,'
  7026. lt_prog_compiler_pic='-qpic'
  7027. lt_prog_compiler_static='-qstaticlink'
  7028. ;;
  7029. *)
  7030. case `$CC -V 2>&1 | sed 5q` in
  7031. *Sun\ C*)
  7032. # Sun C 5.9
  7033. lt_prog_compiler_pic='-KPIC'
  7034. lt_prog_compiler_static='-Bstatic'
  7035. lt_prog_compiler_wl='-Wl,'
  7036. ;;
  7037. *Sun\ F*)
  7038. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7039. lt_prog_compiler_pic='-KPIC'
  7040. lt_prog_compiler_static='-Bstatic'
  7041. lt_prog_compiler_wl=''
  7042. ;;
  7043. esac
  7044. ;;
  7045. esac
  7046. ;;
  7047. newsos6)
  7048. lt_prog_compiler_pic='-KPIC'
  7049. lt_prog_compiler_static='-Bstatic'
  7050. ;;
  7051. *nto* | *qnx*)
  7052. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7053. # it will coredump.
  7054. lt_prog_compiler_pic='-fPIC -shared'
  7055. ;;
  7056. osf3* | osf4* | osf5*)
  7057. lt_prog_compiler_wl='-Wl,'
  7058. # All OSF/1 code is PIC.
  7059. lt_prog_compiler_static='-non_shared'
  7060. ;;
  7061. rdos*)
  7062. lt_prog_compiler_static='-non_shared'
  7063. ;;
  7064. solaris*)
  7065. lt_prog_compiler_pic='-KPIC'
  7066. lt_prog_compiler_static='-Bstatic'
  7067. case $cc_basename in
  7068. f77* | f90* | f95*)
  7069. lt_prog_compiler_wl='-Qoption ld ';;
  7070. *)
  7071. lt_prog_compiler_wl='-Wl,';;
  7072. esac
  7073. ;;
  7074. sunos4*)
  7075. lt_prog_compiler_wl='-Qoption ld '
  7076. lt_prog_compiler_pic='-PIC'
  7077. lt_prog_compiler_static='-Bstatic'
  7078. ;;
  7079. sysv4 | sysv4.2uw2* | sysv4.3*)
  7080. lt_prog_compiler_wl='-Wl,'
  7081. lt_prog_compiler_pic='-KPIC'
  7082. lt_prog_compiler_static='-Bstatic'
  7083. ;;
  7084. sysv4*MP*)
  7085. if test -d /usr/nec ;then
  7086. lt_prog_compiler_pic='-Kconform_pic'
  7087. lt_prog_compiler_static='-Bstatic'
  7088. fi
  7089. ;;
  7090. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7091. lt_prog_compiler_wl='-Wl,'
  7092. lt_prog_compiler_pic='-KPIC'
  7093. lt_prog_compiler_static='-Bstatic'
  7094. ;;
  7095. unicos*)
  7096. lt_prog_compiler_wl='-Wl,'
  7097. lt_prog_compiler_can_build_shared=no
  7098. ;;
  7099. uts4*)
  7100. lt_prog_compiler_pic='-pic'
  7101. lt_prog_compiler_static='-Bstatic'
  7102. ;;
  7103. *)
  7104. lt_prog_compiler_can_build_shared=no
  7105. ;;
  7106. esac
  7107. fi
  7108. case $host_os in
  7109. # For platforms which do not support PIC, -DPIC is meaningless:
  7110. *djgpp*)
  7111. lt_prog_compiler_pic=
  7112. ;;
  7113. *)
  7114. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7115. ;;
  7116. esac
  7117. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7118. $as_echo "$lt_prog_compiler_pic" >&6; }
  7119. #
  7120. # Check to make sure the PIC flag actually works.
  7121. #
  7122. if test -n "$lt_prog_compiler_pic"; then
  7123. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7124. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7125. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  7126. $as_echo_n "(cached) " >&6
  7127. else
  7128. lt_cv_prog_compiler_pic_works=no
  7129. ac_outfile=conftest.$ac_objext
  7130. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7131. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7132. # Insert the option either (1) after the last *FLAGS variable, or
  7133. # (2) before a word containing "conftest.", or (3) at the end.
  7134. # Note that $ac_compile itself does not contain backslashes and begins
  7135. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7136. # The option is referenced via a variable to avoid confusing sed.
  7137. lt_compile=`echo "$ac_compile" | $SED \
  7138. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7139. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7140. -e 's:$: $lt_compiler_flag:'`
  7141. (eval echo "\"\$as_me:8264: $lt_compile\"" >&5)
  7142. (eval "$lt_compile" 2>conftest.err)
  7143. ac_status=$?
  7144. cat conftest.err >&5
  7145. echo "$as_me:8268: \$? = $ac_status" >&5
  7146. if (exit $ac_status) && test -s "$ac_outfile"; then
  7147. # The compiler can only warn and ignore the option if not recognized
  7148. # So say no if there are warnings other than the usual output.
  7149. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7150. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7151. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7152. lt_cv_prog_compiler_pic_works=yes
  7153. fi
  7154. fi
  7155. $RM conftest*
  7156. fi
  7157. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  7158. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7159. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7160. case $lt_prog_compiler_pic in
  7161. "" | " "*) ;;
  7162. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7163. esac
  7164. else
  7165. lt_prog_compiler_pic=
  7166. lt_prog_compiler_can_build_shared=no
  7167. fi
  7168. fi
  7169. #
  7170. # Check to make sure the static flag actually works.
  7171. #
  7172. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7173. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7174. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7175. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  7176. $as_echo_n "(cached) " >&6
  7177. else
  7178. lt_cv_prog_compiler_static_works=no
  7179. save_LDFLAGS="$LDFLAGS"
  7180. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7181. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7182. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7183. # The linker can only warn and ignore the option if not recognized
  7184. # So say no if there are warnings
  7185. if test -s conftest.err; then
  7186. # Append any errors to the config.log.
  7187. cat conftest.err 1>&5
  7188. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7189. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7190. if diff conftest.exp conftest.er2 >/dev/null; then
  7191. lt_cv_prog_compiler_static_works=yes
  7192. fi
  7193. else
  7194. lt_cv_prog_compiler_static_works=yes
  7195. fi
  7196. fi
  7197. $RM -r conftest*
  7198. LDFLAGS="$save_LDFLAGS"
  7199. fi
  7200. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  7201. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7202. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7203. :
  7204. else
  7205. lt_prog_compiler_static=
  7206. fi
  7207. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7208. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7209. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7210. $as_echo_n "(cached) " >&6
  7211. else
  7212. lt_cv_prog_compiler_c_o=no
  7213. $RM -r conftest 2>/dev/null
  7214. mkdir conftest
  7215. cd conftest
  7216. mkdir out
  7217. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7218. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7219. # Insert the option either (1) after the last *FLAGS variable, or
  7220. # (2) before a word containing "conftest.", or (3) at the end.
  7221. # Note that $ac_compile itself does not contain backslashes and begins
  7222. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7223. lt_compile=`echo "$ac_compile" | $SED \
  7224. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7225. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7226. -e 's:$: $lt_compiler_flag:'`
  7227. (eval echo "\"\$as_me:8369: $lt_compile\"" >&5)
  7228. (eval "$lt_compile" 2>out/conftest.err)
  7229. ac_status=$?
  7230. cat out/conftest.err >&5
  7231. echo "$as_me:8373: \$? = $ac_status" >&5
  7232. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7233. then
  7234. # The compiler can only warn and ignore the option if not recognized
  7235. # So say no if there are warnings
  7236. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7237. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7238. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7239. lt_cv_prog_compiler_c_o=yes
  7240. fi
  7241. fi
  7242. chmod u+w . 2>&5
  7243. $RM conftest*
  7244. # SGI C++ compiler will create directory out/ii_files/ for
  7245. # template instantiation
  7246. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7247. $RM out/* && rmdir out
  7248. cd ..
  7249. $RM -r conftest
  7250. $RM conftest*
  7251. fi
  7252. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7253. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7254. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7255. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7256. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7257. $as_echo_n "(cached) " >&6
  7258. else
  7259. lt_cv_prog_compiler_c_o=no
  7260. $RM -r conftest 2>/dev/null
  7261. mkdir conftest
  7262. cd conftest
  7263. mkdir out
  7264. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7265. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7266. # Insert the option either (1) after the last *FLAGS variable, or
  7267. # (2) before a word containing "conftest.", or (3) at the end.
  7268. # Note that $ac_compile itself does not contain backslashes and begins
  7269. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7270. lt_compile=`echo "$ac_compile" | $SED \
  7271. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7272. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7273. -e 's:$: $lt_compiler_flag:'`
  7274. (eval echo "\"\$as_me:8424: $lt_compile\"" >&5)
  7275. (eval "$lt_compile" 2>out/conftest.err)
  7276. ac_status=$?
  7277. cat out/conftest.err >&5
  7278. echo "$as_me:8428: \$? = $ac_status" >&5
  7279. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7280. then
  7281. # The compiler can only warn and ignore the option if not recognized
  7282. # So say no if there are warnings
  7283. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7284. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7285. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7286. lt_cv_prog_compiler_c_o=yes
  7287. fi
  7288. fi
  7289. chmod u+w . 2>&5
  7290. $RM conftest*
  7291. # SGI C++ compiler will create directory out/ii_files/ for
  7292. # template instantiation
  7293. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7294. $RM out/* && rmdir out
  7295. cd ..
  7296. $RM -r conftest
  7297. $RM conftest*
  7298. fi
  7299. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7300. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7301. hard_links="nottested"
  7302. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7303. # do not overwrite the value of need_locks provided by the user
  7304. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7305. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7306. hard_links=yes
  7307. $RM conftest*
  7308. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7309. touch conftest.a
  7310. ln conftest.a conftest.b 2>&5 || hard_links=no
  7311. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7312. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  7313. $as_echo "$hard_links" >&6; }
  7314. if test "$hard_links" = no; then
  7315. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7316. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7317. need_locks=warn
  7318. fi
  7319. else
  7320. need_locks=no
  7321. fi
  7322. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7323. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7324. runpath_var=
  7325. allow_undefined_flag=
  7326. always_export_symbols=no
  7327. archive_cmds=
  7328. archive_expsym_cmds=
  7329. compiler_needs_object=no
  7330. enable_shared_with_static_runtimes=no
  7331. export_dynamic_flag_spec=
  7332. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7333. hardcode_automatic=no
  7334. hardcode_direct=no
  7335. hardcode_direct_absolute=no
  7336. hardcode_libdir_flag_spec=
  7337. hardcode_libdir_flag_spec_ld=
  7338. hardcode_libdir_separator=
  7339. hardcode_minus_L=no
  7340. hardcode_shlibpath_var=unsupported
  7341. inherit_rpath=no
  7342. link_all_deplibs=unknown
  7343. module_cmds=
  7344. module_expsym_cmds=
  7345. old_archive_from_new_cmds=
  7346. old_archive_from_expsyms_cmds=
  7347. thread_safe_flag_spec=
  7348. whole_archive_flag_spec=
  7349. # include_expsyms should be a list of space-separated symbols to be *always*
  7350. # included in the symbol list
  7351. include_expsyms=
  7352. # exclude_expsyms can be an extended regexp of symbols to exclude
  7353. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7354. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7355. # as well as any symbol that contains `d'.
  7356. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7357. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7358. # platforms (ab)use it in PIC code, but their linkers get confused if
  7359. # the symbol is explicitly referenced. Since portable code cannot
  7360. # rely on this symbol name, it's probably fine to never include it in
  7361. # preloaded symbol tables.
  7362. # Exclude shared library initialization/finalization symbols.
  7363. extract_expsyms_cmds=
  7364. case $host_os in
  7365. cygwin* | mingw* | pw32* | cegcc*)
  7366. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7367. # When not using gcc, we currently assume that we are using
  7368. # Microsoft Visual C++.
  7369. if test "$GCC" != yes; then
  7370. with_gnu_ld=no
  7371. fi
  7372. ;;
  7373. interix*)
  7374. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7375. with_gnu_ld=yes
  7376. ;;
  7377. openbsd*)
  7378. with_gnu_ld=no
  7379. ;;
  7380. esac
  7381. ld_shlibs=yes
  7382. if test "$with_gnu_ld" = yes; then
  7383. # If archive_cmds runs LD, not CC, wlarc should be empty
  7384. wlarc='${wl}'
  7385. # Set some defaults for GNU ld with shared library support. These
  7386. # are reset later if shared libraries are not supported. Putting them
  7387. # here allows them to be overridden if necessary.
  7388. runpath_var=LD_RUN_PATH
  7389. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7390. export_dynamic_flag_spec='${wl}--export-dynamic'
  7391. # ancient GNU ld didn't support --whole-archive et. al.
  7392. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7393. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7394. else
  7395. whole_archive_flag_spec=
  7396. fi
  7397. supports_anon_versioning=no
  7398. case `$LD -v 2>&1` in
  7399. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7400. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7401. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7402. *\ 2.11.*) ;; # other 2.11 versions
  7403. *) supports_anon_versioning=yes ;;
  7404. esac
  7405. # See if GNU ld supports shared libraries.
  7406. case $host_os in
  7407. aix[3-9]*)
  7408. # On AIX/PPC, the GNU linker is very broken
  7409. if test "$host_cpu" != ia64; then
  7410. ld_shlibs=no
  7411. cat <<_LT_EOF 1>&2
  7412. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7413. *** to be unable to reliably create shared libraries on AIX.
  7414. *** Therefore, libtool is disabling shared libraries support. If you
  7415. *** really care for shared libraries, you may want to modify your PATH
  7416. *** so that a non-GNU linker is found, and then restart.
  7417. _LT_EOF
  7418. fi
  7419. ;;
  7420. amigaos*)
  7421. case $host_cpu in
  7422. powerpc)
  7423. # see comment about AmigaOS4 .so support
  7424. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7425. archive_expsym_cmds=''
  7426. ;;
  7427. m68k)
  7428. 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)'
  7429. hardcode_libdir_flag_spec='-L$libdir'
  7430. hardcode_minus_L=yes
  7431. ;;
  7432. esac
  7433. ;;
  7434. beos*)
  7435. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7436. allow_undefined_flag=unsupported
  7437. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7438. # support --undefined. This deserves some investigation. FIXME
  7439. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7440. else
  7441. ld_shlibs=no
  7442. fi
  7443. ;;
  7444. cygwin* | mingw* | pw32* | cegcc*)
  7445. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7446. # as there is no search path for DLLs.
  7447. hardcode_libdir_flag_spec='-L$libdir'
  7448. allow_undefined_flag=unsupported
  7449. always_export_symbols=no
  7450. enable_shared_with_static_runtimes=yes
  7451. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7452. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7453. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7454. # If the export-symbols file already is a .def file (1st line
  7455. # is EXPORTS), use it as is; otherwise, prepend...
  7456. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7457. cp $export_symbols $output_objdir/$soname.def;
  7458. else
  7459. echo EXPORTS > $output_objdir/$soname.def;
  7460. cat $export_symbols >> $output_objdir/$soname.def;
  7461. fi~
  7462. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7463. else
  7464. ld_shlibs=no
  7465. fi
  7466. ;;
  7467. interix[3-9]*)
  7468. hardcode_direct=no
  7469. hardcode_shlibpath_var=no
  7470. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7471. export_dynamic_flag_spec='${wl}-E'
  7472. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7473. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7474. # default) and relocated if they conflict, which is a slow very memory
  7475. # consuming and fragmenting process. To avoid this, we pick a random,
  7476. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7477. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7478. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7479. 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'
  7480. ;;
  7481. gnu* | linux* | tpf* | k*bsd*-gnu)
  7482. tmp_diet=no
  7483. if test "$host_os" = linux-dietlibc; then
  7484. case $cc_basename in
  7485. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7486. esac
  7487. fi
  7488. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7489. && test "$tmp_diet" = no
  7490. then
  7491. tmp_addflag=
  7492. tmp_sharedflag='-shared'
  7493. case $cc_basename,$host_cpu in
  7494. pgcc*) # Portland Group C compiler
  7495. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7496. tmp_addflag=' $pic_flag'
  7497. ;;
  7498. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7499. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7500. tmp_addflag=' $pic_flag -Mnomain' ;;
  7501. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7502. tmp_addflag=' -i_dynamic' ;;
  7503. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7504. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7505. ifc* | ifort*) # Intel Fortran compiler
  7506. tmp_addflag=' -nofor_main' ;;
  7507. lf95*) # Lahey Fortran 8.1
  7508. whole_archive_flag_spec=
  7509. tmp_sharedflag='--shared' ;;
  7510. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7511. tmp_sharedflag='-qmkshrobj'
  7512. tmp_addflag= ;;
  7513. esac
  7514. case `$CC -V 2>&1 | sed 5q` in
  7515. *Sun\ C*) # Sun C 5.9
  7516. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7517. compiler_needs_object=yes
  7518. tmp_sharedflag='-G' ;;
  7519. *Sun\ F*) # Sun Fortran 8.3
  7520. tmp_sharedflag='-G' ;;
  7521. esac
  7522. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7523. if test "x$supports_anon_versioning" = xyes; then
  7524. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7525. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7526. echo "local: *; };" >> $output_objdir/$libname.ver~
  7527. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7528. fi
  7529. case $cc_basename in
  7530. xlf*)
  7531. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7532. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7533. hardcode_libdir_flag_spec=
  7534. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7535. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7536. if test "x$supports_anon_versioning" = xyes; then
  7537. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7538. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7539. echo "local: *; };" >> $output_objdir/$libname.ver~
  7540. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7541. fi
  7542. ;;
  7543. esac
  7544. else
  7545. ld_shlibs=no
  7546. fi
  7547. ;;
  7548. netbsd*)
  7549. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7550. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7551. wlarc=
  7552. else
  7553. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7554. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7555. fi
  7556. ;;
  7557. solaris*)
  7558. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7559. ld_shlibs=no
  7560. cat <<_LT_EOF 1>&2
  7561. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7562. *** create shared libraries on Solaris systems. Therefore, libtool
  7563. *** is disabling shared libraries support. We urge you to upgrade GNU
  7564. *** binutils to release 2.9.1 or newer. Another option is to modify
  7565. *** your PATH or compiler configuration so that the native linker is
  7566. *** used, and then restart.
  7567. _LT_EOF
  7568. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7569. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7570. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7571. else
  7572. ld_shlibs=no
  7573. fi
  7574. ;;
  7575. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7576. case `$LD -v 2>&1` in
  7577. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7578. ld_shlibs=no
  7579. cat <<_LT_EOF 1>&2
  7580. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7581. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7582. *** is disabling shared libraries support. We urge you to upgrade GNU
  7583. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7584. *** your PATH or compiler configuration so that the native linker is
  7585. *** used, and then restart.
  7586. _LT_EOF
  7587. ;;
  7588. *)
  7589. # For security reasons, it is highly recommended that you always
  7590. # use absolute paths for naming shared libraries, and exclude the
  7591. # DT_RUNPATH tag from executables and libraries. But doing so
  7592. # requires that you compile everything twice, which is a pain.
  7593. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7594. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7595. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7596. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7597. else
  7598. ld_shlibs=no
  7599. fi
  7600. ;;
  7601. esac
  7602. ;;
  7603. sunos4*)
  7604. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7605. wlarc=
  7606. hardcode_direct=yes
  7607. hardcode_shlibpath_var=no
  7608. ;;
  7609. *)
  7610. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7611. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7612. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7613. else
  7614. ld_shlibs=no
  7615. fi
  7616. ;;
  7617. esac
  7618. if test "$ld_shlibs" = no; then
  7619. runpath_var=
  7620. hardcode_libdir_flag_spec=
  7621. export_dynamic_flag_spec=
  7622. whole_archive_flag_spec=
  7623. fi
  7624. else
  7625. # PORTME fill in a description of your system's linker (not GNU ld)
  7626. case $host_os in
  7627. aix3*)
  7628. allow_undefined_flag=unsupported
  7629. always_export_symbols=yes
  7630. 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'
  7631. # Note: this linker hardcodes the directories in LIBPATH if there
  7632. # are no directories specified by -L.
  7633. hardcode_minus_L=yes
  7634. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7635. # Neither direct hardcoding nor static linking is supported with a
  7636. # broken collect2.
  7637. hardcode_direct=unsupported
  7638. fi
  7639. ;;
  7640. aix[4-9]*)
  7641. if test "$host_cpu" = ia64; then
  7642. # On IA64, the linker does run time linking by default, so we don't
  7643. # have to do anything special.
  7644. aix_use_runtimelinking=no
  7645. exp_sym_flag='-Bexport'
  7646. no_entry_flag=""
  7647. else
  7648. # If we're using GNU nm, then we don't want the "-C" option.
  7649. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7650. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7651. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7652. else
  7653. 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'
  7654. fi
  7655. aix_use_runtimelinking=no
  7656. # Test if we are trying to use run time linking or normal
  7657. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7658. # need to do runtime linking.
  7659. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7660. for ld_flag in $LDFLAGS; do
  7661. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7662. aix_use_runtimelinking=yes
  7663. break
  7664. fi
  7665. done
  7666. ;;
  7667. esac
  7668. exp_sym_flag='-bexport'
  7669. no_entry_flag='-bnoentry'
  7670. fi
  7671. # When large executables or shared objects are built, AIX ld can
  7672. # have problems creating the table of contents. If linking a library
  7673. # or program results in "error TOC overflow" add -mminimal-toc to
  7674. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7675. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7676. archive_cmds=''
  7677. hardcode_direct=yes
  7678. hardcode_direct_absolute=yes
  7679. hardcode_libdir_separator=':'
  7680. link_all_deplibs=yes
  7681. file_list_spec='${wl}-f,'
  7682. if test "$GCC" = yes; then
  7683. case $host_os in aix4.[012]|aix4.[012].*)
  7684. # We only want to do this on AIX 4.2 and lower, the check
  7685. # below for broken collect2 doesn't work under 4.3+
  7686. collect2name=`${CC} -print-prog-name=collect2`
  7687. if test -f "$collect2name" &&
  7688. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7689. then
  7690. # We have reworked collect2
  7691. :
  7692. else
  7693. # We have old collect2
  7694. hardcode_direct=unsupported
  7695. # It fails to find uninstalled libraries when the uninstalled
  7696. # path is not listed in the libpath. Setting hardcode_minus_L
  7697. # to unsupported forces relinking
  7698. hardcode_minus_L=yes
  7699. hardcode_libdir_flag_spec='-L$libdir'
  7700. hardcode_libdir_separator=
  7701. fi
  7702. ;;
  7703. esac
  7704. shared_flag='-shared'
  7705. if test "$aix_use_runtimelinking" = yes; then
  7706. shared_flag="$shared_flag "'${wl}-G'
  7707. fi
  7708. else
  7709. # not using gcc
  7710. if test "$host_cpu" = ia64; then
  7711. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7712. # chokes on -Wl,-G. The following line is correct:
  7713. shared_flag='-G'
  7714. else
  7715. if test "$aix_use_runtimelinking" = yes; then
  7716. shared_flag='${wl}-G'
  7717. else
  7718. shared_flag='${wl}-bM:SRE'
  7719. fi
  7720. fi
  7721. fi
  7722. export_dynamic_flag_spec='${wl}-bexpall'
  7723. # It seems that -bexpall does not export symbols beginning with
  7724. # underscore (_), so it is better to generate a list of symbols to export.
  7725. always_export_symbols=yes
  7726. if test "$aix_use_runtimelinking" = yes; then
  7727. # Warning - without using the other runtime loading flags (-brtl),
  7728. # -berok will link without error, but may produce a broken library.
  7729. allow_undefined_flag='-berok'
  7730. # Determine the default libpath from the value encoded in an
  7731. # empty executable.
  7732. cat >conftest.$ac_ext <<_ACEOF
  7733. /* confdefs.h. */
  7734. _ACEOF
  7735. cat confdefs.h >>conftest.$ac_ext
  7736. cat >>conftest.$ac_ext <<_ACEOF
  7737. /* end confdefs.h. */
  7738. int
  7739. main ()
  7740. {
  7741. ;
  7742. return 0;
  7743. }
  7744. _ACEOF
  7745. rm -f conftest.$ac_objext conftest$ac_exeext
  7746. if { (ac_try="$ac_link"
  7747. case "(($ac_try" in
  7748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7749. *) ac_try_echo=$ac_try;;
  7750. esac
  7751. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7752. $as_echo "$ac_try_echo") >&5
  7753. (eval "$ac_link") 2>conftest.er1
  7754. ac_status=$?
  7755. grep -v '^ *+' conftest.er1 >conftest.err
  7756. rm -f conftest.er1
  7757. cat conftest.err >&5
  7758. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7759. (exit $ac_status); } && {
  7760. test -z "$ac_c_werror_flag" ||
  7761. test ! -s conftest.err
  7762. } && test -s conftest$ac_exeext && {
  7763. test "$cross_compiling" = yes ||
  7764. $as_test_x conftest$ac_exeext
  7765. }; then
  7766. lt_aix_libpath_sed='
  7767. /Import File Strings/,/^$/ {
  7768. /^0/ {
  7769. s/^0 *\(.*\)$/\1/
  7770. p
  7771. }
  7772. }'
  7773. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7774. # Check for a 64-bit object if we didn't find anything.
  7775. if test -z "$aix_libpath"; then
  7776. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7777. fi
  7778. else
  7779. $as_echo "$as_me: failed program was:" >&5
  7780. sed 's/^/| /' conftest.$ac_ext >&5
  7781. fi
  7782. rm -rf conftest.dSYM
  7783. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7784. conftest$ac_exeext conftest.$ac_ext
  7785. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7786. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7787. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7788. else
  7789. if test "$host_cpu" = ia64; then
  7790. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7791. allow_undefined_flag="-z nodefs"
  7792. 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"
  7793. else
  7794. # Determine the default libpath from the value encoded in an
  7795. # empty executable.
  7796. cat >conftest.$ac_ext <<_ACEOF
  7797. /* confdefs.h. */
  7798. _ACEOF
  7799. cat confdefs.h >>conftest.$ac_ext
  7800. cat >>conftest.$ac_ext <<_ACEOF
  7801. /* end confdefs.h. */
  7802. int
  7803. main ()
  7804. {
  7805. ;
  7806. return 0;
  7807. }
  7808. _ACEOF
  7809. rm -f conftest.$ac_objext conftest$ac_exeext
  7810. if { (ac_try="$ac_link"
  7811. case "(($ac_try" in
  7812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7813. *) ac_try_echo=$ac_try;;
  7814. esac
  7815. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7816. $as_echo "$ac_try_echo") >&5
  7817. (eval "$ac_link") 2>conftest.er1
  7818. ac_status=$?
  7819. grep -v '^ *+' conftest.er1 >conftest.err
  7820. rm -f conftest.er1
  7821. cat conftest.err >&5
  7822. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7823. (exit $ac_status); } && {
  7824. test -z "$ac_c_werror_flag" ||
  7825. test ! -s conftest.err
  7826. } && test -s conftest$ac_exeext && {
  7827. test "$cross_compiling" = yes ||
  7828. $as_test_x conftest$ac_exeext
  7829. }; then
  7830. lt_aix_libpath_sed='
  7831. /Import File Strings/,/^$/ {
  7832. /^0/ {
  7833. s/^0 *\(.*\)$/\1/
  7834. p
  7835. }
  7836. }'
  7837. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7838. # Check for a 64-bit object if we didn't find anything.
  7839. if test -z "$aix_libpath"; then
  7840. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7841. fi
  7842. else
  7843. $as_echo "$as_me: failed program was:" >&5
  7844. sed 's/^/| /' conftest.$ac_ext >&5
  7845. fi
  7846. rm -rf conftest.dSYM
  7847. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7848. conftest$ac_exeext conftest.$ac_ext
  7849. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7850. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7851. # Warning - without using the other run time loading flags,
  7852. # -berok will link without error, but may produce a broken library.
  7853. no_undefined_flag=' ${wl}-bernotok'
  7854. allow_undefined_flag=' ${wl}-berok'
  7855. # Exported symbols can be pulled into shared objects from archives
  7856. whole_archive_flag_spec='$convenience'
  7857. archive_cmds_need_lc=yes
  7858. # This is similar to how AIX traditionally builds its shared libraries.
  7859. 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'
  7860. fi
  7861. fi
  7862. ;;
  7863. amigaos*)
  7864. case $host_cpu in
  7865. powerpc)
  7866. # see comment about AmigaOS4 .so support
  7867. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7868. archive_expsym_cmds=''
  7869. ;;
  7870. m68k)
  7871. 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)'
  7872. hardcode_libdir_flag_spec='-L$libdir'
  7873. hardcode_minus_L=yes
  7874. ;;
  7875. esac
  7876. ;;
  7877. bsdi[45]*)
  7878. export_dynamic_flag_spec=-rdynamic
  7879. ;;
  7880. cygwin* | mingw* | pw32* | cegcc*)
  7881. # When not using gcc, we currently assume that we are using
  7882. # Microsoft Visual C++.
  7883. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7884. # no search path for DLLs.
  7885. hardcode_libdir_flag_spec=' '
  7886. allow_undefined_flag=unsupported
  7887. # Tell ltmain to make .lib files, not .a files.
  7888. libext=lib
  7889. # Tell ltmain to make .dll files, not .so files.
  7890. shrext_cmds=".dll"
  7891. # FIXME: Setting linknames here is a bad hack.
  7892. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7893. # The linker will automatically build a .lib file if we build a DLL.
  7894. old_archive_from_new_cmds='true'
  7895. # FIXME: Should let the user specify the lib program.
  7896. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7897. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7898. enable_shared_with_static_runtimes=yes
  7899. ;;
  7900. darwin* | rhapsody*)
  7901. archive_cmds_need_lc=no
  7902. hardcode_direct=no
  7903. hardcode_automatic=yes
  7904. hardcode_shlibpath_var=unsupported
  7905. whole_archive_flag_spec=''
  7906. link_all_deplibs=yes
  7907. allow_undefined_flag="$_lt_dar_allow_undefined"
  7908. case $cc_basename in
  7909. ifort*) _lt_dar_can_shared=yes ;;
  7910. *) _lt_dar_can_shared=$GCC ;;
  7911. esac
  7912. if test "$_lt_dar_can_shared" = "yes"; then
  7913. output_verbose_link_cmd=echo
  7914. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7915. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7916. 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}"
  7917. 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}"
  7918. else
  7919. ld_shlibs=no
  7920. fi
  7921. ;;
  7922. dgux*)
  7923. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7924. hardcode_libdir_flag_spec='-L$libdir'
  7925. hardcode_shlibpath_var=no
  7926. ;;
  7927. freebsd1*)
  7928. ld_shlibs=no
  7929. ;;
  7930. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7931. # support. Future versions do this automatically, but an explicit c++rt0.o
  7932. # does not break anything, and helps significantly (at the cost of a little
  7933. # extra space).
  7934. freebsd2.2*)
  7935. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7936. hardcode_libdir_flag_spec='-R$libdir'
  7937. hardcode_direct=yes
  7938. hardcode_shlibpath_var=no
  7939. ;;
  7940. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7941. freebsd2*)
  7942. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7943. hardcode_direct=yes
  7944. hardcode_minus_L=yes
  7945. hardcode_shlibpath_var=no
  7946. ;;
  7947. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7948. freebsd* | dragonfly*)
  7949. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7950. hardcode_libdir_flag_spec='-R$libdir'
  7951. hardcode_direct=yes
  7952. hardcode_shlibpath_var=no
  7953. ;;
  7954. hpux9*)
  7955. if test "$GCC" = yes; then
  7956. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7957. else
  7958. 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'
  7959. fi
  7960. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7961. hardcode_libdir_separator=:
  7962. hardcode_direct=yes
  7963. # hardcode_minus_L: Not really in the search PATH,
  7964. # but as the default location of the library.
  7965. hardcode_minus_L=yes
  7966. export_dynamic_flag_spec='${wl}-E'
  7967. ;;
  7968. hpux10*)
  7969. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7970. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7971. else
  7972. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7973. fi
  7974. if test "$with_gnu_ld" = no; then
  7975. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7976. hardcode_libdir_flag_spec_ld='+b $libdir'
  7977. hardcode_libdir_separator=:
  7978. hardcode_direct=yes
  7979. hardcode_direct_absolute=yes
  7980. export_dynamic_flag_spec='${wl}-E'
  7981. # hardcode_minus_L: Not really in the search PATH,
  7982. # but as the default location of the library.
  7983. hardcode_minus_L=yes
  7984. fi
  7985. ;;
  7986. hpux11*)
  7987. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7988. case $host_cpu in
  7989. hppa*64*)
  7990. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7991. ;;
  7992. ia64*)
  7993. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7994. ;;
  7995. *)
  7996. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7997. ;;
  7998. esac
  7999. else
  8000. case $host_cpu in
  8001. hppa*64*)
  8002. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8003. ;;
  8004. ia64*)
  8005. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8006. ;;
  8007. *)
  8008. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8009. ;;
  8010. esac
  8011. fi
  8012. if test "$with_gnu_ld" = no; then
  8013. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8014. hardcode_libdir_separator=:
  8015. case $host_cpu in
  8016. hppa*64*|ia64*)
  8017. hardcode_direct=no
  8018. hardcode_shlibpath_var=no
  8019. ;;
  8020. *)
  8021. hardcode_direct=yes
  8022. hardcode_direct_absolute=yes
  8023. export_dynamic_flag_spec='${wl}-E'
  8024. # hardcode_minus_L: Not really in the search PATH,
  8025. # but as the default location of the library.
  8026. hardcode_minus_L=yes
  8027. ;;
  8028. esac
  8029. fi
  8030. ;;
  8031. irix5* | irix6* | nonstopux*)
  8032. if test "$GCC" = yes; then
  8033. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8034. # Try to use the -exported_symbol ld option, if it does not
  8035. # work, assume that -exports_file does not work either and
  8036. # implicitly export all symbols.
  8037. save_LDFLAGS="$LDFLAGS"
  8038. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8039. cat >conftest.$ac_ext <<_ACEOF
  8040. int foo(void) {}
  8041. _ACEOF
  8042. rm -f conftest.$ac_objext conftest$ac_exeext
  8043. if { (ac_try="$ac_link"
  8044. case "(($ac_try" in
  8045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8046. *) ac_try_echo=$ac_try;;
  8047. esac
  8048. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8049. $as_echo "$ac_try_echo") >&5
  8050. (eval "$ac_link") 2>conftest.er1
  8051. ac_status=$?
  8052. grep -v '^ *+' conftest.er1 >conftest.err
  8053. rm -f conftest.er1
  8054. cat conftest.err >&5
  8055. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8056. (exit $ac_status); } && {
  8057. test -z "$ac_c_werror_flag" ||
  8058. test ! -s conftest.err
  8059. } && test -s conftest$ac_exeext && {
  8060. test "$cross_compiling" = yes ||
  8061. $as_test_x conftest$ac_exeext
  8062. }; then
  8063. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8064. else
  8065. $as_echo "$as_me: failed program was:" >&5
  8066. sed 's/^/| /' conftest.$ac_ext >&5
  8067. fi
  8068. rm -rf conftest.dSYM
  8069. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8070. conftest$ac_exeext conftest.$ac_ext
  8071. LDFLAGS="$save_LDFLAGS"
  8072. else
  8073. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8074. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8075. fi
  8076. archive_cmds_need_lc='no'
  8077. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8078. hardcode_libdir_separator=:
  8079. inherit_rpath=yes
  8080. link_all_deplibs=yes
  8081. ;;
  8082. netbsd*)
  8083. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8084. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8085. else
  8086. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8087. fi
  8088. hardcode_libdir_flag_spec='-R$libdir'
  8089. hardcode_direct=yes
  8090. hardcode_shlibpath_var=no
  8091. ;;
  8092. newsos6)
  8093. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8094. hardcode_direct=yes
  8095. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8096. hardcode_libdir_separator=:
  8097. hardcode_shlibpath_var=no
  8098. ;;
  8099. *nto* | *qnx*)
  8100. ;;
  8101. openbsd*)
  8102. if test -f /usr/libexec/ld.so; then
  8103. hardcode_direct=yes
  8104. hardcode_shlibpath_var=no
  8105. hardcode_direct_absolute=yes
  8106. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8107. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8108. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8109. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8110. export_dynamic_flag_spec='${wl}-E'
  8111. else
  8112. case $host_os in
  8113. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8114. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8115. hardcode_libdir_flag_spec='-R$libdir'
  8116. ;;
  8117. *)
  8118. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8119. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8120. ;;
  8121. esac
  8122. fi
  8123. else
  8124. ld_shlibs=no
  8125. fi
  8126. ;;
  8127. os2*)
  8128. hardcode_libdir_flag_spec='-L$libdir'
  8129. hardcode_minus_L=yes
  8130. allow_undefined_flag=unsupported
  8131. 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'
  8132. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8133. ;;
  8134. osf3*)
  8135. if test "$GCC" = yes; then
  8136. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8137. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8138. else
  8139. allow_undefined_flag=' -expect_unresolved \*'
  8140. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8141. fi
  8142. archive_cmds_need_lc='no'
  8143. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8144. hardcode_libdir_separator=:
  8145. ;;
  8146. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8147. if test "$GCC" = yes; then
  8148. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8149. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8150. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8151. else
  8152. allow_undefined_flag=' -expect_unresolved \*'
  8153. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8154. 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~
  8155. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8156. # Both c and cxx compiler support -rpath directly
  8157. hardcode_libdir_flag_spec='-rpath $libdir'
  8158. fi
  8159. archive_cmds_need_lc='no'
  8160. hardcode_libdir_separator=:
  8161. ;;
  8162. solaris*)
  8163. no_undefined_flag=' -z defs'
  8164. if test "$GCC" = yes; then
  8165. wlarc='${wl}'
  8166. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8167. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8168. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8169. else
  8170. case `$CC -V 2>&1` in
  8171. *"Compilers 5.0"*)
  8172. wlarc=''
  8173. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8174. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8175. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8176. ;;
  8177. *)
  8178. wlarc='${wl}'
  8179. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8180. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8181. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8182. ;;
  8183. esac
  8184. fi
  8185. hardcode_libdir_flag_spec='-R$libdir'
  8186. hardcode_shlibpath_var=no
  8187. case $host_os in
  8188. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8189. *)
  8190. # The compiler driver will combine and reorder linker options,
  8191. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8192. # but is careful enough not to reorder.
  8193. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8194. if test "$GCC" = yes; then
  8195. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8196. else
  8197. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8198. fi
  8199. ;;
  8200. esac
  8201. link_all_deplibs=yes
  8202. ;;
  8203. sunos4*)
  8204. if test "x$host_vendor" = xsequent; then
  8205. # Use $CC to link under sequent, because it throws in some extra .o
  8206. # files that make .init and .fini sections work.
  8207. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8208. else
  8209. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8210. fi
  8211. hardcode_libdir_flag_spec='-L$libdir'
  8212. hardcode_direct=yes
  8213. hardcode_minus_L=yes
  8214. hardcode_shlibpath_var=no
  8215. ;;
  8216. sysv4)
  8217. case $host_vendor in
  8218. sni)
  8219. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8220. hardcode_direct=yes # is this really true???
  8221. ;;
  8222. siemens)
  8223. ## LD is ld it makes a PLAMLIB
  8224. ## CC just makes a GrossModule.
  8225. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8226. reload_cmds='$CC -r -o $output$reload_objs'
  8227. hardcode_direct=no
  8228. ;;
  8229. motorola)
  8230. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8231. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8232. ;;
  8233. esac
  8234. runpath_var='LD_RUN_PATH'
  8235. hardcode_shlibpath_var=no
  8236. ;;
  8237. sysv4.3*)
  8238. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8239. hardcode_shlibpath_var=no
  8240. export_dynamic_flag_spec='-Bexport'
  8241. ;;
  8242. sysv4*MP*)
  8243. if test -d /usr/nec; then
  8244. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8245. hardcode_shlibpath_var=no
  8246. runpath_var=LD_RUN_PATH
  8247. hardcode_runpath_var=yes
  8248. ld_shlibs=yes
  8249. fi
  8250. ;;
  8251. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8252. no_undefined_flag='${wl}-z,text'
  8253. archive_cmds_need_lc=no
  8254. hardcode_shlibpath_var=no
  8255. runpath_var='LD_RUN_PATH'
  8256. if test "$GCC" = yes; then
  8257. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8258. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8259. else
  8260. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8261. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8262. fi
  8263. ;;
  8264. sysv5* | sco3.2v5* | sco5v6*)
  8265. # Note: We can NOT use -z defs as we might desire, because we do not
  8266. # link with -lc, and that would cause any symbols used from libc to
  8267. # always be unresolved, which means just about no library would
  8268. # ever link correctly. If we're not using GNU ld we use -z text
  8269. # though, which does catch some bad symbols but isn't as heavy-handed
  8270. # as -z defs.
  8271. no_undefined_flag='${wl}-z,text'
  8272. allow_undefined_flag='${wl}-z,nodefs'
  8273. archive_cmds_need_lc=no
  8274. hardcode_shlibpath_var=no
  8275. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8276. hardcode_libdir_separator=':'
  8277. link_all_deplibs=yes
  8278. export_dynamic_flag_spec='${wl}-Bexport'
  8279. runpath_var='LD_RUN_PATH'
  8280. if test "$GCC" = yes; then
  8281. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8282. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8283. else
  8284. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8285. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8286. fi
  8287. ;;
  8288. uts4*)
  8289. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8290. hardcode_libdir_flag_spec='-L$libdir'
  8291. hardcode_shlibpath_var=no
  8292. ;;
  8293. *)
  8294. ld_shlibs=no
  8295. ;;
  8296. esac
  8297. if test x$host_vendor = xsni; then
  8298. case $host in
  8299. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8300. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8301. ;;
  8302. esac
  8303. fi
  8304. fi
  8305. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8306. $as_echo "$ld_shlibs" >&6; }
  8307. test "$ld_shlibs" = no && can_build_shared=no
  8308. with_gnu_ld=$with_gnu_ld
  8309. #
  8310. # Do we need to explicitly link libc?
  8311. #
  8312. case "x$archive_cmds_need_lc" in
  8313. x|xyes)
  8314. # Assume -lc should be added
  8315. archive_cmds_need_lc=yes
  8316. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8317. case $archive_cmds in
  8318. *'~'*)
  8319. # FIXME: we may have to deal with multi-command sequences.
  8320. ;;
  8321. '$CC '*)
  8322. # Test whether the compiler implicitly links with -lc since on some
  8323. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8324. # to ld, don't add -lc before -lgcc.
  8325. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8326. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8327. $RM conftest*
  8328. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8329. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8330. (eval $ac_compile) 2>&5
  8331. ac_status=$?
  8332. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8333. (exit $ac_status); } 2>conftest.err; then
  8334. soname=conftest
  8335. lib=conftest
  8336. libobjs=conftest.$ac_objext
  8337. deplibs=
  8338. wl=$lt_prog_compiler_wl
  8339. pic_flag=$lt_prog_compiler_pic
  8340. compiler_flags=-v
  8341. linker_flags=-v
  8342. verstring=
  8343. output_objdir=.
  8344. libname=conftest
  8345. lt_save_allow_undefined_flag=$allow_undefined_flag
  8346. allow_undefined_flag=
  8347. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  8348. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8349. ac_status=$?
  8350. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8351. (exit $ac_status); }
  8352. then
  8353. archive_cmds_need_lc=no
  8354. else
  8355. archive_cmds_need_lc=yes
  8356. fi
  8357. allow_undefined_flag=$lt_save_allow_undefined_flag
  8358. else
  8359. cat conftest.err 1>&5
  8360. fi
  8361. $RM conftest*
  8362. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8363. $as_echo "$archive_cmds_need_lc" >&6; }
  8364. ;;
  8365. esac
  8366. fi
  8367. ;;
  8368. esac
  8369. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8370. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8371. if test "$GCC" = yes; then
  8372. case $host_os in
  8373. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8374. *) lt_awk_arg="/^libraries:/" ;;
  8375. esac
  8376. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8377. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8378. # if the path contains ";" then we assume it to be the separator
  8379. # otherwise default to the standard path separator (i.e. ":") - it is
  8380. # assumed that no part of a normal pathname contains ";" but that should
  8381. # okay in the real world where ";" in dirpaths is itself problematic.
  8382. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8383. else
  8384. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8385. fi
  8386. # Ok, now we have the path, separated by spaces, we can step through it
  8387. # and add multilib dir if necessary.
  8388. lt_tmp_lt_search_path_spec=
  8389. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8390. for lt_sys_path in $lt_search_path_spec; do
  8391. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8392. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8393. else
  8394. test -d "$lt_sys_path" && \
  8395. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8396. fi
  8397. done
  8398. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8399. BEGIN {RS=" "; FS="/|\n";} {
  8400. lt_foo="";
  8401. lt_count=0;
  8402. for (lt_i = NF; lt_i > 0; lt_i--) {
  8403. if ($lt_i != "" && $lt_i != ".") {
  8404. if ($lt_i == "..") {
  8405. lt_count++;
  8406. } else {
  8407. if (lt_count == 0) {
  8408. lt_foo="/" $lt_i lt_foo;
  8409. } else {
  8410. lt_count--;
  8411. }
  8412. }
  8413. }
  8414. }
  8415. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8416. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8417. }'`
  8418. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8419. else
  8420. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8421. fi
  8422. library_names_spec=
  8423. libname_spec='lib$name'
  8424. soname_spec=
  8425. shrext_cmds=".so"
  8426. postinstall_cmds=
  8427. postuninstall_cmds=
  8428. finish_cmds=
  8429. finish_eval=
  8430. shlibpath_var=
  8431. shlibpath_overrides_runpath=unknown
  8432. version_type=none
  8433. dynamic_linker="$host_os ld.so"
  8434. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8435. need_lib_prefix=unknown
  8436. hardcode_into_libs=no
  8437. # when you set need_version to no, make sure it does not cause -set_version
  8438. # flags to be left without arguments
  8439. need_version=unknown
  8440. case $host_os in
  8441. aix3*)
  8442. version_type=linux
  8443. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8444. shlibpath_var=LIBPATH
  8445. # AIX 3 has no versioning support, so we append a major version to the name.
  8446. soname_spec='${libname}${release}${shared_ext}$major'
  8447. ;;
  8448. aix[4-9]*)
  8449. version_type=linux
  8450. need_lib_prefix=no
  8451. need_version=no
  8452. hardcode_into_libs=yes
  8453. if test "$host_cpu" = ia64; then
  8454. # AIX 5 supports IA64
  8455. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8456. shlibpath_var=LD_LIBRARY_PATH
  8457. else
  8458. # With GCC up to 2.95.x, collect2 would create an import file
  8459. # for dependence libraries. The import file would start with
  8460. # the line `#! .'. This would cause the generated library to
  8461. # depend on `.', always an invalid library. This was fixed in
  8462. # development snapshots of GCC prior to 3.0.
  8463. case $host_os in
  8464. aix4 | aix4.[01] | aix4.[01].*)
  8465. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8466. echo ' yes '
  8467. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8468. :
  8469. else
  8470. can_build_shared=no
  8471. fi
  8472. ;;
  8473. esac
  8474. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8475. # soname into executable. Probably we can add versioning support to
  8476. # collect2, so additional links can be useful in future.
  8477. if test "$aix_use_runtimelinking" = yes; then
  8478. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8479. # instead of lib<name>.a to let people know that these are not
  8480. # typical AIX shared libraries.
  8481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8482. else
  8483. # We preserve .a as extension for shared libraries through AIX4.2
  8484. # and later when we are not doing run time linking.
  8485. library_names_spec='${libname}${release}.a $libname.a'
  8486. soname_spec='${libname}${release}${shared_ext}$major'
  8487. fi
  8488. shlibpath_var=LIBPATH
  8489. fi
  8490. ;;
  8491. amigaos*)
  8492. case $host_cpu in
  8493. powerpc)
  8494. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8495. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8496. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8497. ;;
  8498. m68k)
  8499. library_names_spec='$libname.ixlibrary $libname.a'
  8500. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8501. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  8502. ;;
  8503. esac
  8504. ;;
  8505. beos*)
  8506. library_names_spec='${libname}${shared_ext}'
  8507. dynamic_linker="$host_os ld.so"
  8508. shlibpath_var=LIBRARY_PATH
  8509. ;;
  8510. bsdi[45]*)
  8511. version_type=linux
  8512. need_version=no
  8513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8514. soname_spec='${libname}${release}${shared_ext}$major'
  8515. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8516. shlibpath_var=LD_LIBRARY_PATH
  8517. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8518. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8519. # the default ld.so.conf also contains /usr/contrib/lib and
  8520. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8521. # libtool to hard-code these into programs
  8522. ;;
  8523. cygwin* | mingw* | pw32* | cegcc*)
  8524. version_type=windows
  8525. shrext_cmds=".dll"
  8526. need_version=no
  8527. need_lib_prefix=no
  8528. case $GCC,$host_os in
  8529. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8530. library_names_spec='$libname.dll.a'
  8531. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8532. postinstall_cmds='base_file=`basename \${file}`~
  8533. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8534. dldir=$destdir/`dirname \$dlpath`~
  8535. test -d \$dldir || mkdir -p \$dldir~
  8536. $install_prog $dir/$dlname \$dldir/$dlname~
  8537. chmod a+x \$dldir/$dlname~
  8538. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8539. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8540. fi'
  8541. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8542. dlpath=$dir/\$dldll~
  8543. $RM \$dlpath'
  8544. shlibpath_overrides_runpath=yes
  8545. case $host_os in
  8546. cygwin*)
  8547. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8548. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8549. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8550. ;;
  8551. mingw* | cegcc*)
  8552. # MinGW DLLs use traditional 'lib' prefix
  8553. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8554. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8555. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8556. # It is most probably a Windows format PATH printed by
  8557. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8558. # path with ; separators, and with drive letters. We can handle the
  8559. # drive letters (cygwin fileutils understands them), so leave them,
  8560. # especially as we might pass files found there to a mingw objdump,
  8561. # which wouldn't understand a cygwinified path. Ahh.
  8562. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8563. else
  8564. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8565. fi
  8566. ;;
  8567. pw32*)
  8568. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8569. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8570. ;;
  8571. esac
  8572. ;;
  8573. *)
  8574. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8575. ;;
  8576. esac
  8577. dynamic_linker='Win32 ld.exe'
  8578. # FIXME: first we should search . and the directory the executable is in
  8579. shlibpath_var=PATH
  8580. ;;
  8581. darwin* | rhapsody*)
  8582. dynamic_linker="$host_os dyld"
  8583. version_type=darwin
  8584. need_lib_prefix=no
  8585. need_version=no
  8586. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8587. soname_spec='${libname}${release}${major}$shared_ext'
  8588. shlibpath_overrides_runpath=yes
  8589. shlibpath_var=DYLD_LIBRARY_PATH
  8590. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8591. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8592. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8593. ;;
  8594. dgux*)
  8595. version_type=linux
  8596. need_lib_prefix=no
  8597. need_version=no
  8598. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8599. soname_spec='${libname}${release}${shared_ext}$major'
  8600. shlibpath_var=LD_LIBRARY_PATH
  8601. ;;
  8602. freebsd1*)
  8603. dynamic_linker=no
  8604. ;;
  8605. freebsd* | dragonfly*)
  8606. # DragonFly does not have aout. When/if they implement a new
  8607. # versioning mechanism, adjust this.
  8608. if test -x /usr/bin/objformat; then
  8609. objformat=`/usr/bin/objformat`
  8610. else
  8611. case $host_os in
  8612. freebsd[123]*) objformat=aout ;;
  8613. *) objformat=elf ;;
  8614. esac
  8615. fi
  8616. version_type=freebsd-$objformat
  8617. case $version_type in
  8618. freebsd-elf*)
  8619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8620. need_version=no
  8621. need_lib_prefix=no
  8622. ;;
  8623. freebsd-*)
  8624. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8625. need_version=yes
  8626. ;;
  8627. esac
  8628. shlibpath_var=LD_LIBRARY_PATH
  8629. case $host_os in
  8630. freebsd2*)
  8631. shlibpath_overrides_runpath=yes
  8632. ;;
  8633. freebsd3.[01]* | freebsdelf3.[01]*)
  8634. shlibpath_overrides_runpath=yes
  8635. hardcode_into_libs=yes
  8636. ;;
  8637. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8638. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8639. shlibpath_overrides_runpath=no
  8640. hardcode_into_libs=yes
  8641. ;;
  8642. *) # from 4.6 on, and DragonFly
  8643. shlibpath_overrides_runpath=yes
  8644. hardcode_into_libs=yes
  8645. ;;
  8646. esac
  8647. ;;
  8648. gnu*)
  8649. version_type=linux
  8650. need_lib_prefix=no
  8651. need_version=no
  8652. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8653. soname_spec='${libname}${release}${shared_ext}$major'
  8654. shlibpath_var=LD_LIBRARY_PATH
  8655. hardcode_into_libs=yes
  8656. ;;
  8657. hpux9* | hpux10* | hpux11*)
  8658. # Give a soname corresponding to the major version so that dld.sl refuses to
  8659. # link against other versions.
  8660. version_type=sunos
  8661. need_lib_prefix=no
  8662. need_version=no
  8663. case $host_cpu in
  8664. ia64*)
  8665. shrext_cmds='.so'
  8666. hardcode_into_libs=yes
  8667. dynamic_linker="$host_os dld.so"
  8668. shlibpath_var=LD_LIBRARY_PATH
  8669. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8670. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8671. soname_spec='${libname}${release}${shared_ext}$major'
  8672. if test "X$HPUX_IA64_MODE" = X32; then
  8673. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8674. else
  8675. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8676. fi
  8677. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8678. ;;
  8679. hppa*64*)
  8680. shrext_cmds='.sl'
  8681. hardcode_into_libs=yes
  8682. dynamic_linker="$host_os dld.sl"
  8683. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8684. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8685. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8686. soname_spec='${libname}${release}${shared_ext}$major'
  8687. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8688. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8689. ;;
  8690. *)
  8691. shrext_cmds='.sl'
  8692. dynamic_linker="$host_os dld.sl"
  8693. shlibpath_var=SHLIB_PATH
  8694. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8696. soname_spec='${libname}${release}${shared_ext}$major'
  8697. ;;
  8698. esac
  8699. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8700. postinstall_cmds='chmod 555 $lib'
  8701. ;;
  8702. interix[3-9]*)
  8703. version_type=linux
  8704. need_lib_prefix=no
  8705. need_version=no
  8706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8707. soname_spec='${libname}${release}${shared_ext}$major'
  8708. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8709. shlibpath_var=LD_LIBRARY_PATH
  8710. shlibpath_overrides_runpath=no
  8711. hardcode_into_libs=yes
  8712. ;;
  8713. irix5* | irix6* | nonstopux*)
  8714. case $host_os in
  8715. nonstopux*) version_type=nonstopux ;;
  8716. *)
  8717. if test "$lt_cv_prog_gnu_ld" = yes; then
  8718. version_type=linux
  8719. else
  8720. version_type=irix
  8721. fi ;;
  8722. esac
  8723. need_lib_prefix=no
  8724. need_version=no
  8725. soname_spec='${libname}${release}${shared_ext}$major'
  8726. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8727. case $host_os in
  8728. irix5* | nonstopux*)
  8729. libsuff= shlibsuff=
  8730. ;;
  8731. *)
  8732. case $LD in # libtool.m4 will add one of these switches to LD
  8733. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8734. libsuff= shlibsuff= libmagic=32-bit;;
  8735. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8736. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8737. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8738. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8739. *) libsuff= shlibsuff= libmagic=never-match;;
  8740. esac
  8741. ;;
  8742. esac
  8743. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8744. shlibpath_overrides_runpath=no
  8745. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8746. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8747. hardcode_into_libs=yes
  8748. ;;
  8749. # No shared lib support for Linux oldld, aout, or coff.
  8750. linux*oldld* | linux*aout* | linux*coff*)
  8751. dynamic_linker=no
  8752. ;;
  8753. # This must be Linux ELF.
  8754. linux* | k*bsd*-gnu)
  8755. version_type=linux
  8756. need_lib_prefix=no
  8757. need_version=no
  8758. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8759. soname_spec='${libname}${release}${shared_ext}$major'
  8760. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8761. shlibpath_var=LD_LIBRARY_PATH
  8762. shlibpath_overrides_runpath=no
  8763. # Some binutils ld are patched to set DT_RUNPATH
  8764. save_LDFLAGS=$LDFLAGS
  8765. save_libdir=$libdir
  8766. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8767. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8768. cat >conftest.$ac_ext <<_ACEOF
  8769. /* confdefs.h. */
  8770. _ACEOF
  8771. cat confdefs.h >>conftest.$ac_ext
  8772. cat >>conftest.$ac_ext <<_ACEOF
  8773. /* end confdefs.h. */
  8774. int
  8775. main ()
  8776. {
  8777. ;
  8778. return 0;
  8779. }
  8780. _ACEOF
  8781. rm -f conftest.$ac_objext conftest$ac_exeext
  8782. if { (ac_try="$ac_link"
  8783. case "(($ac_try" in
  8784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8785. *) ac_try_echo=$ac_try;;
  8786. esac
  8787. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8788. $as_echo "$ac_try_echo") >&5
  8789. (eval "$ac_link") 2>conftest.er1
  8790. ac_status=$?
  8791. grep -v '^ *+' conftest.er1 >conftest.err
  8792. rm -f conftest.er1
  8793. cat conftest.err >&5
  8794. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8795. (exit $ac_status); } && {
  8796. test -z "$ac_c_werror_flag" ||
  8797. test ! -s conftest.err
  8798. } && test -s conftest$ac_exeext && {
  8799. test "$cross_compiling" = yes ||
  8800. $as_test_x conftest$ac_exeext
  8801. }; then
  8802. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  8803. shlibpath_overrides_runpath=yes
  8804. fi
  8805. else
  8806. $as_echo "$as_me: failed program was:" >&5
  8807. sed 's/^/| /' conftest.$ac_ext >&5
  8808. fi
  8809. rm -rf conftest.dSYM
  8810. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8811. conftest$ac_exeext conftest.$ac_ext
  8812. LDFLAGS=$save_LDFLAGS
  8813. libdir=$save_libdir
  8814. # This implies no fast_install, which is unacceptable.
  8815. # Some rework will be needed to allow for fast_install
  8816. # before this can be enabled.
  8817. hardcode_into_libs=yes
  8818. # Add ABI-specific directories to the system library path.
  8819. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  8820. # Append ld.so.conf contents to the search path
  8821. if test -f /etc/ld.so.conf; then
  8822. 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;/^$/d' | tr '\n' ' '`
  8823. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  8824. fi
  8825. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8826. # powerpc, because MkLinux only supported shared libraries with the
  8827. # GNU dynamic linker. Since this was broken with cross compilers,
  8828. # most powerpc-linux boxes support dynamic linking these days and
  8829. # people can always --disable-shared, the test was removed, and we
  8830. # assume the GNU/Linux dynamic linker is in use.
  8831. dynamic_linker='GNU/Linux ld.so'
  8832. ;;
  8833. netbsd*)
  8834. version_type=sunos
  8835. need_lib_prefix=no
  8836. need_version=no
  8837. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8838. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8839. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8840. dynamic_linker='NetBSD (a.out) ld.so'
  8841. else
  8842. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8843. soname_spec='${libname}${release}${shared_ext}$major'
  8844. dynamic_linker='NetBSD ld.elf_so'
  8845. fi
  8846. shlibpath_var=LD_LIBRARY_PATH
  8847. shlibpath_overrides_runpath=yes
  8848. hardcode_into_libs=yes
  8849. ;;
  8850. newsos6)
  8851. version_type=linux
  8852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8853. shlibpath_var=LD_LIBRARY_PATH
  8854. shlibpath_overrides_runpath=yes
  8855. ;;
  8856. *nto* | *qnx*)
  8857. version_type=qnx
  8858. need_lib_prefix=no
  8859. need_version=no
  8860. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8861. soname_spec='${libname}${release}${shared_ext}$major'
  8862. shlibpath_var=LD_LIBRARY_PATH
  8863. shlibpath_overrides_runpath=no
  8864. hardcode_into_libs=yes
  8865. dynamic_linker='ldqnx.so'
  8866. ;;
  8867. openbsd*)
  8868. version_type=sunos
  8869. sys_lib_dlsearch_path_spec="/usr/lib"
  8870. need_lib_prefix=no
  8871. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8872. case $host_os in
  8873. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8874. *) need_version=no ;;
  8875. esac
  8876. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8877. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8878. shlibpath_var=LD_LIBRARY_PATH
  8879. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8880. case $host_os in
  8881. openbsd2.[89] | openbsd2.[89].*)
  8882. shlibpath_overrides_runpath=no
  8883. ;;
  8884. *)
  8885. shlibpath_overrides_runpath=yes
  8886. ;;
  8887. esac
  8888. else
  8889. shlibpath_overrides_runpath=yes
  8890. fi
  8891. ;;
  8892. os2*)
  8893. libname_spec='$name'
  8894. shrext_cmds=".dll"
  8895. need_lib_prefix=no
  8896. library_names_spec='$libname${shared_ext} $libname.a'
  8897. dynamic_linker='OS/2 ld.exe'
  8898. shlibpath_var=LIBPATH
  8899. ;;
  8900. osf3* | osf4* | osf5*)
  8901. version_type=osf
  8902. need_lib_prefix=no
  8903. need_version=no
  8904. soname_spec='${libname}${release}${shared_ext}$major'
  8905. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8906. shlibpath_var=LD_LIBRARY_PATH
  8907. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8908. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8909. ;;
  8910. rdos*)
  8911. dynamic_linker=no
  8912. ;;
  8913. solaris*)
  8914. version_type=linux
  8915. need_lib_prefix=no
  8916. need_version=no
  8917. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8918. soname_spec='${libname}${release}${shared_ext}$major'
  8919. shlibpath_var=LD_LIBRARY_PATH
  8920. shlibpath_overrides_runpath=yes
  8921. hardcode_into_libs=yes
  8922. # ldd complains unless libraries are executable
  8923. postinstall_cmds='chmod +x $lib'
  8924. ;;
  8925. sunos4*)
  8926. version_type=sunos
  8927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8928. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8929. shlibpath_var=LD_LIBRARY_PATH
  8930. shlibpath_overrides_runpath=yes
  8931. if test "$with_gnu_ld" = yes; then
  8932. need_lib_prefix=no
  8933. fi
  8934. need_version=yes
  8935. ;;
  8936. sysv4 | sysv4.3*)
  8937. version_type=linux
  8938. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8939. soname_spec='${libname}${release}${shared_ext}$major'
  8940. shlibpath_var=LD_LIBRARY_PATH
  8941. case $host_vendor in
  8942. sni)
  8943. shlibpath_overrides_runpath=no
  8944. need_lib_prefix=no
  8945. runpath_var=LD_RUN_PATH
  8946. ;;
  8947. siemens)
  8948. need_lib_prefix=no
  8949. ;;
  8950. motorola)
  8951. need_lib_prefix=no
  8952. need_version=no
  8953. shlibpath_overrides_runpath=no
  8954. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8955. ;;
  8956. esac
  8957. ;;
  8958. sysv4*MP*)
  8959. if test -d /usr/nec ;then
  8960. version_type=linux
  8961. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8962. soname_spec='$libname${shared_ext}.$major'
  8963. shlibpath_var=LD_LIBRARY_PATH
  8964. fi
  8965. ;;
  8966. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8967. version_type=freebsd-elf
  8968. need_lib_prefix=no
  8969. need_version=no
  8970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8971. soname_spec='${libname}${release}${shared_ext}$major'
  8972. shlibpath_var=LD_LIBRARY_PATH
  8973. shlibpath_overrides_runpath=yes
  8974. hardcode_into_libs=yes
  8975. if test "$with_gnu_ld" = yes; then
  8976. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8977. else
  8978. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8979. case $host_os in
  8980. sco3.2v5*)
  8981. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8982. ;;
  8983. esac
  8984. fi
  8985. sys_lib_dlsearch_path_spec='/usr/lib'
  8986. ;;
  8987. tpf*)
  8988. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8989. version_type=linux
  8990. need_lib_prefix=no
  8991. need_version=no
  8992. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8993. shlibpath_var=LD_LIBRARY_PATH
  8994. shlibpath_overrides_runpath=no
  8995. hardcode_into_libs=yes
  8996. ;;
  8997. uts4*)
  8998. version_type=linux
  8999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9000. soname_spec='${libname}${release}${shared_ext}$major'
  9001. shlibpath_var=LD_LIBRARY_PATH
  9002. ;;
  9003. *)
  9004. dynamic_linker=no
  9005. ;;
  9006. esac
  9007. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  9008. $as_echo "$dynamic_linker" >&6; }
  9009. test "$dynamic_linker" = no && can_build_shared=no
  9010. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9011. if test "$GCC" = yes; then
  9012. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9013. fi
  9014. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9015. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9016. fi
  9017. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9018. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9019. fi
  9020. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  9021. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9022. hardcode_action=
  9023. if test -n "$hardcode_libdir_flag_spec" ||
  9024. test -n "$runpath_var" ||
  9025. test "X$hardcode_automatic" = "Xyes" ; then
  9026. # We can hardcode non-existent directories.
  9027. if test "$hardcode_direct" != no &&
  9028. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9029. # have to relink, otherwise we might link with an installed library
  9030. # when we should be linking with a yet-to-be-installed one
  9031. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9032. test "$hardcode_minus_L" != no; then
  9033. # Linking always hardcodes the temporary library directory.
  9034. hardcode_action=relink
  9035. else
  9036. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9037. hardcode_action=immediate
  9038. fi
  9039. else
  9040. # We cannot hardcode anything, or else we can only hardcode existing
  9041. # directories.
  9042. hardcode_action=unsupported
  9043. fi
  9044. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  9045. $as_echo "$hardcode_action" >&6; }
  9046. if test "$hardcode_action" = relink ||
  9047. test "$inherit_rpath" = yes; then
  9048. # Fast installation is not supported
  9049. enable_fast_install=no
  9050. elif test "$shlibpath_overrides_runpath" = yes ||
  9051. test "$enable_shared" = no; then
  9052. # Fast installation is not necessary
  9053. enable_fast_install=needless
  9054. fi
  9055. if test "x$enable_dlopen" != xyes; then
  9056. enable_dlopen=unknown
  9057. enable_dlopen_self=unknown
  9058. enable_dlopen_self_static=unknown
  9059. else
  9060. lt_cv_dlopen=no
  9061. lt_cv_dlopen_libs=
  9062. case $host_os in
  9063. beos*)
  9064. lt_cv_dlopen="load_add_on"
  9065. lt_cv_dlopen_libs=
  9066. lt_cv_dlopen_self=yes
  9067. ;;
  9068. mingw* | pw32* | cegcc*)
  9069. lt_cv_dlopen="LoadLibrary"
  9070. lt_cv_dlopen_libs=
  9071. ;;
  9072. cygwin*)
  9073. lt_cv_dlopen="dlopen"
  9074. lt_cv_dlopen_libs=
  9075. ;;
  9076. darwin*)
  9077. # if libdl is installed we need to link against it
  9078. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9079. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9080. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9081. $as_echo_n "(cached) " >&6
  9082. else
  9083. ac_check_lib_save_LIBS=$LIBS
  9084. LIBS="-ldl $LIBS"
  9085. cat >conftest.$ac_ext <<_ACEOF
  9086. /* confdefs.h. */
  9087. _ACEOF
  9088. cat confdefs.h >>conftest.$ac_ext
  9089. cat >>conftest.$ac_ext <<_ACEOF
  9090. /* end confdefs.h. */
  9091. /* Override any GCC internal prototype to avoid an error.
  9092. Use char because int might match the return type of a GCC
  9093. builtin and then its argument prototype would still apply. */
  9094. #ifdef __cplusplus
  9095. extern "C"
  9096. #endif
  9097. char dlopen ();
  9098. int
  9099. main ()
  9100. {
  9101. return dlopen ();
  9102. ;
  9103. return 0;
  9104. }
  9105. _ACEOF
  9106. rm -f conftest.$ac_objext conftest$ac_exeext
  9107. if { (ac_try="$ac_link"
  9108. case "(($ac_try" in
  9109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9110. *) ac_try_echo=$ac_try;;
  9111. esac
  9112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9113. $as_echo "$ac_try_echo") >&5
  9114. (eval "$ac_link") 2>conftest.er1
  9115. ac_status=$?
  9116. grep -v '^ *+' conftest.er1 >conftest.err
  9117. rm -f conftest.er1
  9118. cat conftest.err >&5
  9119. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9120. (exit $ac_status); } && {
  9121. test -z "$ac_c_werror_flag" ||
  9122. test ! -s conftest.err
  9123. } && test -s conftest$ac_exeext && {
  9124. test "$cross_compiling" = yes ||
  9125. $as_test_x conftest$ac_exeext
  9126. }; then
  9127. ac_cv_lib_dl_dlopen=yes
  9128. else
  9129. $as_echo "$as_me: failed program was:" >&5
  9130. sed 's/^/| /' conftest.$ac_ext >&5
  9131. ac_cv_lib_dl_dlopen=no
  9132. fi
  9133. rm -rf conftest.dSYM
  9134. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9135. conftest$ac_exeext conftest.$ac_ext
  9136. LIBS=$ac_check_lib_save_LIBS
  9137. fi
  9138. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9139. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9140. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  9141. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9142. else
  9143. lt_cv_dlopen="dyld"
  9144. lt_cv_dlopen_libs=
  9145. lt_cv_dlopen_self=yes
  9146. fi
  9147. ;;
  9148. *)
  9149. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  9150. $as_echo_n "checking for shl_load... " >&6; }
  9151. if test "${ac_cv_func_shl_load+set}" = set; then
  9152. $as_echo_n "(cached) " >&6
  9153. else
  9154. cat >conftest.$ac_ext <<_ACEOF
  9155. /* confdefs.h. */
  9156. _ACEOF
  9157. cat confdefs.h >>conftest.$ac_ext
  9158. cat >>conftest.$ac_ext <<_ACEOF
  9159. /* end confdefs.h. */
  9160. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  9161. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9162. #define shl_load innocuous_shl_load
  9163. /* System header to define __stub macros and hopefully few prototypes,
  9164. which can conflict with char shl_load (); below.
  9165. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9166. <limits.h> exists even on freestanding compilers. */
  9167. #ifdef __STDC__
  9168. # include <limits.h>
  9169. #else
  9170. # include <assert.h>
  9171. #endif
  9172. #undef shl_load
  9173. /* Override any GCC internal prototype to avoid an error.
  9174. Use char because int might match the return type of a GCC
  9175. builtin and then its argument prototype would still apply. */
  9176. #ifdef __cplusplus
  9177. extern "C"
  9178. #endif
  9179. char shl_load ();
  9180. /* The GNU C library defines this for functions which it implements
  9181. to always fail with ENOSYS. Some functions are actually named
  9182. something starting with __ and the normal name is an alias. */
  9183. #if defined __stub_shl_load || defined __stub___shl_load
  9184. choke me
  9185. #endif
  9186. int
  9187. main ()
  9188. {
  9189. return shl_load ();
  9190. ;
  9191. return 0;
  9192. }
  9193. _ACEOF
  9194. rm -f conftest.$ac_objext conftest$ac_exeext
  9195. if { (ac_try="$ac_link"
  9196. case "(($ac_try" in
  9197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9198. *) ac_try_echo=$ac_try;;
  9199. esac
  9200. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9201. $as_echo "$ac_try_echo") >&5
  9202. (eval "$ac_link") 2>conftest.er1
  9203. ac_status=$?
  9204. grep -v '^ *+' conftest.er1 >conftest.err
  9205. rm -f conftest.er1
  9206. cat conftest.err >&5
  9207. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9208. (exit $ac_status); } && {
  9209. test -z "$ac_c_werror_flag" ||
  9210. test ! -s conftest.err
  9211. } && test -s conftest$ac_exeext && {
  9212. test "$cross_compiling" = yes ||
  9213. $as_test_x conftest$ac_exeext
  9214. }; then
  9215. ac_cv_func_shl_load=yes
  9216. else
  9217. $as_echo "$as_me: failed program was:" >&5
  9218. sed 's/^/| /' conftest.$ac_ext >&5
  9219. ac_cv_func_shl_load=no
  9220. fi
  9221. rm -rf conftest.dSYM
  9222. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9223. conftest$ac_exeext conftest.$ac_ext
  9224. fi
  9225. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9226. $as_echo "$ac_cv_func_shl_load" >&6; }
  9227. if test "x$ac_cv_func_shl_load" = x""yes; then
  9228. lt_cv_dlopen="shl_load"
  9229. else
  9230. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9231. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9232. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9233. $as_echo_n "(cached) " >&6
  9234. else
  9235. ac_check_lib_save_LIBS=$LIBS
  9236. LIBS="-ldld $LIBS"
  9237. cat >conftest.$ac_ext <<_ACEOF
  9238. /* confdefs.h. */
  9239. _ACEOF
  9240. cat confdefs.h >>conftest.$ac_ext
  9241. cat >>conftest.$ac_ext <<_ACEOF
  9242. /* end confdefs.h. */
  9243. /* Override any GCC internal prototype to avoid an error.
  9244. Use char because int might match the return type of a GCC
  9245. builtin and then its argument prototype would still apply. */
  9246. #ifdef __cplusplus
  9247. extern "C"
  9248. #endif
  9249. char shl_load ();
  9250. int
  9251. main ()
  9252. {
  9253. return shl_load ();
  9254. ;
  9255. return 0;
  9256. }
  9257. _ACEOF
  9258. rm -f conftest.$ac_objext conftest$ac_exeext
  9259. if { (ac_try="$ac_link"
  9260. case "(($ac_try" in
  9261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9262. *) ac_try_echo=$ac_try;;
  9263. esac
  9264. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9265. $as_echo "$ac_try_echo") >&5
  9266. (eval "$ac_link") 2>conftest.er1
  9267. ac_status=$?
  9268. grep -v '^ *+' conftest.er1 >conftest.err
  9269. rm -f conftest.er1
  9270. cat conftest.err >&5
  9271. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9272. (exit $ac_status); } && {
  9273. test -z "$ac_c_werror_flag" ||
  9274. test ! -s conftest.err
  9275. } && test -s conftest$ac_exeext && {
  9276. test "$cross_compiling" = yes ||
  9277. $as_test_x conftest$ac_exeext
  9278. }; then
  9279. ac_cv_lib_dld_shl_load=yes
  9280. else
  9281. $as_echo "$as_me: failed program was:" >&5
  9282. sed 's/^/| /' conftest.$ac_ext >&5
  9283. ac_cv_lib_dld_shl_load=no
  9284. fi
  9285. rm -rf conftest.dSYM
  9286. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9287. conftest$ac_exeext conftest.$ac_ext
  9288. LIBS=$ac_check_lib_save_LIBS
  9289. fi
  9290. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9291. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9292. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  9293. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9294. else
  9295. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  9296. $as_echo_n "checking for dlopen... " >&6; }
  9297. if test "${ac_cv_func_dlopen+set}" = set; then
  9298. $as_echo_n "(cached) " >&6
  9299. else
  9300. cat >conftest.$ac_ext <<_ACEOF
  9301. /* confdefs.h. */
  9302. _ACEOF
  9303. cat confdefs.h >>conftest.$ac_ext
  9304. cat >>conftest.$ac_ext <<_ACEOF
  9305. /* end confdefs.h. */
  9306. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  9307. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9308. #define dlopen innocuous_dlopen
  9309. /* System header to define __stub macros and hopefully few prototypes,
  9310. which can conflict with char dlopen (); below.
  9311. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9312. <limits.h> exists even on freestanding compilers. */
  9313. #ifdef __STDC__
  9314. # include <limits.h>
  9315. #else
  9316. # include <assert.h>
  9317. #endif
  9318. #undef dlopen
  9319. /* Override any GCC internal prototype to avoid an error.
  9320. Use char because int might match the return type of a GCC
  9321. builtin and then its argument prototype would still apply. */
  9322. #ifdef __cplusplus
  9323. extern "C"
  9324. #endif
  9325. char dlopen ();
  9326. /* The GNU C library defines this for functions which it implements
  9327. to always fail with ENOSYS. Some functions are actually named
  9328. something starting with __ and the normal name is an alias. */
  9329. #if defined __stub_dlopen || defined __stub___dlopen
  9330. choke me
  9331. #endif
  9332. int
  9333. main ()
  9334. {
  9335. return dlopen ();
  9336. ;
  9337. return 0;
  9338. }
  9339. _ACEOF
  9340. rm -f conftest.$ac_objext conftest$ac_exeext
  9341. if { (ac_try="$ac_link"
  9342. case "(($ac_try" in
  9343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9344. *) ac_try_echo=$ac_try;;
  9345. esac
  9346. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9347. $as_echo "$ac_try_echo") >&5
  9348. (eval "$ac_link") 2>conftest.er1
  9349. ac_status=$?
  9350. grep -v '^ *+' conftest.er1 >conftest.err
  9351. rm -f conftest.er1
  9352. cat conftest.err >&5
  9353. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9354. (exit $ac_status); } && {
  9355. test -z "$ac_c_werror_flag" ||
  9356. test ! -s conftest.err
  9357. } && test -s conftest$ac_exeext && {
  9358. test "$cross_compiling" = yes ||
  9359. $as_test_x conftest$ac_exeext
  9360. }; then
  9361. ac_cv_func_dlopen=yes
  9362. else
  9363. $as_echo "$as_me: failed program was:" >&5
  9364. sed 's/^/| /' conftest.$ac_ext >&5
  9365. ac_cv_func_dlopen=no
  9366. fi
  9367. rm -rf conftest.dSYM
  9368. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9369. conftest$ac_exeext conftest.$ac_ext
  9370. fi
  9371. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  9372. $as_echo "$ac_cv_func_dlopen" >&6; }
  9373. if test "x$ac_cv_func_dlopen" = x""yes; then
  9374. lt_cv_dlopen="dlopen"
  9375. else
  9376. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9377. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9378. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9379. $as_echo_n "(cached) " >&6
  9380. else
  9381. ac_check_lib_save_LIBS=$LIBS
  9382. LIBS="-ldl $LIBS"
  9383. cat >conftest.$ac_ext <<_ACEOF
  9384. /* confdefs.h. */
  9385. _ACEOF
  9386. cat confdefs.h >>conftest.$ac_ext
  9387. cat >>conftest.$ac_ext <<_ACEOF
  9388. /* end confdefs.h. */
  9389. /* Override any GCC internal prototype to avoid an error.
  9390. Use char because int might match the return type of a GCC
  9391. builtin and then its argument prototype would still apply. */
  9392. #ifdef __cplusplus
  9393. extern "C"
  9394. #endif
  9395. char dlopen ();
  9396. int
  9397. main ()
  9398. {
  9399. return dlopen ();
  9400. ;
  9401. return 0;
  9402. }
  9403. _ACEOF
  9404. rm -f conftest.$ac_objext conftest$ac_exeext
  9405. if { (ac_try="$ac_link"
  9406. case "(($ac_try" in
  9407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9408. *) ac_try_echo=$ac_try;;
  9409. esac
  9410. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9411. $as_echo "$ac_try_echo") >&5
  9412. (eval "$ac_link") 2>conftest.er1
  9413. ac_status=$?
  9414. grep -v '^ *+' conftest.er1 >conftest.err
  9415. rm -f conftest.er1
  9416. cat conftest.err >&5
  9417. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9418. (exit $ac_status); } && {
  9419. test -z "$ac_c_werror_flag" ||
  9420. test ! -s conftest.err
  9421. } && test -s conftest$ac_exeext && {
  9422. test "$cross_compiling" = yes ||
  9423. $as_test_x conftest$ac_exeext
  9424. }; then
  9425. ac_cv_lib_dl_dlopen=yes
  9426. else
  9427. $as_echo "$as_me: failed program was:" >&5
  9428. sed 's/^/| /' conftest.$ac_ext >&5
  9429. ac_cv_lib_dl_dlopen=no
  9430. fi
  9431. rm -rf conftest.dSYM
  9432. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9433. conftest$ac_exeext conftest.$ac_ext
  9434. LIBS=$ac_check_lib_save_LIBS
  9435. fi
  9436. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9437. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9438. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  9439. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9440. else
  9441. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9442. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9443. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9444. $as_echo_n "(cached) " >&6
  9445. else
  9446. ac_check_lib_save_LIBS=$LIBS
  9447. LIBS="-lsvld $LIBS"
  9448. cat >conftest.$ac_ext <<_ACEOF
  9449. /* confdefs.h. */
  9450. _ACEOF
  9451. cat confdefs.h >>conftest.$ac_ext
  9452. cat >>conftest.$ac_ext <<_ACEOF
  9453. /* end confdefs.h. */
  9454. /* Override any GCC internal prototype to avoid an error.
  9455. Use char because int might match the return type of a GCC
  9456. builtin and then its argument prototype would still apply. */
  9457. #ifdef __cplusplus
  9458. extern "C"
  9459. #endif
  9460. char dlopen ();
  9461. int
  9462. main ()
  9463. {
  9464. return dlopen ();
  9465. ;
  9466. return 0;
  9467. }
  9468. _ACEOF
  9469. rm -f conftest.$ac_objext conftest$ac_exeext
  9470. if { (ac_try="$ac_link"
  9471. case "(($ac_try" in
  9472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9473. *) ac_try_echo=$ac_try;;
  9474. esac
  9475. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9476. $as_echo "$ac_try_echo") >&5
  9477. (eval "$ac_link") 2>conftest.er1
  9478. ac_status=$?
  9479. grep -v '^ *+' conftest.er1 >conftest.err
  9480. rm -f conftest.er1
  9481. cat conftest.err >&5
  9482. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9483. (exit $ac_status); } && {
  9484. test -z "$ac_c_werror_flag" ||
  9485. test ! -s conftest.err
  9486. } && test -s conftest$ac_exeext && {
  9487. test "$cross_compiling" = yes ||
  9488. $as_test_x conftest$ac_exeext
  9489. }; then
  9490. ac_cv_lib_svld_dlopen=yes
  9491. else
  9492. $as_echo "$as_me: failed program was:" >&5
  9493. sed 's/^/| /' conftest.$ac_ext >&5
  9494. ac_cv_lib_svld_dlopen=no
  9495. fi
  9496. rm -rf conftest.dSYM
  9497. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9498. conftest$ac_exeext conftest.$ac_ext
  9499. LIBS=$ac_check_lib_save_LIBS
  9500. fi
  9501. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9502. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9503. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  9504. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9505. else
  9506. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9507. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9508. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9509. $as_echo_n "(cached) " >&6
  9510. else
  9511. ac_check_lib_save_LIBS=$LIBS
  9512. LIBS="-ldld $LIBS"
  9513. cat >conftest.$ac_ext <<_ACEOF
  9514. /* confdefs.h. */
  9515. _ACEOF
  9516. cat confdefs.h >>conftest.$ac_ext
  9517. cat >>conftest.$ac_ext <<_ACEOF
  9518. /* end confdefs.h. */
  9519. /* Override any GCC internal prototype to avoid an error.
  9520. Use char because int might match the return type of a GCC
  9521. builtin and then its argument prototype would still apply. */
  9522. #ifdef __cplusplus
  9523. extern "C"
  9524. #endif
  9525. char dld_link ();
  9526. int
  9527. main ()
  9528. {
  9529. return dld_link ();
  9530. ;
  9531. return 0;
  9532. }
  9533. _ACEOF
  9534. rm -f conftest.$ac_objext conftest$ac_exeext
  9535. if { (ac_try="$ac_link"
  9536. case "(($ac_try" in
  9537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9538. *) ac_try_echo=$ac_try;;
  9539. esac
  9540. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9541. $as_echo "$ac_try_echo") >&5
  9542. (eval "$ac_link") 2>conftest.er1
  9543. ac_status=$?
  9544. grep -v '^ *+' conftest.er1 >conftest.err
  9545. rm -f conftest.er1
  9546. cat conftest.err >&5
  9547. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9548. (exit $ac_status); } && {
  9549. test -z "$ac_c_werror_flag" ||
  9550. test ! -s conftest.err
  9551. } && test -s conftest$ac_exeext && {
  9552. test "$cross_compiling" = yes ||
  9553. $as_test_x conftest$ac_exeext
  9554. }; then
  9555. ac_cv_lib_dld_dld_link=yes
  9556. else
  9557. $as_echo "$as_me: failed program was:" >&5
  9558. sed 's/^/| /' conftest.$ac_ext >&5
  9559. ac_cv_lib_dld_dld_link=no
  9560. fi
  9561. rm -rf conftest.dSYM
  9562. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9563. conftest$ac_exeext conftest.$ac_ext
  9564. LIBS=$ac_check_lib_save_LIBS
  9565. fi
  9566. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9567. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9568. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  9569. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9570. fi
  9571. fi
  9572. fi
  9573. fi
  9574. fi
  9575. fi
  9576. ;;
  9577. esac
  9578. if test "x$lt_cv_dlopen" != xno; then
  9579. enable_dlopen=yes
  9580. else
  9581. enable_dlopen=no
  9582. fi
  9583. case $lt_cv_dlopen in
  9584. dlopen)
  9585. save_CPPFLAGS="$CPPFLAGS"
  9586. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9587. save_LDFLAGS="$LDFLAGS"
  9588. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9589. save_LIBS="$LIBS"
  9590. LIBS="$lt_cv_dlopen_libs $LIBS"
  9591. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9592. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9593. if test "${lt_cv_dlopen_self+set}" = set; then
  9594. $as_echo_n "(cached) " >&6
  9595. else
  9596. if test "$cross_compiling" = yes; then :
  9597. lt_cv_dlopen_self=cross
  9598. else
  9599. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9600. lt_status=$lt_dlunknown
  9601. cat > conftest.$ac_ext <<_LT_EOF
  9602. #line 11227 "configure"
  9603. #include "confdefs.h"
  9604. #if HAVE_DLFCN_H
  9605. #include <dlfcn.h>
  9606. #endif
  9607. #include <stdio.h>
  9608. #ifdef RTLD_GLOBAL
  9609. # define LT_DLGLOBAL RTLD_GLOBAL
  9610. #else
  9611. # ifdef DL_GLOBAL
  9612. # define LT_DLGLOBAL DL_GLOBAL
  9613. # else
  9614. # define LT_DLGLOBAL 0
  9615. # endif
  9616. #endif
  9617. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9618. find out it does not work in some platform. */
  9619. #ifndef LT_DLLAZY_OR_NOW
  9620. # ifdef RTLD_LAZY
  9621. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9622. # else
  9623. # ifdef DL_LAZY
  9624. # define LT_DLLAZY_OR_NOW DL_LAZY
  9625. # else
  9626. # ifdef RTLD_NOW
  9627. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9628. # else
  9629. # ifdef DL_NOW
  9630. # define LT_DLLAZY_OR_NOW DL_NOW
  9631. # else
  9632. # define LT_DLLAZY_OR_NOW 0
  9633. # endif
  9634. # endif
  9635. # endif
  9636. # endif
  9637. #endif
  9638. void fnord() { int i=42;}
  9639. int main ()
  9640. {
  9641. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9642. int status = $lt_dlunknown;
  9643. if (self)
  9644. {
  9645. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9646. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9647. /* dlclose (self); */
  9648. }
  9649. else
  9650. puts (dlerror ());
  9651. return status;
  9652. }
  9653. _LT_EOF
  9654. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9655. (eval $ac_link) 2>&5
  9656. ac_status=$?
  9657. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9658. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9659. (./conftest; exit; ) >&5 2>/dev/null
  9660. lt_status=$?
  9661. case x$lt_status in
  9662. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9663. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9664. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9665. esac
  9666. else :
  9667. # compilation failed
  9668. lt_cv_dlopen_self=no
  9669. fi
  9670. fi
  9671. rm -fr conftest*
  9672. fi
  9673. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9674. $as_echo "$lt_cv_dlopen_self" >&6; }
  9675. if test "x$lt_cv_dlopen_self" = xyes; then
  9676. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9677. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9678. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9679. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9680. $as_echo_n "(cached) " >&6
  9681. else
  9682. if test "$cross_compiling" = yes; then :
  9683. lt_cv_dlopen_self_static=cross
  9684. else
  9685. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9686. lt_status=$lt_dlunknown
  9687. cat > conftest.$ac_ext <<_LT_EOF
  9688. #line 11323 "configure"
  9689. #include "confdefs.h"
  9690. #if HAVE_DLFCN_H
  9691. #include <dlfcn.h>
  9692. #endif
  9693. #include <stdio.h>
  9694. #ifdef RTLD_GLOBAL
  9695. # define LT_DLGLOBAL RTLD_GLOBAL
  9696. #else
  9697. # ifdef DL_GLOBAL
  9698. # define LT_DLGLOBAL DL_GLOBAL
  9699. # else
  9700. # define LT_DLGLOBAL 0
  9701. # endif
  9702. #endif
  9703. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9704. find out it does not work in some platform. */
  9705. #ifndef LT_DLLAZY_OR_NOW
  9706. # ifdef RTLD_LAZY
  9707. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9708. # else
  9709. # ifdef DL_LAZY
  9710. # define LT_DLLAZY_OR_NOW DL_LAZY
  9711. # else
  9712. # ifdef RTLD_NOW
  9713. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9714. # else
  9715. # ifdef DL_NOW
  9716. # define LT_DLLAZY_OR_NOW DL_NOW
  9717. # else
  9718. # define LT_DLLAZY_OR_NOW 0
  9719. # endif
  9720. # endif
  9721. # endif
  9722. # endif
  9723. #endif
  9724. void fnord() { int i=42;}
  9725. int main ()
  9726. {
  9727. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9728. int status = $lt_dlunknown;
  9729. if (self)
  9730. {
  9731. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9732. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9733. /* dlclose (self); */
  9734. }
  9735. else
  9736. puts (dlerror ());
  9737. return status;
  9738. }
  9739. _LT_EOF
  9740. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9741. (eval $ac_link) 2>&5
  9742. ac_status=$?
  9743. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9744. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9745. (./conftest; exit; ) >&5 2>/dev/null
  9746. lt_status=$?
  9747. case x$lt_status in
  9748. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9749. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9750. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9751. esac
  9752. else :
  9753. # compilation failed
  9754. lt_cv_dlopen_self_static=no
  9755. fi
  9756. fi
  9757. rm -fr conftest*
  9758. fi
  9759. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9760. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9761. fi
  9762. CPPFLAGS="$save_CPPFLAGS"
  9763. LDFLAGS="$save_LDFLAGS"
  9764. LIBS="$save_LIBS"
  9765. ;;
  9766. esac
  9767. case $lt_cv_dlopen_self in
  9768. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9769. *) enable_dlopen_self=unknown ;;
  9770. esac
  9771. case $lt_cv_dlopen_self_static in
  9772. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9773. *) enable_dlopen_self_static=unknown ;;
  9774. esac
  9775. fi
  9776. striplib=
  9777. old_striplib=
  9778. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  9779. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9780. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9781. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9782. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9783. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9784. $as_echo "yes" >&6; }
  9785. else
  9786. # FIXME - insert some real tests, host_os isn't really good enough
  9787. case $host_os in
  9788. darwin*)
  9789. if test -n "$STRIP" ; then
  9790. striplib="$STRIP -x"
  9791. old_striplib="$STRIP -S"
  9792. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9793. $as_echo "yes" >&6; }
  9794. else
  9795. { $as_echo "$as_me:$LINENO: result: no" >&5
  9796. $as_echo "no" >&6; }
  9797. fi
  9798. ;;
  9799. *)
  9800. { $as_echo "$as_me:$LINENO: result: no" >&5
  9801. $as_echo "no" >&6; }
  9802. ;;
  9803. esac
  9804. fi
  9805. # Report which library types will actually be built
  9806. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9807. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9808. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9809. $as_echo "$can_build_shared" >&6; }
  9810. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9811. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9812. test "$can_build_shared" = "no" && enable_shared=no
  9813. # On AIX, shared libraries and static libraries use the same namespace, and
  9814. # are all built from PIC.
  9815. case $host_os in
  9816. aix3*)
  9817. test "$enable_shared" = yes && enable_static=no
  9818. if test -n "$RANLIB"; then
  9819. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9820. postinstall_cmds='$RANLIB $lib'
  9821. fi
  9822. ;;
  9823. aix[4-9]*)
  9824. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9825. test "$enable_shared" = yes && enable_static=no
  9826. fi
  9827. ;;
  9828. esac
  9829. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  9830. $as_echo "$enable_shared" >&6; }
  9831. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9832. $as_echo_n "checking whether to build static libraries... " >&6; }
  9833. # Make sure either enable_shared or enable_static is yes.
  9834. test "$enable_shared" = yes || enable_static=yes
  9835. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  9836. $as_echo "$enable_static" >&6; }
  9837. fi
  9838. ac_ext=c
  9839. ac_cpp='$CPP $CPPFLAGS'
  9840. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9841. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9842. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9843. CC="$lt_save_CC"
  9844. ac_config_commands="$ac_config_commands libtool"
  9845. # Only expand once:
  9846. ACLOCAL_AMFLAGS="-I m4"
  9847. # Extract the first word of "doxygen", so it can be a program name with args.
  9848. set dummy doxygen; ac_word=$2
  9849. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9850. $as_echo_n "checking for $ac_word... " >&6; }
  9851. if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then
  9852. $as_echo_n "(cached) " >&6
  9853. else
  9854. if test -n "$HAVE_DOXYGEN"; then
  9855. ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
  9856. else
  9857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9858. for as_dir in $PATH
  9859. do
  9860. IFS=$as_save_IFS
  9861. test -z "$as_dir" && as_dir=.
  9862. for ac_exec_ext in '' $ac_executable_extensions; do
  9863. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9864. ac_cv_prog_HAVE_DOXYGEN="true"
  9865. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9866. break 2
  9867. fi
  9868. done
  9869. done
  9870. IFS=$as_save_IFS
  9871. test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false"
  9872. fi
  9873. fi
  9874. HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
  9875. if test -n "$HAVE_DOXYGEN"; then
  9876. { $as_echo "$as_me:$LINENO: result: $HAVE_DOXYGEN" >&5
  9877. $as_echo "$HAVE_DOXYGEN" >&6; }
  9878. else
  9879. { $as_echo "$as_me:$LINENO: result: no" >&5
  9880. $as_echo "no" >&6; }
  9881. fi
  9882. if $HAVE_DOXYGEN; then
  9883. HAVE_DOXYGEN_TRUE=
  9884. HAVE_DOXYGEN_FALSE='#'
  9885. else
  9886. HAVE_DOXYGEN_TRUE='#'
  9887. HAVE_DOXYGEN_FALSE=
  9888. fi
  9889. if test $HAVE_DOXYGEN = "false"; then
  9890. { $as_echo "$as_me:$LINENO: WARNING: *** doxygen not found, API documentation will not be built" >&5
  9891. $as_echo "$as_me: WARNING: *** doxygen not found, API documentation will not be built" >&2;}
  9892. fi
  9893. BUILD_SPEC="false"
  9894. ac_build_spec=yes
  9895. # Check whether --enable-spec was given.
  9896. if test "${enable_spec+set}" = set; then
  9897. enableval=$enable_spec;
  9898. if test "x$enableval" = "xno"; then
  9899. ac_build_spec=$enableval
  9900. fi
  9901. else
  9902. ac_build_spec=yes
  9903. fi
  9904. if test "x$ac_build_spec" = "xyes"; then
  9905. # Extract the first word of "pdflatex", so it can be a program name with args.
  9906. set dummy pdflatex; ac_word=$2
  9907. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9908. $as_echo_n "checking for $ac_word... " >&6; }
  9909. if test "${ac_cv_prog_HAVE_PDFLATEX+set}" = set; then
  9910. $as_echo_n "(cached) " >&6
  9911. else
  9912. if test -n "$HAVE_PDFLATEX"; then
  9913. ac_cv_prog_HAVE_PDFLATEX="$HAVE_PDFLATEX" # Let the user override the test.
  9914. else
  9915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9916. for as_dir in $PATH
  9917. do
  9918. IFS=$as_save_IFS
  9919. test -z "$as_dir" && as_dir=.
  9920. for ac_exec_ext in '' $ac_executable_extensions; do
  9921. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9922. ac_cv_prog_HAVE_PDFLATEX="yes"
  9923. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9924. break 2
  9925. fi
  9926. done
  9927. done
  9928. IFS=$as_save_IFS
  9929. fi
  9930. fi
  9931. HAVE_PDFLATEX=$ac_cv_prog_HAVE_PDFLATEX
  9932. if test -n "$HAVE_PDFLATEX"; then
  9933. { $as_echo "$as_me:$LINENO: result: $HAVE_PDFLATEX" >&5
  9934. $as_echo "$HAVE_PDFLATEX" >&6; }
  9935. else
  9936. { $as_echo "$as_me:$LINENO: result: no" >&5
  9937. $as_echo "no" >&6; }
  9938. fi
  9939. # Extract the first word of "bibtex", so it can be a program name with args.
  9940. set dummy bibtex; ac_word=$2
  9941. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9942. $as_echo_n "checking for $ac_word... " >&6; }
  9943. if test "${ac_cv_prog_HAVE_BIBTEX+set}" = set; then
  9944. $as_echo_n "(cached) " >&6
  9945. else
  9946. if test -n "$HAVE_BIBTEX"; then
  9947. ac_cv_prog_HAVE_BIBTEX="$HAVE_BIBTEX" # Let the user override the test.
  9948. else
  9949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9950. for as_dir in $PATH
  9951. do
  9952. IFS=$as_save_IFS
  9953. test -z "$as_dir" && as_dir=.
  9954. for ac_exec_ext in '' $ac_executable_extensions; do
  9955. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9956. ac_cv_prog_HAVE_BIBTEX="yes"
  9957. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9958. break 2
  9959. fi
  9960. done
  9961. done
  9962. IFS=$as_save_IFS
  9963. fi
  9964. fi
  9965. HAVE_BIBTEX=$ac_cv_prog_HAVE_BIBTEX
  9966. if test -n "$HAVE_BIBTEX"; then
  9967. { $as_echo "$as_me:$LINENO: result: $HAVE_BIBTEX" >&5
  9968. $as_echo "$HAVE_BIBTEX" >&6; }
  9969. else
  9970. { $as_echo "$as_me:$LINENO: result: no" >&5
  9971. $as_echo "no" >&6; }
  9972. fi
  9973. # Extract the first word of "fig2dev", so it can be a program name with args.
  9974. set dummy fig2dev; ac_word=$2
  9975. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9976. $as_echo_n "checking for $ac_word... " >&6; }
  9977. if test "${ac_cv_prog_HAVE_TRANSFIG+set}" = set; then
  9978. $as_echo_n "(cached) " >&6
  9979. else
  9980. if test -n "$HAVE_TRANSFIG"; then
  9981. ac_cv_prog_HAVE_TRANSFIG="$HAVE_TRANSFIG" # Let the user override the test.
  9982. else
  9983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9984. for as_dir in $PATH
  9985. do
  9986. IFS=$as_save_IFS
  9987. test -z "$as_dir" && as_dir=.
  9988. for ac_exec_ext in '' $ac_executable_extensions; do
  9989. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9990. ac_cv_prog_HAVE_TRANSFIG="yes"
  9991. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9992. break 2
  9993. fi
  9994. done
  9995. done
  9996. IFS=$as_save_IFS
  9997. fi
  9998. fi
  9999. HAVE_TRANSFIG=$ac_cv_prog_HAVE_TRANSFIG
  10000. if test -n "$HAVE_TRANSFIG"; then
  10001. { $as_echo "$as_me:$LINENO: result: $HAVE_TRANSFIG" >&5
  10002. $as_echo "$HAVE_TRANSFIG" >&6; }
  10003. else
  10004. { $as_echo "$as_me:$LINENO: result: no" >&5
  10005. $as_echo "no" >&6; }
  10006. fi
  10007. if test -r doc/spec/spec.tex; then
  10008. if test "x$HAVE_PDFLATEX" = "xyes"; then
  10009. if test "x$HAVE_BIBTEX" = "xyes"; then
  10010. if test "x$HAVE_TRANSFIG" = "xyes"; then
  10011. tex_pkg_list=`fgrep usepackage doc/spec/spec.tex | grep \{ | grep -v ltablex`
  10012. tex_pkg_ok="yes"
  10013. for pkg_line in $tex_pkg_list; do
  10014. pkg_name=`echo $pkg_line | sed -e 's/.*{\(.*\)}.*/\1/'`
  10015. { $as_echo "$as_me:$LINENO: checking for Tex package $pkg_name" >&5
  10016. $as_echo_n "checking for Tex package $pkg_name... " >&6; }
  10017. cat >conftest.tex <<_ACEOF
  10018. \\documentclass{book}
  10019. $pkg_line
  10020. \\begin{document}
  10021. Hello World.
  10022. \\end{document}
  10023. _ACEOF
  10024. if pdflatex -interaction batchmode -halt-on-error conftest < /dev/null > /dev/null 2>&1; then
  10025. { $as_echo "$as_me:$LINENO: result: ok" >&5
  10026. $as_echo "ok" >&6; }
  10027. else
  10028. tex_pkg_ok="no"
  10029. { $as_echo "$as_me:$LINENO: result: no" >&5
  10030. $as_echo "no" >&6; }
  10031. fi
  10032. done
  10033. if test -w conftest.tex; then rm conftest.tex; fi
  10034. if test -w conftest.tex; then rm conftest.aux; fi
  10035. if test -w conftest.pdf; then rm conftest.pdf; fi
  10036. if test "x$tex_pkg_ok" = "xyes"; then
  10037. BUILD_SPEC="true"
  10038. fi
  10039. fi
  10040. fi
  10041. fi
  10042. fi
  10043. fi
  10044. if $BUILD_SPEC; then
  10045. BUILD_SPEC_TRUE=
  10046. BUILD_SPEC_FALSE='#'
  10047. else
  10048. BUILD_SPEC_TRUE='#'
  10049. BUILD_SPEC_FALSE=
  10050. fi
  10051. if test $BUILD_SPEC = "false"; then
  10052. { $as_echo "$as_me:$LINENO: WARNING: *** Format Specification will not built." >&5
  10053. $as_echo "$as_me: WARNING: *** Format Specification will not built." >&2;}
  10054. fi
  10055. VALGRIND_ENVIRONMENT=""
  10056. ac_enable_valgrind=no
  10057. # Check whether --enable-valgrind-testing was given.
  10058. if test "${enable_valgrind_testing+set}" = set; then
  10059. enableval=$enable_valgrind_testing; ac_enable_valgrind=yes
  10060. else
  10061. ac_enable_valgrind=no
  10062. fi
  10063. if test "x${ac_enable_valgrind}" = xyes ; then
  10064. if test "x${enable_shared}" = xyes ; then
  10065. VALGRIND_ENVIRONMENT="libtool --mode=execute "
  10066. fi
  10067. # Extract the first word of "valgrind", so it can be a program name with args.
  10068. set dummy valgrind; ac_word=$2
  10069. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10070. $as_echo_n "checking for $ac_word... " >&6; }
  10071. if test "${ac_cv_prog_HAVE_VALGRIND+set}" = set; then
  10072. $as_echo_n "(cached) " >&6
  10073. else
  10074. if test -n "$HAVE_VALGRIND"; then
  10075. ac_cv_prog_HAVE_VALGRIND="$HAVE_VALGRIND" # Let the user override the test.
  10076. else
  10077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10078. for as_dir in $PATH
  10079. do
  10080. IFS=$as_save_IFS
  10081. test -z "$as_dir" && as_dir=.
  10082. for ac_exec_ext in '' $ac_executable_extensions; do
  10083. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10084. ac_cv_prog_HAVE_VALGRIND="yes"
  10085. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10086. break 2
  10087. fi
  10088. done
  10089. done
  10090. IFS=$as_save_IFS
  10091. test -z "$ac_cv_prog_HAVE_VALGRIND" && ac_cv_prog_HAVE_VALGRIND="no"
  10092. fi
  10093. fi
  10094. HAVE_VALGRIND=$ac_cv_prog_HAVE_VALGRIND
  10095. if test -n "$HAVE_VALGRIND"; then
  10096. { $as_echo "$as_me:$LINENO: result: $HAVE_VALGRIND" >&5
  10097. $as_echo "$HAVE_VALGRIND" >&6; }
  10098. else
  10099. { $as_echo "$as_me:$LINENO: result: no" >&5
  10100. $as_echo "no" >&6; }
  10101. fi
  10102. if test "x$HAVE_VALGRIND" = xyes ; then
  10103. VALGRIND_ENVIRONMENT="$VALGRIND_ENVIRONMENT valgrind -q --leak-check=yes --show-reachable=yes --num-callers=100"
  10104. TESTS_INFO="Type 'make check' to run test suite. Tests will be run under:
  10105. ${VALGRIND_ENVIRONMENT}"
  10106. else
  10107. TESTS_INFO="Type 'make check' to run test suite (Valgrind not found)"
  10108. fi
  10109. else
  10110. TESTS_INFO="Type 'make check' to run test suite (Valgrind testing not enabled)"
  10111. fi
  10112. cflags_save="$CFLAGS"
  10113. if test -z "$GCC"; then
  10114. case $host in
  10115. *)
  10116. DEBUG="-g -DDEBUG"
  10117. CFLAGS="-O"
  10118. PROFILE="-g -p -DDEBUG" ;;
  10119. esac
  10120. else
  10121. case $host in
  10122. *)
  10123. DEBUG="-g -Wall -Wno-parentheses -DDEBUG -D__NO_MATH_INLINES"
  10124. CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
  10125. PROFILE="-Wall -Wno-parentheses -pg -g -O3 -fno-inline-functions -DDEBUG";;
  10126. esac
  10127. fi
  10128. CFLAGS="$CFLAGS $cflags_save"
  10129. cpu_x86_64=no
  10130. cpu_x86_32=no
  10131. # Check whether --enable-asm was given.
  10132. if test "${enable_asm+set}" = set; then
  10133. enableval=$enable_asm; ac_enable_asm=$enableval
  10134. else
  10135. ac_enable_asm=yes
  10136. fi
  10137. if test "x${ac_enable_asm}" = xyes; then
  10138. cpu_optimization="no optimization for your platform, please send a patch"
  10139. case $target_cpu in
  10140. i[3456]86)
  10141. cpu_x86_32=yes
  10142. cpu_optimization="32 bit x86"
  10143. cat >>confdefs.h <<\_ACEOF
  10144. #define OC_X86_ASM /**/
  10145. _ACEOF
  10146. if test "x$target_vendor" = "xapple"; then
  10147. THEORA_LDFLAGS="$THEORA_LDFLAGS -Wl,-read_only_relocs,suppress"
  10148. fi
  10149. ;;
  10150. x86_64)
  10151. cpu_x86_64=yes
  10152. cpu_optimization="64 bit x86"
  10153. cat >>confdefs.h <<\_ACEOF
  10154. #define OC_X86_ASM /**/
  10155. _ACEOF
  10156. cat >>confdefs.h <<\_ACEOF
  10157. #define OC_X86_64_ASM /**/
  10158. _ACEOF
  10159. ;;
  10160. esac
  10161. else
  10162. cpu_optimization="disabled"
  10163. fi
  10164. if test x$cpu_x86_64 = xyes; then
  10165. CPU_x86_64_TRUE=
  10166. CPU_x86_64_FALSE='#'
  10167. else
  10168. CPU_x86_64_TRUE='#'
  10169. CPU_x86_64_FALSE=
  10170. fi
  10171. if test x$cpu_x86_32 = xyes; then
  10172. CPU_x86_32_TRUE=
  10173. CPU_x86_32_FALSE='#'
  10174. else
  10175. CPU_x86_32_TRUE='#'
  10176. CPU_x86_32_FALSE=
  10177. fi
  10178. # Test whenever ld supports -version-script
  10179. # Check whether --with-gnu-ld was given.
  10180. if test "${with_gnu_ld+set}" = set; then
  10181. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10182. else
  10183. with_gnu_ld=no
  10184. fi
  10185. ac_prog=ld
  10186. if test "$GCC" = yes; then
  10187. # Check if gcc -print-prog-name=ld gives a path.
  10188. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  10189. $as_echo_n "checking for ld used by $CC... " >&6; }
  10190. case $host in
  10191. *-*-mingw*)
  10192. # gcc leaves a trailing carriage return which upsets mingw
  10193. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10194. *)
  10195. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10196. esac
  10197. case $ac_prog in
  10198. # Accept absolute paths.
  10199. [\\/]* | ?:[\\/]*)
  10200. re_direlt='/[^/][^/]*/\.\./'
  10201. # Canonicalize the pathname of ld
  10202. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10203. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10204. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10205. done
  10206. test -z "$LD" && LD="$ac_prog"
  10207. ;;
  10208. "")
  10209. # If it fails, then pretend we aren't using GCC.
  10210. ac_prog=ld
  10211. ;;
  10212. *)
  10213. # If it is relative, then search for the first ld in PATH.
  10214. with_gnu_ld=unknown
  10215. ;;
  10216. esac
  10217. elif test "$with_gnu_ld" = yes; then
  10218. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  10219. $as_echo_n "checking for GNU ld... " >&6; }
  10220. else
  10221. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10222. $as_echo_n "checking for non-GNU ld... " >&6; }
  10223. fi
  10224. if test "${lt_cv_path_LD+set}" = set; then
  10225. $as_echo_n "(cached) " >&6
  10226. else
  10227. if test -z "$LD"; then
  10228. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10229. for ac_dir in $PATH; do
  10230. IFS="$lt_save_ifs"
  10231. test -z "$ac_dir" && ac_dir=.
  10232. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10233. lt_cv_path_LD="$ac_dir/$ac_prog"
  10234. # Check to see if the program is GNU ld. I'd rather use --version,
  10235. # but apparently some variants of GNU ld only accept -v.
  10236. # Break only if it was the GNU/non-GNU ld that we prefer.
  10237. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10238. *GNU* | *'with BFD'*)
  10239. test "$with_gnu_ld" != no && break
  10240. ;;
  10241. *)
  10242. test "$with_gnu_ld" != yes && break
  10243. ;;
  10244. esac
  10245. fi
  10246. done
  10247. IFS="$lt_save_ifs"
  10248. else
  10249. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10250. fi
  10251. fi
  10252. LD="$lt_cv_path_LD"
  10253. if test -n "$LD"; then
  10254. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  10255. $as_echo "$LD" >&6; }
  10256. else
  10257. { $as_echo "$as_me:$LINENO: result: no" >&5
  10258. $as_echo "no" >&6; }
  10259. fi
  10260. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10261. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10262. { (exit 1); exit 1; }; }
  10263. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10264. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10265. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  10266. $as_echo_n "(cached) " >&6
  10267. else
  10268. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10269. case `$LD -v 2>&1 </dev/null` in
  10270. *GNU* | *'with BFD'*)
  10271. lt_cv_prog_gnu_ld=yes
  10272. ;;
  10273. *)
  10274. lt_cv_prog_gnu_ld=no
  10275. ;;
  10276. esac
  10277. fi
  10278. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10279. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10280. with_gnu_ld=$lt_cv_prog_gnu_ld
  10281. { $as_echo "$as_me:$LINENO: checking how to control symbol export" >&5
  10282. $as_echo_n "checking how to control symbol export... " >&6; }
  10283. THDEC_VERSION_ARG=""
  10284. THENC_VERSION_ARG=""
  10285. TH_VERSION_ARG=""
  10286. if test "x$lt_cv_prog_gnu_ld" = "xyes"; then
  10287. case "$target_os" in
  10288. *mingw*)
  10289. THEORA_LDFLAGS="$THEORA_LDFLAGS -no-undefined"
  10290. THDEC_VERSION_ARG="-export-symbols \$(top_srcdir)/win32/xmingw32/libtheoradec-all.def"
  10291. THENC_VERSION_ARG="-export-symbols \$(top_srcdir)/win32/xmingw32/libtheoraenc-all.def"
  10292. THENC_VERSION_ARG="$THENC_VERSION_ARG -ltheoradec"
  10293. THC_VERSION_ARG="-export-symbols \$(top_srcdir)/win32/libtheora.def"
  10294. { $as_echo "$as_me:$LINENO: result: -export-symbols" >&5
  10295. $as_echo "-export-symbols" >&6; }
  10296. ;;
  10297. linux* | solaris* )
  10298. THDEC_VERSION_ARG='-Wl,--version-script=$(srcdir)/Version_script-dec'
  10299. THENC_VERSION_ARG='-Wl,--version-script=$(srcdir)/Version_script-enc'
  10300. TH_VERSION_ARG='-Wl,--version-script=$(srcdir)/Version_script'
  10301. { $as_echo "$as_me:$LINENO: result: --version-script" >&5
  10302. $as_echo "--version-script" >&6; }
  10303. ;;
  10304. *)
  10305. # build without versioning
  10306. { $as_echo "$as_me:$LINENO: result: no" >&5
  10307. $as_echo "no" >&6; }
  10308. ;;
  10309. esac
  10310. else
  10311. case "$target_os" in
  10312. darwin*)
  10313. THDEC_VERSION_ARG='-Wl,-exported_symbols_list,$(srcdir)/theoradec.exp'
  10314. THENC_VERSION_ARG='-Wl,-exported_symbols_list,$(srcdir)/theoraenc.exp'
  10315. TH_VERSION_ARG='-Wl,-exported_symbols_list,$(srcdir)/theora.exp'
  10316. { $as_echo "$as_me:$LINENO: result: -exported_symbols_list" >&5
  10317. $as_echo "-exported_symbols_list" >&6; }
  10318. ;;
  10319. *)
  10320. # build without versioning
  10321. { $as_echo "$as_me:$LINENO: result: no" >&5
  10322. $as_echo "no" >&6; }
  10323. ;;
  10324. esac
  10325. fi
  10326. THEORADEC_LDFLAGS="$THEORA_LDFLAGS $THDEC_VERSION_ARG"
  10327. THEORAENC_LDFLAGS="$THEORA_LDFLAGS $THENC_VERSION_ARG"
  10328. THEORA_LDFLAGS="$THEORA_LDFLAGS $TH_VERSION_ARG"
  10329. HAVE_OGG=no
  10330. # Extract the first word of "pkg-config", so it can be a program name with args.
  10331. set dummy pkg-config; ac_word=$2
  10332. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10333. $as_echo_n "checking for $ac_word... " >&6; }
  10334. if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then
  10335. $as_echo_n "(cached) " >&6
  10336. else
  10337. if test -n "$HAVE_PKG_CONFIG"; then
  10338. ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
  10339. else
  10340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10341. for as_dir in $PATH
  10342. do
  10343. IFS=$as_save_IFS
  10344. test -z "$as_dir" && as_dir=.
  10345. for ac_exec_ext in '' $ac_executable_extensions; do
  10346. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10347. ac_cv_prog_HAVE_PKG_CONFIG="yes"
  10348. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10349. break 2
  10350. fi
  10351. done
  10352. done
  10353. IFS=$as_save_IFS
  10354. fi
  10355. fi
  10356. HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
  10357. if test -n "$HAVE_PKG_CONFIG"; then
  10358. { $as_echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5
  10359. $as_echo "$HAVE_PKG_CONFIG" >&6; }
  10360. else
  10361. { $as_echo "$as_me:$LINENO: result: no" >&5
  10362. $as_echo "no" >&6; }
  10363. fi
  10364. if test "x$HAVE_PKG_CONFIG" = "xyes"
  10365. then
  10366. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  10367. if test -n "$ac_tool_prefix"; then
  10368. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  10369. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  10370. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10371. $as_echo_n "checking for $ac_word... " >&6; }
  10372. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  10373. $as_echo_n "(cached) " >&6
  10374. else
  10375. case $PKG_CONFIG in
  10376. [\\/]* | ?:[\\/]*)
  10377. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10378. ;;
  10379. *)
  10380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10381. for as_dir in $PATH
  10382. do
  10383. IFS=$as_save_IFS
  10384. test -z "$as_dir" && as_dir=.
  10385. for ac_exec_ext in '' $ac_executable_extensions; do
  10386. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10387. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10388. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10389. break 2
  10390. fi
  10391. done
  10392. done
  10393. IFS=$as_save_IFS
  10394. ;;
  10395. esac
  10396. fi
  10397. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10398. if test -n "$PKG_CONFIG"; then
  10399. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  10400. $as_echo "$PKG_CONFIG" >&6; }
  10401. else
  10402. { $as_echo "$as_me:$LINENO: result: no" >&5
  10403. $as_echo "no" >&6; }
  10404. fi
  10405. fi
  10406. if test -z "$ac_cv_path_PKG_CONFIG"; then
  10407. ac_pt_PKG_CONFIG=$PKG_CONFIG
  10408. # Extract the first word of "pkg-config", so it can be a program name with args.
  10409. set dummy pkg-config; ac_word=$2
  10410. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10411. $as_echo_n "checking for $ac_word... " >&6; }
  10412. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  10413. $as_echo_n "(cached) " >&6
  10414. else
  10415. case $ac_pt_PKG_CONFIG in
  10416. [\\/]* | ?:[\\/]*)
  10417. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  10418. ;;
  10419. *)
  10420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10421. for as_dir in $PATH
  10422. do
  10423. IFS=$as_save_IFS
  10424. test -z "$as_dir" && as_dir=.
  10425. for ac_exec_ext in '' $ac_executable_extensions; do
  10426. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10427. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10428. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10429. break 2
  10430. fi
  10431. done
  10432. done
  10433. IFS=$as_save_IFS
  10434. ;;
  10435. esac
  10436. fi
  10437. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  10438. if test -n "$ac_pt_PKG_CONFIG"; then
  10439. { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  10440. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  10441. else
  10442. { $as_echo "$as_me:$LINENO: result: no" >&5
  10443. $as_echo "no" >&6; }
  10444. fi
  10445. if test "x$ac_pt_PKG_CONFIG" = x; then
  10446. PKG_CONFIG=""
  10447. else
  10448. case $cross_compiling:$ac_tool_warned in
  10449. yes:)
  10450. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  10451. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10452. ac_tool_warned=yes ;;
  10453. esac
  10454. PKG_CONFIG=$ac_pt_PKG_CONFIG
  10455. fi
  10456. else
  10457. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  10458. fi
  10459. fi
  10460. if test -n "$PKG_CONFIG"; then
  10461. _pkg_min_version=0.9.0
  10462. { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  10463. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  10464. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  10465. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10466. $as_echo "yes" >&6; }
  10467. else
  10468. { $as_echo "$as_me:$LINENO: result: no" >&5
  10469. $as_echo "no" >&6; }
  10470. PKG_CONFIG=""
  10471. fi
  10472. fi
  10473. pkg_failed=no
  10474. { $as_echo "$as_me:$LINENO: checking for OGG" >&5
  10475. $as_echo_n "checking for OGG... " >&6; }
  10476. if test -n "$PKG_CONFIG"; then
  10477. if test -n "$OGG_CFLAGS"; then
  10478. pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
  10479. else
  10480. if test -n "$PKG_CONFIG" && \
  10481. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1\"") >&5
  10482. ($PKG_CONFIG --exists --print-errors "ogg >= 1.1") 2>&5
  10483. ac_status=$?
  10484. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10485. (exit $ac_status); }; then
  10486. pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.1" 2>/dev/null`
  10487. else
  10488. pkg_failed=yes
  10489. fi
  10490. fi
  10491. else
  10492. pkg_failed=untried
  10493. fi
  10494. if test -n "$PKG_CONFIG"; then
  10495. if test -n "$OGG_LIBS"; then
  10496. pkg_cv_OGG_LIBS="$OGG_LIBS"
  10497. else
  10498. if test -n "$PKG_CONFIG" && \
  10499. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1\"") >&5
  10500. ($PKG_CONFIG --exists --print-errors "ogg >= 1.1") 2>&5
  10501. ac_status=$?
  10502. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10503. (exit $ac_status); }; then
  10504. pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.1" 2>/dev/null`
  10505. else
  10506. pkg_failed=yes
  10507. fi
  10508. fi
  10509. else
  10510. pkg_failed=untried
  10511. fi
  10512. if test $pkg_failed = yes; then
  10513. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10514. _pkg_short_errors_supported=yes
  10515. else
  10516. _pkg_short_errors_supported=no
  10517. fi
  10518. if test $_pkg_short_errors_supported = yes; then
  10519. OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.1"`
  10520. else
  10521. OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.1"`
  10522. fi
  10523. # Put the nasty error message in config.log where it belongs
  10524. echo "$OGG_PKG_ERRORS" >&5
  10525. { $as_echo "$as_me:$LINENO: result: no" >&5
  10526. $as_echo "no" >&6; }
  10527. HAVE_OGG=no
  10528. elif test $pkg_failed = untried; then
  10529. HAVE_OGG=no
  10530. else
  10531. OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
  10532. OGG_LIBS=$pkg_cv_OGG_LIBS
  10533. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10534. $as_echo "yes" >&6; }
  10535. HAVE_OGG=yes
  10536. fi
  10537. fi
  10538. if test "x$HAVE_OGG" = "xno"
  10539. then
  10540. # Check whether --with-ogg was given.
  10541. if test "${with_ogg+set}" = set; then
  10542. withval=$with_ogg; ogg_prefix="$withval"
  10543. else
  10544. ogg_prefix=""
  10545. fi
  10546. # Check whether --with-ogg-libraries was given.
  10547. if test "${with_ogg_libraries+set}" = set; then
  10548. withval=$with_ogg_libraries; ogg_libraries="$withval"
  10549. else
  10550. ogg_libraries=""
  10551. fi
  10552. # Check whether --with-ogg-includes was given.
  10553. if test "${with_ogg_includes+set}" = set; then
  10554. withval=$with_ogg_includes; ogg_includes="$withval"
  10555. else
  10556. ogg_includes=""
  10557. fi
  10558. # Check whether --enable-oggtest was given.
  10559. if test "${enable_oggtest+set}" = set; then
  10560. enableval=$enable_oggtest;
  10561. else
  10562. enable_oggtest=yes
  10563. fi
  10564. if test "x$ogg_libraries" != "x" ; then
  10565. OGG_LIBS="-L$ogg_libraries"
  10566. elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
  10567. OGG_LIBS=""
  10568. elif test "x$ogg_prefix" != "x" ; then
  10569. OGG_LIBS="-L$ogg_prefix/lib"
  10570. elif test "x$prefix" != "xNONE" ; then
  10571. OGG_LIBS="-L$libdir"
  10572. fi
  10573. if test "x$ogg_prefix" != "xno" ; then
  10574. OGG_LIBS="$OGG_LIBS -logg"
  10575. fi
  10576. if test "x$ogg_includes" != "x" ; then
  10577. OGG_CFLAGS="-I$ogg_includes"
  10578. elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
  10579. OGG_CFLAGS=""
  10580. elif test "x$ogg_prefix" != "x" ; then
  10581. OGG_CFLAGS="-I$ogg_prefix/include"
  10582. elif test "x$prefix" != "xNONE"; then
  10583. OGG_CFLAGS=""
  10584. fi
  10585. { $as_echo "$as_me:$LINENO: checking for Ogg" >&5
  10586. $as_echo_n "checking for Ogg... " >&6; }
  10587. if test "x$ogg_prefix" = "xno" ; then
  10588. no_ogg="disabled"
  10589. enable_oggtest="no"
  10590. else
  10591. no_ogg=""
  10592. fi
  10593. if test "x$enable_oggtest" = "xyes" ; then
  10594. ac_save_CFLAGS="$CFLAGS"
  10595. ac_save_LIBS="$LIBS"
  10596. CFLAGS="$CFLAGS $OGG_CFLAGS"
  10597. LIBS="$LIBS $OGG_LIBS"
  10598. rm -f conf.oggtest
  10599. if test "$cross_compiling" = yes; then
  10600. echo $ac_n "cross compiling; assumed OK... $ac_c"
  10601. else
  10602. cat >conftest.$ac_ext <<_ACEOF
  10603. /* confdefs.h. */
  10604. _ACEOF
  10605. cat confdefs.h >>conftest.$ac_ext
  10606. cat >>conftest.$ac_ext <<_ACEOF
  10607. /* end confdefs.h. */
  10608. #include <stdio.h>
  10609. #include <stdlib.h>
  10610. #include <string.h>
  10611. #include <ogg/ogg.h>
  10612. int main ()
  10613. {
  10614. system("touch conf.oggtest");
  10615. return 0;
  10616. }
  10617. _ACEOF
  10618. rm -f conftest$ac_exeext
  10619. if { (ac_try="$ac_link"
  10620. case "(($ac_try" in
  10621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10622. *) ac_try_echo=$ac_try;;
  10623. esac
  10624. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10625. $as_echo "$ac_try_echo") >&5
  10626. (eval "$ac_link") 2>&5
  10627. ac_status=$?
  10628. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10629. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10630. { (case "(($ac_try" in
  10631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10632. *) ac_try_echo=$ac_try;;
  10633. esac
  10634. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10635. $as_echo "$ac_try_echo") >&5
  10636. (eval "$ac_try") 2>&5
  10637. ac_status=$?
  10638. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10639. (exit $ac_status); }; }; then
  10640. :
  10641. else
  10642. $as_echo "$as_me: program exited with status $ac_status" >&5
  10643. $as_echo "$as_me: failed program was:" >&5
  10644. sed 's/^/| /' conftest.$ac_ext >&5
  10645. ( exit $ac_status )
  10646. no_ogg=yes
  10647. fi
  10648. rm -rf conftest.dSYM
  10649. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10650. fi
  10651. CFLAGS="$ac_save_CFLAGS"
  10652. LIBS="$ac_save_LIBS"
  10653. fi
  10654. if test "x$no_ogg" = "xdisabled" ; then
  10655. { $as_echo "$as_me:$LINENO: result: no" >&5
  10656. $as_echo "no" >&6; }
  10657. { { $as_echo "$as_me:$LINENO: error:
  10658. libogg is required to build this package!
  10659. please see http://www.xiph.org/ for how to
  10660. obtain a copy.
  10661. " >&5
  10662. $as_echo "$as_me: error:
  10663. libogg is required to build this package!
  10664. please see http://www.xiph.org/ for how to
  10665. obtain a copy.
  10666. " >&2;}
  10667. { (exit 1); exit 1; }; }
  10668. elif test "x$no_ogg" = "x" ; then
  10669. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10670. $as_echo "yes" >&6; }
  10671. :
  10672. else
  10673. { $as_echo "$as_me:$LINENO: result: no" >&5
  10674. $as_echo "no" >&6; }
  10675. if test -f conf.oggtest ; then
  10676. :
  10677. else
  10678. echo "*** Could not run Ogg test program, checking why..."
  10679. CFLAGS="$CFLAGS $OGG_CFLAGS"
  10680. LIBS="$LIBS $OGG_LIBS"
  10681. cat >conftest.$ac_ext <<_ACEOF
  10682. /* confdefs.h. */
  10683. _ACEOF
  10684. cat confdefs.h >>conftest.$ac_ext
  10685. cat >>conftest.$ac_ext <<_ACEOF
  10686. /* end confdefs.h. */
  10687. #include <stdio.h>
  10688. #include <ogg/ogg.h>
  10689. int
  10690. main ()
  10691. {
  10692. return 0;
  10693. ;
  10694. return 0;
  10695. }
  10696. _ACEOF
  10697. rm -f conftest.$ac_objext conftest$ac_exeext
  10698. if { (ac_try="$ac_link"
  10699. case "(($ac_try" in
  10700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10701. *) ac_try_echo=$ac_try;;
  10702. esac
  10703. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10704. $as_echo "$ac_try_echo") >&5
  10705. (eval "$ac_link") 2>conftest.er1
  10706. ac_status=$?
  10707. grep -v '^ *+' conftest.er1 >conftest.err
  10708. rm -f conftest.er1
  10709. cat conftest.err >&5
  10710. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10711. (exit $ac_status); } && {
  10712. test -z "$ac_c_werror_flag" ||
  10713. test ! -s conftest.err
  10714. } && test -s conftest$ac_exeext && {
  10715. test "$cross_compiling" = yes ||
  10716. $as_test_x conftest$ac_exeext
  10717. }; then
  10718. echo "*** The test program compiled, but did not run. This usually means"
  10719. echo "*** that the run-time linker is not finding Ogg or finding the wrong"
  10720. echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
  10721. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  10722. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  10723. echo "*** is required on your system"
  10724. echo "***"
  10725. echo "*** If you have an old version installed, it is best to remove it, although"
  10726. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  10727. else
  10728. $as_echo "$as_me: failed program was:" >&5
  10729. sed 's/^/| /' conftest.$ac_ext >&5
  10730. echo "*** The test program failed to compile or link. See the file config.log for the"
  10731. echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
  10732. echo "*** or that you have moved Ogg since it was installed."
  10733. fi
  10734. rm -rf conftest.dSYM
  10735. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10736. conftest$ac_exeext conftest.$ac_ext
  10737. CFLAGS="$ac_save_CFLAGS"
  10738. LIBS="$ac_save_LIBS"
  10739. fi
  10740. OGG_CFLAGS=""
  10741. OGG_LIBS=""
  10742. { { $as_echo "$as_me:$LINENO: error:
  10743. libogg is required to build this package!
  10744. please see http://www.xiph.org/ for how to
  10745. obtain a copy.
  10746. " >&5
  10747. $as_echo "$as_me: error:
  10748. libogg is required to build this package!
  10749. please see http://www.xiph.org/ for how to
  10750. obtain a copy.
  10751. " >&2;}
  10752. { (exit 1); exit 1; }; }
  10753. fi
  10754. rm -f conf.oggtest
  10755. cflags_save=$CFLAGS
  10756. libs_save=$LIBS
  10757. CFLAGS="$CFLAGS $OGG_CFLAGS"
  10758. LIBS="$LIBS $OGG_LIBS"
  10759. { $as_echo "$as_me:$LINENO: checking for oggpackB_read" >&5
  10760. $as_echo_n "checking for oggpackB_read... " >&6; }
  10761. if test "${ac_cv_func_oggpackB_read+set}" = set; then
  10762. $as_echo_n "(cached) " >&6
  10763. else
  10764. cat >conftest.$ac_ext <<_ACEOF
  10765. /* confdefs.h. */
  10766. _ACEOF
  10767. cat confdefs.h >>conftest.$ac_ext
  10768. cat >>conftest.$ac_ext <<_ACEOF
  10769. /* end confdefs.h. */
  10770. /* Define oggpackB_read to an innocuous variant, in case <limits.h> declares oggpackB_read.
  10771. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10772. #define oggpackB_read innocuous_oggpackB_read
  10773. /* System header to define __stub macros and hopefully few prototypes,
  10774. which can conflict with char oggpackB_read (); below.
  10775. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10776. <limits.h> exists even on freestanding compilers. */
  10777. #ifdef __STDC__
  10778. # include <limits.h>
  10779. #else
  10780. # include <assert.h>
  10781. #endif
  10782. #undef oggpackB_read
  10783. /* Override any GCC internal prototype to avoid an error.
  10784. Use char because int might match the return type of a GCC
  10785. builtin and then its argument prototype would still apply. */
  10786. #ifdef __cplusplus
  10787. extern "C"
  10788. #endif
  10789. char oggpackB_read ();
  10790. /* The GNU C library defines this for functions which it implements
  10791. to always fail with ENOSYS. Some functions are actually named
  10792. something starting with __ and the normal name is an alias. */
  10793. #if defined __stub_oggpackB_read || defined __stub___oggpackB_read
  10794. choke me
  10795. #endif
  10796. int
  10797. main ()
  10798. {
  10799. return oggpackB_read ();
  10800. ;
  10801. return 0;
  10802. }
  10803. _ACEOF
  10804. rm -f conftest.$ac_objext conftest$ac_exeext
  10805. if { (ac_try="$ac_link"
  10806. case "(($ac_try" in
  10807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10808. *) ac_try_echo=$ac_try;;
  10809. esac
  10810. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10811. $as_echo "$ac_try_echo") >&5
  10812. (eval "$ac_link") 2>conftest.er1
  10813. ac_status=$?
  10814. grep -v '^ *+' conftest.er1 >conftest.err
  10815. rm -f conftest.er1
  10816. cat conftest.err >&5
  10817. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10818. (exit $ac_status); } && {
  10819. test -z "$ac_c_werror_flag" ||
  10820. test ! -s conftest.err
  10821. } && test -s conftest$ac_exeext && {
  10822. test "$cross_compiling" = yes ||
  10823. $as_test_x conftest$ac_exeext
  10824. }; then
  10825. ac_cv_func_oggpackB_read=yes
  10826. else
  10827. $as_echo "$as_me: failed program was:" >&5
  10828. sed 's/^/| /' conftest.$ac_ext >&5
  10829. ac_cv_func_oggpackB_read=no
  10830. fi
  10831. rm -rf conftest.dSYM
  10832. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10833. conftest$ac_exeext conftest.$ac_ext
  10834. fi
  10835. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_oggpackB_read" >&5
  10836. $as_echo "$ac_cv_func_oggpackB_read" >&6; }
  10837. if test "x$ac_cv_func_oggpackB_read" = x""yes; then
  10838. :
  10839. else
  10840. { { $as_echo "$as_me:$LINENO: error: newer libogg version (1.1 or later) required" >&5
  10841. $as_echo "$as_me: error: newer libogg version (1.1 or later) required" >&2;}
  10842. { (exit 1); exit 1; }; }
  10843. fi
  10844. CFLAGS=$cflags_save
  10845. LIBS=$libs_save
  10846. fi
  10847. HAVE_VORBIS=no
  10848. if test "x$HAVE_PKG_CONFIG" = "xyes"
  10849. then
  10850. pkg_failed=no
  10851. { $as_echo "$as_me:$LINENO: checking for VORBIS" >&5
  10852. $as_echo_n "checking for VORBIS... " >&6; }
  10853. if test -n "$PKG_CONFIG"; then
  10854. if test -n "$VORBIS_CFLAGS"; then
  10855. pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS"
  10856. else
  10857. if test -n "$PKG_CONFIG" && \
  10858. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.0.1\"") >&5
  10859. ($PKG_CONFIG --exists --print-errors "vorbis >= 1.0.1") 2>&5
  10860. ac_status=$?
  10861. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10862. (exit $ac_status); }; then
  10863. pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis >= 1.0.1" 2>/dev/null`
  10864. else
  10865. pkg_failed=yes
  10866. fi
  10867. fi
  10868. else
  10869. pkg_failed=untried
  10870. fi
  10871. if test -n "$PKG_CONFIG"; then
  10872. if test -n "$VORBIS_LIBS"; then
  10873. pkg_cv_VORBIS_LIBS="$VORBIS_LIBS"
  10874. else
  10875. if test -n "$PKG_CONFIG" && \
  10876. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.0.1\"") >&5
  10877. ($PKG_CONFIG --exists --print-errors "vorbis >= 1.0.1") 2>&5
  10878. ac_status=$?
  10879. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10880. (exit $ac_status); }; then
  10881. pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis >= 1.0.1" 2>/dev/null`
  10882. else
  10883. pkg_failed=yes
  10884. fi
  10885. fi
  10886. else
  10887. pkg_failed=untried
  10888. fi
  10889. if test $pkg_failed = yes; then
  10890. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10891. _pkg_short_errors_supported=yes
  10892. else
  10893. _pkg_short_errors_supported=no
  10894. fi
  10895. if test $_pkg_short_errors_supported = yes; then
  10896. VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbis >= 1.0.1"`
  10897. else
  10898. VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbis >= 1.0.1"`
  10899. fi
  10900. # Put the nasty error message in config.log where it belongs
  10901. echo "$VORBIS_PKG_ERRORS" >&5
  10902. { $as_echo "$as_me:$LINENO: result: no" >&5
  10903. $as_echo "no" >&6; }
  10904. HAVE_VORBIS=no
  10905. elif test $pkg_failed = untried; then
  10906. HAVE_VORBIS=no
  10907. else
  10908. VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS
  10909. VORBIS_LIBS=$pkg_cv_VORBIS_LIBS
  10910. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10911. $as_echo "yes" >&6; }
  10912. HAVE_VORBIS=yes
  10913. fi
  10914. VORBISENC_LIBS="-lvorbisenc"
  10915. fi
  10916. if test "x$HAVE_VORBIS" = "xno"
  10917. then
  10918. # Check whether --with-vorbis was given.
  10919. if test "${with_vorbis+set}" = set; then
  10920. withval=$with_vorbis; vorbis_prefix="$withval"
  10921. else
  10922. vorbis_prefix=""
  10923. fi
  10924. # Check whether --with-vorbis-libraries was given.
  10925. if test "${with_vorbis_libraries+set}" = set; then
  10926. withval=$with_vorbis_libraries; vorbis_libraries="$withval"
  10927. else
  10928. vorbis_libraries=""
  10929. fi
  10930. # Check whether --with-vorbis-includes was given.
  10931. if test "${with_vorbis_includes+set}" = set; then
  10932. withval=$with_vorbis_includes; vorbis_includes="$withval"
  10933. else
  10934. vorbis_includes=""
  10935. fi
  10936. # Check whether --enable-vorbistest was given.
  10937. if test "${enable_vorbistest+set}" = set; then
  10938. enableval=$enable_vorbistest;
  10939. else
  10940. enable_vorbistest=yes
  10941. fi
  10942. if test "x$vorbis_libraries" != "x" ; then
  10943. VORBIS_LIBS="-L$vorbis_libraries"
  10944. elif test "x$vorbis_prefix" != "x" ; then
  10945. VORBIS_LIBS="-L$vorbis_prefix/lib"
  10946. elif test "x$prefix" != "xNONE"; then
  10947. VORBIS_LIBS="-L$libdir"
  10948. fi
  10949. VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
  10950. VORBISFILE_LIBS="-lvorbisfile"
  10951. VORBISENC_LIBS="-lvorbisenc"
  10952. if test "x$vorbis_includes" != "x" ; then
  10953. VORBIS_CFLAGS="-I$vorbis_includes"
  10954. elif test "x$vorbis_prefix" != "x" ; then
  10955. VORBIS_CFLAGS="-I$vorbis_prefix/include"
  10956. elif test "x$prefix" != "xNONE"; then
  10957. VORBIS_CFLAGS=""
  10958. fi
  10959. { $as_echo "$as_me:$LINENO: checking for Vorbis" >&5
  10960. $as_echo_n "checking for Vorbis... " >&6; }
  10961. no_vorbis=""
  10962. if test "x$enable_vorbistest" = "xyes" ; then
  10963. ac_save_CFLAGS="$CFLAGS"
  10964. ac_save_LIBS="$LIBS"
  10965. CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
  10966. LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
  10967. rm -f conf.vorbistest
  10968. if test "$cross_compiling" = yes; then
  10969. echo $ac_n "cross compiling; assumed OK... $ac_c"
  10970. else
  10971. cat >conftest.$ac_ext <<_ACEOF
  10972. /* confdefs.h. */
  10973. _ACEOF
  10974. cat confdefs.h >>conftest.$ac_ext
  10975. cat >>conftest.$ac_ext <<_ACEOF
  10976. /* end confdefs.h. */
  10977. #include <stdio.h>
  10978. #include <stdlib.h>
  10979. #include <string.h>
  10980. #include <vorbis/codec.h>
  10981. #include <vorbis/vorbisenc.h>
  10982. int main ()
  10983. {
  10984. vorbis_block vb;
  10985. vorbis_dsp_state vd;
  10986. vorbis_info vi;
  10987. vorbis_info_init (&vi);
  10988. vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1);
  10989. vorbis_analysis_init (&vd, &vi);
  10990. vorbis_block_init (&vd, &vb);
  10991. /* this function was added in 1.0rc3, so this is what we're testing for */
  10992. vorbis_bitrate_addblock (&vb);
  10993. system("touch conf.vorbistest");
  10994. return 0;
  10995. }
  10996. _ACEOF
  10997. rm -f conftest$ac_exeext
  10998. if { (ac_try="$ac_link"
  10999. case "(($ac_try" in
  11000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11001. *) ac_try_echo=$ac_try;;
  11002. esac
  11003. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11004. $as_echo "$ac_try_echo") >&5
  11005. (eval "$ac_link") 2>&5
  11006. ac_status=$?
  11007. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11008. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11009. { (case "(($ac_try" in
  11010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11011. *) ac_try_echo=$ac_try;;
  11012. esac
  11013. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11014. $as_echo "$ac_try_echo") >&5
  11015. (eval "$ac_try") 2>&5
  11016. ac_status=$?
  11017. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11018. (exit $ac_status); }; }; then
  11019. :
  11020. else
  11021. $as_echo "$as_me: program exited with status $ac_status" >&5
  11022. $as_echo "$as_me: failed program was:" >&5
  11023. sed 's/^/| /' conftest.$ac_ext >&5
  11024. ( exit $ac_status )
  11025. no_vorbis=yes
  11026. fi
  11027. rm -rf conftest.dSYM
  11028. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11029. fi
  11030. CFLAGS="$ac_save_CFLAGS"
  11031. LIBS="$ac_save_LIBS"
  11032. fi
  11033. if test "x$no_vorbis" = "x" ; then
  11034. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11035. $as_echo "yes" >&6; }
  11036. HAVE_VORBIS=yes
  11037. else
  11038. { $as_echo "$as_me:$LINENO: result: no" >&5
  11039. $as_echo "no" >&6; }
  11040. if test -f conf.vorbistest ; then
  11041. :
  11042. else
  11043. echo "*** Could not run Vorbis test program, checking why..."
  11044. CFLAGS="$CFLAGS $VORBIS_CFLAGS"
  11045. LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
  11046. cat >conftest.$ac_ext <<_ACEOF
  11047. /* confdefs.h. */
  11048. _ACEOF
  11049. cat confdefs.h >>conftest.$ac_ext
  11050. cat >>conftest.$ac_ext <<_ACEOF
  11051. /* end confdefs.h. */
  11052. #include <stdio.h>
  11053. #include <vorbis/codec.h>
  11054. int
  11055. main ()
  11056. {
  11057. return 0;
  11058. ;
  11059. return 0;
  11060. }
  11061. _ACEOF
  11062. rm -f conftest.$ac_objext conftest$ac_exeext
  11063. if { (ac_try="$ac_link"
  11064. case "(($ac_try" in
  11065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11066. *) ac_try_echo=$ac_try;;
  11067. esac
  11068. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11069. $as_echo "$ac_try_echo") >&5
  11070. (eval "$ac_link") 2>conftest.er1
  11071. ac_status=$?
  11072. grep -v '^ *+' conftest.er1 >conftest.err
  11073. rm -f conftest.er1
  11074. cat conftest.err >&5
  11075. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11076. (exit $ac_status); } && {
  11077. test -z "$ac_c_werror_flag" ||
  11078. test ! -s conftest.err
  11079. } && test -s conftest$ac_exeext && {
  11080. test "$cross_compiling" = yes ||
  11081. $as_test_x conftest$ac_exeext
  11082. }; then
  11083. echo "*** The test program compiled, but did not run. This usually means"
  11084. echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
  11085. echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
  11086. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  11087. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  11088. echo "*** is required on your system"
  11089. echo "***"
  11090. echo "*** If you have an old version installed, it is best to remove it, although"
  11091. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  11092. else
  11093. $as_echo "$as_me: failed program was:" >&5
  11094. sed 's/^/| /' conftest.$ac_ext >&5
  11095. echo "*** The test program failed to compile or link. See the file config.log for the"
  11096. echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
  11097. echo "*** or that you have moved Vorbis since it was installed."
  11098. fi
  11099. rm -rf conftest.dSYM
  11100. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11101. conftest$ac_exeext conftest.$ac_ext
  11102. CFLAGS="$ac_save_CFLAGS"
  11103. LIBS="$ac_save_LIBS"
  11104. fi
  11105. VORBIS_CFLAGS=""
  11106. VORBIS_LIBS=""
  11107. VORBISFILE_LIBS=""
  11108. VORBISENC_LIBS=""
  11109. HAVE_VORBIS=no
  11110. fi
  11111. rm -f conf.vorbistest
  11112. fi
  11113. HAVE_SDL=no
  11114. # Check whether --with-sdl-prefix was given.
  11115. if test "${with_sdl_prefix+set}" = set; then
  11116. withval=$with_sdl_prefix; sdl_prefix="$withval"
  11117. else
  11118. sdl_prefix=""
  11119. fi
  11120. # Check whether --with-sdl-exec-prefix was given.
  11121. if test "${with_sdl_exec_prefix+set}" = set; then
  11122. withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
  11123. else
  11124. sdl_exec_prefix=""
  11125. fi
  11126. # Check whether --enable-sdltest was given.
  11127. if test "${enable_sdltest+set}" = set; then
  11128. enableval=$enable_sdltest;
  11129. else
  11130. enable_sdltest=yes
  11131. fi
  11132. if test x$sdl_exec_prefix != x ; then
  11133. sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
  11134. if test x${SDL_CONFIG+set} != xset ; then
  11135. SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
  11136. fi
  11137. fi
  11138. if test x$sdl_prefix != x ; then
  11139. sdl_args="$sdl_args --prefix=$sdl_prefix"
  11140. if test x${SDL_CONFIG+set} != xset ; then
  11141. SDL_CONFIG=$sdl_prefix/bin/sdl-config
  11142. fi
  11143. fi
  11144. PATH="$prefix/bin:$prefix/usr/bin:$PATH"
  11145. # Extract the first word of "sdl-config", so it can be a program name with args.
  11146. set dummy sdl-config; ac_word=$2
  11147. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  11148. $as_echo_n "checking for $ac_word... " >&6; }
  11149. if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
  11150. $as_echo_n "(cached) " >&6
  11151. else
  11152. case $SDL_CONFIG in
  11153. [\\/]* | ?:[\\/]*)
  11154. ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  11155. ;;
  11156. *)
  11157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11158. for as_dir in $PATH
  11159. do
  11160. IFS=$as_save_IFS
  11161. test -z "$as_dir" && as_dir=.
  11162. for ac_exec_ext in '' $ac_executable_extensions; do
  11163. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11164. ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11165. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11166. break 2
  11167. fi
  11168. done
  11169. done
  11170. IFS=$as_save_IFS
  11171. test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
  11172. ;;
  11173. esac
  11174. fi
  11175. SDL_CONFIG=$ac_cv_path_SDL_CONFIG
  11176. if test -n "$SDL_CONFIG"; then
  11177. { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
  11178. $as_echo "$SDL_CONFIG" >&6; }
  11179. else
  11180. { $as_echo "$as_me:$LINENO: result: no" >&5
  11181. $as_echo "no" >&6; }
  11182. fi
  11183. min_sdl_version=0.11.0
  11184. { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
  11185. $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
  11186. no_sdl=""
  11187. if test "$SDL_CONFIG" = "no" ; then
  11188. no_sdl=yes
  11189. else
  11190. SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
  11191. SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
  11192. sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
  11193. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  11194. sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
  11195. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  11196. sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
  11197. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  11198. if test "x$enable_sdltest" = "xyes" ; then
  11199. ac_save_CFLAGS="$CFLAGS"
  11200. ac_save_CXXFLAGS="$CXXFLAGS"
  11201. ac_save_LIBS="$LIBS"
  11202. CFLAGS="$CFLAGS $SDL_CFLAGS"
  11203. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  11204. LIBS="$LIBS $SDL_LIBS"
  11205. rm -f conf.sdltest
  11206. if test "$cross_compiling" = yes; then
  11207. echo $ac_n "cross compiling; assumed OK... $ac_c"
  11208. else
  11209. cat >conftest.$ac_ext <<_ACEOF
  11210. /* confdefs.h. */
  11211. _ACEOF
  11212. cat confdefs.h >>conftest.$ac_ext
  11213. cat >>conftest.$ac_ext <<_ACEOF
  11214. /* end confdefs.h. */
  11215. #include <stdio.h>
  11216. #include <stdlib.h>
  11217. #include <string.h>
  11218. #include "SDL.h"
  11219. char*
  11220. my_strdup (char *str)
  11221. {
  11222. char *new_str;
  11223. if (str)
  11224. {
  11225. new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
  11226. strcpy (new_str, str);
  11227. }
  11228. else
  11229. new_str = NULL;
  11230. return new_str;
  11231. }
  11232. int main (int argc, char *argv[])
  11233. {
  11234. int major, minor, micro;
  11235. char *tmp_version;
  11236. /* This hangs on some systems (?)
  11237. system ("touch conf.sdltest");
  11238. */
  11239. { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
  11240. /* HP/UX 9 (%@#!) writes to sscanf strings */
  11241. tmp_version = my_strdup("$min_sdl_version");
  11242. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  11243. printf("%s, bad version string\n", "$min_sdl_version");
  11244. exit(1);
  11245. }
  11246. if (($sdl_major_version > major) ||
  11247. (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
  11248. (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
  11249. {
  11250. return 0;
  11251. }
  11252. else
  11253. {
  11254. printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
  11255. printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
  11256. printf("*** best to upgrade to the required version.\n");
  11257. printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
  11258. printf("*** to point to the correct copy of sdl-config, and remove the file\n");
  11259. printf("*** config.cache before re-running configure\n");
  11260. return 1;
  11261. }
  11262. }
  11263. _ACEOF
  11264. rm -f conftest$ac_exeext
  11265. if { (ac_try="$ac_link"
  11266. case "(($ac_try" in
  11267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11268. *) ac_try_echo=$ac_try;;
  11269. esac
  11270. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11271. $as_echo "$ac_try_echo") >&5
  11272. (eval "$ac_link") 2>&5
  11273. ac_status=$?
  11274. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11275. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11276. { (case "(($ac_try" in
  11277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11278. *) ac_try_echo=$ac_try;;
  11279. esac
  11280. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11281. $as_echo "$ac_try_echo") >&5
  11282. (eval "$ac_try") 2>&5
  11283. ac_status=$?
  11284. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11285. (exit $ac_status); }; }; then
  11286. :
  11287. else
  11288. $as_echo "$as_me: program exited with status $ac_status" >&5
  11289. $as_echo "$as_me: failed program was:" >&5
  11290. sed 's/^/| /' conftest.$ac_ext >&5
  11291. ( exit $ac_status )
  11292. no_sdl=yes
  11293. fi
  11294. rm -rf conftest.dSYM
  11295. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11296. fi
  11297. CFLAGS="$ac_save_CFLAGS"
  11298. CXXFLAGS="$ac_save_CXXFLAGS"
  11299. LIBS="$ac_save_LIBS"
  11300. fi
  11301. fi
  11302. if test "x$no_sdl" = x ; then
  11303. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11304. $as_echo "yes" >&6; }
  11305. HAVE_SDL=yes
  11306. SDL_LIBS=`$SDL_CONFIG --libs`
  11307. else
  11308. { $as_echo "$as_me:$LINENO: result: no" >&5
  11309. $as_echo "no" >&6; }
  11310. if test "$SDL_CONFIG" = "no" ; then
  11311. echo "*** The sdl-config script installed by SDL could not be found"
  11312. echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
  11313. echo "*** your path, or set the SDL_CONFIG environment variable to the"
  11314. echo "*** full path to sdl-config."
  11315. else
  11316. if test -f conf.sdltest ; then
  11317. :
  11318. else
  11319. echo "*** Could not run SDL test program, checking why..."
  11320. CFLAGS="$CFLAGS $SDL_CFLAGS"
  11321. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  11322. LIBS="$LIBS $SDL_LIBS"
  11323. cat >conftest.$ac_ext <<_ACEOF
  11324. /* confdefs.h. */
  11325. _ACEOF
  11326. cat confdefs.h >>conftest.$ac_ext
  11327. cat >>conftest.$ac_ext <<_ACEOF
  11328. /* end confdefs.h. */
  11329. #include <stdio.h>
  11330. #include "SDL.h"
  11331. int main(int argc, char *argv[])
  11332. { return 0; }
  11333. #undef main
  11334. #define main K_and_R_C_main
  11335. int
  11336. main ()
  11337. {
  11338. return 0;
  11339. ;
  11340. return 0;
  11341. }
  11342. _ACEOF
  11343. rm -f conftest.$ac_objext conftest$ac_exeext
  11344. if { (ac_try="$ac_link"
  11345. case "(($ac_try" in
  11346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11347. *) ac_try_echo=$ac_try;;
  11348. esac
  11349. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11350. $as_echo "$ac_try_echo") >&5
  11351. (eval "$ac_link") 2>conftest.er1
  11352. ac_status=$?
  11353. grep -v '^ *+' conftest.er1 >conftest.err
  11354. rm -f conftest.er1
  11355. cat conftest.err >&5
  11356. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11357. (exit $ac_status); } && {
  11358. test -z "$ac_c_werror_flag" ||
  11359. test ! -s conftest.err
  11360. } && test -s conftest$ac_exeext && {
  11361. test "$cross_compiling" = yes ||
  11362. $as_test_x conftest$ac_exeext
  11363. }; then
  11364. echo "*** The test program compiled, but did not run. This usually means"
  11365. echo "*** that the run-time linker is not finding SDL or finding the wrong"
  11366. echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  11367. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  11368. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  11369. echo "*** is required on your system"
  11370. echo "***"
  11371. echo "*** If you have an old version installed, it is best to remove it, although"
  11372. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  11373. else
  11374. $as_echo "$as_me: failed program was:" >&5
  11375. sed 's/^/| /' conftest.$ac_ext >&5
  11376. echo "*** The test program failed to compile or link. See the file config.log for the"
  11377. echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  11378. echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  11379. echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
  11380. fi
  11381. rm -rf conftest.dSYM
  11382. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11383. conftest$ac_exeext conftest.$ac_ext
  11384. CFLAGS="$ac_save_CFLAGS"
  11385. CXXFLAGS="$ac_save_CXXFLAGS"
  11386. LIBS="$ac_save_LIBS"
  11387. fi
  11388. fi
  11389. SDL_CFLAGS=""
  11390. SDL_LIBS=""
  11391. { $as_echo "$as_me:$LINENO: WARNING: *** Unable to find SDL -- Not compiling example players ***" >&5
  11392. $as_echo "$as_me: WARNING: *** Unable to find SDL -- Not compiling example players ***" >&2;}
  11393. fi
  11394. rm -f conf.sdltest
  11395. HAVE_OSS=no
  11396. for ac_header in sys/soundcard.h soundcard.h machine/soundcard.h
  11397. do
  11398. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11399. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11400. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11401. $as_echo_n "checking for $ac_header... " >&6; }
  11402. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11403. $as_echo_n "(cached) " >&6
  11404. fi
  11405. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11406. $as_echo "$as_val"'`
  11407. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11408. $as_echo "$ac_res" >&6; }
  11409. else
  11410. # Is the header compilable?
  11411. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11412. $as_echo_n "checking $ac_header usability... " >&6; }
  11413. cat >conftest.$ac_ext <<_ACEOF
  11414. /* confdefs.h. */
  11415. _ACEOF
  11416. cat confdefs.h >>conftest.$ac_ext
  11417. cat >>conftest.$ac_ext <<_ACEOF
  11418. /* end confdefs.h. */
  11419. $ac_includes_default
  11420. #include <$ac_header>
  11421. _ACEOF
  11422. rm -f conftest.$ac_objext
  11423. if { (ac_try="$ac_compile"
  11424. case "(($ac_try" in
  11425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11426. *) ac_try_echo=$ac_try;;
  11427. esac
  11428. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11429. $as_echo "$ac_try_echo") >&5
  11430. (eval "$ac_compile") 2>conftest.er1
  11431. ac_status=$?
  11432. grep -v '^ *+' conftest.er1 >conftest.err
  11433. rm -f conftest.er1
  11434. cat conftest.err >&5
  11435. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11436. (exit $ac_status); } && {
  11437. test -z "$ac_c_werror_flag" ||
  11438. test ! -s conftest.err
  11439. } && test -s conftest.$ac_objext; then
  11440. ac_header_compiler=yes
  11441. else
  11442. $as_echo "$as_me: failed program was:" >&5
  11443. sed 's/^/| /' conftest.$ac_ext >&5
  11444. ac_header_compiler=no
  11445. fi
  11446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11447. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11448. $as_echo "$ac_header_compiler" >&6; }
  11449. # Is the header present?
  11450. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11451. $as_echo_n "checking $ac_header presence... " >&6; }
  11452. cat >conftest.$ac_ext <<_ACEOF
  11453. /* confdefs.h. */
  11454. _ACEOF
  11455. cat confdefs.h >>conftest.$ac_ext
  11456. cat >>conftest.$ac_ext <<_ACEOF
  11457. /* end confdefs.h. */
  11458. #include <$ac_header>
  11459. _ACEOF
  11460. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11461. case "(($ac_try" in
  11462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11463. *) ac_try_echo=$ac_try;;
  11464. esac
  11465. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11466. $as_echo "$ac_try_echo") >&5
  11467. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11468. ac_status=$?
  11469. grep -v '^ *+' conftest.er1 >conftest.err
  11470. rm -f conftest.er1
  11471. cat conftest.err >&5
  11472. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11473. (exit $ac_status); } >/dev/null && {
  11474. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  11475. test ! -s conftest.err
  11476. }; then
  11477. ac_header_preproc=yes
  11478. else
  11479. $as_echo "$as_me: failed program was:" >&5
  11480. sed 's/^/| /' conftest.$ac_ext >&5
  11481. ac_header_preproc=no
  11482. fi
  11483. rm -f conftest.err conftest.$ac_ext
  11484. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11485. $as_echo "$ac_header_preproc" >&6; }
  11486. # So? What about this header?
  11487. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11488. yes:no: )
  11489. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11490. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11491. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11492. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11493. ac_header_preproc=yes
  11494. ;;
  11495. no:yes:* )
  11496. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11497. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11498. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11499. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11500. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11501. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11502. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11503. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11504. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11505. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11506. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11507. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11508. ;;
  11509. esac
  11510. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11511. $as_echo_n "checking for $ac_header... " >&6; }
  11512. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11513. $as_echo_n "(cached) " >&6
  11514. else
  11515. eval "$as_ac_Header=\$ac_header_preproc"
  11516. fi
  11517. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11518. $as_echo "$as_val"'`
  11519. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11520. $as_echo "$ac_res" >&6; }
  11521. fi
  11522. as_val=`eval 'as_val=${'$as_ac_Header'}
  11523. $as_echo "$as_val"'`
  11524. if test "x$as_val" = x""yes; then
  11525. cat >>confdefs.h <<_ACEOF
  11526. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11527. _ACEOF
  11528. HAVE_OSS=yes
  11529. break
  11530. fi
  11531. done
  11532. if test x$HAVE_OSS != xyes; then
  11533. { $as_echo "$as_me:$LINENO: WARNING: OSS audio support not found -- not compiling player_example" >&5
  11534. $as_echo "$as_me: WARNING: OSS audio support not found -- not compiling player_example" >&2;}
  11535. fi
  11536. OSS_LIBS=
  11537. case "$target_os" in
  11538. openbsd*)
  11539. OSS_LIBS='-lossaudio'
  11540. ;;
  11541. esac
  11542. HAVE_PNG=no
  11543. if test "x$HAVE_PKG_CONFIG" = "xyes"
  11544. then
  11545. pkg_failed=no
  11546. { $as_echo "$as_me:$LINENO: checking for PNG" >&5
  11547. $as_echo_n "checking for PNG... " >&6; }
  11548. if test -n "$PKG_CONFIG"; then
  11549. if test -n "$PNG_CFLAGS"; then
  11550. pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
  11551. else
  11552. if test -n "$PKG_CONFIG" && \
  11553. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng\"") >&5
  11554. ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
  11555. ac_status=$?
  11556. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11557. (exit $ac_status); }; then
  11558. pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
  11559. else
  11560. pkg_failed=yes
  11561. fi
  11562. fi
  11563. else
  11564. pkg_failed=untried
  11565. fi
  11566. if test -n "$PKG_CONFIG"; then
  11567. if test -n "$PNG_LIBS"; then
  11568. pkg_cv_PNG_LIBS="$PNG_LIBS"
  11569. else
  11570. if test -n "$PKG_CONFIG" && \
  11571. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng\"") >&5
  11572. ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
  11573. ac_status=$?
  11574. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11575. (exit $ac_status); }; then
  11576. pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
  11577. else
  11578. pkg_failed=yes
  11579. fi
  11580. fi
  11581. else
  11582. pkg_failed=untried
  11583. fi
  11584. if test $pkg_failed = yes; then
  11585. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11586. _pkg_short_errors_supported=yes
  11587. else
  11588. _pkg_short_errors_supported=no
  11589. fi
  11590. if test $_pkg_short_errors_supported = yes; then
  11591. PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng"`
  11592. else
  11593. PNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng"`
  11594. fi
  11595. # Put the nasty error message in config.log where it belongs
  11596. echo "$PNG_PKG_ERRORS" >&5
  11597. { $as_echo "$as_me:$LINENO: result: no" >&5
  11598. $as_echo "no" >&6; }
  11599. HAVE_PNG=no
  11600. elif test $pkg_failed = untried; then
  11601. HAVE_PNG=no
  11602. else
  11603. PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
  11604. PNG_LIBS=$pkg_cv_PNG_LIBS
  11605. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11606. $as_echo "yes" >&6; }
  11607. HAVE_PNG=yes
  11608. fi
  11609. fi
  11610. HAVE_CAIRO=no
  11611. # Check whether --enable-telemetry was given.
  11612. if test "${enable_telemetry+set}" = set; then
  11613. enableval=$enable_telemetry; ac_enable_telemetry=$enableval
  11614. else
  11615. ac_enable_telemetry=no
  11616. fi
  11617. if test "x${ac_enable_telemetry}" = xyes; then
  11618. if test "x$HAVE_PKG_CONFIG" = "xyes"
  11619. then
  11620. pkg_failed=no
  11621. { $as_echo "$as_me:$LINENO: checking for CAIRO" >&5
  11622. $as_echo_n "checking for CAIRO... " >&6; }
  11623. if test -n "$PKG_CONFIG"; then
  11624. if test -n "$CAIRO_CFLAGS"; then
  11625. pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
  11626. else
  11627. if test -n "$PKG_CONFIG" && \
  11628. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
  11629. ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
  11630. ac_status=$?
  11631. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11632. (exit $ac_status); }; then
  11633. pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
  11634. else
  11635. pkg_failed=yes
  11636. fi
  11637. fi
  11638. else
  11639. pkg_failed=untried
  11640. fi
  11641. if test -n "$PKG_CONFIG"; then
  11642. if test -n "$CAIRO_LIBS"; then
  11643. pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
  11644. else
  11645. if test -n "$PKG_CONFIG" && \
  11646. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
  11647. ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
  11648. ac_status=$?
  11649. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11650. (exit $ac_status); }; then
  11651. pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
  11652. else
  11653. pkg_failed=yes
  11654. fi
  11655. fi
  11656. else
  11657. pkg_failed=untried
  11658. fi
  11659. if test $pkg_failed = yes; then
  11660. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11661. _pkg_short_errors_supported=yes
  11662. else
  11663. _pkg_short_errors_supported=no
  11664. fi
  11665. if test $_pkg_short_errors_supported = yes; then
  11666. CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
  11667. else
  11668. CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
  11669. fi
  11670. # Put the nasty error message in config.log where it belongs
  11671. echo "$CAIRO_PKG_ERRORS" >&5
  11672. { $as_echo "$as_me:$LINENO: result: no" >&5
  11673. $as_echo "no" >&6; }
  11674. HAVE_CAIRO=no
  11675. elif test $pkg_failed = untried; then
  11676. HAVE_CAIRO=no
  11677. else
  11678. CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
  11679. CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
  11680. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11681. $as_echo "yes" >&6; }
  11682. HAVE_CAIRO=yes
  11683. fi
  11684. cat >>confdefs.h <<\_ACEOF
  11685. #define HAVE_CAIRO /**/
  11686. _ACEOF
  11687. fi
  11688. if test x$HAVE_CAIRO != xyes; then
  11689. { $as_echo "$as_me:$LINENO: WARNING: libcairo not found -- not compiling telemetry output support " >&5
  11690. $as_echo "$as_me: WARNING: libcairo not found -- not compiling telemetry output support " >&2;}
  11691. fi
  11692. fi
  11693. ac_enable_float=yes
  11694. # Check whether --enable-float was given.
  11695. if test "${enable_float+set}" = set; then
  11696. enableval=$enable_float; ac_enable_float=$enableval
  11697. else
  11698. ac_enable_float=yes
  11699. fi
  11700. if test "x${ac_enable_float}" != xyes ; then
  11701. cat >>confdefs.h <<\_ACEOF
  11702. #define THEORA_DISABLE_FLOAT /**/
  11703. _ACEOF
  11704. fi
  11705. if test "x${ac_enable_float}" != xyes; then
  11706. THEORA_DISABLE_FLOAT_TRUE=
  11707. THEORA_DISABLE_FLOAT_FALSE='#'
  11708. else
  11709. THEORA_DISABLE_FLOAT_TRUE='#'
  11710. THEORA_DISABLE_FLOAT_FALSE=
  11711. fi
  11712. ac_enable_encode=yes
  11713. # Check whether --enable-encode was given.
  11714. if test "${enable_encode+set}" = set; then
  11715. enableval=$enable_encode; ac_enable_encode=$enableval
  11716. else
  11717. ac_enable_encode=yes
  11718. fi
  11719. if test "x${ac_enable_encode}" != xyes ; then
  11720. cat >>confdefs.h <<\_ACEOF
  11721. #define THEORA_DISABLE_ENCODE /**/
  11722. _ACEOF
  11723. else
  11724. if test x$HAVE_VORBIS = xyes; then
  11725. BUILDABLE_EXAMPLES="$BUILDABLE_EXAMPLES encoder_example\$(EXEEXT)"
  11726. else
  11727. { $as_echo "$as_me:$LINENO: Vorbis missing, cannot build example encoder" >&5
  11728. $as_echo "$as_me: Vorbis missing, cannot build example encoder" >&6;}
  11729. fi
  11730. fi
  11731. if test "x${ac_enable_encode}" != xyes; then
  11732. THEORA_DISABLE_ENCODE_TRUE=
  11733. THEORA_DISABLE_ENCODE_FALSE='#'
  11734. else
  11735. THEORA_DISABLE_ENCODE_TRUE='#'
  11736. THEORA_DISABLE_ENCODE_FALSE=
  11737. fi
  11738. ac_enable_examples=yes
  11739. # Check whether --enable-examples was given.
  11740. if test "${enable_examples+set}" = set; then
  11741. enableval=$enable_examples; ac_enable_examples=$enableval
  11742. else
  11743. ac_enable_examples=yes
  11744. fi
  11745. if test "x${ac_enable_examples}" != xno; then
  11746. THEORA_ENABLE_EXAMPLES_TRUE=
  11747. THEORA_ENABLE_EXAMPLES_FALSE='#'
  11748. else
  11749. THEORA_ENABLE_EXAMPLES_TRUE='#'
  11750. THEORA_ENABLE_EXAMPLES_FALSE=
  11751. fi
  11752. { $as_echo "$as_me:$LINENO: checking for library containing ftime" >&5
  11753. $as_echo_n "checking for library containing ftime... " >&6; }
  11754. if test "${ac_cv_search_ftime+set}" = set; then
  11755. $as_echo_n "(cached) " >&6
  11756. else
  11757. ac_func_search_save_LIBS=$LIBS
  11758. cat >conftest.$ac_ext <<_ACEOF
  11759. /* confdefs.h. */
  11760. _ACEOF
  11761. cat confdefs.h >>conftest.$ac_ext
  11762. cat >>conftest.$ac_ext <<_ACEOF
  11763. /* end confdefs.h. */
  11764. /* Override any GCC internal prototype to avoid an error.
  11765. Use char because int might match the return type of a GCC
  11766. builtin and then its argument prototype would still apply. */
  11767. #ifdef __cplusplus
  11768. extern "C"
  11769. #endif
  11770. char ftime ();
  11771. int
  11772. main ()
  11773. {
  11774. return ftime ();
  11775. ;
  11776. return 0;
  11777. }
  11778. _ACEOF
  11779. for ac_lib in '' compat; do
  11780. if test -z "$ac_lib"; then
  11781. ac_res="none required"
  11782. else
  11783. ac_res=-l$ac_lib
  11784. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11785. fi
  11786. rm -f conftest.$ac_objext conftest$ac_exeext
  11787. if { (ac_try="$ac_link"
  11788. case "(($ac_try" in
  11789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11790. *) ac_try_echo=$ac_try;;
  11791. esac
  11792. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11793. $as_echo "$ac_try_echo") >&5
  11794. (eval "$ac_link") 2>conftest.er1
  11795. ac_status=$?
  11796. grep -v '^ *+' conftest.er1 >conftest.err
  11797. rm -f conftest.er1
  11798. cat conftest.err >&5
  11799. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11800. (exit $ac_status); } && {
  11801. test -z "$ac_c_werror_flag" ||
  11802. test ! -s conftest.err
  11803. } && test -s conftest$ac_exeext && {
  11804. test "$cross_compiling" = yes ||
  11805. $as_test_x conftest$ac_exeext
  11806. }; then
  11807. ac_cv_search_ftime=$ac_res
  11808. else
  11809. $as_echo "$as_me: failed program was:" >&5
  11810. sed 's/^/| /' conftest.$ac_ext >&5
  11811. fi
  11812. rm -rf conftest.dSYM
  11813. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11814. conftest$ac_exeext
  11815. if test "${ac_cv_search_ftime+set}" = set; then
  11816. break
  11817. fi
  11818. done
  11819. if test "${ac_cv_search_ftime+set}" = set; then
  11820. :
  11821. else
  11822. ac_cv_search_ftime=no
  11823. fi
  11824. rm conftest.$ac_ext
  11825. LIBS=$ac_func_search_save_LIBS
  11826. fi
  11827. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ftime" >&5
  11828. $as_echo "$ac_cv_search_ftime" >&6; }
  11829. ac_res=$ac_cv_search_ftime
  11830. if test "$ac_res" != no; then
  11831. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11832. fi
  11833. { $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
  11834. $as_echo_n "checking for getopt_long... " >&6; }
  11835. if test "${ac_cv_func_getopt_long+set}" = set; then
  11836. $as_echo_n "(cached) " >&6
  11837. else
  11838. cat >conftest.$ac_ext <<_ACEOF
  11839. /* confdefs.h. */
  11840. _ACEOF
  11841. cat confdefs.h >>conftest.$ac_ext
  11842. cat >>conftest.$ac_ext <<_ACEOF
  11843. /* end confdefs.h. */
  11844. /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
  11845. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11846. #define getopt_long innocuous_getopt_long
  11847. /* System header to define __stub macros and hopefully few prototypes,
  11848. which can conflict with char getopt_long (); below.
  11849. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11850. <limits.h> exists even on freestanding compilers. */
  11851. #ifdef __STDC__
  11852. # include <limits.h>
  11853. #else
  11854. # include <assert.h>
  11855. #endif
  11856. #undef getopt_long
  11857. /* Override any GCC internal prototype to avoid an error.
  11858. Use char because int might match the return type of a GCC
  11859. builtin and then its argument prototype would still apply. */
  11860. #ifdef __cplusplus
  11861. extern "C"
  11862. #endif
  11863. char getopt_long ();
  11864. /* The GNU C library defines this for functions which it implements
  11865. to always fail with ENOSYS. Some functions are actually named
  11866. something starting with __ and the normal name is an alias. */
  11867. #if defined __stub_getopt_long || defined __stub___getopt_long
  11868. choke me
  11869. #endif
  11870. int
  11871. main ()
  11872. {
  11873. return getopt_long ();
  11874. ;
  11875. return 0;
  11876. }
  11877. _ACEOF
  11878. rm -f conftest.$ac_objext conftest$ac_exeext
  11879. if { (ac_try="$ac_link"
  11880. case "(($ac_try" in
  11881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11882. *) ac_try_echo=$ac_try;;
  11883. esac
  11884. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11885. $as_echo "$ac_try_echo") >&5
  11886. (eval "$ac_link") 2>conftest.er1
  11887. ac_status=$?
  11888. grep -v '^ *+' conftest.er1 >conftest.err
  11889. rm -f conftest.er1
  11890. cat conftest.err >&5
  11891. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11892. (exit $ac_status); } && {
  11893. test -z "$ac_c_werror_flag" ||
  11894. test ! -s conftest.err
  11895. } && test -s conftest$ac_exeext && {
  11896. test "$cross_compiling" = yes ||
  11897. $as_test_x conftest$ac_exeext
  11898. }; then
  11899. ac_cv_func_getopt_long=yes
  11900. else
  11901. $as_echo "$as_me: failed program was:" >&5
  11902. sed 's/^/| /' conftest.$ac_ext >&5
  11903. ac_cv_func_getopt_long=no
  11904. fi
  11905. rm -rf conftest.dSYM
  11906. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11907. conftest$ac_exeext conftest.$ac_ext
  11908. fi
  11909. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
  11910. $as_echo "$ac_cv_func_getopt_long" >&6; }
  11911. if test "x$ac_cv_func_getopt_long" = x""yes; then
  11912. GETOPT_OBJS=''
  11913. else
  11914. GETOPT_OBJS='getopt.$(OBJEXT) getopt1.$(OBJEXT)'
  11915. fi
  11916. if test x$HAVE_SDL = xyes -a x$HAVE_OSS = xyes -a x$HAVE_VORBIS = xyes; then
  11917. BUILDABLE_EXAMPLES="$BUILDABLE_EXAMPLES player_example\$(EXEEXT)"
  11918. fi
  11919. if test x$HAVE_PNG = xyes; then
  11920. BUILDABLE_EXAMPLES="$BUILDABLE_EXAMPLES png2theora\$(EXEEXT)"
  11921. fi
  11922. ac_config_files="$ac_config_files Makefile lib/Makefile include/Makefile include/theora/Makefile examples/Makefile doc/Makefile doc/Doxyfile doc/spec/Makefile tests/Makefile m4/Makefile libtheora.spec theora.pc theora-uninstalled.pc theoradec.pc theoradec-uninstalled.pc theoraenc.pc theoraenc-uninstalled.pc"
  11923. cat >confcache <<\_ACEOF
  11924. # This file is a shell script that caches the results of configure
  11925. # tests run on this system so they can be shared between configure
  11926. # scripts and configure runs, see configure's option --config-cache.
  11927. # It is not useful on other systems. If it contains results you don't
  11928. # want to keep, you may remove or edit it.
  11929. #
  11930. # config.status only pays attention to the cache file if you give it
  11931. # the --recheck option to rerun configure.
  11932. #
  11933. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11934. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11935. # following values.
  11936. _ACEOF
  11937. # The following way of writing the cache mishandles newlines in values,
  11938. # but we know of no workaround that is simple, portable, and efficient.
  11939. # So, we kill variables containing newlines.
  11940. # Ultrix sh set writes to stderr and can't be redirected directly,
  11941. # and sets the high bit in the cache file unless we assign to the vars.
  11942. (
  11943. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11944. eval ac_val=\$$ac_var
  11945. case $ac_val in #(
  11946. *${as_nl}*)
  11947. case $ac_var in #(
  11948. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11949. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11950. esac
  11951. case $ac_var in #(
  11952. _ | IFS | as_nl) ;; #(
  11953. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11954. *) $as_unset $ac_var ;;
  11955. esac ;;
  11956. esac
  11957. done
  11958. (set) 2>&1 |
  11959. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11960. *${as_nl}ac_space=\ *)
  11961. # `set' does not quote correctly, so add quotes (double-quote
  11962. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11963. sed -n \
  11964. "s/'/'\\\\''/g;
  11965. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11966. ;; #(
  11967. *)
  11968. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11969. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11970. ;;
  11971. esac |
  11972. sort
  11973. ) |
  11974. sed '
  11975. /^ac_cv_env_/b end
  11976. t clear
  11977. :clear
  11978. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11979. t end
  11980. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11981. :end' >>confcache
  11982. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11983. if test -w "$cache_file"; then
  11984. test "x$cache_file" != "x/dev/null" &&
  11985. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11986. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11987. cat confcache >$cache_file
  11988. else
  11989. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11990. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11991. fi
  11992. fi
  11993. rm -f confcache
  11994. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11995. # Let make expand exec_prefix.
  11996. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11997. DEFS=-DHAVE_CONFIG_H
  11998. ac_libobjs=
  11999. ac_ltlibobjs=
  12000. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12001. # 1. Remove the extension, and $U if already installed.
  12002. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12003. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12004. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12005. # will be set to the directory where LIBOBJS objects are built.
  12006. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12007. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12008. done
  12009. LIBOBJS=$ac_libobjs
  12010. LTLIBOBJS=$ac_ltlibobjs
  12011. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12012. { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  12013. Usually this means the macro was only invoked conditionally." >&5
  12014. $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  12015. Usually this means the macro was only invoked conditionally." >&2;}
  12016. { (exit 1); exit 1; }; }
  12017. fi
  12018. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12019. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  12020. Usually this means the macro was only invoked conditionally." >&5
  12021. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  12022. Usually this means the macro was only invoked conditionally." >&2;}
  12023. { (exit 1); exit 1; }; }
  12024. fi
  12025. if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
  12026. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined.
  12027. Usually this means the macro was only invoked conditionally." >&5
  12028. $as_echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined.
  12029. Usually this means the macro was only invoked conditionally." >&2;}
  12030. { (exit 1); exit 1; }; }
  12031. fi
  12032. if test -z "${BUILD_SPEC_TRUE}" && test -z "${BUILD_SPEC_FALSE}"; then
  12033. { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SPEC\" was never defined.
  12034. Usually this means the macro was only invoked conditionally." >&5
  12035. $as_echo "$as_me: error: conditional \"BUILD_SPEC\" was never defined.
  12036. Usually this means the macro was only invoked conditionally." >&2;}
  12037. { (exit 1); exit 1; }; }
  12038. fi
  12039. if test -z "${CPU_x86_64_TRUE}" && test -z "${CPU_x86_64_FALSE}"; then
  12040. { { $as_echo "$as_me:$LINENO: error: conditional \"CPU_x86_64\" was never defined.
  12041. Usually this means the macro was only invoked conditionally." >&5
  12042. $as_echo "$as_me: error: conditional \"CPU_x86_64\" was never defined.
  12043. Usually this means the macro was only invoked conditionally." >&2;}
  12044. { (exit 1); exit 1; }; }
  12045. fi
  12046. if test -z "${CPU_x86_32_TRUE}" && test -z "${CPU_x86_32_FALSE}"; then
  12047. { { $as_echo "$as_me:$LINENO: error: conditional \"CPU_x86_32\" was never defined.
  12048. Usually this means the macro was only invoked conditionally." >&5
  12049. $as_echo "$as_me: error: conditional \"CPU_x86_32\" was never defined.
  12050. Usually this means the macro was only invoked conditionally." >&2;}
  12051. { (exit 1); exit 1; }; }
  12052. fi
  12053. if test -z "${THEORA_DISABLE_FLOAT_TRUE}" && test -z "${THEORA_DISABLE_FLOAT_FALSE}"; then
  12054. { { $as_echo "$as_me:$LINENO: error: conditional \"THEORA_DISABLE_FLOAT\" was never defined.
  12055. Usually this means the macro was only invoked conditionally." >&5
  12056. $as_echo "$as_me: error: conditional \"THEORA_DISABLE_FLOAT\" was never defined.
  12057. Usually this means the macro was only invoked conditionally." >&2;}
  12058. { (exit 1); exit 1; }; }
  12059. fi
  12060. if test -z "${THEORA_DISABLE_ENCODE_TRUE}" && test -z "${THEORA_DISABLE_ENCODE_FALSE}"; then
  12061. { { $as_echo "$as_me:$LINENO: error: conditional \"THEORA_DISABLE_ENCODE\" was never defined.
  12062. Usually this means the macro was only invoked conditionally." >&5
  12063. $as_echo "$as_me: error: conditional \"THEORA_DISABLE_ENCODE\" was never defined.
  12064. Usually this means the macro was only invoked conditionally." >&2;}
  12065. { (exit 1); exit 1; }; }
  12066. fi
  12067. if test -z "${THEORA_ENABLE_EXAMPLES_TRUE}" && test -z "${THEORA_ENABLE_EXAMPLES_FALSE}"; then
  12068. { { $as_echo "$as_me:$LINENO: error: conditional \"THEORA_ENABLE_EXAMPLES\" was never defined.
  12069. Usually this means the macro was only invoked conditionally." >&5
  12070. $as_echo "$as_me: error: conditional \"THEORA_ENABLE_EXAMPLES\" was never defined.
  12071. Usually this means the macro was only invoked conditionally." >&2;}
  12072. { (exit 1); exit 1; }; }
  12073. fi
  12074. : ${CONFIG_STATUS=./config.status}
  12075. ac_write_fail=0
  12076. ac_clean_files_save=$ac_clean_files
  12077. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12078. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12079. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12080. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12081. #! $SHELL
  12082. # Generated by $as_me.
  12083. # Run this file to recreate the current configuration.
  12084. # Compiler output produced by configure, useful for debugging
  12085. # configure, is in config.log if it exists.
  12086. debug=false
  12087. ac_cs_recheck=false
  12088. ac_cs_silent=false
  12089. SHELL=\${CONFIG_SHELL-$SHELL}
  12090. _ACEOF
  12091. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12092. ## --------------------- ##
  12093. ## M4sh Initialization. ##
  12094. ## --------------------- ##
  12095. # Be more Bourne compatible
  12096. DUALCASE=1; export DUALCASE # for MKS sh
  12097. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12098. emulate sh
  12099. NULLCMD=:
  12100. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12101. # is contrary to our usage. Disable this feature.
  12102. alias -g '${1+"$@"}'='"$@"'
  12103. setopt NO_GLOB_SUBST
  12104. else
  12105. case `(set -o) 2>/dev/null` in
  12106. *posix*) set -o posix ;;
  12107. esac
  12108. fi
  12109. # PATH needs CR
  12110. # Avoid depending upon Character Ranges.
  12111. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12112. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12113. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12114. as_cr_digits='0123456789'
  12115. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12116. as_nl='
  12117. '
  12118. export as_nl
  12119. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12120. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12121. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12122. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12123. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12124. as_echo='printf %s\n'
  12125. as_echo_n='printf %s'
  12126. else
  12127. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12128. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12129. as_echo_n='/usr/ucb/echo -n'
  12130. else
  12131. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12132. as_echo_n_body='eval
  12133. arg=$1;
  12134. case $arg in
  12135. *"$as_nl"*)
  12136. expr "X$arg" : "X\\(.*\\)$as_nl";
  12137. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12138. esac;
  12139. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12140. '
  12141. export as_echo_n_body
  12142. as_echo_n='sh -c $as_echo_n_body as_echo'
  12143. fi
  12144. export as_echo_body
  12145. as_echo='sh -c $as_echo_body as_echo'
  12146. fi
  12147. # The user is always right.
  12148. if test "${PATH_SEPARATOR+set}" != set; then
  12149. PATH_SEPARATOR=:
  12150. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12151. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12152. PATH_SEPARATOR=';'
  12153. }
  12154. fi
  12155. # Support unset when possible.
  12156. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12157. as_unset=unset
  12158. else
  12159. as_unset=false
  12160. fi
  12161. # IFS
  12162. # We need space, tab and new line, in precisely that order. Quoting is
  12163. # there to prevent editors from complaining about space-tab.
  12164. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12165. # splitting by setting IFS to empty value.)
  12166. IFS=" "" $as_nl"
  12167. # Find who we are. Look in the path if we contain no directory separator.
  12168. case $0 in
  12169. *[\\/]* ) as_myself=$0 ;;
  12170. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12171. for as_dir in $PATH
  12172. do
  12173. IFS=$as_save_IFS
  12174. test -z "$as_dir" && as_dir=.
  12175. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12176. done
  12177. IFS=$as_save_IFS
  12178. ;;
  12179. esac
  12180. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12181. # in which case we are not to be found in the path.
  12182. if test "x$as_myself" = x; then
  12183. as_myself=$0
  12184. fi
  12185. if test ! -f "$as_myself"; then
  12186. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12187. { (exit 1); exit 1; }
  12188. fi
  12189. # Work around bugs in pre-3.0 UWIN ksh.
  12190. for as_var in ENV MAIL MAILPATH
  12191. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12192. done
  12193. PS1='$ '
  12194. PS2='> '
  12195. PS4='+ '
  12196. # NLS nuisances.
  12197. LC_ALL=C
  12198. export LC_ALL
  12199. LANGUAGE=C
  12200. export LANGUAGE
  12201. # Required to use basename.
  12202. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12203. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12204. as_expr=expr
  12205. else
  12206. as_expr=false
  12207. fi
  12208. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12209. as_basename=basename
  12210. else
  12211. as_basename=false
  12212. fi
  12213. # Name of the executable.
  12214. as_me=`$as_basename -- "$0" ||
  12215. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12216. X"$0" : 'X\(//\)$' \| \
  12217. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12218. $as_echo X/"$0" |
  12219. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12220. s//\1/
  12221. q
  12222. }
  12223. /^X\/\(\/\/\)$/{
  12224. s//\1/
  12225. q
  12226. }
  12227. /^X\/\(\/\).*/{
  12228. s//\1/
  12229. q
  12230. }
  12231. s/.*/./; q'`
  12232. # CDPATH.
  12233. $as_unset CDPATH
  12234. as_lineno_1=$LINENO
  12235. as_lineno_2=$LINENO
  12236. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12237. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12238. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12239. # uniformly replaced by the line number. The first 'sed' inserts a
  12240. # line-number line after each line using $LINENO; the second 'sed'
  12241. # does the real work. The second script uses 'N' to pair each
  12242. # line-number line with the line containing $LINENO, and appends
  12243. # trailing '-' during substitution so that $LINENO is not a special
  12244. # case at line end.
  12245. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12246. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12247. # E. McMahon (1931-1989) for sed's syntax. :-)
  12248. sed -n '
  12249. p
  12250. /[$]LINENO/=
  12251. ' <$as_myself |
  12252. sed '
  12253. s/[$]LINENO.*/&-/
  12254. t lineno
  12255. b
  12256. :lineno
  12257. N
  12258. :loop
  12259. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12260. t loop
  12261. s/-\n.*//
  12262. ' >$as_me.lineno &&
  12263. chmod +x "$as_me.lineno" ||
  12264. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12265. { (exit 1); exit 1; }; }
  12266. # Don't try to exec as it changes $[0], causing all sort of problems
  12267. # (the dirname of $[0] is not the place where we might find the
  12268. # original and so on. Autoconf is especially sensitive to this).
  12269. . "./$as_me.lineno"
  12270. # Exit status is that of the last command.
  12271. exit
  12272. }
  12273. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12274. as_dirname=dirname
  12275. else
  12276. as_dirname=false
  12277. fi
  12278. ECHO_C= ECHO_N= ECHO_T=
  12279. case `echo -n x` in
  12280. -n*)
  12281. case `echo 'x\c'` in
  12282. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12283. *) ECHO_C='\c';;
  12284. esac;;
  12285. *)
  12286. ECHO_N='-n';;
  12287. esac
  12288. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12289. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12290. as_expr=expr
  12291. else
  12292. as_expr=false
  12293. fi
  12294. rm -f conf$$ conf$$.exe conf$$.file
  12295. if test -d conf$$.dir; then
  12296. rm -f conf$$.dir/conf$$.file
  12297. else
  12298. rm -f conf$$.dir
  12299. mkdir conf$$.dir 2>/dev/null
  12300. fi
  12301. if (echo >conf$$.file) 2>/dev/null; then
  12302. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12303. as_ln_s='ln -s'
  12304. # ... but there are two gotchas:
  12305. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12306. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12307. # In both cases, we have to default to `cp -p'.
  12308. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12309. as_ln_s='cp -p'
  12310. elif ln conf$$.file conf$$ 2>/dev/null; then
  12311. as_ln_s=ln
  12312. else
  12313. as_ln_s='cp -p'
  12314. fi
  12315. else
  12316. as_ln_s='cp -p'
  12317. fi
  12318. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12319. rmdir conf$$.dir 2>/dev/null
  12320. if mkdir -p . 2>/dev/null; then
  12321. as_mkdir_p=:
  12322. else
  12323. test -d ./-p && rmdir ./-p
  12324. as_mkdir_p=false
  12325. fi
  12326. if test -x / >/dev/null 2>&1; then
  12327. as_test_x='test -x'
  12328. else
  12329. if ls -dL / >/dev/null 2>&1; then
  12330. as_ls_L_option=L
  12331. else
  12332. as_ls_L_option=
  12333. fi
  12334. as_test_x='
  12335. eval sh -c '\''
  12336. if test -d "$1"; then
  12337. test -d "$1/.";
  12338. else
  12339. case $1 in
  12340. -*)set "./$1";;
  12341. esac;
  12342. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12343. ???[sx]*):;;*)false;;esac;fi
  12344. '\'' sh
  12345. '
  12346. fi
  12347. as_executable_p=$as_test_x
  12348. # Sed expression to map a string onto a valid CPP name.
  12349. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12350. # Sed expression to map a string onto a valid variable name.
  12351. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12352. exec 6>&1
  12353. # Save the log message, to keep $[0] and so on meaningful, and to
  12354. # report actual input values of CONFIG_FILES etc. instead of their
  12355. # values after options handling.
  12356. ac_log="
  12357. This file was extended by libtheora $as_me 1.1.1, which was
  12358. generated by GNU Autoconf 2.63. Invocation command line was
  12359. CONFIG_FILES = $CONFIG_FILES
  12360. CONFIG_HEADERS = $CONFIG_HEADERS
  12361. CONFIG_LINKS = $CONFIG_LINKS
  12362. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12363. $ $0 $@
  12364. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12365. "
  12366. _ACEOF
  12367. case $ac_config_files in *"
  12368. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12369. esac
  12370. case $ac_config_headers in *"
  12371. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12372. esac
  12373. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12374. # Files that config.status was made for.
  12375. config_files="$ac_config_files"
  12376. config_headers="$ac_config_headers"
  12377. config_commands="$ac_config_commands"
  12378. _ACEOF
  12379. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12380. ac_cs_usage="\
  12381. \`$as_me' instantiates files from templates according to the
  12382. current configuration.
  12383. Usage: $0 [OPTION]... [FILE]...
  12384. -h, --help print this help, then exit
  12385. -V, --version print version number and configuration settings, then exit
  12386. -q, --quiet, --silent
  12387. do not print progress messages
  12388. -d, --debug don't remove temporary files
  12389. --recheck update $as_me by reconfiguring in the same conditions
  12390. --file=FILE[:TEMPLATE]
  12391. instantiate the configuration file FILE
  12392. --header=FILE[:TEMPLATE]
  12393. instantiate the configuration header FILE
  12394. Configuration files:
  12395. $config_files
  12396. Configuration headers:
  12397. $config_headers
  12398. Configuration commands:
  12399. $config_commands
  12400. Report bugs to <[email protected]>."
  12401. _ACEOF
  12402. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12403. ac_cs_version="\\
  12404. libtheora config.status 1.1.1
  12405. configured by $0, generated by GNU Autoconf 2.63,
  12406. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12407. Copyright (C) 2008 Free Software Foundation, Inc.
  12408. This config.status script is free software; the Free Software Foundation
  12409. gives unlimited permission to copy, distribute and modify it."
  12410. ac_pwd='$ac_pwd'
  12411. srcdir='$srcdir'
  12412. INSTALL='$INSTALL'
  12413. AWK='$AWK'
  12414. test -n "\$AWK" || AWK=awk
  12415. _ACEOF
  12416. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12417. # The default lists apply if the user does not specify any file.
  12418. ac_need_defaults=:
  12419. while test $# != 0
  12420. do
  12421. case $1 in
  12422. --*=*)
  12423. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12424. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12425. ac_shift=:
  12426. ;;
  12427. *)
  12428. ac_option=$1
  12429. ac_optarg=$2
  12430. ac_shift=shift
  12431. ;;
  12432. esac
  12433. case $ac_option in
  12434. # Handling of the options.
  12435. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12436. ac_cs_recheck=: ;;
  12437. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12438. $as_echo "$ac_cs_version"; exit ;;
  12439. --debug | --debu | --deb | --de | --d | -d )
  12440. debug=: ;;
  12441. --file | --fil | --fi | --f )
  12442. $ac_shift
  12443. case $ac_optarg in
  12444. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12445. esac
  12446. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  12447. ac_need_defaults=false;;
  12448. --header | --heade | --head | --hea )
  12449. $ac_shift
  12450. case $ac_optarg in
  12451. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12452. esac
  12453. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  12454. ac_need_defaults=false;;
  12455. --he | --h)
  12456. # Conflict between --help and --header
  12457. { $as_echo "$as_me: error: ambiguous option: $1
  12458. Try \`$0 --help' for more information." >&2
  12459. { (exit 1); exit 1; }; };;
  12460. --help | --hel | -h )
  12461. $as_echo "$ac_cs_usage"; exit ;;
  12462. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12463. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12464. ac_cs_silent=: ;;
  12465. # This is an error.
  12466. -*) { $as_echo "$as_me: error: unrecognized option: $1
  12467. Try \`$0 --help' for more information." >&2
  12468. { (exit 1); exit 1; }; } ;;
  12469. *) ac_config_targets="$ac_config_targets $1"
  12470. ac_need_defaults=false ;;
  12471. esac
  12472. shift
  12473. done
  12474. ac_configure_extra_args=
  12475. if $ac_cs_silent; then
  12476. exec 6>/dev/null
  12477. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12478. fi
  12479. _ACEOF
  12480. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12481. if \$ac_cs_recheck; then
  12482. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12483. shift
  12484. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12485. CONFIG_SHELL='$SHELL'
  12486. export CONFIG_SHELL
  12487. exec "\$@"
  12488. fi
  12489. _ACEOF
  12490. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12491. exec 5>>config.log
  12492. {
  12493. echo
  12494. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12495. ## Running $as_me. ##
  12496. _ASBOX
  12497. $as_echo "$ac_log"
  12498. } >&5
  12499. _ACEOF
  12500. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12501. #
  12502. # INIT-COMMANDS
  12503. #
  12504. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12505. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12506. # if CDPATH is set.
  12507. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12508. sed_quote_subst='$sed_quote_subst'
  12509. double_quote_subst='$double_quote_subst'
  12510. delay_variable_subst='$delay_variable_subst'
  12511. AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  12512. DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  12513. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  12514. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  12515. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  12516. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  12517. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  12518. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  12519. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  12520. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  12521. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  12522. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  12523. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  12524. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  12525. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  12526. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  12527. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  12528. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  12529. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  12530. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  12531. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  12532. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  12533. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  12534. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  12535. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  12536. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  12537. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  12538. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  12539. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  12540. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12541. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12542. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  12543. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  12544. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  12545. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  12546. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  12547. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  12548. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12549. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12550. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12551. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  12552. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  12553. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  12554. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  12555. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  12556. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  12557. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  12558. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  12559. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  12560. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  12561. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  12562. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  12563. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12564. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  12565. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  12566. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  12567. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  12568. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  12569. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  12570. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  12571. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  12572. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  12573. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  12574. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  12575. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12576. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12577. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  12578. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  12579. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12580. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12581. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  12582. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12583. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12584. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12585. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12586. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12587. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12588. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  12589. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12590. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12591. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12592. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  12593. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  12594. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  12595. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  12596. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  12597. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12598. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  12599. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  12600. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  12601. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  12602. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  12603. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12604. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  12605. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  12606. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12607. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12608. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  12609. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  12610. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  12611. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  12612. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12613. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12614. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  12615. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12616. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12617. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12618. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12619. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12620. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12621. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  12622. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  12623. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12624. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12625. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  12626. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  12627. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  12628. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  12629. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  12630. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  12631. LTCC='$LTCC'
  12632. LTCFLAGS='$LTCFLAGS'
  12633. compiler='$compiler_DEFAULT'
  12634. # Quote evaled strings.
  12635. for var in SED \
  12636. GREP \
  12637. EGREP \
  12638. FGREP \
  12639. LD \
  12640. NM \
  12641. LN_S \
  12642. lt_SP2NL \
  12643. lt_NL2SP \
  12644. reload_flag \
  12645. deplibs_check_method \
  12646. file_magic_cmd \
  12647. AR \
  12648. AR_FLAGS \
  12649. STRIP \
  12650. RANLIB \
  12651. CC \
  12652. CFLAGS \
  12653. compiler \
  12654. lt_cv_sys_global_symbol_pipe \
  12655. lt_cv_sys_global_symbol_to_cdecl \
  12656. lt_cv_sys_global_symbol_to_c_name_address \
  12657. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12658. SHELL \
  12659. ECHO \
  12660. lt_prog_compiler_no_builtin_flag \
  12661. lt_prog_compiler_wl \
  12662. lt_prog_compiler_pic \
  12663. lt_prog_compiler_static \
  12664. lt_cv_prog_compiler_c_o \
  12665. need_locks \
  12666. DSYMUTIL \
  12667. NMEDIT \
  12668. LIPO \
  12669. OTOOL \
  12670. OTOOL64 \
  12671. shrext_cmds \
  12672. export_dynamic_flag_spec \
  12673. whole_archive_flag_spec \
  12674. compiler_needs_object \
  12675. with_gnu_ld \
  12676. allow_undefined_flag \
  12677. no_undefined_flag \
  12678. hardcode_libdir_flag_spec \
  12679. hardcode_libdir_flag_spec_ld \
  12680. hardcode_libdir_separator \
  12681. fix_srcfile_path \
  12682. exclude_expsyms \
  12683. include_expsyms \
  12684. file_list_spec \
  12685. variables_saved_for_relink \
  12686. libname_spec \
  12687. library_names_spec \
  12688. soname_spec \
  12689. finish_eval \
  12690. old_striplib \
  12691. striplib; do
  12692. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12693. *[\\\\\\\`\\"\\\$]*)
  12694. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12695. ;;
  12696. *)
  12697. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12698. ;;
  12699. esac
  12700. done
  12701. # Double-quote double-evaled strings.
  12702. for var in reload_cmds \
  12703. old_postinstall_cmds \
  12704. old_postuninstall_cmds \
  12705. old_archive_cmds \
  12706. extract_expsyms_cmds \
  12707. old_archive_from_new_cmds \
  12708. old_archive_from_expsyms_cmds \
  12709. archive_cmds \
  12710. archive_expsym_cmds \
  12711. module_cmds \
  12712. module_expsym_cmds \
  12713. export_symbols_cmds \
  12714. prelink_cmds \
  12715. postinstall_cmds \
  12716. postuninstall_cmds \
  12717. finish_cmds \
  12718. sys_lib_search_path_spec \
  12719. sys_lib_dlsearch_path_spec; do
  12720. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12721. *[\\\\\\\`\\"\\\$]*)
  12722. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12723. ;;
  12724. *)
  12725. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12726. ;;
  12727. esac
  12728. done
  12729. # Fix-up fallback echo if it was mangled by the above quoting rules.
  12730. case \$lt_ECHO in
  12731. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  12732. ;;
  12733. esac
  12734. ac_aux_dir='$ac_aux_dir'
  12735. xsi_shell='$xsi_shell'
  12736. lt_shell_append='$lt_shell_append'
  12737. # See if we are running on zsh, and set the options which allow our
  12738. # commands through without removal of \ escapes INIT.
  12739. if test -n "\${ZSH_VERSION+set}" ; then
  12740. setopt NO_GLOB_SUBST
  12741. fi
  12742. PACKAGE='$PACKAGE'
  12743. VERSION='$VERSION'
  12744. TIMESTAMP='$TIMESTAMP'
  12745. RM='$RM'
  12746. ofile='$ofile'
  12747. _ACEOF
  12748. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12749. # Handling of arguments.
  12750. for ac_config_target in $ac_config_targets
  12751. do
  12752. case $ac_config_target in
  12753. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12754. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12755. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12756. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12757. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  12758. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  12759. "include/theora/Makefile") CONFIG_FILES="$CONFIG_FILES include/theora/Makefile" ;;
  12760. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  12761. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  12762. "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
  12763. "doc/spec/Makefile") CONFIG_FILES="$CONFIG_FILES doc/spec/Makefile" ;;
  12764. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  12765. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  12766. "libtheora.spec") CONFIG_FILES="$CONFIG_FILES libtheora.spec" ;;
  12767. "theora.pc") CONFIG_FILES="$CONFIG_FILES theora.pc" ;;
  12768. "theora-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES theora-uninstalled.pc" ;;
  12769. "theoradec.pc") CONFIG_FILES="$CONFIG_FILES theoradec.pc" ;;
  12770. "theoradec-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES theoradec-uninstalled.pc" ;;
  12771. "theoraenc.pc") CONFIG_FILES="$CONFIG_FILES theoraenc.pc" ;;
  12772. "theoraenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES theoraenc-uninstalled.pc" ;;
  12773. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12774. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12775. { (exit 1); exit 1; }; };;
  12776. esac
  12777. done
  12778. # If the user did not use the arguments to specify the items to instantiate,
  12779. # then the envvar interface is used. Set only those that are not.
  12780. # We use the long form for the default assignment because of an extremely
  12781. # bizarre bug on SunOS 4.1.3.
  12782. if $ac_need_defaults; then
  12783. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12784. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12785. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12786. fi
  12787. # Have a temporary directory for convenience. Make it in the build tree
  12788. # simply because there is no reason against having it here, and in addition,
  12789. # creating and moving files from /tmp can sometimes cause problems.
  12790. # Hook for its removal unless debugging.
  12791. # Note that there is a small window in which the directory will not be cleaned:
  12792. # after its creation but before its name has been assigned to `$tmp'.
  12793. $debug ||
  12794. {
  12795. tmp=
  12796. trap 'exit_status=$?
  12797. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12798. ' 0
  12799. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12800. }
  12801. # Create a (secure) tmp directory for tmp files.
  12802. {
  12803. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12804. test -n "$tmp" && test -d "$tmp"
  12805. } ||
  12806. {
  12807. tmp=./conf$$-$RANDOM
  12808. (umask 077 && mkdir "$tmp")
  12809. } ||
  12810. {
  12811. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  12812. { (exit 1); exit 1; }
  12813. }
  12814. # Set up the scripts for CONFIG_FILES section.
  12815. # No need to generate them if there are no CONFIG_FILES.
  12816. # This happens for instance with `./config.status config.h'.
  12817. if test -n "$CONFIG_FILES"; then
  12818. ac_cr=' '
  12819. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12820. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12821. ac_cs_awk_cr='\\r'
  12822. else
  12823. ac_cs_awk_cr=$ac_cr
  12824. fi
  12825. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  12826. _ACEOF
  12827. {
  12828. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12829. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12830. echo "_ACEOF"
  12831. } >conf$$subs.sh ||
  12832. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12833. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12834. { (exit 1); exit 1; }; }
  12835. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  12836. ac_delim='%!_!# '
  12837. for ac_last_try in false false false false false :; do
  12838. . ./conf$$subs.sh ||
  12839. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12840. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12841. { (exit 1); exit 1; }; }
  12842. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12843. if test $ac_delim_n = $ac_delim_num; then
  12844. break
  12845. elif $ac_last_try; then
  12846. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12847. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12848. { (exit 1); exit 1; }; }
  12849. else
  12850. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12851. fi
  12852. done
  12853. rm -f conf$$subs.sh
  12854. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12855. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  12856. _ACEOF
  12857. sed -n '
  12858. h
  12859. s/^/S["/; s/!.*/"]=/
  12860. p
  12861. g
  12862. s/^[^!]*!//
  12863. :repl
  12864. t repl
  12865. s/'"$ac_delim"'$//
  12866. t delim
  12867. :nl
  12868. h
  12869. s/\(.\{148\}\).*/\1/
  12870. t more1
  12871. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12872. p
  12873. n
  12874. b repl
  12875. :more1
  12876. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12877. p
  12878. g
  12879. s/.\{148\}//
  12880. t nl
  12881. :delim
  12882. h
  12883. s/\(.\{148\}\).*/\1/
  12884. t more2
  12885. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12886. p
  12887. b
  12888. :more2
  12889. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12890. p
  12891. g
  12892. s/.\{148\}//
  12893. t delim
  12894. ' <conf$$subs.awk | sed '
  12895. /^[^""]/{
  12896. N
  12897. s/\n//
  12898. }
  12899. ' >>$CONFIG_STATUS || ac_write_fail=1
  12900. rm -f conf$$subs.awk
  12901. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12902. _ACAWK
  12903. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  12904. for (key in S) S_is_set[key] = 1
  12905. FS = ""
  12906. }
  12907. {
  12908. line = $ 0
  12909. nfields = split(line, field, "@")
  12910. substed = 0
  12911. len = length(field[1])
  12912. for (i = 2; i < nfields; i++) {
  12913. key = field[i]
  12914. keylen = length(key)
  12915. if (S_is_set[key]) {
  12916. value = S[key]
  12917. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12918. len += length(value) + length(field[++i])
  12919. substed = 1
  12920. } else
  12921. len += 1 + keylen
  12922. }
  12923. print line
  12924. }
  12925. _ACAWK
  12926. _ACEOF
  12927. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12928. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12929. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12930. else
  12931. cat
  12932. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12933. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  12934. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  12935. { (exit 1); exit 1; }; }
  12936. _ACEOF
  12937. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12938. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12939. # trailing colons and then remove the whole line if VPATH becomes empty
  12940. # (actually we leave an empty line to preserve line numbers).
  12941. if test "x$srcdir" = x.; then
  12942. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12943. s/:*\$(srcdir):*/:/
  12944. s/:*\${srcdir}:*/:/
  12945. s/:*@srcdir@:*/:/
  12946. s/^\([^=]*=[ ]*\):*/\1/
  12947. s/:*$//
  12948. s/^[^=]*=[ ]*$//
  12949. }'
  12950. fi
  12951. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12952. fi # test -n "$CONFIG_FILES"
  12953. # Set up the scripts for CONFIG_HEADERS section.
  12954. # No need to generate them if there are no CONFIG_HEADERS.
  12955. # This happens for instance with `./config.status Makefile'.
  12956. if test -n "$CONFIG_HEADERS"; then
  12957. cat >"$tmp/defines.awk" <<\_ACAWK ||
  12958. BEGIN {
  12959. _ACEOF
  12960. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12961. # here-document in config.status, that substitutes the proper values into
  12962. # config.h.in to produce config.h.
  12963. # Create a delimiter string that does not exist in confdefs.h, to ease
  12964. # handling of long lines.
  12965. ac_delim='%!_!# '
  12966. for ac_last_try in false false :; do
  12967. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  12968. if test -z "$ac_t"; then
  12969. break
  12970. elif $ac_last_try; then
  12971. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  12972. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  12973. { (exit 1); exit 1; }; }
  12974. else
  12975. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12976. fi
  12977. done
  12978. # For the awk script, D is an array of macro values keyed by name,
  12979. # likewise P contains macro parameters if any. Preserve backslash
  12980. # newline sequences.
  12981. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12982. sed -n '
  12983. s/.\{148\}/&'"$ac_delim"'/g
  12984. t rset
  12985. :rset
  12986. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12987. t def
  12988. d
  12989. :def
  12990. s/\\$//
  12991. t bsnl
  12992. s/["\\]/\\&/g
  12993. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12994. D["\1"]=" \3"/p
  12995. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12996. d
  12997. :bsnl
  12998. s/["\\]/\\&/g
  12999. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13000. D["\1"]=" \3\\\\\\n"\\/p
  13001. t cont
  13002. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13003. t cont
  13004. d
  13005. :cont
  13006. n
  13007. s/.\{148\}/&'"$ac_delim"'/g
  13008. t clear
  13009. :clear
  13010. s/\\$//
  13011. t bsnlc
  13012. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13013. d
  13014. :bsnlc
  13015. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13016. b cont
  13017. ' <confdefs.h | sed '
  13018. s/'"$ac_delim"'/"\\\
  13019. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13020. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13021. for (key in D) D_is_set[key] = 1
  13022. FS = ""
  13023. }
  13024. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13025. line = \$ 0
  13026. split(line, arg, " ")
  13027. if (arg[1] == "#") {
  13028. defundef = arg[2]
  13029. mac1 = arg[3]
  13030. } else {
  13031. defundef = substr(arg[1], 2)
  13032. mac1 = arg[2]
  13033. }
  13034. split(mac1, mac2, "(") #)
  13035. macro = mac2[1]
  13036. prefix = substr(line, 1, index(line, defundef) - 1)
  13037. if (D_is_set[macro]) {
  13038. # Preserve the white space surrounding the "#".
  13039. print prefix "define", macro P[macro] D[macro]
  13040. next
  13041. } else {
  13042. # Replace #undef with comments. This is necessary, for example,
  13043. # in the case of _POSIX_SOURCE, which is predefined and required
  13044. # on some systems where configure will not decide to define it.
  13045. if (defundef == "undef") {
  13046. print "/*", prefix defundef, macro, "*/"
  13047. next
  13048. }
  13049. }
  13050. }
  13051. { print }
  13052. _ACAWK
  13053. _ACEOF
  13054. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13055. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  13056. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  13057. { (exit 1); exit 1; }; }
  13058. fi # test -n "$CONFIG_HEADERS"
  13059. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13060. shift
  13061. for ac_tag
  13062. do
  13063. case $ac_tag in
  13064. :[FHLC]) ac_mode=$ac_tag; continue;;
  13065. esac
  13066. case $ac_mode$ac_tag in
  13067. :[FHL]*:*);;
  13068. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  13069. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  13070. { (exit 1); exit 1; }; };;
  13071. :[FH]-) ac_tag=-:-;;
  13072. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13073. esac
  13074. ac_save_IFS=$IFS
  13075. IFS=:
  13076. set x $ac_tag
  13077. IFS=$ac_save_IFS
  13078. shift
  13079. ac_file=$1
  13080. shift
  13081. case $ac_mode in
  13082. :L) ac_source=$1;;
  13083. :[FH])
  13084. ac_file_inputs=
  13085. for ac_f
  13086. do
  13087. case $ac_f in
  13088. -) ac_f="$tmp/stdin";;
  13089. *) # Look for the file first in the build tree, then in the source tree
  13090. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13091. # because $ac_f cannot contain `:'.
  13092. test -f "$ac_f" ||
  13093. case $ac_f in
  13094. [\\/$]*) false;;
  13095. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13096. esac ||
  13097. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  13098. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  13099. { (exit 1); exit 1; }; };;
  13100. esac
  13101. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13102. ac_file_inputs="$ac_file_inputs '$ac_f'"
  13103. done
  13104. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13105. # use $as_me), people would be surprised to read:
  13106. # /* config.h. Generated by config.status. */
  13107. configure_input='Generated from '`
  13108. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13109. `' by configure.'
  13110. if test x"$ac_file" != x-; then
  13111. configure_input="$ac_file. $configure_input"
  13112. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  13113. $as_echo "$as_me: creating $ac_file" >&6;}
  13114. fi
  13115. # Neutralize special characters interpreted by sed in replacement strings.
  13116. case $configure_input in #(
  13117. *\&* | *\|* | *\\* )
  13118. ac_sed_conf_input=`$as_echo "$configure_input" |
  13119. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13120. *) ac_sed_conf_input=$configure_input;;
  13121. esac
  13122. case $ac_tag in
  13123. *:-:* | *:-) cat >"$tmp/stdin" \
  13124. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13125. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13126. { (exit 1); exit 1; }; } ;;
  13127. esac
  13128. ;;
  13129. esac
  13130. ac_dir=`$as_dirname -- "$ac_file" ||
  13131. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13132. X"$ac_file" : 'X\(//\)[^/]' \| \
  13133. X"$ac_file" : 'X\(//\)$' \| \
  13134. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13135. $as_echo X"$ac_file" |
  13136. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13137. s//\1/
  13138. q
  13139. }
  13140. /^X\(\/\/\)[^/].*/{
  13141. s//\1/
  13142. q
  13143. }
  13144. /^X\(\/\/\)$/{
  13145. s//\1/
  13146. q
  13147. }
  13148. /^X\(\/\).*/{
  13149. s//\1/
  13150. q
  13151. }
  13152. s/.*/./; q'`
  13153. { as_dir="$ac_dir"
  13154. case $as_dir in #(
  13155. -*) as_dir=./$as_dir;;
  13156. esac
  13157. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13158. as_dirs=
  13159. while :; do
  13160. case $as_dir in #(
  13161. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13162. *) as_qdir=$as_dir;;
  13163. esac
  13164. as_dirs="'$as_qdir' $as_dirs"
  13165. as_dir=`$as_dirname -- "$as_dir" ||
  13166. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13167. X"$as_dir" : 'X\(//\)[^/]' \| \
  13168. X"$as_dir" : 'X\(//\)$' \| \
  13169. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13170. $as_echo X"$as_dir" |
  13171. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13172. s//\1/
  13173. q
  13174. }
  13175. /^X\(\/\/\)[^/].*/{
  13176. s//\1/
  13177. q
  13178. }
  13179. /^X\(\/\/\)$/{
  13180. s//\1/
  13181. q
  13182. }
  13183. /^X\(\/\).*/{
  13184. s//\1/
  13185. q
  13186. }
  13187. s/.*/./; q'`
  13188. test -d "$as_dir" && break
  13189. done
  13190. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13191. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13192. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13193. { (exit 1); exit 1; }; }; }
  13194. ac_builddir=.
  13195. case "$ac_dir" in
  13196. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13197. *)
  13198. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13199. # A ".." for each directory in $ac_dir_suffix.
  13200. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13201. case $ac_top_builddir_sub in
  13202. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13203. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13204. esac ;;
  13205. esac
  13206. ac_abs_top_builddir=$ac_pwd
  13207. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13208. # for backward compatibility:
  13209. ac_top_builddir=$ac_top_build_prefix
  13210. case $srcdir in
  13211. .) # We are building in place.
  13212. ac_srcdir=.
  13213. ac_top_srcdir=$ac_top_builddir_sub
  13214. ac_abs_top_srcdir=$ac_pwd ;;
  13215. [\\/]* | ?:[\\/]* ) # Absolute name.
  13216. ac_srcdir=$srcdir$ac_dir_suffix;
  13217. ac_top_srcdir=$srcdir
  13218. ac_abs_top_srcdir=$srcdir ;;
  13219. *) # Relative name.
  13220. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13221. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13222. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13223. esac
  13224. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13225. case $ac_mode in
  13226. :F)
  13227. #
  13228. # CONFIG_FILE
  13229. #
  13230. case $INSTALL in
  13231. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13232. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13233. esac
  13234. _ACEOF
  13235. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13236. # If the template does not know about datarootdir, expand it.
  13237. # FIXME: This hack should be removed a few years after 2.60.
  13238. ac_datarootdir_hack=; ac_datarootdir_seen=
  13239. ac_sed_dataroot='
  13240. /datarootdir/ {
  13241. p
  13242. q
  13243. }
  13244. /@datadir@/p
  13245. /@docdir@/p
  13246. /@infodir@/p
  13247. /@localedir@/p
  13248. /@mandir@/p
  13249. '
  13250. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13251. *datarootdir*) ac_datarootdir_seen=yes;;
  13252. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13253. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13254. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13255. _ACEOF
  13256. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13257. ac_datarootdir_hack='
  13258. s&@datadir@&$datadir&g
  13259. s&@docdir@&$docdir&g
  13260. s&@infodir@&$infodir&g
  13261. s&@localedir@&$localedir&g
  13262. s&@mandir@&$mandir&g
  13263. s&\\\${datarootdir}&$datarootdir&g' ;;
  13264. esac
  13265. _ACEOF
  13266. # Neutralize VPATH when `$srcdir' = `.'.
  13267. # Shell code in configure.ac might set extrasub.
  13268. # FIXME: do we really want to maintain this feature?
  13269. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13270. ac_sed_extra="$ac_vpsub
  13271. $extrasub
  13272. _ACEOF
  13273. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13274. :t
  13275. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13276. s|@configure_input@|$ac_sed_conf_input|;t t
  13277. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13278. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13279. s&@srcdir@&$ac_srcdir&;t t
  13280. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13281. s&@top_srcdir@&$ac_top_srcdir&;t t
  13282. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13283. s&@builddir@&$ac_builddir&;t t
  13284. s&@abs_builddir@&$ac_abs_builddir&;t t
  13285. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13286. s&@INSTALL@&$ac_INSTALL&;t t
  13287. $ac_datarootdir_hack
  13288. "
  13289. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13290. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13291. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13292. { (exit 1); exit 1; }; }
  13293. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13294. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13295. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13296. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13297. which seems to be undefined. Please make sure it is defined." >&5
  13298. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13299. which seems to be undefined. Please make sure it is defined." >&2;}
  13300. rm -f "$tmp/stdin"
  13301. case $ac_file in
  13302. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13303. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13304. esac \
  13305. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13306. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13307. { (exit 1); exit 1; }; }
  13308. ;;
  13309. :H)
  13310. #
  13311. # CONFIG_HEADER
  13312. #
  13313. if test x"$ac_file" != x-; then
  13314. {
  13315. $as_echo "/* $configure_input */" \
  13316. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13317. } >"$tmp/config.h" \
  13318. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13319. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13320. { (exit 1); exit 1; }; }
  13321. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13322. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13323. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13324. else
  13325. rm -f "$ac_file"
  13326. mv "$tmp/config.h" "$ac_file" \
  13327. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13328. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13329. { (exit 1); exit 1; }; }
  13330. fi
  13331. else
  13332. $as_echo "/* $configure_input */" \
  13333. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13334. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  13335. $as_echo "$as_me: error: could not create -" >&2;}
  13336. { (exit 1); exit 1; }; }
  13337. fi
  13338. ;;
  13339. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  13340. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13341. ;;
  13342. esac
  13343. case $ac_file$ac_mode in
  13344. "config.h":H) # update the timestamp
  13345. echo 'timestamp for config.h' >"./stamp-h1"
  13346. ;;
  13347. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  13348. # Strip MF so we end up with the name of the file.
  13349. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13350. # Check whether this is an Automake generated Makefile or not.
  13351. # We used to match only the files named `Makefile.in', but
  13352. # some people rename them; so instead we look at the file content.
  13353. # Grep'ing the first line is not enough: some people post-process
  13354. # each Makefile.in and add a new line on top of each file to say so.
  13355. # So let's grep whole file.
  13356. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  13357. dirpart=`$as_dirname -- "$mf" ||
  13358. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13359. X"$mf" : 'X\(//\)[^/]' \| \
  13360. X"$mf" : 'X\(//\)$' \| \
  13361. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13362. $as_echo X"$mf" |
  13363. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13364. s//\1/
  13365. q
  13366. }
  13367. /^X\(\/\/\)[^/].*/{
  13368. s//\1/
  13369. q
  13370. }
  13371. /^X\(\/\/\)$/{
  13372. s//\1/
  13373. q
  13374. }
  13375. /^X\(\/\).*/{
  13376. s//\1/
  13377. q
  13378. }
  13379. s/.*/./; q'`
  13380. else
  13381. continue
  13382. fi
  13383. grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  13384. # Extract the definition of DEP_FILES from the Makefile without
  13385. # running `make'.
  13386. DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  13387. test -z "$DEPDIR" && continue
  13388. # When using ansi2knr, U may be empty or an underscore; expand it
  13389. U=`sed -n -e '/^U = / s///p' < "$mf"`
  13390. test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  13391. # We invoke sed twice because it is the simplest approach to
  13392. # changing $(DEPDIR) to its actual value in the expansion.
  13393. for file in `sed -n -e '
  13394. /^DEP_FILES = .*\\\\$/ {
  13395. s/^DEP_FILES = //
  13396. :loop
  13397. s/\\\\$//
  13398. p
  13399. n
  13400. /\\\\$/ b loop
  13401. p
  13402. }
  13403. /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  13404. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13405. # Make sure the directory exists.
  13406. test -f "$dirpart/$file" && continue
  13407. fdir=`$as_dirname -- "$file" ||
  13408. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13409. X"$file" : 'X\(//\)[^/]' \| \
  13410. X"$file" : 'X\(//\)$' \| \
  13411. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13412. $as_echo X"$file" |
  13413. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13414. s//\1/
  13415. q
  13416. }
  13417. /^X\(\/\/\)[^/].*/{
  13418. s//\1/
  13419. q
  13420. }
  13421. /^X\(\/\/\)$/{
  13422. s//\1/
  13423. q
  13424. }
  13425. /^X\(\/\).*/{
  13426. s//\1/
  13427. q
  13428. }
  13429. s/.*/./; q'`
  13430. { as_dir=$dirpart/$fdir
  13431. case $as_dir in #(
  13432. -*) as_dir=./$as_dir;;
  13433. esac
  13434. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13435. as_dirs=
  13436. while :; do
  13437. case $as_dir in #(
  13438. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13439. *) as_qdir=$as_dir;;
  13440. esac
  13441. as_dirs="'$as_qdir' $as_dirs"
  13442. as_dir=`$as_dirname -- "$as_dir" ||
  13443. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13444. X"$as_dir" : 'X\(//\)[^/]' \| \
  13445. X"$as_dir" : 'X\(//\)$' \| \
  13446. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13447. $as_echo X"$as_dir" |
  13448. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13449. s//\1/
  13450. q
  13451. }
  13452. /^X\(\/\/\)[^/].*/{
  13453. s//\1/
  13454. q
  13455. }
  13456. /^X\(\/\/\)$/{
  13457. s//\1/
  13458. q
  13459. }
  13460. /^X\(\/\).*/{
  13461. s//\1/
  13462. q
  13463. }
  13464. s/.*/./; q'`
  13465. test -d "$as_dir" && break
  13466. done
  13467. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13468. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13469. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13470. { (exit 1); exit 1; }; }; }
  13471. # echo "creating $dirpart/$file"
  13472. echo '# dummy' > "$dirpart/$file"
  13473. done
  13474. done
  13475. ;;
  13476. "libtool":C)
  13477. # See if we are running on zsh, and set the options which allow our
  13478. # commands through without removal of \ escapes.
  13479. if test -n "${ZSH_VERSION+set}" ; then
  13480. setopt NO_GLOB_SUBST
  13481. fi
  13482. cfgfile="${ofile}T"
  13483. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13484. $RM "$cfgfile"
  13485. cat <<_LT_EOF >> "$cfgfile"
  13486. #! $SHELL
  13487. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13488. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13489. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13490. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13491. #
  13492. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13493. # 2006, 2007, 2008 Free Software Foundation, Inc.
  13494. # Written by Gordon Matzigkeit, 1996
  13495. #
  13496. # This file is part of GNU Libtool.
  13497. #
  13498. # GNU Libtool is free software; you can redistribute it and/or
  13499. # modify it under the terms of the GNU General Public License as
  13500. # published by the Free Software Foundation; either version 2 of
  13501. # the License, or (at your option) any later version.
  13502. #
  13503. # As a special exception to the GNU General Public License,
  13504. # if you distribute this file as part of a program or library that
  13505. # is built using GNU Libtool, you may include this file under the
  13506. # same distribution terms that you use for the rest of that program.
  13507. #
  13508. # GNU Libtool is distributed in the hope that it will be useful,
  13509. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13510. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13511. # GNU General Public License for more details.
  13512. #
  13513. # You should have received a copy of the GNU General Public License
  13514. # along with GNU Libtool; see the file COPYING. If not, a copy
  13515. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13516. # obtained by writing to the Free Software Foundation, Inc.,
  13517. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13518. # The names of the tagged configurations supported by this script.
  13519. available_tags=""
  13520. # ### BEGIN LIBTOOL CONFIG
  13521. # Assembler program.
  13522. AS=$AS
  13523. # DLL creation program.
  13524. DLLTOOL=$DLLTOOL
  13525. # Object dumper program.
  13526. OBJDUMP=$OBJDUMP
  13527. # Which release of libtool.m4 was used?
  13528. macro_version=$macro_version
  13529. macro_revision=$macro_revision
  13530. # Whether or not to build shared libraries.
  13531. build_libtool_libs=$enable_shared
  13532. # Whether or not to build static libraries.
  13533. build_old_libs=$enable_static
  13534. # What type of objects to build.
  13535. pic_mode=$pic_mode
  13536. # Whether or not to optimize for fast installation.
  13537. fast_install=$enable_fast_install
  13538. # The host system.
  13539. host_alias=$host_alias
  13540. host=$host
  13541. host_os=$host_os
  13542. # The build system.
  13543. build_alias=$build_alias
  13544. build=$build
  13545. build_os=$build_os
  13546. # A sed program that does not truncate output.
  13547. SED=$lt_SED
  13548. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13549. Xsed="\$SED -e 1s/^X//"
  13550. # A grep program that handles long lines.
  13551. GREP=$lt_GREP
  13552. # An ERE matcher.
  13553. EGREP=$lt_EGREP
  13554. # A literal string matcher.
  13555. FGREP=$lt_FGREP
  13556. # A BSD- or MS-compatible name lister.
  13557. NM=$lt_NM
  13558. # Whether we need soft or hard links.
  13559. LN_S=$lt_LN_S
  13560. # What is the maximum length of a command?
  13561. max_cmd_len=$max_cmd_len
  13562. # Object file suffix (normally "o").
  13563. objext=$ac_objext
  13564. # Executable file suffix (normally "").
  13565. exeext=$exeext
  13566. # whether the shell understands "unset".
  13567. lt_unset=$lt_unset
  13568. # turn spaces into newlines.
  13569. SP2NL=$lt_lt_SP2NL
  13570. # turn newlines into spaces.
  13571. NL2SP=$lt_lt_NL2SP
  13572. # How to create reloadable object files.
  13573. reload_flag=$lt_reload_flag
  13574. reload_cmds=$lt_reload_cmds
  13575. # Method to check whether dependent libraries are shared objects.
  13576. deplibs_check_method=$lt_deplibs_check_method
  13577. # Command to use when deplibs_check_method == "file_magic".
  13578. file_magic_cmd=$lt_file_magic_cmd
  13579. # The archiver.
  13580. AR=$lt_AR
  13581. AR_FLAGS=$lt_AR_FLAGS
  13582. # A symbol stripping program.
  13583. STRIP=$lt_STRIP
  13584. # Commands used to install an old-style archive.
  13585. RANLIB=$lt_RANLIB
  13586. old_postinstall_cmds=$lt_old_postinstall_cmds
  13587. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13588. # A C compiler.
  13589. LTCC=$lt_CC
  13590. # LTCC compiler flags.
  13591. LTCFLAGS=$lt_CFLAGS
  13592. # Take the output of nm and produce a listing of raw symbols and C names.
  13593. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13594. # Transform the output of nm in a proper C declaration.
  13595. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13596. # Transform the output of nm in a C name address pair.
  13597. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13598. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13599. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13600. # The name of the directory that contains temporary libtool files.
  13601. objdir=$objdir
  13602. # Shell to use when invoking shell scripts.
  13603. SHELL=$lt_SHELL
  13604. # An echo program that does not interpret backslashes.
  13605. ECHO=$lt_ECHO
  13606. # Used to examine libraries when file_magic_cmd begins with "file".
  13607. MAGIC_CMD=$MAGIC_CMD
  13608. # Must we lock files when doing compilation?
  13609. need_locks=$lt_need_locks
  13610. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13611. DSYMUTIL=$lt_DSYMUTIL
  13612. # Tool to change global to local symbols on Mac OS X.
  13613. NMEDIT=$lt_NMEDIT
  13614. # Tool to manipulate fat objects and archives on Mac OS X.
  13615. LIPO=$lt_LIPO
  13616. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13617. OTOOL=$lt_OTOOL
  13618. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13619. OTOOL64=$lt_OTOOL64
  13620. # Old archive suffix (normally "a").
  13621. libext=$libext
  13622. # Shared library suffix (normally ".so").
  13623. shrext_cmds=$lt_shrext_cmds
  13624. # The commands to extract the exported symbol list from a shared archive.
  13625. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13626. # Variables whose values should be saved in libtool wrapper scripts and
  13627. # restored at link time.
  13628. variables_saved_for_relink=$lt_variables_saved_for_relink
  13629. # Do we need the "lib" prefix for modules?
  13630. need_lib_prefix=$need_lib_prefix
  13631. # Do we need a version for libraries?
  13632. need_version=$need_version
  13633. # Library versioning type.
  13634. version_type=$version_type
  13635. # Shared library runtime path variable.
  13636. runpath_var=$runpath_var
  13637. # Shared library path variable.
  13638. shlibpath_var=$shlibpath_var
  13639. # Is shlibpath searched before the hard-coded library search path?
  13640. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13641. # Format of library name prefix.
  13642. libname_spec=$lt_libname_spec
  13643. # List of archive names. First name is the real one, the rest are links.
  13644. # The last name is the one that the linker finds with -lNAME
  13645. library_names_spec=$lt_library_names_spec
  13646. # The coded name of the library, if different from the real name.
  13647. soname_spec=$lt_soname_spec
  13648. # Command to use after installation of a shared archive.
  13649. postinstall_cmds=$lt_postinstall_cmds
  13650. # Command to use after uninstallation of a shared archive.
  13651. postuninstall_cmds=$lt_postuninstall_cmds
  13652. # Commands used to finish a libtool library installation in a directory.
  13653. finish_cmds=$lt_finish_cmds
  13654. # As "finish_cmds", except a single script fragment to be evaled but
  13655. # not shown.
  13656. finish_eval=$lt_finish_eval
  13657. # Whether we should hardcode library paths into libraries.
  13658. hardcode_into_libs=$hardcode_into_libs
  13659. # Compile-time system search path for libraries.
  13660. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13661. # Run-time system search path for libraries.
  13662. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13663. # Whether dlopen is supported.
  13664. dlopen_support=$enable_dlopen
  13665. # Whether dlopen of programs is supported.
  13666. dlopen_self=$enable_dlopen_self
  13667. # Whether dlopen of statically linked programs is supported.
  13668. dlopen_self_static=$enable_dlopen_self_static
  13669. # Commands to strip libraries.
  13670. old_striplib=$lt_old_striplib
  13671. striplib=$lt_striplib
  13672. # The linker used to build libraries.
  13673. LD=$lt_LD
  13674. # Commands used to build an old-style archive.
  13675. old_archive_cmds=$lt_old_archive_cmds
  13676. # A language specific compiler.
  13677. CC=$lt_compiler
  13678. # Is the compiler the GNU compiler?
  13679. with_gcc=$GCC
  13680. # Compiler flag to turn off builtin functions.
  13681. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13682. # How to pass a linker flag through the compiler.
  13683. wl=$lt_lt_prog_compiler_wl
  13684. # Additional compiler flags for building library objects.
  13685. pic_flag=$lt_lt_prog_compiler_pic
  13686. # Compiler flag to prevent dynamic linking.
  13687. link_static_flag=$lt_lt_prog_compiler_static
  13688. # Does compiler simultaneously support -c and -o options?
  13689. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13690. # Whether or not to add -lc for building shared libraries.
  13691. build_libtool_need_lc=$archive_cmds_need_lc
  13692. # Whether or not to disallow shared libs when runtime libs are static.
  13693. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13694. # Compiler flag to allow reflexive dlopens.
  13695. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13696. # Compiler flag to generate shared objects directly from archives.
  13697. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13698. # Whether the compiler copes with passing no objects directly.
  13699. compiler_needs_object=$lt_compiler_needs_object
  13700. # Create an old-style archive from a shared archive.
  13701. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13702. # Create a temporary old-style archive to link instead of a shared archive.
  13703. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13704. # Commands used to build a shared archive.
  13705. archive_cmds=$lt_archive_cmds
  13706. archive_expsym_cmds=$lt_archive_expsym_cmds
  13707. # Commands used to build a loadable module if different from building
  13708. # a shared archive.
  13709. module_cmds=$lt_module_cmds
  13710. module_expsym_cmds=$lt_module_expsym_cmds
  13711. # Whether we are building with GNU ld or not.
  13712. with_gnu_ld=$lt_with_gnu_ld
  13713. # Flag that allows shared libraries with undefined symbols to be built.
  13714. allow_undefined_flag=$lt_allow_undefined_flag
  13715. # Flag that enforces no undefined symbols.
  13716. no_undefined_flag=$lt_no_undefined_flag
  13717. # Flag to hardcode \$libdir into a binary during linking.
  13718. # This must work even if \$libdir does not exist
  13719. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13720. # If ld is used when linking, flag to hardcode \$libdir into a binary
  13721. # during linking. This must work even if \$libdir does not exist.
  13722. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  13723. # Whether we need a single "-rpath" flag with a separated argument.
  13724. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13725. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13726. # DIR into the resulting binary.
  13727. hardcode_direct=$hardcode_direct
  13728. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13729. # DIR into the resulting binary and the resulting library dependency is
  13730. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13731. # library is relocated.
  13732. hardcode_direct_absolute=$hardcode_direct_absolute
  13733. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13734. # into the resulting binary.
  13735. hardcode_minus_L=$hardcode_minus_L
  13736. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13737. # into the resulting binary.
  13738. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13739. # Set to "yes" if building a shared library automatically hardcodes DIR
  13740. # into the library and all subsequent libraries and executables linked
  13741. # against it.
  13742. hardcode_automatic=$hardcode_automatic
  13743. # Set to yes if linker adds runtime paths of dependent libraries
  13744. # to runtime path list.
  13745. inherit_rpath=$inherit_rpath
  13746. # Whether libtool must link a program against all its dependency libraries.
  13747. link_all_deplibs=$link_all_deplibs
  13748. # Fix the shell variable \$srcfile for the compiler.
  13749. fix_srcfile_path=$lt_fix_srcfile_path
  13750. # Set to "yes" if exported symbols are required.
  13751. always_export_symbols=$always_export_symbols
  13752. # The commands to list exported symbols.
  13753. export_symbols_cmds=$lt_export_symbols_cmds
  13754. # Symbols that should not be listed in the preloaded symbols.
  13755. exclude_expsyms=$lt_exclude_expsyms
  13756. # Symbols that must always be exported.
  13757. include_expsyms=$lt_include_expsyms
  13758. # Commands necessary for linking programs (against libraries) with templates.
  13759. prelink_cmds=$lt_prelink_cmds
  13760. # Specify filename containing input files.
  13761. file_list_spec=$lt_file_list_spec
  13762. # How to hardcode a shared library path into an executable.
  13763. hardcode_action=$hardcode_action
  13764. # ### END LIBTOOL CONFIG
  13765. _LT_EOF
  13766. case $host_os in
  13767. aix3*)
  13768. cat <<\_LT_EOF >> "$cfgfile"
  13769. # AIX sometimes has problems with the GCC collect2 program. For some
  13770. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13771. # vanish in a puff of smoke.
  13772. if test "X${COLLECT_NAMES+set}" != Xset; then
  13773. COLLECT_NAMES=
  13774. export COLLECT_NAMES
  13775. fi
  13776. _LT_EOF
  13777. ;;
  13778. esac
  13779. ltmain="$ac_aux_dir/ltmain.sh"
  13780. # We use sed instead of cat because bash on DJGPP gets confused if
  13781. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13782. # text mode, it properly converts lines to CR/LF. This bash problem
  13783. # is reportedly fixed, but why not run on old versions too?
  13784. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  13785. || (rm -f "$cfgfile"; exit 1)
  13786. case $xsi_shell in
  13787. yes)
  13788. cat << \_LT_EOF >> "$cfgfile"
  13789. # func_dirname file append nondir_replacement
  13790. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13791. # otherwise set result to NONDIR_REPLACEMENT.
  13792. func_dirname ()
  13793. {
  13794. case ${1} in
  13795. */*) func_dirname_result="${1%/*}${2}" ;;
  13796. * ) func_dirname_result="${3}" ;;
  13797. esac
  13798. }
  13799. # func_basename file
  13800. func_basename ()
  13801. {
  13802. func_basename_result="${1##*/}"
  13803. }
  13804. # func_dirname_and_basename file append nondir_replacement
  13805. # perform func_basename and func_dirname in a single function
  13806. # call:
  13807. # dirname: Compute the dirname of FILE. If nonempty,
  13808. # add APPEND to the result, otherwise set result
  13809. # to NONDIR_REPLACEMENT.
  13810. # value returned in "$func_dirname_result"
  13811. # basename: Compute filename of FILE.
  13812. # value retuned in "$func_basename_result"
  13813. # Implementation must be kept synchronized with func_dirname
  13814. # and func_basename. For efficiency, we do not delegate to
  13815. # those functions but instead duplicate the functionality here.
  13816. func_dirname_and_basename ()
  13817. {
  13818. case ${1} in
  13819. */*) func_dirname_result="${1%/*}${2}" ;;
  13820. * ) func_dirname_result="${3}" ;;
  13821. esac
  13822. func_basename_result="${1##*/}"
  13823. }
  13824. # func_stripname prefix suffix name
  13825. # strip PREFIX and SUFFIX off of NAME.
  13826. # PREFIX and SUFFIX must not contain globbing or regex special
  13827. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13828. # dot (in which case that matches only a dot).
  13829. func_stripname ()
  13830. {
  13831. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  13832. # positional parameters, so assign one to ordinary parameter first.
  13833. func_stripname_result=${3}
  13834. func_stripname_result=${func_stripname_result#"${1}"}
  13835. func_stripname_result=${func_stripname_result%"${2}"}
  13836. }
  13837. # func_opt_split
  13838. func_opt_split ()
  13839. {
  13840. func_opt_split_opt=${1%%=*}
  13841. func_opt_split_arg=${1#*=}
  13842. }
  13843. # func_lo2o object
  13844. func_lo2o ()
  13845. {
  13846. case ${1} in
  13847. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  13848. *) func_lo2o_result=${1} ;;
  13849. esac
  13850. }
  13851. # func_xform libobj-or-source
  13852. func_xform ()
  13853. {
  13854. func_xform_result=${1%.*}.lo
  13855. }
  13856. # func_arith arithmetic-term...
  13857. func_arith ()
  13858. {
  13859. func_arith_result=$(( $* ))
  13860. }
  13861. # func_len string
  13862. # STRING may not start with a hyphen.
  13863. func_len ()
  13864. {
  13865. func_len_result=${#1}
  13866. }
  13867. _LT_EOF
  13868. ;;
  13869. *) # Bourne compatible functions.
  13870. cat << \_LT_EOF >> "$cfgfile"
  13871. # func_dirname file append nondir_replacement
  13872. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13873. # otherwise set result to NONDIR_REPLACEMENT.
  13874. func_dirname ()
  13875. {
  13876. # Extract subdirectory from the argument.
  13877. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  13878. if test "X$func_dirname_result" = "X${1}"; then
  13879. func_dirname_result="${3}"
  13880. else
  13881. func_dirname_result="$func_dirname_result${2}"
  13882. fi
  13883. }
  13884. # func_basename file
  13885. func_basename ()
  13886. {
  13887. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  13888. }
  13889. # func_stripname prefix suffix name
  13890. # strip PREFIX and SUFFIX off of NAME.
  13891. # PREFIX and SUFFIX must not contain globbing or regex special
  13892. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13893. # dot (in which case that matches only a dot).
  13894. # func_strip_suffix prefix name
  13895. func_stripname ()
  13896. {
  13897. case ${2} in
  13898. .*) func_stripname_result=`$ECHO "X${3}" \
  13899. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  13900. *) func_stripname_result=`$ECHO "X${3}" \
  13901. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  13902. esac
  13903. }
  13904. # sed scripts:
  13905. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  13906. my_sed_long_arg='1s/^-[^=]*=//'
  13907. # func_opt_split
  13908. func_opt_split ()
  13909. {
  13910. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  13911. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  13912. }
  13913. # func_lo2o object
  13914. func_lo2o ()
  13915. {
  13916. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  13917. }
  13918. # func_xform libobj-or-source
  13919. func_xform ()
  13920. {
  13921. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  13922. }
  13923. # func_arith arithmetic-term...
  13924. func_arith ()
  13925. {
  13926. func_arith_result=`expr "$@"`
  13927. }
  13928. # func_len string
  13929. # STRING may not start with a hyphen.
  13930. func_len ()
  13931. {
  13932. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  13933. }
  13934. _LT_EOF
  13935. esac
  13936. case $lt_shell_append in
  13937. yes)
  13938. cat << \_LT_EOF >> "$cfgfile"
  13939. # func_append var value
  13940. # Append VALUE to the end of shell variable VAR.
  13941. func_append ()
  13942. {
  13943. eval "$1+=\$2"
  13944. }
  13945. _LT_EOF
  13946. ;;
  13947. *)
  13948. cat << \_LT_EOF >> "$cfgfile"
  13949. # func_append var value
  13950. # Append VALUE to the end of shell variable VAR.
  13951. func_append ()
  13952. {
  13953. eval "$1=\$$1\$2"
  13954. }
  13955. _LT_EOF
  13956. ;;
  13957. esac
  13958. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  13959. || (rm -f "$cfgfile"; exit 1)
  13960. mv -f "$cfgfile" "$ofile" ||
  13961. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13962. chmod +x "$ofile"
  13963. ;;
  13964. esac
  13965. done # for ac_tag
  13966. { (exit 0); exit 0; }
  13967. _ACEOF
  13968. chmod +x $CONFIG_STATUS
  13969. ac_clean_files=$ac_clean_files_save
  13970. test $ac_write_fail = 0 ||
  13971. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  13972. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  13973. { (exit 1); exit 1; }; }
  13974. # configure is writing to config.log, and then calls config.status.
  13975. # config.status does its own redirection, appending to config.log.
  13976. # Unfortunately, on DOS this fails, as config.log is still kept open
  13977. # by configure, so config.status won't be able to write to it; its
  13978. # output is simply discarded. So we exec the FD to /dev/null,
  13979. # effectively closing config.log, so it can be properly (re)opened and
  13980. # appended to by config.status. When coming back to configure, we
  13981. # need to make the FD available again.
  13982. if test "$no_create" != yes; then
  13983. ac_cs_success=:
  13984. ac_config_status_args=
  13985. test "$silent" = yes &&
  13986. ac_config_status_args="$ac_config_status_args --quiet"
  13987. exec 5>/dev/null
  13988. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13989. exec 5>>config.log
  13990. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13991. # would make configure fail if this is the last instruction.
  13992. $ac_cs_success || { (exit 1); exit 1; }
  13993. fi
  13994. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13995. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13996. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13997. fi
  13998. EXP_VAR=LIBDIR
  13999. FROM_VAR=${libdir}
  14000. prefix_save=$prefix
  14001. exec_prefix_save=$exec_prefix
  14002. if test "x$prefix" = "xNONE"; then
  14003. prefix="$ac_default_prefix"
  14004. fi
  14005. if test "x$exec_prefix" = "xNONE"; then
  14006. exec_prefix=$prefix
  14007. fi
  14008. full_var="$FROM_VAR"
  14009. while true; do
  14010. new_full_var="`eval echo $full_var`"
  14011. if test "x$new_full_var" = "x$full_var"; then break; fi
  14012. full_var=$new_full_var
  14013. done
  14014. full_var=$new_full_var
  14015. LIBDIR="$full_var"
  14016. prefix=$prefix_save
  14017. exec_prefix=$exec_prefix_save
  14018. EXP_VAR=INCLUDEDIR
  14019. FROM_VAR=${includedir}
  14020. prefix_save=$prefix
  14021. exec_prefix_save=$exec_prefix
  14022. if test "x$prefix" = "xNONE"; then
  14023. prefix="$ac_default_prefix"
  14024. fi
  14025. if test "x$exec_prefix" = "xNONE"; then
  14026. exec_prefix=$prefix
  14027. fi
  14028. full_var="$FROM_VAR"
  14029. while true; do
  14030. new_full_var="`eval echo $full_var`"
  14031. if test "x$new_full_var" = "x$full_var"; then break; fi
  14032. full_var=$new_full_var
  14033. done
  14034. full_var=$new_full_var
  14035. INCLUDEDIR="$full_var"
  14036. prefix=$prefix_save
  14037. exec_prefix=$exec_prefix_save
  14038. EXP_VAR=BINDIR
  14039. FROM_VAR=${bindir}
  14040. prefix_save=$prefix
  14041. exec_prefix_save=$exec_prefix
  14042. if test "x$prefix" = "xNONE"; then
  14043. prefix="$ac_default_prefix"
  14044. fi
  14045. if test "x$exec_prefix" = "xNONE"; then
  14046. exec_prefix=$prefix
  14047. fi
  14048. full_var="$FROM_VAR"
  14049. while true; do
  14050. new_full_var="`eval echo $full_var`"
  14051. if test "x$new_full_var" = "x$full_var"; then break; fi
  14052. full_var=$new_full_var
  14053. done
  14054. full_var=$new_full_var
  14055. BINDIR="$full_var"
  14056. prefix=$prefix_save
  14057. exec_prefix=$exec_prefix_save
  14058. EXP_VAR=DOCDIR
  14059. FROM_VAR=${datadir}/doc
  14060. prefix_save=$prefix
  14061. exec_prefix_save=$exec_prefix
  14062. if test "x$prefix" = "xNONE"; then
  14063. prefix="$ac_default_prefix"
  14064. fi
  14065. if test "x$exec_prefix" = "xNONE"; then
  14066. exec_prefix=$prefix
  14067. fi
  14068. full_var="$FROM_VAR"
  14069. while true; do
  14070. new_full_var="`eval echo $full_var`"
  14071. if test "x$new_full_var" = "x$full_var"; then break; fi
  14072. full_var=$new_full_var
  14073. done
  14074. full_var=$new_full_var
  14075. DOCDIR="$full_var"
  14076. prefix=$prefix_save
  14077. exec_prefix=$exec_prefix_save
  14078. if test $HAVE_DOXYGEN = "false"; then
  14079. doc_build="no"
  14080. else
  14081. doc_build="yes"
  14082. fi
  14083. if test $BUILD_SPEC = "false"; then
  14084. spec_build="no"
  14085. else
  14086. spec_build="yes"
  14087. fi
  14088. { $as_echo "$as_me:$LINENO: result:
  14089. ------------------------------------------------------------------------
  14090. $PACKAGE $VERSION: Automatic configuration OK.
  14091. General configuration:
  14092. Encoding support: ........... ${ac_enable_encode}
  14093. Floating point support: ..... ${ac_enable_float}
  14094. Assembly optimization: ...... ${cpu_optimization}
  14095. Debugging telemetry: ........ ${ac_enable_telemetry}
  14096. Build example code: ......... ${ac_enable_examples}
  14097. API Documentation: .......... ${doc_build}
  14098. Format Documentation: ....... ${spec_build}
  14099. Installation paths:
  14100. libtheora: ................... ${LIBDIR}
  14101. C header files: .............. ${INCLUDEDIR}/theora
  14102. Documentation: ............... ${DOCDIR}/$PACKAGE
  14103. Building:
  14104. Type 'make' to compile $PACKAGE.
  14105. Type 'make install' to install $PACKAGE.
  14106. ${TESTS_INFO}
  14107. Example programs will be built but not installed.
  14108. ------------------------------------------------------------------------
  14109. " >&5
  14110. $as_echo "
  14111. ------------------------------------------------------------------------
  14112. $PACKAGE $VERSION: Automatic configuration OK.
  14113. General configuration:
  14114. Encoding support: ........... ${ac_enable_encode}
  14115. Floating point support: ..... ${ac_enable_float}
  14116. Assembly optimization: ...... ${cpu_optimization}
  14117. Debugging telemetry: ........ ${ac_enable_telemetry}
  14118. Build example code: ......... ${ac_enable_examples}
  14119. API Documentation: .......... ${doc_build}
  14120. Format Documentation: ....... ${spec_build}
  14121. Installation paths:
  14122. libtheora: ................... ${LIBDIR}
  14123. C header files: .............. ${INCLUDEDIR}/theora
  14124. Documentation: ............... ${DOCDIR}/$PACKAGE
  14125. Building:
  14126. Type 'make' to compile $PACKAGE.
  14127. Type 'make install' to install $PACKAGE.
  14128. ${TESTS_INFO}
  14129. Example programs will be built but not installed.
  14130. ------------------------------------------------------------------------
  14131. " >&6; }