configure 578 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for mpg123 1.15.3.
  4. #
  5. # Report bugs to <[email protected]>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  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. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  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. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] and
  259. $0: [email protected] about your system,
  260. $0: including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='mpg123'
  542. PACKAGE_TARNAME='mpg123'
  543. PACKAGE_VERSION='1.15.3'
  544. PACKAGE_STRING='mpg123 1.15.3'
  545. PACKAGE_BUGREPORT='[email protected]'
  546. PACKAGE_URL=''
  547. ac_unique_file="src/mpg123.c"
  548. ac_unique_file="doc"
  549. # Factoring default headers for most tests.
  550. ac_includes_default="\
  551. #include <stdio.h>
  552. #ifdef HAVE_SYS_TYPES_H
  553. # include <sys/types.h>
  554. #endif
  555. #ifdef HAVE_SYS_STAT_H
  556. # include <sys/stat.h>
  557. #endif
  558. #ifdef STDC_HEADERS
  559. # include <stdlib.h>
  560. # include <stddef.h>
  561. #else
  562. # ifdef HAVE_STDLIB_H
  563. # include <stdlib.h>
  564. # endif
  565. #endif
  566. #ifdef HAVE_STRING_H
  567. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  568. # include <memory.h>
  569. # endif
  570. # include <string.h>
  571. #endif
  572. #ifdef HAVE_STRINGS_H
  573. # include <strings.h>
  574. #endif
  575. #ifdef HAVE_INTTYPES_H
  576. # include <inttypes.h>
  577. #endif
  578. #ifdef HAVE_STDINT_H
  579. # include <stdint.h>
  580. #endif
  581. #ifdef HAVE_UNISTD_H
  582. # include <unistd.h>
  583. #endif"
  584. ac_header_list=
  585. ac_subst_vars='am__EXEEXT_FALSE
  586. am__EXEEXT_TRUE
  587. LTLIBOBJS
  588. LIBOBJS
  589. WIN32_CODES_FALSE
  590. WIN32_CODES_TRUE
  591. OUTPUT_LDFLAGS
  592. OUTPUT_LIBS
  593. OUTPUT_CFLAGS
  594. OUTPUT_MOD
  595. OUTPUT_OBJ
  596. HAVE_DUMMY_FALSE
  597. HAVE_DUMMY_TRUE
  598. DUMMY_CFLAGS
  599. DUMMY_LDFLAGS
  600. DUMMY_LIBS
  601. HAVE_OPENAL_FALSE
  602. HAVE_OPENAL_TRUE
  603. OPENAL_CFLAGS
  604. OPENAL_LDFLAGS
  605. OPENAL_LIBS
  606. HAVE_MINT_FALSE
  607. HAVE_MINT_TRUE
  608. MINT_CFLAGS
  609. MINT_LDFLAGS
  610. MINT_LIBS
  611. HAVE_SGI_FALSE
  612. HAVE_SGI_TRUE
  613. SGI_CFLAGS
  614. SGI_LDFLAGS
  615. SGI_LIBS
  616. HAVE_OS2_FALSE
  617. HAVE_OS2_TRUE
  618. OS2_CFLAGS
  619. OS2_LDFLAGS
  620. OS2_LIBS
  621. HAVE_HP_FALSE
  622. HAVE_HP_TRUE
  623. HP_CFLAGS
  624. HP_LDFLAGS
  625. HP_LIBS
  626. HAVE_ARTS_FALSE
  627. HAVE_ARTS_TRUE
  628. ARTS_CFLAGS
  629. ARTS_LDFLAGS
  630. ARTS_LIBS
  631. HAVE_ALIB_FALSE
  632. HAVE_ALIB_TRUE
  633. ALIB_CFLAGS
  634. ALIB_LDFLAGS
  635. ALIB_LIBS
  636. HAVE_AIX_FALSE
  637. HAVE_AIX_TRUE
  638. AIX_CFLAGS
  639. AIX_LDFLAGS
  640. AIX_LIBS
  641. HAVE_NAS_FALSE
  642. HAVE_NAS_TRUE
  643. NAS_CFLAGS
  644. NAS_LDFLAGS
  645. NAS_LIBS
  646. HAVE_SDL_FALSE
  647. HAVE_SDL_TRUE
  648. SDL_LDFLAGS
  649. HAVE_PULSE_FALSE
  650. HAVE_PULSE_TRUE
  651. PULSE_LDFLAGS
  652. HAVE_PORTAUDIO_FALSE
  653. HAVE_PORTAUDIO_TRUE
  654. PORTAUDIO_CFLAGS
  655. PORTAUDIO_LDFLAGS
  656. PORTAUDIO_LIBS
  657. HAVE_JACK_FALSE
  658. HAVE_JACK_TRUE
  659. JACK_LDFLAGS
  660. HAVE_ESD_FALSE
  661. HAVE_ESD_TRUE
  662. ESD_LDFLAGS
  663. HAVE_WIN32_FALSE
  664. HAVE_WIN32_TRUE
  665. WIN32_CFLAGS
  666. WIN32_LDFLAGS
  667. WIN32_LIBS
  668. HAVE_SUN_FALSE
  669. HAVE_SUN_TRUE
  670. SUN_CFLAGS
  671. SUN_LDFLAGS
  672. SUN_LIBS
  673. HAVE_SNDIO_FALSE
  674. HAVE_SNDIO_TRUE
  675. SNDIO_CFLAGS
  676. SNDIO_LDFLAGS
  677. SNDIO_LIBS
  678. HAVE_COREAUDIO_FALSE
  679. HAVE_COREAUDIO_TRUE
  680. COREAUDIO_CFLAGS
  681. COREAUDIO_LDFLAGS
  682. COREAUDIO_LIBS
  683. HAVE_OSS_FALSE
  684. HAVE_OSS_TRUE
  685. OSS_CFLAGS
  686. OSS_LDFLAGS
  687. OSS_LIBS
  688. HAVE_QSA_FALSE
  689. HAVE_QSA_TRUE
  690. QSA_CFLAGS
  691. QSA_LDFLAGS
  692. QSA_LIBS
  693. HAVE_ALSA_FALSE
  694. HAVE_ALSA_TRUE
  695. ALSA_CFLAGS
  696. ALSA_LDFLAGS
  697. ALSA_LIBS
  698. SDL_LIBS
  699. SDL_CFLAGS
  700. ESD_LIBS
  701. ESD_CFLAGS
  702. PULSE_LIBS
  703. PULSE_CFLAGS
  704. JACK_LIBS
  705. JACK_CFLAGS
  706. PKG_CONFIG
  707. DECODER_LOBJ
  708. DECODER_OBJ
  709. INCLUDE_SYS_TYPE_H
  710. INCLUDE_STDLIB_H
  711. INCLUDE_STDIO_H
  712. LFS_LOBJ
  713. EXEC_LT_LDFLAGS
  714. LT_LDFLAGS
  715. MODULE_OBJ
  716. HAVE_MODULES_FALSE
  717. HAVE_MODULES_TRUE
  718. OTOOL64
  719. OTOOL
  720. LIPO
  721. NMEDIT
  722. DSYMUTIL
  723. MANIFEST_TOOL
  724. RANLIB
  725. ac_ct_AR
  726. AR
  727. LN_S
  728. NM
  729. ac_ct_DUMPBIN
  730. DUMPBIN
  731. LD
  732. FGREP
  733. SED
  734. LIBTOOL
  735. OBJDUMP
  736. DLLTOOL
  737. AS
  738. EGREP
  739. GREP
  740. CPP
  741. am__fastdepCCAS_FALSE
  742. am__fastdepCCAS_TRUE
  743. CCASDEPMODE
  744. CCASFLAGS
  745. CCAS
  746. am__fastdepCC_FALSE
  747. am__fastdepCC_TRUE
  748. CCDEPMODE
  749. am__nodep
  750. AMDEPBACKSLASH
  751. AMDEP_FALSE
  752. AMDEP_TRUE
  753. am__quote
  754. am__include
  755. DEPDIR
  756. OBJEXT
  757. EXEEXT
  758. ac_ct_CC
  759. CPPFLAGS
  760. LDFLAGS
  761. CFLAGS
  762. CC
  763. am__untar
  764. am__tar
  765. AMTAR
  766. am__leading_dot
  767. SET_MAKE
  768. AWK
  769. mkdir_p
  770. MKDIR_P
  771. INSTALL_STRIP_PROGRAM
  772. STRIP
  773. install_sh
  774. MAKEINFO
  775. AUTOHEADER
  776. AUTOMAKE
  777. AUTOCONF
  778. ACLOCAL
  779. VERSION
  780. PACKAGE
  781. CYGPATH_W
  782. am__isrc
  783. INSTALL_DATA
  784. INSTALL_SCRIPT
  785. INSTALL_PROGRAM
  786. host_os
  787. host_vendor
  788. host_cpu
  789. host
  790. build_os
  791. build_vendor
  792. build_cpu
  793. build
  794. API_VERSION
  795. LIBMPG123_VERSION
  796. target_alias
  797. host_alias
  798. build_alias
  799. LIBS
  800. ECHO_T
  801. ECHO_N
  802. ECHO_C
  803. DEFS
  804. mandir
  805. localedir
  806. libdir
  807. psdir
  808. pdfdir
  809. dvidir
  810. htmldir
  811. infodir
  812. docdir
  813. oldincludedir
  814. includedir
  815. localstatedir
  816. sharedstatedir
  817. sysconfdir
  818. datadir
  819. datarootdir
  820. libexecdir
  821. sbindir
  822. bindir
  823. program_transform_name
  824. prefix
  825. exec_prefix
  826. PACKAGE_URL
  827. PACKAGE_BUGREPORT
  828. PACKAGE_STRING
  829. PACKAGE_VERSION
  830. PACKAGE_TARNAME
  831. PACKAGE_NAME
  832. PATH_SEPARATOR
  833. SHELL'
  834. ac_subst_files=''
  835. ac_user_opts='
  836. enable_option_checking
  837. enable_dependency_tracking
  838. enable_modules
  839. enable_static
  840. enable_shared
  841. with_pic
  842. enable_fast_install
  843. with_gnu_ld
  844. with_sysroot
  845. enable_libtool_lock
  846. enable_debug
  847. enable_nagging
  848. enable_gapless
  849. enable_fifo
  850. enable_ipv6
  851. enable_network
  852. enable_id3v2
  853. enable_string
  854. enable_icy
  855. enable_ntom
  856. enable_downsample
  857. enable_feeder
  858. enable_messages
  859. enable_int_quality
  860. enable_16bit
  861. enable_8bit
  862. enable_32bit
  863. enable_real
  864. with_cpu
  865. enable_buffer
  866. enable_newoldwritesample
  867. enable_layer1
  868. enable_layer2
  869. enable_layer3
  870. with_audio
  871. with_default_audio
  872. with_optimization
  873. with_seektable
  874. with_module_suffix
  875. enable_largefile
  876. enable_lfs_alias
  877. enable_feature_report
  878. '
  879. ac_precious_vars='build_alias
  880. host_alias
  881. target_alias
  882. CC
  883. CFLAGS
  884. LDFLAGS
  885. LIBS
  886. CPPFLAGS
  887. CCAS
  888. CCASFLAGS
  889. CPP
  890. PKG_CONFIG
  891. JACK_CFLAGS
  892. JACK_LIBS
  893. PULSE_CFLAGS
  894. PULSE_LIBS
  895. ESD_CFLAGS
  896. ESD_LIBS
  897. SDL_CFLAGS
  898. SDL_LIBS'
  899. # Initialize some variables set by options.
  900. ac_init_help=
  901. ac_init_version=false
  902. ac_unrecognized_opts=
  903. ac_unrecognized_sep=
  904. # The variables have the same names as the options, with
  905. # dashes changed to underlines.
  906. cache_file=/dev/null
  907. exec_prefix=NONE
  908. no_create=
  909. no_recursion=
  910. prefix=NONE
  911. program_prefix=NONE
  912. program_suffix=NONE
  913. program_transform_name=s,x,x,
  914. silent=
  915. site=
  916. srcdir=
  917. verbose=
  918. x_includes=NONE
  919. x_libraries=NONE
  920. # Installation directory options.
  921. # These are left unexpanded so users can "make install exec_prefix=/foo"
  922. # and all the variables that are supposed to be based on exec_prefix
  923. # by default will actually change.
  924. # Use braces instead of parens because sh, perl, etc. also accept them.
  925. # (The list follows the same order as the GNU Coding Standards.)
  926. bindir='${exec_prefix}/bin'
  927. sbindir='${exec_prefix}/sbin'
  928. libexecdir='${exec_prefix}/libexec'
  929. datarootdir='${prefix}/share'
  930. datadir='${datarootdir}'
  931. sysconfdir='${prefix}/etc'
  932. sharedstatedir='${prefix}/com'
  933. localstatedir='${prefix}/var'
  934. includedir='${prefix}/include'
  935. oldincludedir='/usr/include'
  936. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  937. infodir='${datarootdir}/info'
  938. htmldir='${docdir}'
  939. dvidir='${docdir}'
  940. pdfdir='${docdir}'
  941. psdir='${docdir}'
  942. libdir='${exec_prefix}/lib'
  943. localedir='${datarootdir}/locale'
  944. mandir='${datarootdir}/man'
  945. ac_prev=
  946. ac_dashdash=
  947. for ac_option
  948. do
  949. # If the previous option needs an argument, assign it.
  950. if test -n "$ac_prev"; then
  951. eval $ac_prev=\$ac_option
  952. ac_prev=
  953. continue
  954. fi
  955. case $ac_option in
  956. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  957. *=) ac_optarg= ;;
  958. *) ac_optarg=yes ;;
  959. esac
  960. # Accept the important Cygnus configure options, so we can diagnose typos.
  961. case $ac_dashdash$ac_option in
  962. --)
  963. ac_dashdash=yes ;;
  964. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  965. ac_prev=bindir ;;
  966. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  967. bindir=$ac_optarg ;;
  968. -build | --build | --buil | --bui | --bu)
  969. ac_prev=build_alias ;;
  970. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  971. build_alias=$ac_optarg ;;
  972. -cache-file | --cache-file | --cache-fil | --cache-fi \
  973. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  974. ac_prev=cache_file ;;
  975. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  976. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  977. cache_file=$ac_optarg ;;
  978. --config-cache | -C)
  979. cache_file=config.cache ;;
  980. -datadir | --datadir | --datadi | --datad)
  981. ac_prev=datadir ;;
  982. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  983. datadir=$ac_optarg ;;
  984. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  985. | --dataroo | --dataro | --datar)
  986. ac_prev=datarootdir ;;
  987. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  988. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  989. datarootdir=$ac_optarg ;;
  990. -disable-* | --disable-*)
  991. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  992. # Reject names that are not valid shell variable names.
  993. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  994. as_fn_error $? "invalid feature name: $ac_useropt"
  995. ac_useropt_orig=$ac_useropt
  996. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  997. case $ac_user_opts in
  998. *"
  999. "enable_$ac_useropt"
  1000. "*) ;;
  1001. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1002. ac_unrecognized_sep=', ';;
  1003. esac
  1004. eval enable_$ac_useropt=no ;;
  1005. -docdir | --docdir | --docdi | --doc | --do)
  1006. ac_prev=docdir ;;
  1007. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1008. docdir=$ac_optarg ;;
  1009. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1010. ac_prev=dvidir ;;
  1011. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1012. dvidir=$ac_optarg ;;
  1013. -enable-* | --enable-*)
  1014. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1015. # Reject names that are not valid shell variable names.
  1016. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1017. as_fn_error $? "invalid feature name: $ac_useropt"
  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_fn_error $? "invalid package name: $ac_useropt"
  1190. ac_useropt_orig=$ac_useropt
  1191. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1192. case $ac_user_opts in
  1193. *"
  1194. "with_$ac_useropt"
  1195. "*) ;;
  1196. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1197. ac_unrecognized_sep=', ';;
  1198. esac
  1199. eval with_$ac_useropt=\$ac_optarg ;;
  1200. -without-* | --without-*)
  1201. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1202. # Reject names that are not valid shell variable names.
  1203. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1204. as_fn_error $? "invalid package name: $ac_useropt"
  1205. ac_useropt_orig=$ac_useropt
  1206. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1207. case $ac_user_opts in
  1208. *"
  1209. "with_$ac_useropt"
  1210. "*) ;;
  1211. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1212. ac_unrecognized_sep=', ';;
  1213. esac
  1214. eval with_$ac_useropt=no ;;
  1215. --x)
  1216. # Obsolete; use --with-x.
  1217. with_x=yes ;;
  1218. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1219. | --x-incl | --x-inc | --x-in | --x-i)
  1220. ac_prev=x_includes ;;
  1221. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1222. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1223. x_includes=$ac_optarg ;;
  1224. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1225. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1226. ac_prev=x_libraries ;;
  1227. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1228. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1229. x_libraries=$ac_optarg ;;
  1230. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1231. Try \`$0 --help' for more information"
  1232. ;;
  1233. *=*)
  1234. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1235. # Reject names that are not valid shell variable names.
  1236. case $ac_envvar in #(
  1237. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1238. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1239. esac
  1240. eval $ac_envvar=\$ac_optarg
  1241. export $ac_envvar ;;
  1242. *)
  1243. # FIXME: should be removed in autoconf 3.0.
  1244. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1245. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1246. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1247. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1248. ;;
  1249. esac
  1250. done
  1251. if test -n "$ac_prev"; then
  1252. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1253. as_fn_error $? "missing argument to $ac_option"
  1254. fi
  1255. if test -n "$ac_unrecognized_opts"; then
  1256. case $enable_option_checking in
  1257. no) ;;
  1258. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1259. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1260. esac
  1261. fi
  1262. # Check all directory arguments for consistency.
  1263. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1264. datadir sysconfdir sharedstatedir localstatedir includedir \
  1265. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1266. libdir localedir mandir
  1267. do
  1268. eval ac_val=\$$ac_var
  1269. # Remove trailing slashes.
  1270. case $ac_val in
  1271. */ )
  1272. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1273. eval $ac_var=\$ac_val;;
  1274. esac
  1275. # Be sure to have absolute directory names.
  1276. case $ac_val in
  1277. [\\/$]* | ?:[\\/]* ) continue;;
  1278. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1279. esac
  1280. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1281. done
  1282. # There might be people who depend on the old broken behavior: `$host'
  1283. # used to hold the argument of --host etc.
  1284. # FIXME: To remove some day.
  1285. build=$build_alias
  1286. host=$host_alias
  1287. target=$target_alias
  1288. # FIXME: To remove some day.
  1289. if test "x$host_alias" != x; then
  1290. if test "x$build_alias" = x; then
  1291. cross_compiling=maybe
  1292. elif test "x$build_alias" != "x$host_alias"; then
  1293. cross_compiling=yes
  1294. fi
  1295. fi
  1296. ac_tool_prefix=
  1297. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1298. test "$silent" = yes && exec 6>/dev/null
  1299. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1300. ac_ls_di=`ls -di .` &&
  1301. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1302. as_fn_error $? "working directory cannot be determined"
  1303. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1304. as_fn_error $? "pwd does not report name of working directory"
  1305. # Find the source files, if location was not specified.
  1306. if test -z "$srcdir"; then
  1307. ac_srcdir_defaulted=yes
  1308. # Try the directory containing this script, then the parent directory.
  1309. ac_confdir=`$as_dirname -- "$as_myself" ||
  1310. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1311. X"$as_myself" : 'X\(//\)[^/]' \| \
  1312. X"$as_myself" : 'X\(//\)$' \| \
  1313. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1314. $as_echo X"$as_myself" |
  1315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1316. s//\1/
  1317. q
  1318. }
  1319. /^X\(\/\/\)[^/].*/{
  1320. s//\1/
  1321. q
  1322. }
  1323. /^X\(\/\/\)$/{
  1324. s//\1/
  1325. q
  1326. }
  1327. /^X\(\/\).*/{
  1328. s//\1/
  1329. q
  1330. }
  1331. s/.*/./; q'`
  1332. srcdir=$ac_confdir
  1333. if test ! -r "$srcdir/$ac_unique_file"; then
  1334. srcdir=..
  1335. fi
  1336. else
  1337. ac_srcdir_defaulted=no
  1338. fi
  1339. if test ! -r "$srcdir/$ac_unique_file"; then
  1340. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1341. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1342. fi
  1343. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1344. ac_abs_confdir=`(
  1345. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1346. pwd)`
  1347. # When building in place, set srcdir=.
  1348. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1349. srcdir=.
  1350. fi
  1351. # Remove unnecessary trailing slashes from srcdir.
  1352. # Double slashes in file names in object file debugging info
  1353. # mess up M-x gdb in Emacs.
  1354. case $srcdir in
  1355. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1356. esac
  1357. for ac_var in $ac_precious_vars; do
  1358. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1359. eval ac_env_${ac_var}_value=\$${ac_var}
  1360. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1361. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1362. done
  1363. #
  1364. # Report the --help message.
  1365. #
  1366. if test "$ac_init_help" = "long"; then
  1367. # Omit some internal or obsolete options to make the list less imposing.
  1368. # This message is too long to be a string in the A/UX 3.1 sh.
  1369. cat <<_ACEOF
  1370. \`configure' configures mpg123 1.15.3 to adapt to many kinds of systems.
  1371. Usage: $0 [OPTION]... [VAR=VALUE]...
  1372. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1373. VAR=VALUE. See below for descriptions of some of the useful variables.
  1374. Defaults for the options are specified in brackets.
  1375. Configuration:
  1376. -h, --help display this help and exit
  1377. --help=short display options specific to this package
  1378. --help=recursive display the short help of all the included packages
  1379. -V, --version display version information and exit
  1380. -q, --quiet, --silent do not print \`checking ...' messages
  1381. --cache-file=FILE cache test results in FILE [disabled]
  1382. -C, --config-cache alias for \`--cache-file=config.cache'
  1383. -n, --no-create do not create output files
  1384. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1385. Installation directories:
  1386. --prefix=PREFIX install architecture-independent files in PREFIX
  1387. [$ac_default_prefix]
  1388. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1389. [PREFIX]
  1390. By default, \`make install' will install all the files in
  1391. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1392. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1393. for instance \`--prefix=\$HOME'.
  1394. For better control, use the options below.
  1395. Fine tuning of the installation directories:
  1396. --bindir=DIR user executables [EPREFIX/bin]
  1397. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1398. --libexecdir=DIR program executables [EPREFIX/libexec]
  1399. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1400. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1401. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1402. --libdir=DIR object code libraries [EPREFIX/lib]
  1403. --includedir=DIR C header files [PREFIX/include]
  1404. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1405. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1406. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1407. --infodir=DIR info documentation [DATAROOTDIR/info]
  1408. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1409. --mandir=DIR man documentation [DATAROOTDIR/man]
  1410. --docdir=DIR documentation root [DATAROOTDIR/doc/mpg123]
  1411. --htmldir=DIR html documentation [DOCDIR]
  1412. --dvidir=DIR dvi documentation [DOCDIR]
  1413. --pdfdir=DIR pdf documentation [DOCDIR]
  1414. --psdir=DIR ps documentation [DOCDIR]
  1415. _ACEOF
  1416. cat <<\_ACEOF
  1417. Program names:
  1418. --program-prefix=PREFIX prepend PREFIX to installed program names
  1419. --program-suffix=SUFFIX append SUFFIX to installed program names
  1420. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1421. System types:
  1422. --build=BUILD configure for building on BUILD [guessed]
  1423. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1424. _ACEOF
  1425. fi
  1426. if test -n "$ac_init_help"; then
  1427. case $ac_init_help in
  1428. short | recursive ) echo "Configuration of mpg123 1.15.3:";;
  1429. esac
  1430. cat <<\_ACEOF
  1431. Optional Features:
  1432. --disable-option-checking ignore unrecognized --enable/--with options
  1433. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1434. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1435. --enable-dependency-tracking
  1436. do not reject slow dependency extractors
  1437. --disable-dependency-tracking
  1438. speeds up one-time build
  1439. --enable-modules=no/yes dynamically loadable output modules
  1440. --enable-static[=PKGS] build static libraries [default=no]
  1441. --enable-shared[=PKGS] build shared libraries [default=yes]
  1442. --enable-fast-install[=PKGS]
  1443. optimize for fast installation [default=yes]
  1444. --disable-libtool-lock avoid locking (might break parallel builds)
  1445. --enable-debug=no/yes turn on debugging
  1446. --enable-nagging=no/yes turn on GCC's pedantic nagging with error on warnings, also enables debugging
  1447. --enable-gapless=no/yes turn on gapless (enabled per default)
  1448. --enable-fifo=no/yes FIFO support for control interface (auto-enabled on linux)
  1449. --enable-ipv6=no/yes IPv6 support (actually any protocol your libc does with getaddrinfo)
  1450. --enable-network=no/yes network support (http streams / webradio)
  1451. --disable-id3v2=no/yes no ID3v2 parsing
  1452. --disable-string=no/yes no string API (this will disable ID3v2; main mpg123 won't build anymore)
  1453. --disable-icy=no/yes no ICY metainfo parsing/conversion (main mpg123 won't build!)
  1454. --disable-ntom=no/yes no flexible resampling
  1455. --disable-downsample=no/yes no downsampled decoding
  1456. --disable-feeder=no/yes no feeder decoding, no buffered readers
  1457. --disable-messages=no/yes no error/warning messages on the console
  1458. --enable-int-quality=yes/no use rounding instead of fast truncation for integer output, where possible
  1459. --disable-16bit=no/yes no 16 bit integer output
  1460. --disable-8bit=no/yes no 8 bit integer output
  1461. --disable-32bit=no/yes no 32 bit integer output (also 24 bit)
  1462. --disable-real=no/yes no real (floating point) output
  1463. --enable-buffer=yes/no disable audio buffer code (default uses system whitelist... proper checks later)
  1464. --enable-newoldwritesample=no/yes enable new/old WRITE_SAMPLE macro for non-accurate 16 bit output, faster on certain CPUs (default on on x86-32)
  1465. --disable-layer1=no/yes no layer I decoding
  1466. --disable-layer2=no/yes no layer II decoding
  1467. --disable-layer3=no/yes no layer III decoding
  1468. --disable-largefile omit support for large files
  1469. --disable-lfs-alias disable alias wrappers for largefile bitness (mpg123_seek_32 in addition to mpg123_seek, mpg123_seek_64 as alias on x86-64)
  1470. --disable-feature_report Disable feature report function
  1471. Optional Packages:
  1472. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1473. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1474. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1475. both]
  1476. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1477. --with-sysroot=DIR Search for dependent libraries within DIR
  1478. (or the compiler's sysroot if not specified).
  1479. --with-cpu=generic_fpu Use generic processor code with floating point arithmetic
  1480. --with-cpu=generic_float Plain alias to generic_fpu now... float output is a normal runtime option!
  1481. --with-cpu=generic_nofpu Use generic processor code with fixed point arithmetic (p.ex. ARM, experimental)
  1482. --with-cpu=generic_dither Use generic processor code with floating point arithmetic and dithering for 1to1 16bit decoding.
  1483. --with-cpu=i386_fpu Use code optimized for i386 processors with floating point arithmetic
  1484. --with-cpu=i386_nofpu Use code optimized for i386 processors with fixed point arithmetic (experimental)
  1485. --with-cpu=i486 Use code optimized for i486 processors (only usable alone!)
  1486. --with-cpu=i586 Use code optimized for i586 processors
  1487. --with-cpu=i586_dither Use code optimized for i586 processors with dithering (noise shaping), adds 256K to binary size
  1488. --with-cpu=3dnow Use code optimized for 3DNow processors
  1489. --with-cpu=3dnowext Use code optimized for 3DNowExt processors (K6-3+, Athlon)
  1490. --with-cpu=3dnowext_alone Really only 3DNowExt decoder, without 3DNow fallback for flexible rate
  1491. --with-cpu=mmx Use code optimized for MMX processors
  1492. --with-cpu=mmx_alone Really only MMX decoder, without i586 fallback for flexible rate
  1493. --with-cpu=sse Use code optimized for SSE processors
  1494. --with-cpu=sse_alone Really only SSE decoder, without i586 fallback for flexible rate
  1495. --with-cpu=x86 Pack all x86 opts into one binary (excluding i486, including dither)
  1496. --with-cpu=x86-64 Use code optimized for x86-64 processors (AMD64 and Intel64, including dithered generic)
  1497. --with-cpu=altivec Use code optimized for Altivec processors (PowerPC G4 and G5)
  1498. --with-cpu=ppc_nofpu Use code optimized for PowerPC processors with fixed point arithmetic (experimental)
  1499. --with-cpu=neon Use code optimized for ARM NEON SIMD engine (Cortex-A series)
  1500. --with-cpu=arm_nofpu Use code optimized for ARM processors with fixed point arithmetic (experimental)
  1501. --with-audio=<list of modules> Select a list (or only one) of audio output modules (comma or space separated list).
  1502. --with-default-audio=aix Use AIX as default audio output sub-system
  1503. --with-default-audio=alib Use Alib as default audio output sub-system (for HPUX)
  1504. --with-default-audio=alsa Use ALSA as default audio output sub-system
  1505. --with-default-audio=arts Use aRts as default audio output sub-system (KDE sound server)
  1506. --with-default-audio=dummy Use dummy as default audio (when no sound card is available)
  1507. --with-default-audio=esd Use ESoundD as default audio output sub-system
  1508. --with-default-audio=hp Use HP as default audio output sub-system
  1509. --with-default-audio=jack Use JACK as default low-latency audio server
  1510. --with-default-audio=coreaudio Use Mac OS X as default audio output sub-system (CoreAudio)
  1511. --with-default-audio=mint Use MinT as default audio output sub-system (Atari)
  1512. --with-default-audio=nas Use NAS as default audio output (Network Audio System)
  1513. --with-default-audio=os2 Use OS2 as default audio output sub-system
  1514. --with-default-audio=oss Use OSS as default audio output sub-system (/dev/dsp)
  1515. --with-default-audio=portaudio Use PortAudio as default audio output sub-system
  1516. --with-default-audio=pulse Use Pulse audio server as default audio output sub-system
  1517. --with-default-audio=qsa Use QSA as default audio output sub-system
  1518. --with-default-audio=sdl Use SDL as default audio output sub-system (Simple DirectMedia Layer)
  1519. --with-default-audio=sgi Use SGI as default audio output sub-system (IRIX)
  1520. --with-default-audio=sndio Use OpenBSD's sndio as default audio output sub-system
  1521. --with-default-audio=sun Use Sun as default audio output sub-system (/dev/audio)
  1522. --with-default-audio=win32 Use Win32 audio as default audio output sub-system
  1523. --with-optimization=0 No Optimization
  1524. --with-optimization=1 Limited Optimization (-O) (for gcc)
  1525. --with-optimization=2 Default Optimization (-O2 ...) (for gcc)
  1526. --with-optimization=3 More Optimize than default (-O3 ...) (for gcc)
  1527. --with-optimization=4 Optimize yet more (-O4 ...) (for gcc)
  1528. --with-seektable=<size> choose size of seek index table (0 disables it), default 1000
  1529. --with-module-suffix=.la (default) Use libtool's .la files for loading modules.
  1530. --with-module-suffix=.so|.dll|... Specify the native module file suffix to bypass .la files.
  1531. Some influential environment variables:
  1532. CC C compiler command
  1533. CFLAGS C compiler flags
  1534. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1535. nonstandard directory <lib dir>
  1536. LIBS libraries to pass to the linker, e.g. -l<library>
  1537. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1538. you have headers in a nonstandard directory <include dir>
  1539. CCAS assembler compiler command (defaults to CC)
  1540. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1541. CPP C preprocessor
  1542. PKG_CONFIG path to pkg-config utility
  1543. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1544. JACK_LIBS linker flags for JACK, overriding pkg-config
  1545. PULSE_CFLAGS
  1546. C compiler flags for PULSE, overriding pkg-config
  1547. PULSE_LIBS linker flags for PULSE, overriding pkg-config
  1548. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1549. ESD_LIBS linker flags for ESD, overriding pkg-config
  1550. SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
  1551. SDL_LIBS linker flags for SDL, overriding pkg-config
  1552. Use these variables to override the choices made by `configure' or to help
  1553. it to find libraries and programs with nonstandard names/locations.
  1554. Report bugs to <[email protected]>.
  1555. _ACEOF
  1556. ac_status=$?
  1557. fi
  1558. if test "$ac_init_help" = "recursive"; then
  1559. # If there are subdirs, report their specific --help.
  1560. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1561. test -d "$ac_dir" ||
  1562. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1563. continue
  1564. ac_builddir=.
  1565. case "$ac_dir" in
  1566. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1567. *)
  1568. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1569. # A ".." for each directory in $ac_dir_suffix.
  1570. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1571. case $ac_top_builddir_sub in
  1572. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1573. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1574. esac ;;
  1575. esac
  1576. ac_abs_top_builddir=$ac_pwd
  1577. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1578. # for backward compatibility:
  1579. ac_top_builddir=$ac_top_build_prefix
  1580. case $srcdir in
  1581. .) # We are building in place.
  1582. ac_srcdir=.
  1583. ac_top_srcdir=$ac_top_builddir_sub
  1584. ac_abs_top_srcdir=$ac_pwd ;;
  1585. [\\/]* | ?:[\\/]* ) # Absolute name.
  1586. ac_srcdir=$srcdir$ac_dir_suffix;
  1587. ac_top_srcdir=$srcdir
  1588. ac_abs_top_srcdir=$srcdir ;;
  1589. *) # Relative name.
  1590. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1591. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1592. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1593. esac
  1594. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1595. cd "$ac_dir" || { ac_status=$?; continue; }
  1596. # Check for guested configure.
  1597. if test -f "$ac_srcdir/configure.gnu"; then
  1598. echo &&
  1599. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1600. elif test -f "$ac_srcdir/configure"; then
  1601. echo &&
  1602. $SHELL "$ac_srcdir/configure" --help=recursive
  1603. else
  1604. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1605. fi || ac_status=$?
  1606. cd "$ac_pwd" || { ac_status=$?; break; }
  1607. done
  1608. fi
  1609. test -n "$ac_init_help" && exit $ac_status
  1610. if $ac_init_version; then
  1611. cat <<\_ACEOF
  1612. mpg123 configure 1.15.3
  1613. generated by GNU Autoconf 2.69
  1614. Copyright (C) 2012 Free Software Foundation, Inc.
  1615. This configure script is free software; the Free Software Foundation
  1616. gives unlimited permission to copy, distribute and modify it.
  1617. _ACEOF
  1618. exit
  1619. fi
  1620. ## ------------------------ ##
  1621. ## Autoconf initialization. ##
  1622. ## ------------------------ ##
  1623. # ac_fn_c_try_compile LINENO
  1624. # --------------------------
  1625. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1626. ac_fn_c_try_compile ()
  1627. {
  1628. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1629. rm -f conftest.$ac_objext
  1630. if { { ac_try="$ac_compile"
  1631. case "(($ac_try" in
  1632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1633. *) ac_try_echo=$ac_try;;
  1634. esac
  1635. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1636. $as_echo "$ac_try_echo"; } >&5
  1637. (eval "$ac_compile") 2>conftest.err
  1638. ac_status=$?
  1639. if test -s conftest.err; then
  1640. grep -v '^ *+' conftest.err >conftest.er1
  1641. cat conftest.er1 >&5
  1642. mv -f conftest.er1 conftest.err
  1643. fi
  1644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1645. test $ac_status = 0; } && {
  1646. test -z "$ac_c_werror_flag" ||
  1647. test ! -s conftest.err
  1648. } && test -s conftest.$ac_objext; then :
  1649. ac_retval=0
  1650. else
  1651. $as_echo "$as_me: failed program was:" >&5
  1652. sed 's/^/| /' conftest.$ac_ext >&5
  1653. ac_retval=1
  1654. fi
  1655. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1656. as_fn_set_status $ac_retval
  1657. } # ac_fn_c_try_compile
  1658. # ac_fn_c_try_cpp LINENO
  1659. # ----------------------
  1660. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1661. ac_fn_c_try_cpp ()
  1662. {
  1663. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1664. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1665. case "(($ac_try" in
  1666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1667. *) ac_try_echo=$ac_try;;
  1668. esac
  1669. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1670. $as_echo "$ac_try_echo"; } >&5
  1671. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1672. ac_status=$?
  1673. if test -s conftest.err; then
  1674. grep -v '^ *+' conftest.err >conftest.er1
  1675. cat conftest.er1 >&5
  1676. mv -f conftest.er1 conftest.err
  1677. fi
  1678. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1679. test $ac_status = 0; } > conftest.i && {
  1680. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1681. test ! -s conftest.err
  1682. }; then :
  1683. ac_retval=0
  1684. else
  1685. $as_echo "$as_me: failed program was:" >&5
  1686. sed 's/^/| /' conftest.$ac_ext >&5
  1687. ac_retval=1
  1688. fi
  1689. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1690. as_fn_set_status $ac_retval
  1691. } # ac_fn_c_try_cpp
  1692. # ac_fn_c_try_run LINENO
  1693. # ----------------------
  1694. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1695. # that executables *can* be run.
  1696. ac_fn_c_try_run ()
  1697. {
  1698. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1699. if { { ac_try="$ac_link"
  1700. case "(($ac_try" in
  1701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1702. *) ac_try_echo=$ac_try;;
  1703. esac
  1704. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1705. $as_echo "$ac_try_echo"; } >&5
  1706. (eval "$ac_link") 2>&5
  1707. ac_status=$?
  1708. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1709. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1710. { { case "(($ac_try" in
  1711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1712. *) ac_try_echo=$ac_try;;
  1713. esac
  1714. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1715. $as_echo "$ac_try_echo"; } >&5
  1716. (eval "$ac_try") 2>&5
  1717. ac_status=$?
  1718. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1719. test $ac_status = 0; }; }; then :
  1720. ac_retval=0
  1721. else
  1722. $as_echo "$as_me: program exited with status $ac_status" >&5
  1723. $as_echo "$as_me: failed program was:" >&5
  1724. sed 's/^/| /' conftest.$ac_ext >&5
  1725. ac_retval=$ac_status
  1726. fi
  1727. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1728. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1729. as_fn_set_status $ac_retval
  1730. } # ac_fn_c_try_run
  1731. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1732. # -------------------------------------------------------
  1733. # Tests whether HEADER exists and can be compiled using the include files in
  1734. # INCLUDES, setting the cache variable VAR accordingly.
  1735. ac_fn_c_check_header_compile ()
  1736. {
  1737. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1739. $as_echo_n "checking for $2... " >&6; }
  1740. if eval \${$3+:} false; then :
  1741. $as_echo_n "(cached) " >&6
  1742. else
  1743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1744. /* end confdefs.h. */
  1745. $4
  1746. #include <$2>
  1747. _ACEOF
  1748. if ac_fn_c_try_compile "$LINENO"; then :
  1749. eval "$3=yes"
  1750. else
  1751. eval "$3=no"
  1752. fi
  1753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1754. fi
  1755. eval ac_res=\$$3
  1756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1757. $as_echo "$ac_res" >&6; }
  1758. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1759. } # ac_fn_c_check_header_compile
  1760. # ac_fn_c_try_link LINENO
  1761. # -----------------------
  1762. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1763. ac_fn_c_try_link ()
  1764. {
  1765. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1766. rm -f conftest.$ac_objext conftest$ac_exeext
  1767. if { { ac_try="$ac_link"
  1768. case "(($ac_try" in
  1769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1770. *) ac_try_echo=$ac_try;;
  1771. esac
  1772. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1773. $as_echo "$ac_try_echo"; } >&5
  1774. (eval "$ac_link") 2>conftest.err
  1775. ac_status=$?
  1776. if test -s conftest.err; then
  1777. grep -v '^ *+' conftest.err >conftest.er1
  1778. cat conftest.er1 >&5
  1779. mv -f conftest.er1 conftest.err
  1780. fi
  1781. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1782. test $ac_status = 0; } && {
  1783. test -z "$ac_c_werror_flag" ||
  1784. test ! -s conftest.err
  1785. } && test -s conftest$ac_exeext && {
  1786. test "$cross_compiling" = yes ||
  1787. test -x conftest$ac_exeext
  1788. }; then :
  1789. ac_retval=0
  1790. else
  1791. $as_echo "$as_me: failed program was:" >&5
  1792. sed 's/^/| /' conftest.$ac_ext >&5
  1793. ac_retval=1
  1794. fi
  1795. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1796. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1797. # interfere with the next link command; also delete a directory that is
  1798. # left behind by Apple's compiler. We do this before executing the actions.
  1799. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1800. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1801. as_fn_set_status $ac_retval
  1802. } # ac_fn_c_try_link
  1803. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1804. # -------------------------------------------------------
  1805. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1806. # the include files in INCLUDES and setting the cache variable VAR
  1807. # accordingly.
  1808. ac_fn_c_check_header_mongrel ()
  1809. {
  1810. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1811. if eval \${$3+:} false; then :
  1812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1813. $as_echo_n "checking for $2... " >&6; }
  1814. if eval \${$3+:} false; then :
  1815. $as_echo_n "(cached) " >&6
  1816. fi
  1817. eval ac_res=\$$3
  1818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1819. $as_echo "$ac_res" >&6; }
  1820. else
  1821. # Is the header compilable?
  1822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1823. $as_echo_n "checking $2 usability... " >&6; }
  1824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1825. /* end confdefs.h. */
  1826. $4
  1827. #include <$2>
  1828. _ACEOF
  1829. if ac_fn_c_try_compile "$LINENO"; then :
  1830. ac_header_compiler=yes
  1831. else
  1832. ac_header_compiler=no
  1833. fi
  1834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1836. $as_echo "$ac_header_compiler" >&6; }
  1837. # Is the header present?
  1838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1839. $as_echo_n "checking $2 presence... " >&6; }
  1840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1841. /* end confdefs.h. */
  1842. #include <$2>
  1843. _ACEOF
  1844. if ac_fn_c_try_cpp "$LINENO"; then :
  1845. ac_header_preproc=yes
  1846. else
  1847. ac_header_preproc=no
  1848. fi
  1849. rm -f conftest.err conftest.i conftest.$ac_ext
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1851. $as_echo "$ac_header_preproc" >&6; }
  1852. # So? What about this header?
  1853. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1854. yes:no: )
  1855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1856. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1857. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1858. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1859. ;;
  1860. no:yes:* )
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1862. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1864. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1866. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1868. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1869. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1870. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1871. ( $as_echo "## ------------------------------------------------- ##
  1872. ## Report this to [email protected] ##
  1873. ## ------------------------------------------------- ##"
  1874. ) | sed "s/^/$as_me: WARNING: /" >&2
  1875. ;;
  1876. esac
  1877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1878. $as_echo_n "checking for $2... " >&6; }
  1879. if eval \${$3+:} false; then :
  1880. $as_echo_n "(cached) " >&6
  1881. else
  1882. eval "$3=\$ac_header_compiler"
  1883. fi
  1884. eval ac_res=\$$3
  1885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1886. $as_echo "$ac_res" >&6; }
  1887. fi
  1888. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1889. } # ac_fn_c_check_header_mongrel
  1890. # ac_fn_c_check_func LINENO FUNC VAR
  1891. # ----------------------------------
  1892. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1893. ac_fn_c_check_func ()
  1894. {
  1895. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1897. $as_echo_n "checking for $2... " >&6; }
  1898. if eval \${$3+:} false; then :
  1899. $as_echo_n "(cached) " >&6
  1900. else
  1901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1902. /* end confdefs.h. */
  1903. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1904. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1905. #define $2 innocuous_$2
  1906. /* System header to define __stub macros and hopefully few prototypes,
  1907. which can conflict with char $2 (); below.
  1908. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1909. <limits.h> exists even on freestanding compilers. */
  1910. #ifdef __STDC__
  1911. # include <limits.h>
  1912. #else
  1913. # include <assert.h>
  1914. #endif
  1915. #undef $2
  1916. /* Override any GCC internal prototype to avoid an error.
  1917. Use char because int might match the return type of a GCC
  1918. builtin and then its argument prototype would still apply. */
  1919. #ifdef __cplusplus
  1920. extern "C"
  1921. #endif
  1922. char $2 ();
  1923. /* The GNU C library defines this for functions which it implements
  1924. to always fail with ENOSYS. Some functions are actually named
  1925. something starting with __ and the normal name is an alias. */
  1926. #if defined __stub_$2 || defined __stub___$2
  1927. choke me
  1928. #endif
  1929. int
  1930. main ()
  1931. {
  1932. return $2 ();
  1933. ;
  1934. return 0;
  1935. }
  1936. _ACEOF
  1937. if ac_fn_c_try_link "$LINENO"; then :
  1938. eval "$3=yes"
  1939. else
  1940. eval "$3=no"
  1941. fi
  1942. rm -f core conftest.err conftest.$ac_objext \
  1943. conftest$ac_exeext conftest.$ac_ext
  1944. fi
  1945. eval ac_res=\$$3
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1947. $as_echo "$ac_res" >&6; }
  1948. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1949. } # ac_fn_c_check_func
  1950. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1951. # -------------------------------------------
  1952. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1953. # variable VAR accordingly.
  1954. ac_fn_c_check_type ()
  1955. {
  1956. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1958. $as_echo_n "checking for $2... " >&6; }
  1959. if eval \${$3+:} false; then :
  1960. $as_echo_n "(cached) " >&6
  1961. else
  1962. eval "$3=no"
  1963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1964. /* end confdefs.h. */
  1965. $4
  1966. int
  1967. main ()
  1968. {
  1969. if (sizeof ($2))
  1970. return 0;
  1971. ;
  1972. return 0;
  1973. }
  1974. _ACEOF
  1975. if ac_fn_c_try_compile "$LINENO"; then :
  1976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1977. /* end confdefs.h. */
  1978. $4
  1979. int
  1980. main ()
  1981. {
  1982. if (sizeof (($2)))
  1983. return 0;
  1984. ;
  1985. return 0;
  1986. }
  1987. _ACEOF
  1988. if ac_fn_c_try_compile "$LINENO"; then :
  1989. else
  1990. eval "$3=yes"
  1991. fi
  1992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1993. fi
  1994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1995. fi
  1996. eval ac_res=\$$3
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1998. $as_echo "$ac_res" >&6; }
  1999. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2000. } # ac_fn_c_check_type
  2001. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2002. # --------------------------------------------
  2003. # Tries to find the compile-time value of EXPR in a program that includes
  2004. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2005. # computed
  2006. ac_fn_c_compute_int ()
  2007. {
  2008. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2009. if test "$cross_compiling" = yes; then
  2010. # Depending upon the size, compute the lo and hi bounds.
  2011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2012. /* end confdefs.h. */
  2013. $4
  2014. int
  2015. main ()
  2016. {
  2017. static int test_array [1 - 2 * !(($2) >= 0)];
  2018. test_array [0] = 0;
  2019. return test_array [0];
  2020. ;
  2021. return 0;
  2022. }
  2023. _ACEOF
  2024. if ac_fn_c_try_compile "$LINENO"; then :
  2025. ac_lo=0 ac_mid=0
  2026. while :; do
  2027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2028. /* end confdefs.h. */
  2029. $4
  2030. int
  2031. main ()
  2032. {
  2033. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2034. test_array [0] = 0;
  2035. return test_array [0];
  2036. ;
  2037. return 0;
  2038. }
  2039. _ACEOF
  2040. if ac_fn_c_try_compile "$LINENO"; then :
  2041. ac_hi=$ac_mid; break
  2042. else
  2043. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2044. if test $ac_lo -le $ac_mid; then
  2045. ac_lo= ac_hi=
  2046. break
  2047. fi
  2048. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2049. fi
  2050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2051. done
  2052. else
  2053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2054. /* end confdefs.h. */
  2055. $4
  2056. int
  2057. main ()
  2058. {
  2059. static int test_array [1 - 2 * !(($2) < 0)];
  2060. test_array [0] = 0;
  2061. return test_array [0];
  2062. ;
  2063. return 0;
  2064. }
  2065. _ACEOF
  2066. if ac_fn_c_try_compile "$LINENO"; then :
  2067. ac_hi=-1 ac_mid=-1
  2068. while :; do
  2069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2070. /* end confdefs.h. */
  2071. $4
  2072. int
  2073. main ()
  2074. {
  2075. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2076. test_array [0] = 0;
  2077. return test_array [0];
  2078. ;
  2079. return 0;
  2080. }
  2081. _ACEOF
  2082. if ac_fn_c_try_compile "$LINENO"; then :
  2083. ac_lo=$ac_mid; break
  2084. else
  2085. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2086. if test $ac_mid -le $ac_hi; then
  2087. ac_lo= ac_hi=
  2088. break
  2089. fi
  2090. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2091. fi
  2092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2093. done
  2094. else
  2095. ac_lo= ac_hi=
  2096. fi
  2097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2098. fi
  2099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2100. # Binary search between lo and hi bounds.
  2101. while test "x$ac_lo" != "x$ac_hi"; do
  2102. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2104. /* end confdefs.h. */
  2105. $4
  2106. int
  2107. main ()
  2108. {
  2109. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2110. test_array [0] = 0;
  2111. return test_array [0];
  2112. ;
  2113. return 0;
  2114. }
  2115. _ACEOF
  2116. if ac_fn_c_try_compile "$LINENO"; then :
  2117. ac_hi=$ac_mid
  2118. else
  2119. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2120. fi
  2121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2122. done
  2123. case $ac_lo in #((
  2124. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2125. '') ac_retval=1 ;;
  2126. esac
  2127. else
  2128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2129. /* end confdefs.h. */
  2130. $4
  2131. static long int longval () { return $2; }
  2132. static unsigned long int ulongval () { return $2; }
  2133. #include <stdio.h>
  2134. #include <stdlib.h>
  2135. int
  2136. main ()
  2137. {
  2138. FILE *f = fopen ("conftest.val", "w");
  2139. if (! f)
  2140. return 1;
  2141. if (($2) < 0)
  2142. {
  2143. long int i = longval ();
  2144. if (i != ($2))
  2145. return 1;
  2146. fprintf (f, "%ld", i);
  2147. }
  2148. else
  2149. {
  2150. unsigned long int i = ulongval ();
  2151. if (i != ($2))
  2152. return 1;
  2153. fprintf (f, "%lu", i);
  2154. }
  2155. /* Do not output a trailing newline, as this causes \r\n confusion
  2156. on some platforms. */
  2157. return ferror (f) || fclose (f) != 0;
  2158. ;
  2159. return 0;
  2160. }
  2161. _ACEOF
  2162. if ac_fn_c_try_run "$LINENO"; then :
  2163. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2164. else
  2165. ac_retval=1
  2166. fi
  2167. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2168. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2169. rm -f conftest.val
  2170. fi
  2171. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2172. as_fn_set_status $ac_retval
  2173. } # ac_fn_c_compute_int
  2174. cat >config.log <<_ACEOF
  2175. This file contains any messages produced by compilers while
  2176. running configure, to aid debugging if configure makes a mistake.
  2177. It was created by mpg123 $as_me 1.15.3, which was
  2178. generated by GNU Autoconf 2.69. Invocation command line was
  2179. $ $0 $@
  2180. _ACEOF
  2181. exec 5>>config.log
  2182. {
  2183. cat <<_ASUNAME
  2184. ## --------- ##
  2185. ## Platform. ##
  2186. ## --------- ##
  2187. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2188. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2189. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2190. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2191. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2192. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2193. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2194. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2195. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2196. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2197. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2198. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2199. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2200. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2201. _ASUNAME
  2202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2203. for as_dir in $PATH
  2204. do
  2205. IFS=$as_save_IFS
  2206. test -z "$as_dir" && as_dir=.
  2207. $as_echo "PATH: $as_dir"
  2208. done
  2209. IFS=$as_save_IFS
  2210. } >&5
  2211. cat >&5 <<_ACEOF
  2212. ## ----------- ##
  2213. ## Core tests. ##
  2214. ## ----------- ##
  2215. _ACEOF
  2216. # Keep a trace of the command line.
  2217. # Strip out --no-create and --no-recursion so they do not pile up.
  2218. # Strip out --silent because we don't want to record it for future runs.
  2219. # Also quote any args containing shell meta-characters.
  2220. # Make two passes to allow for proper duplicate-argument suppression.
  2221. ac_configure_args=
  2222. ac_configure_args0=
  2223. ac_configure_args1=
  2224. ac_must_keep_next=false
  2225. for ac_pass in 1 2
  2226. do
  2227. for ac_arg
  2228. do
  2229. case $ac_arg in
  2230. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2231. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2232. | -silent | --silent | --silen | --sile | --sil)
  2233. continue ;;
  2234. *\'*)
  2235. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2236. esac
  2237. case $ac_pass in
  2238. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2239. 2)
  2240. as_fn_append ac_configure_args1 " '$ac_arg'"
  2241. if test $ac_must_keep_next = true; then
  2242. ac_must_keep_next=false # Got value, back to normal.
  2243. else
  2244. case $ac_arg in
  2245. *=* | --config-cache | -C | -disable-* | --disable-* \
  2246. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2247. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2248. | -with-* | --with-* | -without-* | --without-* | --x)
  2249. case "$ac_configure_args0 " in
  2250. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2251. esac
  2252. ;;
  2253. -* ) ac_must_keep_next=true ;;
  2254. esac
  2255. fi
  2256. as_fn_append ac_configure_args " '$ac_arg'"
  2257. ;;
  2258. esac
  2259. done
  2260. done
  2261. { ac_configure_args0=; unset ac_configure_args0;}
  2262. { ac_configure_args1=; unset ac_configure_args1;}
  2263. # When interrupted or exit'd, cleanup temporary files, and complete
  2264. # config.log. We remove comments because anyway the quotes in there
  2265. # would cause problems or look ugly.
  2266. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2267. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2268. trap 'exit_status=$?
  2269. # Save into config.log some information that might help in debugging.
  2270. {
  2271. echo
  2272. $as_echo "## ---------------- ##
  2273. ## Cache variables. ##
  2274. ## ---------------- ##"
  2275. echo
  2276. # The following way of writing the cache mishandles newlines in values,
  2277. (
  2278. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2279. eval ac_val=\$$ac_var
  2280. case $ac_val in #(
  2281. *${as_nl}*)
  2282. case $ac_var in #(
  2283. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2284. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2285. esac
  2286. case $ac_var in #(
  2287. _ | IFS | as_nl) ;; #(
  2288. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2289. *) { eval $ac_var=; unset $ac_var;} ;;
  2290. esac ;;
  2291. esac
  2292. done
  2293. (set) 2>&1 |
  2294. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2295. *${as_nl}ac_space=\ *)
  2296. sed -n \
  2297. "s/'\''/'\''\\\\'\'''\''/g;
  2298. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2299. ;; #(
  2300. *)
  2301. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2302. ;;
  2303. esac |
  2304. sort
  2305. )
  2306. echo
  2307. $as_echo "## ----------------- ##
  2308. ## Output variables. ##
  2309. ## ----------------- ##"
  2310. echo
  2311. for ac_var in $ac_subst_vars
  2312. do
  2313. eval ac_val=\$$ac_var
  2314. case $ac_val in
  2315. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2316. esac
  2317. $as_echo "$ac_var='\''$ac_val'\''"
  2318. done | sort
  2319. echo
  2320. if test -n "$ac_subst_files"; then
  2321. $as_echo "## ------------------- ##
  2322. ## File substitutions. ##
  2323. ## ------------------- ##"
  2324. echo
  2325. for ac_var in $ac_subst_files
  2326. do
  2327. eval ac_val=\$$ac_var
  2328. case $ac_val in
  2329. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2330. esac
  2331. $as_echo "$ac_var='\''$ac_val'\''"
  2332. done | sort
  2333. echo
  2334. fi
  2335. if test -s confdefs.h; then
  2336. $as_echo "## ----------- ##
  2337. ## confdefs.h. ##
  2338. ## ----------- ##"
  2339. echo
  2340. cat confdefs.h
  2341. echo
  2342. fi
  2343. test "$ac_signal" != 0 &&
  2344. $as_echo "$as_me: caught signal $ac_signal"
  2345. $as_echo "$as_me: exit $exit_status"
  2346. } >&5
  2347. rm -f core *.core core.conftest.* &&
  2348. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2349. exit $exit_status
  2350. ' 0
  2351. for ac_signal in 1 2 13 15; do
  2352. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2353. done
  2354. ac_signal=0
  2355. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2356. rm -f -r conftest* confdefs.h
  2357. $as_echo "/* confdefs.h */" > confdefs.h
  2358. # Predefined preprocessor variables.
  2359. cat >>confdefs.h <<_ACEOF
  2360. #define PACKAGE_NAME "$PACKAGE_NAME"
  2361. _ACEOF
  2362. cat >>confdefs.h <<_ACEOF
  2363. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2364. _ACEOF
  2365. cat >>confdefs.h <<_ACEOF
  2366. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2367. _ACEOF
  2368. cat >>confdefs.h <<_ACEOF
  2369. #define PACKAGE_STRING "$PACKAGE_STRING"
  2370. _ACEOF
  2371. cat >>confdefs.h <<_ACEOF
  2372. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2373. _ACEOF
  2374. cat >>confdefs.h <<_ACEOF
  2375. #define PACKAGE_URL "$PACKAGE_URL"
  2376. _ACEOF
  2377. # Let the site file select an alternate cache file if it wants to.
  2378. # Prefer an explicitly selected file to automatically selected ones.
  2379. ac_site_file1=NONE
  2380. ac_site_file2=NONE
  2381. if test -n "$CONFIG_SITE"; then
  2382. # We do not want a PATH search for config.site.
  2383. case $CONFIG_SITE in #((
  2384. -*) ac_site_file1=./$CONFIG_SITE;;
  2385. */*) ac_site_file1=$CONFIG_SITE;;
  2386. *) ac_site_file1=./$CONFIG_SITE;;
  2387. esac
  2388. elif test "x$prefix" != xNONE; then
  2389. ac_site_file1=$prefix/share/config.site
  2390. ac_site_file2=$prefix/etc/config.site
  2391. else
  2392. ac_site_file1=$ac_default_prefix/share/config.site
  2393. ac_site_file2=$ac_default_prefix/etc/config.site
  2394. fi
  2395. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2396. do
  2397. test "x$ac_site_file" = xNONE && continue
  2398. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2400. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2401. sed 's/^/| /' "$ac_site_file" >&5
  2402. . "$ac_site_file" \
  2403. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2404. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2405. as_fn_error $? "failed to load site script $ac_site_file
  2406. See \`config.log' for more details" "$LINENO" 5; }
  2407. fi
  2408. done
  2409. if test -r "$cache_file"; then
  2410. # Some versions of bash will fail to source /dev/null (special files
  2411. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2412. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2414. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2415. case $cache_file in
  2416. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2417. *) . "./$cache_file";;
  2418. esac
  2419. fi
  2420. else
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2422. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2423. >$cache_file
  2424. fi
  2425. as_fn_append ac_header_list " stdlib.h"
  2426. as_fn_append ac_header_list " unistd.h"
  2427. as_fn_append ac_header_list " sys/param.h"
  2428. # Check that the precious variables saved in the cache have kept the same
  2429. # value.
  2430. ac_cache_corrupted=false
  2431. for ac_var in $ac_precious_vars; do
  2432. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2433. eval ac_new_set=\$ac_env_${ac_var}_set
  2434. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2435. eval ac_new_val=\$ac_env_${ac_var}_value
  2436. case $ac_old_set,$ac_new_set in
  2437. set,)
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2439. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2440. ac_cache_corrupted=: ;;
  2441. ,set)
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2443. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2444. ac_cache_corrupted=: ;;
  2445. ,);;
  2446. *)
  2447. if test "x$ac_old_val" != "x$ac_new_val"; then
  2448. # differences in whitespace do not lead to failure.
  2449. ac_old_val_w=`echo x $ac_old_val`
  2450. ac_new_val_w=`echo x $ac_new_val`
  2451. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2453. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2454. ac_cache_corrupted=:
  2455. else
  2456. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2457. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2458. eval $ac_var=\$ac_old_val
  2459. fi
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2461. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2463. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2464. fi;;
  2465. esac
  2466. # Pass precious variables to config.status.
  2467. if test "$ac_new_set" = set; then
  2468. case $ac_new_val in
  2469. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2470. *) ac_arg=$ac_var=$ac_new_val ;;
  2471. esac
  2472. case " $ac_configure_args " in
  2473. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2474. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2475. esac
  2476. fi
  2477. done
  2478. if $ac_cache_corrupted; then
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2480. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2482. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2483. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2484. fi
  2485. ## -------------------- ##
  2486. ## Main body of script. ##
  2487. ## -------------------- ##
  2488. ac_ext=c
  2489. ac_cpp='$CPP $CPPFLAGS'
  2490. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2491. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2492. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2493. API_VERSION=37
  2494. LIB_PATCHLEVEL=1
  2495. LIBMPG123_VERSION=$API_VERSION:$LIB_PATCHLEVEL:$API_VERSION
  2496. ac_aux_dir=
  2497. for ac_dir in build "$srcdir"/build; do
  2498. if test -f "$ac_dir/install-sh"; then
  2499. ac_aux_dir=$ac_dir
  2500. ac_install_sh="$ac_aux_dir/install-sh -c"
  2501. break
  2502. elif test -f "$ac_dir/install.sh"; then
  2503. ac_aux_dir=$ac_dir
  2504. ac_install_sh="$ac_aux_dir/install.sh -c"
  2505. break
  2506. elif test -f "$ac_dir/shtool"; then
  2507. ac_aux_dir=$ac_dir
  2508. ac_install_sh="$ac_aux_dir/shtool install -c"
  2509. break
  2510. fi
  2511. done
  2512. if test -z "$ac_aux_dir"; then
  2513. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
  2514. fi
  2515. # These three variables are undocumented and unsupported,
  2516. # and are intended to be withdrawn in a future Autoconf release.
  2517. # They can cause serious problems if a builder's source tree is in a directory
  2518. # whose full name contains unusual characters.
  2519. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2520. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2521. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2522. # Make sure we can run config.sub.
  2523. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2524. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2526. $as_echo_n "checking build system type... " >&6; }
  2527. if ${ac_cv_build+:} false; then :
  2528. $as_echo_n "(cached) " >&6
  2529. else
  2530. ac_build_alias=$build_alias
  2531. test "x$ac_build_alias" = x &&
  2532. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2533. test "x$ac_build_alias" = x &&
  2534. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2535. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2536. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2537. fi
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2539. $as_echo "$ac_cv_build" >&6; }
  2540. case $ac_cv_build in
  2541. *-*-*) ;;
  2542. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2543. esac
  2544. build=$ac_cv_build
  2545. ac_save_IFS=$IFS; IFS='-'
  2546. set x $ac_cv_build
  2547. shift
  2548. build_cpu=$1
  2549. build_vendor=$2
  2550. shift; shift
  2551. # Remember, the first character of IFS is used to create $*,
  2552. # except with old shells:
  2553. build_os=$*
  2554. IFS=$ac_save_IFS
  2555. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2557. $as_echo_n "checking host system type... " >&6; }
  2558. if ${ac_cv_host+:} false; then :
  2559. $as_echo_n "(cached) " >&6
  2560. else
  2561. if test "x$host_alias" = x; then
  2562. ac_cv_host=$ac_cv_build
  2563. else
  2564. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2565. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2566. fi
  2567. fi
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2569. $as_echo "$ac_cv_host" >&6; }
  2570. case $ac_cv_host in
  2571. *-*-*) ;;
  2572. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2573. esac
  2574. host=$ac_cv_host
  2575. ac_save_IFS=$IFS; IFS='-'
  2576. set x $ac_cv_host
  2577. shift
  2578. host_cpu=$1
  2579. host_vendor=$2
  2580. shift; shift
  2581. # Remember, the first character of IFS is used to create $*,
  2582. # except with old shells:
  2583. host_os=$*
  2584. IFS=$ac_save_IFS
  2585. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2586. am__api_version='1.12'
  2587. # Find a good install program. We prefer a C program (faster),
  2588. # so one script is as good as another. But avoid the broken or
  2589. # incompatible versions:
  2590. # SysV /etc/install, /usr/sbin/install
  2591. # SunOS /usr/etc/install
  2592. # IRIX /sbin/install
  2593. # AIX /bin/install
  2594. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2595. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2596. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2597. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2598. # OS/2's system install, which has a completely different semantic
  2599. # ./install, which can be erroneously created by make from ./install.sh.
  2600. # Reject install programs that cannot install multiple files.
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2602. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2603. if test -z "$INSTALL"; then
  2604. if ${ac_cv_path_install+:} false; then :
  2605. $as_echo_n "(cached) " >&6
  2606. else
  2607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2608. for as_dir in $PATH
  2609. do
  2610. IFS=$as_save_IFS
  2611. test -z "$as_dir" && as_dir=.
  2612. # Account for people who put trailing slashes in PATH elements.
  2613. case $as_dir/ in #((
  2614. ./ | .// | /[cC]/* | \
  2615. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2616. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2617. /usr/ucb/* ) ;;
  2618. *)
  2619. # OSF1 and SCO ODT 3.0 have their own names for install.
  2620. # Don't use installbsd from OSF since it installs stuff as root
  2621. # by default.
  2622. for ac_prog in ginstall scoinst install; do
  2623. for ac_exec_ext in '' $ac_executable_extensions; do
  2624. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2625. if test $ac_prog = install &&
  2626. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2627. # AIX install. It has an incompatible calling convention.
  2628. :
  2629. elif test $ac_prog = install &&
  2630. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2631. # program-specific install script used by HP pwplus--don't use.
  2632. :
  2633. else
  2634. rm -rf conftest.one conftest.two conftest.dir
  2635. echo one > conftest.one
  2636. echo two > conftest.two
  2637. mkdir conftest.dir
  2638. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2639. test -s conftest.one && test -s conftest.two &&
  2640. test -s conftest.dir/conftest.one &&
  2641. test -s conftest.dir/conftest.two
  2642. then
  2643. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2644. break 3
  2645. fi
  2646. fi
  2647. fi
  2648. done
  2649. done
  2650. ;;
  2651. esac
  2652. done
  2653. IFS=$as_save_IFS
  2654. rm -rf conftest.one conftest.two conftest.dir
  2655. fi
  2656. if test "${ac_cv_path_install+set}" = set; then
  2657. INSTALL=$ac_cv_path_install
  2658. else
  2659. # As a last resort, use the slow shell script. Don't cache a
  2660. # value for INSTALL within a source directory, because that will
  2661. # break other packages using the cache if that directory is
  2662. # removed, or if the value is a relative name.
  2663. INSTALL=$ac_install_sh
  2664. fi
  2665. fi
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2667. $as_echo "$INSTALL" >&6; }
  2668. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2669. # It thinks the first close brace ends the variable substitution.
  2670. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2671. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2672. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2674. $as_echo_n "checking whether build environment is sane... " >&6; }
  2675. # Reject unsafe characters in $srcdir or the absolute working directory
  2676. # name. Accept space and tab only in the latter.
  2677. am_lf='
  2678. '
  2679. case `pwd` in
  2680. *[\\\"\#\$\&\'\`$am_lf]*)
  2681. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2682. esac
  2683. case $srcdir in
  2684. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2685. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2686. esac
  2687. # Do 'set' in a subshell so we don't clobber the current shell's
  2688. # arguments. Must try -L first in case configure is actually a
  2689. # symlink; some systems play weird games with the mod time of symlinks
  2690. # (eg FreeBSD returns the mod time of the symlink's containing
  2691. # directory).
  2692. if (
  2693. am_has_slept=no
  2694. for am_try in 1 2; do
  2695. echo "timestamp, slept: $am_has_slept" > conftest.file
  2696. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2697. if test "$*" = "X"; then
  2698. # -L didn't work.
  2699. set X `ls -t "$srcdir/configure" conftest.file`
  2700. fi
  2701. if test "$*" != "X $srcdir/configure conftest.file" \
  2702. && test "$*" != "X conftest.file $srcdir/configure"; then
  2703. # If neither matched, then we have a broken ls. This can happen
  2704. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2705. # broken ls alias from the environment. This has actually
  2706. # happened. Such a system could not be considered "sane".
  2707. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2708. alias in your environment" "$LINENO" 5
  2709. fi
  2710. if test "$2" = conftest.file || test $am_try -eq 2; then
  2711. break
  2712. fi
  2713. # Just in case.
  2714. sleep 1
  2715. am_has_slept=yes
  2716. done
  2717. test "$2" = conftest.file
  2718. )
  2719. then
  2720. # Ok.
  2721. :
  2722. else
  2723. as_fn_error $? "newly created file is older than distributed files!
  2724. Check your system clock" "$LINENO" 5
  2725. fi
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2727. $as_echo "yes" >&6; }
  2728. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2729. # generated files are strictly newer.
  2730. am_sleep_pid=
  2731. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2732. ( sleep 1 ) &
  2733. am_sleep_pid=$!
  2734. fi
  2735. rm -f conftest.file
  2736. test "$program_prefix" != NONE &&
  2737. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2738. # Use a double $ so make ignores it.
  2739. test "$program_suffix" != NONE &&
  2740. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2741. # Double any \ or $.
  2742. # By default was `s,x,x', remove it if useless.
  2743. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2744. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2745. # expand $ac_aux_dir to an absolute path
  2746. am_aux_dir=`cd $ac_aux_dir && pwd`
  2747. if test x"${MISSING+set}" != xset; then
  2748. case $am_aux_dir in
  2749. *\ * | *\ *)
  2750. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2751. *)
  2752. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2753. esac
  2754. fi
  2755. # Use eval to expand $SHELL
  2756. if eval "$MISSING --run true"; then
  2757. am_missing_run="$MISSING --run "
  2758. else
  2759. am_missing_run=
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2761. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2762. fi
  2763. if test x"${install_sh}" != xset; then
  2764. case $am_aux_dir in
  2765. *\ * | *\ *)
  2766. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2767. *)
  2768. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2769. esac
  2770. fi
  2771. # Installed binaries are usually stripped using 'strip' when the user
  2772. # run "make install-strip". However 'strip' might not be the right
  2773. # tool to use in cross-compilation environments, therefore Automake
  2774. # will honor the 'STRIP' environment variable to overrule this program.
  2775. if test "$cross_compiling" != no; then
  2776. if test -n "$ac_tool_prefix"; then
  2777. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2778. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2780. $as_echo_n "checking for $ac_word... " >&6; }
  2781. if ${ac_cv_prog_STRIP+:} false; then :
  2782. $as_echo_n "(cached) " >&6
  2783. else
  2784. if test -n "$STRIP"; then
  2785. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2786. else
  2787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2788. for as_dir in $PATH
  2789. do
  2790. IFS=$as_save_IFS
  2791. test -z "$as_dir" && as_dir=.
  2792. for ac_exec_ext in '' $ac_executable_extensions; do
  2793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2794. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2796. break 2
  2797. fi
  2798. done
  2799. done
  2800. IFS=$as_save_IFS
  2801. fi
  2802. fi
  2803. STRIP=$ac_cv_prog_STRIP
  2804. if test -n "$STRIP"; then
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2806. $as_echo "$STRIP" >&6; }
  2807. else
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2809. $as_echo "no" >&6; }
  2810. fi
  2811. fi
  2812. if test -z "$ac_cv_prog_STRIP"; then
  2813. ac_ct_STRIP=$STRIP
  2814. # Extract the first word of "strip", so it can be a program name with args.
  2815. set dummy strip; ac_word=$2
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2817. $as_echo_n "checking for $ac_word... " >&6; }
  2818. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2819. $as_echo_n "(cached) " >&6
  2820. else
  2821. if test -n "$ac_ct_STRIP"; then
  2822. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2823. else
  2824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2825. for as_dir in $PATH
  2826. do
  2827. IFS=$as_save_IFS
  2828. test -z "$as_dir" && as_dir=.
  2829. for ac_exec_ext in '' $ac_executable_extensions; do
  2830. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2831. ac_cv_prog_ac_ct_STRIP="strip"
  2832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2833. break 2
  2834. fi
  2835. done
  2836. done
  2837. IFS=$as_save_IFS
  2838. fi
  2839. fi
  2840. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2841. if test -n "$ac_ct_STRIP"; then
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2843. $as_echo "$ac_ct_STRIP" >&6; }
  2844. else
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2846. $as_echo "no" >&6; }
  2847. fi
  2848. if test "x$ac_ct_STRIP" = x; then
  2849. STRIP=":"
  2850. else
  2851. case $cross_compiling:$ac_tool_warned in
  2852. yes:)
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2854. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2855. ac_tool_warned=yes ;;
  2856. esac
  2857. STRIP=$ac_ct_STRIP
  2858. fi
  2859. else
  2860. STRIP="$ac_cv_prog_STRIP"
  2861. fi
  2862. fi
  2863. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2865. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2866. if test -z "$MKDIR_P"; then
  2867. if ${ac_cv_path_mkdir+:} false; then :
  2868. $as_echo_n "(cached) " >&6
  2869. else
  2870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2871. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2872. do
  2873. IFS=$as_save_IFS
  2874. test -z "$as_dir" && as_dir=.
  2875. for ac_prog in mkdir gmkdir; do
  2876. for ac_exec_ext in '' $ac_executable_extensions; do
  2877. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2878. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2879. 'mkdir (GNU coreutils) '* | \
  2880. 'mkdir (coreutils) '* | \
  2881. 'mkdir (fileutils) '4.1*)
  2882. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2883. break 3;;
  2884. esac
  2885. done
  2886. done
  2887. done
  2888. IFS=$as_save_IFS
  2889. fi
  2890. test -d ./--version && rmdir ./--version
  2891. if test "${ac_cv_path_mkdir+set}" = set; then
  2892. MKDIR_P="$ac_cv_path_mkdir -p"
  2893. else
  2894. # As a last resort, use the slow shell script. Don't cache a
  2895. # value for MKDIR_P within a source directory, because that will
  2896. # break other packages using the cache if that directory is
  2897. # removed, or if the value is a relative name.
  2898. MKDIR_P="$ac_install_sh -d"
  2899. fi
  2900. fi
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2902. $as_echo "$MKDIR_P" >&6; }
  2903. for ac_prog in gawk mawk nawk awk
  2904. do
  2905. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2906. set dummy $ac_prog; ac_word=$2
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2908. $as_echo_n "checking for $ac_word... " >&6; }
  2909. if ${ac_cv_prog_AWK+:} false; then :
  2910. $as_echo_n "(cached) " >&6
  2911. else
  2912. if test -n "$AWK"; then
  2913. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2914. else
  2915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2916. for as_dir in $PATH
  2917. do
  2918. IFS=$as_save_IFS
  2919. test -z "$as_dir" && as_dir=.
  2920. for ac_exec_ext in '' $ac_executable_extensions; do
  2921. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2922. ac_cv_prog_AWK="$ac_prog"
  2923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2924. break 2
  2925. fi
  2926. done
  2927. done
  2928. IFS=$as_save_IFS
  2929. fi
  2930. fi
  2931. AWK=$ac_cv_prog_AWK
  2932. if test -n "$AWK"; then
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2934. $as_echo "$AWK" >&6; }
  2935. else
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2937. $as_echo "no" >&6; }
  2938. fi
  2939. test -n "$AWK" && break
  2940. done
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2942. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2943. set x ${MAKE-make}
  2944. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2945. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2946. $as_echo_n "(cached) " >&6
  2947. else
  2948. cat >conftest.make <<\_ACEOF
  2949. SHELL = /bin/sh
  2950. all:
  2951. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2952. _ACEOF
  2953. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2954. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2955. *@@@%%%=?*=@@@%%%*)
  2956. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2957. *)
  2958. eval ac_cv_prog_make_${ac_make}_set=no;;
  2959. esac
  2960. rm -f conftest.make
  2961. fi
  2962. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2964. $as_echo "yes" >&6; }
  2965. SET_MAKE=
  2966. else
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2968. $as_echo "no" >&6; }
  2969. SET_MAKE="MAKE=${MAKE-make}"
  2970. fi
  2971. rm -rf .tst 2>/dev/null
  2972. mkdir .tst 2>/dev/null
  2973. if test -d .tst; then
  2974. am__leading_dot=.
  2975. else
  2976. am__leading_dot=_
  2977. fi
  2978. rmdir .tst 2>/dev/null
  2979. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2980. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2981. # is not polluted with repeated "-I."
  2982. am__isrc=' -I$(srcdir)'
  2983. # test to see if srcdir already configured
  2984. if test -f $srcdir/config.status; then
  2985. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2986. fi
  2987. fi
  2988. # test whether we have cygpath
  2989. if test -z "$CYGPATH_W"; then
  2990. if (cygpath --version) >/dev/null 2>/dev/null; then
  2991. CYGPATH_W='cygpath -w'
  2992. else
  2993. CYGPATH_W=echo
  2994. fi
  2995. fi
  2996. # Define the identity of the package.
  2997. PACKAGE='mpg123'
  2998. VERSION='1.15.3'
  2999. cat >>confdefs.h <<_ACEOF
  3000. #define PACKAGE "$PACKAGE"
  3001. _ACEOF
  3002. cat >>confdefs.h <<_ACEOF
  3003. #define VERSION "$VERSION"
  3004. _ACEOF
  3005. # Some tools Automake needs.
  3006. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3007. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3008. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3009. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3010. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3011. # For better backward compatibility. To be removed once Automake 1.9.x
  3012. # dies out for good. For more background, see:
  3013. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3014. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3015. mkdir_p='$(MKDIR_P)'
  3016. # We need awk for the "check" target. The system "awk" is bad on
  3017. # some platforms.
  3018. # Always define AMTAR for backward compatibility. Yes, it's still used
  3019. # in the wild :-( We should find a proper way to deprecate it ...
  3020. AMTAR='$${TAR-tar}'
  3021. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3022. ac_config_headers="$ac_config_headers src/config.h"
  3023. # You get strange symptoms like jack module build failing because the AC_C_CONST failed to detect the working const support.
  3024. # In that case, the test failed because -Werror, not because no const there...
  3025. # After looking again, there are possibly more tests being obscured by false failures.
  3026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror in CFLAGS (It breaks tests)" >&5
  3027. $as_echo_n "checking for -Werror in CFLAGS (It breaks tests)... " >&6; }
  3028. if echo "$CFLAGS" | grep Werror; then
  3029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3030. $as_echo "yes" >&6; }
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have -Werror in CFLAGS. That may break some tests and make this configure bogus.
  3032. If you want paranoid compilation, use --enable-nagging option, which adds -Werror for gcc.
  3033. Also note that you shall not run make distcheck after configuring with --enable-nagging.
  3034. distcheck uses the generated CFLAGS...
  3035. Anyhow, continuing at your own risk." >&5
  3036. $as_echo "$as_me: WARNING: You have -Werror in CFLAGS. That may break some tests and make this configure bogus.
  3037. If you want paranoid compilation, use --enable-nagging option, which adds -Werror for gcc.
  3038. Also note that you shall not run make distcheck after configuring with --enable-nagging.
  3039. distcheck uses the generated CFLAGS...
  3040. Anyhow, continuing at your own risk." >&2;}
  3041. else
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3043. $as_echo "no" >&6; }
  3044. fi
  3045. buffer=enabled # try to build with buffer by default
  3046. LT_LDFLAGS=-export-dynamic
  3047. EXEC_LT_LDFLAGS=
  3048. be_static=no
  3049. all_static=no
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you are up to something totally static with LDFLAGS/CFLAGS" >&5
  3051. $as_echo_n "checking if you are up to something totally static with LDFLAGS/CFLAGS... " >&6; }
  3052. for f in $LDFLAGS $CFLAGS
  3053. do
  3054. case "$f" in
  3055. -all-static)
  3056. be_static=yes
  3057. all_static=yes
  3058. ;;
  3059. -static)
  3060. be_static=yes
  3061. ;;
  3062. esac
  3063. done
  3064. if test "x$be_static" = xyes; then
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3066. $as_echo "yes" >&6; }
  3067. LT_LDFLAGS=-all-static
  3068. EXEC_LT_LDFLAGS="$LT_LDFLAGS"
  3069. else
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3071. $as_echo "no" >&6; }
  3072. fi
  3073. if test "x$all_static" = xyes; then
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use -static in LDFLAGS for all-static linking! Your compiler may blow up on that -all-static. " >&5
  3075. $as_echo "$as_me: WARNING: Use -static in LDFLAGS for all-static linking! Your compiler may blow up on that -all-static. " >&2;}
  3076. fi
  3077. DEPDIR="${am__leading_dot}deps"
  3078. ac_config_commands="$ac_config_commands depfiles"
  3079. am_make=${MAKE-make}
  3080. cat > confinc << 'END'
  3081. am__doit:
  3082. @echo this is the am__doit target
  3083. .PHONY: am__doit
  3084. END
  3085. # If we don't find an include directive, just comment out the code.
  3086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3087. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3088. am__include="#"
  3089. am__quote=
  3090. _am_result=none
  3091. # First try GNU make style include.
  3092. echo "include confinc" > confmf
  3093. # Ignore all kinds of additional output from 'make'.
  3094. case `$am_make -s -f confmf 2> /dev/null` in #(
  3095. *the\ am__doit\ target*)
  3096. am__include=include
  3097. am__quote=
  3098. _am_result=GNU
  3099. ;;
  3100. esac
  3101. # Now try BSD make style include.
  3102. if test "$am__include" = "#"; then
  3103. echo '.include "confinc"' > confmf
  3104. case `$am_make -s -f confmf 2> /dev/null` in #(
  3105. *the\ am__doit\ target*)
  3106. am__include=.include
  3107. am__quote="\""
  3108. _am_result=BSD
  3109. ;;
  3110. esac
  3111. fi
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3113. $as_echo "$_am_result" >&6; }
  3114. rm -f confinc confmf
  3115. # Check whether --enable-dependency-tracking was given.
  3116. if test "${enable_dependency_tracking+set}" = set; then :
  3117. enableval=$enable_dependency_tracking;
  3118. fi
  3119. if test "x$enable_dependency_tracking" != xno; then
  3120. am_depcomp="$ac_aux_dir/depcomp"
  3121. AMDEPBACKSLASH='\'
  3122. am__nodep='_no'
  3123. fi
  3124. if test "x$enable_dependency_tracking" != xno; then
  3125. AMDEP_TRUE=
  3126. AMDEP_FALSE='#'
  3127. else
  3128. AMDEP_TRUE='#'
  3129. AMDEP_FALSE=
  3130. fi
  3131. ac_ext=c
  3132. ac_cpp='$CPP $CPPFLAGS'
  3133. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3134. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3135. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3136. if test -n "$ac_tool_prefix"; then
  3137. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3138. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3140. $as_echo_n "checking for $ac_word... " >&6; }
  3141. if ${ac_cv_prog_CC+:} false; then :
  3142. $as_echo_n "(cached) " >&6
  3143. else
  3144. if test -n "$CC"; then
  3145. ac_cv_prog_CC="$CC" # Let the user override the test.
  3146. else
  3147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3148. for as_dir in $PATH
  3149. do
  3150. IFS=$as_save_IFS
  3151. test -z "$as_dir" && as_dir=.
  3152. for ac_exec_ext in '' $ac_executable_extensions; do
  3153. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3154. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3155. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3156. break 2
  3157. fi
  3158. done
  3159. done
  3160. IFS=$as_save_IFS
  3161. fi
  3162. fi
  3163. CC=$ac_cv_prog_CC
  3164. if test -n "$CC"; then
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3166. $as_echo "$CC" >&6; }
  3167. else
  3168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3169. $as_echo "no" >&6; }
  3170. fi
  3171. fi
  3172. if test -z "$ac_cv_prog_CC"; then
  3173. ac_ct_CC=$CC
  3174. # Extract the first word of "gcc", so it can be a program name with args.
  3175. set dummy gcc; ac_word=$2
  3176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3177. $as_echo_n "checking for $ac_word... " >&6; }
  3178. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3179. $as_echo_n "(cached) " >&6
  3180. else
  3181. if test -n "$ac_ct_CC"; then
  3182. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3183. else
  3184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3185. for as_dir in $PATH
  3186. do
  3187. IFS=$as_save_IFS
  3188. test -z "$as_dir" && as_dir=.
  3189. for ac_exec_ext in '' $ac_executable_extensions; do
  3190. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3191. ac_cv_prog_ac_ct_CC="gcc"
  3192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3193. break 2
  3194. fi
  3195. done
  3196. done
  3197. IFS=$as_save_IFS
  3198. fi
  3199. fi
  3200. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3201. if test -n "$ac_ct_CC"; then
  3202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3203. $as_echo "$ac_ct_CC" >&6; }
  3204. else
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3206. $as_echo "no" >&6; }
  3207. fi
  3208. if test "x$ac_ct_CC" = x; then
  3209. CC=""
  3210. else
  3211. case $cross_compiling:$ac_tool_warned in
  3212. yes:)
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3214. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3215. ac_tool_warned=yes ;;
  3216. esac
  3217. CC=$ac_ct_CC
  3218. fi
  3219. else
  3220. CC="$ac_cv_prog_CC"
  3221. fi
  3222. if test -z "$CC"; then
  3223. if test -n "$ac_tool_prefix"; then
  3224. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3225. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3227. $as_echo_n "checking for $ac_word... " >&6; }
  3228. if ${ac_cv_prog_CC+:} false; then :
  3229. $as_echo_n "(cached) " >&6
  3230. else
  3231. if test -n "$CC"; then
  3232. ac_cv_prog_CC="$CC" # Let the user override the test.
  3233. else
  3234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3235. for as_dir in $PATH
  3236. do
  3237. IFS=$as_save_IFS
  3238. test -z "$as_dir" && as_dir=.
  3239. for ac_exec_ext in '' $ac_executable_extensions; do
  3240. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3241. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3243. break 2
  3244. fi
  3245. done
  3246. done
  3247. IFS=$as_save_IFS
  3248. fi
  3249. fi
  3250. CC=$ac_cv_prog_CC
  3251. if test -n "$CC"; then
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3253. $as_echo "$CC" >&6; }
  3254. else
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3256. $as_echo "no" >&6; }
  3257. fi
  3258. fi
  3259. fi
  3260. if test -z "$CC"; then
  3261. # Extract the first word of "cc", so it can be a program name with args.
  3262. set dummy cc; ac_word=$2
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3264. $as_echo_n "checking for $ac_word... " >&6; }
  3265. if ${ac_cv_prog_CC+:} false; then :
  3266. $as_echo_n "(cached) " >&6
  3267. else
  3268. if test -n "$CC"; then
  3269. ac_cv_prog_CC="$CC" # Let the user override the test.
  3270. else
  3271. ac_prog_rejected=no
  3272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3273. for as_dir in $PATH
  3274. do
  3275. IFS=$as_save_IFS
  3276. test -z "$as_dir" && as_dir=.
  3277. for ac_exec_ext in '' $ac_executable_extensions; do
  3278. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3279. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3280. ac_prog_rejected=yes
  3281. continue
  3282. fi
  3283. ac_cv_prog_CC="cc"
  3284. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3285. break 2
  3286. fi
  3287. done
  3288. done
  3289. IFS=$as_save_IFS
  3290. if test $ac_prog_rejected = yes; then
  3291. # We found a bogon in the path, so make sure we never use it.
  3292. set dummy $ac_cv_prog_CC
  3293. shift
  3294. if test $# != 0; then
  3295. # We chose a different compiler from the bogus one.
  3296. # However, it has the same basename, so the bogon will be chosen
  3297. # first if we set CC to just the basename; use the full file name.
  3298. shift
  3299. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3300. fi
  3301. fi
  3302. fi
  3303. fi
  3304. CC=$ac_cv_prog_CC
  3305. if test -n "$CC"; then
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3307. $as_echo "$CC" >&6; }
  3308. else
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3310. $as_echo "no" >&6; }
  3311. fi
  3312. fi
  3313. if test -z "$CC"; then
  3314. if test -n "$ac_tool_prefix"; then
  3315. for ac_prog in cl.exe
  3316. do
  3317. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3318. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3320. $as_echo_n "checking for $ac_word... " >&6; }
  3321. if ${ac_cv_prog_CC+:} false; then :
  3322. $as_echo_n "(cached) " >&6
  3323. else
  3324. if test -n "$CC"; then
  3325. ac_cv_prog_CC="$CC" # Let the user override the test.
  3326. else
  3327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3328. for as_dir in $PATH
  3329. do
  3330. IFS=$as_save_IFS
  3331. test -z "$as_dir" && as_dir=.
  3332. for ac_exec_ext in '' $ac_executable_extensions; do
  3333. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3334. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3336. break 2
  3337. fi
  3338. done
  3339. done
  3340. IFS=$as_save_IFS
  3341. fi
  3342. fi
  3343. CC=$ac_cv_prog_CC
  3344. if test -n "$CC"; then
  3345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3346. $as_echo "$CC" >&6; }
  3347. else
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3349. $as_echo "no" >&6; }
  3350. fi
  3351. test -n "$CC" && break
  3352. done
  3353. fi
  3354. if test -z "$CC"; then
  3355. ac_ct_CC=$CC
  3356. for ac_prog in cl.exe
  3357. do
  3358. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3359. set dummy $ac_prog; ac_word=$2
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3361. $as_echo_n "checking for $ac_word... " >&6; }
  3362. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3363. $as_echo_n "(cached) " >&6
  3364. else
  3365. if test -n "$ac_ct_CC"; then
  3366. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3367. else
  3368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3369. for as_dir in $PATH
  3370. do
  3371. IFS=$as_save_IFS
  3372. test -z "$as_dir" && as_dir=.
  3373. for ac_exec_ext in '' $ac_executable_extensions; do
  3374. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3375. ac_cv_prog_ac_ct_CC="$ac_prog"
  3376. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3377. break 2
  3378. fi
  3379. done
  3380. done
  3381. IFS=$as_save_IFS
  3382. fi
  3383. fi
  3384. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3385. if test -n "$ac_ct_CC"; then
  3386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3387. $as_echo "$ac_ct_CC" >&6; }
  3388. else
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3390. $as_echo "no" >&6; }
  3391. fi
  3392. test -n "$ac_ct_CC" && break
  3393. done
  3394. if test "x$ac_ct_CC" = x; then
  3395. CC=""
  3396. else
  3397. case $cross_compiling:$ac_tool_warned in
  3398. yes:)
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3400. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3401. ac_tool_warned=yes ;;
  3402. esac
  3403. CC=$ac_ct_CC
  3404. fi
  3405. fi
  3406. fi
  3407. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3408. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3409. as_fn_error $? "no acceptable C compiler found in \$PATH
  3410. See \`config.log' for more details" "$LINENO" 5; }
  3411. # Provide some information about the compiler.
  3412. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3413. set X $ac_compile
  3414. ac_compiler=$2
  3415. for ac_option in --version -v -V -qversion; do
  3416. { { ac_try="$ac_compiler $ac_option >&5"
  3417. case "(($ac_try" in
  3418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3419. *) ac_try_echo=$ac_try;;
  3420. esac
  3421. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3422. $as_echo "$ac_try_echo"; } >&5
  3423. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3424. ac_status=$?
  3425. if test -s conftest.err; then
  3426. sed '10a\
  3427. ... rest of stderr output deleted ...
  3428. 10q' conftest.err >conftest.er1
  3429. cat conftest.er1 >&5
  3430. fi
  3431. rm -f conftest.er1 conftest.err
  3432. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3433. test $ac_status = 0; }
  3434. done
  3435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3436. /* end confdefs.h. */
  3437. int
  3438. main ()
  3439. {
  3440. ;
  3441. return 0;
  3442. }
  3443. _ACEOF
  3444. ac_clean_files_save=$ac_clean_files
  3445. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3446. # Try to create an executable without -o first, disregard a.out.
  3447. # It will help us diagnose broken compilers, and finding out an intuition
  3448. # of exeext.
  3449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3450. $as_echo_n "checking whether the C compiler works... " >&6; }
  3451. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3452. # The possible output files:
  3453. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3454. ac_rmfiles=
  3455. for ac_file in $ac_files
  3456. do
  3457. case $ac_file in
  3458. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3459. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3460. esac
  3461. done
  3462. rm -f $ac_rmfiles
  3463. if { { ac_try="$ac_link_default"
  3464. case "(($ac_try" in
  3465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3466. *) ac_try_echo=$ac_try;;
  3467. esac
  3468. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3469. $as_echo "$ac_try_echo"; } >&5
  3470. (eval "$ac_link_default") 2>&5
  3471. ac_status=$?
  3472. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3473. test $ac_status = 0; }; then :
  3474. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3475. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3476. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3477. # so that the user can short-circuit this test for compilers unknown to
  3478. # Autoconf.
  3479. for ac_file in $ac_files ''
  3480. do
  3481. test -f "$ac_file" || continue
  3482. case $ac_file in
  3483. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3484. ;;
  3485. [ab].out )
  3486. # We found the default executable, but exeext='' is most
  3487. # certainly right.
  3488. break;;
  3489. *.* )
  3490. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3491. then :; else
  3492. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3493. fi
  3494. # We set ac_cv_exeext here because the later test for it is not
  3495. # safe: cross compilers may not add the suffix if given an `-o'
  3496. # argument, so we may need to know it at that point already.
  3497. # Even if this section looks crufty: it has the advantage of
  3498. # actually working.
  3499. break;;
  3500. * )
  3501. break;;
  3502. esac
  3503. done
  3504. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3505. else
  3506. ac_file=''
  3507. fi
  3508. if test -z "$ac_file"; then :
  3509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3510. $as_echo "no" >&6; }
  3511. $as_echo "$as_me: failed program was:" >&5
  3512. sed 's/^/| /' conftest.$ac_ext >&5
  3513. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3514. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3515. as_fn_error 77 "C compiler cannot create executables
  3516. See \`config.log' for more details" "$LINENO" 5; }
  3517. else
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3519. $as_echo "yes" >&6; }
  3520. fi
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3522. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3524. $as_echo "$ac_file" >&6; }
  3525. ac_exeext=$ac_cv_exeext
  3526. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3527. ac_clean_files=$ac_clean_files_save
  3528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3529. $as_echo_n "checking for suffix of executables... " >&6; }
  3530. if { { ac_try="$ac_link"
  3531. case "(($ac_try" in
  3532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3533. *) ac_try_echo=$ac_try;;
  3534. esac
  3535. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3536. $as_echo "$ac_try_echo"; } >&5
  3537. (eval "$ac_link") 2>&5
  3538. ac_status=$?
  3539. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3540. test $ac_status = 0; }; then :
  3541. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3542. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3543. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3544. # `rm'.
  3545. for ac_file in conftest.exe conftest conftest.*; do
  3546. test -f "$ac_file" || continue
  3547. case $ac_file in
  3548. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3549. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3550. break;;
  3551. * ) break;;
  3552. esac
  3553. done
  3554. else
  3555. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3556. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3557. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3558. See \`config.log' for more details" "$LINENO" 5; }
  3559. fi
  3560. rm -f conftest conftest$ac_cv_exeext
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3562. $as_echo "$ac_cv_exeext" >&6; }
  3563. rm -f conftest.$ac_ext
  3564. EXEEXT=$ac_cv_exeext
  3565. ac_exeext=$EXEEXT
  3566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3567. /* end confdefs.h. */
  3568. #include <stdio.h>
  3569. int
  3570. main ()
  3571. {
  3572. FILE *f = fopen ("conftest.out", "w");
  3573. return ferror (f) || fclose (f) != 0;
  3574. ;
  3575. return 0;
  3576. }
  3577. _ACEOF
  3578. ac_clean_files="$ac_clean_files conftest.out"
  3579. # Check that the compiler produces executables we can run. If not, either
  3580. # the compiler is broken, or we cross compile.
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3582. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3583. if test "$cross_compiling" != yes; then
  3584. { { ac_try="$ac_link"
  3585. case "(($ac_try" in
  3586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3587. *) ac_try_echo=$ac_try;;
  3588. esac
  3589. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3590. $as_echo "$ac_try_echo"; } >&5
  3591. (eval "$ac_link") 2>&5
  3592. ac_status=$?
  3593. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3594. test $ac_status = 0; }
  3595. if { ac_try='./conftest$ac_cv_exeext'
  3596. { { case "(($ac_try" in
  3597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3598. *) ac_try_echo=$ac_try;;
  3599. esac
  3600. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3601. $as_echo "$ac_try_echo"; } >&5
  3602. (eval "$ac_try") 2>&5
  3603. ac_status=$?
  3604. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3605. test $ac_status = 0; }; }; then
  3606. cross_compiling=no
  3607. else
  3608. if test "$cross_compiling" = maybe; then
  3609. cross_compiling=yes
  3610. else
  3611. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3612. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3613. as_fn_error $? "cannot run C compiled programs.
  3614. If you meant to cross compile, use \`--host'.
  3615. See \`config.log' for more details" "$LINENO" 5; }
  3616. fi
  3617. fi
  3618. fi
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3620. $as_echo "$cross_compiling" >&6; }
  3621. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3622. ac_clean_files=$ac_clean_files_save
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3624. $as_echo_n "checking for suffix of object files... " >&6; }
  3625. if ${ac_cv_objext+:} false; then :
  3626. $as_echo_n "(cached) " >&6
  3627. else
  3628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3629. /* end confdefs.h. */
  3630. int
  3631. main ()
  3632. {
  3633. ;
  3634. return 0;
  3635. }
  3636. _ACEOF
  3637. rm -f conftest.o conftest.obj
  3638. if { { ac_try="$ac_compile"
  3639. case "(($ac_try" in
  3640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3641. *) ac_try_echo=$ac_try;;
  3642. esac
  3643. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3644. $as_echo "$ac_try_echo"; } >&5
  3645. (eval "$ac_compile") 2>&5
  3646. ac_status=$?
  3647. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3648. test $ac_status = 0; }; then :
  3649. for ac_file in conftest.o conftest.obj conftest.*; do
  3650. test -f "$ac_file" || continue;
  3651. case $ac_file in
  3652. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3653. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3654. break;;
  3655. esac
  3656. done
  3657. else
  3658. $as_echo "$as_me: failed program was:" >&5
  3659. sed 's/^/| /' conftest.$ac_ext >&5
  3660. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3661. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3662. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3663. See \`config.log' for more details" "$LINENO" 5; }
  3664. fi
  3665. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3666. fi
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3668. $as_echo "$ac_cv_objext" >&6; }
  3669. OBJEXT=$ac_cv_objext
  3670. ac_objext=$OBJEXT
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3672. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3673. if ${ac_cv_c_compiler_gnu+:} false; then :
  3674. $as_echo_n "(cached) " >&6
  3675. else
  3676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3677. /* end confdefs.h. */
  3678. int
  3679. main ()
  3680. {
  3681. #ifndef __GNUC__
  3682. choke me
  3683. #endif
  3684. ;
  3685. return 0;
  3686. }
  3687. _ACEOF
  3688. if ac_fn_c_try_compile "$LINENO"; then :
  3689. ac_compiler_gnu=yes
  3690. else
  3691. ac_compiler_gnu=no
  3692. fi
  3693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3694. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3695. fi
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3697. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3698. if test $ac_compiler_gnu = yes; then
  3699. GCC=yes
  3700. else
  3701. GCC=
  3702. fi
  3703. ac_test_CFLAGS=${CFLAGS+set}
  3704. ac_save_CFLAGS=$CFLAGS
  3705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3706. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3707. if ${ac_cv_prog_cc_g+:} false; then :
  3708. $as_echo_n "(cached) " >&6
  3709. else
  3710. ac_save_c_werror_flag=$ac_c_werror_flag
  3711. ac_c_werror_flag=yes
  3712. ac_cv_prog_cc_g=no
  3713. CFLAGS="-g"
  3714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3715. /* end confdefs.h. */
  3716. int
  3717. main ()
  3718. {
  3719. ;
  3720. return 0;
  3721. }
  3722. _ACEOF
  3723. if ac_fn_c_try_compile "$LINENO"; then :
  3724. ac_cv_prog_cc_g=yes
  3725. else
  3726. CFLAGS=""
  3727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3728. /* end confdefs.h. */
  3729. int
  3730. main ()
  3731. {
  3732. ;
  3733. return 0;
  3734. }
  3735. _ACEOF
  3736. if ac_fn_c_try_compile "$LINENO"; then :
  3737. else
  3738. ac_c_werror_flag=$ac_save_c_werror_flag
  3739. CFLAGS="-g"
  3740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3741. /* end confdefs.h. */
  3742. int
  3743. main ()
  3744. {
  3745. ;
  3746. return 0;
  3747. }
  3748. _ACEOF
  3749. if ac_fn_c_try_compile "$LINENO"; then :
  3750. ac_cv_prog_cc_g=yes
  3751. fi
  3752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3753. fi
  3754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3755. fi
  3756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3757. ac_c_werror_flag=$ac_save_c_werror_flag
  3758. fi
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3760. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3761. if test "$ac_test_CFLAGS" = set; then
  3762. CFLAGS=$ac_save_CFLAGS
  3763. elif test $ac_cv_prog_cc_g = yes; then
  3764. if test "$GCC" = yes; then
  3765. CFLAGS="-g -O2"
  3766. else
  3767. CFLAGS="-g"
  3768. fi
  3769. else
  3770. if test "$GCC" = yes; then
  3771. CFLAGS="-O2"
  3772. else
  3773. CFLAGS=
  3774. fi
  3775. fi
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3777. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3778. if ${ac_cv_prog_cc_c89+:} false; then :
  3779. $as_echo_n "(cached) " >&6
  3780. else
  3781. ac_cv_prog_cc_c89=no
  3782. ac_save_CC=$CC
  3783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3784. /* end confdefs.h. */
  3785. #include <stdarg.h>
  3786. #include <stdio.h>
  3787. struct stat;
  3788. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3789. struct buf { int x; };
  3790. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3791. static char *e (p, i)
  3792. char **p;
  3793. int i;
  3794. {
  3795. return p[i];
  3796. }
  3797. static char *f (char * (*g) (char **, int), char **p, ...)
  3798. {
  3799. char *s;
  3800. va_list v;
  3801. va_start (v,p);
  3802. s = g (p, va_arg (v,int));
  3803. va_end (v);
  3804. return s;
  3805. }
  3806. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3807. function prototypes and stuff, but not '\xHH' hex character constants.
  3808. These don't provoke an error unfortunately, instead are silently treated
  3809. as 'x'. The following induces an error, until -std is added to get
  3810. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3811. array size at least. It's necessary to write '\x00'==0 to get something
  3812. that's true only with -std. */
  3813. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3814. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3815. inside strings and character constants. */
  3816. #define FOO(x) 'x'
  3817. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3818. int test (int i, double x);
  3819. struct s1 {int (*f) (int a);};
  3820. struct s2 {int (*f) (double a);};
  3821. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3822. int argc;
  3823. char **argv;
  3824. int
  3825. main ()
  3826. {
  3827. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3828. ;
  3829. return 0;
  3830. }
  3831. _ACEOF
  3832. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3833. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3834. do
  3835. CC="$ac_save_CC $ac_arg"
  3836. if ac_fn_c_try_compile "$LINENO"; then :
  3837. ac_cv_prog_cc_c89=$ac_arg
  3838. fi
  3839. rm -f core conftest.err conftest.$ac_objext
  3840. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3841. done
  3842. rm -f conftest.$ac_ext
  3843. CC=$ac_save_CC
  3844. fi
  3845. # AC_CACHE_VAL
  3846. case "x$ac_cv_prog_cc_c89" in
  3847. x)
  3848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3849. $as_echo "none needed" >&6; } ;;
  3850. xno)
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3852. $as_echo "unsupported" >&6; } ;;
  3853. *)
  3854. CC="$CC $ac_cv_prog_cc_c89"
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3856. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3857. esac
  3858. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3859. fi
  3860. ac_ext=c
  3861. ac_cpp='$CPP $CPPFLAGS'
  3862. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3863. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3864. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3865. depcc="$CC" am_compiler_list=
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3867. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3868. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3869. $as_echo_n "(cached) " >&6
  3870. else
  3871. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3872. # We make a subdir and do the tests there. Otherwise we can end up
  3873. # making bogus files that we don't know about and never remove. For
  3874. # instance it was reported that on HP-UX the gcc test will end up
  3875. # making a dummy file named 'D' -- because '-MD' means "put the output
  3876. # in D".
  3877. rm -rf conftest.dir
  3878. mkdir conftest.dir
  3879. # Copy depcomp to subdir because otherwise we won't find it if we're
  3880. # using a relative directory.
  3881. cp "$am_depcomp" conftest.dir
  3882. cd conftest.dir
  3883. # We will build objects and dependencies in a subdirectory because
  3884. # it helps to detect inapplicable dependency modes. For instance
  3885. # both Tru64's cc and ICC support -MD to output dependencies as a
  3886. # side effect of compilation, but ICC will put the dependencies in
  3887. # the current directory while Tru64 will put them in the object
  3888. # directory.
  3889. mkdir sub
  3890. am_cv_CC_dependencies_compiler_type=none
  3891. if test "$am_compiler_list" = ""; then
  3892. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3893. fi
  3894. am__universal=false
  3895. case " $depcc " in #(
  3896. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3897. esac
  3898. for depmode in $am_compiler_list; do
  3899. # Setup a source with many dependencies, because some compilers
  3900. # like to wrap large dependency lists on column 80 (with \), and
  3901. # we should not choose a depcomp mode which is confused by this.
  3902. #
  3903. # We need to recreate these files for each test, as the compiler may
  3904. # overwrite some of them when testing with obscure command lines.
  3905. # This happens at least with the AIX C compiler.
  3906. : > sub/conftest.c
  3907. for i in 1 2 3 4 5 6; do
  3908. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3909. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3910. # Solaris 10 /bin/sh.
  3911. echo '/* dummy */' > sub/conftst$i.h
  3912. done
  3913. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3914. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3915. # mode. It turns out that the SunPro C++ compiler does not properly
  3916. # handle '-M -o', and we need to detect this. Also, some Intel
  3917. # versions had trouble with output in subdirs.
  3918. am__obj=sub/conftest.${OBJEXT-o}
  3919. am__minus_obj="-o $am__obj"
  3920. case $depmode in
  3921. gcc)
  3922. # This depmode causes a compiler race in universal mode.
  3923. test "$am__universal" = false || continue
  3924. ;;
  3925. nosideeffect)
  3926. # After this tag, mechanisms are not by side-effect, so they'll
  3927. # only be used when explicitly requested.
  3928. if test "x$enable_dependency_tracking" = xyes; then
  3929. continue
  3930. else
  3931. break
  3932. fi
  3933. ;;
  3934. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3935. # This compiler won't grok '-c -o', but also, the minuso test has
  3936. # not run yet. These depmodes are late enough in the game, and
  3937. # so weak that their functioning should not be impacted.
  3938. am__obj=conftest.${OBJEXT-o}
  3939. am__minus_obj=
  3940. ;;
  3941. none) break ;;
  3942. esac
  3943. if depmode=$depmode \
  3944. source=sub/conftest.c object=$am__obj \
  3945. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3946. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3947. >/dev/null 2>conftest.err &&
  3948. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3949. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3950. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3951. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3952. # icc doesn't choke on unknown options, it will just issue warnings
  3953. # or remarks (even with -Werror). So we grep stderr for any message
  3954. # that says an option was ignored or not supported.
  3955. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3956. # icc: Command line warning: ignoring option '-M'; no argument required
  3957. # The diagnosis changed in icc 8.0:
  3958. # icc: Command line remark: option '-MP' not supported
  3959. if (grep 'ignoring option' conftest.err ||
  3960. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3961. am_cv_CC_dependencies_compiler_type=$depmode
  3962. break
  3963. fi
  3964. fi
  3965. done
  3966. cd ..
  3967. rm -rf conftest.dir
  3968. else
  3969. am_cv_CC_dependencies_compiler_type=none
  3970. fi
  3971. fi
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3973. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3974. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3975. if
  3976. test "x$enable_dependency_tracking" != xno \
  3977. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3978. am__fastdepCC_TRUE=
  3979. am__fastdepCC_FALSE='#'
  3980. else
  3981. am__fastdepCC_TRUE='#'
  3982. am__fastdepCC_FALSE=
  3983. fi
  3984. # By default we simply use the C compiler to build assembly code.
  3985. test "${CCAS+set}" = set || CCAS=$CC
  3986. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3987. depcc="$CCAS" am_compiler_list=
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3989. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3990. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  3991. $as_echo_n "(cached) " >&6
  3992. else
  3993. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3994. # We make a subdir and do the tests there. Otherwise we can end up
  3995. # making bogus files that we don't know about and never remove. For
  3996. # instance it was reported that on HP-UX the gcc test will end up
  3997. # making a dummy file named 'D' -- because '-MD' means "put the output
  3998. # in D".
  3999. rm -rf conftest.dir
  4000. mkdir conftest.dir
  4001. # Copy depcomp to subdir because otherwise we won't find it if we're
  4002. # using a relative directory.
  4003. cp "$am_depcomp" conftest.dir
  4004. cd conftest.dir
  4005. # We will build objects and dependencies in a subdirectory because
  4006. # it helps to detect inapplicable dependency modes. For instance
  4007. # both Tru64's cc and ICC support -MD to output dependencies as a
  4008. # side effect of compilation, but ICC will put the dependencies in
  4009. # the current directory while Tru64 will put them in the object
  4010. # directory.
  4011. mkdir sub
  4012. am_cv_CCAS_dependencies_compiler_type=none
  4013. if test "$am_compiler_list" = ""; then
  4014. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4015. fi
  4016. am__universal=false
  4017. for depmode in $am_compiler_list; do
  4018. # Setup a source with many dependencies, because some compilers
  4019. # like to wrap large dependency lists on column 80 (with \), and
  4020. # we should not choose a depcomp mode which is confused by this.
  4021. #
  4022. # We need to recreate these files for each test, as the compiler may
  4023. # overwrite some of them when testing with obscure command lines.
  4024. # This happens at least with the AIX C compiler.
  4025. : > sub/conftest.c
  4026. for i in 1 2 3 4 5 6; do
  4027. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4028. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4029. # Solaris 10 /bin/sh.
  4030. echo '/* dummy */' > sub/conftst$i.h
  4031. done
  4032. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4033. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4034. # mode. It turns out that the SunPro C++ compiler does not properly
  4035. # handle '-M -o', and we need to detect this. Also, some Intel
  4036. # versions had trouble with output in subdirs.
  4037. am__obj=sub/conftest.${OBJEXT-o}
  4038. am__minus_obj="-o $am__obj"
  4039. case $depmode in
  4040. gcc)
  4041. # This depmode causes a compiler race in universal mode.
  4042. test "$am__universal" = false || continue
  4043. ;;
  4044. nosideeffect)
  4045. # After this tag, mechanisms are not by side-effect, so they'll
  4046. # only be used when explicitly requested.
  4047. if test "x$enable_dependency_tracking" = xyes; then
  4048. continue
  4049. else
  4050. break
  4051. fi
  4052. ;;
  4053. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4054. # This compiler won't grok '-c -o', but also, the minuso test has
  4055. # not run yet. These depmodes are late enough in the game, and
  4056. # so weak that their functioning should not be impacted.
  4057. am__obj=conftest.${OBJEXT-o}
  4058. am__minus_obj=
  4059. ;;
  4060. none) break ;;
  4061. esac
  4062. if depmode=$depmode \
  4063. source=sub/conftest.c object=$am__obj \
  4064. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4065. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4066. >/dev/null 2>conftest.err &&
  4067. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4068. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4069. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4070. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4071. # icc doesn't choke on unknown options, it will just issue warnings
  4072. # or remarks (even with -Werror). So we grep stderr for any message
  4073. # that says an option was ignored or not supported.
  4074. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4075. # icc: Command line warning: ignoring option '-M'; no argument required
  4076. # The diagnosis changed in icc 8.0:
  4077. # icc: Command line remark: option '-MP' not supported
  4078. if (grep 'ignoring option' conftest.err ||
  4079. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4080. am_cv_CCAS_dependencies_compiler_type=$depmode
  4081. break
  4082. fi
  4083. fi
  4084. done
  4085. cd ..
  4086. rm -rf conftest.dir
  4087. else
  4088. am_cv_CCAS_dependencies_compiler_type=none
  4089. fi
  4090. fi
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4092. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4093. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4094. if
  4095. test "x$enable_dependency_tracking" != xno \
  4096. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4097. am__fastdepCCAS_TRUE=
  4098. am__fastdepCCAS_FALSE='#'
  4099. else
  4100. am__fastdepCCAS_TRUE='#'
  4101. am__fastdepCCAS_FALSE=
  4102. fi
  4103. ac_ext=c
  4104. ac_cpp='$CPP $CPPFLAGS'
  4105. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4106. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4107. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4108. if test -n "$ac_tool_prefix"; then
  4109. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4110. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4112. $as_echo_n "checking for $ac_word... " >&6; }
  4113. if ${ac_cv_prog_CC+:} false; then :
  4114. $as_echo_n "(cached) " >&6
  4115. else
  4116. if test -n "$CC"; then
  4117. ac_cv_prog_CC="$CC" # Let the user override the test.
  4118. else
  4119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4120. for as_dir in $PATH
  4121. do
  4122. IFS=$as_save_IFS
  4123. test -z "$as_dir" && as_dir=.
  4124. for ac_exec_ext in '' $ac_executable_extensions; do
  4125. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4126. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4128. break 2
  4129. fi
  4130. done
  4131. done
  4132. IFS=$as_save_IFS
  4133. fi
  4134. fi
  4135. CC=$ac_cv_prog_CC
  4136. if test -n "$CC"; then
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4138. $as_echo "$CC" >&6; }
  4139. else
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4141. $as_echo "no" >&6; }
  4142. fi
  4143. fi
  4144. if test -z "$ac_cv_prog_CC"; then
  4145. ac_ct_CC=$CC
  4146. # Extract the first word of "gcc", so it can be a program name with args.
  4147. set dummy gcc; ac_word=$2
  4148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4149. $as_echo_n "checking for $ac_word... " >&6; }
  4150. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4151. $as_echo_n "(cached) " >&6
  4152. else
  4153. if test -n "$ac_ct_CC"; then
  4154. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4155. else
  4156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4157. for as_dir in $PATH
  4158. do
  4159. IFS=$as_save_IFS
  4160. test -z "$as_dir" && as_dir=.
  4161. for ac_exec_ext in '' $ac_executable_extensions; do
  4162. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4163. ac_cv_prog_ac_ct_CC="gcc"
  4164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4165. break 2
  4166. fi
  4167. done
  4168. done
  4169. IFS=$as_save_IFS
  4170. fi
  4171. fi
  4172. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4173. if test -n "$ac_ct_CC"; then
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4175. $as_echo "$ac_ct_CC" >&6; }
  4176. else
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4178. $as_echo "no" >&6; }
  4179. fi
  4180. if test "x$ac_ct_CC" = x; then
  4181. CC=""
  4182. else
  4183. case $cross_compiling:$ac_tool_warned in
  4184. yes:)
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4186. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4187. ac_tool_warned=yes ;;
  4188. esac
  4189. CC=$ac_ct_CC
  4190. fi
  4191. else
  4192. CC="$ac_cv_prog_CC"
  4193. fi
  4194. if test -z "$CC"; then
  4195. if test -n "$ac_tool_prefix"; then
  4196. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4197. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4199. $as_echo_n "checking for $ac_word... " >&6; }
  4200. if ${ac_cv_prog_CC+:} false; then :
  4201. $as_echo_n "(cached) " >&6
  4202. else
  4203. if test -n "$CC"; then
  4204. ac_cv_prog_CC="$CC" # Let the user override the test.
  4205. else
  4206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4207. for as_dir in $PATH
  4208. do
  4209. IFS=$as_save_IFS
  4210. test -z "$as_dir" && as_dir=.
  4211. for ac_exec_ext in '' $ac_executable_extensions; do
  4212. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4213. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4215. break 2
  4216. fi
  4217. done
  4218. done
  4219. IFS=$as_save_IFS
  4220. fi
  4221. fi
  4222. CC=$ac_cv_prog_CC
  4223. if test -n "$CC"; then
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4225. $as_echo "$CC" >&6; }
  4226. else
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4228. $as_echo "no" >&6; }
  4229. fi
  4230. fi
  4231. fi
  4232. if test -z "$CC"; then
  4233. # Extract the first word of "cc", so it can be a program name with args.
  4234. set dummy cc; ac_word=$2
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4236. $as_echo_n "checking for $ac_word... " >&6; }
  4237. if ${ac_cv_prog_CC+:} false; then :
  4238. $as_echo_n "(cached) " >&6
  4239. else
  4240. if test -n "$CC"; then
  4241. ac_cv_prog_CC="$CC" # Let the user override the test.
  4242. else
  4243. ac_prog_rejected=no
  4244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4245. for as_dir in $PATH
  4246. do
  4247. IFS=$as_save_IFS
  4248. test -z "$as_dir" && as_dir=.
  4249. for ac_exec_ext in '' $ac_executable_extensions; do
  4250. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4251. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4252. ac_prog_rejected=yes
  4253. continue
  4254. fi
  4255. ac_cv_prog_CC="cc"
  4256. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4257. break 2
  4258. fi
  4259. done
  4260. done
  4261. IFS=$as_save_IFS
  4262. if test $ac_prog_rejected = yes; then
  4263. # We found a bogon in the path, so make sure we never use it.
  4264. set dummy $ac_cv_prog_CC
  4265. shift
  4266. if test $# != 0; then
  4267. # We chose a different compiler from the bogus one.
  4268. # However, it has the same basename, so the bogon will be chosen
  4269. # first if we set CC to just the basename; use the full file name.
  4270. shift
  4271. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4272. fi
  4273. fi
  4274. fi
  4275. fi
  4276. CC=$ac_cv_prog_CC
  4277. if test -n "$CC"; then
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4279. $as_echo "$CC" >&6; }
  4280. else
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4282. $as_echo "no" >&6; }
  4283. fi
  4284. fi
  4285. if test -z "$CC"; then
  4286. if test -n "$ac_tool_prefix"; then
  4287. for ac_prog in cl.exe
  4288. do
  4289. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4290. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4292. $as_echo_n "checking for $ac_word... " >&6; }
  4293. if ${ac_cv_prog_CC+:} false; then :
  4294. $as_echo_n "(cached) " >&6
  4295. else
  4296. if test -n "$CC"; then
  4297. ac_cv_prog_CC="$CC" # Let the user override the test.
  4298. else
  4299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4300. for as_dir in $PATH
  4301. do
  4302. IFS=$as_save_IFS
  4303. test -z "$as_dir" && as_dir=.
  4304. for ac_exec_ext in '' $ac_executable_extensions; do
  4305. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4306. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4308. break 2
  4309. fi
  4310. done
  4311. done
  4312. IFS=$as_save_IFS
  4313. fi
  4314. fi
  4315. CC=$ac_cv_prog_CC
  4316. if test -n "$CC"; then
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4318. $as_echo "$CC" >&6; }
  4319. else
  4320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4321. $as_echo "no" >&6; }
  4322. fi
  4323. test -n "$CC" && break
  4324. done
  4325. fi
  4326. if test -z "$CC"; then
  4327. ac_ct_CC=$CC
  4328. for ac_prog in cl.exe
  4329. do
  4330. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4331. set dummy $ac_prog; ac_word=$2
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4333. $as_echo_n "checking for $ac_word... " >&6; }
  4334. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4335. $as_echo_n "(cached) " >&6
  4336. else
  4337. if test -n "$ac_ct_CC"; then
  4338. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4339. else
  4340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4341. for as_dir in $PATH
  4342. do
  4343. IFS=$as_save_IFS
  4344. test -z "$as_dir" && as_dir=.
  4345. for ac_exec_ext in '' $ac_executable_extensions; do
  4346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4347. ac_cv_prog_ac_ct_CC="$ac_prog"
  4348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4349. break 2
  4350. fi
  4351. done
  4352. done
  4353. IFS=$as_save_IFS
  4354. fi
  4355. fi
  4356. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4357. if test -n "$ac_ct_CC"; then
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4359. $as_echo "$ac_ct_CC" >&6; }
  4360. else
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4362. $as_echo "no" >&6; }
  4363. fi
  4364. test -n "$ac_ct_CC" && break
  4365. done
  4366. if test "x$ac_ct_CC" = x; then
  4367. CC=""
  4368. else
  4369. case $cross_compiling:$ac_tool_warned in
  4370. yes:)
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4372. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4373. ac_tool_warned=yes ;;
  4374. esac
  4375. CC=$ac_ct_CC
  4376. fi
  4377. fi
  4378. fi
  4379. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4380. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4381. as_fn_error $? "no acceptable C compiler found in \$PATH
  4382. See \`config.log' for more details" "$LINENO" 5; }
  4383. # Provide some information about the compiler.
  4384. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4385. set X $ac_compile
  4386. ac_compiler=$2
  4387. for ac_option in --version -v -V -qversion; do
  4388. { { ac_try="$ac_compiler $ac_option >&5"
  4389. case "(($ac_try" in
  4390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4391. *) ac_try_echo=$ac_try;;
  4392. esac
  4393. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4394. $as_echo "$ac_try_echo"; } >&5
  4395. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4396. ac_status=$?
  4397. if test -s conftest.err; then
  4398. sed '10a\
  4399. ... rest of stderr output deleted ...
  4400. 10q' conftest.err >conftest.er1
  4401. cat conftest.er1 >&5
  4402. fi
  4403. rm -f conftest.er1 conftest.err
  4404. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4405. test $ac_status = 0; }
  4406. done
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4408. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4409. if ${ac_cv_c_compiler_gnu+:} false; then :
  4410. $as_echo_n "(cached) " >&6
  4411. else
  4412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4413. /* end confdefs.h. */
  4414. int
  4415. main ()
  4416. {
  4417. #ifndef __GNUC__
  4418. choke me
  4419. #endif
  4420. ;
  4421. return 0;
  4422. }
  4423. _ACEOF
  4424. if ac_fn_c_try_compile "$LINENO"; then :
  4425. ac_compiler_gnu=yes
  4426. else
  4427. ac_compiler_gnu=no
  4428. fi
  4429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4430. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4431. fi
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4433. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4434. if test $ac_compiler_gnu = yes; then
  4435. GCC=yes
  4436. else
  4437. GCC=
  4438. fi
  4439. ac_test_CFLAGS=${CFLAGS+set}
  4440. ac_save_CFLAGS=$CFLAGS
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4442. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4443. if ${ac_cv_prog_cc_g+:} false; then :
  4444. $as_echo_n "(cached) " >&6
  4445. else
  4446. ac_save_c_werror_flag=$ac_c_werror_flag
  4447. ac_c_werror_flag=yes
  4448. ac_cv_prog_cc_g=no
  4449. CFLAGS="-g"
  4450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4451. /* end confdefs.h. */
  4452. int
  4453. main ()
  4454. {
  4455. ;
  4456. return 0;
  4457. }
  4458. _ACEOF
  4459. if ac_fn_c_try_compile "$LINENO"; then :
  4460. ac_cv_prog_cc_g=yes
  4461. else
  4462. CFLAGS=""
  4463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4464. /* end confdefs.h. */
  4465. int
  4466. main ()
  4467. {
  4468. ;
  4469. return 0;
  4470. }
  4471. _ACEOF
  4472. if ac_fn_c_try_compile "$LINENO"; then :
  4473. else
  4474. ac_c_werror_flag=$ac_save_c_werror_flag
  4475. CFLAGS="-g"
  4476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4477. /* end confdefs.h. */
  4478. int
  4479. main ()
  4480. {
  4481. ;
  4482. return 0;
  4483. }
  4484. _ACEOF
  4485. if ac_fn_c_try_compile "$LINENO"; then :
  4486. ac_cv_prog_cc_g=yes
  4487. fi
  4488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4489. fi
  4490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4491. fi
  4492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4493. ac_c_werror_flag=$ac_save_c_werror_flag
  4494. fi
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4496. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4497. if test "$ac_test_CFLAGS" = set; then
  4498. CFLAGS=$ac_save_CFLAGS
  4499. elif test $ac_cv_prog_cc_g = yes; then
  4500. if test "$GCC" = yes; then
  4501. CFLAGS="-g -O2"
  4502. else
  4503. CFLAGS="-g"
  4504. fi
  4505. else
  4506. if test "$GCC" = yes; then
  4507. CFLAGS="-O2"
  4508. else
  4509. CFLAGS=
  4510. fi
  4511. fi
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4513. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4514. if ${ac_cv_prog_cc_c89+:} false; then :
  4515. $as_echo_n "(cached) " >&6
  4516. else
  4517. ac_cv_prog_cc_c89=no
  4518. ac_save_CC=$CC
  4519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4520. /* end confdefs.h. */
  4521. #include <stdarg.h>
  4522. #include <stdio.h>
  4523. struct stat;
  4524. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4525. struct buf { int x; };
  4526. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4527. static char *e (p, i)
  4528. char **p;
  4529. int i;
  4530. {
  4531. return p[i];
  4532. }
  4533. static char *f (char * (*g) (char **, int), char **p, ...)
  4534. {
  4535. char *s;
  4536. va_list v;
  4537. va_start (v,p);
  4538. s = g (p, va_arg (v,int));
  4539. va_end (v);
  4540. return s;
  4541. }
  4542. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4543. function prototypes and stuff, but not '\xHH' hex character constants.
  4544. These don't provoke an error unfortunately, instead are silently treated
  4545. as 'x'. The following induces an error, until -std is added to get
  4546. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4547. array size at least. It's necessary to write '\x00'==0 to get something
  4548. that's true only with -std. */
  4549. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4550. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4551. inside strings and character constants. */
  4552. #define FOO(x) 'x'
  4553. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4554. int test (int i, double x);
  4555. struct s1 {int (*f) (int a);};
  4556. struct s2 {int (*f) (double a);};
  4557. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4558. int argc;
  4559. char **argv;
  4560. int
  4561. main ()
  4562. {
  4563. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4564. ;
  4565. return 0;
  4566. }
  4567. _ACEOF
  4568. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4569. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4570. do
  4571. CC="$ac_save_CC $ac_arg"
  4572. if ac_fn_c_try_compile "$LINENO"; then :
  4573. ac_cv_prog_cc_c89=$ac_arg
  4574. fi
  4575. rm -f core conftest.err conftest.$ac_objext
  4576. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4577. done
  4578. rm -f conftest.$ac_ext
  4579. CC=$ac_save_CC
  4580. fi
  4581. # AC_CACHE_VAL
  4582. case "x$ac_cv_prog_cc_c89" in
  4583. x)
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4585. $as_echo "none needed" >&6; } ;;
  4586. xno)
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4588. $as_echo "unsupported" >&6; } ;;
  4589. *)
  4590. CC="$CC $ac_cv_prog_cc_c89"
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4592. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4593. esac
  4594. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4595. fi
  4596. ac_ext=c
  4597. ac_cpp='$CPP $CPPFLAGS'
  4598. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4599. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4600. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4601. depcc="$CC" am_compiler_list=
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4603. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4604. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4605. $as_echo_n "(cached) " >&6
  4606. else
  4607. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4608. # We make a subdir and do the tests there. Otherwise we can end up
  4609. # making bogus files that we don't know about and never remove. For
  4610. # instance it was reported that on HP-UX the gcc test will end up
  4611. # making a dummy file named 'D' -- because '-MD' means "put the output
  4612. # in D".
  4613. rm -rf conftest.dir
  4614. mkdir conftest.dir
  4615. # Copy depcomp to subdir because otherwise we won't find it if we're
  4616. # using a relative directory.
  4617. cp "$am_depcomp" conftest.dir
  4618. cd conftest.dir
  4619. # We will build objects and dependencies in a subdirectory because
  4620. # it helps to detect inapplicable dependency modes. For instance
  4621. # both Tru64's cc and ICC support -MD to output dependencies as a
  4622. # side effect of compilation, but ICC will put the dependencies in
  4623. # the current directory while Tru64 will put them in the object
  4624. # directory.
  4625. mkdir sub
  4626. am_cv_CC_dependencies_compiler_type=none
  4627. if test "$am_compiler_list" = ""; then
  4628. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4629. fi
  4630. am__universal=false
  4631. case " $depcc " in #(
  4632. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4633. esac
  4634. for depmode in $am_compiler_list; do
  4635. # Setup a source with many dependencies, because some compilers
  4636. # like to wrap large dependency lists on column 80 (with \), and
  4637. # we should not choose a depcomp mode which is confused by this.
  4638. #
  4639. # We need to recreate these files for each test, as the compiler may
  4640. # overwrite some of them when testing with obscure command lines.
  4641. # This happens at least with the AIX C compiler.
  4642. : > sub/conftest.c
  4643. for i in 1 2 3 4 5 6; do
  4644. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4645. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4646. # Solaris 10 /bin/sh.
  4647. echo '/* dummy */' > sub/conftst$i.h
  4648. done
  4649. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4650. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4651. # mode. It turns out that the SunPro C++ compiler does not properly
  4652. # handle '-M -o', and we need to detect this. Also, some Intel
  4653. # versions had trouble with output in subdirs.
  4654. am__obj=sub/conftest.${OBJEXT-o}
  4655. am__minus_obj="-o $am__obj"
  4656. case $depmode in
  4657. gcc)
  4658. # This depmode causes a compiler race in universal mode.
  4659. test "$am__universal" = false || continue
  4660. ;;
  4661. nosideeffect)
  4662. # After this tag, mechanisms are not by side-effect, so they'll
  4663. # only be used when explicitly requested.
  4664. if test "x$enable_dependency_tracking" = xyes; then
  4665. continue
  4666. else
  4667. break
  4668. fi
  4669. ;;
  4670. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4671. # This compiler won't grok '-c -o', but also, the minuso test has
  4672. # not run yet. These depmodes are late enough in the game, and
  4673. # so weak that their functioning should not be impacted.
  4674. am__obj=conftest.${OBJEXT-o}
  4675. am__minus_obj=
  4676. ;;
  4677. none) break ;;
  4678. esac
  4679. if depmode=$depmode \
  4680. source=sub/conftest.c object=$am__obj \
  4681. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4682. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4683. >/dev/null 2>conftest.err &&
  4684. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4685. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4686. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4687. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4688. # icc doesn't choke on unknown options, it will just issue warnings
  4689. # or remarks (even with -Werror). So we grep stderr for any message
  4690. # that says an option was ignored or not supported.
  4691. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4692. # icc: Command line warning: ignoring option '-M'; no argument required
  4693. # The diagnosis changed in icc 8.0:
  4694. # icc: Command line remark: option '-MP' not supported
  4695. if (grep 'ignoring option' conftest.err ||
  4696. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4697. am_cv_CC_dependencies_compiler_type=$depmode
  4698. break
  4699. fi
  4700. fi
  4701. done
  4702. cd ..
  4703. rm -rf conftest.dir
  4704. else
  4705. am_cv_CC_dependencies_compiler_type=none
  4706. fi
  4707. fi
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4709. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4710. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4711. if
  4712. test "x$enable_dependency_tracking" != xno \
  4713. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4714. am__fastdepCC_TRUE=
  4715. am__fastdepCC_FALSE='#'
  4716. else
  4717. am__fastdepCC_TRUE='#'
  4718. am__fastdepCC_FALSE=
  4719. fi
  4720. ac_ext=c
  4721. ac_cpp='$CPP $CPPFLAGS'
  4722. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4723. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4724. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4726. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4727. # On Suns, sometimes $CPP names a directory.
  4728. if test -n "$CPP" && test -d "$CPP"; then
  4729. CPP=
  4730. fi
  4731. if test -z "$CPP"; then
  4732. if ${ac_cv_prog_CPP+:} false; then :
  4733. $as_echo_n "(cached) " >&6
  4734. else
  4735. # Double quotes because CPP needs to be expanded
  4736. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4737. do
  4738. ac_preproc_ok=false
  4739. for ac_c_preproc_warn_flag in '' yes
  4740. do
  4741. # Use a header file that comes with gcc, so configuring glibc
  4742. # with a fresh cross-compiler works.
  4743. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4744. # <limits.h> exists even on freestanding compilers.
  4745. # On the NeXT, cc -E runs the code through the compiler's parser,
  4746. # not just through cpp. "Syntax error" is here to catch this case.
  4747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4748. /* end confdefs.h. */
  4749. #ifdef __STDC__
  4750. # include <limits.h>
  4751. #else
  4752. # include <assert.h>
  4753. #endif
  4754. Syntax error
  4755. _ACEOF
  4756. if ac_fn_c_try_cpp "$LINENO"; then :
  4757. else
  4758. # Broken: fails on valid input.
  4759. continue
  4760. fi
  4761. rm -f conftest.err conftest.i conftest.$ac_ext
  4762. # OK, works on sane cases. Now check whether nonexistent headers
  4763. # can be detected and how.
  4764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4765. /* end confdefs.h. */
  4766. #include <ac_nonexistent.h>
  4767. _ACEOF
  4768. if ac_fn_c_try_cpp "$LINENO"; then :
  4769. # Broken: success on invalid input.
  4770. continue
  4771. else
  4772. # Passes both tests.
  4773. ac_preproc_ok=:
  4774. break
  4775. fi
  4776. rm -f conftest.err conftest.i conftest.$ac_ext
  4777. done
  4778. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4779. rm -f conftest.i conftest.err conftest.$ac_ext
  4780. if $ac_preproc_ok; then :
  4781. break
  4782. fi
  4783. done
  4784. ac_cv_prog_CPP=$CPP
  4785. fi
  4786. CPP=$ac_cv_prog_CPP
  4787. else
  4788. ac_cv_prog_CPP=$CPP
  4789. fi
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4791. $as_echo "$CPP" >&6; }
  4792. ac_preproc_ok=false
  4793. for ac_c_preproc_warn_flag in '' yes
  4794. do
  4795. # Use a header file that comes with gcc, so configuring glibc
  4796. # with a fresh cross-compiler works.
  4797. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4798. # <limits.h> exists even on freestanding compilers.
  4799. # On the NeXT, cc -E runs the code through the compiler's parser,
  4800. # not just through cpp. "Syntax error" is here to catch this case.
  4801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4802. /* end confdefs.h. */
  4803. #ifdef __STDC__
  4804. # include <limits.h>
  4805. #else
  4806. # include <assert.h>
  4807. #endif
  4808. Syntax error
  4809. _ACEOF
  4810. if ac_fn_c_try_cpp "$LINENO"; then :
  4811. else
  4812. # Broken: fails on valid input.
  4813. continue
  4814. fi
  4815. rm -f conftest.err conftest.i conftest.$ac_ext
  4816. # OK, works on sane cases. Now check whether nonexistent headers
  4817. # can be detected and how.
  4818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4819. /* end confdefs.h. */
  4820. #include <ac_nonexistent.h>
  4821. _ACEOF
  4822. if ac_fn_c_try_cpp "$LINENO"; then :
  4823. # Broken: success on invalid input.
  4824. continue
  4825. else
  4826. # Passes both tests.
  4827. ac_preproc_ok=:
  4828. break
  4829. fi
  4830. rm -f conftest.err conftest.i conftest.$ac_ext
  4831. done
  4832. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4833. rm -f conftest.i conftest.err conftest.$ac_ext
  4834. if $ac_preproc_ok; then :
  4835. else
  4836. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4837. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4838. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4839. See \`config.log' for more details" "$LINENO" 5; }
  4840. fi
  4841. ac_ext=c
  4842. ac_cpp='$CPP $CPPFLAGS'
  4843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4847. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4848. if ${ac_cv_path_GREP+:} false; then :
  4849. $as_echo_n "(cached) " >&6
  4850. else
  4851. if test -z "$GREP"; then
  4852. ac_path_GREP_found=false
  4853. # Loop through the user's path and test for each of PROGNAME-LIST
  4854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4855. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4856. do
  4857. IFS=$as_save_IFS
  4858. test -z "$as_dir" && as_dir=.
  4859. for ac_prog in grep ggrep; do
  4860. for ac_exec_ext in '' $ac_executable_extensions; do
  4861. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4862. as_fn_executable_p "$ac_path_GREP" || continue
  4863. # Check for GNU ac_path_GREP and select it if it is found.
  4864. # Check for GNU $ac_path_GREP
  4865. case `"$ac_path_GREP" --version 2>&1` in
  4866. *GNU*)
  4867. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4868. *)
  4869. ac_count=0
  4870. $as_echo_n 0123456789 >"conftest.in"
  4871. while :
  4872. do
  4873. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4874. mv "conftest.tmp" "conftest.in"
  4875. cp "conftest.in" "conftest.nl"
  4876. $as_echo 'GREP' >> "conftest.nl"
  4877. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4878. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4879. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4880. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4881. # Best one so far, save it but keep looking for a better one
  4882. ac_cv_path_GREP="$ac_path_GREP"
  4883. ac_path_GREP_max=$ac_count
  4884. fi
  4885. # 10*(2^10) chars as input seems more than enough
  4886. test $ac_count -gt 10 && break
  4887. done
  4888. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4889. esac
  4890. $ac_path_GREP_found && break 3
  4891. done
  4892. done
  4893. done
  4894. IFS=$as_save_IFS
  4895. if test -z "$ac_cv_path_GREP"; then
  4896. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4897. fi
  4898. else
  4899. ac_cv_path_GREP=$GREP
  4900. fi
  4901. fi
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4903. $as_echo "$ac_cv_path_GREP" >&6; }
  4904. GREP="$ac_cv_path_GREP"
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4906. $as_echo_n "checking for egrep... " >&6; }
  4907. if ${ac_cv_path_EGREP+:} false; then :
  4908. $as_echo_n "(cached) " >&6
  4909. else
  4910. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4911. then ac_cv_path_EGREP="$GREP -E"
  4912. else
  4913. if test -z "$EGREP"; then
  4914. ac_path_EGREP_found=false
  4915. # Loop through the user's path and test for each of PROGNAME-LIST
  4916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4917. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4918. do
  4919. IFS=$as_save_IFS
  4920. test -z "$as_dir" && as_dir=.
  4921. for ac_prog in egrep; do
  4922. for ac_exec_ext in '' $ac_executable_extensions; do
  4923. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4924. as_fn_executable_p "$ac_path_EGREP" || continue
  4925. # Check for GNU ac_path_EGREP and select it if it is found.
  4926. # Check for GNU $ac_path_EGREP
  4927. case `"$ac_path_EGREP" --version 2>&1` in
  4928. *GNU*)
  4929. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4930. *)
  4931. ac_count=0
  4932. $as_echo_n 0123456789 >"conftest.in"
  4933. while :
  4934. do
  4935. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4936. mv "conftest.tmp" "conftest.in"
  4937. cp "conftest.in" "conftest.nl"
  4938. $as_echo 'EGREP' >> "conftest.nl"
  4939. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4940. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4941. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4942. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4943. # Best one so far, save it but keep looking for a better one
  4944. ac_cv_path_EGREP="$ac_path_EGREP"
  4945. ac_path_EGREP_max=$ac_count
  4946. fi
  4947. # 10*(2^10) chars as input seems more than enough
  4948. test $ac_count -gt 10 && break
  4949. done
  4950. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4951. esac
  4952. $ac_path_EGREP_found && break 3
  4953. done
  4954. done
  4955. done
  4956. IFS=$as_save_IFS
  4957. if test -z "$ac_cv_path_EGREP"; then
  4958. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4959. fi
  4960. else
  4961. ac_cv_path_EGREP=$EGREP
  4962. fi
  4963. fi
  4964. fi
  4965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4966. $as_echo "$ac_cv_path_EGREP" >&6; }
  4967. EGREP="$ac_cv_path_EGREP"
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4969. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4970. if ${ac_cv_c_const+:} false; then :
  4971. $as_echo_n "(cached) " >&6
  4972. else
  4973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4974. /* end confdefs.h. */
  4975. int
  4976. main ()
  4977. {
  4978. #ifndef __cplusplus
  4979. /* Ultrix mips cc rejects this sort of thing. */
  4980. typedef int charset[2];
  4981. const charset cs = { 0, 0 };
  4982. /* SunOS 4.1.1 cc rejects this. */
  4983. char const *const *pcpcc;
  4984. char **ppc;
  4985. /* NEC SVR4.0.2 mips cc rejects this. */
  4986. struct point {int x, y;};
  4987. static struct point const zero = {0,0};
  4988. /* AIX XL C 1.02.0.0 rejects this.
  4989. It does not let you subtract one const X* pointer from another in
  4990. an arm of an if-expression whose if-part is not a constant
  4991. expression */
  4992. const char *g = "string";
  4993. pcpcc = &g + (g ? g-g : 0);
  4994. /* HPUX 7.0 cc rejects these. */
  4995. ++pcpcc;
  4996. ppc = (char**) pcpcc;
  4997. pcpcc = (char const *const *) ppc;
  4998. { /* SCO 3.2v4 cc rejects this sort of thing. */
  4999. char tx;
  5000. char *t = &tx;
  5001. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5002. *t++ = 0;
  5003. if (s) return 0;
  5004. }
  5005. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5006. int x[] = {25, 17};
  5007. const int *foo = &x[0];
  5008. ++foo;
  5009. }
  5010. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5011. typedef const int *iptr;
  5012. iptr p = 0;
  5013. ++p;
  5014. }
  5015. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  5016. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5017. struct s { int j; const int *ap[3]; } bx;
  5018. struct s *b = &bx; b->j = 5;
  5019. }
  5020. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5021. const int foo = 10;
  5022. if (!foo) return 0;
  5023. }
  5024. return !cs[0] && !zero.x;
  5025. #endif
  5026. ;
  5027. return 0;
  5028. }
  5029. _ACEOF
  5030. if ac_fn_c_try_compile "$LINENO"; then :
  5031. ac_cv_c_const=yes
  5032. else
  5033. ac_cv_c_const=no
  5034. fi
  5035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5036. fi
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  5038. $as_echo "$ac_cv_c_const" >&6; }
  5039. if test $ac_cv_c_const = no; then
  5040. $as_echo "#define const /**/" >>confdefs.h
  5041. fi
  5042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  5043. $as_echo_n "checking for inline... " >&6; }
  5044. if ${ac_cv_c_inline+:} false; then :
  5045. $as_echo_n "(cached) " >&6
  5046. else
  5047. ac_cv_c_inline=no
  5048. for ac_kw in inline __inline__ __inline; do
  5049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5050. /* end confdefs.h. */
  5051. #ifndef __cplusplus
  5052. typedef int foo_t;
  5053. static $ac_kw foo_t static_foo () {return 0; }
  5054. $ac_kw foo_t foo () {return 0; }
  5055. #endif
  5056. _ACEOF
  5057. if ac_fn_c_try_compile "$LINENO"; then :
  5058. ac_cv_c_inline=$ac_kw
  5059. fi
  5060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5061. test "$ac_cv_c_inline" != no && break
  5062. done
  5063. fi
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  5065. $as_echo "$ac_cv_c_inline" >&6; }
  5066. case $ac_cv_c_inline in
  5067. inline | yes) ;;
  5068. *)
  5069. case $ac_cv_c_inline in
  5070. no) ac_val=;;
  5071. *) ac_val=$ac_cv_c_inline;;
  5072. esac
  5073. cat >>confdefs.h <<_ACEOF
  5074. #ifndef __cplusplus
  5075. #define inline $ac_val
  5076. #endif
  5077. _ACEOF
  5078. ;;
  5079. esac
  5080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5081. $as_echo_n "checking for ANSI C header files... " >&6; }
  5082. if ${ac_cv_header_stdc+:} false; then :
  5083. $as_echo_n "(cached) " >&6
  5084. else
  5085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5086. /* end confdefs.h. */
  5087. #include <stdlib.h>
  5088. #include <stdarg.h>
  5089. #include <string.h>
  5090. #include <float.h>
  5091. int
  5092. main ()
  5093. {
  5094. ;
  5095. return 0;
  5096. }
  5097. _ACEOF
  5098. if ac_fn_c_try_compile "$LINENO"; then :
  5099. ac_cv_header_stdc=yes
  5100. else
  5101. ac_cv_header_stdc=no
  5102. fi
  5103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5104. if test $ac_cv_header_stdc = yes; then
  5105. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5107. /* end confdefs.h. */
  5108. #include <string.h>
  5109. _ACEOF
  5110. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5111. $EGREP "memchr" >/dev/null 2>&1; then :
  5112. else
  5113. ac_cv_header_stdc=no
  5114. fi
  5115. rm -f conftest*
  5116. fi
  5117. if test $ac_cv_header_stdc = yes; then
  5118. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5120. /* end confdefs.h. */
  5121. #include <stdlib.h>
  5122. _ACEOF
  5123. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5124. $EGREP "free" >/dev/null 2>&1; then :
  5125. else
  5126. ac_cv_header_stdc=no
  5127. fi
  5128. rm -f conftest*
  5129. fi
  5130. if test $ac_cv_header_stdc = yes; then
  5131. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5132. if test "$cross_compiling" = yes; then :
  5133. :
  5134. else
  5135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5136. /* end confdefs.h. */
  5137. #include <ctype.h>
  5138. #include <stdlib.h>
  5139. #if ((' ' & 0x0FF) == 0x020)
  5140. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5141. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5142. #else
  5143. # define ISLOWER(c) \
  5144. (('a' <= (c) && (c) <= 'i') \
  5145. || ('j' <= (c) && (c) <= 'r') \
  5146. || ('s' <= (c) && (c) <= 'z'))
  5147. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5148. #endif
  5149. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5150. int
  5151. main ()
  5152. {
  5153. int i;
  5154. for (i = 0; i < 256; i++)
  5155. if (XOR (islower (i), ISLOWER (i))
  5156. || toupper (i) != TOUPPER (i))
  5157. return 2;
  5158. return 0;
  5159. }
  5160. _ACEOF
  5161. if ac_fn_c_try_run "$LINENO"; then :
  5162. else
  5163. ac_cv_header_stdc=no
  5164. fi
  5165. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5166. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5167. fi
  5168. fi
  5169. fi
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5171. $as_echo "$ac_cv_header_stdc" >&6; }
  5172. if test $ac_cv_header_stdc = yes; then
  5173. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5174. fi
  5175. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5176. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5177. inttypes.h stdint.h unistd.h
  5178. do :
  5179. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5180. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5181. "
  5182. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5183. cat >>confdefs.h <<_ACEOF
  5184. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5185. _ACEOF
  5186. fi
  5187. done
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  5189. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5190. if ${ac_cv_c_bigendian+:} false; then :
  5191. $as_echo_n "(cached) " >&6
  5192. else
  5193. ac_cv_c_bigendian=unknown
  5194. # See if we're dealing with a universal compiler.
  5195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5196. /* end confdefs.h. */
  5197. #ifndef __APPLE_CC__
  5198. not a universal capable compiler
  5199. #endif
  5200. typedef int dummy;
  5201. _ACEOF
  5202. if ac_fn_c_try_compile "$LINENO"; then :
  5203. # Check for potential -arch flags. It is not universal unless
  5204. # there are at least two -arch flags with different values.
  5205. ac_arch=
  5206. ac_prev=
  5207. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  5208. if test -n "$ac_prev"; then
  5209. case $ac_word in
  5210. i?86 | x86_64 | ppc | ppc64)
  5211. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  5212. ac_arch=$ac_word
  5213. else
  5214. ac_cv_c_bigendian=universal
  5215. break
  5216. fi
  5217. ;;
  5218. esac
  5219. ac_prev=
  5220. elif test "x$ac_word" = "x-arch"; then
  5221. ac_prev=arch
  5222. fi
  5223. done
  5224. fi
  5225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5226. if test $ac_cv_c_bigendian = unknown; then
  5227. # See if sys/param.h defines the BYTE_ORDER macro.
  5228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5229. /* end confdefs.h. */
  5230. #include <sys/types.h>
  5231. #include <sys/param.h>
  5232. int
  5233. main ()
  5234. {
  5235. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5236. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5237. && LITTLE_ENDIAN)
  5238. bogus endian macros
  5239. #endif
  5240. ;
  5241. return 0;
  5242. }
  5243. _ACEOF
  5244. if ac_fn_c_try_compile "$LINENO"; then :
  5245. # It does; now see whether it defined to BIG_ENDIAN or not.
  5246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5247. /* end confdefs.h. */
  5248. #include <sys/types.h>
  5249. #include <sys/param.h>
  5250. int
  5251. main ()
  5252. {
  5253. #if BYTE_ORDER != BIG_ENDIAN
  5254. not big endian
  5255. #endif
  5256. ;
  5257. return 0;
  5258. }
  5259. _ACEOF
  5260. if ac_fn_c_try_compile "$LINENO"; then :
  5261. ac_cv_c_bigendian=yes
  5262. else
  5263. ac_cv_c_bigendian=no
  5264. fi
  5265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5266. fi
  5267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5268. fi
  5269. if test $ac_cv_c_bigendian = unknown; then
  5270. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  5271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5272. /* end confdefs.h. */
  5273. #include <limits.h>
  5274. int
  5275. main ()
  5276. {
  5277. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  5278. bogus endian macros
  5279. #endif
  5280. ;
  5281. return 0;
  5282. }
  5283. _ACEOF
  5284. if ac_fn_c_try_compile "$LINENO"; then :
  5285. # It does; now see whether it defined to _BIG_ENDIAN or not.
  5286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5287. /* end confdefs.h. */
  5288. #include <limits.h>
  5289. int
  5290. main ()
  5291. {
  5292. #ifndef _BIG_ENDIAN
  5293. not big endian
  5294. #endif
  5295. ;
  5296. return 0;
  5297. }
  5298. _ACEOF
  5299. if ac_fn_c_try_compile "$LINENO"; then :
  5300. ac_cv_c_bigendian=yes
  5301. else
  5302. ac_cv_c_bigendian=no
  5303. fi
  5304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5305. fi
  5306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5307. fi
  5308. if test $ac_cv_c_bigendian = unknown; then
  5309. # Compile a test program.
  5310. if test "$cross_compiling" = yes; then :
  5311. # Try to guess by grepping values from an object file.
  5312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5313. /* end confdefs.h. */
  5314. short int ascii_mm[] =
  5315. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5316. short int ascii_ii[] =
  5317. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5318. int use_ascii (int i) {
  5319. return ascii_mm[i] + ascii_ii[i];
  5320. }
  5321. short int ebcdic_ii[] =
  5322. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5323. short int ebcdic_mm[] =
  5324. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5325. int use_ebcdic (int i) {
  5326. return ebcdic_mm[i] + ebcdic_ii[i];
  5327. }
  5328. extern int foo;
  5329. int
  5330. main ()
  5331. {
  5332. return use_ascii (foo) == use_ebcdic (foo);
  5333. ;
  5334. return 0;
  5335. }
  5336. _ACEOF
  5337. if ac_fn_c_try_compile "$LINENO"; then :
  5338. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  5339. ac_cv_c_bigendian=yes
  5340. fi
  5341. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5342. if test "$ac_cv_c_bigendian" = unknown; then
  5343. ac_cv_c_bigendian=no
  5344. else
  5345. # finding both strings is unlikely to happen, but who knows?
  5346. ac_cv_c_bigendian=unknown
  5347. fi
  5348. fi
  5349. fi
  5350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5351. else
  5352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5353. /* end confdefs.h. */
  5354. $ac_includes_default
  5355. int
  5356. main ()
  5357. {
  5358. /* Are we little or big endian? From Harbison&Steele. */
  5359. union
  5360. {
  5361. long int l;
  5362. char c[sizeof (long int)];
  5363. } u;
  5364. u.l = 1;
  5365. return u.c[sizeof (long int) - 1] == 1;
  5366. ;
  5367. return 0;
  5368. }
  5369. _ACEOF
  5370. if ac_fn_c_try_run "$LINENO"; then :
  5371. ac_cv_c_bigendian=no
  5372. else
  5373. ac_cv_c_bigendian=yes
  5374. fi
  5375. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5376. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5377. fi
  5378. fi
  5379. fi
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  5381. $as_echo "$ac_cv_c_bigendian" >&6; }
  5382. case $ac_cv_c_bigendian in #(
  5383. yes)
  5384. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  5385. ;; #(
  5386. no)
  5387. ;; #(
  5388. universal)
  5389. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  5390. ;; #(
  5391. *)
  5392. as_fn_error $? "unknown endianness
  5393. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5394. esac
  5395. modules=auto
  5396. OUTPUT_OBJ="module.\$(OBJEXT)"
  5397. # Check whether --enable-modules was given.
  5398. if test "${enable_modules+set}" = set; then :
  5399. enableval=$enable_modules;
  5400. if test "x$enableval" = xyes
  5401. then
  5402. modules=enabled
  5403. else
  5404. modules=disabled
  5405. fi
  5406. else
  5407. if test "x$be_static" = "xyes"; then
  5408. modules=disabled
  5409. else
  5410. modules=auto
  5411. fi
  5412. fi
  5413. # Check whether --enable-static was given.
  5414. if test "${enable_static+set}" = set; then :
  5415. enableval=$enable_static; p=${PACKAGE-default}
  5416. case $enableval in
  5417. yes) enable_static=yes ;;
  5418. no) enable_static=no ;;
  5419. *)
  5420. enable_static=no
  5421. # Look at the argument we got. We use all the common list separators.
  5422. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5423. for pkg in $enableval; do
  5424. IFS="$lt_save_ifs"
  5425. if test "X$pkg" = "X$p"; then
  5426. enable_static=yes
  5427. fi
  5428. done
  5429. IFS="$lt_save_ifs"
  5430. ;;
  5431. esac
  5432. else
  5433. enable_static=no
  5434. fi
  5435. # Check whether --enable-shared was given.
  5436. if test "${enable_shared+set}" = set; then :
  5437. enableval=$enable_shared; p=${PACKAGE-default}
  5438. case $enableval in
  5439. yes) enable_shared=yes ;;
  5440. no) enable_shared=no ;;
  5441. *)
  5442. enable_shared=no
  5443. # Look at the argument we got. We use all the common list separators.
  5444. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5445. for pkg in $enableval; do
  5446. IFS="$lt_save_ifs"
  5447. if test "X$pkg" = "X$p"; then
  5448. enable_shared=yes
  5449. fi
  5450. done
  5451. IFS="$lt_save_ifs"
  5452. ;;
  5453. esac
  5454. else
  5455. enable_shared=yes
  5456. fi
  5457. if test x"$enable_shared" = xno; then
  5458. modules=disabled
  5459. LT_LDFLAGS=
  5460. else
  5461. $as_echo "#define DYNAMIC_BUILD 1" >>confdefs.h
  5462. fi
  5463. if test x"$modules" = xdisabled
  5464. then
  5465. echo "Modules disabled, not checking for libltdl."
  5466. else
  5467. have_ltdl=no
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
  5469. $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
  5470. if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
  5471. $as_echo_n "(cached) " >&6
  5472. else
  5473. ac_check_lib_save_LIBS=$LIBS
  5474. LIBS="-lltdl $LIBS"
  5475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5476. /* end confdefs.h. */
  5477. /* Override any GCC internal prototype to avoid an error.
  5478. Use char because int might match the return type of a GCC
  5479. builtin and then its argument prototype would still apply. */
  5480. #ifdef __cplusplus
  5481. extern "C"
  5482. #endif
  5483. char lt_dlinit ();
  5484. int
  5485. main ()
  5486. {
  5487. return lt_dlinit ();
  5488. ;
  5489. return 0;
  5490. }
  5491. _ACEOF
  5492. if ac_fn_c_try_link "$LINENO"; then :
  5493. ac_cv_lib_ltdl_lt_dlinit=yes
  5494. else
  5495. ac_cv_lib_ltdl_lt_dlinit=no
  5496. fi
  5497. rm -f core conftest.err conftest.$ac_objext \
  5498. conftest$ac_exeext conftest.$ac_ext
  5499. LIBS=$ac_check_lib_save_LIBS
  5500. fi
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
  5502. $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
  5503. if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
  5504. ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
  5505. if test "x$ac_cv_header_ltdl_h" = xyes; then :
  5506. have_ltdl=yes
  5507. $as_echo "#define HAVE_LTDL 1" >>confdefs.h
  5508. else
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found ltdl library but NOT the header file on your system" >&5
  5510. $as_echo "$as_me: WARNING: Found ltdl library but NOT the header file on your system" >&2;}
  5511. fi
  5512. else
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ltdl library not found" >&5
  5514. $as_echo "$as_me: WARNING: ltdl library not found" >&2;}
  5515. fi
  5516. if test x"$modules" = xenabled -a x"$have_ltdl" = xno; then
  5517. as_fn_error $? "Modules enabled but no libltdl found! This will not work..." "$LINENO" 5
  5518. fi
  5519. if test x"$modules" = xauto; then
  5520. if test x"$have_ltdl" = xyes; then
  5521. modules=enabled
  5522. echo "We found libltdl: Modules enabled."
  5523. else
  5524. echo "We did not find libltdl: Modules disabled."
  5525. modules=disabled
  5526. fi
  5527. fi
  5528. fi
  5529. if test x"$modules" = xdisabled
  5530. then
  5531. echo "Modules disabled."
  5532. else
  5533. # Enable module support in source code
  5534. $as_echo "#define USE_MODULES 1" >>confdefs.h
  5535. fi
  5536. enable_win32_dll=yes
  5537. case $host in
  5538. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  5539. if test -n "$ac_tool_prefix"; then
  5540. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  5541. set dummy ${ac_tool_prefix}as; ac_word=$2
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5543. $as_echo_n "checking for $ac_word... " >&6; }
  5544. if ${ac_cv_prog_AS+:} false; then :
  5545. $as_echo_n "(cached) " >&6
  5546. else
  5547. if test -n "$AS"; then
  5548. ac_cv_prog_AS="$AS" # Let the user override the test.
  5549. else
  5550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5551. for as_dir in $PATH
  5552. do
  5553. IFS=$as_save_IFS
  5554. test -z "$as_dir" && as_dir=.
  5555. for ac_exec_ext in '' $ac_executable_extensions; do
  5556. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5557. ac_cv_prog_AS="${ac_tool_prefix}as"
  5558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5559. break 2
  5560. fi
  5561. done
  5562. done
  5563. IFS=$as_save_IFS
  5564. fi
  5565. fi
  5566. AS=$ac_cv_prog_AS
  5567. if test -n "$AS"; then
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  5569. $as_echo "$AS" >&6; }
  5570. else
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5572. $as_echo "no" >&6; }
  5573. fi
  5574. fi
  5575. if test -z "$ac_cv_prog_AS"; then
  5576. ac_ct_AS=$AS
  5577. # Extract the first word of "as", so it can be a program name with args.
  5578. set dummy as; ac_word=$2
  5579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5580. $as_echo_n "checking for $ac_word... " >&6; }
  5581. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  5582. $as_echo_n "(cached) " >&6
  5583. else
  5584. if test -n "$ac_ct_AS"; then
  5585. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  5586. else
  5587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5588. for as_dir in $PATH
  5589. do
  5590. IFS=$as_save_IFS
  5591. test -z "$as_dir" && as_dir=.
  5592. for ac_exec_ext in '' $ac_executable_extensions; do
  5593. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5594. ac_cv_prog_ac_ct_AS="as"
  5595. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5596. break 2
  5597. fi
  5598. done
  5599. done
  5600. IFS=$as_save_IFS
  5601. fi
  5602. fi
  5603. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  5604. if test -n "$ac_ct_AS"; then
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  5606. $as_echo "$ac_ct_AS" >&6; }
  5607. else
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5609. $as_echo "no" >&6; }
  5610. fi
  5611. if test "x$ac_ct_AS" = x; then
  5612. AS="false"
  5613. else
  5614. case $cross_compiling:$ac_tool_warned in
  5615. yes:)
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5617. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5618. ac_tool_warned=yes ;;
  5619. esac
  5620. AS=$ac_ct_AS
  5621. fi
  5622. else
  5623. AS="$ac_cv_prog_AS"
  5624. fi
  5625. if test -n "$ac_tool_prefix"; then
  5626. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5627. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5629. $as_echo_n "checking for $ac_word... " >&6; }
  5630. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5631. $as_echo_n "(cached) " >&6
  5632. else
  5633. if test -n "$DLLTOOL"; then
  5634. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5635. else
  5636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5637. for as_dir in $PATH
  5638. do
  5639. IFS=$as_save_IFS
  5640. test -z "$as_dir" && as_dir=.
  5641. for ac_exec_ext in '' $ac_executable_extensions; do
  5642. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5643. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5644. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5645. break 2
  5646. fi
  5647. done
  5648. done
  5649. IFS=$as_save_IFS
  5650. fi
  5651. fi
  5652. DLLTOOL=$ac_cv_prog_DLLTOOL
  5653. if test -n "$DLLTOOL"; then
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5655. $as_echo "$DLLTOOL" >&6; }
  5656. else
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5658. $as_echo "no" >&6; }
  5659. fi
  5660. fi
  5661. if test -z "$ac_cv_prog_DLLTOOL"; then
  5662. ac_ct_DLLTOOL=$DLLTOOL
  5663. # Extract the first word of "dlltool", so it can be a program name with args.
  5664. set dummy dlltool; ac_word=$2
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5666. $as_echo_n "checking for $ac_word... " >&6; }
  5667. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5668. $as_echo_n "(cached) " >&6
  5669. else
  5670. if test -n "$ac_ct_DLLTOOL"; then
  5671. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5672. else
  5673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5674. for as_dir in $PATH
  5675. do
  5676. IFS=$as_save_IFS
  5677. test -z "$as_dir" && as_dir=.
  5678. for ac_exec_ext in '' $ac_executable_extensions; do
  5679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5680. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5682. break 2
  5683. fi
  5684. done
  5685. done
  5686. IFS=$as_save_IFS
  5687. fi
  5688. fi
  5689. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5690. if test -n "$ac_ct_DLLTOOL"; then
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5692. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5693. else
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5695. $as_echo "no" >&6; }
  5696. fi
  5697. if test "x$ac_ct_DLLTOOL" = x; then
  5698. DLLTOOL="false"
  5699. else
  5700. case $cross_compiling:$ac_tool_warned in
  5701. yes:)
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5703. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5704. ac_tool_warned=yes ;;
  5705. esac
  5706. DLLTOOL=$ac_ct_DLLTOOL
  5707. fi
  5708. else
  5709. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5710. fi
  5711. if test -n "$ac_tool_prefix"; then
  5712. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5713. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5715. $as_echo_n "checking for $ac_word... " >&6; }
  5716. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5717. $as_echo_n "(cached) " >&6
  5718. else
  5719. if test -n "$OBJDUMP"; then
  5720. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5721. else
  5722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5723. for as_dir in $PATH
  5724. do
  5725. IFS=$as_save_IFS
  5726. test -z "$as_dir" && as_dir=.
  5727. for ac_exec_ext in '' $ac_executable_extensions; do
  5728. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5729. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5730. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5731. break 2
  5732. fi
  5733. done
  5734. done
  5735. IFS=$as_save_IFS
  5736. fi
  5737. fi
  5738. OBJDUMP=$ac_cv_prog_OBJDUMP
  5739. if test -n "$OBJDUMP"; then
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5741. $as_echo "$OBJDUMP" >&6; }
  5742. else
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5744. $as_echo "no" >&6; }
  5745. fi
  5746. fi
  5747. if test -z "$ac_cv_prog_OBJDUMP"; then
  5748. ac_ct_OBJDUMP=$OBJDUMP
  5749. # Extract the first word of "objdump", so it can be a program name with args.
  5750. set dummy objdump; ac_word=$2
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5752. $as_echo_n "checking for $ac_word... " >&6; }
  5753. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5754. $as_echo_n "(cached) " >&6
  5755. else
  5756. if test -n "$ac_ct_OBJDUMP"; then
  5757. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5758. else
  5759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5760. for as_dir in $PATH
  5761. do
  5762. IFS=$as_save_IFS
  5763. test -z "$as_dir" && as_dir=.
  5764. for ac_exec_ext in '' $ac_executable_extensions; do
  5765. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5766. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5767. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5768. break 2
  5769. fi
  5770. done
  5771. done
  5772. IFS=$as_save_IFS
  5773. fi
  5774. fi
  5775. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5776. if test -n "$ac_ct_OBJDUMP"; then
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5778. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5779. else
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5781. $as_echo "no" >&6; }
  5782. fi
  5783. if test "x$ac_ct_OBJDUMP" = x; then
  5784. OBJDUMP="false"
  5785. else
  5786. case $cross_compiling:$ac_tool_warned in
  5787. yes:)
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5789. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5790. ac_tool_warned=yes ;;
  5791. esac
  5792. OBJDUMP=$ac_ct_OBJDUMP
  5793. fi
  5794. else
  5795. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5796. fi
  5797. ;;
  5798. esac
  5799. test -z "$AS" && AS=as
  5800. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5801. test -z "$OBJDUMP" && OBJDUMP=objdump
  5802. case `pwd` in
  5803. *\ * | *\ *)
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5805. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5806. esac
  5807. macro_version='2.4.2'
  5808. macro_revision='1.3337'
  5809. ltmain="$ac_aux_dir/ltmain.sh"
  5810. # Backslashify metacharacters that are still active within
  5811. # double-quoted strings.
  5812. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5813. # Same as above, but do not quote variable references.
  5814. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5815. # Sed substitution to delay expansion of an escaped shell variable in a
  5816. # double_quote_subst'ed string.
  5817. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5818. # Sed substitution to delay expansion of an escaped single quote.
  5819. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5820. # Sed substitution to avoid accidental globbing in evaled expressions
  5821. no_glob_subst='s/\*/\\\*/g'
  5822. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5823. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5824. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5826. $as_echo_n "checking how to print strings... " >&6; }
  5827. # Test print first, because it will be a builtin if present.
  5828. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5829. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5830. ECHO='print -r --'
  5831. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5832. ECHO='printf %s\n'
  5833. else
  5834. # Use this function as a fallback that always works.
  5835. func_fallback_echo ()
  5836. {
  5837. eval 'cat <<_LTECHO_EOF
  5838. $1
  5839. _LTECHO_EOF'
  5840. }
  5841. ECHO='func_fallback_echo'
  5842. fi
  5843. # func_echo_all arg...
  5844. # Invoke $ECHO with all args, space-separated.
  5845. func_echo_all ()
  5846. {
  5847. $ECHO ""
  5848. }
  5849. case "$ECHO" in
  5850. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5851. $as_echo "printf" >&6; } ;;
  5852. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5853. $as_echo "print -r" >&6; } ;;
  5854. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5855. $as_echo "cat" >&6; } ;;
  5856. esac
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5858. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5859. if ${ac_cv_path_SED+:} false; then :
  5860. $as_echo_n "(cached) " >&6
  5861. else
  5862. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5863. for ac_i in 1 2 3 4 5 6 7; do
  5864. ac_script="$ac_script$as_nl$ac_script"
  5865. done
  5866. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5867. { ac_script=; unset ac_script;}
  5868. if test -z "$SED"; then
  5869. ac_path_SED_found=false
  5870. # Loop through the user's path and test for each of PROGNAME-LIST
  5871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5872. for as_dir in $PATH
  5873. do
  5874. IFS=$as_save_IFS
  5875. test -z "$as_dir" && as_dir=.
  5876. for ac_prog in sed gsed; do
  5877. for ac_exec_ext in '' $ac_executable_extensions; do
  5878. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5879. as_fn_executable_p "$ac_path_SED" || continue
  5880. # Check for GNU ac_path_SED and select it if it is found.
  5881. # Check for GNU $ac_path_SED
  5882. case `"$ac_path_SED" --version 2>&1` in
  5883. *GNU*)
  5884. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5885. *)
  5886. ac_count=0
  5887. $as_echo_n 0123456789 >"conftest.in"
  5888. while :
  5889. do
  5890. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5891. mv "conftest.tmp" "conftest.in"
  5892. cp "conftest.in" "conftest.nl"
  5893. $as_echo '' >> "conftest.nl"
  5894. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5895. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5896. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5897. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5898. # Best one so far, save it but keep looking for a better one
  5899. ac_cv_path_SED="$ac_path_SED"
  5900. ac_path_SED_max=$ac_count
  5901. fi
  5902. # 10*(2^10) chars as input seems more than enough
  5903. test $ac_count -gt 10 && break
  5904. done
  5905. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5906. esac
  5907. $ac_path_SED_found && break 3
  5908. done
  5909. done
  5910. done
  5911. IFS=$as_save_IFS
  5912. if test -z "$ac_cv_path_SED"; then
  5913. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5914. fi
  5915. else
  5916. ac_cv_path_SED=$SED
  5917. fi
  5918. fi
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5920. $as_echo "$ac_cv_path_SED" >&6; }
  5921. SED="$ac_cv_path_SED"
  5922. rm -f conftest.sed
  5923. test -z "$SED" && SED=sed
  5924. Xsed="$SED -e 1s/^X//"
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5926. $as_echo_n "checking for fgrep... " >&6; }
  5927. if ${ac_cv_path_FGREP+:} false; then :
  5928. $as_echo_n "(cached) " >&6
  5929. else
  5930. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5931. then ac_cv_path_FGREP="$GREP -F"
  5932. else
  5933. if test -z "$FGREP"; then
  5934. ac_path_FGREP_found=false
  5935. # Loop through the user's path and test for each of PROGNAME-LIST
  5936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5937. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5938. do
  5939. IFS=$as_save_IFS
  5940. test -z "$as_dir" && as_dir=.
  5941. for ac_prog in fgrep; do
  5942. for ac_exec_ext in '' $ac_executable_extensions; do
  5943. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5944. as_fn_executable_p "$ac_path_FGREP" || continue
  5945. # Check for GNU ac_path_FGREP and select it if it is found.
  5946. # Check for GNU $ac_path_FGREP
  5947. case `"$ac_path_FGREP" --version 2>&1` in
  5948. *GNU*)
  5949. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5950. *)
  5951. ac_count=0
  5952. $as_echo_n 0123456789 >"conftest.in"
  5953. while :
  5954. do
  5955. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5956. mv "conftest.tmp" "conftest.in"
  5957. cp "conftest.in" "conftest.nl"
  5958. $as_echo 'FGREP' >> "conftest.nl"
  5959. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5960. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5961. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5962. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5963. # Best one so far, save it but keep looking for a better one
  5964. ac_cv_path_FGREP="$ac_path_FGREP"
  5965. ac_path_FGREP_max=$ac_count
  5966. fi
  5967. # 10*(2^10) chars as input seems more than enough
  5968. test $ac_count -gt 10 && break
  5969. done
  5970. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5971. esac
  5972. $ac_path_FGREP_found && break 3
  5973. done
  5974. done
  5975. done
  5976. IFS=$as_save_IFS
  5977. if test -z "$ac_cv_path_FGREP"; then
  5978. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5979. fi
  5980. else
  5981. ac_cv_path_FGREP=$FGREP
  5982. fi
  5983. fi
  5984. fi
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5986. $as_echo "$ac_cv_path_FGREP" >&6; }
  5987. FGREP="$ac_cv_path_FGREP"
  5988. test -z "$GREP" && GREP=grep
  5989. # Check whether --with-gnu-ld was given.
  5990. if test "${with_gnu_ld+set}" = set; then :
  5991. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5992. else
  5993. with_gnu_ld=no
  5994. fi
  5995. ac_prog=ld
  5996. if test "$GCC" = yes; then
  5997. # Check if gcc -print-prog-name=ld gives a path.
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5999. $as_echo_n "checking for ld used by $CC... " >&6; }
  6000. case $host in
  6001. *-*-mingw*)
  6002. # gcc leaves a trailing carriage return which upsets mingw
  6003. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6004. *)
  6005. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6006. esac
  6007. case $ac_prog in
  6008. # Accept absolute paths.
  6009. [\\/]* | ?:[\\/]*)
  6010. re_direlt='/[^/][^/]*/\.\./'
  6011. # Canonicalize the pathname of ld
  6012. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  6013. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  6014. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  6015. done
  6016. test -z "$LD" && LD="$ac_prog"
  6017. ;;
  6018. "")
  6019. # If it fails, then pretend we aren't using GCC.
  6020. ac_prog=ld
  6021. ;;
  6022. *)
  6023. # If it is relative, then search for the first ld in PATH.
  6024. with_gnu_ld=unknown
  6025. ;;
  6026. esac
  6027. elif test "$with_gnu_ld" = yes; then
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6029. $as_echo_n "checking for GNU ld... " >&6; }
  6030. else
  6031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6032. $as_echo_n "checking for non-GNU ld... " >&6; }
  6033. fi
  6034. if ${lt_cv_path_LD+:} false; then :
  6035. $as_echo_n "(cached) " >&6
  6036. else
  6037. if test -z "$LD"; then
  6038. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6039. for ac_dir in $PATH; do
  6040. IFS="$lt_save_ifs"
  6041. test -z "$ac_dir" && ac_dir=.
  6042. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6043. lt_cv_path_LD="$ac_dir/$ac_prog"
  6044. # Check to see if the program is GNU ld. I'd rather use --version,
  6045. # but apparently some variants of GNU ld only accept -v.
  6046. # Break only if it was the GNU/non-GNU ld that we prefer.
  6047. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6048. *GNU* | *'with BFD'*)
  6049. test "$with_gnu_ld" != no && break
  6050. ;;
  6051. *)
  6052. test "$with_gnu_ld" != yes && break
  6053. ;;
  6054. esac
  6055. fi
  6056. done
  6057. IFS="$lt_save_ifs"
  6058. else
  6059. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  6060. fi
  6061. fi
  6062. LD="$lt_cv_path_LD"
  6063. if test -n "$LD"; then
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6065. $as_echo "$LD" >&6; }
  6066. else
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6068. $as_echo "no" >&6; }
  6069. fi
  6070. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6072. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6073. if ${lt_cv_prog_gnu_ld+:} false; then :
  6074. $as_echo_n "(cached) " >&6
  6075. else
  6076. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6077. case `$LD -v 2>&1 </dev/null` in
  6078. *GNU* | *'with BFD'*)
  6079. lt_cv_prog_gnu_ld=yes
  6080. ;;
  6081. *)
  6082. lt_cv_prog_gnu_ld=no
  6083. ;;
  6084. esac
  6085. fi
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  6087. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  6088. with_gnu_ld=$lt_cv_prog_gnu_ld
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  6090. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  6091. if ${lt_cv_path_NM+:} false; then :
  6092. $as_echo_n "(cached) " >&6
  6093. else
  6094. if test -n "$NM"; then
  6095. # Let the user override the test.
  6096. lt_cv_path_NM="$NM"
  6097. else
  6098. lt_nm_to_check="${ac_tool_prefix}nm"
  6099. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6100. lt_nm_to_check="$lt_nm_to_check nm"
  6101. fi
  6102. for lt_tmp_nm in $lt_nm_to_check; do
  6103. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6104. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6105. IFS="$lt_save_ifs"
  6106. test -z "$ac_dir" && ac_dir=.
  6107. tmp_nm="$ac_dir/$lt_tmp_nm"
  6108. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6109. # Check to see if the nm accepts a BSD-compat flag.
  6110. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6111. # nm: unknown option "B" ignored
  6112. # Tru64's nm complains that /dev/null is an invalid object file
  6113. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6114. */dev/null* | *'Invalid file or object type'*)
  6115. lt_cv_path_NM="$tmp_nm -B"
  6116. break
  6117. ;;
  6118. *)
  6119. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6120. */dev/null*)
  6121. lt_cv_path_NM="$tmp_nm -p"
  6122. break
  6123. ;;
  6124. *)
  6125. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6126. continue # so that we can try to find one that supports BSD flags
  6127. ;;
  6128. esac
  6129. ;;
  6130. esac
  6131. fi
  6132. done
  6133. IFS="$lt_save_ifs"
  6134. done
  6135. : ${lt_cv_path_NM=no}
  6136. fi
  6137. fi
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  6139. $as_echo "$lt_cv_path_NM" >&6; }
  6140. if test "$lt_cv_path_NM" != "no"; then
  6141. NM="$lt_cv_path_NM"
  6142. else
  6143. # Didn't find any BSD compatible name lister, look for dumpbin.
  6144. if test -n "$DUMPBIN"; then :
  6145. # Let the user override the test.
  6146. else
  6147. if test -n "$ac_tool_prefix"; then
  6148. for ac_prog in dumpbin "link -dump"
  6149. do
  6150. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6151. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6153. $as_echo_n "checking for $ac_word... " >&6; }
  6154. if ${ac_cv_prog_DUMPBIN+:} false; then :
  6155. $as_echo_n "(cached) " >&6
  6156. else
  6157. if test -n "$DUMPBIN"; then
  6158. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  6159. else
  6160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6161. for as_dir in $PATH
  6162. do
  6163. IFS=$as_save_IFS
  6164. test -z "$as_dir" && as_dir=.
  6165. for ac_exec_ext in '' $ac_executable_extensions; do
  6166. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6167. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  6168. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6169. break 2
  6170. fi
  6171. done
  6172. done
  6173. IFS=$as_save_IFS
  6174. fi
  6175. fi
  6176. DUMPBIN=$ac_cv_prog_DUMPBIN
  6177. if test -n "$DUMPBIN"; then
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  6179. $as_echo "$DUMPBIN" >&6; }
  6180. else
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6182. $as_echo "no" >&6; }
  6183. fi
  6184. test -n "$DUMPBIN" && break
  6185. done
  6186. fi
  6187. if test -z "$DUMPBIN"; then
  6188. ac_ct_DUMPBIN=$DUMPBIN
  6189. for ac_prog in dumpbin "link -dump"
  6190. do
  6191. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6192. set dummy $ac_prog; ac_word=$2
  6193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6194. $as_echo_n "checking for $ac_word... " >&6; }
  6195. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  6196. $as_echo_n "(cached) " >&6
  6197. else
  6198. if test -n "$ac_ct_DUMPBIN"; then
  6199. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  6200. else
  6201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6202. for as_dir in $PATH
  6203. do
  6204. IFS=$as_save_IFS
  6205. test -z "$as_dir" && as_dir=.
  6206. for ac_exec_ext in '' $ac_executable_extensions; do
  6207. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6208. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  6209. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6210. break 2
  6211. fi
  6212. done
  6213. done
  6214. IFS=$as_save_IFS
  6215. fi
  6216. fi
  6217. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  6218. if test -n "$ac_ct_DUMPBIN"; then
  6219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  6220. $as_echo "$ac_ct_DUMPBIN" >&6; }
  6221. else
  6222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6223. $as_echo "no" >&6; }
  6224. fi
  6225. test -n "$ac_ct_DUMPBIN" && break
  6226. done
  6227. if test "x$ac_ct_DUMPBIN" = x; then
  6228. DUMPBIN=":"
  6229. else
  6230. case $cross_compiling:$ac_tool_warned in
  6231. yes:)
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6233. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6234. ac_tool_warned=yes ;;
  6235. esac
  6236. DUMPBIN=$ac_ct_DUMPBIN
  6237. fi
  6238. fi
  6239. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  6240. *COFF*)
  6241. DUMPBIN="$DUMPBIN -symbols"
  6242. ;;
  6243. *)
  6244. DUMPBIN=:
  6245. ;;
  6246. esac
  6247. fi
  6248. if test "$DUMPBIN" != ":"; then
  6249. NM="$DUMPBIN"
  6250. fi
  6251. fi
  6252. test -z "$NM" && NM=nm
  6253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6254. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  6255. if ${lt_cv_nm_interface+:} false; then :
  6256. $as_echo_n "(cached) " >&6
  6257. else
  6258. lt_cv_nm_interface="BSD nm"
  6259. echo "int some_variable = 0;" > conftest.$ac_ext
  6260. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  6261. (eval "$ac_compile" 2>conftest.err)
  6262. cat conftest.err >&5
  6263. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6264. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6265. cat conftest.err >&5
  6266. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6267. cat conftest.out >&5
  6268. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6269. lt_cv_nm_interface="MS dumpbin"
  6270. fi
  6271. rm -f conftest*
  6272. fi
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6274. $as_echo "$lt_cv_nm_interface" >&6; }
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6276. $as_echo_n "checking whether ln -s works... " >&6; }
  6277. LN_S=$as_ln_s
  6278. if test "$LN_S" = "ln -s"; then
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6280. $as_echo "yes" >&6; }
  6281. else
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6283. $as_echo "no, using $LN_S" >&6; }
  6284. fi
  6285. # find the maximum length of command line arguments
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6287. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6288. if ${lt_cv_sys_max_cmd_len+:} false; then :
  6289. $as_echo_n "(cached) " >&6
  6290. else
  6291. i=0
  6292. teststring="ABCD"
  6293. case $build_os in
  6294. msdosdjgpp*)
  6295. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6296. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6297. # during glob expansion). Even if it were fixed, the result of this
  6298. # check would be larger than it should be.
  6299. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6300. ;;
  6301. gnu*)
  6302. # Under GNU Hurd, this test is not required because there is
  6303. # no limit to the length of command line arguments.
  6304. # Libtool will interpret -1 as no limit whatsoever
  6305. lt_cv_sys_max_cmd_len=-1;
  6306. ;;
  6307. cygwin* | mingw* | cegcc*)
  6308. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6309. # about 5 minutes as the teststring grows exponentially.
  6310. # Worse, since 9x/ME are not pre-emptively multitasking,
  6311. # you end up with a "frozen" computer, even though with patience
  6312. # the test eventually succeeds (with a max line length of 256k).
  6313. # Instead, let's just punt: use the minimum linelength reported by
  6314. # all of the supported platforms: 8192 (on NT/2K/XP).
  6315. lt_cv_sys_max_cmd_len=8192;
  6316. ;;
  6317. mint*)
  6318. # On MiNT this can take a long time and run out of memory.
  6319. lt_cv_sys_max_cmd_len=8192;
  6320. ;;
  6321. amigaos*)
  6322. # On AmigaOS with pdksh, this test takes hours, literally.
  6323. # So we just punt and use a minimum line length of 8192.
  6324. lt_cv_sys_max_cmd_len=8192;
  6325. ;;
  6326. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  6327. # This has been around since 386BSD, at least. Likely further.
  6328. if test -x /sbin/sysctl; then
  6329. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6330. elif test -x /usr/sbin/sysctl; then
  6331. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6332. else
  6333. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6334. fi
  6335. # And add a safety zone
  6336. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6337. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6338. ;;
  6339. interix*)
  6340. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6341. lt_cv_sys_max_cmd_len=196608
  6342. ;;
  6343. os2*)
  6344. # The test takes a long time on OS/2.
  6345. lt_cv_sys_max_cmd_len=8192
  6346. ;;
  6347. osf*)
  6348. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6349. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6350. # nice to cause kernel panics so lets avoid the loop below.
  6351. # First set a reasonable default.
  6352. lt_cv_sys_max_cmd_len=16384
  6353. #
  6354. if test -x /sbin/sysconfig; then
  6355. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6356. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6357. esac
  6358. fi
  6359. ;;
  6360. sco3.2v5*)
  6361. lt_cv_sys_max_cmd_len=102400
  6362. ;;
  6363. sysv5* | sco5v6* | sysv4.2uw2*)
  6364. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6365. if test -n "$kargmax"; then
  6366. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6367. else
  6368. lt_cv_sys_max_cmd_len=32768
  6369. fi
  6370. ;;
  6371. *)
  6372. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6373. if test -n "$lt_cv_sys_max_cmd_len"; then
  6374. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6375. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6376. else
  6377. # Make teststring a little bigger before we do anything with it.
  6378. # a 1K string should be a reasonable start.
  6379. for i in 1 2 3 4 5 6 7 8 ; do
  6380. teststring=$teststring$teststring
  6381. done
  6382. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6383. # If test is not a shell built-in, we'll probably end up computing a
  6384. # maximum length that is only half of the actual maximum length, but
  6385. # we can't tell.
  6386. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  6387. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6388. test $i != 17 # 1/2 MB should be enough
  6389. do
  6390. i=`expr $i + 1`
  6391. teststring=$teststring$teststring
  6392. done
  6393. # Only check the string length outside the loop.
  6394. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6395. teststring=
  6396. # Add a significant safety factor because C++ compilers can tack on
  6397. # massive amounts of additional arguments before passing them to the
  6398. # linker. It appears as though 1/2 is a usable value.
  6399. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6400. fi
  6401. ;;
  6402. esac
  6403. fi
  6404. if test -n $lt_cv_sys_max_cmd_len ; then
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6406. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6407. else
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6409. $as_echo "none" >&6; }
  6410. fi
  6411. max_cmd_len=$lt_cv_sys_max_cmd_len
  6412. : ${CP="cp -f"}
  6413. : ${MV="mv -f"}
  6414. : ${RM="rm -f"}
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  6416. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  6417. # Try some XSI features
  6418. xsi_shell=no
  6419. ( _lt_dummy="a/b/c"
  6420. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  6421. = c,a/b,b/c, \
  6422. && eval 'test $(( 1 + 1 )) -eq 2 \
  6423. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6424. && xsi_shell=yes
  6425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  6426. $as_echo "$xsi_shell" >&6; }
  6427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  6428. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  6429. lt_shell_append=no
  6430. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  6431. >/dev/null 2>&1 \
  6432. && lt_shell_append=yes
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  6434. $as_echo "$lt_shell_append" >&6; }
  6435. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6436. lt_unset=unset
  6437. else
  6438. lt_unset=false
  6439. fi
  6440. # test EBCDIC or ASCII
  6441. case `echo X|tr X '\101'` in
  6442. A) # ASCII based system
  6443. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6444. lt_SP2NL='tr \040 \012'
  6445. lt_NL2SP='tr \015\012 \040\040'
  6446. ;;
  6447. *) # EBCDIC based system
  6448. lt_SP2NL='tr \100 \n'
  6449. lt_NL2SP='tr \r\n \100\100'
  6450. ;;
  6451. esac
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  6453. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  6454. if ${lt_cv_to_host_file_cmd+:} false; then :
  6455. $as_echo_n "(cached) " >&6
  6456. else
  6457. case $host in
  6458. *-*-mingw* )
  6459. case $build in
  6460. *-*-mingw* ) # actually msys
  6461. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  6462. ;;
  6463. *-*-cygwin* )
  6464. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  6465. ;;
  6466. * ) # otherwise, assume *nix
  6467. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  6468. ;;
  6469. esac
  6470. ;;
  6471. *-*-cygwin* )
  6472. case $build in
  6473. *-*-mingw* ) # actually msys
  6474. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  6475. ;;
  6476. *-*-cygwin* )
  6477. lt_cv_to_host_file_cmd=func_convert_file_noop
  6478. ;;
  6479. * ) # otherwise, assume *nix
  6480. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  6481. ;;
  6482. esac
  6483. ;;
  6484. * ) # unhandled hosts (and "normal" native builds)
  6485. lt_cv_to_host_file_cmd=func_convert_file_noop
  6486. ;;
  6487. esac
  6488. fi
  6489. to_host_file_cmd=$lt_cv_to_host_file_cmd
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  6491. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  6493. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  6494. if ${lt_cv_to_tool_file_cmd+:} false; then :
  6495. $as_echo_n "(cached) " >&6
  6496. else
  6497. #assume ordinary cross tools, or native build.
  6498. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6499. case $host in
  6500. *-*-mingw* )
  6501. case $build in
  6502. *-*-mingw* ) # actually msys
  6503. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6504. ;;
  6505. esac
  6506. ;;
  6507. esac
  6508. fi
  6509. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6511. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6513. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6514. if ${lt_cv_ld_reload_flag+:} false; then :
  6515. $as_echo_n "(cached) " >&6
  6516. else
  6517. lt_cv_ld_reload_flag='-r'
  6518. fi
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6520. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6521. reload_flag=$lt_cv_ld_reload_flag
  6522. case $reload_flag in
  6523. "" | " "*) ;;
  6524. *) reload_flag=" $reload_flag" ;;
  6525. esac
  6526. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6527. case $host_os in
  6528. cygwin* | mingw* | pw32* | cegcc*)
  6529. if test "$GCC" != yes; then
  6530. reload_cmds=false
  6531. fi
  6532. ;;
  6533. darwin*)
  6534. if test "$GCC" = yes; then
  6535. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6536. else
  6537. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6538. fi
  6539. ;;
  6540. esac
  6541. if test -n "$ac_tool_prefix"; then
  6542. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6543. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6545. $as_echo_n "checking for $ac_word... " >&6; }
  6546. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6547. $as_echo_n "(cached) " >&6
  6548. else
  6549. if test -n "$OBJDUMP"; then
  6550. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6551. else
  6552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6553. for as_dir in $PATH
  6554. do
  6555. IFS=$as_save_IFS
  6556. test -z "$as_dir" && as_dir=.
  6557. for ac_exec_ext in '' $ac_executable_extensions; do
  6558. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6559. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6561. break 2
  6562. fi
  6563. done
  6564. done
  6565. IFS=$as_save_IFS
  6566. fi
  6567. fi
  6568. OBJDUMP=$ac_cv_prog_OBJDUMP
  6569. if test -n "$OBJDUMP"; then
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6571. $as_echo "$OBJDUMP" >&6; }
  6572. else
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6574. $as_echo "no" >&6; }
  6575. fi
  6576. fi
  6577. if test -z "$ac_cv_prog_OBJDUMP"; then
  6578. ac_ct_OBJDUMP=$OBJDUMP
  6579. # Extract the first word of "objdump", so it can be a program name with args.
  6580. set dummy objdump; ac_word=$2
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6582. $as_echo_n "checking for $ac_word... " >&6; }
  6583. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6584. $as_echo_n "(cached) " >&6
  6585. else
  6586. if test -n "$ac_ct_OBJDUMP"; then
  6587. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6588. else
  6589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6590. for as_dir in $PATH
  6591. do
  6592. IFS=$as_save_IFS
  6593. test -z "$as_dir" && as_dir=.
  6594. for ac_exec_ext in '' $ac_executable_extensions; do
  6595. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6596. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6598. break 2
  6599. fi
  6600. done
  6601. done
  6602. IFS=$as_save_IFS
  6603. fi
  6604. fi
  6605. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6606. if test -n "$ac_ct_OBJDUMP"; then
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6608. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6609. else
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6611. $as_echo "no" >&6; }
  6612. fi
  6613. if test "x$ac_ct_OBJDUMP" = x; then
  6614. OBJDUMP="false"
  6615. else
  6616. case $cross_compiling:$ac_tool_warned in
  6617. yes:)
  6618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6619. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6620. ac_tool_warned=yes ;;
  6621. esac
  6622. OBJDUMP=$ac_ct_OBJDUMP
  6623. fi
  6624. else
  6625. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6626. fi
  6627. test -z "$OBJDUMP" && OBJDUMP=objdump
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6629. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6630. if ${lt_cv_deplibs_check_method+:} false; then :
  6631. $as_echo_n "(cached) " >&6
  6632. else
  6633. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6634. lt_cv_file_magic_test_file=
  6635. lt_cv_deplibs_check_method='unknown'
  6636. # Need to set the preceding variable on all platforms that support
  6637. # interlibrary dependencies.
  6638. # 'none' -- dependencies not supported.
  6639. # `unknown' -- same as none, but documents that we really don't know.
  6640. # 'pass_all' -- all dependencies passed with no checks.
  6641. # 'test_compile' -- check by making test program.
  6642. # 'file_magic [[regex]]' -- check by looking for files in library path
  6643. # which responds to the $file_magic_cmd with a given extended regex.
  6644. # If you have `file' or equivalent on your system and you're not sure
  6645. # whether `pass_all' will *always* work, you probably want this one.
  6646. case $host_os in
  6647. aix[4-9]*)
  6648. lt_cv_deplibs_check_method=pass_all
  6649. ;;
  6650. beos*)
  6651. lt_cv_deplibs_check_method=pass_all
  6652. ;;
  6653. bsdi[45]*)
  6654. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6655. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6656. lt_cv_file_magic_test_file=/shlib/libc.so
  6657. ;;
  6658. cygwin*)
  6659. # func_win32_libid is a shell function defined in ltmain.sh
  6660. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6661. lt_cv_file_magic_cmd='func_win32_libid'
  6662. ;;
  6663. mingw* | pw32*)
  6664. # Base MSYS/MinGW do not provide the 'file' command needed by
  6665. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6666. # unless we find 'file', for example because we are cross-compiling.
  6667. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6668. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6669. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6670. lt_cv_file_magic_cmd='func_win32_libid'
  6671. else
  6672. # Keep this pattern in sync with the one in func_win32_libid.
  6673. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6674. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6675. fi
  6676. ;;
  6677. cegcc*)
  6678. # use the weaker test based on 'objdump'. See mingw*.
  6679. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6680. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6681. ;;
  6682. darwin* | rhapsody*)
  6683. lt_cv_deplibs_check_method=pass_all
  6684. ;;
  6685. freebsd* | dragonfly*)
  6686. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6687. case $host_cpu in
  6688. i*86 )
  6689. # Not sure whether the presence of OpenBSD here was a mistake.
  6690. # Let's accept both of them until this is cleared up.
  6691. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6692. lt_cv_file_magic_cmd=/usr/bin/file
  6693. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6694. ;;
  6695. esac
  6696. else
  6697. lt_cv_deplibs_check_method=pass_all
  6698. fi
  6699. ;;
  6700. gnu*)
  6701. lt_cv_deplibs_check_method=pass_all
  6702. ;;
  6703. haiku*)
  6704. lt_cv_deplibs_check_method=pass_all
  6705. ;;
  6706. hpux10.20* | hpux11*)
  6707. lt_cv_file_magic_cmd=/usr/bin/file
  6708. case $host_cpu in
  6709. ia64*)
  6710. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6711. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6712. ;;
  6713. hppa*64*)
  6714. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  6715. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6716. ;;
  6717. *)
  6718. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6719. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6720. ;;
  6721. esac
  6722. ;;
  6723. interix[3-9]*)
  6724. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6725. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6726. ;;
  6727. irix5* | irix6* | nonstopux*)
  6728. case $LD in
  6729. *-32|*"-32 ") libmagic=32-bit;;
  6730. *-n32|*"-n32 ") libmagic=N32;;
  6731. *-64|*"-64 ") libmagic=64-bit;;
  6732. *) libmagic=never-match;;
  6733. esac
  6734. lt_cv_deplibs_check_method=pass_all
  6735. ;;
  6736. # This must be glibc/ELF.
  6737. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6738. lt_cv_deplibs_check_method=pass_all
  6739. ;;
  6740. netbsd*)
  6741. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6742. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6743. else
  6744. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6745. fi
  6746. ;;
  6747. newos6*)
  6748. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6749. lt_cv_file_magic_cmd=/usr/bin/file
  6750. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6751. ;;
  6752. *nto* | *qnx*)
  6753. lt_cv_deplibs_check_method=pass_all
  6754. ;;
  6755. openbsd*)
  6756. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6757. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6758. else
  6759. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6760. fi
  6761. ;;
  6762. osf3* | osf4* | osf5*)
  6763. lt_cv_deplibs_check_method=pass_all
  6764. ;;
  6765. rdos*)
  6766. lt_cv_deplibs_check_method=pass_all
  6767. ;;
  6768. solaris*)
  6769. lt_cv_deplibs_check_method=pass_all
  6770. ;;
  6771. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6772. lt_cv_deplibs_check_method=pass_all
  6773. ;;
  6774. sysv4 | sysv4.3*)
  6775. case $host_vendor in
  6776. motorola)
  6777. 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]'
  6778. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6779. ;;
  6780. ncr)
  6781. lt_cv_deplibs_check_method=pass_all
  6782. ;;
  6783. sequent)
  6784. lt_cv_file_magic_cmd='/bin/file'
  6785. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6786. ;;
  6787. sni)
  6788. lt_cv_file_magic_cmd='/bin/file'
  6789. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6790. lt_cv_file_magic_test_file=/lib/libc.so
  6791. ;;
  6792. siemens)
  6793. lt_cv_deplibs_check_method=pass_all
  6794. ;;
  6795. pc)
  6796. lt_cv_deplibs_check_method=pass_all
  6797. ;;
  6798. esac
  6799. ;;
  6800. tpf*)
  6801. lt_cv_deplibs_check_method=pass_all
  6802. ;;
  6803. esac
  6804. fi
  6805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6806. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6807. file_magic_glob=
  6808. want_nocaseglob=no
  6809. if test "$build" = "$host"; then
  6810. case $host_os in
  6811. mingw* | pw32*)
  6812. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6813. want_nocaseglob=yes
  6814. else
  6815. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6816. fi
  6817. ;;
  6818. esac
  6819. fi
  6820. file_magic_cmd=$lt_cv_file_magic_cmd
  6821. deplibs_check_method=$lt_cv_deplibs_check_method
  6822. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6823. if test -n "$ac_tool_prefix"; then
  6824. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6825. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6827. $as_echo_n "checking for $ac_word... " >&6; }
  6828. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6829. $as_echo_n "(cached) " >&6
  6830. else
  6831. if test -n "$DLLTOOL"; then
  6832. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6833. else
  6834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6835. for as_dir in $PATH
  6836. do
  6837. IFS=$as_save_IFS
  6838. test -z "$as_dir" && as_dir=.
  6839. for ac_exec_ext in '' $ac_executable_extensions; do
  6840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6841. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6843. break 2
  6844. fi
  6845. done
  6846. done
  6847. IFS=$as_save_IFS
  6848. fi
  6849. fi
  6850. DLLTOOL=$ac_cv_prog_DLLTOOL
  6851. if test -n "$DLLTOOL"; then
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6853. $as_echo "$DLLTOOL" >&6; }
  6854. else
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6856. $as_echo "no" >&6; }
  6857. fi
  6858. fi
  6859. if test -z "$ac_cv_prog_DLLTOOL"; then
  6860. ac_ct_DLLTOOL=$DLLTOOL
  6861. # Extract the first word of "dlltool", so it can be a program name with args.
  6862. set dummy dlltool; ac_word=$2
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6864. $as_echo_n "checking for $ac_word... " >&6; }
  6865. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6866. $as_echo_n "(cached) " >&6
  6867. else
  6868. if test -n "$ac_ct_DLLTOOL"; then
  6869. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6870. else
  6871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6872. for as_dir in $PATH
  6873. do
  6874. IFS=$as_save_IFS
  6875. test -z "$as_dir" && as_dir=.
  6876. for ac_exec_ext in '' $ac_executable_extensions; do
  6877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6878. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6880. break 2
  6881. fi
  6882. done
  6883. done
  6884. IFS=$as_save_IFS
  6885. fi
  6886. fi
  6887. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6888. if test -n "$ac_ct_DLLTOOL"; then
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6890. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6891. else
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6893. $as_echo "no" >&6; }
  6894. fi
  6895. if test "x$ac_ct_DLLTOOL" = x; then
  6896. DLLTOOL="false"
  6897. else
  6898. case $cross_compiling:$ac_tool_warned in
  6899. yes:)
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6901. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6902. ac_tool_warned=yes ;;
  6903. esac
  6904. DLLTOOL=$ac_ct_DLLTOOL
  6905. fi
  6906. else
  6907. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6908. fi
  6909. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6911. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6912. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6913. $as_echo_n "(cached) " >&6
  6914. else
  6915. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6916. case $host_os in
  6917. cygwin* | mingw* | pw32* | cegcc*)
  6918. # two different shell functions defined in ltmain.sh
  6919. # decide which to use based on capabilities of $DLLTOOL
  6920. case `$DLLTOOL --help 2>&1` in
  6921. *--identify-strict*)
  6922. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6923. ;;
  6924. *)
  6925. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6926. ;;
  6927. esac
  6928. ;;
  6929. *)
  6930. # fallback: assume linklib IS sharedlib
  6931. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  6932. ;;
  6933. esac
  6934. fi
  6935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6936. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6937. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6938. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6939. if test -n "$ac_tool_prefix"; then
  6940. for ac_prog in ar
  6941. do
  6942. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6943. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6945. $as_echo_n "checking for $ac_word... " >&6; }
  6946. if ${ac_cv_prog_AR+:} false; then :
  6947. $as_echo_n "(cached) " >&6
  6948. else
  6949. if test -n "$AR"; then
  6950. ac_cv_prog_AR="$AR" # Let the user override the test.
  6951. else
  6952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6953. for as_dir in $PATH
  6954. do
  6955. IFS=$as_save_IFS
  6956. test -z "$as_dir" && as_dir=.
  6957. for ac_exec_ext in '' $ac_executable_extensions; do
  6958. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6959. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6960. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6961. break 2
  6962. fi
  6963. done
  6964. done
  6965. IFS=$as_save_IFS
  6966. fi
  6967. fi
  6968. AR=$ac_cv_prog_AR
  6969. if test -n "$AR"; then
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6971. $as_echo "$AR" >&6; }
  6972. else
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6974. $as_echo "no" >&6; }
  6975. fi
  6976. test -n "$AR" && break
  6977. done
  6978. fi
  6979. if test -z "$AR"; then
  6980. ac_ct_AR=$AR
  6981. for ac_prog in ar
  6982. do
  6983. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6984. set dummy $ac_prog; ac_word=$2
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6986. $as_echo_n "checking for $ac_word... " >&6; }
  6987. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6988. $as_echo_n "(cached) " >&6
  6989. else
  6990. if test -n "$ac_ct_AR"; then
  6991. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6992. else
  6993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6994. for as_dir in $PATH
  6995. do
  6996. IFS=$as_save_IFS
  6997. test -z "$as_dir" && as_dir=.
  6998. for ac_exec_ext in '' $ac_executable_extensions; do
  6999. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7000. ac_cv_prog_ac_ct_AR="$ac_prog"
  7001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7002. break 2
  7003. fi
  7004. done
  7005. done
  7006. IFS=$as_save_IFS
  7007. fi
  7008. fi
  7009. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7010. if test -n "$ac_ct_AR"; then
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7012. $as_echo "$ac_ct_AR" >&6; }
  7013. else
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7015. $as_echo "no" >&6; }
  7016. fi
  7017. test -n "$ac_ct_AR" && break
  7018. done
  7019. if test "x$ac_ct_AR" = x; then
  7020. AR="false"
  7021. else
  7022. case $cross_compiling:$ac_tool_warned in
  7023. yes:)
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7025. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7026. ac_tool_warned=yes ;;
  7027. esac
  7028. AR=$ac_ct_AR
  7029. fi
  7030. fi
  7031. : ${AR=ar}
  7032. : ${AR_FLAGS=cru}
  7033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  7034. $as_echo_n "checking for archiver @FILE support... " >&6; }
  7035. if ${lt_cv_ar_at_file+:} false; then :
  7036. $as_echo_n "(cached) " >&6
  7037. else
  7038. lt_cv_ar_at_file=no
  7039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7040. /* end confdefs.h. */
  7041. int
  7042. main ()
  7043. {
  7044. ;
  7045. return 0;
  7046. }
  7047. _ACEOF
  7048. if ac_fn_c_try_compile "$LINENO"; then :
  7049. echo conftest.$ac_objext > conftest.lst
  7050. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  7051. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7052. (eval $lt_ar_try) 2>&5
  7053. ac_status=$?
  7054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7055. test $ac_status = 0; }
  7056. if test "$ac_status" -eq 0; then
  7057. # Ensure the archiver fails upon bogus file names.
  7058. rm -f conftest.$ac_objext libconftest.a
  7059. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7060. (eval $lt_ar_try) 2>&5
  7061. ac_status=$?
  7062. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7063. test $ac_status = 0; }
  7064. if test "$ac_status" -ne 0; then
  7065. lt_cv_ar_at_file=@
  7066. fi
  7067. fi
  7068. rm -f conftest.* libconftest.a
  7069. fi
  7070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7071. fi
  7072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  7073. $as_echo "$lt_cv_ar_at_file" >&6; }
  7074. if test "x$lt_cv_ar_at_file" = xno; then
  7075. archiver_list_spec=
  7076. else
  7077. archiver_list_spec=$lt_cv_ar_at_file
  7078. fi
  7079. if test -n "$ac_tool_prefix"; then
  7080. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7081. set dummy ${ac_tool_prefix}strip; ac_word=$2
  7082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7083. $as_echo_n "checking for $ac_word... " >&6; }
  7084. if ${ac_cv_prog_STRIP+:} false; then :
  7085. $as_echo_n "(cached) " >&6
  7086. else
  7087. if test -n "$STRIP"; then
  7088. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7089. else
  7090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7091. for as_dir in $PATH
  7092. do
  7093. IFS=$as_save_IFS
  7094. test -z "$as_dir" && as_dir=.
  7095. for ac_exec_ext in '' $ac_executable_extensions; do
  7096. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7097. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7098. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7099. break 2
  7100. fi
  7101. done
  7102. done
  7103. IFS=$as_save_IFS
  7104. fi
  7105. fi
  7106. STRIP=$ac_cv_prog_STRIP
  7107. if test -n "$STRIP"; then
  7108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7109. $as_echo "$STRIP" >&6; }
  7110. else
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7112. $as_echo "no" >&6; }
  7113. fi
  7114. fi
  7115. if test -z "$ac_cv_prog_STRIP"; then
  7116. ac_ct_STRIP=$STRIP
  7117. # Extract the first word of "strip", so it can be a program name with args.
  7118. set dummy strip; ac_word=$2
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7120. $as_echo_n "checking for $ac_word... " >&6; }
  7121. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  7122. $as_echo_n "(cached) " >&6
  7123. else
  7124. if test -n "$ac_ct_STRIP"; then
  7125. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7126. else
  7127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7128. for as_dir in $PATH
  7129. do
  7130. IFS=$as_save_IFS
  7131. test -z "$as_dir" && as_dir=.
  7132. for ac_exec_ext in '' $ac_executable_extensions; do
  7133. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7134. ac_cv_prog_ac_ct_STRIP="strip"
  7135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7136. break 2
  7137. fi
  7138. done
  7139. done
  7140. IFS=$as_save_IFS
  7141. fi
  7142. fi
  7143. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7144. if test -n "$ac_ct_STRIP"; then
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7146. $as_echo "$ac_ct_STRIP" >&6; }
  7147. else
  7148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7149. $as_echo "no" >&6; }
  7150. fi
  7151. if test "x$ac_ct_STRIP" = x; then
  7152. STRIP=":"
  7153. else
  7154. case $cross_compiling:$ac_tool_warned in
  7155. yes:)
  7156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7157. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7158. ac_tool_warned=yes ;;
  7159. esac
  7160. STRIP=$ac_ct_STRIP
  7161. fi
  7162. else
  7163. STRIP="$ac_cv_prog_STRIP"
  7164. fi
  7165. test -z "$STRIP" && STRIP=:
  7166. if test -n "$ac_tool_prefix"; then
  7167. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7168. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7170. $as_echo_n "checking for $ac_word... " >&6; }
  7171. if ${ac_cv_prog_RANLIB+:} false; then :
  7172. $as_echo_n "(cached) " >&6
  7173. else
  7174. if test -n "$RANLIB"; then
  7175. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7176. else
  7177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7178. for as_dir in $PATH
  7179. do
  7180. IFS=$as_save_IFS
  7181. test -z "$as_dir" && as_dir=.
  7182. for ac_exec_ext in '' $ac_executable_extensions; do
  7183. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7184. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7186. break 2
  7187. fi
  7188. done
  7189. done
  7190. IFS=$as_save_IFS
  7191. fi
  7192. fi
  7193. RANLIB=$ac_cv_prog_RANLIB
  7194. if test -n "$RANLIB"; then
  7195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7196. $as_echo "$RANLIB" >&6; }
  7197. else
  7198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7199. $as_echo "no" >&6; }
  7200. fi
  7201. fi
  7202. if test -z "$ac_cv_prog_RANLIB"; then
  7203. ac_ct_RANLIB=$RANLIB
  7204. # Extract the first word of "ranlib", so it can be a program name with args.
  7205. set dummy ranlib; ac_word=$2
  7206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7207. $as_echo_n "checking for $ac_word... " >&6; }
  7208. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  7209. $as_echo_n "(cached) " >&6
  7210. else
  7211. if test -n "$ac_ct_RANLIB"; then
  7212. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7213. else
  7214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7215. for as_dir in $PATH
  7216. do
  7217. IFS=$as_save_IFS
  7218. test -z "$as_dir" && as_dir=.
  7219. for ac_exec_ext in '' $ac_executable_extensions; do
  7220. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7221. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7222. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7223. break 2
  7224. fi
  7225. done
  7226. done
  7227. IFS=$as_save_IFS
  7228. fi
  7229. fi
  7230. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7231. if test -n "$ac_ct_RANLIB"; then
  7232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7233. $as_echo "$ac_ct_RANLIB" >&6; }
  7234. else
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7236. $as_echo "no" >&6; }
  7237. fi
  7238. if test "x$ac_ct_RANLIB" = x; then
  7239. RANLIB=":"
  7240. else
  7241. case $cross_compiling:$ac_tool_warned in
  7242. yes:)
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7244. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7245. ac_tool_warned=yes ;;
  7246. esac
  7247. RANLIB=$ac_ct_RANLIB
  7248. fi
  7249. else
  7250. RANLIB="$ac_cv_prog_RANLIB"
  7251. fi
  7252. test -z "$RANLIB" && RANLIB=:
  7253. # Determine commands to create old-style static archives.
  7254. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7255. old_postinstall_cmds='chmod 644 $oldlib'
  7256. old_postuninstall_cmds=
  7257. if test -n "$RANLIB"; then
  7258. case $host_os in
  7259. openbsd*)
  7260. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  7261. ;;
  7262. *)
  7263. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  7264. ;;
  7265. esac
  7266. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  7267. fi
  7268. case $host_os in
  7269. darwin*)
  7270. lock_old_archive_extraction=yes ;;
  7271. *)
  7272. lock_old_archive_extraction=no ;;
  7273. esac
  7274. # If no C compiler was specified, use CC.
  7275. LTCC=${LTCC-"$CC"}
  7276. # If no C compiler flags were specified, use CFLAGS.
  7277. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7278. # Allow CC to be a program name with arguments.
  7279. compiler=$CC
  7280. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7282. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  7283. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  7284. $as_echo_n "(cached) " >&6
  7285. else
  7286. # These are sane defaults that work on at least a few old systems.
  7287. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7288. # Character class describing NM global symbol codes.
  7289. symcode='[BCDEGRST]'
  7290. # Regexp to match symbols that can be accessed directly from C.
  7291. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7292. # Define system-specific variables.
  7293. case $host_os in
  7294. aix*)
  7295. symcode='[BCDT]'
  7296. ;;
  7297. cygwin* | mingw* | pw32* | cegcc*)
  7298. symcode='[ABCDGISTW]'
  7299. ;;
  7300. hpux*)
  7301. if test "$host_cpu" = ia64; then
  7302. symcode='[ABCDEGRST]'
  7303. fi
  7304. ;;
  7305. irix* | nonstopux*)
  7306. symcode='[BCDEGRST]'
  7307. ;;
  7308. osf*)
  7309. symcode='[BCDEGQRST]'
  7310. ;;
  7311. solaris*)
  7312. symcode='[BDRT]'
  7313. ;;
  7314. sco3.2v5*)
  7315. symcode='[DT]'
  7316. ;;
  7317. sysv4.2uw2*)
  7318. symcode='[DT]'
  7319. ;;
  7320. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7321. symcode='[ABDT]'
  7322. ;;
  7323. sysv4)
  7324. symcode='[DFNSTU]'
  7325. ;;
  7326. esac
  7327. # If we're using GNU nm, then use its standard symbol codes.
  7328. case `$NM -V 2>&1` in
  7329. *GNU* | *'with BFD'*)
  7330. symcode='[ABCDGIRSTW]' ;;
  7331. esac
  7332. # Transform an extracted symbol line into a proper C declaration.
  7333. # Some systems (esp. on ia64) link data and code symbols differently,
  7334. # so use this general approach.
  7335. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7336. # Transform an extracted symbol line into symbol name and symbol address
  7337. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  7338. 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'"
  7339. # Handle CRLF in mingw tool chain
  7340. opt_cr=
  7341. case $build_os in
  7342. mingw*)
  7343. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7344. ;;
  7345. esac
  7346. # Try without a prefix underscore, then with it.
  7347. for ac_symprfx in "" "_"; do
  7348. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7349. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7350. # Write the raw and C identifiers.
  7351. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7352. # Fake it for dumpbin and say T for any non-static function
  7353. # and D for any global variable.
  7354. # Also find C++ and __fastcall symbols from MSVC++,
  7355. # which start with @ or ?.
  7356. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7357. " {last_section=section; section=\$ 3};"\
  7358. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  7359. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7360. " \$ 0!~/External *\|/{next};"\
  7361. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7362. " {if(hide[section]) next};"\
  7363. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  7364. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  7365. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  7366. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  7367. " ' prfx=^$ac_symprfx"
  7368. else
  7369. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7370. fi
  7371. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  7372. # Check to see that the pipe works correctly.
  7373. pipe_works=no
  7374. rm -f conftest*
  7375. cat > conftest.$ac_ext <<_LT_EOF
  7376. #ifdef __cplusplus
  7377. extern "C" {
  7378. #endif
  7379. char nm_test_var;
  7380. void nm_test_func(void);
  7381. void nm_test_func(void){}
  7382. #ifdef __cplusplus
  7383. }
  7384. #endif
  7385. int main(){nm_test_var='a';nm_test_func();return(0);}
  7386. _LT_EOF
  7387. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7388. (eval $ac_compile) 2>&5
  7389. ac_status=$?
  7390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7391. test $ac_status = 0; }; then
  7392. # Now try to grab the symbols.
  7393. nlist=conftest.nm
  7394. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  7395. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  7396. ac_status=$?
  7397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7398. test $ac_status = 0; } && test -s "$nlist"; then
  7399. # Try sorting and uniquifying the output.
  7400. if sort "$nlist" | uniq > "$nlist"T; then
  7401. mv -f "$nlist"T "$nlist"
  7402. else
  7403. rm -f "$nlist"T
  7404. fi
  7405. # Make sure that we snagged all the symbols we need.
  7406. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7407. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7408. cat <<_LT_EOF > conftest.$ac_ext
  7409. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  7410. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  7411. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  7412. relocations are performed -- see ld's documentation on pseudo-relocs. */
  7413. # define LT_DLSYM_CONST
  7414. #elif defined(__osf__)
  7415. /* This system does not cope well with relocations in const data. */
  7416. # define LT_DLSYM_CONST
  7417. #else
  7418. # define LT_DLSYM_CONST const
  7419. #endif
  7420. #ifdef __cplusplus
  7421. extern "C" {
  7422. #endif
  7423. _LT_EOF
  7424. # Now generate the symbol file.
  7425. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7426. cat <<_LT_EOF >> conftest.$ac_ext
  7427. /* The mapping between symbol names and symbols. */
  7428. LT_DLSYM_CONST struct {
  7429. const char *name;
  7430. void *address;
  7431. }
  7432. lt__PROGRAM__LTX_preloaded_symbols[] =
  7433. {
  7434. { "@PROGRAM@", (void *) 0 },
  7435. _LT_EOF
  7436. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7437. cat <<\_LT_EOF >> conftest.$ac_ext
  7438. {0, (void *) 0}
  7439. };
  7440. /* This works around a problem in FreeBSD linker */
  7441. #ifdef FREEBSD_WORKAROUND
  7442. static const void *lt_preloaded_setup() {
  7443. return lt__PROGRAM__LTX_preloaded_symbols;
  7444. }
  7445. #endif
  7446. #ifdef __cplusplus
  7447. }
  7448. #endif
  7449. _LT_EOF
  7450. # Now try linking the two files.
  7451. mv conftest.$ac_objext conftstm.$ac_objext
  7452. lt_globsym_save_LIBS=$LIBS
  7453. lt_globsym_save_CFLAGS=$CFLAGS
  7454. LIBS="conftstm.$ac_objext"
  7455. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7456. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7457. (eval $ac_link) 2>&5
  7458. ac_status=$?
  7459. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7460. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  7461. pipe_works=yes
  7462. fi
  7463. LIBS=$lt_globsym_save_LIBS
  7464. CFLAGS=$lt_globsym_save_CFLAGS
  7465. else
  7466. echo "cannot find nm_test_func in $nlist" >&5
  7467. fi
  7468. else
  7469. echo "cannot find nm_test_var in $nlist" >&5
  7470. fi
  7471. else
  7472. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7473. fi
  7474. else
  7475. echo "$progname: failed program was:" >&5
  7476. cat conftest.$ac_ext >&5
  7477. fi
  7478. rm -rf conftest* conftst*
  7479. # Do not use the global_symbol_pipe unless it works.
  7480. if test "$pipe_works" = yes; then
  7481. break
  7482. else
  7483. lt_cv_sys_global_symbol_pipe=
  7484. fi
  7485. done
  7486. fi
  7487. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7488. lt_cv_sys_global_symbol_to_cdecl=
  7489. fi
  7490. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7492. $as_echo "failed" >&6; }
  7493. else
  7494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7495. $as_echo "ok" >&6; }
  7496. fi
  7497. # Response file support.
  7498. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7499. nm_file_list_spec='@'
  7500. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7501. nm_file_list_spec='@'
  7502. fi
  7503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7504. $as_echo_n "checking for sysroot... " >&6; }
  7505. # Check whether --with-sysroot was given.
  7506. if test "${with_sysroot+set}" = set; then :
  7507. withval=$with_sysroot;
  7508. else
  7509. with_sysroot=no
  7510. fi
  7511. lt_sysroot=
  7512. case ${with_sysroot} in #(
  7513. yes)
  7514. if test "$GCC" = yes; then
  7515. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  7516. fi
  7517. ;; #(
  7518. /*)
  7519. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  7520. ;; #(
  7521. no|'')
  7522. ;; #(
  7523. *)
  7524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  7525. $as_echo "${with_sysroot}" >&6; }
  7526. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7527. ;;
  7528. esac
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7530. $as_echo "${lt_sysroot:-no}" >&6; }
  7531. # Check whether --enable-libtool-lock was given.
  7532. if test "${enable_libtool_lock+set}" = set; then :
  7533. enableval=$enable_libtool_lock;
  7534. fi
  7535. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7536. # Some flags need to be propagated to the compiler or linker for good
  7537. # libtool support.
  7538. case $host in
  7539. ia64-*-hpux*)
  7540. # Find out which ABI we are using.
  7541. echo 'int i;' > conftest.$ac_ext
  7542. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7543. (eval $ac_compile) 2>&5
  7544. ac_status=$?
  7545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7546. test $ac_status = 0; }; then
  7547. case `/usr/bin/file conftest.$ac_objext` in
  7548. *ELF-32*)
  7549. HPUX_IA64_MODE="32"
  7550. ;;
  7551. *ELF-64*)
  7552. HPUX_IA64_MODE="64"
  7553. ;;
  7554. esac
  7555. fi
  7556. rm -rf conftest*
  7557. ;;
  7558. *-*-irix6*)
  7559. # Find out which ABI we are using.
  7560. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7561. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7562. (eval $ac_compile) 2>&5
  7563. ac_status=$?
  7564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7565. test $ac_status = 0; }; then
  7566. if test "$lt_cv_prog_gnu_ld" = yes; then
  7567. case `/usr/bin/file conftest.$ac_objext` in
  7568. *32-bit*)
  7569. LD="${LD-ld} -melf32bsmip"
  7570. ;;
  7571. *N32*)
  7572. LD="${LD-ld} -melf32bmipn32"
  7573. ;;
  7574. *64-bit*)
  7575. LD="${LD-ld} -melf64bmip"
  7576. ;;
  7577. esac
  7578. else
  7579. case `/usr/bin/file conftest.$ac_objext` in
  7580. *32-bit*)
  7581. LD="${LD-ld} -32"
  7582. ;;
  7583. *N32*)
  7584. LD="${LD-ld} -n32"
  7585. ;;
  7586. *64-bit*)
  7587. LD="${LD-ld} -64"
  7588. ;;
  7589. esac
  7590. fi
  7591. fi
  7592. rm -rf conftest*
  7593. ;;
  7594. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  7595. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7596. # Find out which ABI we are using.
  7597. echo 'int i;' > conftest.$ac_ext
  7598. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7599. (eval $ac_compile) 2>&5
  7600. ac_status=$?
  7601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7602. test $ac_status = 0; }; then
  7603. case `/usr/bin/file conftest.o` in
  7604. *32-bit*)
  7605. case $host in
  7606. x86_64-*kfreebsd*-gnu)
  7607. LD="${LD-ld} -m elf_i386_fbsd"
  7608. ;;
  7609. x86_64-*linux*)
  7610. LD="${LD-ld} -m elf_i386"
  7611. ;;
  7612. ppc64-*linux*|powerpc64-*linux*)
  7613. LD="${LD-ld} -m elf32ppclinux"
  7614. ;;
  7615. s390x-*linux*)
  7616. LD="${LD-ld} -m elf_s390"
  7617. ;;
  7618. sparc64-*linux*)
  7619. LD="${LD-ld} -m elf32_sparc"
  7620. ;;
  7621. esac
  7622. ;;
  7623. *64-bit*)
  7624. case $host in
  7625. x86_64-*kfreebsd*-gnu)
  7626. LD="${LD-ld} -m elf_x86_64_fbsd"
  7627. ;;
  7628. x86_64-*linux*)
  7629. LD="${LD-ld} -m elf_x86_64"
  7630. ;;
  7631. ppc*-*linux*|powerpc*-*linux*)
  7632. LD="${LD-ld} -m elf64ppc"
  7633. ;;
  7634. s390*-*linux*|s390*-*tpf*)
  7635. LD="${LD-ld} -m elf64_s390"
  7636. ;;
  7637. sparc*-*linux*)
  7638. LD="${LD-ld} -m elf64_sparc"
  7639. ;;
  7640. esac
  7641. ;;
  7642. esac
  7643. fi
  7644. rm -rf conftest*
  7645. ;;
  7646. *-*-sco3.2v5*)
  7647. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7648. SAVE_CFLAGS="$CFLAGS"
  7649. CFLAGS="$CFLAGS -belf"
  7650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7651. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7652. if ${lt_cv_cc_needs_belf+:} false; then :
  7653. $as_echo_n "(cached) " >&6
  7654. else
  7655. ac_ext=c
  7656. ac_cpp='$CPP $CPPFLAGS'
  7657. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7658. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7659. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7661. /* end confdefs.h. */
  7662. int
  7663. main ()
  7664. {
  7665. ;
  7666. return 0;
  7667. }
  7668. _ACEOF
  7669. if ac_fn_c_try_link "$LINENO"; then :
  7670. lt_cv_cc_needs_belf=yes
  7671. else
  7672. lt_cv_cc_needs_belf=no
  7673. fi
  7674. rm -f core conftest.err conftest.$ac_objext \
  7675. conftest$ac_exeext conftest.$ac_ext
  7676. ac_ext=c
  7677. ac_cpp='$CPP $CPPFLAGS'
  7678. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7679. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7680. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7681. fi
  7682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7683. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7684. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7685. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7686. CFLAGS="$SAVE_CFLAGS"
  7687. fi
  7688. ;;
  7689. *-*solaris*)
  7690. # Find out which ABI we are using.
  7691. echo 'int i;' > conftest.$ac_ext
  7692. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7693. (eval $ac_compile) 2>&5
  7694. ac_status=$?
  7695. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7696. test $ac_status = 0; }; then
  7697. case `/usr/bin/file conftest.o` in
  7698. *64-bit*)
  7699. case $lt_cv_prog_gnu_ld in
  7700. yes*)
  7701. case $host in
  7702. i?86-*-solaris*)
  7703. LD="${LD-ld} -m elf_x86_64"
  7704. ;;
  7705. sparc*-*-solaris*)
  7706. LD="${LD-ld} -m elf64_sparc"
  7707. ;;
  7708. esac
  7709. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7710. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7711. LD="${LD-ld}_sol2"
  7712. fi
  7713. ;;
  7714. *)
  7715. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7716. LD="${LD-ld} -64"
  7717. fi
  7718. ;;
  7719. esac
  7720. ;;
  7721. esac
  7722. fi
  7723. rm -rf conftest*
  7724. ;;
  7725. esac
  7726. need_locks="$enable_libtool_lock"
  7727. if test -n "$ac_tool_prefix"; then
  7728. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7729. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7731. $as_echo_n "checking for $ac_word... " >&6; }
  7732. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  7733. $as_echo_n "(cached) " >&6
  7734. else
  7735. if test -n "$MANIFEST_TOOL"; then
  7736. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7737. else
  7738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7739. for as_dir in $PATH
  7740. do
  7741. IFS=$as_save_IFS
  7742. test -z "$as_dir" && as_dir=.
  7743. for ac_exec_ext in '' $ac_executable_extensions; do
  7744. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7745. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7747. break 2
  7748. fi
  7749. done
  7750. done
  7751. IFS=$as_save_IFS
  7752. fi
  7753. fi
  7754. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7755. if test -n "$MANIFEST_TOOL"; then
  7756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7757. $as_echo "$MANIFEST_TOOL" >&6; }
  7758. else
  7759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7760. $as_echo "no" >&6; }
  7761. fi
  7762. fi
  7763. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7764. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7765. # Extract the first word of "mt", so it can be a program name with args.
  7766. set dummy mt; ac_word=$2
  7767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7768. $as_echo_n "checking for $ac_word... " >&6; }
  7769. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7770. $as_echo_n "(cached) " >&6
  7771. else
  7772. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7773. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7774. else
  7775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7776. for as_dir in $PATH
  7777. do
  7778. IFS=$as_save_IFS
  7779. test -z "$as_dir" && as_dir=.
  7780. for ac_exec_ext in '' $ac_executable_extensions; do
  7781. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7782. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7784. break 2
  7785. fi
  7786. done
  7787. done
  7788. IFS=$as_save_IFS
  7789. fi
  7790. fi
  7791. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7792. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7794. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7795. else
  7796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7797. $as_echo "no" >&6; }
  7798. fi
  7799. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7800. MANIFEST_TOOL=":"
  7801. else
  7802. case $cross_compiling:$ac_tool_warned in
  7803. yes:)
  7804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7805. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7806. ac_tool_warned=yes ;;
  7807. esac
  7808. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7809. fi
  7810. else
  7811. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7812. fi
  7813. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7815. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7816. if ${lt_cv_path_mainfest_tool+:} false; then :
  7817. $as_echo_n "(cached) " >&6
  7818. else
  7819. lt_cv_path_mainfest_tool=no
  7820. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7821. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7822. cat conftest.err >&5
  7823. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7824. lt_cv_path_mainfest_tool=yes
  7825. fi
  7826. rm -f conftest*
  7827. fi
  7828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7829. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7830. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  7831. MANIFEST_TOOL=:
  7832. fi
  7833. case $host_os in
  7834. rhapsody* | darwin*)
  7835. if test -n "$ac_tool_prefix"; then
  7836. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7837. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7839. $as_echo_n "checking for $ac_word... " >&6; }
  7840. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7841. $as_echo_n "(cached) " >&6
  7842. else
  7843. if test -n "$DSYMUTIL"; then
  7844. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7845. else
  7846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7847. for as_dir in $PATH
  7848. do
  7849. IFS=$as_save_IFS
  7850. test -z "$as_dir" && as_dir=.
  7851. for ac_exec_ext in '' $ac_executable_extensions; do
  7852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7853. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7855. break 2
  7856. fi
  7857. done
  7858. done
  7859. IFS=$as_save_IFS
  7860. fi
  7861. fi
  7862. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7863. if test -n "$DSYMUTIL"; then
  7864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7865. $as_echo "$DSYMUTIL" >&6; }
  7866. else
  7867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7868. $as_echo "no" >&6; }
  7869. fi
  7870. fi
  7871. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7872. ac_ct_DSYMUTIL=$DSYMUTIL
  7873. # Extract the first word of "dsymutil", so it can be a program name with args.
  7874. set dummy dsymutil; ac_word=$2
  7875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7876. $as_echo_n "checking for $ac_word... " >&6; }
  7877. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7878. $as_echo_n "(cached) " >&6
  7879. else
  7880. if test -n "$ac_ct_DSYMUTIL"; then
  7881. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7882. else
  7883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7884. for as_dir in $PATH
  7885. do
  7886. IFS=$as_save_IFS
  7887. test -z "$as_dir" && as_dir=.
  7888. for ac_exec_ext in '' $ac_executable_extensions; do
  7889. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7890. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7892. break 2
  7893. fi
  7894. done
  7895. done
  7896. IFS=$as_save_IFS
  7897. fi
  7898. fi
  7899. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7900. if test -n "$ac_ct_DSYMUTIL"; then
  7901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7902. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7903. else
  7904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7905. $as_echo "no" >&6; }
  7906. fi
  7907. if test "x$ac_ct_DSYMUTIL" = x; then
  7908. DSYMUTIL=":"
  7909. else
  7910. case $cross_compiling:$ac_tool_warned in
  7911. yes:)
  7912. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7913. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7914. ac_tool_warned=yes ;;
  7915. esac
  7916. DSYMUTIL=$ac_ct_DSYMUTIL
  7917. fi
  7918. else
  7919. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7920. fi
  7921. if test -n "$ac_tool_prefix"; then
  7922. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7923. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7925. $as_echo_n "checking for $ac_word... " >&6; }
  7926. if ${ac_cv_prog_NMEDIT+:} false; then :
  7927. $as_echo_n "(cached) " >&6
  7928. else
  7929. if test -n "$NMEDIT"; then
  7930. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7931. else
  7932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7933. for as_dir in $PATH
  7934. do
  7935. IFS=$as_save_IFS
  7936. test -z "$as_dir" && as_dir=.
  7937. for ac_exec_ext in '' $ac_executable_extensions; do
  7938. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7939. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7941. break 2
  7942. fi
  7943. done
  7944. done
  7945. IFS=$as_save_IFS
  7946. fi
  7947. fi
  7948. NMEDIT=$ac_cv_prog_NMEDIT
  7949. if test -n "$NMEDIT"; then
  7950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7951. $as_echo "$NMEDIT" >&6; }
  7952. else
  7953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7954. $as_echo "no" >&6; }
  7955. fi
  7956. fi
  7957. if test -z "$ac_cv_prog_NMEDIT"; then
  7958. ac_ct_NMEDIT=$NMEDIT
  7959. # Extract the first word of "nmedit", so it can be a program name with args.
  7960. set dummy nmedit; ac_word=$2
  7961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7962. $as_echo_n "checking for $ac_word... " >&6; }
  7963. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7964. $as_echo_n "(cached) " >&6
  7965. else
  7966. if test -n "$ac_ct_NMEDIT"; then
  7967. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7968. else
  7969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7970. for as_dir in $PATH
  7971. do
  7972. IFS=$as_save_IFS
  7973. test -z "$as_dir" && as_dir=.
  7974. for ac_exec_ext in '' $ac_executable_extensions; do
  7975. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7976. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7978. break 2
  7979. fi
  7980. done
  7981. done
  7982. IFS=$as_save_IFS
  7983. fi
  7984. fi
  7985. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7986. if test -n "$ac_ct_NMEDIT"; then
  7987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7988. $as_echo "$ac_ct_NMEDIT" >&6; }
  7989. else
  7990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7991. $as_echo "no" >&6; }
  7992. fi
  7993. if test "x$ac_ct_NMEDIT" = x; then
  7994. NMEDIT=":"
  7995. else
  7996. case $cross_compiling:$ac_tool_warned in
  7997. yes:)
  7998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7999. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8000. ac_tool_warned=yes ;;
  8001. esac
  8002. NMEDIT=$ac_ct_NMEDIT
  8003. fi
  8004. else
  8005. NMEDIT="$ac_cv_prog_NMEDIT"
  8006. fi
  8007. if test -n "$ac_tool_prefix"; then
  8008. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  8009. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  8010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8011. $as_echo_n "checking for $ac_word... " >&6; }
  8012. if ${ac_cv_prog_LIPO+:} false; then :
  8013. $as_echo_n "(cached) " >&6
  8014. else
  8015. if test -n "$LIPO"; then
  8016. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8017. else
  8018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8019. for as_dir in $PATH
  8020. do
  8021. IFS=$as_save_IFS
  8022. test -z "$as_dir" && as_dir=.
  8023. for ac_exec_ext in '' $ac_executable_extensions; do
  8024. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8025. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8026. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8027. break 2
  8028. fi
  8029. done
  8030. done
  8031. IFS=$as_save_IFS
  8032. fi
  8033. fi
  8034. LIPO=$ac_cv_prog_LIPO
  8035. if test -n "$LIPO"; then
  8036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8037. $as_echo "$LIPO" >&6; }
  8038. else
  8039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8040. $as_echo "no" >&6; }
  8041. fi
  8042. fi
  8043. if test -z "$ac_cv_prog_LIPO"; then
  8044. ac_ct_LIPO=$LIPO
  8045. # Extract the first word of "lipo", so it can be a program name with args.
  8046. set dummy lipo; ac_word=$2
  8047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8048. $as_echo_n "checking for $ac_word... " >&6; }
  8049. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  8050. $as_echo_n "(cached) " >&6
  8051. else
  8052. if test -n "$ac_ct_LIPO"; then
  8053. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8054. else
  8055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8056. for as_dir in $PATH
  8057. do
  8058. IFS=$as_save_IFS
  8059. test -z "$as_dir" && as_dir=.
  8060. for ac_exec_ext in '' $ac_executable_extensions; do
  8061. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8062. ac_cv_prog_ac_ct_LIPO="lipo"
  8063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8064. break 2
  8065. fi
  8066. done
  8067. done
  8068. IFS=$as_save_IFS
  8069. fi
  8070. fi
  8071. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8072. if test -n "$ac_ct_LIPO"; then
  8073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8074. $as_echo "$ac_ct_LIPO" >&6; }
  8075. else
  8076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8077. $as_echo "no" >&6; }
  8078. fi
  8079. if test "x$ac_ct_LIPO" = x; then
  8080. LIPO=":"
  8081. else
  8082. case $cross_compiling:$ac_tool_warned in
  8083. yes:)
  8084. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8085. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8086. ac_tool_warned=yes ;;
  8087. esac
  8088. LIPO=$ac_ct_LIPO
  8089. fi
  8090. else
  8091. LIPO="$ac_cv_prog_LIPO"
  8092. fi
  8093. if test -n "$ac_tool_prefix"; then
  8094. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8095. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8097. $as_echo_n "checking for $ac_word... " >&6; }
  8098. if ${ac_cv_prog_OTOOL+:} false; then :
  8099. $as_echo_n "(cached) " >&6
  8100. else
  8101. if test -n "$OTOOL"; then
  8102. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8103. else
  8104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8105. for as_dir in $PATH
  8106. do
  8107. IFS=$as_save_IFS
  8108. test -z "$as_dir" && as_dir=.
  8109. for ac_exec_ext in '' $ac_executable_extensions; do
  8110. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8111. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8112. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8113. break 2
  8114. fi
  8115. done
  8116. done
  8117. IFS=$as_save_IFS
  8118. fi
  8119. fi
  8120. OTOOL=$ac_cv_prog_OTOOL
  8121. if test -n "$OTOOL"; then
  8122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8123. $as_echo "$OTOOL" >&6; }
  8124. else
  8125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8126. $as_echo "no" >&6; }
  8127. fi
  8128. fi
  8129. if test -z "$ac_cv_prog_OTOOL"; then
  8130. ac_ct_OTOOL=$OTOOL
  8131. # Extract the first word of "otool", so it can be a program name with args.
  8132. set dummy otool; ac_word=$2
  8133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8134. $as_echo_n "checking for $ac_word... " >&6; }
  8135. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  8136. $as_echo_n "(cached) " >&6
  8137. else
  8138. if test -n "$ac_ct_OTOOL"; then
  8139. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8140. else
  8141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8142. for as_dir in $PATH
  8143. do
  8144. IFS=$as_save_IFS
  8145. test -z "$as_dir" && as_dir=.
  8146. for ac_exec_ext in '' $ac_executable_extensions; do
  8147. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8148. ac_cv_prog_ac_ct_OTOOL="otool"
  8149. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8150. break 2
  8151. fi
  8152. done
  8153. done
  8154. IFS=$as_save_IFS
  8155. fi
  8156. fi
  8157. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8158. if test -n "$ac_ct_OTOOL"; then
  8159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8160. $as_echo "$ac_ct_OTOOL" >&6; }
  8161. else
  8162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8163. $as_echo "no" >&6; }
  8164. fi
  8165. if test "x$ac_ct_OTOOL" = x; then
  8166. OTOOL=":"
  8167. else
  8168. case $cross_compiling:$ac_tool_warned in
  8169. yes:)
  8170. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8171. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8172. ac_tool_warned=yes ;;
  8173. esac
  8174. OTOOL=$ac_ct_OTOOL
  8175. fi
  8176. else
  8177. OTOOL="$ac_cv_prog_OTOOL"
  8178. fi
  8179. if test -n "$ac_tool_prefix"; then
  8180. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8181. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8183. $as_echo_n "checking for $ac_word... " >&6; }
  8184. if ${ac_cv_prog_OTOOL64+:} false; then :
  8185. $as_echo_n "(cached) " >&6
  8186. else
  8187. if test -n "$OTOOL64"; then
  8188. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8189. else
  8190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8191. for as_dir in $PATH
  8192. do
  8193. IFS=$as_save_IFS
  8194. test -z "$as_dir" && as_dir=.
  8195. for ac_exec_ext in '' $ac_executable_extensions; do
  8196. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8197. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8198. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8199. break 2
  8200. fi
  8201. done
  8202. done
  8203. IFS=$as_save_IFS
  8204. fi
  8205. fi
  8206. OTOOL64=$ac_cv_prog_OTOOL64
  8207. if test -n "$OTOOL64"; then
  8208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8209. $as_echo "$OTOOL64" >&6; }
  8210. else
  8211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8212. $as_echo "no" >&6; }
  8213. fi
  8214. fi
  8215. if test -z "$ac_cv_prog_OTOOL64"; then
  8216. ac_ct_OTOOL64=$OTOOL64
  8217. # Extract the first word of "otool64", so it can be a program name with args.
  8218. set dummy otool64; ac_word=$2
  8219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8220. $as_echo_n "checking for $ac_word... " >&6; }
  8221. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  8222. $as_echo_n "(cached) " >&6
  8223. else
  8224. if test -n "$ac_ct_OTOOL64"; then
  8225. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8226. else
  8227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8228. for as_dir in $PATH
  8229. do
  8230. IFS=$as_save_IFS
  8231. test -z "$as_dir" && as_dir=.
  8232. for ac_exec_ext in '' $ac_executable_extensions; do
  8233. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8234. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8235. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8236. break 2
  8237. fi
  8238. done
  8239. done
  8240. IFS=$as_save_IFS
  8241. fi
  8242. fi
  8243. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8244. if test -n "$ac_ct_OTOOL64"; then
  8245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8246. $as_echo "$ac_ct_OTOOL64" >&6; }
  8247. else
  8248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8249. $as_echo "no" >&6; }
  8250. fi
  8251. if test "x$ac_ct_OTOOL64" = x; then
  8252. OTOOL64=":"
  8253. else
  8254. case $cross_compiling:$ac_tool_warned in
  8255. yes:)
  8256. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8257. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8258. ac_tool_warned=yes ;;
  8259. esac
  8260. OTOOL64=$ac_ct_OTOOL64
  8261. fi
  8262. else
  8263. OTOOL64="$ac_cv_prog_OTOOL64"
  8264. fi
  8265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8266. $as_echo_n "checking for -single_module linker flag... " >&6; }
  8267. if ${lt_cv_apple_cc_single_mod+:} false; then :
  8268. $as_echo_n "(cached) " >&6
  8269. else
  8270. lt_cv_apple_cc_single_mod=no
  8271. if test -z "${LT_MULTI_MODULE}"; then
  8272. # By default we will add the -single_module flag. You can override
  8273. # by either setting the environment variable LT_MULTI_MODULE
  8274. # non-empty at configure time, or by adding -multi_module to the
  8275. # link flags.
  8276. rm -rf libconftest.dylib*
  8277. echo "int foo(void){return 1;}" > conftest.c
  8278. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8279. -dynamiclib -Wl,-single_module conftest.c" >&5
  8280. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8281. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8282. _lt_result=$?
  8283. # If there is a non-empty error log, and "single_module"
  8284. # appears in it, assume the flag caused a linker warning
  8285. if test -s conftest.err && $GREP single_module conftest.err; then
  8286. cat conftest.err >&5
  8287. # Otherwise, if the output was created with a 0 exit code from
  8288. # the compiler, it worked.
  8289. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  8290. lt_cv_apple_cc_single_mod=yes
  8291. else
  8292. cat conftest.err >&5
  8293. fi
  8294. rm -rf libconftest.dylib*
  8295. rm -f conftest.*
  8296. fi
  8297. fi
  8298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8299. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  8300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8301. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  8302. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  8303. $as_echo_n "(cached) " >&6
  8304. else
  8305. lt_cv_ld_exported_symbols_list=no
  8306. save_LDFLAGS=$LDFLAGS
  8307. echo "_main" > conftest.sym
  8308. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8310. /* end confdefs.h. */
  8311. int
  8312. main ()
  8313. {
  8314. ;
  8315. return 0;
  8316. }
  8317. _ACEOF
  8318. if ac_fn_c_try_link "$LINENO"; then :
  8319. lt_cv_ld_exported_symbols_list=yes
  8320. else
  8321. lt_cv_ld_exported_symbols_list=no
  8322. fi
  8323. rm -f core conftest.err conftest.$ac_objext \
  8324. conftest$ac_exeext conftest.$ac_ext
  8325. LDFLAGS="$save_LDFLAGS"
  8326. fi
  8327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8328. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  8329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8330. $as_echo_n "checking for -force_load linker flag... " >&6; }
  8331. if ${lt_cv_ld_force_load+:} false; then :
  8332. $as_echo_n "(cached) " >&6
  8333. else
  8334. lt_cv_ld_force_load=no
  8335. cat > conftest.c << _LT_EOF
  8336. int forced_loaded() { return 2;}
  8337. _LT_EOF
  8338. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8339. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8340. echo "$AR cru libconftest.a conftest.o" >&5
  8341. $AR cru libconftest.a conftest.o 2>&5
  8342. echo "$RANLIB libconftest.a" >&5
  8343. $RANLIB libconftest.a 2>&5
  8344. cat > conftest.c << _LT_EOF
  8345. int main() { return 0;}
  8346. _LT_EOF
  8347. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8348. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8349. _lt_result=$?
  8350. if test -s conftest.err && $GREP force_load conftest.err; then
  8351. cat conftest.err >&5
  8352. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  8353. lt_cv_ld_force_load=yes
  8354. else
  8355. cat conftest.err >&5
  8356. fi
  8357. rm -f conftest.err libconftest.a conftest conftest.c
  8358. rm -rf conftest.dSYM
  8359. fi
  8360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8361. $as_echo "$lt_cv_ld_force_load" >&6; }
  8362. case $host_os in
  8363. rhapsody* | darwin1.[012])
  8364. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  8365. darwin1.*)
  8366. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  8367. darwin*) # darwin 5.x on
  8368. # if running on 10.5 or later, the deployment target defaults
  8369. # to the OS version, if on x86, and 10.4, the deployment
  8370. # target defaults to 10.4. Don't you love it?
  8371. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8372. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  8373. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  8374. 10.[012]*)
  8375. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  8376. 10.*)
  8377. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  8378. esac
  8379. ;;
  8380. esac
  8381. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  8382. _lt_dar_single_mod='$single_module'
  8383. fi
  8384. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  8385. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  8386. else
  8387. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8388. fi
  8389. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  8390. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8391. else
  8392. _lt_dsymutil=
  8393. fi
  8394. ;;
  8395. esac
  8396. for ac_header in dlfcn.h
  8397. do :
  8398. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8399. "
  8400. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  8401. cat >>confdefs.h <<_ACEOF
  8402. #define HAVE_DLFCN_H 1
  8403. _ACEOF
  8404. fi
  8405. done
  8406. # Set options
  8407. enable_dlopen=no
  8408. # Check whether --with-pic was given.
  8409. if test "${with_pic+set}" = set; then :
  8410. withval=$with_pic; lt_p=${PACKAGE-default}
  8411. case $withval in
  8412. yes|no) pic_mode=$withval ;;
  8413. *)
  8414. pic_mode=default
  8415. # Look at the argument we got. We use all the common list separators.
  8416. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8417. for lt_pkg in $withval; do
  8418. IFS="$lt_save_ifs"
  8419. if test "X$lt_pkg" = "X$lt_p"; then
  8420. pic_mode=yes
  8421. fi
  8422. done
  8423. IFS="$lt_save_ifs"
  8424. ;;
  8425. esac
  8426. else
  8427. pic_mode=default
  8428. fi
  8429. test -z "$pic_mode" && pic_mode=default
  8430. # Check whether --enable-fast-install was given.
  8431. if test "${enable_fast_install+set}" = set; then :
  8432. enableval=$enable_fast_install; p=${PACKAGE-default}
  8433. case $enableval in
  8434. yes) enable_fast_install=yes ;;
  8435. no) enable_fast_install=no ;;
  8436. *)
  8437. enable_fast_install=no
  8438. # Look at the argument we got. We use all the common list separators.
  8439. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8440. for pkg in $enableval; do
  8441. IFS="$lt_save_ifs"
  8442. if test "X$pkg" = "X$p"; then
  8443. enable_fast_install=yes
  8444. fi
  8445. done
  8446. IFS="$lt_save_ifs"
  8447. ;;
  8448. esac
  8449. else
  8450. enable_fast_install=yes
  8451. fi
  8452. # This can be used to rebuild libtool when needed
  8453. LIBTOOL_DEPS="$ltmain"
  8454. # Always use our own libtool.
  8455. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8456. test -z "$LN_S" && LN_S="ln -s"
  8457. if test -n "${ZSH_VERSION+set}" ; then
  8458. setopt NO_GLOB_SUBST
  8459. fi
  8460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8461. $as_echo_n "checking for objdir... " >&6; }
  8462. if ${lt_cv_objdir+:} false; then :
  8463. $as_echo_n "(cached) " >&6
  8464. else
  8465. rm -f .libs 2>/dev/null
  8466. mkdir .libs 2>/dev/null
  8467. if test -d .libs; then
  8468. lt_cv_objdir=.libs
  8469. else
  8470. # MS-DOS does not allow filenames that begin with a dot.
  8471. lt_cv_objdir=_libs
  8472. fi
  8473. rmdir .libs 2>/dev/null
  8474. fi
  8475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8476. $as_echo "$lt_cv_objdir" >&6; }
  8477. objdir=$lt_cv_objdir
  8478. cat >>confdefs.h <<_ACEOF
  8479. #define LT_OBJDIR "$lt_cv_objdir/"
  8480. _ACEOF
  8481. case $host_os in
  8482. aix3*)
  8483. # AIX sometimes has problems with the GCC collect2 program. For some
  8484. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8485. # vanish in a puff of smoke.
  8486. if test "X${COLLECT_NAMES+set}" != Xset; then
  8487. COLLECT_NAMES=
  8488. export COLLECT_NAMES
  8489. fi
  8490. ;;
  8491. esac
  8492. # Global variables:
  8493. ofile=libtool
  8494. can_build_shared=yes
  8495. # All known linkers require a `.a' archive for static linking (except MSVC,
  8496. # which needs '.lib').
  8497. libext=a
  8498. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8499. old_CC="$CC"
  8500. old_CFLAGS="$CFLAGS"
  8501. # Set sane defaults for various variables
  8502. test -z "$CC" && CC=cc
  8503. test -z "$LTCC" && LTCC=$CC
  8504. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8505. test -z "$LD" && LD=ld
  8506. test -z "$ac_objext" && ac_objext=o
  8507. for cc_temp in $compiler""; do
  8508. case $cc_temp in
  8509. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8510. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8511. \-*) ;;
  8512. *) break;;
  8513. esac
  8514. done
  8515. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8516. # Only perform the check for file, if the check method requires it
  8517. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8518. case $deplibs_check_method in
  8519. file_magic*)
  8520. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8522. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8523. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8524. $as_echo_n "(cached) " >&6
  8525. else
  8526. case $MAGIC_CMD in
  8527. [\\/*] | ?:[\\/]*)
  8528. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8529. ;;
  8530. *)
  8531. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8532. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8533. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8534. for ac_dir in $ac_dummy; do
  8535. IFS="$lt_save_ifs"
  8536. test -z "$ac_dir" && ac_dir=.
  8537. if test -f $ac_dir/${ac_tool_prefix}file; then
  8538. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8539. if test -n "$file_magic_test_file"; then
  8540. case $deplibs_check_method in
  8541. "file_magic "*)
  8542. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8543. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8544. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8545. $EGREP "$file_magic_regex" > /dev/null; then
  8546. :
  8547. else
  8548. cat <<_LT_EOF 1>&2
  8549. *** Warning: the command libtool uses to detect shared libraries,
  8550. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8551. *** The result is that libtool may fail to recognize shared libraries
  8552. *** as such. This will affect the creation of libtool libraries that
  8553. *** depend on shared libraries, but programs linked with such libtool
  8554. *** libraries will work regardless of this problem. Nevertheless, you
  8555. *** may want to report the problem to your system manager and/or to
  8556. *** [email protected]
  8557. _LT_EOF
  8558. fi ;;
  8559. esac
  8560. fi
  8561. break
  8562. fi
  8563. done
  8564. IFS="$lt_save_ifs"
  8565. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8566. ;;
  8567. esac
  8568. fi
  8569. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8570. if test -n "$MAGIC_CMD"; then
  8571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8572. $as_echo "$MAGIC_CMD" >&6; }
  8573. else
  8574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8575. $as_echo "no" >&6; }
  8576. fi
  8577. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8578. if test -n "$ac_tool_prefix"; then
  8579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8580. $as_echo_n "checking for file... " >&6; }
  8581. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8582. $as_echo_n "(cached) " >&6
  8583. else
  8584. case $MAGIC_CMD in
  8585. [\\/*] | ?:[\\/]*)
  8586. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8587. ;;
  8588. *)
  8589. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8590. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8591. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8592. for ac_dir in $ac_dummy; do
  8593. IFS="$lt_save_ifs"
  8594. test -z "$ac_dir" && ac_dir=.
  8595. if test -f $ac_dir/file; then
  8596. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8597. if test -n "$file_magic_test_file"; then
  8598. case $deplibs_check_method in
  8599. "file_magic "*)
  8600. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8601. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8602. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8603. $EGREP "$file_magic_regex" > /dev/null; then
  8604. :
  8605. else
  8606. cat <<_LT_EOF 1>&2
  8607. *** Warning: the command libtool uses to detect shared libraries,
  8608. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8609. *** The result is that libtool may fail to recognize shared libraries
  8610. *** as such. This will affect the creation of libtool libraries that
  8611. *** depend on shared libraries, but programs linked with such libtool
  8612. *** libraries will work regardless of this problem. Nevertheless, you
  8613. *** may want to report the problem to your system manager and/or to
  8614. *** [email protected]
  8615. _LT_EOF
  8616. fi ;;
  8617. esac
  8618. fi
  8619. break
  8620. fi
  8621. done
  8622. IFS="$lt_save_ifs"
  8623. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8624. ;;
  8625. esac
  8626. fi
  8627. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8628. if test -n "$MAGIC_CMD"; then
  8629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8630. $as_echo "$MAGIC_CMD" >&6; }
  8631. else
  8632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8633. $as_echo "no" >&6; }
  8634. fi
  8635. else
  8636. MAGIC_CMD=:
  8637. fi
  8638. fi
  8639. fi
  8640. ;;
  8641. esac
  8642. # Use C for the default configuration in the libtool script
  8643. lt_save_CC="$CC"
  8644. ac_ext=c
  8645. ac_cpp='$CPP $CPPFLAGS'
  8646. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8647. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8648. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8649. # Source file extension for C test sources.
  8650. ac_ext=c
  8651. # Object file extension for compiled C test sources.
  8652. objext=o
  8653. objext=$objext
  8654. # Code to be used in simple compile tests
  8655. lt_simple_compile_test_code="int some_variable = 0;"
  8656. # Code to be used in simple link tests
  8657. lt_simple_link_test_code='int main(){return(0);}'
  8658. # If no C compiler was specified, use CC.
  8659. LTCC=${LTCC-"$CC"}
  8660. # If no C compiler flags were specified, use CFLAGS.
  8661. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8662. # Allow CC to be a program name with arguments.
  8663. compiler=$CC
  8664. # Save the default compiler, since it gets overwritten when the other
  8665. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8666. compiler_DEFAULT=$CC
  8667. # save warnings/boilerplate of simple test code
  8668. ac_outfile=conftest.$ac_objext
  8669. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8670. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8671. _lt_compiler_boilerplate=`cat conftest.err`
  8672. $RM conftest*
  8673. ac_outfile=conftest.$ac_objext
  8674. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8675. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8676. _lt_linker_boilerplate=`cat conftest.err`
  8677. $RM -r conftest*
  8678. ## CAVEAT EMPTOR:
  8679. ## There is no encapsulation within the following macros, do not change
  8680. ## the running order or otherwise move them around unless you know exactly
  8681. ## what you are doing...
  8682. if test -n "$compiler"; then
  8683. lt_prog_compiler_no_builtin_flag=
  8684. if test "$GCC" = yes; then
  8685. case $cc_basename in
  8686. nvcc*)
  8687. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8688. *)
  8689. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8690. esac
  8691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8692. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8693. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8694. $as_echo_n "(cached) " >&6
  8695. else
  8696. lt_cv_prog_compiler_rtti_exceptions=no
  8697. ac_outfile=conftest.$ac_objext
  8698. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8699. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8700. # Insert the option either (1) after the last *FLAGS variable, or
  8701. # (2) before a word containing "conftest.", or (3) at the end.
  8702. # Note that $ac_compile itself does not contain backslashes and begins
  8703. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8704. # The option is referenced via a variable to avoid confusing sed.
  8705. lt_compile=`echo "$ac_compile" | $SED \
  8706. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8707. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8708. -e 's:$: $lt_compiler_flag:'`
  8709. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8710. (eval "$lt_compile" 2>conftest.err)
  8711. ac_status=$?
  8712. cat conftest.err >&5
  8713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8714. if (exit $ac_status) && test -s "$ac_outfile"; then
  8715. # The compiler can only warn and ignore the option if not recognized
  8716. # So say no if there are warnings other than the usual output.
  8717. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8718. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8719. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8720. lt_cv_prog_compiler_rtti_exceptions=yes
  8721. fi
  8722. fi
  8723. $RM conftest*
  8724. fi
  8725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8726. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8727. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8728. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8729. else
  8730. :
  8731. fi
  8732. fi
  8733. lt_prog_compiler_wl=
  8734. lt_prog_compiler_pic=
  8735. lt_prog_compiler_static=
  8736. if test "$GCC" = yes; then
  8737. lt_prog_compiler_wl='-Wl,'
  8738. lt_prog_compiler_static='-static'
  8739. case $host_os in
  8740. aix*)
  8741. # All AIX code is PIC.
  8742. if test "$host_cpu" = ia64; then
  8743. # AIX 5 now supports IA64 processor
  8744. lt_prog_compiler_static='-Bstatic'
  8745. fi
  8746. ;;
  8747. amigaos*)
  8748. case $host_cpu in
  8749. powerpc)
  8750. # see comment about AmigaOS4 .so support
  8751. lt_prog_compiler_pic='-fPIC'
  8752. ;;
  8753. m68k)
  8754. # FIXME: we need at least 68020 code to build shared libraries, but
  8755. # adding the `-m68020' flag to GCC prevents building anything better,
  8756. # like `-m68040'.
  8757. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8758. ;;
  8759. esac
  8760. ;;
  8761. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8762. # PIC is the default for these OSes.
  8763. ;;
  8764. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8765. # This hack is so that the source file can tell whether it is being
  8766. # built for inclusion in a dll (and should export symbols for example).
  8767. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8768. # (--disable-auto-import) libraries
  8769. lt_prog_compiler_pic='-DDLL_EXPORT'
  8770. ;;
  8771. darwin* | rhapsody*)
  8772. # PIC is the default on this platform
  8773. # Common symbols not allowed in MH_DYLIB files
  8774. lt_prog_compiler_pic='-fno-common'
  8775. ;;
  8776. haiku*)
  8777. # PIC is the default for Haiku.
  8778. # The "-static" flag exists, but is broken.
  8779. lt_prog_compiler_static=
  8780. ;;
  8781. hpux*)
  8782. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8783. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8784. # sets the default TLS model and affects inlining.
  8785. case $host_cpu in
  8786. hppa*64*)
  8787. # +Z the default
  8788. ;;
  8789. *)
  8790. lt_prog_compiler_pic='-fPIC'
  8791. ;;
  8792. esac
  8793. ;;
  8794. interix[3-9]*)
  8795. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8796. # Instead, we relocate shared libraries at runtime.
  8797. ;;
  8798. msdosdjgpp*)
  8799. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8800. # on systems that don't support them.
  8801. lt_prog_compiler_can_build_shared=no
  8802. enable_shared=no
  8803. ;;
  8804. *nto* | *qnx*)
  8805. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8806. # it will coredump.
  8807. lt_prog_compiler_pic='-fPIC -shared'
  8808. ;;
  8809. sysv4*MP*)
  8810. if test -d /usr/nec; then
  8811. lt_prog_compiler_pic=-Kconform_pic
  8812. fi
  8813. ;;
  8814. *)
  8815. lt_prog_compiler_pic='-fPIC'
  8816. ;;
  8817. esac
  8818. case $cc_basename in
  8819. nvcc*) # Cuda Compiler Driver 2.2
  8820. lt_prog_compiler_wl='-Xlinker '
  8821. if test -n "$lt_prog_compiler_pic"; then
  8822. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8823. fi
  8824. ;;
  8825. esac
  8826. else
  8827. # PORTME Check for flag to pass linker flags through the system compiler.
  8828. case $host_os in
  8829. aix*)
  8830. lt_prog_compiler_wl='-Wl,'
  8831. if test "$host_cpu" = ia64; then
  8832. # AIX 5 now supports IA64 processor
  8833. lt_prog_compiler_static='-Bstatic'
  8834. else
  8835. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8836. fi
  8837. ;;
  8838. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8839. # This hack is so that the source file can tell whether it is being
  8840. # built for inclusion in a dll (and should export symbols for example).
  8841. lt_prog_compiler_pic='-DDLL_EXPORT'
  8842. ;;
  8843. hpux9* | hpux10* | hpux11*)
  8844. lt_prog_compiler_wl='-Wl,'
  8845. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8846. # not for PA HP-UX.
  8847. case $host_cpu in
  8848. hppa*64*|ia64*)
  8849. # +Z the default
  8850. ;;
  8851. *)
  8852. lt_prog_compiler_pic='+Z'
  8853. ;;
  8854. esac
  8855. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8856. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8857. ;;
  8858. irix5* | irix6* | nonstopux*)
  8859. lt_prog_compiler_wl='-Wl,'
  8860. # PIC (with -KPIC) is the default.
  8861. lt_prog_compiler_static='-non_shared'
  8862. ;;
  8863. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8864. case $cc_basename in
  8865. # old Intel for x86_64 which still supported -KPIC.
  8866. ecc*)
  8867. lt_prog_compiler_wl='-Wl,'
  8868. lt_prog_compiler_pic='-KPIC'
  8869. lt_prog_compiler_static='-static'
  8870. ;;
  8871. # icc used to be incompatible with GCC.
  8872. # ICC 10 doesn't accept -KPIC any more.
  8873. icc* | ifort*)
  8874. lt_prog_compiler_wl='-Wl,'
  8875. lt_prog_compiler_pic='-fPIC'
  8876. lt_prog_compiler_static='-static'
  8877. ;;
  8878. # Lahey Fortran 8.1.
  8879. lf95*)
  8880. lt_prog_compiler_wl='-Wl,'
  8881. lt_prog_compiler_pic='--shared'
  8882. lt_prog_compiler_static='--static'
  8883. ;;
  8884. nagfor*)
  8885. # NAG Fortran compiler
  8886. lt_prog_compiler_wl='-Wl,-Wl,,'
  8887. lt_prog_compiler_pic='-PIC'
  8888. lt_prog_compiler_static='-Bstatic'
  8889. ;;
  8890. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8891. # Portland Group compilers (*not* the Pentium gcc compiler,
  8892. # which looks to be a dead project)
  8893. lt_prog_compiler_wl='-Wl,'
  8894. lt_prog_compiler_pic='-fpic'
  8895. lt_prog_compiler_static='-Bstatic'
  8896. ;;
  8897. ccc*)
  8898. lt_prog_compiler_wl='-Wl,'
  8899. # All Alpha code is PIC.
  8900. lt_prog_compiler_static='-non_shared'
  8901. ;;
  8902. xl* | bgxl* | bgf* | mpixl*)
  8903. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8904. lt_prog_compiler_wl='-Wl,'
  8905. lt_prog_compiler_pic='-qpic'
  8906. lt_prog_compiler_static='-qstaticlink'
  8907. ;;
  8908. *)
  8909. case `$CC -V 2>&1 | sed 5q` in
  8910. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8911. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8912. lt_prog_compiler_pic='-KPIC'
  8913. lt_prog_compiler_static='-Bstatic'
  8914. lt_prog_compiler_wl=''
  8915. ;;
  8916. *Sun\ F* | *Sun*Fortran*)
  8917. lt_prog_compiler_pic='-KPIC'
  8918. lt_prog_compiler_static='-Bstatic'
  8919. lt_prog_compiler_wl='-Qoption ld '
  8920. ;;
  8921. *Sun\ C*)
  8922. # Sun C 5.9
  8923. lt_prog_compiler_pic='-KPIC'
  8924. lt_prog_compiler_static='-Bstatic'
  8925. lt_prog_compiler_wl='-Wl,'
  8926. ;;
  8927. *Intel*\ [CF]*Compiler*)
  8928. lt_prog_compiler_wl='-Wl,'
  8929. lt_prog_compiler_pic='-fPIC'
  8930. lt_prog_compiler_static='-static'
  8931. ;;
  8932. *Portland\ Group*)
  8933. lt_prog_compiler_wl='-Wl,'
  8934. lt_prog_compiler_pic='-fpic'
  8935. lt_prog_compiler_static='-Bstatic'
  8936. ;;
  8937. esac
  8938. ;;
  8939. esac
  8940. ;;
  8941. newsos6)
  8942. lt_prog_compiler_pic='-KPIC'
  8943. lt_prog_compiler_static='-Bstatic'
  8944. ;;
  8945. *nto* | *qnx*)
  8946. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8947. # it will coredump.
  8948. lt_prog_compiler_pic='-fPIC -shared'
  8949. ;;
  8950. osf3* | osf4* | osf5*)
  8951. lt_prog_compiler_wl='-Wl,'
  8952. # All OSF/1 code is PIC.
  8953. lt_prog_compiler_static='-non_shared'
  8954. ;;
  8955. rdos*)
  8956. lt_prog_compiler_static='-non_shared'
  8957. ;;
  8958. solaris*)
  8959. lt_prog_compiler_pic='-KPIC'
  8960. lt_prog_compiler_static='-Bstatic'
  8961. case $cc_basename in
  8962. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8963. lt_prog_compiler_wl='-Qoption ld ';;
  8964. *)
  8965. lt_prog_compiler_wl='-Wl,';;
  8966. esac
  8967. ;;
  8968. sunos4*)
  8969. lt_prog_compiler_wl='-Qoption ld '
  8970. lt_prog_compiler_pic='-PIC'
  8971. lt_prog_compiler_static='-Bstatic'
  8972. ;;
  8973. sysv4 | sysv4.2uw2* | sysv4.3*)
  8974. lt_prog_compiler_wl='-Wl,'
  8975. lt_prog_compiler_pic='-KPIC'
  8976. lt_prog_compiler_static='-Bstatic'
  8977. ;;
  8978. sysv4*MP*)
  8979. if test -d /usr/nec ;then
  8980. lt_prog_compiler_pic='-Kconform_pic'
  8981. lt_prog_compiler_static='-Bstatic'
  8982. fi
  8983. ;;
  8984. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8985. lt_prog_compiler_wl='-Wl,'
  8986. lt_prog_compiler_pic='-KPIC'
  8987. lt_prog_compiler_static='-Bstatic'
  8988. ;;
  8989. unicos*)
  8990. lt_prog_compiler_wl='-Wl,'
  8991. lt_prog_compiler_can_build_shared=no
  8992. ;;
  8993. uts4*)
  8994. lt_prog_compiler_pic='-pic'
  8995. lt_prog_compiler_static='-Bstatic'
  8996. ;;
  8997. *)
  8998. lt_prog_compiler_can_build_shared=no
  8999. ;;
  9000. esac
  9001. fi
  9002. case $host_os in
  9003. # For platforms which do not support PIC, -DPIC is meaningless:
  9004. *djgpp*)
  9005. lt_prog_compiler_pic=
  9006. ;;
  9007. *)
  9008. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9009. ;;
  9010. esac
  9011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9012. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9013. if ${lt_cv_prog_compiler_pic+:} false; then :
  9014. $as_echo_n "(cached) " >&6
  9015. else
  9016. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9017. fi
  9018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9019. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  9020. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9021. #
  9022. # Check to make sure the PIC flag actually works.
  9023. #
  9024. if test -n "$lt_prog_compiler_pic"; then
  9025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9026. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9027. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  9028. $as_echo_n "(cached) " >&6
  9029. else
  9030. lt_cv_prog_compiler_pic_works=no
  9031. ac_outfile=conftest.$ac_objext
  9032. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9033. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  9034. # Insert the option either (1) after the last *FLAGS variable, or
  9035. # (2) before a word containing "conftest.", or (3) at the end.
  9036. # Note that $ac_compile itself does not contain backslashes and begins
  9037. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9038. # The option is referenced via a variable to avoid confusing sed.
  9039. lt_compile=`echo "$ac_compile" | $SED \
  9040. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9041. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9042. -e 's:$: $lt_compiler_flag:'`
  9043. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9044. (eval "$lt_compile" 2>conftest.err)
  9045. ac_status=$?
  9046. cat conftest.err >&5
  9047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9048. if (exit $ac_status) && test -s "$ac_outfile"; then
  9049. # The compiler can only warn and ignore the option if not recognized
  9050. # So say no if there are warnings other than the usual output.
  9051. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9052. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9053. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9054. lt_cv_prog_compiler_pic_works=yes
  9055. fi
  9056. fi
  9057. $RM conftest*
  9058. fi
  9059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9060. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  9061. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  9062. case $lt_prog_compiler_pic in
  9063. "" | " "*) ;;
  9064. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9065. esac
  9066. else
  9067. lt_prog_compiler_pic=
  9068. lt_prog_compiler_can_build_shared=no
  9069. fi
  9070. fi
  9071. #
  9072. # Check to make sure the static flag actually works.
  9073. #
  9074. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9076. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9077. if ${lt_cv_prog_compiler_static_works+:} false; then :
  9078. $as_echo_n "(cached) " >&6
  9079. else
  9080. lt_cv_prog_compiler_static_works=no
  9081. save_LDFLAGS="$LDFLAGS"
  9082. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9083. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9084. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9085. # The linker can only warn and ignore the option if not recognized
  9086. # So say no if there are warnings
  9087. if test -s conftest.err; then
  9088. # Append any errors to the config.log.
  9089. cat conftest.err 1>&5
  9090. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9091. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9092. if diff conftest.exp conftest.er2 >/dev/null; then
  9093. lt_cv_prog_compiler_static_works=yes
  9094. fi
  9095. else
  9096. lt_cv_prog_compiler_static_works=yes
  9097. fi
  9098. fi
  9099. $RM -r conftest*
  9100. LDFLAGS="$save_LDFLAGS"
  9101. fi
  9102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9103. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  9104. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  9105. :
  9106. else
  9107. lt_prog_compiler_static=
  9108. fi
  9109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9110. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9111. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9112. $as_echo_n "(cached) " >&6
  9113. else
  9114. lt_cv_prog_compiler_c_o=no
  9115. $RM -r conftest 2>/dev/null
  9116. mkdir conftest
  9117. cd conftest
  9118. mkdir out
  9119. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9120. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9121. # Insert the option either (1) after the last *FLAGS variable, or
  9122. # (2) before a word containing "conftest.", or (3) at the end.
  9123. # Note that $ac_compile itself does not contain backslashes and begins
  9124. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9125. lt_compile=`echo "$ac_compile" | $SED \
  9126. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9127. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9128. -e 's:$: $lt_compiler_flag:'`
  9129. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9130. (eval "$lt_compile" 2>out/conftest.err)
  9131. ac_status=$?
  9132. cat out/conftest.err >&5
  9133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9134. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9135. then
  9136. # The compiler can only warn and ignore the option if not recognized
  9137. # So say no if there are warnings
  9138. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9139. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9140. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9141. lt_cv_prog_compiler_c_o=yes
  9142. fi
  9143. fi
  9144. chmod u+w . 2>&5
  9145. $RM conftest*
  9146. # SGI C++ compiler will create directory out/ii_files/ for
  9147. # template instantiation
  9148. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9149. $RM out/* && rmdir out
  9150. cd ..
  9151. $RM -r conftest
  9152. $RM conftest*
  9153. fi
  9154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9155. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9157. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9158. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9159. $as_echo_n "(cached) " >&6
  9160. else
  9161. lt_cv_prog_compiler_c_o=no
  9162. $RM -r conftest 2>/dev/null
  9163. mkdir conftest
  9164. cd conftest
  9165. mkdir out
  9166. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9167. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9168. # Insert the option either (1) after the last *FLAGS variable, or
  9169. # (2) before a word containing "conftest.", or (3) at the end.
  9170. # Note that $ac_compile itself does not contain backslashes and begins
  9171. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9172. lt_compile=`echo "$ac_compile" | $SED \
  9173. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9174. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9175. -e 's:$: $lt_compiler_flag:'`
  9176. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9177. (eval "$lt_compile" 2>out/conftest.err)
  9178. ac_status=$?
  9179. cat out/conftest.err >&5
  9180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9181. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9182. then
  9183. # The compiler can only warn and ignore the option if not recognized
  9184. # So say no if there are warnings
  9185. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9186. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9187. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9188. lt_cv_prog_compiler_c_o=yes
  9189. fi
  9190. fi
  9191. chmod u+w . 2>&5
  9192. $RM conftest*
  9193. # SGI C++ compiler will create directory out/ii_files/ for
  9194. # template instantiation
  9195. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9196. $RM out/* && rmdir out
  9197. cd ..
  9198. $RM -r conftest
  9199. $RM conftest*
  9200. fi
  9201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9202. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9203. hard_links="nottested"
  9204. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  9205. # do not overwrite the value of need_locks provided by the user
  9206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9207. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9208. hard_links=yes
  9209. $RM conftest*
  9210. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9211. touch conftest.a
  9212. ln conftest.a conftest.b 2>&5 || hard_links=no
  9213. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9215. $as_echo "$hard_links" >&6; }
  9216. if test "$hard_links" = no; then
  9217. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  9218. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  9219. need_locks=warn
  9220. fi
  9221. else
  9222. need_locks=no
  9223. fi
  9224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9225. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9226. runpath_var=
  9227. allow_undefined_flag=
  9228. always_export_symbols=no
  9229. archive_cmds=
  9230. archive_expsym_cmds=
  9231. compiler_needs_object=no
  9232. enable_shared_with_static_runtimes=no
  9233. export_dynamic_flag_spec=
  9234. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9235. hardcode_automatic=no
  9236. hardcode_direct=no
  9237. hardcode_direct_absolute=no
  9238. hardcode_libdir_flag_spec=
  9239. hardcode_libdir_separator=
  9240. hardcode_minus_L=no
  9241. hardcode_shlibpath_var=unsupported
  9242. inherit_rpath=no
  9243. link_all_deplibs=unknown
  9244. module_cmds=
  9245. module_expsym_cmds=
  9246. old_archive_from_new_cmds=
  9247. old_archive_from_expsyms_cmds=
  9248. thread_safe_flag_spec=
  9249. whole_archive_flag_spec=
  9250. # include_expsyms should be a list of space-separated symbols to be *always*
  9251. # included in the symbol list
  9252. include_expsyms=
  9253. # exclude_expsyms can be an extended regexp of symbols to exclude
  9254. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9255. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9256. # as well as any symbol that contains `d'.
  9257. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9258. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9259. # platforms (ab)use it in PIC code, but their linkers get confused if
  9260. # the symbol is explicitly referenced. Since portable code cannot
  9261. # rely on this symbol name, it's probably fine to never include it in
  9262. # preloaded symbol tables.
  9263. # Exclude shared library initialization/finalization symbols.
  9264. extract_expsyms_cmds=
  9265. case $host_os in
  9266. cygwin* | mingw* | pw32* | cegcc*)
  9267. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9268. # When not using gcc, we currently assume that we are using
  9269. # Microsoft Visual C++.
  9270. if test "$GCC" != yes; then
  9271. with_gnu_ld=no
  9272. fi
  9273. ;;
  9274. interix*)
  9275. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9276. with_gnu_ld=yes
  9277. ;;
  9278. openbsd*)
  9279. with_gnu_ld=no
  9280. ;;
  9281. esac
  9282. ld_shlibs=yes
  9283. # On some targets, GNU ld is compatible enough with the native linker
  9284. # that we're better off using the native interface for both.
  9285. lt_use_gnu_ld_interface=no
  9286. if test "$with_gnu_ld" = yes; then
  9287. case $host_os in
  9288. aix*)
  9289. # The AIX port of GNU ld has always aspired to compatibility
  9290. # with the native linker. However, as the warning in the GNU ld
  9291. # block says, versions before 2.19.5* couldn't really create working
  9292. # shared libraries, regardless of the interface used.
  9293. case `$LD -v 2>&1` in
  9294. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9295. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9296. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9297. *)
  9298. lt_use_gnu_ld_interface=yes
  9299. ;;
  9300. esac
  9301. ;;
  9302. *)
  9303. lt_use_gnu_ld_interface=yes
  9304. ;;
  9305. esac
  9306. fi
  9307. if test "$lt_use_gnu_ld_interface" = yes; then
  9308. # If archive_cmds runs LD, not CC, wlarc should be empty
  9309. wlarc='${wl}'
  9310. # Set some defaults for GNU ld with shared library support. These
  9311. # are reset later if shared libraries are not supported. Putting them
  9312. # here allows them to be overridden if necessary.
  9313. runpath_var=LD_RUN_PATH
  9314. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9315. export_dynamic_flag_spec='${wl}--export-dynamic'
  9316. # ancient GNU ld didn't support --whole-archive et. al.
  9317. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9318. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9319. else
  9320. whole_archive_flag_spec=
  9321. fi
  9322. supports_anon_versioning=no
  9323. case `$LD -v 2>&1` in
  9324. *GNU\ gold*) supports_anon_versioning=yes ;;
  9325. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9326. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9327. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9328. *\ 2.11.*) ;; # other 2.11 versions
  9329. *) supports_anon_versioning=yes ;;
  9330. esac
  9331. # See if GNU ld supports shared libraries.
  9332. case $host_os in
  9333. aix[3-9]*)
  9334. # On AIX/PPC, the GNU linker is very broken
  9335. if test "$host_cpu" != ia64; then
  9336. ld_shlibs=no
  9337. cat <<_LT_EOF 1>&2
  9338. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9339. *** to be unable to reliably create shared libraries on AIX.
  9340. *** Therefore, libtool is disabling shared libraries support. If you
  9341. *** really care for shared libraries, you may want to install binutils
  9342. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9343. *** You will then need to restart the configuration process.
  9344. _LT_EOF
  9345. fi
  9346. ;;
  9347. amigaos*)
  9348. case $host_cpu in
  9349. powerpc)
  9350. # see comment about AmigaOS4 .so support
  9351. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9352. archive_expsym_cmds=''
  9353. ;;
  9354. m68k)
  9355. 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)'
  9356. hardcode_libdir_flag_spec='-L$libdir'
  9357. hardcode_minus_L=yes
  9358. ;;
  9359. esac
  9360. ;;
  9361. beos*)
  9362. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9363. allow_undefined_flag=unsupported
  9364. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9365. # support --undefined. This deserves some investigation. FIXME
  9366. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9367. else
  9368. ld_shlibs=no
  9369. fi
  9370. ;;
  9371. cygwin* | mingw* | pw32* | cegcc*)
  9372. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9373. # as there is no search path for DLLs.
  9374. hardcode_libdir_flag_spec='-L$libdir'
  9375. export_dynamic_flag_spec='${wl}--export-all-symbols'
  9376. allow_undefined_flag=unsupported
  9377. always_export_symbols=no
  9378. enable_shared_with_static_runtimes=yes
  9379. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  9380. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9381. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9382. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9383. # If the export-symbols file already is a .def file (1st line
  9384. # is EXPORTS), use it as is; otherwise, prepend...
  9385. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9386. cp $export_symbols $output_objdir/$soname.def;
  9387. else
  9388. echo EXPORTS > $output_objdir/$soname.def;
  9389. cat $export_symbols >> $output_objdir/$soname.def;
  9390. fi~
  9391. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9392. else
  9393. ld_shlibs=no
  9394. fi
  9395. ;;
  9396. haiku*)
  9397. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9398. link_all_deplibs=yes
  9399. ;;
  9400. interix[3-9]*)
  9401. hardcode_direct=no
  9402. hardcode_shlibpath_var=no
  9403. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9404. export_dynamic_flag_spec='${wl}-E'
  9405. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9406. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9407. # default) and relocated if they conflict, which is a slow very memory
  9408. # consuming and fragmenting process. To avoid this, we pick a random,
  9409. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9410. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9411. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9412. 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'
  9413. ;;
  9414. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9415. tmp_diet=no
  9416. if test "$host_os" = linux-dietlibc; then
  9417. case $cc_basename in
  9418. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9419. esac
  9420. fi
  9421. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9422. && test "$tmp_diet" = no
  9423. then
  9424. tmp_addflag=' $pic_flag'
  9425. tmp_sharedflag='-shared'
  9426. case $cc_basename,$host_cpu in
  9427. pgcc*) # Portland Group C compiler
  9428. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  9429. tmp_addflag=' $pic_flag'
  9430. ;;
  9431. pgf77* | pgf90* | pgf95* | pgfortran*)
  9432. # Portland Group f77 and f90 compilers
  9433. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  9434. tmp_addflag=' $pic_flag -Mnomain' ;;
  9435. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9436. tmp_addflag=' -i_dynamic' ;;
  9437. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9438. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9439. ifc* | ifort*) # Intel Fortran compiler
  9440. tmp_addflag=' -nofor_main' ;;
  9441. lf95*) # Lahey Fortran 8.1
  9442. whole_archive_flag_spec=
  9443. tmp_sharedflag='--shared' ;;
  9444. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9445. tmp_sharedflag='-qmkshrobj'
  9446. tmp_addflag= ;;
  9447. nvcc*) # Cuda Compiler Driver 2.2
  9448. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  9449. compiler_needs_object=yes
  9450. ;;
  9451. esac
  9452. case `$CC -V 2>&1 | sed 5q` in
  9453. *Sun\ C*) # Sun C 5.9
  9454. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  9455. compiler_needs_object=yes
  9456. tmp_sharedflag='-G' ;;
  9457. *Sun\ F*) # Sun Fortran 8.3
  9458. tmp_sharedflag='-G' ;;
  9459. esac
  9460. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9461. if test "x$supports_anon_versioning" = xyes; then
  9462. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9463. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9464. echo "local: *; };" >> $output_objdir/$libname.ver~
  9465. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9466. fi
  9467. case $cc_basename in
  9468. xlf* | bgf* | bgxlf* | mpixlf*)
  9469. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9470. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9471. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9472. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9473. if test "x$supports_anon_versioning" = xyes; then
  9474. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9475. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9476. echo "local: *; };" >> $output_objdir/$libname.ver~
  9477. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9478. fi
  9479. ;;
  9480. esac
  9481. else
  9482. ld_shlibs=no
  9483. fi
  9484. ;;
  9485. netbsd*)
  9486. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9487. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9488. wlarc=
  9489. else
  9490. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9491. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9492. fi
  9493. ;;
  9494. solaris*)
  9495. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9496. ld_shlibs=no
  9497. cat <<_LT_EOF 1>&2
  9498. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9499. *** create shared libraries on Solaris systems. Therefore, libtool
  9500. *** is disabling shared libraries support. We urge you to upgrade GNU
  9501. *** binutils to release 2.9.1 or newer. Another option is to modify
  9502. *** your PATH or compiler configuration so that the native linker is
  9503. *** used, and then restart.
  9504. _LT_EOF
  9505. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9506. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9507. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9508. else
  9509. ld_shlibs=no
  9510. fi
  9511. ;;
  9512. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9513. case `$LD -v 2>&1` in
  9514. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9515. ld_shlibs=no
  9516. cat <<_LT_EOF 1>&2
  9517. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9518. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9519. *** is disabling shared libraries support. We urge you to upgrade GNU
  9520. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9521. *** your PATH or compiler configuration so that the native linker is
  9522. *** used, and then restart.
  9523. _LT_EOF
  9524. ;;
  9525. *)
  9526. # For security reasons, it is highly recommended that you always
  9527. # use absolute paths for naming shared libraries, and exclude the
  9528. # DT_RUNPATH tag from executables and libraries. But doing so
  9529. # requires that you compile everything twice, which is a pain.
  9530. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9531. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9532. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9533. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9534. else
  9535. ld_shlibs=no
  9536. fi
  9537. ;;
  9538. esac
  9539. ;;
  9540. sunos4*)
  9541. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9542. wlarc=
  9543. hardcode_direct=yes
  9544. hardcode_shlibpath_var=no
  9545. ;;
  9546. *)
  9547. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9548. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9549. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9550. else
  9551. ld_shlibs=no
  9552. fi
  9553. ;;
  9554. esac
  9555. if test "$ld_shlibs" = no; then
  9556. runpath_var=
  9557. hardcode_libdir_flag_spec=
  9558. export_dynamic_flag_spec=
  9559. whole_archive_flag_spec=
  9560. fi
  9561. else
  9562. # PORTME fill in a description of your system's linker (not GNU ld)
  9563. case $host_os in
  9564. aix3*)
  9565. allow_undefined_flag=unsupported
  9566. always_export_symbols=yes
  9567. 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'
  9568. # Note: this linker hardcodes the directories in LIBPATH if there
  9569. # are no directories specified by -L.
  9570. hardcode_minus_L=yes
  9571. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9572. # Neither direct hardcoding nor static linking is supported with a
  9573. # broken collect2.
  9574. hardcode_direct=unsupported
  9575. fi
  9576. ;;
  9577. aix[4-9]*)
  9578. if test "$host_cpu" = ia64; then
  9579. # On IA64, the linker does run time linking by default, so we don't
  9580. # have to do anything special.
  9581. aix_use_runtimelinking=no
  9582. exp_sym_flag='-Bexport'
  9583. no_entry_flag=""
  9584. else
  9585. # If we're using GNU nm, then we don't want the "-C" option.
  9586. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9587. # Also, AIX nm treats weak defined symbols like other global
  9588. # defined symbols, whereas GNU nm marks them as "W".
  9589. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9590. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  9591. else
  9592. 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'
  9593. fi
  9594. aix_use_runtimelinking=no
  9595. # Test if we are trying to use run time linking or normal
  9596. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9597. # need to do runtime linking.
  9598. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9599. for ld_flag in $LDFLAGS; do
  9600. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9601. aix_use_runtimelinking=yes
  9602. break
  9603. fi
  9604. done
  9605. ;;
  9606. esac
  9607. exp_sym_flag='-bexport'
  9608. no_entry_flag='-bnoentry'
  9609. fi
  9610. # When large executables or shared objects are built, AIX ld can
  9611. # have problems creating the table of contents. If linking a library
  9612. # or program results in "error TOC overflow" add -mminimal-toc to
  9613. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9614. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9615. archive_cmds=''
  9616. hardcode_direct=yes
  9617. hardcode_direct_absolute=yes
  9618. hardcode_libdir_separator=':'
  9619. link_all_deplibs=yes
  9620. file_list_spec='${wl}-f,'
  9621. if test "$GCC" = yes; then
  9622. case $host_os in aix4.[012]|aix4.[012].*)
  9623. # We only want to do this on AIX 4.2 and lower, the check
  9624. # below for broken collect2 doesn't work under 4.3+
  9625. collect2name=`${CC} -print-prog-name=collect2`
  9626. if test -f "$collect2name" &&
  9627. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9628. then
  9629. # We have reworked collect2
  9630. :
  9631. else
  9632. # We have old collect2
  9633. hardcode_direct=unsupported
  9634. # It fails to find uninstalled libraries when the uninstalled
  9635. # path is not listed in the libpath. Setting hardcode_minus_L
  9636. # to unsupported forces relinking
  9637. hardcode_minus_L=yes
  9638. hardcode_libdir_flag_spec='-L$libdir'
  9639. hardcode_libdir_separator=
  9640. fi
  9641. ;;
  9642. esac
  9643. shared_flag='-shared'
  9644. if test "$aix_use_runtimelinking" = yes; then
  9645. shared_flag="$shared_flag "'${wl}-G'
  9646. fi
  9647. else
  9648. # not using gcc
  9649. if test "$host_cpu" = ia64; then
  9650. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9651. # chokes on -Wl,-G. The following line is correct:
  9652. shared_flag='-G'
  9653. else
  9654. if test "$aix_use_runtimelinking" = yes; then
  9655. shared_flag='${wl}-G'
  9656. else
  9657. shared_flag='${wl}-bM:SRE'
  9658. fi
  9659. fi
  9660. fi
  9661. export_dynamic_flag_spec='${wl}-bexpall'
  9662. # It seems that -bexpall does not export symbols beginning with
  9663. # underscore (_), so it is better to generate a list of symbols to export.
  9664. always_export_symbols=yes
  9665. if test "$aix_use_runtimelinking" = yes; then
  9666. # Warning - without using the other runtime loading flags (-brtl),
  9667. # -berok will link without error, but may produce a broken library.
  9668. allow_undefined_flag='-berok'
  9669. # Determine the default libpath from the value encoded in an
  9670. # empty executable.
  9671. if test "${lt_cv_aix_libpath+set}" = set; then
  9672. aix_libpath=$lt_cv_aix_libpath
  9673. else
  9674. if ${lt_cv_aix_libpath_+:} false; then :
  9675. $as_echo_n "(cached) " >&6
  9676. else
  9677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9678. /* end confdefs.h. */
  9679. int
  9680. main ()
  9681. {
  9682. ;
  9683. return 0;
  9684. }
  9685. _ACEOF
  9686. if ac_fn_c_try_link "$LINENO"; then :
  9687. lt_aix_libpath_sed='
  9688. /Import File Strings/,/^$/ {
  9689. /^0/ {
  9690. s/^0 *\([^ ]*\) *$/\1/
  9691. p
  9692. }
  9693. }'
  9694. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9695. # Check for a 64-bit object if we didn't find anything.
  9696. if test -z "$lt_cv_aix_libpath_"; then
  9697. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9698. fi
  9699. fi
  9700. rm -f core conftest.err conftest.$ac_objext \
  9701. conftest$ac_exeext conftest.$ac_ext
  9702. if test -z "$lt_cv_aix_libpath_"; then
  9703. lt_cv_aix_libpath_="/usr/lib:/lib"
  9704. fi
  9705. fi
  9706. aix_libpath=$lt_cv_aix_libpath_
  9707. fi
  9708. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9709. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9710. else
  9711. if test "$host_cpu" = ia64; then
  9712. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9713. allow_undefined_flag="-z nodefs"
  9714. 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"
  9715. else
  9716. # Determine the default libpath from the value encoded in an
  9717. # empty executable.
  9718. if test "${lt_cv_aix_libpath+set}" = set; then
  9719. aix_libpath=$lt_cv_aix_libpath
  9720. else
  9721. if ${lt_cv_aix_libpath_+:} false; then :
  9722. $as_echo_n "(cached) " >&6
  9723. else
  9724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9725. /* end confdefs.h. */
  9726. int
  9727. main ()
  9728. {
  9729. ;
  9730. return 0;
  9731. }
  9732. _ACEOF
  9733. if ac_fn_c_try_link "$LINENO"; then :
  9734. lt_aix_libpath_sed='
  9735. /Import File Strings/,/^$/ {
  9736. /^0/ {
  9737. s/^0 *\([^ ]*\) *$/\1/
  9738. p
  9739. }
  9740. }'
  9741. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9742. # Check for a 64-bit object if we didn't find anything.
  9743. if test -z "$lt_cv_aix_libpath_"; then
  9744. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9745. fi
  9746. fi
  9747. rm -f core conftest.err conftest.$ac_objext \
  9748. conftest$ac_exeext conftest.$ac_ext
  9749. if test -z "$lt_cv_aix_libpath_"; then
  9750. lt_cv_aix_libpath_="/usr/lib:/lib"
  9751. fi
  9752. fi
  9753. aix_libpath=$lt_cv_aix_libpath_
  9754. fi
  9755. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9756. # Warning - without using the other run time loading flags,
  9757. # -berok will link without error, but may produce a broken library.
  9758. no_undefined_flag=' ${wl}-bernotok'
  9759. allow_undefined_flag=' ${wl}-berok'
  9760. if test "$with_gnu_ld" = yes; then
  9761. # We only use this code for GNU lds that support --whole-archive.
  9762. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9763. else
  9764. # Exported symbols can be pulled into shared objects from archives
  9765. whole_archive_flag_spec='$convenience'
  9766. fi
  9767. archive_cmds_need_lc=yes
  9768. # This is similar to how AIX traditionally builds its shared libraries.
  9769. 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'
  9770. fi
  9771. fi
  9772. ;;
  9773. amigaos*)
  9774. case $host_cpu in
  9775. powerpc)
  9776. # see comment about AmigaOS4 .so support
  9777. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9778. archive_expsym_cmds=''
  9779. ;;
  9780. m68k)
  9781. 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)'
  9782. hardcode_libdir_flag_spec='-L$libdir'
  9783. hardcode_minus_L=yes
  9784. ;;
  9785. esac
  9786. ;;
  9787. bsdi[45]*)
  9788. export_dynamic_flag_spec=-rdynamic
  9789. ;;
  9790. cygwin* | mingw* | pw32* | cegcc*)
  9791. # When not using gcc, we currently assume that we are using
  9792. # Microsoft Visual C++.
  9793. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9794. # no search path for DLLs.
  9795. case $cc_basename in
  9796. cl*)
  9797. # Native MSVC
  9798. hardcode_libdir_flag_spec=' '
  9799. allow_undefined_flag=unsupported
  9800. always_export_symbols=yes
  9801. file_list_spec='@'
  9802. # Tell ltmain to make .lib files, not .a files.
  9803. libext=lib
  9804. # Tell ltmain to make .dll files, not .so files.
  9805. shrext_cmds=".dll"
  9806. # FIXME: Setting linknames here is a bad hack.
  9807. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9808. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9809. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9810. else
  9811. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9812. fi~
  9813. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9814. linknames='
  9815. # The linker will not automatically build a static lib if we build a DLL.
  9816. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9817. enable_shared_with_static_runtimes=yes
  9818. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9819. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9820. # Don't use ranlib
  9821. old_postinstall_cmds='chmod 644 $oldlib'
  9822. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9823. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9824. case $lt_outputfile in
  9825. *.exe|*.EXE) ;;
  9826. *)
  9827. lt_outputfile="$lt_outputfile.exe"
  9828. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9829. ;;
  9830. esac~
  9831. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9832. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9833. $RM "$lt_outputfile.manifest";
  9834. fi'
  9835. ;;
  9836. *)
  9837. # Assume MSVC wrapper
  9838. hardcode_libdir_flag_spec=' '
  9839. allow_undefined_flag=unsupported
  9840. # Tell ltmain to make .lib files, not .a files.
  9841. libext=lib
  9842. # Tell ltmain to make .dll files, not .so files.
  9843. shrext_cmds=".dll"
  9844. # FIXME: Setting linknames here is a bad hack.
  9845. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9846. # The linker will automatically build a .lib file if we build a DLL.
  9847. old_archive_from_new_cmds='true'
  9848. # FIXME: Should let the user specify the lib program.
  9849. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9850. enable_shared_with_static_runtimes=yes
  9851. ;;
  9852. esac
  9853. ;;
  9854. darwin* | rhapsody*)
  9855. archive_cmds_need_lc=no
  9856. hardcode_direct=no
  9857. hardcode_automatic=yes
  9858. hardcode_shlibpath_var=unsupported
  9859. if test "$lt_cv_ld_force_load" = "yes"; then
  9860. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9861. else
  9862. whole_archive_flag_spec=''
  9863. fi
  9864. link_all_deplibs=yes
  9865. allow_undefined_flag="$_lt_dar_allow_undefined"
  9866. case $cc_basename in
  9867. ifort*) _lt_dar_can_shared=yes ;;
  9868. *) _lt_dar_can_shared=$GCC ;;
  9869. esac
  9870. if test "$_lt_dar_can_shared" = "yes"; then
  9871. output_verbose_link_cmd=func_echo_all
  9872. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9873. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9874. 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}"
  9875. 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}"
  9876. else
  9877. ld_shlibs=no
  9878. fi
  9879. ;;
  9880. dgux*)
  9881. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9882. hardcode_libdir_flag_spec='-L$libdir'
  9883. hardcode_shlibpath_var=no
  9884. ;;
  9885. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9886. # support. Future versions do this automatically, but an explicit c++rt0.o
  9887. # does not break anything, and helps significantly (at the cost of a little
  9888. # extra space).
  9889. freebsd2.2*)
  9890. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9891. hardcode_libdir_flag_spec='-R$libdir'
  9892. hardcode_direct=yes
  9893. hardcode_shlibpath_var=no
  9894. ;;
  9895. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9896. freebsd2.*)
  9897. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9898. hardcode_direct=yes
  9899. hardcode_minus_L=yes
  9900. hardcode_shlibpath_var=no
  9901. ;;
  9902. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9903. freebsd* | dragonfly*)
  9904. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9905. hardcode_libdir_flag_spec='-R$libdir'
  9906. hardcode_direct=yes
  9907. hardcode_shlibpath_var=no
  9908. ;;
  9909. hpux9*)
  9910. if test "$GCC" = yes; then
  9911. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9912. else
  9913. 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'
  9914. fi
  9915. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9916. hardcode_libdir_separator=:
  9917. hardcode_direct=yes
  9918. # hardcode_minus_L: Not really in the search PATH,
  9919. # but as the default location of the library.
  9920. hardcode_minus_L=yes
  9921. export_dynamic_flag_spec='${wl}-E'
  9922. ;;
  9923. hpux10*)
  9924. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9925. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9926. else
  9927. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9928. fi
  9929. if test "$with_gnu_ld" = no; then
  9930. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9931. hardcode_libdir_separator=:
  9932. hardcode_direct=yes
  9933. hardcode_direct_absolute=yes
  9934. export_dynamic_flag_spec='${wl}-E'
  9935. # hardcode_minus_L: Not really in the search PATH,
  9936. # but as the default location of the library.
  9937. hardcode_minus_L=yes
  9938. fi
  9939. ;;
  9940. hpux11*)
  9941. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9942. case $host_cpu in
  9943. hppa*64*)
  9944. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9945. ;;
  9946. ia64*)
  9947. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9948. ;;
  9949. *)
  9950. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9951. ;;
  9952. esac
  9953. else
  9954. case $host_cpu in
  9955. hppa*64*)
  9956. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9957. ;;
  9958. ia64*)
  9959. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9960. ;;
  9961. *)
  9962. # Older versions of the 11.00 compiler do not understand -b yet
  9963. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9965. $as_echo_n "checking if $CC understands -b... " >&6; }
  9966. if ${lt_cv_prog_compiler__b+:} false; then :
  9967. $as_echo_n "(cached) " >&6
  9968. else
  9969. lt_cv_prog_compiler__b=no
  9970. save_LDFLAGS="$LDFLAGS"
  9971. LDFLAGS="$LDFLAGS -b"
  9972. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9973. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9974. # The linker can only warn and ignore the option if not recognized
  9975. # So say no if there are warnings
  9976. if test -s conftest.err; then
  9977. # Append any errors to the config.log.
  9978. cat conftest.err 1>&5
  9979. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9980. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9981. if diff conftest.exp conftest.er2 >/dev/null; then
  9982. lt_cv_prog_compiler__b=yes
  9983. fi
  9984. else
  9985. lt_cv_prog_compiler__b=yes
  9986. fi
  9987. fi
  9988. $RM -r conftest*
  9989. LDFLAGS="$save_LDFLAGS"
  9990. fi
  9991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9992. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9993. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9994. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9995. else
  9996. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9997. fi
  9998. ;;
  9999. esac
  10000. fi
  10001. if test "$with_gnu_ld" = no; then
  10002. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10003. hardcode_libdir_separator=:
  10004. case $host_cpu in
  10005. hppa*64*|ia64*)
  10006. hardcode_direct=no
  10007. hardcode_shlibpath_var=no
  10008. ;;
  10009. *)
  10010. hardcode_direct=yes
  10011. hardcode_direct_absolute=yes
  10012. export_dynamic_flag_spec='${wl}-E'
  10013. # hardcode_minus_L: Not really in the search PATH,
  10014. # but as the default location of the library.
  10015. hardcode_minus_L=yes
  10016. ;;
  10017. esac
  10018. fi
  10019. ;;
  10020. irix5* | irix6* | nonstopux*)
  10021. if test "$GCC" = yes; then
  10022. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10023. # Try to use the -exported_symbol ld option, if it does not
  10024. # work, assume that -exports_file does not work either and
  10025. # implicitly export all symbols.
  10026. # This should be the same for all languages, so no per-tag cache variable.
  10027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10028. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10029. if ${lt_cv_irix_exported_symbol+:} false; then :
  10030. $as_echo_n "(cached) " >&6
  10031. else
  10032. save_LDFLAGS="$LDFLAGS"
  10033. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  10034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10035. /* end confdefs.h. */
  10036. int foo (void) { return 0; }
  10037. _ACEOF
  10038. if ac_fn_c_try_link "$LINENO"; then :
  10039. lt_cv_irix_exported_symbol=yes
  10040. else
  10041. lt_cv_irix_exported_symbol=no
  10042. fi
  10043. rm -f core conftest.err conftest.$ac_objext \
  10044. conftest$ac_exeext conftest.$ac_ext
  10045. LDFLAGS="$save_LDFLAGS"
  10046. fi
  10047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10048. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  10049. if test "$lt_cv_irix_exported_symbol" = yes; then
  10050. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  10051. fi
  10052. else
  10053. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10054. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  10055. fi
  10056. archive_cmds_need_lc='no'
  10057. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10058. hardcode_libdir_separator=:
  10059. inherit_rpath=yes
  10060. link_all_deplibs=yes
  10061. ;;
  10062. netbsd*)
  10063. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10064. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10065. else
  10066. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10067. fi
  10068. hardcode_libdir_flag_spec='-R$libdir'
  10069. hardcode_direct=yes
  10070. hardcode_shlibpath_var=no
  10071. ;;
  10072. newsos6)
  10073. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10074. hardcode_direct=yes
  10075. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10076. hardcode_libdir_separator=:
  10077. hardcode_shlibpath_var=no
  10078. ;;
  10079. *nto* | *qnx*)
  10080. ;;
  10081. openbsd*)
  10082. if test -f /usr/libexec/ld.so; then
  10083. hardcode_direct=yes
  10084. hardcode_shlibpath_var=no
  10085. hardcode_direct_absolute=yes
  10086. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10087. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10088. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  10089. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10090. export_dynamic_flag_spec='${wl}-E'
  10091. else
  10092. case $host_os in
  10093. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  10094. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10095. hardcode_libdir_flag_spec='-R$libdir'
  10096. ;;
  10097. *)
  10098. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10099. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10100. ;;
  10101. esac
  10102. fi
  10103. else
  10104. ld_shlibs=no
  10105. fi
  10106. ;;
  10107. os2*)
  10108. hardcode_libdir_flag_spec='-L$libdir'
  10109. hardcode_minus_L=yes
  10110. allow_undefined_flag=unsupported
  10111. 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'
  10112. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10113. ;;
  10114. osf3*)
  10115. if test "$GCC" = yes; then
  10116. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10117. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10118. else
  10119. allow_undefined_flag=' -expect_unresolved \*'
  10120. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10121. fi
  10122. archive_cmds_need_lc='no'
  10123. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10124. hardcode_libdir_separator=:
  10125. ;;
  10126. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10127. if test "$GCC" = yes; then
  10128. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10129. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10130. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10131. else
  10132. allow_undefined_flag=' -expect_unresolved \*'
  10133. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10134. 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~
  10135. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  10136. # Both c and cxx compiler support -rpath directly
  10137. hardcode_libdir_flag_spec='-rpath $libdir'
  10138. fi
  10139. archive_cmds_need_lc='no'
  10140. hardcode_libdir_separator=:
  10141. ;;
  10142. solaris*)
  10143. no_undefined_flag=' -z defs'
  10144. if test "$GCC" = yes; then
  10145. wlarc='${wl}'
  10146. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10147. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10148. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10149. else
  10150. case `$CC -V 2>&1` in
  10151. *"Compilers 5.0"*)
  10152. wlarc=''
  10153. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10154. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10155. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10156. ;;
  10157. *)
  10158. wlarc='${wl}'
  10159. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10160. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10161. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10162. ;;
  10163. esac
  10164. fi
  10165. hardcode_libdir_flag_spec='-R$libdir'
  10166. hardcode_shlibpath_var=no
  10167. case $host_os in
  10168. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10169. *)
  10170. # The compiler driver will combine and reorder linker options,
  10171. # but understands `-z linker_flag'. GCC discards it without `$wl',
  10172. # but is careful enough not to reorder.
  10173. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10174. if test "$GCC" = yes; then
  10175. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10176. else
  10177. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10178. fi
  10179. ;;
  10180. esac
  10181. link_all_deplibs=yes
  10182. ;;
  10183. sunos4*)
  10184. if test "x$host_vendor" = xsequent; then
  10185. # Use $CC to link under sequent, because it throws in some extra .o
  10186. # files that make .init and .fini sections work.
  10187. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10188. else
  10189. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10190. fi
  10191. hardcode_libdir_flag_spec='-L$libdir'
  10192. hardcode_direct=yes
  10193. hardcode_minus_L=yes
  10194. hardcode_shlibpath_var=no
  10195. ;;
  10196. sysv4)
  10197. case $host_vendor in
  10198. sni)
  10199. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10200. hardcode_direct=yes # is this really true???
  10201. ;;
  10202. siemens)
  10203. ## LD is ld it makes a PLAMLIB
  10204. ## CC just makes a GrossModule.
  10205. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10206. reload_cmds='$CC -r -o $output$reload_objs'
  10207. hardcode_direct=no
  10208. ;;
  10209. motorola)
  10210. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10211. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10212. ;;
  10213. esac
  10214. runpath_var='LD_RUN_PATH'
  10215. hardcode_shlibpath_var=no
  10216. ;;
  10217. sysv4.3*)
  10218. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10219. hardcode_shlibpath_var=no
  10220. export_dynamic_flag_spec='-Bexport'
  10221. ;;
  10222. sysv4*MP*)
  10223. if test -d /usr/nec; then
  10224. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10225. hardcode_shlibpath_var=no
  10226. runpath_var=LD_RUN_PATH
  10227. hardcode_runpath_var=yes
  10228. ld_shlibs=yes
  10229. fi
  10230. ;;
  10231. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10232. no_undefined_flag='${wl}-z,text'
  10233. archive_cmds_need_lc=no
  10234. hardcode_shlibpath_var=no
  10235. runpath_var='LD_RUN_PATH'
  10236. if test "$GCC" = yes; then
  10237. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10238. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10239. else
  10240. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10241. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10242. fi
  10243. ;;
  10244. sysv5* | sco3.2v5* | sco5v6*)
  10245. # Note: We can NOT use -z defs as we might desire, because we do not
  10246. # link with -lc, and that would cause any symbols used from libc to
  10247. # always be unresolved, which means just about no library would
  10248. # ever link correctly. If we're not using GNU ld we use -z text
  10249. # though, which does catch some bad symbols but isn't as heavy-handed
  10250. # as -z defs.
  10251. no_undefined_flag='${wl}-z,text'
  10252. allow_undefined_flag='${wl}-z,nodefs'
  10253. archive_cmds_need_lc=no
  10254. hardcode_shlibpath_var=no
  10255. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  10256. hardcode_libdir_separator=':'
  10257. link_all_deplibs=yes
  10258. export_dynamic_flag_spec='${wl}-Bexport'
  10259. runpath_var='LD_RUN_PATH'
  10260. if test "$GCC" = yes; then
  10261. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10262. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10263. else
  10264. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10265. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10266. fi
  10267. ;;
  10268. uts4*)
  10269. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10270. hardcode_libdir_flag_spec='-L$libdir'
  10271. hardcode_shlibpath_var=no
  10272. ;;
  10273. *)
  10274. ld_shlibs=no
  10275. ;;
  10276. esac
  10277. if test x$host_vendor = xsni; then
  10278. case $host in
  10279. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10280. export_dynamic_flag_spec='${wl}-Blargedynsym'
  10281. ;;
  10282. esac
  10283. fi
  10284. fi
  10285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10286. $as_echo "$ld_shlibs" >&6; }
  10287. test "$ld_shlibs" = no && can_build_shared=no
  10288. with_gnu_ld=$with_gnu_ld
  10289. #
  10290. # Do we need to explicitly link libc?
  10291. #
  10292. case "x$archive_cmds_need_lc" in
  10293. x|xyes)
  10294. # Assume -lc should be added
  10295. archive_cmds_need_lc=yes
  10296. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10297. case $archive_cmds in
  10298. *'~'*)
  10299. # FIXME: we may have to deal with multi-command sequences.
  10300. ;;
  10301. '$CC '*)
  10302. # Test whether the compiler implicitly links with -lc since on some
  10303. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10304. # to ld, don't add -lc before -lgcc.
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10306. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10307. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10308. $as_echo_n "(cached) " >&6
  10309. else
  10310. $RM conftest*
  10311. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10312. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10313. (eval $ac_compile) 2>&5
  10314. ac_status=$?
  10315. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10316. test $ac_status = 0; } 2>conftest.err; then
  10317. soname=conftest
  10318. lib=conftest
  10319. libobjs=conftest.$ac_objext
  10320. deplibs=
  10321. wl=$lt_prog_compiler_wl
  10322. pic_flag=$lt_prog_compiler_pic
  10323. compiler_flags=-v
  10324. linker_flags=-v
  10325. verstring=
  10326. output_objdir=.
  10327. libname=conftest
  10328. lt_save_allow_undefined_flag=$allow_undefined_flag
  10329. allow_undefined_flag=
  10330. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10331. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10332. ac_status=$?
  10333. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10334. test $ac_status = 0; }
  10335. then
  10336. lt_cv_archive_cmds_need_lc=no
  10337. else
  10338. lt_cv_archive_cmds_need_lc=yes
  10339. fi
  10340. allow_undefined_flag=$lt_save_allow_undefined_flag
  10341. else
  10342. cat conftest.err 1>&5
  10343. fi
  10344. $RM conftest*
  10345. fi
  10346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10347. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10348. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10349. ;;
  10350. esac
  10351. fi
  10352. ;;
  10353. esac
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10355. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10356. if test "$GCC" = yes; then
  10357. case $host_os in
  10358. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  10359. *) lt_awk_arg="/^libraries:/" ;;
  10360. esac
  10361. case $host_os in
  10362. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  10363. *) lt_sed_strip_eq="s,=/,/,g" ;;
  10364. esac
  10365. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10366. case $lt_search_path_spec in
  10367. *\;*)
  10368. # if the path contains ";" then we assume it to be the separator
  10369. # otherwise default to the standard path separator (i.e. ":") - it is
  10370. # assumed that no part of a normal pathname contains ";" but that should
  10371. # okay in the real world where ";" in dirpaths is itself problematic.
  10372. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10373. ;;
  10374. *)
  10375. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10376. ;;
  10377. esac
  10378. # Ok, now we have the path, separated by spaces, we can step through it
  10379. # and add multilib dir if necessary.
  10380. lt_tmp_lt_search_path_spec=
  10381. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10382. for lt_sys_path in $lt_search_path_spec; do
  10383. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  10384. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  10385. else
  10386. test -d "$lt_sys_path" && \
  10387. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10388. fi
  10389. done
  10390. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10391. BEGIN {RS=" "; FS="/|\n";} {
  10392. lt_foo="";
  10393. lt_count=0;
  10394. for (lt_i = NF; lt_i > 0; lt_i--) {
  10395. if ($lt_i != "" && $lt_i != ".") {
  10396. if ($lt_i == "..") {
  10397. lt_count++;
  10398. } else {
  10399. if (lt_count == 0) {
  10400. lt_foo="/" $lt_i lt_foo;
  10401. } else {
  10402. lt_count--;
  10403. }
  10404. }
  10405. }
  10406. }
  10407. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10408. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10409. }'`
  10410. # AWK program above erroneously prepends '/' to C:/dos/paths
  10411. # for these hosts.
  10412. case $host_os in
  10413. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10414. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  10415. esac
  10416. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10417. else
  10418. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10419. fi
  10420. library_names_spec=
  10421. libname_spec='lib$name'
  10422. soname_spec=
  10423. shrext_cmds=".so"
  10424. postinstall_cmds=
  10425. postuninstall_cmds=
  10426. finish_cmds=
  10427. finish_eval=
  10428. shlibpath_var=
  10429. shlibpath_overrides_runpath=unknown
  10430. version_type=none
  10431. dynamic_linker="$host_os ld.so"
  10432. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10433. need_lib_prefix=unknown
  10434. hardcode_into_libs=no
  10435. # when you set need_version to no, make sure it does not cause -set_version
  10436. # flags to be left without arguments
  10437. need_version=unknown
  10438. case $host_os in
  10439. aix3*)
  10440. version_type=linux # correct to gnu/linux during the next big refactor
  10441. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10442. shlibpath_var=LIBPATH
  10443. # AIX 3 has no versioning support, so we append a major version to the name.
  10444. soname_spec='${libname}${release}${shared_ext}$major'
  10445. ;;
  10446. aix[4-9]*)
  10447. version_type=linux # correct to gnu/linux during the next big refactor
  10448. need_lib_prefix=no
  10449. need_version=no
  10450. hardcode_into_libs=yes
  10451. if test "$host_cpu" = ia64; then
  10452. # AIX 5 supports IA64
  10453. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10454. shlibpath_var=LD_LIBRARY_PATH
  10455. else
  10456. # With GCC up to 2.95.x, collect2 would create an import file
  10457. # for dependence libraries. The import file would start with
  10458. # the line `#! .'. This would cause the generated library to
  10459. # depend on `.', always an invalid library. This was fixed in
  10460. # development snapshots of GCC prior to 3.0.
  10461. case $host_os in
  10462. aix4 | aix4.[01] | aix4.[01].*)
  10463. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10464. echo ' yes '
  10465. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  10466. :
  10467. else
  10468. can_build_shared=no
  10469. fi
  10470. ;;
  10471. esac
  10472. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10473. # soname into executable. Probably we can add versioning support to
  10474. # collect2, so additional links can be useful in future.
  10475. if test "$aix_use_runtimelinking" = yes; then
  10476. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10477. # instead of lib<name>.a to let people know that these are not
  10478. # typical AIX shared libraries.
  10479. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10480. else
  10481. # We preserve .a as extension for shared libraries through AIX4.2
  10482. # and later when we are not doing run time linking.
  10483. library_names_spec='${libname}${release}.a $libname.a'
  10484. soname_spec='${libname}${release}${shared_ext}$major'
  10485. fi
  10486. shlibpath_var=LIBPATH
  10487. fi
  10488. ;;
  10489. amigaos*)
  10490. case $host_cpu in
  10491. powerpc)
  10492. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10493. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10494. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10495. ;;
  10496. m68k)
  10497. library_names_spec='$libname.ixlibrary $libname.a'
  10498. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10499. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10500. ;;
  10501. esac
  10502. ;;
  10503. beos*)
  10504. library_names_spec='${libname}${shared_ext}'
  10505. dynamic_linker="$host_os ld.so"
  10506. shlibpath_var=LIBRARY_PATH
  10507. ;;
  10508. bsdi[45]*)
  10509. version_type=linux # correct to gnu/linux during the next big refactor
  10510. need_version=no
  10511. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10512. soname_spec='${libname}${release}${shared_ext}$major'
  10513. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10514. shlibpath_var=LD_LIBRARY_PATH
  10515. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10516. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10517. # the default ld.so.conf also contains /usr/contrib/lib and
  10518. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10519. # libtool to hard-code these into programs
  10520. ;;
  10521. cygwin* | mingw* | pw32* | cegcc*)
  10522. version_type=windows
  10523. shrext_cmds=".dll"
  10524. need_version=no
  10525. need_lib_prefix=no
  10526. case $GCC,$cc_basename in
  10527. yes,*)
  10528. # gcc
  10529. library_names_spec='$libname.dll.a'
  10530. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10531. postinstall_cmds='base_file=`basename \${file}`~
  10532. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10533. dldir=$destdir/`dirname \$dlpath`~
  10534. test -d \$dldir || mkdir -p \$dldir~
  10535. $install_prog $dir/$dlname \$dldir/$dlname~
  10536. chmod a+x \$dldir/$dlname~
  10537. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10538. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10539. fi'
  10540. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10541. dlpath=$dir/\$dldll~
  10542. $RM \$dlpath'
  10543. shlibpath_overrides_runpath=yes
  10544. case $host_os in
  10545. cygwin*)
  10546. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10547. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10548. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10549. ;;
  10550. mingw* | cegcc*)
  10551. # MinGW DLLs use traditional 'lib' prefix
  10552. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10553. ;;
  10554. pw32*)
  10555. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10556. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10557. ;;
  10558. esac
  10559. dynamic_linker='Win32 ld.exe'
  10560. ;;
  10561. *,cl*)
  10562. # Native MSVC
  10563. libname_spec='$name'
  10564. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10565. library_names_spec='${libname}.dll.lib'
  10566. case $build_os in
  10567. mingw*)
  10568. sys_lib_search_path_spec=
  10569. lt_save_ifs=$IFS
  10570. IFS=';'
  10571. for lt_path in $LIB
  10572. do
  10573. IFS=$lt_save_ifs
  10574. # Let DOS variable expansion print the short 8.3 style file name.
  10575. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10576. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10577. done
  10578. IFS=$lt_save_ifs
  10579. # Convert to MSYS style.
  10580. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10581. ;;
  10582. cygwin*)
  10583. # Convert to unix form, then to dos form, then back to unix form
  10584. # but this time dos style (no spaces!) so that the unix form looks
  10585. # like /cygdrive/c/PROGRA~1:/cygdr...
  10586. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10587. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10588. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10589. ;;
  10590. *)
  10591. sys_lib_search_path_spec="$LIB"
  10592. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10593. # It is most probably a Windows format PATH.
  10594. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10595. else
  10596. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10597. fi
  10598. # FIXME: find the short name or the path components, as spaces are
  10599. # common. (e.g. "Program Files" -> "PROGRA~1")
  10600. ;;
  10601. esac
  10602. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10603. postinstall_cmds='base_file=`basename \${file}`~
  10604. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10605. dldir=$destdir/`dirname \$dlpath`~
  10606. test -d \$dldir || mkdir -p \$dldir~
  10607. $install_prog $dir/$dlname \$dldir/$dlname'
  10608. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10609. dlpath=$dir/\$dldll~
  10610. $RM \$dlpath'
  10611. shlibpath_overrides_runpath=yes
  10612. dynamic_linker='Win32 link.exe'
  10613. ;;
  10614. *)
  10615. # Assume MSVC wrapper
  10616. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10617. dynamic_linker='Win32 ld.exe'
  10618. ;;
  10619. esac
  10620. # FIXME: first we should search . and the directory the executable is in
  10621. shlibpath_var=PATH
  10622. ;;
  10623. darwin* | rhapsody*)
  10624. dynamic_linker="$host_os dyld"
  10625. version_type=darwin
  10626. need_lib_prefix=no
  10627. need_version=no
  10628. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10629. soname_spec='${libname}${release}${major}$shared_ext'
  10630. shlibpath_overrides_runpath=yes
  10631. shlibpath_var=DYLD_LIBRARY_PATH
  10632. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10633. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10634. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10635. ;;
  10636. dgux*)
  10637. version_type=linux # correct to gnu/linux during the next big refactor
  10638. need_lib_prefix=no
  10639. need_version=no
  10640. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10641. soname_spec='${libname}${release}${shared_ext}$major'
  10642. shlibpath_var=LD_LIBRARY_PATH
  10643. ;;
  10644. freebsd* | dragonfly*)
  10645. # DragonFly does not have aout. When/if they implement a new
  10646. # versioning mechanism, adjust this.
  10647. if test -x /usr/bin/objformat; then
  10648. objformat=`/usr/bin/objformat`
  10649. else
  10650. case $host_os in
  10651. freebsd[23].*) objformat=aout ;;
  10652. *) objformat=elf ;;
  10653. esac
  10654. fi
  10655. version_type=freebsd-$objformat
  10656. case $version_type in
  10657. freebsd-elf*)
  10658. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10659. need_version=no
  10660. need_lib_prefix=no
  10661. ;;
  10662. freebsd-*)
  10663. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10664. need_version=yes
  10665. ;;
  10666. esac
  10667. shlibpath_var=LD_LIBRARY_PATH
  10668. case $host_os in
  10669. freebsd2.*)
  10670. shlibpath_overrides_runpath=yes
  10671. ;;
  10672. freebsd3.[01]* | freebsdelf3.[01]*)
  10673. shlibpath_overrides_runpath=yes
  10674. hardcode_into_libs=yes
  10675. ;;
  10676. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10677. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10678. shlibpath_overrides_runpath=no
  10679. hardcode_into_libs=yes
  10680. ;;
  10681. *) # from 4.6 on, and DragonFly
  10682. shlibpath_overrides_runpath=yes
  10683. hardcode_into_libs=yes
  10684. ;;
  10685. esac
  10686. ;;
  10687. gnu*)
  10688. version_type=linux # correct to gnu/linux during the next big refactor
  10689. need_lib_prefix=no
  10690. need_version=no
  10691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10692. soname_spec='${libname}${release}${shared_ext}$major'
  10693. shlibpath_var=LD_LIBRARY_PATH
  10694. shlibpath_overrides_runpath=no
  10695. hardcode_into_libs=yes
  10696. ;;
  10697. haiku*)
  10698. version_type=linux # correct to gnu/linux during the next big refactor
  10699. need_lib_prefix=no
  10700. need_version=no
  10701. dynamic_linker="$host_os runtime_loader"
  10702. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10703. soname_spec='${libname}${release}${shared_ext}$major'
  10704. shlibpath_var=LIBRARY_PATH
  10705. shlibpath_overrides_runpath=yes
  10706. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10707. hardcode_into_libs=yes
  10708. ;;
  10709. hpux9* | hpux10* | hpux11*)
  10710. # Give a soname corresponding to the major version so that dld.sl refuses to
  10711. # link against other versions.
  10712. version_type=sunos
  10713. need_lib_prefix=no
  10714. need_version=no
  10715. case $host_cpu in
  10716. ia64*)
  10717. shrext_cmds='.so'
  10718. hardcode_into_libs=yes
  10719. dynamic_linker="$host_os dld.so"
  10720. shlibpath_var=LD_LIBRARY_PATH
  10721. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10722. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10723. soname_spec='${libname}${release}${shared_ext}$major'
  10724. if test "X$HPUX_IA64_MODE" = X32; then
  10725. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10726. else
  10727. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10728. fi
  10729. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10730. ;;
  10731. hppa*64*)
  10732. shrext_cmds='.sl'
  10733. hardcode_into_libs=yes
  10734. dynamic_linker="$host_os dld.sl"
  10735. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10736. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10737. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10738. soname_spec='${libname}${release}${shared_ext}$major'
  10739. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10740. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10741. ;;
  10742. *)
  10743. shrext_cmds='.sl'
  10744. dynamic_linker="$host_os dld.sl"
  10745. shlibpath_var=SHLIB_PATH
  10746. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10747. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10748. soname_spec='${libname}${release}${shared_ext}$major'
  10749. ;;
  10750. esac
  10751. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10752. postinstall_cmds='chmod 555 $lib'
  10753. # or fails outright, so override atomically:
  10754. install_override_mode=555
  10755. ;;
  10756. interix[3-9]*)
  10757. version_type=linux # correct to gnu/linux during the next big refactor
  10758. need_lib_prefix=no
  10759. need_version=no
  10760. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10761. soname_spec='${libname}${release}${shared_ext}$major'
  10762. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10763. shlibpath_var=LD_LIBRARY_PATH
  10764. shlibpath_overrides_runpath=no
  10765. hardcode_into_libs=yes
  10766. ;;
  10767. irix5* | irix6* | nonstopux*)
  10768. case $host_os in
  10769. nonstopux*) version_type=nonstopux ;;
  10770. *)
  10771. if test "$lt_cv_prog_gnu_ld" = yes; then
  10772. version_type=linux # correct to gnu/linux during the next big refactor
  10773. else
  10774. version_type=irix
  10775. fi ;;
  10776. esac
  10777. need_lib_prefix=no
  10778. need_version=no
  10779. soname_spec='${libname}${release}${shared_ext}$major'
  10780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10781. case $host_os in
  10782. irix5* | nonstopux*)
  10783. libsuff= shlibsuff=
  10784. ;;
  10785. *)
  10786. case $LD in # libtool.m4 will add one of these switches to LD
  10787. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10788. libsuff= shlibsuff= libmagic=32-bit;;
  10789. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10790. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10791. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10792. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10793. *) libsuff= shlibsuff= libmagic=never-match;;
  10794. esac
  10795. ;;
  10796. esac
  10797. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10798. shlibpath_overrides_runpath=no
  10799. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10800. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10801. hardcode_into_libs=yes
  10802. ;;
  10803. # No shared lib support for Linux oldld, aout, or coff.
  10804. linux*oldld* | linux*aout* | linux*coff*)
  10805. dynamic_linker=no
  10806. ;;
  10807. # This must be glibc/ELF.
  10808. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10809. version_type=linux # correct to gnu/linux during the next big refactor
  10810. need_lib_prefix=no
  10811. need_version=no
  10812. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10813. soname_spec='${libname}${release}${shared_ext}$major'
  10814. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10815. shlibpath_var=LD_LIBRARY_PATH
  10816. shlibpath_overrides_runpath=no
  10817. # Some binutils ld are patched to set DT_RUNPATH
  10818. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10819. $as_echo_n "(cached) " >&6
  10820. else
  10821. lt_cv_shlibpath_overrides_runpath=no
  10822. save_LDFLAGS=$LDFLAGS
  10823. save_libdir=$libdir
  10824. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10825. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10827. /* end confdefs.h. */
  10828. int
  10829. main ()
  10830. {
  10831. ;
  10832. return 0;
  10833. }
  10834. _ACEOF
  10835. if ac_fn_c_try_link "$LINENO"; then :
  10836. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10837. lt_cv_shlibpath_overrides_runpath=yes
  10838. fi
  10839. fi
  10840. rm -f core conftest.err conftest.$ac_objext \
  10841. conftest$ac_exeext conftest.$ac_ext
  10842. LDFLAGS=$save_LDFLAGS
  10843. libdir=$save_libdir
  10844. fi
  10845. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10846. # This implies no fast_install, which is unacceptable.
  10847. # Some rework will be needed to allow for fast_install
  10848. # before this can be enabled.
  10849. hardcode_into_libs=yes
  10850. # Append ld.so.conf contents to the search path
  10851. if test -f /etc/ld.so.conf; then
  10852. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  10853. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10854. fi
  10855. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10856. # powerpc, because MkLinux only supported shared libraries with the
  10857. # GNU dynamic linker. Since this was broken with cross compilers,
  10858. # most powerpc-linux boxes support dynamic linking these days and
  10859. # people can always --disable-shared, the test was removed, and we
  10860. # assume the GNU/Linux dynamic linker is in use.
  10861. dynamic_linker='GNU/Linux ld.so'
  10862. ;;
  10863. netbsd*)
  10864. version_type=sunos
  10865. need_lib_prefix=no
  10866. need_version=no
  10867. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10868. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10869. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10870. dynamic_linker='NetBSD (a.out) ld.so'
  10871. else
  10872. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10873. soname_spec='${libname}${release}${shared_ext}$major'
  10874. dynamic_linker='NetBSD ld.elf_so'
  10875. fi
  10876. shlibpath_var=LD_LIBRARY_PATH
  10877. shlibpath_overrides_runpath=yes
  10878. hardcode_into_libs=yes
  10879. ;;
  10880. newsos6)
  10881. version_type=linux # correct to gnu/linux during the next big refactor
  10882. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10883. shlibpath_var=LD_LIBRARY_PATH
  10884. shlibpath_overrides_runpath=yes
  10885. ;;
  10886. *nto* | *qnx*)
  10887. version_type=qnx
  10888. need_lib_prefix=no
  10889. need_version=no
  10890. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10891. soname_spec='${libname}${release}${shared_ext}$major'
  10892. shlibpath_var=LD_LIBRARY_PATH
  10893. shlibpath_overrides_runpath=no
  10894. hardcode_into_libs=yes
  10895. dynamic_linker='ldqnx.so'
  10896. ;;
  10897. openbsd*)
  10898. version_type=sunos
  10899. sys_lib_dlsearch_path_spec="/usr/lib"
  10900. need_lib_prefix=no
  10901. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10902. case $host_os in
  10903. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10904. *) need_version=no ;;
  10905. esac
  10906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10907. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10908. shlibpath_var=LD_LIBRARY_PATH
  10909. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10910. case $host_os in
  10911. openbsd2.[89] | openbsd2.[89].*)
  10912. shlibpath_overrides_runpath=no
  10913. ;;
  10914. *)
  10915. shlibpath_overrides_runpath=yes
  10916. ;;
  10917. esac
  10918. else
  10919. shlibpath_overrides_runpath=yes
  10920. fi
  10921. ;;
  10922. os2*)
  10923. libname_spec='$name'
  10924. shrext_cmds=".dll"
  10925. need_lib_prefix=no
  10926. library_names_spec='$libname${shared_ext} $libname.a'
  10927. dynamic_linker='OS/2 ld.exe'
  10928. shlibpath_var=LIBPATH
  10929. ;;
  10930. osf3* | osf4* | osf5*)
  10931. version_type=osf
  10932. need_lib_prefix=no
  10933. need_version=no
  10934. soname_spec='${libname}${release}${shared_ext}$major'
  10935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10936. shlibpath_var=LD_LIBRARY_PATH
  10937. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10938. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10939. ;;
  10940. rdos*)
  10941. dynamic_linker=no
  10942. ;;
  10943. solaris*)
  10944. version_type=linux # correct to gnu/linux during the next big refactor
  10945. need_lib_prefix=no
  10946. need_version=no
  10947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10948. soname_spec='${libname}${release}${shared_ext}$major'
  10949. shlibpath_var=LD_LIBRARY_PATH
  10950. shlibpath_overrides_runpath=yes
  10951. hardcode_into_libs=yes
  10952. # ldd complains unless libraries are executable
  10953. postinstall_cmds='chmod +x $lib'
  10954. ;;
  10955. sunos4*)
  10956. version_type=sunos
  10957. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10958. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10959. shlibpath_var=LD_LIBRARY_PATH
  10960. shlibpath_overrides_runpath=yes
  10961. if test "$with_gnu_ld" = yes; then
  10962. need_lib_prefix=no
  10963. fi
  10964. need_version=yes
  10965. ;;
  10966. sysv4 | sysv4.3*)
  10967. version_type=linux # correct to gnu/linux during the next big refactor
  10968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10969. soname_spec='${libname}${release}${shared_ext}$major'
  10970. shlibpath_var=LD_LIBRARY_PATH
  10971. case $host_vendor in
  10972. sni)
  10973. shlibpath_overrides_runpath=no
  10974. need_lib_prefix=no
  10975. runpath_var=LD_RUN_PATH
  10976. ;;
  10977. siemens)
  10978. need_lib_prefix=no
  10979. ;;
  10980. motorola)
  10981. need_lib_prefix=no
  10982. need_version=no
  10983. shlibpath_overrides_runpath=no
  10984. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10985. ;;
  10986. esac
  10987. ;;
  10988. sysv4*MP*)
  10989. if test -d /usr/nec ;then
  10990. version_type=linux # correct to gnu/linux during the next big refactor
  10991. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10992. soname_spec='$libname${shared_ext}.$major'
  10993. shlibpath_var=LD_LIBRARY_PATH
  10994. fi
  10995. ;;
  10996. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10997. version_type=freebsd-elf
  10998. need_lib_prefix=no
  10999. need_version=no
  11000. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11001. soname_spec='${libname}${release}${shared_ext}$major'
  11002. shlibpath_var=LD_LIBRARY_PATH
  11003. shlibpath_overrides_runpath=yes
  11004. hardcode_into_libs=yes
  11005. if test "$with_gnu_ld" = yes; then
  11006. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11007. else
  11008. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11009. case $host_os in
  11010. sco3.2v5*)
  11011. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11012. ;;
  11013. esac
  11014. fi
  11015. sys_lib_dlsearch_path_spec='/usr/lib'
  11016. ;;
  11017. tpf*)
  11018. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11019. version_type=linux # correct to gnu/linux during the next big refactor
  11020. need_lib_prefix=no
  11021. need_version=no
  11022. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11023. shlibpath_var=LD_LIBRARY_PATH
  11024. shlibpath_overrides_runpath=no
  11025. hardcode_into_libs=yes
  11026. ;;
  11027. uts4*)
  11028. version_type=linux # correct to gnu/linux during the next big refactor
  11029. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11030. soname_spec='${libname}${release}${shared_ext}$major'
  11031. shlibpath_var=LD_LIBRARY_PATH
  11032. ;;
  11033. *)
  11034. dynamic_linker=no
  11035. ;;
  11036. esac
  11037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11038. $as_echo "$dynamic_linker" >&6; }
  11039. test "$dynamic_linker" = no && can_build_shared=no
  11040. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11041. if test "$GCC" = yes; then
  11042. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11043. fi
  11044. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  11045. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  11046. fi
  11047. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  11048. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  11049. fi
  11050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11051. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11052. hardcode_action=
  11053. if test -n "$hardcode_libdir_flag_spec" ||
  11054. test -n "$runpath_var" ||
  11055. test "X$hardcode_automatic" = "Xyes" ; then
  11056. # We can hardcode non-existent directories.
  11057. if test "$hardcode_direct" != no &&
  11058. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11059. # have to relink, otherwise we might link with an installed library
  11060. # when we should be linking with a yet-to-be-installed one
  11061. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  11062. test "$hardcode_minus_L" != no; then
  11063. # Linking always hardcodes the temporary library directory.
  11064. hardcode_action=relink
  11065. else
  11066. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11067. hardcode_action=immediate
  11068. fi
  11069. else
  11070. # We cannot hardcode anything, or else we can only hardcode existing
  11071. # directories.
  11072. hardcode_action=unsupported
  11073. fi
  11074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11075. $as_echo "$hardcode_action" >&6; }
  11076. if test "$hardcode_action" = relink ||
  11077. test "$inherit_rpath" = yes; then
  11078. # Fast installation is not supported
  11079. enable_fast_install=no
  11080. elif test "$shlibpath_overrides_runpath" = yes ||
  11081. test "$enable_shared" = no; then
  11082. # Fast installation is not necessary
  11083. enable_fast_install=needless
  11084. fi
  11085. if test "x$enable_dlopen" != xyes; then
  11086. enable_dlopen=unknown
  11087. enable_dlopen_self=unknown
  11088. enable_dlopen_self_static=unknown
  11089. else
  11090. lt_cv_dlopen=no
  11091. lt_cv_dlopen_libs=
  11092. case $host_os in
  11093. beos*)
  11094. lt_cv_dlopen="load_add_on"
  11095. lt_cv_dlopen_libs=
  11096. lt_cv_dlopen_self=yes
  11097. ;;
  11098. mingw* | pw32* | cegcc*)
  11099. lt_cv_dlopen="LoadLibrary"
  11100. lt_cv_dlopen_libs=
  11101. ;;
  11102. cygwin*)
  11103. lt_cv_dlopen="dlopen"
  11104. lt_cv_dlopen_libs=
  11105. ;;
  11106. darwin*)
  11107. # if libdl is installed we need to link against it
  11108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11109. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11110. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11111. $as_echo_n "(cached) " >&6
  11112. else
  11113. ac_check_lib_save_LIBS=$LIBS
  11114. LIBS="-ldl $LIBS"
  11115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11116. /* end confdefs.h. */
  11117. /* Override any GCC internal prototype to avoid an error.
  11118. Use char because int might match the return type of a GCC
  11119. builtin and then its argument prototype would still apply. */
  11120. #ifdef __cplusplus
  11121. extern "C"
  11122. #endif
  11123. char dlopen ();
  11124. int
  11125. main ()
  11126. {
  11127. return dlopen ();
  11128. ;
  11129. return 0;
  11130. }
  11131. _ACEOF
  11132. if ac_fn_c_try_link "$LINENO"; then :
  11133. ac_cv_lib_dl_dlopen=yes
  11134. else
  11135. ac_cv_lib_dl_dlopen=no
  11136. fi
  11137. rm -f core conftest.err conftest.$ac_objext \
  11138. conftest$ac_exeext conftest.$ac_ext
  11139. LIBS=$ac_check_lib_save_LIBS
  11140. fi
  11141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11142. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11143. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11144. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11145. else
  11146. lt_cv_dlopen="dyld"
  11147. lt_cv_dlopen_libs=
  11148. lt_cv_dlopen_self=yes
  11149. fi
  11150. ;;
  11151. *)
  11152. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11153. if test "x$ac_cv_func_shl_load" = xyes; then :
  11154. lt_cv_dlopen="shl_load"
  11155. else
  11156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11157. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11158. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11159. $as_echo_n "(cached) " >&6
  11160. else
  11161. ac_check_lib_save_LIBS=$LIBS
  11162. LIBS="-ldld $LIBS"
  11163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11164. /* end confdefs.h. */
  11165. /* Override any GCC internal prototype to avoid an error.
  11166. Use char because int might match the return type of a GCC
  11167. builtin and then its argument prototype would still apply. */
  11168. #ifdef __cplusplus
  11169. extern "C"
  11170. #endif
  11171. char shl_load ();
  11172. int
  11173. main ()
  11174. {
  11175. return shl_load ();
  11176. ;
  11177. return 0;
  11178. }
  11179. _ACEOF
  11180. if ac_fn_c_try_link "$LINENO"; then :
  11181. ac_cv_lib_dld_shl_load=yes
  11182. else
  11183. ac_cv_lib_dld_shl_load=no
  11184. fi
  11185. rm -f core conftest.err conftest.$ac_objext \
  11186. conftest$ac_exeext conftest.$ac_ext
  11187. LIBS=$ac_check_lib_save_LIBS
  11188. fi
  11189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11190. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11191. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11192. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  11193. else
  11194. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11195. if test "x$ac_cv_func_dlopen" = xyes; then :
  11196. lt_cv_dlopen="dlopen"
  11197. else
  11198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11199. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11200. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11201. $as_echo_n "(cached) " >&6
  11202. else
  11203. ac_check_lib_save_LIBS=$LIBS
  11204. LIBS="-ldl $LIBS"
  11205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11206. /* end confdefs.h. */
  11207. /* Override any GCC internal prototype to avoid an error.
  11208. Use char because int might match the return type of a GCC
  11209. builtin and then its argument prototype would still apply. */
  11210. #ifdef __cplusplus
  11211. extern "C"
  11212. #endif
  11213. char dlopen ();
  11214. int
  11215. main ()
  11216. {
  11217. return dlopen ();
  11218. ;
  11219. return 0;
  11220. }
  11221. _ACEOF
  11222. if ac_fn_c_try_link "$LINENO"; then :
  11223. ac_cv_lib_dl_dlopen=yes
  11224. else
  11225. ac_cv_lib_dl_dlopen=no
  11226. fi
  11227. rm -f core conftest.err conftest.$ac_objext \
  11228. conftest$ac_exeext conftest.$ac_ext
  11229. LIBS=$ac_check_lib_save_LIBS
  11230. fi
  11231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11232. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11233. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11234. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11235. else
  11236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11237. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11238. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11239. $as_echo_n "(cached) " >&6
  11240. else
  11241. ac_check_lib_save_LIBS=$LIBS
  11242. LIBS="-lsvld $LIBS"
  11243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11244. /* end confdefs.h. */
  11245. /* Override any GCC internal prototype to avoid an error.
  11246. Use char because int might match the return type of a GCC
  11247. builtin and then its argument prototype would still apply. */
  11248. #ifdef __cplusplus
  11249. extern "C"
  11250. #endif
  11251. char dlopen ();
  11252. int
  11253. main ()
  11254. {
  11255. return dlopen ();
  11256. ;
  11257. return 0;
  11258. }
  11259. _ACEOF
  11260. if ac_fn_c_try_link "$LINENO"; then :
  11261. ac_cv_lib_svld_dlopen=yes
  11262. else
  11263. ac_cv_lib_svld_dlopen=no
  11264. fi
  11265. rm -f core conftest.err conftest.$ac_objext \
  11266. conftest$ac_exeext conftest.$ac_ext
  11267. LIBS=$ac_check_lib_save_LIBS
  11268. fi
  11269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11270. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11271. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11272. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11273. else
  11274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11275. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11276. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11277. $as_echo_n "(cached) " >&6
  11278. else
  11279. ac_check_lib_save_LIBS=$LIBS
  11280. LIBS="-ldld $LIBS"
  11281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11282. /* end confdefs.h. */
  11283. /* Override any GCC internal prototype to avoid an error.
  11284. Use char because int might match the return type of a GCC
  11285. builtin and then its argument prototype would still apply. */
  11286. #ifdef __cplusplus
  11287. extern "C"
  11288. #endif
  11289. char dld_link ();
  11290. int
  11291. main ()
  11292. {
  11293. return dld_link ();
  11294. ;
  11295. return 0;
  11296. }
  11297. _ACEOF
  11298. if ac_fn_c_try_link "$LINENO"; then :
  11299. ac_cv_lib_dld_dld_link=yes
  11300. else
  11301. ac_cv_lib_dld_dld_link=no
  11302. fi
  11303. rm -f core conftest.err conftest.$ac_objext \
  11304. conftest$ac_exeext conftest.$ac_ext
  11305. LIBS=$ac_check_lib_save_LIBS
  11306. fi
  11307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11308. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11309. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11310. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  11311. fi
  11312. fi
  11313. fi
  11314. fi
  11315. fi
  11316. fi
  11317. ;;
  11318. esac
  11319. if test "x$lt_cv_dlopen" != xno; then
  11320. enable_dlopen=yes
  11321. else
  11322. enable_dlopen=no
  11323. fi
  11324. case $lt_cv_dlopen in
  11325. dlopen)
  11326. save_CPPFLAGS="$CPPFLAGS"
  11327. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11328. save_LDFLAGS="$LDFLAGS"
  11329. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11330. save_LIBS="$LIBS"
  11331. LIBS="$lt_cv_dlopen_libs $LIBS"
  11332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11333. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11334. if ${lt_cv_dlopen_self+:} false; then :
  11335. $as_echo_n "(cached) " >&6
  11336. else
  11337. if test "$cross_compiling" = yes; then :
  11338. lt_cv_dlopen_self=cross
  11339. else
  11340. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11341. lt_status=$lt_dlunknown
  11342. cat > conftest.$ac_ext <<_LT_EOF
  11343. #line $LINENO "configure"
  11344. #include "confdefs.h"
  11345. #if HAVE_DLFCN_H
  11346. #include <dlfcn.h>
  11347. #endif
  11348. #include <stdio.h>
  11349. #ifdef RTLD_GLOBAL
  11350. # define LT_DLGLOBAL RTLD_GLOBAL
  11351. #else
  11352. # ifdef DL_GLOBAL
  11353. # define LT_DLGLOBAL DL_GLOBAL
  11354. # else
  11355. # define LT_DLGLOBAL 0
  11356. # endif
  11357. #endif
  11358. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11359. find out it does not work in some platform. */
  11360. #ifndef LT_DLLAZY_OR_NOW
  11361. # ifdef RTLD_LAZY
  11362. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11363. # else
  11364. # ifdef DL_LAZY
  11365. # define LT_DLLAZY_OR_NOW DL_LAZY
  11366. # else
  11367. # ifdef RTLD_NOW
  11368. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11369. # else
  11370. # ifdef DL_NOW
  11371. # define LT_DLLAZY_OR_NOW DL_NOW
  11372. # else
  11373. # define LT_DLLAZY_OR_NOW 0
  11374. # endif
  11375. # endif
  11376. # endif
  11377. # endif
  11378. #endif
  11379. /* When -fvisbility=hidden is used, assume the code has been annotated
  11380. correspondingly for the symbols needed. */
  11381. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11382. int fnord () __attribute__((visibility("default")));
  11383. #endif
  11384. int fnord () { return 42; }
  11385. int main ()
  11386. {
  11387. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11388. int status = $lt_dlunknown;
  11389. if (self)
  11390. {
  11391. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11392. else
  11393. {
  11394. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11395. else puts (dlerror ());
  11396. }
  11397. /* dlclose (self); */
  11398. }
  11399. else
  11400. puts (dlerror ());
  11401. return status;
  11402. }
  11403. _LT_EOF
  11404. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11405. (eval $ac_link) 2>&5
  11406. ac_status=$?
  11407. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11408. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11409. (./conftest; exit; ) >&5 2>/dev/null
  11410. lt_status=$?
  11411. case x$lt_status in
  11412. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11413. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11414. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11415. esac
  11416. else :
  11417. # compilation failed
  11418. lt_cv_dlopen_self=no
  11419. fi
  11420. fi
  11421. rm -fr conftest*
  11422. fi
  11423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11424. $as_echo "$lt_cv_dlopen_self" >&6; }
  11425. if test "x$lt_cv_dlopen_self" = xyes; then
  11426. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11428. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11429. if ${lt_cv_dlopen_self_static+:} false; then :
  11430. $as_echo_n "(cached) " >&6
  11431. else
  11432. if test "$cross_compiling" = yes; then :
  11433. lt_cv_dlopen_self_static=cross
  11434. else
  11435. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11436. lt_status=$lt_dlunknown
  11437. cat > conftest.$ac_ext <<_LT_EOF
  11438. #line $LINENO "configure"
  11439. #include "confdefs.h"
  11440. #if HAVE_DLFCN_H
  11441. #include <dlfcn.h>
  11442. #endif
  11443. #include <stdio.h>
  11444. #ifdef RTLD_GLOBAL
  11445. # define LT_DLGLOBAL RTLD_GLOBAL
  11446. #else
  11447. # ifdef DL_GLOBAL
  11448. # define LT_DLGLOBAL DL_GLOBAL
  11449. # else
  11450. # define LT_DLGLOBAL 0
  11451. # endif
  11452. #endif
  11453. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11454. find out it does not work in some platform. */
  11455. #ifndef LT_DLLAZY_OR_NOW
  11456. # ifdef RTLD_LAZY
  11457. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11458. # else
  11459. # ifdef DL_LAZY
  11460. # define LT_DLLAZY_OR_NOW DL_LAZY
  11461. # else
  11462. # ifdef RTLD_NOW
  11463. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11464. # else
  11465. # ifdef DL_NOW
  11466. # define LT_DLLAZY_OR_NOW DL_NOW
  11467. # else
  11468. # define LT_DLLAZY_OR_NOW 0
  11469. # endif
  11470. # endif
  11471. # endif
  11472. # endif
  11473. #endif
  11474. /* When -fvisbility=hidden is used, assume the code has been annotated
  11475. correspondingly for the symbols needed. */
  11476. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11477. int fnord () __attribute__((visibility("default")));
  11478. #endif
  11479. int fnord () { return 42; }
  11480. int main ()
  11481. {
  11482. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11483. int status = $lt_dlunknown;
  11484. if (self)
  11485. {
  11486. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11487. else
  11488. {
  11489. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11490. else puts (dlerror ());
  11491. }
  11492. /* dlclose (self); */
  11493. }
  11494. else
  11495. puts (dlerror ());
  11496. return status;
  11497. }
  11498. _LT_EOF
  11499. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11500. (eval $ac_link) 2>&5
  11501. ac_status=$?
  11502. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11503. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11504. (./conftest; exit; ) >&5 2>/dev/null
  11505. lt_status=$?
  11506. case x$lt_status in
  11507. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11508. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11509. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11510. esac
  11511. else :
  11512. # compilation failed
  11513. lt_cv_dlopen_self_static=no
  11514. fi
  11515. fi
  11516. rm -fr conftest*
  11517. fi
  11518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11519. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11520. fi
  11521. CPPFLAGS="$save_CPPFLAGS"
  11522. LDFLAGS="$save_LDFLAGS"
  11523. LIBS="$save_LIBS"
  11524. ;;
  11525. esac
  11526. case $lt_cv_dlopen_self in
  11527. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11528. *) enable_dlopen_self=unknown ;;
  11529. esac
  11530. case $lt_cv_dlopen_self_static in
  11531. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11532. *) enable_dlopen_self_static=unknown ;;
  11533. esac
  11534. fi
  11535. striplib=
  11536. old_striplib=
  11537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11538. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11539. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11540. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11541. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11543. $as_echo "yes" >&6; }
  11544. else
  11545. # FIXME - insert some real tests, host_os isn't really good enough
  11546. case $host_os in
  11547. darwin*)
  11548. if test -n "$STRIP" ; then
  11549. striplib="$STRIP -x"
  11550. old_striplib="$STRIP -S"
  11551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11552. $as_echo "yes" >&6; }
  11553. else
  11554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11555. $as_echo "no" >&6; }
  11556. fi
  11557. ;;
  11558. *)
  11559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11560. $as_echo "no" >&6; }
  11561. ;;
  11562. esac
  11563. fi
  11564. # Report which library types will actually be built
  11565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11566. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11568. $as_echo "$can_build_shared" >&6; }
  11569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11570. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11571. test "$can_build_shared" = "no" && enable_shared=no
  11572. # On AIX, shared libraries and static libraries use the same namespace, and
  11573. # are all built from PIC.
  11574. case $host_os in
  11575. aix3*)
  11576. test "$enable_shared" = yes && enable_static=no
  11577. if test -n "$RANLIB"; then
  11578. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11579. postinstall_cmds='$RANLIB $lib'
  11580. fi
  11581. ;;
  11582. aix[4-9]*)
  11583. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11584. test "$enable_shared" = yes && enable_static=no
  11585. fi
  11586. ;;
  11587. esac
  11588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11589. $as_echo "$enable_shared" >&6; }
  11590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11591. $as_echo_n "checking whether to build static libraries... " >&6; }
  11592. # Make sure either enable_shared or enable_static is yes.
  11593. test "$enable_shared" = yes || enable_static=yes
  11594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11595. $as_echo "$enable_static" >&6; }
  11596. fi
  11597. ac_ext=c
  11598. ac_cpp='$CPP $CPPFLAGS'
  11599. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11600. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11601. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11602. CC="$lt_save_CC"
  11603. ac_config_commands="$ac_config_commands libtool"
  11604. # Only expand once:
  11605. if test x"$modules" = xdisabled
  11606. then
  11607. echo "Modules still disabled..."
  11608. MODULE_OBJ="legacy_module.\$(OBJEXT)"
  11609. else
  11610. MODULE_OBJ="module.\$(OBJEXT)"
  11611. fi
  11612. if test "x$modules" = xenabled ; then
  11613. HAVE_MODULES_TRUE=
  11614. HAVE_MODULES_FALSE='#'
  11615. else
  11616. HAVE_MODULES_TRUE='#'
  11617. HAVE_MODULES_FALSE=
  11618. fi
  11619. # Check whether --enable-debug was given.
  11620. if test "${enable_debug+set}" = set; then :
  11621. enableval=$enable_debug;
  11622. if test "x$enableval" = xyes
  11623. then
  11624. debugging="enabled"
  11625. else
  11626. debugging="disabled"
  11627. fi
  11628. else
  11629. debugging="disabled"
  11630. fi
  11631. # Check whether --enable-nagging was given.
  11632. if test "${enable_nagging+set}" = set; then :
  11633. enableval=$enable_nagging;
  11634. if test "x$enableval" = xyes
  11635. then
  11636. nagging="enabled"
  11637. debugging="enabled"
  11638. else
  11639. nagging="disabled"
  11640. fi
  11641. else
  11642. nagging="disabled"
  11643. fi
  11644. if test x"$debugging" = xenabled; then
  11645. $as_echo "#define DEBUG 1" >>confdefs.h
  11646. fi
  11647. # Check whether --enable-gapless was given.
  11648. if test "${enable_gapless+set}" = set; then :
  11649. enableval=$enable_gapless;
  11650. if test "x$enableval" = xyes
  11651. then
  11652. gapless="enabled"
  11653. $as_echo "#define GAPLESS 1" >>confdefs.h
  11654. else
  11655. gapless="disabled"
  11656. fi
  11657. else
  11658. gapless="enabled"
  11659. $as_echo "#define GAPLESS 1" >>confdefs.h
  11660. fi
  11661. # Check whether --enable-fifo was given.
  11662. if test "${enable_fifo+set}" = set; then :
  11663. enableval=$enable_fifo;
  11664. if test "x$enableval" = xyes
  11665. then
  11666. fifo="enabled"
  11667. else
  11668. fifo="disabled"
  11669. fi
  11670. else
  11671. fifo="auto"
  11672. fi
  11673. # Check whether --enable-ipv6 was given.
  11674. if test "${enable_ipv6+set}" = set; then :
  11675. enableval=$enable_ipv6;
  11676. if test "x$enableval" = xyes
  11677. then
  11678. ipv6="enabled"
  11679. else
  11680. ipv6="disabled"
  11681. fi
  11682. else
  11683. ipv6="auto"
  11684. fi
  11685. # Check whether --enable-network was given.
  11686. if test "${enable_network+set}" = set; then :
  11687. enableval=$enable_network;
  11688. if test "x$enableval" = xyes
  11689. then
  11690. network="enabled"
  11691. else
  11692. network="disabled"
  11693. fi
  11694. else
  11695. network="auto"
  11696. fi
  11697. s_fpu=
  11698. DECODER_OBJ=
  11699. DECODER_LOBJ=
  11700. id3v2=enabled
  11701. # Check whether --enable-id3v2 was given.
  11702. if test "${enable_id3v2+set}" = set; then :
  11703. enableval=$enable_id3v2;
  11704. if test "x$enableval" = xno; then
  11705. id3v2="disabled"
  11706. fi
  11707. fi
  11708. # id3v2 depends on strings... so check that in between.
  11709. string=enabled
  11710. # Check whether --enable-string was given.
  11711. if test "${enable_string+set}" = set; then :
  11712. enableval=$enable_string;
  11713. if test "x$enableval" = xno; then
  11714. string="disabled"
  11715. fi
  11716. fi
  11717. if test "x$string" = "xdisabled"; then
  11718. $as_echo "#define NO_STRING 1" >>confdefs.h
  11719. id3v2=disabled
  11720. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ID3v2 support disabled because of string API being disabled." >&5
  11721. $as_echo "$as_me: WARNING: ID3v2 support disabled because of string API being disabled." >&2;}
  11722. else
  11723. DECODER_OBJ="$DECODER_OBJ stringbuf.\$(OBJEXT)"
  11724. DECODER_LOBJ="$DECODER_LOBJ stringbuf.lo"
  11725. fi
  11726. if test "x$id3v2" = "xdisabled"; then
  11727. $as_echo "#define NO_ID3V2 1" >>confdefs.h
  11728. fi
  11729. icy=enabled
  11730. # Check whether --enable-icy was given.
  11731. if test "${enable_icy+set}" = set; then :
  11732. enableval=$enable_icy;
  11733. if test "x$enableval" = xno; then
  11734. icy="disabled"
  11735. fi
  11736. fi
  11737. if test "x$icy" = "xdisabled"; then
  11738. $as_echo "#define NO_ICY 1" >>confdefs.h
  11739. else
  11740. DECODER_OBJ="$DECODER_OBJ icy.\$(OBJEXT) icy2utf8.\$(OBJEXT)"
  11741. DECODER_LOBJ="$DECODER_LOBJ icy.lo icy2utf8.lo"
  11742. fi
  11743. ntom=enabled
  11744. # Check whether --enable-ntom was given.
  11745. if test "${enable_ntom+set}" = set; then :
  11746. enableval=$enable_ntom;
  11747. if test "x$enableval" = xno; then
  11748. ntom="disabled"
  11749. fi
  11750. fi
  11751. if test "x$ntom" = "xdisabled"; then
  11752. $as_echo "#define NO_NTOM 1" >>confdefs.h
  11753. else
  11754. DECODER_OBJ="$DECODER_OBJ ntom.\$(OBJEXT)"
  11755. DECODER_LOBJ="$DECODER_LOBJ ntom.lo"
  11756. fi
  11757. downsample=enabled
  11758. # Check whether --enable-downsample was given.
  11759. if test "${enable_downsample+set}" = set; then :
  11760. enableval=$enable_downsample;
  11761. if test "x$enableval" = xno; then
  11762. downsample="disabled"
  11763. fi
  11764. fi
  11765. if test "x$downsample" = "xdisabled"; then
  11766. $as_echo "#define NO_DOWNSAMPLE 1" >>confdefs.h
  11767. fi
  11768. feeder=enabled
  11769. # Check whether --enable-feeder was given.
  11770. if test "${enable_feeder+set}" = set; then :
  11771. enableval=$enable_feeder;
  11772. if test "x$enableval" = xno; then
  11773. feeder="disabled"
  11774. fi
  11775. fi
  11776. if test "x$feeder" = "xdisabled"; then
  11777. $as_echo "#define NO_FEEDER 1" >>confdefs.h
  11778. fi
  11779. messages=enabled
  11780. # Check whether --enable-messages was given.
  11781. if test "${enable_messages+set}" = set; then :
  11782. enableval=$enable_messages;
  11783. if test "x$enableval" = xno; then
  11784. messages="disabled"
  11785. fi
  11786. fi
  11787. if test "x$messages" = "xdisabled"; then
  11788. $as_echo "#define NO_WARNING 1" >>confdefs.h
  11789. $as_echo "#define NO_ERRORMSG 1" >>confdefs.h
  11790. $as_echo "#define NO_ERETURN 1" >>confdefs.h
  11791. fi
  11792. integers=fast
  11793. # Check whether --enable-int-quality was given.
  11794. if test "${enable_int_quality+set}" = set; then :
  11795. enableval=$enable_int_quality;
  11796. if test "x$enableval" = xyes; then
  11797. integers=quality
  11798. $as_echo "#define ACCURATE_ROUNDING 1" >>confdefs.h
  11799. fi
  11800. fi
  11801. int16=enabled
  11802. # Check whether --enable-16bit was given.
  11803. if test "${enable_16bit+set}" = set; then :
  11804. enableval=$enable_16bit;
  11805. if test "x$enableval" = xno; then
  11806. int16="disabled"
  11807. fi
  11808. fi
  11809. int8=enabled
  11810. # Check whether --enable-8bit was given.
  11811. if test "${enable_8bit+set}" = set; then :
  11812. enableval=$enable_8bit;
  11813. if test "x$enableval" = xno; then
  11814. int8="disabled"
  11815. fi
  11816. fi
  11817. int32=enabled
  11818. # Check whether --enable-32bit was given.
  11819. if test "${enable_32bit+set}" = set; then :
  11820. enableval=$enable_32bit;
  11821. if test "x$enableval" = xno; then
  11822. int32="disabled"
  11823. fi
  11824. fi
  11825. real=enabled
  11826. # Check whether --enable-real was given.
  11827. if test "${enable_real+set}" = set; then :
  11828. enableval=$enable_real;
  11829. if test "x$enableval" = xno; then
  11830. real="disabled"
  11831. fi
  11832. fi
  11833. # Check whether --with-cpu was given.
  11834. if test "${with_cpu+set}" = set; then :
  11835. withval=$with_cpu;
  11836. fi
  11837. # opt-in for IEEE754 floating point action
  11838. # We want to make sure not to apply hacks relying on IEEE754 storage format on platforms where we did not make sure that this actually is valid.
  11839. # It _should_ be fine for about all computers still out there, but we play safe.
  11840. ieee=no
  11841. case $host in
  11842. i?86-*|x86_64-*|powerpc*|sparc*)
  11843. ieee=yes
  11844. ;;
  11845. esac
  11846. if test "x$ieee" = xyes; then
  11847. echo "We assume IEEE754 floating point format."
  11848. $as_echo "#define IEEE_FLOAT 1" >>confdefs.h
  11849. fi
  11850. newoldwritesample=disabled
  11851. case $host in
  11852. arm*-*-linux*)
  11853. # check that... perhaps we are better off on arm with kernel math emulation
  11854. cpu_type="arm_nofpu"
  11855. ;;
  11856. i386-*-linux*|i386-*-kfreebsd*-gnu)
  11857. cpu_type="i386_fpu"
  11858. newoldwritesample=enabled
  11859. ;;
  11860. i486-*-linux*|i486-*-kfreebsd*-gnu)
  11861. cpu_type="i486"
  11862. newoldwritesample=enabled
  11863. ;;
  11864. i586-*-linux*|i586-*-kfreebsd*-gnu)
  11865. cpu_type="x86"
  11866. newoldwritesample=enabled
  11867. ;;
  11868. i686-*-linux*|i686-*-kfreebsd*-gnu)
  11869. cpu_type="x86"
  11870. newoldwritesample=enabled
  11871. ;;
  11872. x86_64-*-linux*|x86_64-*-kfreebsd*-gnu)
  11873. cpu_type="x86-64"
  11874. ;;
  11875. *-*-linux*|*-*-kfreebsd*-gnu)
  11876. cpu_type="generic_fpu"
  11877. ;;
  11878. i386-apple-darwin10*)
  11879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CPU type supports x86-64" >&5
  11880. $as_echo_n "checking if CPU type supports x86-64... " >&6; }
  11881. case `sysctl -n hw.optional.x86_64` in
  11882. 1)
  11883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11884. $as_echo "yes" >&6; }
  11885. cpu_type="x86-64"
  11886. ;;
  11887. *)
  11888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11889. $as_echo "no" >&6; }
  11890. cpu_type="x86"
  11891. newoldwritesample=enabled
  11892. ;;
  11893. esac
  11894. ;;
  11895. i386-apple-darwin*)
  11896. cpu_type="x86"
  11897. newoldwritesample=enabled
  11898. ;;
  11899. x86_64-apple-darwin*)
  11900. cpu_type="x86-64"
  11901. ;;
  11902. *-apple-darwin*)
  11903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CPU type supports AltiVec" >&5
  11904. $as_echo_n "checking if CPU type supports AltiVec... " >&6; }
  11905. case `machine` in
  11906. ppc7400 | ppc7450 | ppc970)
  11907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11908. $as_echo "yes" >&6; }
  11909. cpu_type="altivec"
  11910. ;;
  11911. *)
  11912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11913. $as_echo "no" >&6; }
  11914. cpu_type="generic_fpu"
  11915. ;;
  11916. esac
  11917. ;;
  11918. i?86-*-dragonfly* | i?86-*-freebsd* | i?86-*-midnightbsd* | i?86-*-mirbsd* | i?86-*-netbsd* | i?86-*-openbsd*)
  11919. cpu_type="x86"
  11920. newoldwritesample=enabled
  11921. ;;
  11922. x86_64-*-dragonfly* | x86_64-*-freebsd* | x86_64-*-midnightbsd* | x86_64-*-mirbsd* | x86_64-*-netbsd* | x86_64-*-openbsd*)
  11923. cpu_type="x86-64"
  11924. ;;
  11925. *-*-dragonfly* | *-*-freebsd* | *-*-midnightbsd* | *-*-mirbsd* | *-*-netbsd* | *-*-openbsd*)
  11926. cpu_type="generic_fpu"
  11927. ;;
  11928. i386-*-solaris*)
  11929. cpu_type=x86
  11930. newoldwritesample=enabled
  11931. ;;
  11932. x86_64-*-solaris*)
  11933. cpu_type=x86-64
  11934. ;;
  11935. *-*-solaris*)
  11936. cpu_type="generic_fpu"
  11937. ;;
  11938. # os2-emx = OS/2 with some Unix fun; so p.ex. buffer works.
  11939. # Till we sorted out the assembler troubles, generic CPU is default.
  11940. i386-pc-os2-emx)
  11941. cpu_type=generic_fpu
  11942. newoldwritesample=enabled
  11943. ;;
  11944. x86_64-pc-os2-emx)
  11945. # We are optimistic hat the future knows OS/2 on x86-64;-)
  11946. cpu_type=generic_fpu
  11947. ;;
  11948. *-pc-os2-emx)
  11949. cpu_type="generic_fpu"
  11950. ;;
  11951. *-dec-osf*)
  11952. cpu_type="generic_fpu"
  11953. ;;
  11954. x86_64-pc-cygwin*)
  11955. cpu_type="x86-64"
  11956. ;;
  11957. i686-pc-cygwin*)
  11958. cpu_type="x86"
  11959. newoldwritesample=enabled
  11960. ;;
  11961. i586-pc-cygwin*)
  11962. cpu_type="x86"
  11963. newoldwritesample=enabled
  11964. ;;
  11965. i486-pc-cygwin*)
  11966. cpu_type="i486"
  11967. newoldwritesample=enabled
  11968. ;;
  11969. i386-pc-cygwin*)
  11970. cpu_type="i386"
  11971. newoldwritesample=enabled
  11972. ;;
  11973. *-pc-cygwin*)
  11974. cpu_type="generic_fpu"
  11975. ;;
  11976. i[3-7]86-*-mingw32*)
  11977. LIBS="$LIBS"
  11978. buffer=disabled
  11979. cpu_type="x86"
  11980. newoldwritesample=enabled
  11981. ;;
  11982. x86_64-*-mingw32*)
  11983. LIBS="$LIBS"
  11984. buffer=disabled
  11985. cpu_type="x86-64"
  11986. ;;
  11987. i386-*-nto-qnx*)
  11988. cpu_type="x86"
  11989. newoldwritesample=enabled
  11990. ;;
  11991. i386-*)
  11992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  11993. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  11994. cpu_type="i386"
  11995. buffer=disabled
  11996. ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
  11997. newoldwritesample=enabled
  11998. ;;
  11999. i486-*)
  12000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  12001. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  12002. cpu_type="i486"
  12003. buffer=disabled
  12004. ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
  12005. newoldwritesample=enabled
  12006. ;;
  12007. i586-*)
  12008. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  12009. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  12010. cpu_type="x86"
  12011. buffer=disabled
  12012. ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
  12013. newoldwritesample=enabled
  12014. ;;
  12015. i686-*)
  12016. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  12017. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  12018. cpu_type="x86"
  12019. buffer=disabled
  12020. ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
  12021. newoldwritesample=enabled
  12022. ;;
  12023. x86_64-*)
  12024. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  12025. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  12026. cpu_type="x86-64"
  12027. buffer=disabled
  12028. ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
  12029. ;;
  12030. *)
  12031. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  12032. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  12033. cpu_type="generic_fpu"
  12034. buffer=disabled
  12035. ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
  12036. ;;
  12037. esac
  12038. # Check whether --enable-buffer was given.
  12039. if test "${enable_buffer+set}" = set; then :
  12040. enableval=$enable_buffer;
  12041. if test "x$enableval" = xyes
  12042. then
  12043. echo "Note: Enabling buffer per request... perhaps it will not build anyway."
  12044. buffer="enabled"
  12045. else
  12046. echo "Note: Disabling buffer per request."
  12047. buffer="disabled"
  12048. fi
  12049. fi
  12050. # Check whether --enable-newoldwritesample was given.
  12051. if test "${enable_newoldwritesample+set}" = set; then :
  12052. enableval=$enable_newoldwritesample;
  12053. if test "x$enableval" = xyes
  12054. then
  12055. newoldwritesample=enabled
  12056. else
  12057. newoldwritesample=disabled
  12058. fi
  12059. fi
  12060. if test "x$with_cpu" != "x"; then
  12061. cpu_type=$with_cpu
  12062. fi
  12063. if test "x$cpu_type" = "xgeneric_nofpu"; then
  12064. real=disabled
  12065. int32=disabled
  12066. fi
  12067. if test "x$cpu_type" = "xi386_nofpu"; then
  12068. real=disabled
  12069. int32=disabled
  12070. fi
  12071. if test "x$cpu_type" = "xppc_nofpu"; then
  12072. real=disabled
  12073. int32=disabled
  12074. fi
  12075. if test "x$cpu_type" = "xarm_nofpu"; then
  12076. real=disabled
  12077. int32=disabled
  12078. fi
  12079. if test "x$int16" = "xdisabled"; then
  12080. $as_echo "#define NO_16BIT 1" >>confdefs.h
  12081. else
  12082. DECODER_OBJ="$DECODER_OBJ synth.\$(OBJEXT)"
  12083. DECODER_LOBJ="$DECODER_LOBJ synth.lo"
  12084. fi
  12085. # 8bit works only through 16bit
  12086. if test "x$int16" = "xdisabled"; then
  12087. int8=disabled
  12088. fi
  12089. if test "x$int8" = "xdisabled"; then
  12090. $as_echo "#define NO_8BIT 1" >>confdefs.h
  12091. else
  12092. DECODER_OBJ="$DECODER_OBJ synth_8bit.\$(OBJEXT)"
  12093. DECODER_LOBJ="$DECODER_LOBJ synth_8bit.lo"
  12094. fi
  12095. if test "x$int32" = "xdisabled"; then
  12096. $as_echo "#define NO_32BIT 1" >>confdefs.h
  12097. else
  12098. s_fpu="$s_fpu synth_s32"
  12099. fi
  12100. if test "x$real" = "xdisabled"; then
  12101. $as_echo "#define NO_REAL 1" >>confdefs.h
  12102. else
  12103. s_fpu="$s_fpu synth_real"
  12104. fi
  12105. layer1=enabled
  12106. # Check whether --enable-layer1 was given.
  12107. if test "${enable_layer1+set}" = set; then :
  12108. enableval=$enable_layer1;
  12109. if test "x$enableval" = xno; then
  12110. layer1="disabled"
  12111. fi
  12112. fi
  12113. if test "x$layer1" = "xdisabled"; then
  12114. $as_echo "#define NO_LAYER1 1" >>confdefs.h
  12115. else
  12116. # layer1 needs code in layer2
  12117. DECODER_OBJ="$DECODER_OBJ layer1.\$(OBJEXT) layer2.\$(OBJEXT)"
  12118. DECODER_LOBJ="$DECODER_LOBJ layer1.lo layer2.lo"
  12119. fi
  12120. layer2=enabled
  12121. # Check whether --enable-layer2 was given.
  12122. if test "${enable_layer2+set}" = set; then :
  12123. enableval=$enable_layer2;
  12124. if test "x$enableval" = xno; then
  12125. layer2="disabled"
  12126. fi
  12127. fi
  12128. if test "x$layer2" = "xdisabled"; then
  12129. $as_echo "#define NO_LAYER2 1" >>confdefs.h
  12130. else
  12131. # layer1 may have added the objects already
  12132. if test "x$layer1" = "xdisabled"; then
  12133. DECODER_OBJ="$DECODER_OBJ layer2.\$(OBJEXT)"
  12134. DECODER_LOBJ="$DECODER_LOBJ layer2.lo"
  12135. fi
  12136. fi
  12137. layer3=enabled
  12138. # Check whether --enable-layer3 was given.
  12139. if test "${enable_layer3+set}" = set; then :
  12140. enableval=$enable_layer3;
  12141. if test "x$enableval" = xno; then
  12142. layer3="disabled"
  12143. fi
  12144. fi
  12145. if test "x$layer3" = "xdisabled"; then
  12146. $as_echo "#define NO_LAYER3 1" >>confdefs.h
  12147. else
  12148. DECODER_OBJ="$DECODER_OBJ layer3.\$(OBJEXT)"
  12149. DECODER_LOBJ="$DECODER_LOBJ layer3.lo"
  12150. fi
  12151. # Check whether --with-audio was given.
  12152. if test "${with_audio+set}" = set; then :
  12153. withval=$with_audio;
  12154. fi
  12155. # Check whether --with-default-audio was given.
  12156. if test "${with_default_audio+set}" = set; then :
  12157. withval=$with_default_audio;
  12158. fi
  12159. # Check whether --with-optimization was given.
  12160. if test "${with_optimization+set}" = set; then :
  12161. withval=$with_optimization;
  12162. fi
  12163. # Check whether --with-seektable was given.
  12164. if test "${with_seektable+set}" = set; then :
  12165. withval=$with_seektable;
  12166. fi
  12167. # Dummy audio output module is always supported
  12168. output_modules="dummy"
  12169. # Decide on module file suffix. Setting it != .la allows removal of .la files.
  12170. # Check whether --with-module-suffix was given.
  12171. if test "${with_module_suffix+set}" = set; then :
  12172. withval=$with_module_suffix;
  12173. fi
  12174. if test x"$with_module_suffix" = x; then
  12175. with_module_suffix=.la
  12176. fi
  12177. cat >>confdefs.h <<_ACEOF
  12178. #define MODULE_FILE_SUFFIX "$with_module_suffix"
  12179. _ACEOF
  12180. # based on posting from John Dalgliesh <[email protected]> on ffmpeg (LGPL) mailing list
  12181. # extended to use balign if present
  12182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .balign is present" >&5
  12183. $as_echo_n "checking if .balign is present... " >&6; }
  12184. echo '.balign 4' > conftest.s
  12185. if $CCAS -c -o conftest.o conftest.s 1>/dev/null 2>&1; then
  12186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12187. $as_echo "yes" >&6; }
  12188. $as_echo "#define ASMALIGN_BALIGN 1" >>confdefs.h
  12189. else
  12190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12191. $as_echo "no" >&6; }
  12192. # find if .align arg is power-of-two or not
  12193. asmalign_exp="unknown"
  12194. if test x"$asmalign_exp" = xunknown; then
  12195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align takes 2-exponent" >&5
  12196. $as_echo_n "checking if .align takes 2-exponent... " >&6; }
  12197. asmalign_exp="no"
  12198. echo '.align 3' > conftest.s
  12199. if $CCAS -c -o conftest.o conftest.s 1>/dev/null 2>&1; then
  12200. asmalign_exp="yes"
  12201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12202. $as_echo "yes" >&6; }
  12203. else
  12204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12205. $as_echo "no" >&6; }
  12206. fi
  12207. rm -f conftest.o conftest.s
  12208. fi
  12209. if test x"$asmalign_exp" = xyes; then
  12210. $as_echo "#define ASMALIGN_EXP 1" >>confdefs.h
  12211. else
  12212. $as_echo "#define ASMALIGN_BYTE 1" >>confdefs.h
  12213. fi
  12214. fi
  12215. ccalign="unknown"
  12216. if test x"$ccalign" = xunknown; then
  12217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((aligned(16)))" >&5
  12218. $as_echo_n "checking __attribute__((aligned(16)))... " >&6; }
  12219. ccalign="no"
  12220. echo '__attribute__((aligned(16))) float var;' > conftest.c
  12221. if $CC -c -o conftest.o conftest.c >/dev/null 2>&1; then
  12222. ccalign="yes"
  12223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12224. $as_echo "yes" >&6; }
  12225. else
  12226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12227. $as_echo "no" >&6; }
  12228. fi
  12229. rm -f conftest.o conftest.c
  12230. fi
  12231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  12232. $as_echo_n "checking for ANSI C header files... " >&6; }
  12233. if ${ac_cv_header_stdc+:} false; then :
  12234. $as_echo_n "(cached) " >&6
  12235. else
  12236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12237. /* end confdefs.h. */
  12238. #include <stdlib.h>
  12239. #include <stdarg.h>
  12240. #include <string.h>
  12241. #include <float.h>
  12242. int
  12243. main ()
  12244. {
  12245. ;
  12246. return 0;
  12247. }
  12248. _ACEOF
  12249. if ac_fn_c_try_compile "$LINENO"; then :
  12250. ac_cv_header_stdc=yes
  12251. else
  12252. ac_cv_header_stdc=no
  12253. fi
  12254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12255. if test $ac_cv_header_stdc = yes; then
  12256. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  12257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12258. /* end confdefs.h. */
  12259. #include <string.h>
  12260. _ACEOF
  12261. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12262. $EGREP "memchr" >/dev/null 2>&1; then :
  12263. else
  12264. ac_cv_header_stdc=no
  12265. fi
  12266. rm -f conftest*
  12267. fi
  12268. if test $ac_cv_header_stdc = yes; then
  12269. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  12270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12271. /* end confdefs.h. */
  12272. #include <stdlib.h>
  12273. _ACEOF
  12274. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12275. $EGREP "free" >/dev/null 2>&1; then :
  12276. else
  12277. ac_cv_header_stdc=no
  12278. fi
  12279. rm -f conftest*
  12280. fi
  12281. if test $ac_cv_header_stdc = yes; then
  12282. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  12283. if test "$cross_compiling" = yes; then :
  12284. :
  12285. else
  12286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12287. /* end confdefs.h. */
  12288. #include <ctype.h>
  12289. #include <stdlib.h>
  12290. #if ((' ' & 0x0FF) == 0x020)
  12291. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  12292. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  12293. #else
  12294. # define ISLOWER(c) \
  12295. (('a' <= (c) && (c) <= 'i') \
  12296. || ('j' <= (c) && (c) <= 'r') \
  12297. || ('s' <= (c) && (c) <= 'z'))
  12298. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  12299. #endif
  12300. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  12301. int
  12302. main ()
  12303. {
  12304. int i;
  12305. for (i = 0; i < 256; i++)
  12306. if (XOR (islower (i), ISLOWER (i))
  12307. || toupper (i) != TOUPPER (i))
  12308. return 2;
  12309. return 0;
  12310. }
  12311. _ACEOF
  12312. if ac_fn_c_try_run "$LINENO"; then :
  12313. else
  12314. ac_cv_header_stdc=no
  12315. fi
  12316. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12317. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12318. fi
  12319. fi
  12320. fi
  12321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  12322. $as_echo "$ac_cv_header_stdc" >&6; }
  12323. if test $ac_cv_header_stdc = yes; then
  12324. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  12325. fi
  12326. for ac_header in stdio.h stdlib.h string.h unistd.h sched.h sys/ioctl.h sys/types.h stdint.h limits.h inttypes.h sys/time.h sys/wait.h sys/resource.h sys/signal.h signal.h
  12327. do :
  12328. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12329. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12330. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12331. cat >>confdefs.h <<_ACEOF
  12332. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12333. _ACEOF
  12334. fi
  12335. done
  12336. # Check whether --enable-largefile was given.
  12337. if test "${enable_largefile+set}" = set; then :
  12338. enableval=$enable_largefile;
  12339. fi
  12340. if test "$enable_largefile" != no; then
  12341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  12342. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  12343. if ${ac_cv_sys_largefile_CC+:} false; then :
  12344. $as_echo_n "(cached) " >&6
  12345. else
  12346. ac_cv_sys_largefile_CC=no
  12347. if test "$GCC" != yes; then
  12348. ac_save_CC=$CC
  12349. while :; do
  12350. # IRIX 6.2 and later do not support large files by default,
  12351. # so use the C compiler's -n32 option if that helps.
  12352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12353. /* end confdefs.h. */
  12354. #include <sys/types.h>
  12355. /* Check that off_t can represent 2**63 - 1 correctly.
  12356. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12357. since some C++ compilers masquerading as C compilers
  12358. incorrectly reject 9223372036854775807. */
  12359. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12360. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12361. && LARGE_OFF_T % 2147483647 == 1)
  12362. ? 1 : -1];
  12363. int
  12364. main ()
  12365. {
  12366. ;
  12367. return 0;
  12368. }
  12369. _ACEOF
  12370. if ac_fn_c_try_compile "$LINENO"; then :
  12371. break
  12372. fi
  12373. rm -f core conftest.err conftest.$ac_objext
  12374. CC="$CC -n32"
  12375. if ac_fn_c_try_compile "$LINENO"; then :
  12376. ac_cv_sys_largefile_CC=' -n32'; break
  12377. fi
  12378. rm -f core conftest.err conftest.$ac_objext
  12379. break
  12380. done
  12381. CC=$ac_save_CC
  12382. rm -f conftest.$ac_ext
  12383. fi
  12384. fi
  12385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  12386. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  12387. if test "$ac_cv_sys_largefile_CC" != no; then
  12388. CC=$CC$ac_cv_sys_largefile_CC
  12389. fi
  12390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  12391. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  12392. if ${ac_cv_sys_file_offset_bits+:} false; then :
  12393. $as_echo_n "(cached) " >&6
  12394. else
  12395. while :; do
  12396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12397. /* end confdefs.h. */
  12398. #include <sys/types.h>
  12399. /* Check that off_t can represent 2**63 - 1 correctly.
  12400. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12401. since some C++ compilers masquerading as C compilers
  12402. incorrectly reject 9223372036854775807. */
  12403. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12404. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12405. && LARGE_OFF_T % 2147483647 == 1)
  12406. ? 1 : -1];
  12407. int
  12408. main ()
  12409. {
  12410. ;
  12411. return 0;
  12412. }
  12413. _ACEOF
  12414. if ac_fn_c_try_compile "$LINENO"; then :
  12415. ac_cv_sys_file_offset_bits=no; break
  12416. fi
  12417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12419. /* end confdefs.h. */
  12420. #define _FILE_OFFSET_BITS 64
  12421. #include <sys/types.h>
  12422. /* Check that off_t can represent 2**63 - 1 correctly.
  12423. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12424. since some C++ compilers masquerading as C compilers
  12425. incorrectly reject 9223372036854775807. */
  12426. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12427. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12428. && LARGE_OFF_T % 2147483647 == 1)
  12429. ? 1 : -1];
  12430. int
  12431. main ()
  12432. {
  12433. ;
  12434. return 0;
  12435. }
  12436. _ACEOF
  12437. if ac_fn_c_try_compile "$LINENO"; then :
  12438. ac_cv_sys_file_offset_bits=64; break
  12439. fi
  12440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12441. ac_cv_sys_file_offset_bits=unknown
  12442. break
  12443. done
  12444. fi
  12445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  12446. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  12447. case $ac_cv_sys_file_offset_bits in #(
  12448. no | unknown) ;;
  12449. *)
  12450. cat >>confdefs.h <<_ACEOF
  12451. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  12452. _ACEOF
  12453. ;;
  12454. esac
  12455. rm -rf conftest*
  12456. if test $ac_cv_sys_file_offset_bits = unknown; then
  12457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  12458. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  12459. if ${ac_cv_sys_large_files+:} false; then :
  12460. $as_echo_n "(cached) " >&6
  12461. else
  12462. while :; do
  12463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12464. /* end confdefs.h. */
  12465. #include <sys/types.h>
  12466. /* Check that off_t can represent 2**63 - 1 correctly.
  12467. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12468. since some C++ compilers masquerading as C compilers
  12469. incorrectly reject 9223372036854775807. */
  12470. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12471. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12472. && LARGE_OFF_T % 2147483647 == 1)
  12473. ? 1 : -1];
  12474. int
  12475. main ()
  12476. {
  12477. ;
  12478. return 0;
  12479. }
  12480. _ACEOF
  12481. if ac_fn_c_try_compile "$LINENO"; then :
  12482. ac_cv_sys_large_files=no; break
  12483. fi
  12484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12486. /* end confdefs.h. */
  12487. #define _LARGE_FILES 1
  12488. #include <sys/types.h>
  12489. /* Check that off_t can represent 2**63 - 1 correctly.
  12490. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12491. since some C++ compilers masquerading as C compilers
  12492. incorrectly reject 9223372036854775807. */
  12493. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12494. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12495. && LARGE_OFF_T % 2147483647 == 1)
  12496. ? 1 : -1];
  12497. int
  12498. main ()
  12499. {
  12500. ;
  12501. return 0;
  12502. }
  12503. _ACEOF
  12504. if ac_fn_c_try_compile "$LINENO"; then :
  12505. ac_cv_sys_large_files=1; break
  12506. fi
  12507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12508. ac_cv_sys_large_files=unknown
  12509. break
  12510. done
  12511. fi
  12512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  12513. $as_echo "$ac_cv_sys_large_files" >&6; }
  12514. case $ac_cv_sys_large_files in #(
  12515. no | unknown) ;;
  12516. *)
  12517. cat >>confdefs.h <<_ACEOF
  12518. #define _LARGE_FILES $ac_cv_sys_large_files
  12519. _ACEOF
  12520. ;;
  12521. esac
  12522. rm -rf conftest*
  12523. fi
  12524. fi
  12525. if test "x$ac_cv_sys_file_offset_bits" = x || echo "$ac_cv_sys_file_offset_bits" | $GREP '[^0-9]' > /dev/null; then
  12526. LFS_LOBJ=
  12527. else
  12528. # Add dual-mode wrapper code.
  12529. LFS_LOBJ=lfs_wrap.lo
  12530. fi
  12531. # Using the lower level macros instead of AC_TYPE_* for compatibility with not freshest autoconf.
  12532. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  12533. if test "x$ac_cv_type_size_t" = xyes; then :
  12534. else
  12535. cat >>confdefs.h <<_ACEOF
  12536. #define size_t unsigned long
  12537. _ACEOF
  12538. fi
  12539. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  12540. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  12541. else
  12542. cat >>confdefs.h <<_ACEOF
  12543. #define uintptr_t unsigned long
  12544. _ACEOF
  12545. fi
  12546. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  12547. if test "x$ac_cv_type_ssize_t" = xyes; then :
  12548. else
  12549. cat >>confdefs.h <<_ACEOF
  12550. #define ssize_t long
  12551. _ACEOF
  12552. fi
  12553. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  12554. if test "x$ac_cv_type_off_t" = xyes; then :
  12555. else
  12556. cat >>confdefs.h <<_ACEOF
  12557. #define off_t long int
  12558. _ACEOF
  12559. fi
  12560. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  12561. if test "x$ac_cv_type_int32_t" = xyes; then :
  12562. else
  12563. cat >>confdefs.h <<_ACEOF
  12564. #define int32_t int
  12565. _ACEOF
  12566. fi
  12567. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  12568. if test "x$ac_cv_type_uint32_t" = xyes; then :
  12569. else
  12570. cat >>confdefs.h <<_ACEOF
  12571. #define uint32_t unsigned int
  12572. _ACEOF
  12573. fi
  12574. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  12575. if test "x$ac_cv_type_int16_t" = xyes; then :
  12576. else
  12577. cat >>confdefs.h <<_ACEOF
  12578. #define int16_t short
  12579. _ACEOF
  12580. fi
  12581. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  12582. if test "x$ac_cv_type_uint16_t" = xyes; then :
  12583. else
  12584. cat >>confdefs.h <<_ACEOF
  12585. #define uint16_t unsigned short
  12586. _ACEOF
  12587. fi
  12588. # The cast to long int works around a bug in the HP C Compiler
  12589. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12590. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12591. # This bug is HP SR number 8606223364.
  12592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  12593. $as_echo_n "checking size of size_t... " >&6; }
  12594. if ${ac_cv_sizeof_size_t+:} false; then :
  12595. $as_echo_n "(cached) " >&6
  12596. else
  12597. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  12598. else
  12599. if test "$ac_cv_type_size_t" = yes; then
  12600. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12601. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12602. as_fn_error 77 "cannot compute sizeof (size_t)
  12603. See \`config.log' for more details" "$LINENO" 5; }
  12604. else
  12605. ac_cv_sizeof_size_t=0
  12606. fi
  12607. fi
  12608. fi
  12609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  12610. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  12611. cat >>confdefs.h <<_ACEOF
  12612. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  12613. _ACEOF
  12614. # The cast to long int works around a bug in the HP C Compiler
  12615. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12616. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12617. # This bug is HP SR number 8606223364.
  12618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
  12619. $as_echo_n "checking size of ssize_t... " >&6; }
  12620. if ${ac_cv_sizeof_ssize_t+:} false; then :
  12621. $as_echo_n "(cached) " >&6
  12622. else
  12623. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
  12624. else
  12625. if test "$ac_cv_type_ssize_t" = yes; then
  12626. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12627. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12628. as_fn_error 77 "cannot compute sizeof (ssize_t)
  12629. See \`config.log' for more details" "$LINENO" 5; }
  12630. else
  12631. ac_cv_sizeof_ssize_t=0
  12632. fi
  12633. fi
  12634. fi
  12635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
  12636. $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
  12637. cat >>confdefs.h <<_ACEOF
  12638. #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
  12639. _ACEOF
  12640. # The cast to long int works around a bug in the HP C Compiler
  12641. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12642. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12643. # This bug is HP SR number 8606223364.
  12644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  12645. $as_echo_n "checking size of off_t... " >&6; }
  12646. if ${ac_cv_sizeof_off_t+:} false; then :
  12647. $as_echo_n "(cached) " >&6
  12648. else
  12649. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
  12650. else
  12651. if test "$ac_cv_type_off_t" = yes; then
  12652. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12653. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12654. as_fn_error 77 "cannot compute sizeof (off_t)
  12655. See \`config.log' for more details" "$LINENO" 5; }
  12656. else
  12657. ac_cv_sizeof_off_t=0
  12658. fi
  12659. fi
  12660. fi
  12661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  12662. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  12663. cat >>confdefs.h <<_ACEOF
  12664. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  12665. _ACEOF
  12666. # The cast to long int works around a bug in the HP C Compiler
  12667. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12668. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12669. # This bug is HP SR number 8606223364.
  12670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
  12671. $as_echo_n "checking size of int32_t... " >&6; }
  12672. if ${ac_cv_sizeof_int32_t+:} false; then :
  12673. $as_echo_n "(cached) " >&6
  12674. else
  12675. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then :
  12676. else
  12677. if test "$ac_cv_type_int32_t" = yes; then
  12678. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12679. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12680. as_fn_error 77 "cannot compute sizeof (int32_t)
  12681. See \`config.log' for more details" "$LINENO" 5; }
  12682. else
  12683. ac_cv_sizeof_int32_t=0
  12684. fi
  12685. fi
  12686. fi
  12687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
  12688. $as_echo "$ac_cv_sizeof_int32_t" >&6; }
  12689. cat >>confdefs.h <<_ACEOF
  12690. #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
  12691. _ACEOF
  12692. # The cast to long int works around a bug in the HP C Compiler
  12693. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12694. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12695. # This bug is HP SR number 8606223364.
  12696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  12697. $as_echo_n "checking size of long... " >&6; }
  12698. if ${ac_cv_sizeof_long+:} false; then :
  12699. $as_echo_n "(cached) " >&6
  12700. else
  12701. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  12702. else
  12703. if test "$ac_cv_type_long" = yes; then
  12704. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12705. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12706. as_fn_error 77 "cannot compute sizeof (long)
  12707. See \`config.log' for more details" "$LINENO" 5; }
  12708. else
  12709. ac_cv_sizeof_long=0
  12710. fi
  12711. fi
  12712. fi
  12713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  12714. $as_echo "$ac_cv_sizeof_long" >&6; }
  12715. cat >>confdefs.h <<_ACEOF
  12716. #define SIZEOF_LONG $ac_cv_sizeof_long
  12717. _ACEOF
  12718. # The alias functions want to know the native off_t bits.
  12719. # "Native" also means large file offsets, if enabled, it's what is native to the mpg123 library.
  12720. if test "x$ac_cv_sizeof_long" = "x"; then
  12721. as_fn_error $? "Cannot determine sizeof(long)?" "$LINENO" 5
  12722. else
  12723. LFS_ALIAS_BITS=`expr "$ac_cv_sizeof_long" "*" "8"`
  12724. cat >>confdefs.h <<_ACEOF
  12725. #define LFS_ALIAS_BITS $LFS_ALIAS_BITS
  12726. _ACEOF
  12727. fi
  12728. lfs_alias=enabled
  12729. # Check whether --enable-lfs-alias was given.
  12730. if test "${enable_lfs_alias+set}" = set; then :
  12731. enableval=$enable_lfs_alias;
  12732. if test "x$enableval" = xno; then
  12733. lfs_alias="disabled"
  12734. fi
  12735. else
  12736. case $host in
  12737. *-cygwin*)
  12738. lfs_alias="disabled"
  12739. { $as_echo "$as_me:${as_lineno-$LINENO}: lfs-alias disabled for Cygwin, use --enable-lfs-alias explicitly to enable, only if you know what you are doing" >&5
  12740. $as_echo "$as_me: lfs-alias disabled for Cygwin, use --enable-lfs-alias explicitly to enable, only if you know what you are doing" >&6;}
  12741. ;;
  12742. esac
  12743. fi
  12744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable alias wrappers for largefile" >&5
  12745. $as_echo_n "checking if we want to enable alias wrappers for largefile... " >&6; }
  12746. if test "x$lfs_alias" = "xenabled"; then
  12747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12748. $as_echo "yes" >&6; }
  12749. LFS_LOBJ="$LFS_LOBJ lfs_alias.lo"
  12750. else
  12751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12752. $as_echo "no" >&6; }
  12753. fi
  12754. for ac_header in $ac_header_list
  12755. do :
  12756. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12757. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  12758. "
  12759. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12760. cat >>confdefs.h <<_ACEOF
  12761. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12762. _ACEOF
  12763. fi
  12764. done
  12765. for ac_func in getpagesize
  12766. do :
  12767. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12768. if test "x$ac_cv_func_getpagesize" = xyes; then :
  12769. cat >>confdefs.h <<_ACEOF
  12770. #define HAVE_GETPAGESIZE 1
  12771. _ACEOF
  12772. fi
  12773. done
  12774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12775. $as_echo_n "checking for working mmap... " >&6; }
  12776. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  12777. $as_echo_n "(cached) " >&6
  12778. else
  12779. if test "$cross_compiling" = yes; then :
  12780. ac_cv_func_mmap_fixed_mapped=no
  12781. else
  12782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12783. /* end confdefs.h. */
  12784. $ac_includes_default
  12785. /* malloc might have been renamed as rpl_malloc. */
  12786. #undef malloc
  12787. /* Thanks to Mike Haertel and Jim Avera for this test.
  12788. Here is a matrix of mmap possibilities:
  12789. mmap private not fixed
  12790. mmap private fixed at somewhere currently unmapped
  12791. mmap private fixed at somewhere already mapped
  12792. mmap shared not fixed
  12793. mmap shared fixed at somewhere currently unmapped
  12794. mmap shared fixed at somewhere already mapped
  12795. For private mappings, we should verify that changes cannot be read()
  12796. back from the file, nor mmap's back from the file at a different
  12797. address. (There have been systems where private was not correctly
  12798. implemented like the infamous i386 svr4.0, and systems where the
  12799. VM page cache was not coherent with the file system buffer cache
  12800. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12801. For shared mappings, we should conversely verify that changes get
  12802. propagated back to all the places they're supposed to be.
  12803. Grep wants private fixed already mapped.
  12804. The main things grep needs to know about mmap are:
  12805. * does it exist and is it safe to write into the mmap'd area
  12806. * how to use it (BSD variants) */
  12807. #include <fcntl.h>
  12808. #include <sys/mman.h>
  12809. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12810. char *malloc ();
  12811. #endif
  12812. /* This mess was copied from the GNU getpagesize.h. */
  12813. #ifndef HAVE_GETPAGESIZE
  12814. # ifdef _SC_PAGESIZE
  12815. # define getpagesize() sysconf(_SC_PAGESIZE)
  12816. # else /* no _SC_PAGESIZE */
  12817. # ifdef HAVE_SYS_PARAM_H
  12818. # include <sys/param.h>
  12819. # ifdef EXEC_PAGESIZE
  12820. # define getpagesize() EXEC_PAGESIZE
  12821. # else /* no EXEC_PAGESIZE */
  12822. # ifdef NBPG
  12823. # define getpagesize() NBPG * CLSIZE
  12824. # ifndef CLSIZE
  12825. # define CLSIZE 1
  12826. # endif /* no CLSIZE */
  12827. # else /* no NBPG */
  12828. # ifdef NBPC
  12829. # define getpagesize() NBPC
  12830. # else /* no NBPC */
  12831. # ifdef PAGESIZE
  12832. # define getpagesize() PAGESIZE
  12833. # endif /* PAGESIZE */
  12834. # endif /* no NBPC */
  12835. # endif /* no NBPG */
  12836. # endif /* no EXEC_PAGESIZE */
  12837. # else /* no HAVE_SYS_PARAM_H */
  12838. # define getpagesize() 8192 /* punt totally */
  12839. # endif /* no HAVE_SYS_PARAM_H */
  12840. # endif /* no _SC_PAGESIZE */
  12841. #endif /* no HAVE_GETPAGESIZE */
  12842. int
  12843. main ()
  12844. {
  12845. char *data, *data2, *data3;
  12846. const char *cdata2;
  12847. int i, pagesize;
  12848. int fd, fd2;
  12849. pagesize = getpagesize ();
  12850. /* First, make a file with some known garbage in it. */
  12851. data = (char *) malloc (pagesize);
  12852. if (!data)
  12853. return 1;
  12854. for (i = 0; i < pagesize; ++i)
  12855. *(data + i) = rand ();
  12856. umask (0);
  12857. fd = creat ("conftest.mmap", 0600);
  12858. if (fd < 0)
  12859. return 2;
  12860. if (write (fd, data, pagesize) != pagesize)
  12861. return 3;
  12862. close (fd);
  12863. /* Next, check that the tail of a page is zero-filled. File must have
  12864. non-zero length, otherwise we risk SIGBUS for entire page. */
  12865. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12866. if (fd2 < 0)
  12867. return 4;
  12868. cdata2 = "";
  12869. if (write (fd2, cdata2, 1) != 1)
  12870. return 5;
  12871. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12872. if (data2 == MAP_FAILED)
  12873. return 6;
  12874. for (i = 0; i < pagesize; ++i)
  12875. if (*(data2 + i))
  12876. return 7;
  12877. close (fd2);
  12878. if (munmap (data2, pagesize))
  12879. return 8;
  12880. /* Next, try to mmap the file at a fixed address which already has
  12881. something else allocated at it. If we can, also make sure that
  12882. we see the same garbage. */
  12883. fd = open ("conftest.mmap", O_RDWR);
  12884. if (fd < 0)
  12885. return 9;
  12886. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12887. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12888. return 10;
  12889. for (i = 0; i < pagesize; ++i)
  12890. if (*(data + i) != *(data2 + i))
  12891. return 11;
  12892. /* Finally, make sure that changes to the mapped area do not
  12893. percolate back to the file as seen by read(). (This is a bug on
  12894. some variants of i386 svr4.0.) */
  12895. for (i = 0; i < pagesize; ++i)
  12896. *(data2 + i) = *(data2 + i) + 1;
  12897. data3 = (char *) malloc (pagesize);
  12898. if (!data3)
  12899. return 12;
  12900. if (read (fd, data3, pagesize) != pagesize)
  12901. return 13;
  12902. for (i = 0; i < pagesize; ++i)
  12903. if (*(data + i) != *(data3 + i))
  12904. return 14;
  12905. close (fd);
  12906. return 0;
  12907. }
  12908. _ACEOF
  12909. if ac_fn_c_try_run "$LINENO"; then :
  12910. ac_cv_func_mmap_fixed_mapped=yes
  12911. else
  12912. ac_cv_func_mmap_fixed_mapped=no
  12913. fi
  12914. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12915. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12916. fi
  12917. fi
  12918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12919. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12920. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12921. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12922. fi
  12923. rm -f conftest.mmap conftest.txt
  12924. # Check if system supports termios
  12925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
  12926. $as_echo_n "checking POSIX termios... " >&6; }
  12927. if ${ac_cv_sys_posix_termios+:} false; then :
  12928. $as_echo_n "(cached) " >&6
  12929. else
  12930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12931. /* end confdefs.h. */
  12932. #include <sys/types.h>
  12933. #include <unistd.h>
  12934. #include <termios.h>
  12935. int
  12936. main ()
  12937. {
  12938. /* SunOS 4.0.3 has termios.h but not the library calls. */
  12939. tcgetattr(0, 0);
  12940. ;
  12941. return 0;
  12942. }
  12943. _ACEOF
  12944. if ac_fn_c_try_link "$LINENO"; then :
  12945. ac_cv_sys_posix_termios=yes
  12946. else
  12947. ac_cv_sys_posix_termios=no
  12948. fi
  12949. rm -f core conftest.err conftest.$ac_objext \
  12950. conftest$ac_exeext conftest.$ac_ext
  12951. fi
  12952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
  12953. $as_echo "$ac_cv_sys_posix_termios" >&6; }
  12954. if test "x$ac_cv_sys_posix_termios" = "xyes"; then
  12955. cat >>confdefs.h <<_ACEOF
  12956. #define HAVE_TERMIOS 1
  12957. _ACEOF
  12958. fi
  12959. for ac_func in random
  12960. do :
  12961. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12962. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12963. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12964. cat >>confdefs.h <<_ACEOF
  12965. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12966. _ACEOF
  12967. fi
  12968. done
  12969. # Check for sched_setscheduler
  12970. for ac_func in sched_setscheduler setuid getuid
  12971. do :
  12972. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12973. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12974. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12975. cat >>confdefs.h <<_ACEOF
  12976. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12977. _ACEOF
  12978. fi
  12979. done
  12980. # Check for setpriority
  12981. for ac_func in setpriority
  12982. do :
  12983. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12984. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12985. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12986. cat >>confdefs.h <<_ACEOF
  12987. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12988. _ACEOF
  12989. fi
  12990. done
  12991. for ac_func in strerror
  12992. do :
  12993. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12994. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12995. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12996. cat >>confdefs.h <<_ACEOF
  12997. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12998. _ACEOF
  12999. fi
  13000. done
  13001. for ac_func in setlocale nl_langinfo
  13002. do :
  13003. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13004. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13005. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13006. cat >>confdefs.h <<_ACEOF
  13007. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13008. _ACEOF
  13009. fi
  13010. done
  13011. for ac_func in strdup
  13012. do :
  13013. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13014. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13015. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13016. cat >>confdefs.h <<_ACEOF
  13017. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13018. _ACEOF
  13019. fi
  13020. done
  13021. for ac_func in atoll
  13022. do :
  13023. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13024. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13025. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13026. cat >>confdefs.h <<_ACEOF
  13027. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13028. _ACEOF
  13029. fi
  13030. done
  13031. for ac_func in mkfifo
  13032. do :
  13033. ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
  13034. if test "x$ac_cv_func_mkfifo" = xyes; then :
  13035. cat >>confdefs.h <<_ACEOF
  13036. #define HAVE_MKFIFO 1
  13037. _ACEOF
  13038. have_mkfifo=yes
  13039. else
  13040. have_mkfifo=no
  13041. fi
  13042. done
  13043. # locale headers
  13044. for ac_header in locale.h langinfo.h
  13045. do :
  13046. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13047. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13048. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13049. cat >>confdefs.h <<_ACEOF
  13050. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13051. _ACEOF
  13052. fi
  13053. done
  13054. # Headers for network (http) stuff
  13055. network_type=Unknown
  13056. for ac_header in netdb.h sys/param.h sys/socket.h netinet/in.h arpa/inet.h
  13057. do :
  13058. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13059. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13060. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13061. cat >>confdefs.h <<_ACEOF
  13062. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13063. _ACEOF
  13064. fi
  13065. done
  13066. if test "x$ac_cv_header_netdb_h" = "xyes" &&
  13067. test "x$ac_cv_header_sys_param_h" = "xyes" &&
  13068. test "x$ac_cv_header_sys_socket_h" = "xyes" &&
  13069. test "x$ac_cv_header_netinet_in_h" = "xyes" &&
  13070. test "x$ac_cv_header_arpa_inet_h" = "xyes"; then
  13071. have_network=yes
  13072. network_type=Posix
  13073. else
  13074. have_network=no
  13075. fi
  13076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  13077. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  13078. if ${ac_cv_search_gethostbyname+:} false; then :
  13079. $as_echo_n "(cached) " >&6
  13080. else
  13081. ac_func_search_save_LIBS=$LIBS
  13082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13083. /* end confdefs.h. */
  13084. /* Override any GCC internal prototype to avoid an error.
  13085. Use char because int might match the return type of a GCC
  13086. builtin and then its argument prototype would still apply. */
  13087. #ifdef __cplusplus
  13088. extern "C"
  13089. #endif
  13090. char gethostbyname ();
  13091. int
  13092. main ()
  13093. {
  13094. return gethostbyname ();
  13095. ;
  13096. return 0;
  13097. }
  13098. _ACEOF
  13099. for ac_lib in '' nsl socket; do
  13100. if test -z "$ac_lib"; then
  13101. ac_res="none required"
  13102. else
  13103. ac_res=-l$ac_lib
  13104. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13105. fi
  13106. if ac_fn_c_try_link "$LINENO"; then :
  13107. ac_cv_search_gethostbyname=$ac_res
  13108. fi
  13109. rm -f core conftest.err conftest.$ac_objext \
  13110. conftest$ac_exeext
  13111. if ${ac_cv_search_gethostbyname+:} false; then :
  13112. break
  13113. fi
  13114. done
  13115. if ${ac_cv_search_gethostbyname+:} false; then :
  13116. else
  13117. ac_cv_search_gethostbyname=no
  13118. fi
  13119. rm conftest.$ac_ext
  13120. LIBS=$ac_func_search_save_LIBS
  13121. fi
  13122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  13123. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  13124. ac_res=$ac_cv_search_gethostbyname
  13125. if test "$ac_res" != no; then :
  13126. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13127. fi
  13128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  13129. $as_echo_n "checking for library containing socket... " >&6; }
  13130. if ${ac_cv_search_socket+:} false; then :
  13131. $as_echo_n "(cached) " >&6
  13132. else
  13133. ac_func_search_save_LIBS=$LIBS
  13134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13135. /* end confdefs.h. */
  13136. /* Override any GCC internal prototype to avoid an error.
  13137. Use char because int might match the return type of a GCC
  13138. builtin and then its argument prototype would still apply. */
  13139. #ifdef __cplusplus
  13140. extern "C"
  13141. #endif
  13142. char socket ();
  13143. int
  13144. main ()
  13145. {
  13146. return socket ();
  13147. ;
  13148. return 0;
  13149. }
  13150. _ACEOF
  13151. for ac_lib in '' socket; do
  13152. if test -z "$ac_lib"; then
  13153. ac_res="none required"
  13154. else
  13155. ac_res=-l$ac_lib
  13156. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13157. fi
  13158. if ac_fn_c_try_link "$LINENO"; then :
  13159. ac_cv_search_socket=$ac_res
  13160. fi
  13161. rm -f core conftest.err conftest.$ac_objext \
  13162. conftest$ac_exeext
  13163. if ${ac_cv_search_socket+:} false; then :
  13164. break
  13165. fi
  13166. done
  13167. if ${ac_cv_search_socket+:} false; then :
  13168. else
  13169. ac_cv_search_socket=no
  13170. fi
  13171. rm conftest.$ac_ext
  13172. LIBS=$ac_func_search_save_LIBS
  13173. fi
  13174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  13175. $as_echo "$ac_cv_search_socket" >&6; }
  13176. ac_res=$ac_cv_search_socket
  13177. if test "$ac_res" != no; then :
  13178. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13179. fi
  13180. for ac_func in getaddrinfo
  13181. do :
  13182. ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  13183. if test "x$ac_cv_func_getaddrinfo" = xyes; then :
  13184. cat >>confdefs.h <<_ACEOF
  13185. #define HAVE_GETADDRINFO 1
  13186. _ACEOF
  13187. have_ipv6=yes
  13188. else
  13189. have_ipv6=no
  13190. fi
  13191. done
  13192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
  13193. $as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
  13194. if ${apr_cv_gai_addrconfig+:} false; then :
  13195. $as_echo_n "(cached) " >&6
  13196. else
  13197. if test "$cross_compiling" = yes; then :
  13198. apr_cv_gai_addrconfig=no
  13199. else
  13200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13201. /* end confdefs.h. */
  13202. #ifdef HAVE_NETDB_H
  13203. #include <netdb.h>
  13204. #endif
  13205. #ifdef HAVE_STRING_H
  13206. #include <string.h>
  13207. #endif
  13208. #ifdef HAVE_SYS_TYPES_H
  13209. #include <sys/types.h>
  13210. #endif
  13211. #ifdef HAVE_SYS_SOCKET_H
  13212. #include <sys/socket.h>
  13213. #endif
  13214. int main(int argc, char **argv) {
  13215. struct addrinfo hints, *ai;
  13216. memset(&hints, 0, sizeof(hints));
  13217. hints.ai_family = AF_UNSPEC;
  13218. hints.ai_socktype = SOCK_STREAM;
  13219. hints.ai_flags = AI_ADDRCONFIG;
  13220. return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
  13221. }
  13222. _ACEOF
  13223. if ac_fn_c_try_run "$LINENO"; then :
  13224. apr_cv_gai_addrconfig=yes
  13225. else
  13226. apr_cv_gai_addrconfig=no
  13227. fi
  13228. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13229. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13230. fi
  13231. fi
  13232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_gai_addrconfig" >&5
  13233. $as_echo "$apr_cv_gai_addrconfig" >&6; }
  13234. if test $apr_cv_gai_addrconfig = yes; then
  13235. $as_echo "#define HAVE_GAI_ADDRCONFIG 1" >>confdefs.h
  13236. fi
  13237. # Substitutions for the installable mpg123.h header
  13238. if test "x$ac_cv_header_stdio_h" = "xyes"; then
  13239. INCLUDE_STDIO_H="#include <stdio.h>"
  13240. else
  13241. INCLUDE_STDIO_H="/* #include <stdio.h> is not available on this system */"
  13242. fi
  13243. if test "x$ac_cv_header_stdlib_h" = "xyes"; then
  13244. INCLUDE_STDLIB_H="#include <stdlib.h>"
  13245. else
  13246. INCLUDE_STDLIB_H="/* #include <stdlib.h> is not available on this system */"
  13247. fi
  13248. if test "x$ac_cv_header_sys_types_h" = "xyes"; then
  13249. INCLUDE_SYS_TYPE_H="#include <sys/types.h>"
  13250. else
  13251. INCLUDE_SYS_TYPE_H="/* #include <sys/types.h> is not available on this system */"
  13252. fi
  13253. # Checks for maths libraries.
  13254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  13255. $as_echo_n "checking for sqrt in -lm... " >&6; }
  13256. if ${ac_cv_lib_m_sqrt+:} false; then :
  13257. $as_echo_n "(cached) " >&6
  13258. else
  13259. ac_check_lib_save_LIBS=$LIBS
  13260. LIBS="-lm $LIBS"
  13261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13262. /* end confdefs.h. */
  13263. /* Override any GCC internal prototype to avoid an error.
  13264. Use char because int might match the return type of a GCC
  13265. builtin and then its argument prototype would still apply. */
  13266. #ifdef __cplusplus
  13267. extern "C"
  13268. #endif
  13269. char sqrt ();
  13270. int
  13271. main ()
  13272. {
  13273. return sqrt ();
  13274. ;
  13275. return 0;
  13276. }
  13277. _ACEOF
  13278. if ac_fn_c_try_link "$LINENO"; then :
  13279. ac_cv_lib_m_sqrt=yes
  13280. else
  13281. ac_cv_lib_m_sqrt=no
  13282. fi
  13283. rm -f core conftest.err conftest.$ac_objext \
  13284. conftest$ac_exeext conftest.$ac_ext
  13285. LIBS=$ac_check_lib_save_LIBS
  13286. fi
  13287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  13288. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  13289. if test "x$ac_cv_lib_m_sqrt" = xyes; then :
  13290. cat >>confdefs.h <<_ACEOF
  13291. #define HAVE_LIBM 1
  13292. _ACEOF
  13293. LIBS="-lm $LIBS"
  13294. fi
  13295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf in -lmx" >&5
  13296. $as_echo_n "checking for powf in -lmx... " >&6; }
  13297. if ${ac_cv_lib_mx_powf+:} false; then :
  13298. $as_echo_n "(cached) " >&6
  13299. else
  13300. ac_check_lib_save_LIBS=$LIBS
  13301. LIBS="-lmx $LIBS"
  13302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13303. /* end confdefs.h. */
  13304. /* Override any GCC internal prototype to avoid an error.
  13305. Use char because int might match the return type of a GCC
  13306. builtin and then its argument prototype would still apply. */
  13307. #ifdef __cplusplus
  13308. extern "C"
  13309. #endif
  13310. char powf ();
  13311. int
  13312. main ()
  13313. {
  13314. return powf ();
  13315. ;
  13316. return 0;
  13317. }
  13318. _ACEOF
  13319. if ac_fn_c_try_link "$LINENO"; then :
  13320. ac_cv_lib_mx_powf=yes
  13321. else
  13322. ac_cv_lib_mx_powf=no
  13323. fi
  13324. rm -f core conftest.err conftest.$ac_objext \
  13325. conftest$ac_exeext conftest.$ac_ext
  13326. LIBS=$ac_check_lib_save_LIBS
  13327. fi
  13328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mx_powf" >&5
  13329. $as_echo "$ac_cv_lib_mx_powf" >&6; }
  13330. if test "x$ac_cv_lib_mx_powf" = xyes; then :
  13331. cat >>confdefs.h <<_ACEOF
  13332. #define HAVE_LIBMX 1
  13333. _ACEOF
  13334. LIBS="-lmx $LIBS"
  13335. fi
  13336. # attempt to make the signal stuff work... also with GENERIC - later
  13337. #if test x"$ac_cv_header_sys_signal_h" = xyes; then
  13338. # AC_CHECK_FUNCS( sigemptyset sigaddset sigprocmask sigaction )
  13339. # if test x"$ac_cv_func_sigemptyset" = xyes &&
  13340. # test x"$ac_cv_func_sigaddset" = xyes &&
  13341. # test x"$ac_cv_func_sigprocmask" = xyes &&
  13342. # test x"$ac_cv_func_sigaction" = xyes; then
  13343. # AC_DEFINE(
  13344. #fi
  13345. # do not assume gcc here, so no flags by default
  13346. ADD_CFLAGS=""
  13347. ADD_CPPFLAGS=""
  13348. ADD_LDFLAGS=""
  13349. LIBS="$LIBS"
  13350. # Consider moving that stuff.
  13351. ac_fn_c_check_header_mongrel "$LINENO" "os2.h" "ac_cv_header_os2_h" "$ac_includes_default"
  13352. if test "x$ac_cv_header_os2_h" = xyes; then :
  13353. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOS2"
  13354. fi
  13355. # On OS/2, we need to link to os2term to make terminal control actually work.
  13356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcsetattr in -los2term" >&5
  13357. $as_echo_n "checking for tcsetattr in -los2term... " >&6; }
  13358. if ${ac_cv_lib_os2term_tcsetattr+:} false; then :
  13359. $as_echo_n "(cached) " >&6
  13360. else
  13361. ac_check_lib_save_LIBS=$LIBS
  13362. LIBS="-los2term $LIBS"
  13363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13364. /* end confdefs.h. */
  13365. /* Override any GCC internal prototype to avoid an error.
  13366. Use char because int might match the return type of a GCC
  13367. builtin and then its argument prototype would still apply. */
  13368. #ifdef __cplusplus
  13369. extern "C"
  13370. #endif
  13371. char tcsetattr ();
  13372. int
  13373. main ()
  13374. {
  13375. return tcsetattr ();
  13376. ;
  13377. return 0;
  13378. }
  13379. _ACEOF
  13380. if ac_fn_c_try_link "$LINENO"; then :
  13381. ac_cv_lib_os2term_tcsetattr=yes
  13382. else
  13383. ac_cv_lib_os2term_tcsetattr=no
  13384. fi
  13385. rm -f core conftest.err conftest.$ac_objext \
  13386. conftest$ac_exeext conftest.$ac_ext
  13387. LIBS=$ac_check_lib_save_LIBS
  13388. fi
  13389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_os2term_tcsetattr" >&5
  13390. $as_echo "$ac_cv_lib_os2term_tcsetattr" >&6; }
  13391. if test "x$ac_cv_lib_os2term_tcsetattr" = xyes; then :
  13392. ADD_LDFLAGS="$ADD_LDFLAGS -los2term"
  13393. fi
  13394. # If debugging is enabled then make warnings errors
  13395. if test x"$debugging" = xenabled; then
  13396. ADD_CFLAGS="-g"
  13397. # gcc specific...
  13398. if test x"$GCC" = xyes; then
  13399. ADD_CFLAGS="$ADD_CFLAGS -Wall -fno-strict-aliasing"
  13400. if test x"$nagging" = xenabled; then
  13401. ADD_CFLAGS="$ADD_CFLAGS -Werror -pedantic -DPLAIN_C89"
  13402. fi
  13403. fi
  13404. fi
  13405. case $host in
  13406. i?86-*)
  13407. $as_echo "#define ABI_ALIGN_FUN 1" >>confdefs.h
  13408. ;;
  13409. esac
  13410. s_altivec="synth_altivec dct64_altivec"
  13411. s_i386="dct64_i386"
  13412. s_i486="$s_i386 synth_i486 dct64_i486"
  13413. s_i586="$s_i386 synth_i586"
  13414. s_i586d="$s_i386 synth_i586_dither"
  13415. s_3dnow="$s_i386 synth_3dnow dct64_3dnow equalizer_3dnow"
  13416. s_3dnowext="$s_i386 dct64_3dnowext tabinit_mmx synth_3dnowext"
  13417. if test "x$layer3" = "xenabled"; then
  13418. s_3dnow="$s_3dnow dct36_3dnow"
  13419. s_3dnowext="$s_3dnowext dct36_3dnowext"
  13420. fi
  13421. s_mmx="$s_i386 dct64_mmx tabinit_mmx synth_mmx"
  13422. s_sse="$s_i386 tabinit_mmx dct64_sse dct64_sse_float synth_sse_float synth_stereo_sse_float synth_sse_s32 synth_stereo_sse_s32 "
  13423. s_x86_64="dct64_x86_64 dct64_x86_64_float synth_x86_64_float synth_x86_64_s32 synth_stereo_x86_64_float synth_stereo_x86_64_s32"
  13424. s_x86multi="getcpuflags"
  13425. s_dither="dither"
  13426. s_neon="dct64_neon dct64_neon_float synth_neon_float synth_neon_s32 synth_stereo_neon_float synth_stereo_neon_s32"
  13427. # choose optimized 16bit decoder for SSE, quality or fast
  13428. # note: supporting deactivation of output formats for these decoders would need more logic here
  13429. if test "x$integers" = "xquality"; then
  13430. s_sse="$s_sse synth_sse_accurate synth_stereo_sse_accurate"
  13431. s_x86_64="$s_x86_64 synth_x86_64_accurate synth_stereo_x86_64_accurate"
  13432. s_arm="synth_arm_accurate"
  13433. s_neon="$s_neon synth_neon_accurate synth_stereo_neon_accurate"
  13434. else
  13435. s_sse="$s_sse synth_sse" # no stereo
  13436. s_x86_64="$s_x86_64 synth_x86_64 synth_stereo_x86_64"
  13437. s_arm="synth_arm"
  13438. s_neon="$s_neon synth_neon synth_stereo_neon"
  13439. fi
  13440. case $cpu_type in
  13441. generic)
  13442. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FLOAT"
  13443. more_sources="$s_fpu"
  13444. ccalign=no
  13445. ;;
  13446. generic_dither)
  13447. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC_DITHER -DREAL_IS_FLOAT"
  13448. more_sources="$s_fpu $s_dither"
  13449. ccalign=no
  13450. ;;
  13451. generic_fpu | generic_float)
  13452. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FLOAT"
  13453. more_sources="$s_fpu"
  13454. ccalign=no
  13455. ;;
  13456. generic_nofpu)
  13457. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FIXED"
  13458. more_sources=
  13459. ccalign=no
  13460. ;;
  13461. ppc_nofpu)
  13462. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_PPC -DREAL_IS_FIXED"
  13463. more_sources=
  13464. ccalign=no
  13465. ;;
  13466. arm_nofpu)
  13467. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_ARM -DREAL_IS_FIXED"
  13468. more_sources="$s_arm"
  13469. ccalign=no
  13470. ;;
  13471. altivec)
  13472. ADD_CFLAGS="$ADD_CFLAGS -maltivec"
  13473. ADD_CPPFLAGS="$ADD_CPPFLAGS -DREAL_IS_FLOAT -DOPT_ALTIVEC"
  13474. more_sources="$s_altivec $s_fpu"
  13475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -faltivec" >&5
  13476. $as_echo_n "checking if $CC accepts -faltivec... " >&6; }
  13477. touch conftest.c
  13478. if $CC -faltivec -c -o conftest.o conftest.c >/dev/null 2>&1; then
  13479. ADD_CFLAGS="$ADD_CFLAGS -faltivec"
  13480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13481. $as_echo "yes" >&6; }
  13482. else
  13483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13484. $as_echo "no" >&6; }
  13485. fi
  13486. rm -f conftest.o conftest.c
  13487. ;;
  13488. neon)
  13489. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_NEON -DREAL_IS_FLOAT"
  13490. more_sources="$s_neon $s_fpu"
  13491. ;;
  13492. i386)
  13493. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FLOAT"
  13494. more_sources="$s_fpu $s_i386"
  13495. ccalign=no
  13496. ;;
  13497. i386_fpu)
  13498. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FLOAT"
  13499. more_sources="$s_fpu $s_i386"
  13500. ccalign=no
  13501. ;;
  13502. i386_nofpu)
  13503. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FIXED"
  13504. more_sources="$s_i386"
  13505. ccalign=no
  13506. ;;
  13507. i486)
  13508. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I486 -DREAL_IS_FLOAT"
  13509. more_sources="$s_fpu $s_i486"
  13510. ccalign=no
  13511. ;;
  13512. i586)
  13513. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I586 -DREAL_IS_FLOAT"
  13514. more_sources="$s_fpu $s_i586"
  13515. ;;
  13516. i586_dither)
  13517. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I586_DITHER -DREAL_IS_FLOAT"
  13518. more_sources="$s_fpu $s_i586d $s_dither"
  13519. ;;
  13520. 3dnow)
  13521. # legacy 3dnow had the 3dnow paired with i586...
  13522. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_I586 -DOPT_3DNOW -DREAL_IS_FLOAT"
  13523. more_sources="$s_fpu $s_i586 $s_3dnow $s_x86multi "
  13524. ;;
  13525. 3dnow_alone)
  13526. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_3DNOW -DREAL_IS_FLOAT"
  13527. more_sources="$s_fpu $s_3dnow"
  13528. ;;
  13529. 3dnowext_alone)
  13530. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_3DNOWEXT -DREAL_IS_FLOAT"
  13531. more_sources="$s_fpu $s_3dnowext"
  13532. ;;
  13533. 3dnowext)
  13534. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_3DNOW -DOPT_3DNOWEXT -DREAL_IS_FLOAT"
  13535. more_sources="$s_fpu $s_3dnowext $s_3dnow $s_x86multi"
  13536. ;;
  13537. mmx_alone|mmx)
  13538. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MMX -DREAL_IS_FLOAT"
  13539. more_sources="$s_fpu $s_mmx"
  13540. ;;
  13541. sse_alone|sse)
  13542. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_SSE -DREAL_IS_FLOAT"
  13543. more_sources="$s_fpu $s_sse"
  13544. ;;
  13545. x86|x86_dither)
  13546. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_GENERIC -DOPT_GENERIC_DITHER -DOPT_I386 -DOPT_I586 -DOPT_I586_DITHER -DOPT_MMX -DOPT_3DNOW -DOPT_3DNOWEXT -DOPT_SSE -DREAL_IS_FLOAT"
  13547. more_sources="$s_fpu $s_i386 $s_i586 $s_i586d $s_mmx $s_3dnow $s_3dnowext $s_sse $s_x86multi $s_dither"
  13548. ;;
  13549. x86-64_alone)
  13550. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_X86_64 -DREAL_IS_FLOAT"
  13551. more_sources="$s_fpu $s_x86_64"
  13552. ;;
  13553. x86-64|x86-64_all|x86-64_dither)
  13554. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_X86_64 -DOPT_GENERIC -DOPT_GENERIC_DITHER -DREAL_IS_FLOAT"
  13555. more_sources="$s_fpu $s_x86_64 $s_dither"
  13556. ;;
  13557. *)
  13558. as_fn_error $? "Unknown CPU type '$cpu_type'" "$LINENO" 5
  13559. ;;
  13560. esac
  13561. # Mac OS X specific linker flags
  13562. case $cpu_type in
  13563. 3dnow|3dnow_alone|3dnowext|3dnowext_alone|mmx|mmx_alone|sse|sse_alone|x86|x86_dither)
  13564. case $host in
  13565. i386-apple-darwin8*|*-apple-darwin10*)
  13566. ADD_LDFLAGS="$ADD_LDFLAGS -Wl,-read_only_relocs,suppress"
  13567. ;;
  13568. i386-apple-darwin9*)
  13569. ADD_CFLAGS="$ADD_CFLAGS -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
  13570. ADD_LDFLAGS="$ADD_LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -Wl,-classic_linker -Wl,-read_only_relocs,suppress"
  13571. ;;
  13572. esac
  13573. ;;
  13574. esac
  13575. # Check if we want feature report function.
  13576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want feature report function" >&5
  13577. $as_echo_n "checking if we want feature report function... " >&6; }
  13578. feature_report=enabled
  13579. # Check whether --enable-feature_report was given.
  13580. if test "${enable_feature_report+set}" = set; then :
  13581. enableval=$enable_feature_report;
  13582. if test "x$enableval" = xno; then
  13583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13584. $as_echo "no" >&6; }
  13585. feature_report=disabled
  13586. else
  13587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13588. $as_echo "yes" >&6; }
  13589. fi
  13590. else
  13591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13592. $as_echo "yes" >&6; }
  13593. fi
  13594. if test "x$feature_report" = xenabled; then
  13595. more_sources="$more_sources feature"
  13596. fi
  13597. # Return 0 if first arg appears in list of following arguments.
  13598. # Return 1 otherwise.
  13599. word_in_list() {
  13600. word=$1
  13601. shift
  13602. # Avoid naming conflict with the outside!
  13603. # Is local not POSIX sh?
  13604. for given_word in "$@"
  13605. do
  13606. if test "x$word" = "x$given_word"; then
  13607. return 0
  13608. fi
  13609. done
  13610. return 1
  13611. }
  13612. for i in $more_sources
  13613. do
  13614. # Make sure every file is only once in the list.
  13615. word_in_list "$i.\$(OBJEXT)" $DECODER_OBJ || DECODER_OBJ="$DECODER_OBJ $i.\$(OBJEXT)"
  13616. word_in_list "$i.lo" $DECODER_LOBJ || DECODER_LOBJ="$DECODER_LOBJ $i.lo"
  13617. done
  13618. if test x"$ccalign" = xyes; then
  13619. $as_echo "#define CCALIGN 1" >>confdefs.h
  13620. fi
  13621. # The full list of supported modules to check, first come, first serve.
  13622. check_modules="alsa oss coreaudio sndio sun win32 os2 esd jack portaudio pulse sdl nas arts openal dummy"
  13623. # Only check qsa before all else on QNX.
  13624. # It would mask ALSA otherwise.
  13625. case $host in
  13626. *-nto-qnx*)
  13627. check_modules="qsa $check_modules"
  13628. ;;
  13629. esac
  13630. # The final list.
  13631. output_modules=
  13632. check_forced=no
  13633. check_failed=no
  13634. if test "x$with_audio" != "x"; then
  13635. check_modules="`echo $with_audio|tr , ' '` dummy"
  13636. echo "Limiting outputs to build according to your preference: $check_modules"
  13637. check_forced=yes
  13638. fi
  13639. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13640. if test -n "$ac_tool_prefix"; then
  13641. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13642. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13644. $as_echo_n "checking for $ac_word... " >&6; }
  13645. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13646. $as_echo_n "(cached) " >&6
  13647. else
  13648. case $PKG_CONFIG in
  13649. [\\/]* | ?:[\\/]*)
  13650. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13651. ;;
  13652. *)
  13653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13654. for as_dir in $PATH
  13655. do
  13656. IFS=$as_save_IFS
  13657. test -z "$as_dir" && as_dir=.
  13658. for ac_exec_ext in '' $ac_executable_extensions; do
  13659. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13660. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13661. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13662. break 2
  13663. fi
  13664. done
  13665. done
  13666. IFS=$as_save_IFS
  13667. ;;
  13668. esac
  13669. fi
  13670. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13671. if test -n "$PKG_CONFIG"; then
  13672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13673. $as_echo "$PKG_CONFIG" >&6; }
  13674. else
  13675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13676. $as_echo "no" >&6; }
  13677. fi
  13678. fi
  13679. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13680. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13681. # Extract the first word of "pkg-config", so it can be a program name with args.
  13682. set dummy pkg-config; ac_word=$2
  13683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13684. $as_echo_n "checking for $ac_word... " >&6; }
  13685. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13686. $as_echo_n "(cached) " >&6
  13687. else
  13688. case $ac_pt_PKG_CONFIG in
  13689. [\\/]* | ?:[\\/]*)
  13690. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13691. ;;
  13692. *)
  13693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13694. for as_dir in $PATH
  13695. do
  13696. IFS=$as_save_IFS
  13697. test -z "$as_dir" && as_dir=.
  13698. for ac_exec_ext in '' $ac_executable_extensions; do
  13699. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13700. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13702. break 2
  13703. fi
  13704. done
  13705. done
  13706. IFS=$as_save_IFS
  13707. ;;
  13708. esac
  13709. fi
  13710. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13711. if test -n "$ac_pt_PKG_CONFIG"; then
  13712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13713. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13714. else
  13715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13716. $as_echo "no" >&6; }
  13717. fi
  13718. if test "x$ac_pt_PKG_CONFIG" = x; then
  13719. PKG_CONFIG=""
  13720. else
  13721. case $cross_compiling:$ac_tool_warned in
  13722. yes:)
  13723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13724. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13725. ac_tool_warned=yes ;;
  13726. esac
  13727. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13728. fi
  13729. else
  13730. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13731. fi
  13732. fi
  13733. if test -n "$PKG_CONFIG"; then
  13734. _pkg_min_version=0.9.0
  13735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13736. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13737. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13739. $as_echo "yes" >&6; }
  13740. else
  13741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13742. $as_echo "no" >&6; }
  13743. PKG_CONFIG=""
  13744. fi
  13745. fi
  13746. # Now go through the modules to check and do the chores.
  13747. for m in $check_modules
  13748. do
  13749. case "$m" in
  13750. dummy)
  13751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you are too dumbing dumb for the dummy" >&5
  13752. $as_echo_n "checking if you are too dumbing dumb for the dummy... " >&6; }
  13753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13754. $as_echo "no" >&6; }
  13755. output_modules="$output_modules dummy"
  13756. HAVE_DUMMY=yes
  13757. ;;
  13758. oss)
  13759. for ac_header in sys/soundcard.h linux/soundcard.h machine/soundcard.h
  13760. do :
  13761. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13762. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13763. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13764. cat >>confdefs.h <<_ACEOF
  13765. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13766. _ACEOF
  13767. fi
  13768. done
  13769. if test "x${ac_cv_header_sys_soundcard_h}" = "xyes" \
  13770. -o "x${ac_cv_header_linux_soundcard_h}" = "xyes" \
  13771. -o "x${ac_cv_header_machine_soundcard_h}" = "xyes";
  13772. then
  13773. output_modules="$output_modules oss"
  13774. HAVE_OSS="yes"
  13775. else
  13776. check_failed=yes
  13777. fi
  13778. ;;
  13779. # QSA and ALSA are not distinguishable in these tests, need to block
  13780. # each other and play with test order depending on platform.
  13781. alsa)
  13782. if test "x$HAVE_QSA" = xyes; then
  13783. HAVE_ALSA=no
  13784. else
  13785. ALSA_LIBS="-lasound"
  13786. # Check for ALSA
  13787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
  13788. $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
  13789. if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
  13790. $as_echo_n "(cached) " >&6
  13791. else
  13792. ac_check_lib_save_LIBS=$LIBS
  13793. LIBS="-lasound $LIBS"
  13794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13795. /* end confdefs.h. */
  13796. /* Override any GCC internal prototype to avoid an error.
  13797. Use char because int might match the return type of a GCC
  13798. builtin and then its argument prototype would still apply. */
  13799. #ifdef __cplusplus
  13800. extern "C"
  13801. #endif
  13802. char snd_pcm_open ();
  13803. int
  13804. main ()
  13805. {
  13806. return snd_pcm_open ();
  13807. ;
  13808. return 0;
  13809. }
  13810. _ACEOF
  13811. if ac_fn_c_try_link "$LINENO"; then :
  13812. ac_cv_lib_asound_snd_pcm_open=yes
  13813. else
  13814. ac_cv_lib_asound_snd_pcm_open=no
  13815. fi
  13816. rm -f core conftest.err conftest.$ac_objext \
  13817. conftest$ac_exeext conftest.$ac_ext
  13818. LIBS=$ac_check_lib_save_LIBS
  13819. fi
  13820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
  13821. $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
  13822. if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
  13823. ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
  13824. if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
  13825. output_modules="$output_modules alsa" HAVE_ALSA="yes"
  13826. else
  13827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found ALSA library but NOT header files on your system" >&5
  13828. $as_echo "$as_me: WARNING: Found ALSA library but NOT header files on your system" >&2;}
  13829. fi
  13830. fi
  13831. if test "x$HAVE_ALSA" != xyes; then
  13832. check_failed=yes
  13833. fi
  13834. fi # HAVE_QSA
  13835. ;;
  13836. qsa)
  13837. if test "x$HAVE_ALSA" = xyes; then
  13838. HAVE_QSA=no
  13839. else
  13840. QSA_LIBS="-lasound"
  13841. # Check for QSA
  13842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
  13843. $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
  13844. if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
  13845. $as_echo_n "(cached) " >&6
  13846. else
  13847. ac_check_lib_save_LIBS=$LIBS
  13848. LIBS="-lasound $LIBS"
  13849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13850. /* end confdefs.h. */
  13851. /* Override any GCC internal prototype to avoid an error.
  13852. Use char because int might match the return type of a GCC
  13853. builtin and then its argument prototype would still apply. */
  13854. #ifdef __cplusplus
  13855. extern "C"
  13856. #endif
  13857. char snd_pcm_open ();
  13858. int
  13859. main ()
  13860. {
  13861. return snd_pcm_open ();
  13862. ;
  13863. return 0;
  13864. }
  13865. _ACEOF
  13866. if ac_fn_c_try_link "$LINENO"; then :
  13867. ac_cv_lib_asound_snd_pcm_open=yes
  13868. else
  13869. ac_cv_lib_asound_snd_pcm_open=no
  13870. fi
  13871. rm -f core conftest.err conftest.$ac_objext \
  13872. conftest$ac_exeext conftest.$ac_ext
  13873. LIBS=$ac_check_lib_save_LIBS
  13874. fi
  13875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
  13876. $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
  13877. if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
  13878. ac_fn_c_check_header_mongrel "$LINENO" "sys/asoundlib.h" "ac_cv_header_sys_asoundlib_h" "$ac_includes_default"
  13879. if test "x$ac_cv_header_sys_asoundlib_h" = xyes; then :
  13880. output_modules="$output_modules qsa" HAVE_QSA="yes"
  13881. else
  13882. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found QSA library but NOT header files on your system" >&5
  13883. $as_echo "$as_me: WARNING: Found QSA library but NOT header files on your system" >&2;}
  13884. fi
  13885. fi
  13886. if test "x$HAVE_QSA" != xyes; then
  13887. check_failed=yes
  13888. fi
  13889. fi # HAVE_ALSA
  13890. ;;
  13891. jack)
  13892. pkg_failed=no
  13893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  13894. $as_echo_n "checking for JACK... " >&6; }
  13895. if test -n "$JACK_CFLAGS"; then
  13896. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  13897. elif test -n "$PKG_CONFIG"; then
  13898. if test -n "$PKG_CONFIG" && \
  13899. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5
  13900. ($PKG_CONFIG --exists --print-errors "jack") 2>&5
  13901. ac_status=$?
  13902. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13903. test $ac_status = 0; }; then
  13904. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack" 2>/dev/null`
  13905. else
  13906. pkg_failed=yes
  13907. fi
  13908. else
  13909. pkg_failed=untried
  13910. fi
  13911. if test -n "$JACK_LIBS"; then
  13912. pkg_cv_JACK_LIBS="$JACK_LIBS"
  13913. elif test -n "$PKG_CONFIG"; then
  13914. if test -n "$PKG_CONFIG" && \
  13915. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5
  13916. ($PKG_CONFIG --exists --print-errors "jack") 2>&5
  13917. ac_status=$?
  13918. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13919. test $ac_status = 0; }; then
  13920. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack" 2>/dev/null`
  13921. else
  13922. pkg_failed=yes
  13923. fi
  13924. else
  13925. pkg_failed=untried
  13926. fi
  13927. if test $pkg_failed = yes; then
  13928. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13929. _pkg_short_errors_supported=yes
  13930. else
  13931. _pkg_short_errors_supported=no
  13932. fi
  13933. if test $_pkg_short_errors_supported = yes; then
  13934. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack" 2>&1`
  13935. else
  13936. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack" 2>&1`
  13937. fi
  13938. # Put the nasty error message in config.log where it belongs
  13939. echo "$JACK_PKG_ERRORS" >&5
  13940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13941. $as_echo "no" >&6; }
  13942. HAVE_JACK="no" check_failed=yes
  13943. elif test $pkg_failed = untried; then
  13944. HAVE_JACK="no" check_failed=yes
  13945. else
  13946. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  13947. JACK_LIBS=$pkg_cv_JACK_LIBS
  13948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13949. $as_echo "yes" >&6; }
  13950. output_modules="$output_modules jack" HAVE_JACK="yes"
  13951. fi
  13952. ;;
  13953. pulse)
  13954. pkg_failed=no
  13955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSE" >&5
  13956. $as_echo_n "checking for PULSE... " >&6; }
  13957. if test -n "$PULSE_CFLAGS"; then
  13958. pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
  13959. elif test -n "$PKG_CONFIG"; then
  13960. if test -n "$PKG_CONFIG" && \
  13961. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5
  13962. ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  13963. ac_status=$?
  13964. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13965. test $ac_status = 0; }; then
  13966. pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
  13967. else
  13968. pkg_failed=yes
  13969. fi
  13970. else
  13971. pkg_failed=untried
  13972. fi
  13973. if test -n "$PULSE_LIBS"; then
  13974. pkg_cv_PULSE_LIBS="$PULSE_LIBS"
  13975. elif test -n "$PKG_CONFIG"; then
  13976. if test -n "$PKG_CONFIG" && \
  13977. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5
  13978. ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  13979. ac_status=$?
  13980. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13981. test $ac_status = 0; }; then
  13982. pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
  13983. else
  13984. pkg_failed=yes
  13985. fi
  13986. else
  13987. pkg_failed=untried
  13988. fi
  13989. if test $pkg_failed = yes; then
  13990. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13991. _pkg_short_errors_supported=yes
  13992. else
  13993. _pkg_short_errors_supported=no
  13994. fi
  13995. if test $_pkg_short_errors_supported = yes; then
  13996. PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
  13997. else
  13998. PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
  13999. fi
  14000. # Put the nasty error message in config.log where it belongs
  14001. echo "$PULSE_PKG_ERRORS" >&5
  14002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14003. $as_echo "no" >&6; }
  14004. HAVE_PULSE="no" check_failed=yes
  14005. elif test $pkg_failed = untried; then
  14006. HAVE_PULSE="no" check_failed=yes
  14007. else
  14008. PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
  14009. PULSE_LIBS=$pkg_cv_PULSE_LIBS
  14010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14011. $as_echo "yes" >&6; }
  14012. output_modules="$output_modules pulse" HAVE_PULSE="yes"
  14013. fi
  14014. ;;
  14015. esd)
  14016. pkg_failed=no
  14017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD" >&5
  14018. $as_echo_n "checking for ESD... " >&6; }
  14019. if test -n "$ESD_CFLAGS"; then
  14020. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  14021. elif test -n "$PKG_CONFIG"; then
  14022. if test -n "$PKG_CONFIG" && \
  14023. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound\""; } >&5
  14024. ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  14025. ac_status=$?
  14026. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14027. test $ac_status = 0; }; then
  14028. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
  14029. else
  14030. pkg_failed=yes
  14031. fi
  14032. else
  14033. pkg_failed=untried
  14034. fi
  14035. if test -n "$ESD_LIBS"; then
  14036. pkg_cv_ESD_LIBS="$ESD_LIBS"
  14037. elif test -n "$PKG_CONFIG"; then
  14038. if test -n "$PKG_CONFIG" && \
  14039. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound\""; } >&5
  14040. ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  14041. ac_status=$?
  14042. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14043. test $ac_status = 0; }; then
  14044. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
  14045. else
  14046. pkg_failed=yes
  14047. fi
  14048. else
  14049. pkg_failed=untried
  14050. fi
  14051. if test $pkg_failed = yes; then
  14052. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14053. _pkg_short_errors_supported=yes
  14054. else
  14055. _pkg_short_errors_supported=no
  14056. fi
  14057. if test $_pkg_short_errors_supported = yes; then
  14058. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
  14059. else
  14060. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
  14061. fi
  14062. # Put the nasty error message in config.log where it belongs
  14063. echo "$ESD_PKG_ERRORS" >&5
  14064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14065. $as_echo "no" >&6; }
  14066. HAVE_ESD="no" check_failed=yes
  14067. elif test $pkg_failed = untried; then
  14068. HAVE_ESD="no" check_failed=yes
  14069. else
  14070. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  14071. ESD_LIBS=$pkg_cv_ESD_LIBS
  14072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14073. $as_echo "yes" >&6; }
  14074. output_modules="$output_modules esd" HAVE_ESD="yes"
  14075. fi
  14076. ;;
  14077. portaudio)
  14078. # Remember: This looks only insane because you chose an insane tab width!
  14079. PORTAUDIO_LIBS="-lportaudio"
  14080. PORTAUDIO_CFLAGS=
  14081. case $host in
  14082. *-*-mingw32)
  14083. # We tested portaudio with MME
  14084. if test "x$HAVE_PORTAUDIO" != "xyes"; then
  14085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pa_Initialize in -lportaudio" >&5
  14086. $as_echo_n "checking for Pa_Initialize in -lportaudio... " >&6; }
  14087. if ${ac_cv_lib_portaudio_Pa_Initialize+:} false; then :
  14088. $as_echo_n "(cached) " >&6
  14089. else
  14090. ac_check_lib_save_LIBS=$LIBS
  14091. LIBS="-lportaudio -lwinmm
  14092. $LIBS"
  14093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14094. /* end confdefs.h. */
  14095. /* Override any GCC internal prototype to avoid an error.
  14096. Use char because int might match the return type of a GCC
  14097. builtin and then its argument prototype would still apply. */
  14098. #ifdef __cplusplus
  14099. extern "C"
  14100. #endif
  14101. char Pa_Initialize ();
  14102. int
  14103. main ()
  14104. {
  14105. return Pa_Initialize ();
  14106. ;
  14107. return 0;
  14108. }
  14109. _ACEOF
  14110. if ac_fn_c_try_link "$LINENO"; then :
  14111. ac_cv_lib_portaudio_Pa_Initialize=yes
  14112. else
  14113. ac_cv_lib_portaudio_Pa_Initialize=no
  14114. fi
  14115. rm -f core conftest.err conftest.$ac_objext \
  14116. conftest$ac_exeext conftest.$ac_ext
  14117. LIBS=$ac_check_lib_save_LIBS
  14118. fi
  14119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_Initialize" >&5
  14120. $as_echo "$ac_cv_lib_portaudio_Pa_Initialize" >&6; }
  14121. if test "x$ac_cv_lib_portaudio_Pa_Initialize" = xyes; then :
  14122. ac_fn_c_check_header_mongrel "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
  14123. if test "x$ac_cv_header_portaudio_h" = xyes; then :
  14124. output_modules="$output_modules portaudio" HAVE_PORTAUDIO_WINMM="yes" HAVE_PORTAUDIO="yes"
  14125. else
  14126. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found PortAudio library but NOT header files on your system" >&5
  14127. $as_echo "$as_me: WARNING: Found PortAudio library but NOT header files on your system" >&2;}
  14128. fi
  14129. PORTAUDIO_LIBS="$PORTAUDIO_LIBS -lwinmm"
  14130. else
  14131. HAVE_PORTAUDIO="no"
  14132. fi
  14133. fi
  14134. ;;
  14135. *)
  14136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pa_Initialize in -lportaudio" >&5
  14137. $as_echo_n "checking for Pa_Initialize in -lportaudio... " >&6; }
  14138. if ${ac_cv_lib_portaudio_Pa_Initialize+:} false; then :
  14139. $as_echo_n "(cached) " >&6
  14140. else
  14141. ac_check_lib_save_LIBS=$LIBS
  14142. LIBS="-lportaudio $LIBS"
  14143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14144. /* end confdefs.h. */
  14145. /* Override any GCC internal prototype to avoid an error.
  14146. Use char because int might match the return type of a GCC
  14147. builtin and then its argument prototype would still apply. */
  14148. #ifdef __cplusplus
  14149. extern "C"
  14150. #endif
  14151. char Pa_Initialize ();
  14152. int
  14153. main ()
  14154. {
  14155. return Pa_Initialize ();
  14156. ;
  14157. return 0;
  14158. }
  14159. _ACEOF
  14160. if ac_fn_c_try_link "$LINENO"; then :
  14161. ac_cv_lib_portaudio_Pa_Initialize=yes
  14162. else
  14163. ac_cv_lib_portaudio_Pa_Initialize=no
  14164. fi
  14165. rm -f core conftest.err conftest.$ac_objext \
  14166. conftest$ac_exeext conftest.$ac_ext
  14167. LIBS=$ac_check_lib_save_LIBS
  14168. fi
  14169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_Initialize" >&5
  14170. $as_echo "$ac_cv_lib_portaudio_Pa_Initialize" >&6; }
  14171. if test "x$ac_cv_lib_portaudio_Pa_Initialize" = xyes; then :
  14172. ac_fn_c_check_header_mongrel "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
  14173. if test "x$ac_cv_header_portaudio_h" = xyes; then :
  14174. output_modules="$output_modules portaudio" HAVE_PORTAUDIO="yes"
  14175. else
  14176. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found PortAudio library but NOT header files on your system" >&5
  14177. $as_echo "$as_me: WARNING: Found PortAudio library but NOT header files on your system" >&2;}
  14178. fi
  14179. fi
  14180. ;;
  14181. esac
  14182. if test "x$HAVE_PORTAUDIO" != xyes; then
  14183. check_failed=yes
  14184. else
  14185. # See if we have v19 or v18
  14186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pa_GetVersion in -lportaudio" >&5
  14187. $as_echo_n "checking for Pa_GetVersion in -lportaudio... " >&6; }
  14188. if ${ac_cv_lib_portaudio_Pa_GetVersion+:} false; then :
  14189. $as_echo_n "(cached) " >&6
  14190. else
  14191. ac_check_lib_save_LIBS=$LIBS
  14192. LIBS="-lportaudio $PORTAUDIO_LIBS $LIBS"
  14193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14194. /* end confdefs.h. */
  14195. /* Override any GCC internal prototype to avoid an error.
  14196. Use char because int might match the return type of a GCC
  14197. builtin and then its argument prototype would still apply. */
  14198. #ifdef __cplusplus
  14199. extern "C"
  14200. #endif
  14201. char Pa_GetVersion ();
  14202. int
  14203. main ()
  14204. {
  14205. return Pa_GetVersion ();
  14206. ;
  14207. return 0;
  14208. }
  14209. _ACEOF
  14210. if ac_fn_c_try_link "$LINENO"; then :
  14211. ac_cv_lib_portaudio_Pa_GetVersion=yes
  14212. else
  14213. ac_cv_lib_portaudio_Pa_GetVersion=no
  14214. fi
  14215. rm -f core conftest.err conftest.$ac_objext \
  14216. conftest$ac_exeext conftest.$ac_ext
  14217. LIBS=$ac_check_lib_save_LIBS
  14218. fi
  14219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_GetVersion" >&5
  14220. $as_echo "$ac_cv_lib_portaudio_Pa_GetVersion" >&6; }
  14221. if test "x$ac_cv_lib_portaudio_Pa_GetVersion" = xyes; then :
  14222. :
  14223. else
  14224. $as_echo "#define PORTAUDIO18 1" >>confdefs.h
  14225. fi
  14226. fi
  14227. ;;
  14228. sdl)
  14229. pkg_failed=no
  14230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
  14231. $as_echo_n "checking for SDL... " >&6; }
  14232. if test -n "$SDL_CFLAGS"; then
  14233. pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
  14234. elif test -n "$PKG_CONFIG"; then
  14235. if test -n "$PKG_CONFIG" && \
  14236. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
  14237. ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
  14238. ac_status=$?
  14239. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14240. test $ac_status = 0; }; then
  14241. pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
  14242. else
  14243. pkg_failed=yes
  14244. fi
  14245. else
  14246. pkg_failed=untried
  14247. fi
  14248. if test -n "$SDL_LIBS"; then
  14249. pkg_cv_SDL_LIBS="$SDL_LIBS"
  14250. elif test -n "$PKG_CONFIG"; then
  14251. if test -n "$PKG_CONFIG" && \
  14252. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
  14253. ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
  14254. ac_status=$?
  14255. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14256. test $ac_status = 0; }; then
  14257. pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
  14258. else
  14259. pkg_failed=yes
  14260. fi
  14261. else
  14262. pkg_failed=untried
  14263. fi
  14264. if test $pkg_failed = yes; then
  14265. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14266. _pkg_short_errors_supported=yes
  14267. else
  14268. _pkg_short_errors_supported=no
  14269. fi
  14270. if test $_pkg_short_errors_supported = yes; then
  14271. SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
  14272. else
  14273. SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
  14274. fi
  14275. # Put the nasty error message in config.log where it belongs
  14276. echo "$SDL_PKG_ERRORS" >&5
  14277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14278. $as_echo "no" >&6; }
  14279. HAVE_SDL="no" check_failed=yes
  14280. elif test $pkg_failed = untried; then
  14281. HAVE_SDL="no" check_failed=yes
  14282. else
  14283. SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
  14284. SDL_LIBS=$pkg_cv_SDL_LIBS
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14286. $as_echo "yes" >&6; }
  14287. output_modules="$output_modules sdl" HAVE_SDL="yes"
  14288. fi
  14289. ;;
  14290. nas)
  14291. NAS_LIBS=-laudio
  14292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  14293. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  14294. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  14295. $as_echo_n "(cached) " >&6
  14296. else
  14297. ac_check_lib_save_LIBS=$LIBS
  14298. LIBS="-laudio $LIBS"
  14299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14300. /* end confdefs.h. */
  14301. /* Override any GCC internal prototype to avoid an error.
  14302. Use char because int might match the return type of a GCC
  14303. builtin and then its argument prototype would still apply. */
  14304. #ifdef __cplusplus
  14305. extern "C"
  14306. #endif
  14307. char AuOpenServer ();
  14308. int
  14309. main ()
  14310. {
  14311. return AuOpenServer ();
  14312. ;
  14313. return 0;
  14314. }
  14315. _ACEOF
  14316. if ac_fn_c_try_link "$LINENO"; then :
  14317. ac_cv_lib_audio_AuOpenServer=yes
  14318. else
  14319. ac_cv_lib_audio_AuOpenServer=no
  14320. fi
  14321. rm -f core conftest.err conftest.$ac_objext \
  14322. conftest$ac_exeext conftest.$ac_ext
  14323. LIBS=$ac_check_lib_save_LIBS
  14324. fi
  14325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  14326. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  14327. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  14328. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  14329. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  14330. output_modules="$output_modules nas" HAVE_NAS="yes"
  14331. else
  14332. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found NAS library but NOT header files on your system" >&5
  14333. $as_echo "$as_me: WARNING: Found NAS library but NOT header files on your system" >&2;}
  14334. fi
  14335. fi
  14336. if test "x$HAVE_NAS" != xyes; then
  14337. check_failed=yes
  14338. fi
  14339. ;;
  14340. win32)
  14341. # Check for windows ... and win32 audio
  14342. # Does not work... instead just check for header
  14343. # AC_CHECK_LIB( [winmm], [waveOutOpen] )
  14344. WIN32_LIBS=-lwinmm
  14345. for ac_header in windows.h
  14346. do :
  14347. ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  14348. if test "x$ac_cv_header_windows_h" = xyes; then :
  14349. cat >>confdefs.h <<_ACEOF
  14350. #define HAVE_WINDOWS_H 1
  14351. _ACEOF
  14352. output_modules="$output_modules win32" HAVE_WIN32=yes
  14353. else
  14354. HAVE_WIN32=no check_failed=yes
  14355. fi
  14356. done
  14357. ;;
  14358. sndio)
  14359. SNDIO_LIBS=-lsndio
  14360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  14361. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  14362. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  14363. $as_echo_n "(cached) " >&6
  14364. else
  14365. ac_check_lib_save_LIBS=$LIBS
  14366. LIBS="-lsndio $LIBS"
  14367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14368. /* end confdefs.h. */
  14369. /* Override any GCC internal prototype to avoid an error.
  14370. Use char because int might match the return type of a GCC
  14371. builtin and then its argument prototype would still apply. */
  14372. #ifdef __cplusplus
  14373. extern "C"
  14374. #endif
  14375. char sio_open ();
  14376. int
  14377. main ()
  14378. {
  14379. return sio_open ();
  14380. ;
  14381. return 0;
  14382. }
  14383. _ACEOF
  14384. if ac_fn_c_try_link "$LINENO"; then :
  14385. ac_cv_lib_sndio_sio_open=yes
  14386. else
  14387. ac_cv_lib_sndio_sio_open=no
  14388. fi
  14389. rm -f core conftest.err conftest.$ac_objext \
  14390. conftest$ac_exeext conftest.$ac_ext
  14391. LIBS=$ac_check_lib_save_LIBS
  14392. fi
  14393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  14394. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  14395. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  14396. for ac_header in sndio.h
  14397. do :
  14398. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  14399. if test "x$ac_cv_header_sndio_h" = xyes; then :
  14400. cat >>confdefs.h <<_ACEOF
  14401. #define HAVE_SNDIO_H 1
  14402. _ACEOF
  14403. output_modules="$output_modules sndio" HAVE_SNDIO="yes"
  14404. fi
  14405. done
  14406. fi
  14407. if test "x$HAVE_SNDIO" != xyes; then
  14408. check_failed=yes
  14409. fi
  14410. ;;
  14411. sun)
  14412. for ac_header in sun/audioio.h sys/audioio.h asm/audioio.h sys/audio.h
  14413. do :
  14414. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14415. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14416. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14417. cat >>confdefs.h <<_ACEOF
  14418. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14419. _ACEOF
  14420. fi
  14421. done
  14422. if test "x${ac_cv_header_sun_audioio_h}" = "xyes" \
  14423. -o "x${ac_cv_header_sys_audioio_h}" = "xyes" \
  14424. -o "x${ac_cv_header_asm_audioio_h}" = "xyes";
  14425. then
  14426. output_modules="$output_modules sun"
  14427. HAVE_SUN="yes"
  14428. else
  14429. check_failed=yes
  14430. fi
  14431. ;;
  14432. coreaudio)
  14433. COREAUDIO_LIBS="-framework AudioToolbox -framework AudioUnit -framework CoreServices"
  14434. for ac_header in AudioUnit/AudioUnit.h CoreServices/CoreServices.h AudioToolbox/AudioToolbox.h
  14435. do :
  14436. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14437. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14438. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14439. cat >>confdefs.h <<_ACEOF
  14440. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14441. _ACEOF
  14442. fi
  14443. done
  14444. if test "x${ac_cv_header_AudioUnit_AudioUnit_h}" = "xyes" \
  14445. -a "x${ac_cv_header_CoreServices_CoreServices_h}" = "xyes" \
  14446. -a "x${ac_cv_header_AudioToolbox_AudioToolbox_h}" = "xyes";
  14447. then
  14448. if test x"$modules" = xdisabled; then
  14449. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling buffer because of directly linked CoreAudio! Use the module if you need the buffer." >&5
  14450. $as_echo "$as_me: WARNING: Disabling buffer because of directly linked CoreAudio! Use the module if you need the buffer." >&2;}
  14451. buffer=disabled
  14452. fi
  14453. output_modules="$output_modules coreaudio"
  14454. HAVE_COREAUDIO="yes"
  14455. else
  14456. check_failed=yes
  14457. fi
  14458. ;;
  14459. arts)
  14460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for artsc" >&5
  14461. $as_echo_n "checking for artsc... " >&6; }
  14462. if artsc-config; then
  14463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14464. $as_echo "yes" >&6; }
  14465. output_modules="$output_modules arts"
  14466. HAVE_ARTS=yes
  14467. ARTS_LIBS=`artsc-config --libs`
  14468. ARTS_CFLAGS=`artsc-config --cflags`
  14469. else
  14470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14471. $as_echo "no" >&6; }
  14472. check_failed=yes
  14473. fi
  14474. ;;
  14475. openal)
  14476. for ac_header in OpenAL/al.h OpenAL/alc.h AL/al.h AL/alc.h al.h alc.h
  14477. do :
  14478. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14479. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14480. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14481. cat >>confdefs.h <<_ACEOF
  14482. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14483. _ACEOF
  14484. fi
  14485. done
  14486. if test "x${ac_cv_header_OpenAL_al_h}" = "xyes" \
  14487. -a "x${ac_cv_header_OpenAL_alc_h}" = "xyes";
  14488. then #Mac OS X
  14489. output_modules="$output_modules openal"
  14490. OPENAL_LIBS="-framework OpenAL"
  14491. OPENAL_CFLAGS="-DOPENAL_SUBDIR_OPENAL"
  14492. HAVE_OPENAL="yes"
  14493. elif test "x${ac_cv_header_AL_al_h}" = "xyes" \
  14494. -a "x${ac_cv_header_AL_alc_h}" = "xyes";
  14495. then #Linux
  14496. output_modules="$output_modules openal"
  14497. OPENAL_LIBS="-lopenal"
  14498. OPENAL_CFLAGS="-DOPENAL_SUBDIR_AL"
  14499. HAVE_OPENAL="yes"
  14500. elif test "x${ac_cv_header_al_h}" = "xyes" \
  14501. -a "x${ac_cv_header_alc_h}" = "xyes";
  14502. then #Windows?
  14503. output_modules="$output_modules openal"
  14504. OPENAL_LIBS="-lopenal"
  14505. OPENAL_CFLAGS=""
  14506. HAVE_OPENAL="yes"
  14507. else
  14508. check_failed=yes
  14509. fi
  14510. ;;
  14511. os2)
  14512. OS2_LIBS="-los2me -lmmpm2 -lsocket"
  14513. for ac_header in os2.h
  14514. do :
  14515. ac_fn_c_check_header_mongrel "$LINENO" "os2.h" "ac_cv_header_os2_h" "$ac_includes_default"
  14516. if test "x$ac_cv_header_os2_h" = xyes; then :
  14517. cat >>confdefs.h <<_ACEOF
  14518. #define HAVE_OS2_H 1
  14519. _ACEOF
  14520. fi
  14521. done
  14522. # os2me.h depends on os2.h
  14523. # Yes, that way of coding it is ugly.
  14524. if test "x${ac_cv_header_os2_h}" = xyes
  14525. then
  14526. # We mimick exactly the way how the header will be used.
  14527. # It seems to be picky...
  14528. for ac_header in os2me.h
  14529. do :
  14530. ac_fn_c_check_header_compile "$LINENO" "os2me.h" "ac_cv_header_os2me_h" "#define INCL_OS2MM
  14531. #define INCL_DOS
  14532. #define INCL_VIO
  14533. #define INCL_KBD
  14534. #include <os2.h>
  14535. #
  14536. "
  14537. if test "x$ac_cv_header_os2me_h" = xyes; then :
  14538. cat >>confdefs.h <<_ACEOF
  14539. #define HAVE_OS2ME_H 1
  14540. _ACEOF
  14541. fi
  14542. done
  14543. fi
  14544. if test "x${ac_cv_header_os2_h}" = xyes \
  14545. -a "x${ac_cv_header_os2me_h}" = xyes
  14546. then
  14547. output_modules="$output_modules os2"
  14548. HAVE_OS2=yes
  14549. else
  14550. check_failed=yes
  14551. fi
  14552. ;;
  14553. # from here on only forced tests, untested code
  14554. hp)
  14555. # What's the deal with that and alib?
  14556. UNSUPPORTED_AUDIO=yes
  14557. ac_fn_c_check_header_mongrel "$LINENO" "sys/audio.h" "ac_cv_header_sys_audio_h" "$ac_includes_default"
  14558. if test "x$ac_cv_header_sys_audio_h" = xyes; then :
  14559. output_modules="$output_modules hp" HAVE_HP=yes
  14560. else
  14561. check_failed=yes
  14562. fi
  14563. ;;
  14564. alib)
  14565. UNSUPPORTED_AUDIO=yes
  14566. # ALIB_CFLAGS="-I/opt/audio/include"
  14567. ALIB_LIBS=-lAlib
  14568. # These headers may not be all about audio but they are used.
  14569. for ac_header in Alib.h CUlib.h netdb.h netinet/in.h netinet/tcp.h
  14570. do :
  14571. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14572. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14573. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14574. cat >>confdefs.h <<_ACEOF
  14575. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14576. _ACEOF
  14577. fi
  14578. done
  14579. if test "x${ac_cv_header_Alib_h}" = xyes \
  14580. -a "x${ac_cv_header_CUlib_h}" = xyes \
  14581. -a "x${ac_cv_header_netdb_h}" = xyes \
  14582. -a "x${ac_cv_header_netinet_in_h}" = xyes \
  14583. -a "x${ac_cv_header_netinet_tcp_h}" = xyes
  14584. then
  14585. output_modules="$output_modules alib"
  14586. HAVE_ALIB=yes
  14587. else
  14588. check_failed=yes
  14589. fi
  14590. ;;
  14591. mint)
  14592. UNSUPPORTED_AUDIO=yes
  14593. for ac_header in audios.h
  14594. do :
  14595. ac_fn_c_check_header_mongrel "$LINENO" "audios.h" "ac_cv_header_audios_h" "$ac_includes_default"
  14596. if test "x$ac_cv_header_audios_h" = xyes; then :
  14597. cat >>confdefs.h <<_ACEOF
  14598. #define HAVE_AUDIOS_H 1
  14599. _ACEOF
  14600. output_modules="$output_modules mint" HAVE_MINT=yes
  14601. else
  14602. check_failes=yes
  14603. fi
  14604. done
  14605. ;;
  14606. aix)
  14607. UNSUPPORTED_AUDIO=yes
  14608. for ac_header in sys/audio.h
  14609. do :
  14610. ac_fn_c_check_header_mongrel "$LINENO" "sys/audio.h" "ac_cv_header_sys_audio_h" "$ac_includes_default"
  14611. if test "x$ac_cv_header_sys_audio_h" = xyes; then :
  14612. cat >>confdefs.h <<_ACEOF
  14613. #define HAVE_SYS_AUDIO_H 1
  14614. _ACEOF
  14615. output_modules="$output_modules aix" HAVE_AIX=yes
  14616. else
  14617. check_failed=yes
  14618. fi
  14619. done
  14620. ;;
  14621. sgi)
  14622. UNSUPPORTED_AUDIO=yes
  14623. SGI_LIBS=-laudio
  14624. ac_fn_c_check_header_mongrel "$LINENO" "dmedia/audio.h" "ac_cv_header_dmedia_audio_h" "$ac_includes_default"
  14625. if test "x$ac_cv_header_dmedia_audio_h" = xyes; then :
  14626. output_modules="$output_modules sgi" HAVE_SGI=yes
  14627. else
  14628. check_failed=yes
  14629. fi
  14630. ;;
  14631. *)
  14632. as_fn_error $? "Unsupported/-known output '$m' demanded!" "$LINENO" 5
  14633. ;;
  14634. esac
  14635. done
  14636. if test "x$check_forced" = xyes -a "x$UNSUPPORTED_AUDIO" = xyes; then
  14637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You requested bulding of an unsupported audio module. Be prepared for happy hacking and please tell us about your experience!" >&5
  14638. $as_echo "$as_me: WARNING: You requested bulding of an unsupported audio module. Be prepared for happy hacking and please tell us about your experience!" >&2;}
  14639. fi
  14640. if test "x$check_forced" = xyes -a "x$check_failed" = "xyes"; then
  14641. as_fn_error $? "One/some of your requested audio modules failed the test!" "$LINENO" 5
  14642. fi
  14643. # When you extend check_modules, you should extend this:
  14644. #for i in alsa oss coreaudio sndio sun win32 esd jack portaudio pulse sdl nas aix alib arts hp os2 sgi mint openal dummy; do echo $i; done |
  14645. #perl -ne 'chomp; $big = uc($_); print <<EOT;
  14646. #AC_SUBST(${big}_LIBS)
  14647. #AC_SUBST(${big}_LDFLAGS)
  14648. #AC_SUBST(${big}_CFLAGS)
  14649. #AM_CONDITIONAL( [HAVE_$big], [test "x\$HAVE_$big" = xyes] )
  14650. #EOT
  14651. #'
  14652. if test "x$HAVE_ALSA" = xyes ; then
  14653. HAVE_ALSA_TRUE=
  14654. HAVE_ALSA_FALSE='#'
  14655. else
  14656. HAVE_ALSA_TRUE='#'
  14657. HAVE_ALSA_FALSE=
  14658. fi
  14659. if test "x$HAVE_QSA" = xyes ; then
  14660. HAVE_QSA_TRUE=
  14661. HAVE_QSA_FALSE='#'
  14662. else
  14663. HAVE_QSA_TRUE='#'
  14664. HAVE_QSA_FALSE=
  14665. fi
  14666. if test "x$HAVE_OSS" = xyes ; then
  14667. HAVE_OSS_TRUE=
  14668. HAVE_OSS_FALSE='#'
  14669. else
  14670. HAVE_OSS_TRUE='#'
  14671. HAVE_OSS_FALSE=
  14672. fi
  14673. if test "x$HAVE_COREAUDIO" = xyes ; then
  14674. HAVE_COREAUDIO_TRUE=
  14675. HAVE_COREAUDIO_FALSE='#'
  14676. else
  14677. HAVE_COREAUDIO_TRUE='#'
  14678. HAVE_COREAUDIO_FALSE=
  14679. fi
  14680. if test "x$HAVE_SNDIO" = xyes ; then
  14681. HAVE_SNDIO_TRUE=
  14682. HAVE_SNDIO_FALSE='#'
  14683. else
  14684. HAVE_SNDIO_TRUE='#'
  14685. HAVE_SNDIO_FALSE=
  14686. fi
  14687. if test "x$HAVE_SUN" = xyes ; then
  14688. HAVE_SUN_TRUE=
  14689. HAVE_SUN_FALSE='#'
  14690. else
  14691. HAVE_SUN_TRUE='#'
  14692. HAVE_SUN_FALSE=
  14693. fi
  14694. if test "x$HAVE_WIN32" = xyes ; then
  14695. HAVE_WIN32_TRUE=
  14696. HAVE_WIN32_FALSE='#'
  14697. else
  14698. HAVE_WIN32_TRUE='#'
  14699. HAVE_WIN32_FALSE=
  14700. fi
  14701. if test "x$HAVE_ESD" = xyes ; then
  14702. HAVE_ESD_TRUE=
  14703. HAVE_ESD_FALSE='#'
  14704. else
  14705. HAVE_ESD_TRUE='#'
  14706. HAVE_ESD_FALSE=
  14707. fi
  14708. if test "x$HAVE_JACK" = xyes ; then
  14709. HAVE_JACK_TRUE=
  14710. HAVE_JACK_FALSE='#'
  14711. else
  14712. HAVE_JACK_TRUE='#'
  14713. HAVE_JACK_FALSE=
  14714. fi
  14715. if test "x$HAVE_PORTAUDIO" = xyes ; then
  14716. HAVE_PORTAUDIO_TRUE=
  14717. HAVE_PORTAUDIO_FALSE='#'
  14718. else
  14719. HAVE_PORTAUDIO_TRUE='#'
  14720. HAVE_PORTAUDIO_FALSE=
  14721. fi
  14722. if test "x$HAVE_PULSE" = xyes ; then
  14723. HAVE_PULSE_TRUE=
  14724. HAVE_PULSE_FALSE='#'
  14725. else
  14726. HAVE_PULSE_TRUE='#'
  14727. HAVE_PULSE_FALSE=
  14728. fi
  14729. if test "x$HAVE_SDL" = xyes ; then
  14730. HAVE_SDL_TRUE=
  14731. HAVE_SDL_FALSE='#'
  14732. else
  14733. HAVE_SDL_TRUE='#'
  14734. HAVE_SDL_FALSE=
  14735. fi
  14736. if test "x$HAVE_NAS" = xyes ; then
  14737. HAVE_NAS_TRUE=
  14738. HAVE_NAS_FALSE='#'
  14739. else
  14740. HAVE_NAS_TRUE='#'
  14741. HAVE_NAS_FALSE=
  14742. fi
  14743. if test "x$HAVE_AIX" = xyes ; then
  14744. HAVE_AIX_TRUE=
  14745. HAVE_AIX_FALSE='#'
  14746. else
  14747. HAVE_AIX_TRUE='#'
  14748. HAVE_AIX_FALSE=
  14749. fi
  14750. if test "x$HAVE_ALIB" = xyes ; then
  14751. HAVE_ALIB_TRUE=
  14752. HAVE_ALIB_FALSE='#'
  14753. else
  14754. HAVE_ALIB_TRUE='#'
  14755. HAVE_ALIB_FALSE=
  14756. fi
  14757. if test "x$HAVE_ARTS" = xyes ; then
  14758. HAVE_ARTS_TRUE=
  14759. HAVE_ARTS_FALSE='#'
  14760. else
  14761. HAVE_ARTS_TRUE='#'
  14762. HAVE_ARTS_FALSE=
  14763. fi
  14764. if test "x$HAVE_HP" = xyes ; then
  14765. HAVE_HP_TRUE=
  14766. HAVE_HP_FALSE='#'
  14767. else
  14768. HAVE_HP_TRUE='#'
  14769. HAVE_HP_FALSE=
  14770. fi
  14771. if test "x$HAVE_OS2" = xyes ; then
  14772. HAVE_OS2_TRUE=
  14773. HAVE_OS2_FALSE='#'
  14774. else
  14775. HAVE_OS2_TRUE='#'
  14776. HAVE_OS2_FALSE=
  14777. fi
  14778. if test "x$HAVE_SGI" = xyes ; then
  14779. HAVE_SGI_TRUE=
  14780. HAVE_SGI_FALSE='#'
  14781. else
  14782. HAVE_SGI_TRUE='#'
  14783. HAVE_SGI_FALSE=
  14784. fi
  14785. if test "x$HAVE_MINT" = xyes ; then
  14786. HAVE_MINT_TRUE=
  14787. HAVE_MINT_FALSE='#'
  14788. else
  14789. HAVE_MINT_TRUE='#'
  14790. HAVE_MINT_FALSE=
  14791. fi
  14792. if test "x$HAVE_OPENAL" = xyes ; then
  14793. HAVE_OPENAL_TRUE=
  14794. HAVE_OPENAL_FALSE='#'
  14795. else
  14796. HAVE_OPENAL_TRUE='#'
  14797. HAVE_OPENAL_FALSE=
  14798. fi
  14799. if test "x$HAVE_DUMMY" = xyes ; then
  14800. HAVE_DUMMY_TRUE=
  14801. HAVE_DUMMY_FALSE='#'
  14802. else
  14803. HAVE_DUMMY_TRUE='#'
  14804. HAVE_DUMMY_FALSE=
  14805. fi
  14806. # Did user choose default audio subsystem ?
  14807. if test "x$with_default_audio" != "x"; then
  14808. default_output_module=$with_default_audio
  14809. else
  14810. default_output_module=`echo "$output_modules" | $AWK '{ print $1 }'`
  14811. fi
  14812. # That's (beginning of) the list for mpg123's internal default.
  14813. default_output_modules=$default_output_module
  14814. OUTPUT_OBJ=
  14815. OUTPUT_MOD=
  14816. OUTPUT_CFLAGS=
  14817. OUTPUT_LIBS=
  14818. OUTPUT_LDFLAGS=
  14819. # Setup the static build.
  14820. if test "x$modules" = xdisabled
  14821. then
  14822. echo "Preparing static output $default_output_module"
  14823. OUTPUT_MOD="$default_output_module"
  14824. OUTPUT_OBJ="output/$default_output_module.\$(OBJEXT)"
  14825. OUTPUT_CFLAGS=
  14826. OUTPUT_LIBS=
  14827. # That feels stupid... what about hashed arrays?
  14828. case $OUTPUT_MOD in
  14829. # Here's a script for that tedious list, perhaps to be outsourced together with the one in src/output/Makefile.am
  14830. #for i in alsa coreaudio esd jack nas oss portaudio pulse sdl sndio sun win32 aix alib arts hp os2 sgi mint; do echo $i; done |
  14831. #perl -ne 'chomp; $big = uc($_); print <<EOT;
  14832. # $_)
  14833. # OUTPUT_LIBS="\$${big}_LIBS"
  14834. # OUTPUT_LDFLAGS="\$${big}_LDFLAGS"
  14835. # OUTPUT_CFLAGS="\$${big}_CFLAGS"
  14836. # ;;
  14837. #EOT
  14838. #'
  14839. alsa)
  14840. OUTPUT_LIBS="$ALSA_LIBS"
  14841. OUTPUT_LDFLAGS="$ALSA_LDFLAGS"
  14842. OUTPUT_CFLAGS="$ALSA_CFLAGS"
  14843. ;;
  14844. qsa)
  14845. OUTPUT_LIBS="$QSA_LIBS"
  14846. OUTPUT_LDFLAGS="$QSA_LDFLAGS"
  14847. OUTPUT_CFLAGS="$QSA_CFLAGS"
  14848. ;;
  14849. coreaudio)
  14850. OUTPUT_LIBS="$COREAUDIO_LIBS"
  14851. OUTPUT_LDFLAGS="$COREAUDIO_LDFLAGS"
  14852. OUTPUT_CFLAGS="$COREAUDIO_CFLAGS"
  14853. ;;
  14854. esd)
  14855. OUTPUT_LIBS="$ESD_LIBS"
  14856. OUTPUT_LDFLAGS="$ESD_LDFLAGS"
  14857. OUTPUT_CFLAGS="$ESD_CFLAGS"
  14858. ;;
  14859. jack)
  14860. OUTPUT_LIBS="$JACK_LIBS"
  14861. OUTPUT_LDFLAGS="$JACK_LDFLAGS"
  14862. OUTPUT_CFLAGS="$JACK_CFLAGS"
  14863. ;;
  14864. nas)
  14865. OUTPUT_LIBS="$NAS_LIBS"
  14866. OUTPUT_LDFLAGS="$NAS_LDFLAGS"
  14867. OUTPUT_CFLAGS="$NAS_CFLAGS"
  14868. ;;
  14869. oss)
  14870. OUTPUT_LIBS="$OSS_LIBS"
  14871. OUTPUT_LDFLAGS="$OSS_LDFLAGS"
  14872. OUTPUT_CFLAGS="$OSS_CFLAGS"
  14873. ;;
  14874. portaudio)
  14875. OUTPUT_LIBS="$PORTAUDIO_LIBS"
  14876. OUTPUT_LDFLAGS="$PORTAUDIO_LDFLAGS"
  14877. OUTPUT_CFLAGS="$PORTAUDIO_CFLAGS"
  14878. ;;
  14879. pulse)
  14880. OUTPUT_LIBS="$PULSE_LIBS"
  14881. OUTPUT_LDFLAGS="$PULSE_LDFLAGS"
  14882. OUTPUT_CFLAGS="$PULSE_CFLAGS"
  14883. ;;
  14884. sdl)
  14885. OUTPUT_LIBS="$SDL_LIBS"
  14886. OUTPUT_LDFLAGS="$SDL_LDFLAGS"
  14887. OUTPUT_CFLAGS="$SDL_CFLAGS"
  14888. ;;
  14889. sndio)
  14890. OUTPUT_LIBS="$SNDIO_LIBS"
  14891. OUTPUT_LDFLAGS="$SNDIO_LDFLAGS"
  14892. OUTPUT_CFLAGS="$SNDIO_CFLAGS"
  14893. ;;
  14894. sun)
  14895. OUTPUT_LIBS="$SUN_LIBS"
  14896. OUTPUT_LDFLAGS="$SUN_LDFLAGS"
  14897. OUTPUT_CFLAGS="$SUN_CFLAGS"
  14898. ;;
  14899. win32)
  14900. OUTPUT_LIBS="$WIN32_LIBS"
  14901. OUTPUT_LDFLAGS="$WIN32_LDFLAGS"
  14902. OUTPUT_CFLAGS="$WIN32_CFLAGS"
  14903. ;;
  14904. aix)
  14905. OUTPUT_LIBS="$AIX_LIBS"
  14906. OUTPUT_LDFLAGS="$AIX_LDFLAGS"
  14907. OUTPUT_CFLAGS="$AIX_CFLAGS"
  14908. ;;
  14909. alib)
  14910. OUTPUT_LIBS="$ALIB_LIBS"
  14911. OUTPUT_LDFLAGS="$ALIB_LDFLAGS"
  14912. OUTPUT_CFLAGS="$ALIB_CFLAGS"
  14913. ;;
  14914. arts)
  14915. OUTPUT_LIBS="$ARTS_LIBS"
  14916. OUTPUT_LDFLAGS="$ARTS_LDFLAGS"
  14917. OUTPUT_CFLAGS="$ARTS_CFLAGS"
  14918. ;;
  14919. hp)
  14920. OUTPUT_LIBS="$HP_LIBS"
  14921. OUTPUT_LDFLAGS="$HP_LDFLAGS"
  14922. OUTPUT_CFLAGS="$HP_CFLAGS"
  14923. ;;
  14924. os2)
  14925. OUTPUT_LIBS="$OS2_LIBS"
  14926. OUTPUT_LDFLAGS="$OS2_LDFLAGS"
  14927. OUTPUT_CFLAGS="$OS2_CFLAGS"
  14928. ;;
  14929. sgi)
  14930. OUTPUT_LIBS="$SGI_LIBS"
  14931. OUTPUT_LDFLAGS="$SGI_LDFLAGS"
  14932. OUTPUT_CFLAGS="$SGI_CFLAGS"
  14933. ;;
  14934. mint)
  14935. OUTPUT_LIBS="$MINT_LIBS"
  14936. OUTPUT_LDFLAGS="$MINT_LDFLAGS"
  14937. OUTPUT_CFLAGS="$MINT_CFLAGS"
  14938. ;;
  14939. openal)
  14940. OUTPUT_LIBS="$OPENAL_LIBS"
  14941. OUTPUT_LDFLAGS="$OPENAL_LDFLAGS"
  14942. OUTPUT_CFLAGS="$OPENAL_CFLAGS"
  14943. ;;
  14944. esac
  14945. else
  14946. # Now make a comma-separated list again... eliminating the possible duplicate and dummy.
  14947. for i in $output_modules
  14948. do
  14949. if test $i != $default_output_module && test $i != dummy; then
  14950. default_output_modules=$default_output_modules,$i
  14951. fi
  14952. done
  14953. fi
  14954. cat >>confdefs.h <<_ACEOF
  14955. #define DEFAULT_OUTPUT_MODULE "$default_output_modules"
  14956. _ACEOF
  14957. CFLAGS="$ADD_CFLAGS $CFLAGS"
  14958. if test x"$buffer" = xdisabled; then
  14959. ADD_CPPFLAGS="$ADD_CPPFLAGS -DNOXFERMEM"
  14960. fi
  14961. if test x"$newoldwritesample" = xenabled; then
  14962. ADD_CPPFLAGS="$ADD_CPPFLAGS -DNEWOLD_WRITE_SAMPLE"
  14963. fi
  14964. CPPFLAGS="$ADD_CPPFLAGS $CPPFLAGS"
  14965. LDFLAGS="$ADD_LDFLAGS $LDFLAGS"
  14966. # None chosen?
  14967. if test "x$with_optimization" = "x"; then
  14968. if test x"$debugging" = xenabled; then
  14969. with_optimization="0"
  14970. else
  14971. # enable (gcc specific) default opts only with gcc
  14972. if test "x$GCC" = xyes; then
  14973. with_optimization="2"
  14974. else
  14975. with_optimization="0"
  14976. fi
  14977. fi
  14978. fi
  14979. case $with_optimization in
  14980. 0)
  14981. # No Optimizations
  14982. CFLAGS="$CFLAGS"
  14983. ;;
  14984. 1)
  14985. CFLAGS="-O $CFLAGS"
  14986. ;;
  14987. 2)
  14988. CFLAGS="-O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
  14989. ;;
  14990. 3)
  14991. CFLAGS="-O3 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
  14992. ;;
  14993. 4)
  14994. CFLAGS="-O4 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
  14995. ;;
  14996. *)
  14997. as_fn_error $? "Unknown optimizations level '$with_optimization'" "$LINENO" 5
  14998. ;;
  14999. esac
  15000. if test "x$GCC" = xyes && echo "$CFLAGS" | $GREP 'mpreferred-stack-boundary=' > /dev/null; then
  15001. case $cpu_type in
  15002. x86 | i586* | mmx | sse | 3dnow* | altivec)
  15003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are trying to mess with stack alignment. I know better. " >&5
  15004. $as_echo "$as_me: WARNING: You are trying to mess with stack alignment. I know better. " >&2;}
  15005. CFLAGS="$CFLAGS -mpreferred-stack-boundary=4"
  15006. ;;
  15007. esac
  15008. fi
  15009. if test "x$with_seektable" = "x"; then
  15010. seektable=1000
  15011. else
  15012. seektable=$with_seektable
  15013. fi
  15014. if test "$seektable" -gt 0; then
  15015. $as_echo "#define FRAME_INDEX 1" >>confdefs.h
  15016. fi
  15017. # Define that always... also without frame index enabled.
  15018. cat >>confdefs.h <<_ACEOF
  15019. #define INDEX_SIZE $seektable
  15020. _ACEOF
  15021. # Check if we want Unicode for Win32. Cygwin does not need _wopen
  15022. win32_specific_codes=disabled
  15023. win32_unicode=unneeded
  15024. win32_sockets=disabled
  15025. win32_sockets_working=no
  15026. win32_wide_working=no
  15027. win32_winver_bump=no
  15028. for ac_header in windows.h
  15029. do :
  15030. ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  15031. if test "x$ac_cv_header_windows_h" = xyes; then :
  15032. cat >>confdefs.h <<_ACEOF
  15033. #define HAVE_WINDOWS_H 1
  15034. _ACEOF
  15035. win32_specific_codes=enabled
  15036. fi
  15037. done
  15038. if test "x$win32_specific_codes" = xenabled && test "x$host_os" != "xcygwin"; then
  15039. #### Check for Wide functions
  15040. ac_fn_c_check_func "$LINENO" "_wopen" "ac_cv_func__wopen"
  15041. if test "x$ac_cv_func__wopen" = xyes; then :
  15042. win32_unicode=enabled
  15043. else
  15044. win32_unicode=disabled
  15045. fi
  15046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want Unicode File Open for Win32" >&5
  15047. $as_echo_n "checking if we want Unicode File Open for Win32... " >&6; }
  15048. if test "x$win32_unicode" = xenabled; then
  15049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15050. $as_echo "yes" >&6; }
  15051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Unicode functions working" >&5
  15052. $as_echo_n "checking if Unicode functions working... " >&6; }
  15053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15054. /* end confdefs.h. */
  15055. #include <windows.h>
  15056. #include <stdlib.h>
  15057. int main()
  15058. {
  15059. MultiByteToWideChar (0, 0, NULL, 0, NULL, 0);
  15060. WideCharToMultiByte (0, 0, NULL, 0, NULL, 0, NULL, NULL);
  15061. return 0;
  15062. }
  15063. _ACEOF
  15064. if ac_fn_c_try_link "$LINENO"; then :
  15065. win32_wide_working=yes
  15066. else
  15067. win32_winver_bump=yes
  15068. fi
  15069. rm -f core conftest.err conftest.$ac_objext \
  15070. conftest$ac_exeext conftest.$ac_ext
  15071. if test "x$win32_wide_working" = xno; then
  15072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15073. /* end confdefs.h. */
  15074. #define WINVER 0x501
  15075. #define _WIN32_WINNT 0x501
  15076. #include <windows.h>
  15077. #include <stdlib.h>
  15078. int main()
  15079. {
  15080. MultiByteToWideChar (0, 0, NULL, 0, NULL, 0);
  15081. WideCharToMultiByte (0, 0, NULL, 0, NULL, 0, NULL, NULL);
  15082. return 0;
  15083. }
  15084. _ACEOF
  15085. if ac_fn_c_try_link "$LINENO"; then :
  15086. win32_wide_working=yes
  15087. else
  15088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15089. $as_echo "no" >&6; }
  15090. fi
  15091. rm -f core conftest.err conftest.$ac_objext \
  15092. conftest$ac_exeext conftest.$ac_ext
  15093. fi
  15094. if test "x$win32_wide_working" = xyes; then
  15095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15096. $as_echo "yes" >&6; }
  15097. $as_echo "#define WANT_WIN32_UNICODE 1" >>confdefs.h
  15098. fi
  15099. else
  15100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unicode File Open for Win32 disabled" >&5
  15101. $as_echo "$as_me: WARNING: Unicode File Open for Win32 disabled" >&2;}
  15102. fi
  15103. #### Check for Network functions
  15104. for ac_header in ws2tcpip.h
  15105. do :
  15106. ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
  15107. if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
  15108. cat >>confdefs.h <<_ACEOF
  15109. #define HAVE_WS2TCPIP_H 1
  15110. _ACEOF
  15111. win32_sockets=enabled
  15112. else
  15113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please update your headers to support winsock 2.2." >&5
  15114. $as_echo "$as_me: WARNING: Please update your headers to support winsock 2.2." >&2;}
  15115. fi
  15116. done
  15117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want Win32 sockets" >&5
  15118. $as_echo_n "checking if we want Win32 sockets... " >&6; }
  15119. if test "x$win32_sockets" = "xenabled" && test "x$network" != "xdisabled"; then
  15120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15121. $as_echo "yes" >&6; }
  15122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if winsock2 API is available" >&5
  15123. $as_echo_n "checking if winsock2 API is available... " >&6; }
  15124. wsoldlibs="$LIBS"
  15125. LIBS="$LIBS -lws2_32"
  15126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15127. /* end confdefs.h. */
  15128. #include <winsock2.h>
  15129. #include <ws2tcpip.h>
  15130. #include <stdlib.h>
  15131. int main()
  15132. {
  15133. getaddrinfo(NULL, NULL, NULL, NULL);
  15134. freeaddrinfo(NULL);
  15135. return 0;
  15136. }
  15137. _ACEOF
  15138. if ac_fn_c_try_link "$LINENO"; then :
  15139. win32_sockets_working=yes
  15140. else
  15141. win32_winver_bump=yes
  15142. fi
  15143. rm -f core conftest.err conftest.$ac_objext \
  15144. conftest$ac_exeext conftest.$ac_ext
  15145. if test "x$win32_sockets_working" = "xno"; then
  15146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper if winsock2 API is available" >&5
  15147. $as_echo_n "checking deeper if winsock2 API is available... " >&6; }
  15148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15149. /* end confdefs.h. */
  15150. #define WINVER 0x501
  15151. #define _WIN32_WINNT 0x501
  15152. #include <winsock2.h>
  15153. #include <ws2tcpip.h>
  15154. #include <stdlib.h>
  15155. int main()
  15156. {
  15157. getaddrinfo(NULL, NULL, NULL, NULL);
  15158. freeaddrinfo(NULL);
  15159. return 0;
  15160. }
  15161. _ACEOF
  15162. if ac_fn_c_try_link "$LINENO"; then :
  15163. win32_sockets_working=yes
  15164. else
  15165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15166. $as_echo "no" >&6; }
  15167. fi
  15168. rm -f core conftest.err conftest.$ac_objext \
  15169. conftest$ac_exeext conftest.$ac_ext
  15170. fi
  15171. if test "x$win32_sockets_working" = "xyes"; then
  15172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15173. $as_echo "yes" >&6; }
  15174. $as_echo "#define WANT_WIN32_SOCKETS 1" >>confdefs.h
  15175. network_type=Winsock2
  15176. have_network=yes
  15177. have_ipv6=yes
  15178. else
  15179. LIBS="$wsoldlibs"
  15180. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please update your headers to support winsock 2.2." >&5
  15181. $as_echo "$as_me: WARNING: Please update your headers to support winsock 2.2." >&2;}
  15182. fi
  15183. else
  15184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15185. $as_echo "no" >&6; }
  15186. fi
  15187. #### Check for Win32 Named Pipe functions
  15188. win32_fifo_working=no
  15189. if test x$win32_specific_codes = xenabled; then
  15190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have Named Pipes" >&5
  15191. $as_echo_n "checking if we have Named Pipes... " >&6; }
  15192. if test "x$fifo" != "xdisabled"; then
  15193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15194. /* end confdefs.h. */
  15195. #include <windows.h>
  15196. int main(){
  15197. CreateNamedPipeA(NULL,PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,PIPE_TYPE_BYTE,1,255,255,0,NULL);
  15198. CreateNamedPipeW(NULL,PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,PIPE_TYPE_BYTE,1,255,255,0,NULL);
  15199. return 0;
  15200. }
  15201. _ACEOF
  15202. if ac_fn_c_try_link "$LINENO"; then :
  15203. win32_fifo_working=yes
  15204. else
  15205. win32_winver_bump=yes
  15206. fi
  15207. rm -f core conftest.err conftest.$ac_objext \
  15208. conftest$ac_exeext conftest.$ac_ext
  15209. if test "x$win32_fifo_working" != "xyes"; then
  15210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15211. /* end confdefs.h. */
  15212. #define WINVER 0x501
  15213. #define _WIN32_WINNT 0x501
  15214. #include <windows.h>
  15215. int main(){
  15216. CreateNamedPipeA(NULL,PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,PIPE_TYPE_BYTE,1,255,255,0,NULL);
  15217. CreateNamedPipeW(NULL,PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,PIPE_TYPE_BYTE,1,255,255,0,NULL);
  15218. return 0;
  15219. }
  15220. _ACEOF
  15221. if ac_fn_c_try_link "$LINENO"; then :
  15222. win32_fifo_working=yes
  15223. else
  15224. win32_fifo_working=no
  15225. fi
  15226. rm -f core conftest.err conftest.$ac_objext \
  15227. conftest$ac_exeext conftest.$ac_ext
  15228. fi
  15229. fi
  15230. have_mkfifo=$win32_fifo_working
  15231. if test "x$win32_fifo_working" = "xyes"; then
  15232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15233. $as_echo "yes" >&6; }
  15234. $as_echo "#define WANT_WIN32_FIFO 1" >>confdefs.h
  15235. else
  15236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15237. $as_echo "no" >&6; }
  15238. fi
  15239. fi
  15240. #### WINVER Bump
  15241. if test x$win32_specific_codes = xenabled; then
  15242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WINVER and _WIN32_WINNT needs version bumps" >&5
  15243. $as_echo_n "checking if WINVER and _WIN32_WINNT needs version bumps... " >&6; }
  15244. if test "x$win32_winver_bump" = "xyes"; then
  15245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15246. $as_echo "yes" >&6; }
  15247. $as_echo "#define WINVER 0x0501" >>confdefs.h
  15248. $as_echo "#define _WIN32_WINNT 0x0501" >>confdefs.h
  15249. # getaddrinfo and freeaddrinfo are available for Win2K and above
  15250. # Bug: MinGW.org w32api ws2tcpip.h incorrectly wants (_WIN32_WINNT >= 0x0501) for getaddrinfo and freeaddrinfo
  15251. # MultiByteToWideChar and WideCharToMultiByte are available for Win2K and above
  15252. else
  15253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15254. $as_echo "no" >&6; }
  15255. fi
  15256. fi
  15257. fi #END OF WIN32 CHECKS
  15258. #### Check mingw.org for EOVERFLOW
  15259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have EOVERFLOW macro" >&5
  15260. $as_echo_n "checking if we have EOVERFLOW macro... " >&6; }
  15261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15262. /* end confdefs.h. */
  15263. #include <errno.h>
  15264. int i = (EOVERFLOW) + 0;
  15265. _ACEOF
  15266. if ac_fn_c_try_compile "$LINENO"; then :
  15267. eoverflow_present=yes
  15268. else
  15269. eoverflow_present=no
  15270. fi
  15271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $eoverflow_present" >&5
  15273. $as_echo "$eoverflow_present" >&6; }
  15274. if test "x$eoverflow_present" = "xyes"; then :
  15275. else
  15276. $as_echo "#define EOVERFLOW EFBIG" >>confdefs.h
  15277. fi
  15278. #### Use Win32 support codes
  15279. if test "x$win32_specific_codes" = xenabled ; then
  15280. WIN32_CODES_TRUE=
  15281. WIN32_CODES_FALSE='#'
  15282. else
  15283. WIN32_CODES_TRUE='#'
  15284. WIN32_CODES_FALSE=
  15285. fi
  15286. if test x"$network" = xauto; then
  15287. if test x"$have_network" = xyes; then
  15288. network=enabled
  15289. else
  15290. network=disabled
  15291. fi
  15292. fi
  15293. if test x"$ipv6" = xauto; then
  15294. if test x"$have_ipv6" = xyes; then
  15295. ipv6=enabled
  15296. else
  15297. ipv6=disabled
  15298. fi
  15299. fi
  15300. if test x"$fifo" = xauto; then
  15301. if test x"$have_mkfifo" = xyes; then
  15302. fifo=enabled
  15303. else
  15304. fifo=disabled
  15305. fi
  15306. fi
  15307. if test x"$fifo" = xenabled; then
  15308. $as_echo "#define FIFO 1" >>confdefs.h
  15309. if test x"$have_mkfifo" = xno; then
  15310. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You forced FIFO code while I think there is no mkfifo() available! " >&5
  15311. $as_echo "$as_me: WARNING: You forced FIFO code while I think there is no mkfifo() available! " >&2;}
  15312. fi
  15313. fi
  15314. if test x"$network" = xenabled; then
  15315. $as_echo "#define NETWORK 1" >>confdefs.h
  15316. if test x"$have_network" = xno; then
  15317. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You forced network code while I think there is support missing! " >&5
  15318. $as_echo "$as_me: WARNING: You forced network code while I think there is support missing! " >&2;}
  15319. fi
  15320. fi
  15321. if test x"$ipv6" = xenabled; then
  15322. $as_echo "#define IPV6 1" >>confdefs.h
  15323. if test x"$have_ipv6" = xno; then
  15324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You forced IPv6 code while I think there is no getaddrinfo() available! " >&5
  15325. $as_echo "$as_me: WARNING: You forced IPv6 code while I think there is no getaddrinfo() available! " >&2;}
  15326. fi
  15327. fi
  15328. # Do that here to prevent the above tests usign -lltdl...
  15329. if test "x$modules" = xenabled; then
  15330. LIBS="-lltdl $LIBS"
  15331. fi
  15332. ac_config_files="$ac_config_files Makefile libmpg123.pc mpg123.spec doc/Makefile src/Makefile src/output/Makefile src/libmpg123/Makefile src/libmpg123/mpg123.h"
  15333. cat >confcache <<\_ACEOF
  15334. # This file is a shell script that caches the results of configure
  15335. # tests run on this system so they can be shared between configure
  15336. # scripts and configure runs, see configure's option --config-cache.
  15337. # It is not useful on other systems. If it contains results you don't
  15338. # want to keep, you may remove or edit it.
  15339. #
  15340. # config.status only pays attention to the cache file if you give it
  15341. # the --recheck option to rerun configure.
  15342. #
  15343. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15344. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15345. # following values.
  15346. _ACEOF
  15347. # The following way of writing the cache mishandles newlines in values,
  15348. # but we know of no workaround that is simple, portable, and efficient.
  15349. # So, we kill variables containing newlines.
  15350. # Ultrix sh set writes to stderr and can't be redirected directly,
  15351. # and sets the high bit in the cache file unless we assign to the vars.
  15352. (
  15353. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15354. eval ac_val=\$$ac_var
  15355. case $ac_val in #(
  15356. *${as_nl}*)
  15357. case $ac_var in #(
  15358. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15359. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15360. esac
  15361. case $ac_var in #(
  15362. _ | IFS | as_nl) ;; #(
  15363. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15364. *) { eval $ac_var=; unset $ac_var;} ;;
  15365. esac ;;
  15366. esac
  15367. done
  15368. (set) 2>&1 |
  15369. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15370. *${as_nl}ac_space=\ *)
  15371. # `set' does not quote correctly, so add quotes: double-quote
  15372. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15373. sed -n \
  15374. "s/'/'\\\\''/g;
  15375. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15376. ;; #(
  15377. *)
  15378. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15379. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15380. ;;
  15381. esac |
  15382. sort
  15383. ) |
  15384. sed '
  15385. /^ac_cv_env_/b end
  15386. t clear
  15387. :clear
  15388. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15389. t end
  15390. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15391. :end' >>confcache
  15392. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15393. if test -w "$cache_file"; then
  15394. if test "x$cache_file" != "x/dev/null"; then
  15395. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15396. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15397. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15398. cat confcache >"$cache_file"
  15399. else
  15400. case $cache_file in #(
  15401. */* | ?:*)
  15402. mv -f confcache "$cache_file"$$ &&
  15403. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15404. *)
  15405. mv -f confcache "$cache_file" ;;
  15406. esac
  15407. fi
  15408. fi
  15409. else
  15410. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15411. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15412. fi
  15413. fi
  15414. rm -f confcache
  15415. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15416. # Let make expand exec_prefix.
  15417. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15418. DEFS=-DHAVE_CONFIG_H
  15419. ac_libobjs=
  15420. ac_ltlibobjs=
  15421. U=
  15422. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15423. # 1. Remove the extension, and $U if already installed.
  15424. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15425. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15426. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15427. # will be set to the directory where LIBOBJS objects are built.
  15428. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15429. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15430. done
  15431. LIBOBJS=$ac_libobjs
  15432. LTLIBOBJS=$ac_ltlibobjs
  15433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  15434. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  15435. if test -n "$am_sleep_pid"; then
  15436. # Hide warnings about reused PIDs.
  15437. wait $am_sleep_pid 2>/dev/null
  15438. fi
  15439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  15440. $as_echo "done" >&6; }
  15441. if test -n "$EXEEXT"; then
  15442. am__EXEEXT_TRUE=
  15443. am__EXEEXT_FALSE='#'
  15444. else
  15445. am__EXEEXT_TRUE='#'
  15446. am__EXEEXT_FALSE=
  15447. fi
  15448. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15449. as_fn_error $? "conditional \"AMDEP\" was never defined.
  15450. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15451. fi
  15452. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15453. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15454. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15455. fi
  15456. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  15457. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  15458. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15459. fi
  15460. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15461. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15462. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15463. fi
  15464. if test -z "${HAVE_MODULES_TRUE}" && test -z "${HAVE_MODULES_FALSE}"; then
  15465. as_fn_error $? "conditional \"HAVE_MODULES\" was never defined.
  15466. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15467. fi
  15468. if test -z "${HAVE_ALSA_TRUE}" && test -z "${HAVE_ALSA_FALSE}"; then
  15469. as_fn_error $? "conditional \"HAVE_ALSA\" was never defined.
  15470. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15471. fi
  15472. if test -z "${HAVE_QSA_TRUE}" && test -z "${HAVE_QSA_FALSE}"; then
  15473. as_fn_error $? "conditional \"HAVE_QSA\" was never defined.
  15474. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15475. fi
  15476. if test -z "${HAVE_OSS_TRUE}" && test -z "${HAVE_OSS_FALSE}"; then
  15477. as_fn_error $? "conditional \"HAVE_OSS\" was never defined.
  15478. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15479. fi
  15480. if test -z "${HAVE_COREAUDIO_TRUE}" && test -z "${HAVE_COREAUDIO_FALSE}"; then
  15481. as_fn_error $? "conditional \"HAVE_COREAUDIO\" was never defined.
  15482. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15483. fi
  15484. if test -z "${HAVE_SNDIO_TRUE}" && test -z "${HAVE_SNDIO_FALSE}"; then
  15485. as_fn_error $? "conditional \"HAVE_SNDIO\" was never defined.
  15486. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15487. fi
  15488. if test -z "${HAVE_SUN_TRUE}" && test -z "${HAVE_SUN_FALSE}"; then
  15489. as_fn_error $? "conditional \"HAVE_SUN\" was never defined.
  15490. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15491. fi
  15492. if test -z "${HAVE_WIN32_TRUE}" && test -z "${HAVE_WIN32_FALSE}"; then
  15493. as_fn_error $? "conditional \"HAVE_WIN32\" was never defined.
  15494. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15495. fi
  15496. if test -z "${HAVE_ESD_TRUE}" && test -z "${HAVE_ESD_FALSE}"; then
  15497. as_fn_error $? "conditional \"HAVE_ESD\" was never defined.
  15498. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15499. fi
  15500. if test -z "${HAVE_JACK_TRUE}" && test -z "${HAVE_JACK_FALSE}"; then
  15501. as_fn_error $? "conditional \"HAVE_JACK\" was never defined.
  15502. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15503. fi
  15504. if test -z "${HAVE_PORTAUDIO_TRUE}" && test -z "${HAVE_PORTAUDIO_FALSE}"; then
  15505. as_fn_error $? "conditional \"HAVE_PORTAUDIO\" was never defined.
  15506. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15507. fi
  15508. if test -z "${HAVE_PULSE_TRUE}" && test -z "${HAVE_PULSE_FALSE}"; then
  15509. as_fn_error $? "conditional \"HAVE_PULSE\" was never defined.
  15510. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15511. fi
  15512. if test -z "${HAVE_SDL_TRUE}" && test -z "${HAVE_SDL_FALSE}"; then
  15513. as_fn_error $? "conditional \"HAVE_SDL\" was never defined.
  15514. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15515. fi
  15516. if test -z "${HAVE_NAS_TRUE}" && test -z "${HAVE_NAS_FALSE}"; then
  15517. as_fn_error $? "conditional \"HAVE_NAS\" was never defined.
  15518. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15519. fi
  15520. if test -z "${HAVE_AIX_TRUE}" && test -z "${HAVE_AIX_FALSE}"; then
  15521. as_fn_error $? "conditional \"HAVE_AIX\" was never defined.
  15522. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15523. fi
  15524. if test -z "${HAVE_ALIB_TRUE}" && test -z "${HAVE_ALIB_FALSE}"; then
  15525. as_fn_error $? "conditional \"HAVE_ALIB\" was never defined.
  15526. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15527. fi
  15528. if test -z "${HAVE_ARTS_TRUE}" && test -z "${HAVE_ARTS_FALSE}"; then
  15529. as_fn_error $? "conditional \"HAVE_ARTS\" was never defined.
  15530. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15531. fi
  15532. if test -z "${HAVE_HP_TRUE}" && test -z "${HAVE_HP_FALSE}"; then
  15533. as_fn_error $? "conditional \"HAVE_HP\" was never defined.
  15534. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15535. fi
  15536. if test -z "${HAVE_OS2_TRUE}" && test -z "${HAVE_OS2_FALSE}"; then
  15537. as_fn_error $? "conditional \"HAVE_OS2\" was never defined.
  15538. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15539. fi
  15540. if test -z "${HAVE_SGI_TRUE}" && test -z "${HAVE_SGI_FALSE}"; then
  15541. as_fn_error $? "conditional \"HAVE_SGI\" was never defined.
  15542. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15543. fi
  15544. if test -z "${HAVE_MINT_TRUE}" && test -z "${HAVE_MINT_FALSE}"; then
  15545. as_fn_error $? "conditional \"HAVE_MINT\" was never defined.
  15546. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15547. fi
  15548. if test -z "${HAVE_OPENAL_TRUE}" && test -z "${HAVE_OPENAL_FALSE}"; then
  15549. as_fn_error $? "conditional \"HAVE_OPENAL\" was never defined.
  15550. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15551. fi
  15552. if test -z "${HAVE_DUMMY_TRUE}" && test -z "${HAVE_DUMMY_FALSE}"; then
  15553. as_fn_error $? "conditional \"HAVE_DUMMY\" was never defined.
  15554. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15555. fi
  15556. if test -z "${WIN32_CODES_TRUE}" && test -z "${WIN32_CODES_FALSE}"; then
  15557. as_fn_error $? "conditional \"WIN32_CODES\" was never defined.
  15558. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15559. fi
  15560. : "${CONFIG_STATUS=./config.status}"
  15561. ac_write_fail=0
  15562. ac_clean_files_save=$ac_clean_files
  15563. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15564. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15565. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15566. as_write_fail=0
  15567. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15568. #! $SHELL
  15569. # Generated by $as_me.
  15570. # Run this file to recreate the current configuration.
  15571. # Compiler output produced by configure, useful for debugging
  15572. # configure, is in config.log if it exists.
  15573. debug=false
  15574. ac_cs_recheck=false
  15575. ac_cs_silent=false
  15576. SHELL=\${CONFIG_SHELL-$SHELL}
  15577. export SHELL
  15578. _ASEOF
  15579. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15580. ## -------------------- ##
  15581. ## M4sh Initialization. ##
  15582. ## -------------------- ##
  15583. # Be more Bourne compatible
  15584. DUALCASE=1; export DUALCASE # for MKS sh
  15585. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15586. emulate sh
  15587. NULLCMD=:
  15588. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15589. # is contrary to our usage. Disable this feature.
  15590. alias -g '${1+"$@"}'='"$@"'
  15591. setopt NO_GLOB_SUBST
  15592. else
  15593. case `(set -o) 2>/dev/null` in #(
  15594. *posix*) :
  15595. set -o posix ;; #(
  15596. *) :
  15597. ;;
  15598. esac
  15599. fi
  15600. as_nl='
  15601. '
  15602. export as_nl
  15603. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15604. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15605. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15606. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15607. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15608. # but without wasting forks for bash or zsh.
  15609. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15610. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15611. as_echo='print -r --'
  15612. as_echo_n='print -rn --'
  15613. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15614. as_echo='printf %s\n'
  15615. as_echo_n='printf %s'
  15616. else
  15617. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15618. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15619. as_echo_n='/usr/ucb/echo -n'
  15620. else
  15621. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15622. as_echo_n_body='eval
  15623. arg=$1;
  15624. case $arg in #(
  15625. *"$as_nl"*)
  15626. expr "X$arg" : "X\\(.*\\)$as_nl";
  15627. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15628. esac;
  15629. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15630. '
  15631. export as_echo_n_body
  15632. as_echo_n='sh -c $as_echo_n_body as_echo'
  15633. fi
  15634. export as_echo_body
  15635. as_echo='sh -c $as_echo_body as_echo'
  15636. fi
  15637. # The user is always right.
  15638. if test "${PATH_SEPARATOR+set}" != set; then
  15639. PATH_SEPARATOR=:
  15640. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15641. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15642. PATH_SEPARATOR=';'
  15643. }
  15644. fi
  15645. # IFS
  15646. # We need space, tab and new line, in precisely that order. Quoting is
  15647. # there to prevent editors from complaining about space-tab.
  15648. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15649. # splitting by setting IFS to empty value.)
  15650. IFS=" "" $as_nl"
  15651. # Find who we are. Look in the path if we contain no directory separator.
  15652. as_myself=
  15653. case $0 in #((
  15654. *[\\/]* ) as_myself=$0 ;;
  15655. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15656. for as_dir in $PATH
  15657. do
  15658. IFS=$as_save_IFS
  15659. test -z "$as_dir" && as_dir=.
  15660. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15661. done
  15662. IFS=$as_save_IFS
  15663. ;;
  15664. esac
  15665. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15666. # in which case we are not to be found in the path.
  15667. if test "x$as_myself" = x; then
  15668. as_myself=$0
  15669. fi
  15670. if test ! -f "$as_myself"; then
  15671. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15672. exit 1
  15673. fi
  15674. # Unset variables that we do not need and which cause bugs (e.g. in
  15675. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15676. # suppresses any "Segmentation fault" message there. '((' could
  15677. # trigger a bug in pdksh 5.2.14.
  15678. for as_var in BASH_ENV ENV MAIL MAILPATH
  15679. do eval test x\${$as_var+set} = xset \
  15680. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15681. done
  15682. PS1='$ '
  15683. PS2='> '
  15684. PS4='+ '
  15685. # NLS nuisances.
  15686. LC_ALL=C
  15687. export LC_ALL
  15688. LANGUAGE=C
  15689. export LANGUAGE
  15690. # CDPATH.
  15691. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15692. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  15693. # ----------------------------------------
  15694. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15695. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15696. # script with STATUS, using 1 if that was 0.
  15697. as_fn_error ()
  15698. {
  15699. as_status=$1; test $as_status -eq 0 && as_status=1
  15700. if test "$4"; then
  15701. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15702. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  15703. fi
  15704. $as_echo "$as_me: error: $2" >&2
  15705. as_fn_exit $as_status
  15706. } # as_fn_error
  15707. # as_fn_set_status STATUS
  15708. # -----------------------
  15709. # Set $? to STATUS, without forking.
  15710. as_fn_set_status ()
  15711. {
  15712. return $1
  15713. } # as_fn_set_status
  15714. # as_fn_exit STATUS
  15715. # -----------------
  15716. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15717. as_fn_exit ()
  15718. {
  15719. set +e
  15720. as_fn_set_status $1
  15721. exit $1
  15722. } # as_fn_exit
  15723. # as_fn_unset VAR
  15724. # ---------------
  15725. # Portably unset VAR.
  15726. as_fn_unset ()
  15727. {
  15728. { eval $1=; unset $1;}
  15729. }
  15730. as_unset=as_fn_unset
  15731. # as_fn_append VAR VALUE
  15732. # ----------------------
  15733. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15734. # advantage of any shell optimizations that allow amortized linear growth over
  15735. # repeated appends, instead of the typical quadratic growth present in naive
  15736. # implementations.
  15737. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15738. eval 'as_fn_append ()
  15739. {
  15740. eval $1+=\$2
  15741. }'
  15742. else
  15743. as_fn_append ()
  15744. {
  15745. eval $1=\$$1\$2
  15746. }
  15747. fi # as_fn_append
  15748. # as_fn_arith ARG...
  15749. # ------------------
  15750. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15751. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15752. # must be portable across $(()) and expr.
  15753. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15754. eval 'as_fn_arith ()
  15755. {
  15756. as_val=$(( $* ))
  15757. }'
  15758. else
  15759. as_fn_arith ()
  15760. {
  15761. as_val=`expr "$@" || test $? -eq 1`
  15762. }
  15763. fi # as_fn_arith
  15764. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15765. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15766. as_expr=expr
  15767. else
  15768. as_expr=false
  15769. fi
  15770. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15771. as_basename=basename
  15772. else
  15773. as_basename=false
  15774. fi
  15775. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15776. as_dirname=dirname
  15777. else
  15778. as_dirname=false
  15779. fi
  15780. as_me=`$as_basename -- "$0" ||
  15781. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15782. X"$0" : 'X\(//\)$' \| \
  15783. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15784. $as_echo X/"$0" |
  15785. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15786. s//\1/
  15787. q
  15788. }
  15789. /^X\/\(\/\/\)$/{
  15790. s//\1/
  15791. q
  15792. }
  15793. /^X\/\(\/\).*/{
  15794. s//\1/
  15795. q
  15796. }
  15797. s/.*/./; q'`
  15798. # Avoid depending upon Character Ranges.
  15799. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15800. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15801. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15802. as_cr_digits='0123456789'
  15803. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15804. ECHO_C= ECHO_N= ECHO_T=
  15805. case `echo -n x` in #(((((
  15806. -n*)
  15807. case `echo 'xy\c'` in
  15808. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15809. xy) ECHO_C='\c';;
  15810. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15811. ECHO_T=' ';;
  15812. esac;;
  15813. *)
  15814. ECHO_N='-n';;
  15815. esac
  15816. rm -f conf$$ conf$$.exe conf$$.file
  15817. if test -d conf$$.dir; then
  15818. rm -f conf$$.dir/conf$$.file
  15819. else
  15820. rm -f conf$$.dir
  15821. mkdir conf$$.dir 2>/dev/null
  15822. fi
  15823. if (echo >conf$$.file) 2>/dev/null; then
  15824. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15825. as_ln_s='ln -s'
  15826. # ... but there are two gotchas:
  15827. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15828. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15829. # In both cases, we have to default to `cp -pR'.
  15830. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15831. as_ln_s='cp -pR'
  15832. elif ln conf$$.file conf$$ 2>/dev/null; then
  15833. as_ln_s=ln
  15834. else
  15835. as_ln_s='cp -pR'
  15836. fi
  15837. else
  15838. as_ln_s='cp -pR'
  15839. fi
  15840. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15841. rmdir conf$$.dir 2>/dev/null
  15842. # as_fn_mkdir_p
  15843. # -------------
  15844. # Create "$as_dir" as a directory, including parents if necessary.
  15845. as_fn_mkdir_p ()
  15846. {
  15847. case $as_dir in #(
  15848. -*) as_dir=./$as_dir;;
  15849. esac
  15850. test -d "$as_dir" || eval $as_mkdir_p || {
  15851. as_dirs=
  15852. while :; do
  15853. case $as_dir in #(
  15854. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15855. *) as_qdir=$as_dir;;
  15856. esac
  15857. as_dirs="'$as_qdir' $as_dirs"
  15858. as_dir=`$as_dirname -- "$as_dir" ||
  15859. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15860. X"$as_dir" : 'X\(//\)[^/]' \| \
  15861. X"$as_dir" : 'X\(//\)$' \| \
  15862. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15863. $as_echo X"$as_dir" |
  15864. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15865. s//\1/
  15866. q
  15867. }
  15868. /^X\(\/\/\)[^/].*/{
  15869. s//\1/
  15870. q
  15871. }
  15872. /^X\(\/\/\)$/{
  15873. s//\1/
  15874. q
  15875. }
  15876. /^X\(\/\).*/{
  15877. s//\1/
  15878. q
  15879. }
  15880. s/.*/./; q'`
  15881. test -d "$as_dir" && break
  15882. done
  15883. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15884. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15885. } # as_fn_mkdir_p
  15886. if mkdir -p . 2>/dev/null; then
  15887. as_mkdir_p='mkdir -p "$as_dir"'
  15888. else
  15889. test -d ./-p && rmdir ./-p
  15890. as_mkdir_p=false
  15891. fi
  15892. # as_fn_executable_p FILE
  15893. # -----------------------
  15894. # Test if FILE is an executable regular file.
  15895. as_fn_executable_p ()
  15896. {
  15897. test -f "$1" && test -x "$1"
  15898. } # as_fn_executable_p
  15899. as_test_x='test -x'
  15900. as_executable_p=as_fn_executable_p
  15901. # Sed expression to map a string onto a valid CPP name.
  15902. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15903. # Sed expression to map a string onto a valid variable name.
  15904. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15905. exec 6>&1
  15906. ## ----------------------------------- ##
  15907. ## Main body of $CONFIG_STATUS script. ##
  15908. ## ----------------------------------- ##
  15909. _ASEOF
  15910. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15911. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15912. # Save the log message, to keep $0 and so on meaningful, and to
  15913. # report actual input values of CONFIG_FILES etc. instead of their
  15914. # values after options handling.
  15915. ac_log="
  15916. This file was extended by mpg123 $as_me 1.15.3, which was
  15917. generated by GNU Autoconf 2.69. Invocation command line was
  15918. CONFIG_FILES = $CONFIG_FILES
  15919. CONFIG_HEADERS = $CONFIG_HEADERS
  15920. CONFIG_LINKS = $CONFIG_LINKS
  15921. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15922. $ $0 $@
  15923. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15924. "
  15925. _ACEOF
  15926. case $ac_config_files in *"
  15927. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15928. esac
  15929. case $ac_config_headers in *"
  15930. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15931. esac
  15932. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15933. # Files that config.status was made for.
  15934. config_files="$ac_config_files"
  15935. config_headers="$ac_config_headers"
  15936. config_commands="$ac_config_commands"
  15937. _ACEOF
  15938. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15939. ac_cs_usage="\
  15940. \`$as_me' instantiates files and other configuration actions
  15941. from templates according to the current configuration. Unless the files
  15942. and actions are specified as TAGs, all are instantiated by default.
  15943. Usage: $0 [OPTION]... [TAG]...
  15944. -h, --help print this help, then exit
  15945. -V, --version print version number and configuration settings, then exit
  15946. --config print configuration, then exit
  15947. -q, --quiet, --silent
  15948. do not print progress messages
  15949. -d, --debug don't remove temporary files
  15950. --recheck update $as_me by reconfiguring in the same conditions
  15951. --file=FILE[:TEMPLATE]
  15952. instantiate the configuration file FILE
  15953. --header=FILE[:TEMPLATE]
  15954. instantiate the configuration header FILE
  15955. Configuration files:
  15956. $config_files
  15957. Configuration headers:
  15958. $config_headers
  15959. Configuration commands:
  15960. $config_commands
  15961. Report bugs to <[email protected]>."
  15962. _ACEOF
  15963. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15964. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15965. ac_cs_version="\\
  15966. mpg123 config.status 1.15.3
  15967. configured by $0, generated by GNU Autoconf 2.69,
  15968. with options \\"\$ac_cs_config\\"
  15969. Copyright (C) 2012 Free Software Foundation, Inc.
  15970. This config.status script is free software; the Free Software Foundation
  15971. gives unlimited permission to copy, distribute and modify it."
  15972. ac_pwd='$ac_pwd'
  15973. srcdir='$srcdir'
  15974. INSTALL='$INSTALL'
  15975. MKDIR_P='$MKDIR_P'
  15976. AWK='$AWK'
  15977. test -n "\$AWK" || AWK=awk
  15978. _ACEOF
  15979. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15980. # The default lists apply if the user does not specify any file.
  15981. ac_need_defaults=:
  15982. while test $# != 0
  15983. do
  15984. case $1 in
  15985. --*=?*)
  15986. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15987. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15988. ac_shift=:
  15989. ;;
  15990. --*=)
  15991. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15992. ac_optarg=
  15993. ac_shift=:
  15994. ;;
  15995. *)
  15996. ac_option=$1
  15997. ac_optarg=$2
  15998. ac_shift=shift
  15999. ;;
  16000. esac
  16001. case $ac_option in
  16002. # Handling of the options.
  16003. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16004. ac_cs_recheck=: ;;
  16005. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16006. $as_echo "$ac_cs_version"; exit ;;
  16007. --config | --confi | --conf | --con | --co | --c )
  16008. $as_echo "$ac_cs_config"; exit ;;
  16009. --debug | --debu | --deb | --de | --d | -d )
  16010. debug=: ;;
  16011. --file | --fil | --fi | --f )
  16012. $ac_shift
  16013. case $ac_optarg in
  16014. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16015. '') as_fn_error $? "missing file argument" ;;
  16016. esac
  16017. as_fn_append CONFIG_FILES " '$ac_optarg'"
  16018. ac_need_defaults=false;;
  16019. --header | --heade | --head | --hea )
  16020. $ac_shift
  16021. case $ac_optarg in
  16022. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16023. esac
  16024. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  16025. ac_need_defaults=false;;
  16026. --he | --h)
  16027. # Conflict between --help and --header
  16028. as_fn_error $? "ambiguous option: \`$1'
  16029. Try \`$0 --help' for more information.";;
  16030. --help | --hel | -h )
  16031. $as_echo "$ac_cs_usage"; exit ;;
  16032. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16033. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16034. ac_cs_silent=: ;;
  16035. # This is an error.
  16036. -*) as_fn_error $? "unrecognized option: \`$1'
  16037. Try \`$0 --help' for more information." ;;
  16038. *) as_fn_append ac_config_targets " $1"
  16039. ac_need_defaults=false ;;
  16040. esac
  16041. shift
  16042. done
  16043. ac_configure_extra_args=
  16044. if $ac_cs_silent; then
  16045. exec 6>/dev/null
  16046. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16047. fi
  16048. _ACEOF
  16049. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16050. if \$ac_cs_recheck; then
  16051. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16052. shift
  16053. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16054. CONFIG_SHELL='$SHELL'
  16055. export CONFIG_SHELL
  16056. exec "\$@"
  16057. fi
  16058. _ACEOF
  16059. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16060. exec 5>>config.log
  16061. {
  16062. echo
  16063. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16064. ## Running $as_me. ##
  16065. _ASBOX
  16066. $as_echo "$ac_log"
  16067. } >&5
  16068. _ACEOF
  16069. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16070. #
  16071. # INIT-COMMANDS
  16072. #
  16073. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16074. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16075. # if CDPATH is set.
  16076. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16077. sed_quote_subst='$sed_quote_subst'
  16078. double_quote_subst='$double_quote_subst'
  16079. delay_variable_subst='$delay_variable_subst'
  16080. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  16081. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  16082. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  16083. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  16084. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  16085. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  16086. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  16087. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  16088. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  16089. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  16090. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  16091. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  16092. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  16093. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  16094. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  16095. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  16096. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  16097. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  16098. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  16099. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  16100. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  16101. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  16102. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  16103. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  16104. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  16105. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  16106. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  16107. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  16108. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  16109. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  16110. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  16111. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  16112. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  16113. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  16114. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  16115. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  16116. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  16117. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  16118. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  16119. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  16120. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  16121. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  16122. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  16123. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  16124. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  16125. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  16126. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16127. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16128. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  16129. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  16130. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  16131. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  16132. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  16133. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  16134. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  16135. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  16136. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  16137. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  16138. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  16139. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  16140. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  16141. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  16142. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  16143. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  16144. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  16145. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  16146. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  16147. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  16148. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  16149. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  16150. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  16151. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  16152. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  16153. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  16154. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  16155. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  16156. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16157. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  16158. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  16159. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  16160. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  16161. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  16162. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  16163. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16164. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  16165. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16166. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  16167. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16168. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  16169. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16170. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16171. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  16172. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  16173. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  16174. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  16175. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  16176. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16177. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  16178. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  16179. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  16180. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  16181. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  16182. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  16183. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  16184. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  16185. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  16186. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  16187. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  16188. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  16189. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  16190. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  16191. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  16192. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16193. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  16194. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  16195. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  16196. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  16197. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  16198. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16199. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16200. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  16201. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  16202. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  16203. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  16204. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  16205. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  16206. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  16207. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  16208. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  16209. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  16210. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  16211. LTCC='$LTCC'
  16212. LTCFLAGS='$LTCFLAGS'
  16213. compiler='$compiler_DEFAULT'
  16214. # A function that is used when there is no print builtin or printf.
  16215. func_fallback_echo ()
  16216. {
  16217. eval 'cat <<_LTECHO_EOF
  16218. \$1
  16219. _LTECHO_EOF'
  16220. }
  16221. # Quote evaled strings.
  16222. for var in AS \
  16223. DLLTOOL \
  16224. OBJDUMP \
  16225. SHELL \
  16226. ECHO \
  16227. PATH_SEPARATOR \
  16228. SED \
  16229. GREP \
  16230. EGREP \
  16231. FGREP \
  16232. LD \
  16233. NM \
  16234. LN_S \
  16235. lt_SP2NL \
  16236. lt_NL2SP \
  16237. reload_flag \
  16238. deplibs_check_method \
  16239. file_magic_cmd \
  16240. file_magic_glob \
  16241. want_nocaseglob \
  16242. sharedlib_from_linklib_cmd \
  16243. AR \
  16244. AR_FLAGS \
  16245. archiver_list_spec \
  16246. STRIP \
  16247. RANLIB \
  16248. CC \
  16249. CFLAGS \
  16250. compiler \
  16251. lt_cv_sys_global_symbol_pipe \
  16252. lt_cv_sys_global_symbol_to_cdecl \
  16253. lt_cv_sys_global_symbol_to_c_name_address \
  16254. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16255. nm_file_list_spec \
  16256. lt_prog_compiler_no_builtin_flag \
  16257. lt_prog_compiler_pic \
  16258. lt_prog_compiler_wl \
  16259. lt_prog_compiler_static \
  16260. lt_cv_prog_compiler_c_o \
  16261. need_locks \
  16262. MANIFEST_TOOL \
  16263. DSYMUTIL \
  16264. NMEDIT \
  16265. LIPO \
  16266. OTOOL \
  16267. OTOOL64 \
  16268. shrext_cmds \
  16269. export_dynamic_flag_spec \
  16270. whole_archive_flag_spec \
  16271. compiler_needs_object \
  16272. with_gnu_ld \
  16273. allow_undefined_flag \
  16274. no_undefined_flag \
  16275. hardcode_libdir_flag_spec \
  16276. hardcode_libdir_separator \
  16277. exclude_expsyms \
  16278. include_expsyms \
  16279. file_list_spec \
  16280. variables_saved_for_relink \
  16281. libname_spec \
  16282. library_names_spec \
  16283. soname_spec \
  16284. install_override_mode \
  16285. finish_eval \
  16286. old_striplib \
  16287. striplib; do
  16288. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16289. *[\\\\\\\`\\"\\\$]*)
  16290. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  16291. ;;
  16292. *)
  16293. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16294. ;;
  16295. esac
  16296. done
  16297. # Double-quote double-evaled strings.
  16298. for var in reload_cmds \
  16299. old_postinstall_cmds \
  16300. old_postuninstall_cmds \
  16301. old_archive_cmds \
  16302. extract_expsyms_cmds \
  16303. old_archive_from_new_cmds \
  16304. old_archive_from_expsyms_cmds \
  16305. archive_cmds \
  16306. archive_expsym_cmds \
  16307. module_cmds \
  16308. module_expsym_cmds \
  16309. export_symbols_cmds \
  16310. prelink_cmds \
  16311. postlink_cmds \
  16312. postinstall_cmds \
  16313. postuninstall_cmds \
  16314. finish_cmds \
  16315. sys_lib_search_path_spec \
  16316. sys_lib_dlsearch_path_spec; do
  16317. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16318. *[\\\\\\\`\\"\\\$]*)
  16319. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  16320. ;;
  16321. *)
  16322. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16323. ;;
  16324. esac
  16325. done
  16326. ac_aux_dir='$ac_aux_dir'
  16327. xsi_shell='$xsi_shell'
  16328. lt_shell_append='$lt_shell_append'
  16329. # See if we are running on zsh, and set the options which allow our
  16330. # commands through without removal of \ escapes INIT.
  16331. if test -n "\${ZSH_VERSION+set}" ; then
  16332. setopt NO_GLOB_SUBST
  16333. fi
  16334. PACKAGE='$PACKAGE'
  16335. VERSION='$VERSION'
  16336. TIMESTAMP='$TIMESTAMP'
  16337. RM='$RM'
  16338. ofile='$ofile'
  16339. _ACEOF
  16340. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16341. # Handling of arguments.
  16342. for ac_config_target in $ac_config_targets
  16343. do
  16344. case $ac_config_target in
  16345. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  16346. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16347. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16348. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16349. "libmpg123.pc") CONFIG_FILES="$CONFIG_FILES libmpg123.pc" ;;
  16350. "mpg123.spec") CONFIG_FILES="$CONFIG_FILES mpg123.spec" ;;
  16351. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  16352. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  16353. "src/output/Makefile") CONFIG_FILES="$CONFIG_FILES src/output/Makefile" ;;
  16354. "src/libmpg123/Makefile") CONFIG_FILES="$CONFIG_FILES src/libmpg123/Makefile" ;;
  16355. "src/libmpg123/mpg123.h") CONFIG_FILES="$CONFIG_FILES src/libmpg123/mpg123.h" ;;
  16356. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16357. esac
  16358. done
  16359. # If the user did not use the arguments to specify the items to instantiate,
  16360. # then the envvar interface is used. Set only those that are not.
  16361. # We use the long form for the default assignment because of an extremely
  16362. # bizarre bug on SunOS 4.1.3.
  16363. if $ac_need_defaults; then
  16364. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16365. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  16366. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16367. fi
  16368. # Have a temporary directory for convenience. Make it in the build tree
  16369. # simply because there is no reason against having it here, and in addition,
  16370. # creating and moving files from /tmp can sometimes cause problems.
  16371. # Hook for its removal unless debugging.
  16372. # Note that there is a small window in which the directory will not be cleaned:
  16373. # after its creation but before its name has been assigned to `$tmp'.
  16374. $debug ||
  16375. {
  16376. tmp= ac_tmp=
  16377. trap 'exit_status=$?
  16378. : "${ac_tmp:=$tmp}"
  16379. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16380. ' 0
  16381. trap 'as_fn_exit 1' 1 2 13 15
  16382. }
  16383. # Create a (secure) tmp directory for tmp files.
  16384. {
  16385. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16386. test -d "$tmp"
  16387. } ||
  16388. {
  16389. tmp=./conf$$-$RANDOM
  16390. (umask 077 && mkdir "$tmp")
  16391. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16392. ac_tmp=$tmp
  16393. # Set up the scripts for CONFIG_FILES section.
  16394. # No need to generate them if there are no CONFIG_FILES.
  16395. # This happens for instance with `./config.status config.h'.
  16396. if test -n "$CONFIG_FILES"; then
  16397. ac_cr=`echo X | tr X '\015'`
  16398. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16399. # But we know of no other shell where ac_cr would be empty at this
  16400. # point, so we can use a bashism as a fallback.
  16401. if test "x$ac_cr" = x; then
  16402. eval ac_cr=\$\'\\r\'
  16403. fi
  16404. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16405. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16406. ac_cs_awk_cr='\\r'
  16407. else
  16408. ac_cs_awk_cr=$ac_cr
  16409. fi
  16410. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16411. _ACEOF
  16412. {
  16413. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16414. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16415. echo "_ACEOF"
  16416. } >conf$$subs.sh ||
  16417. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16418. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16419. ac_delim='%!_!# '
  16420. for ac_last_try in false false false false false :; do
  16421. . ./conf$$subs.sh ||
  16422. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16423. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16424. if test $ac_delim_n = $ac_delim_num; then
  16425. break
  16426. elif $ac_last_try; then
  16427. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16428. else
  16429. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16430. fi
  16431. done
  16432. rm -f conf$$subs.sh
  16433. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16434. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16435. _ACEOF
  16436. sed -n '
  16437. h
  16438. s/^/S["/; s/!.*/"]=/
  16439. p
  16440. g
  16441. s/^[^!]*!//
  16442. :repl
  16443. t repl
  16444. s/'"$ac_delim"'$//
  16445. t delim
  16446. :nl
  16447. h
  16448. s/\(.\{148\}\)..*/\1/
  16449. t more1
  16450. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16451. p
  16452. n
  16453. b repl
  16454. :more1
  16455. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16456. p
  16457. g
  16458. s/.\{148\}//
  16459. t nl
  16460. :delim
  16461. h
  16462. s/\(.\{148\}\)..*/\1/
  16463. t more2
  16464. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16465. p
  16466. b
  16467. :more2
  16468. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16469. p
  16470. g
  16471. s/.\{148\}//
  16472. t delim
  16473. ' <conf$$subs.awk | sed '
  16474. /^[^""]/{
  16475. N
  16476. s/\n//
  16477. }
  16478. ' >>$CONFIG_STATUS || ac_write_fail=1
  16479. rm -f conf$$subs.awk
  16480. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16481. _ACAWK
  16482. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16483. for (key in S) S_is_set[key] = 1
  16484. FS = ""
  16485. }
  16486. {
  16487. line = $ 0
  16488. nfields = split(line, field, "@")
  16489. substed = 0
  16490. len = length(field[1])
  16491. for (i = 2; i < nfields; i++) {
  16492. key = field[i]
  16493. keylen = length(key)
  16494. if (S_is_set[key]) {
  16495. value = S[key]
  16496. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16497. len += length(value) + length(field[++i])
  16498. substed = 1
  16499. } else
  16500. len += 1 + keylen
  16501. }
  16502. print line
  16503. }
  16504. _ACAWK
  16505. _ACEOF
  16506. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16507. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16508. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16509. else
  16510. cat
  16511. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16512. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16513. _ACEOF
  16514. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16515. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16516. # trailing colons and then remove the whole line if VPATH becomes empty
  16517. # (actually we leave an empty line to preserve line numbers).
  16518. if test "x$srcdir" = x.; then
  16519. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16520. h
  16521. s///
  16522. s/^/:/
  16523. s/[ ]*$/:/
  16524. s/:\$(srcdir):/:/g
  16525. s/:\${srcdir}:/:/g
  16526. s/:@srcdir@:/:/g
  16527. s/^:*//
  16528. s/:*$//
  16529. x
  16530. s/\(=[ ]*\).*/\1/
  16531. G
  16532. s/\n//
  16533. s/^[^=]*=[ ]*$//
  16534. }'
  16535. fi
  16536. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16537. fi # test -n "$CONFIG_FILES"
  16538. # Set up the scripts for CONFIG_HEADERS section.
  16539. # No need to generate them if there are no CONFIG_HEADERS.
  16540. # This happens for instance with `./config.status Makefile'.
  16541. if test -n "$CONFIG_HEADERS"; then
  16542. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  16543. BEGIN {
  16544. _ACEOF
  16545. # Transform confdefs.h into an awk script `defines.awk', embedded as
  16546. # here-document in config.status, that substitutes the proper values into
  16547. # config.h.in to produce config.h.
  16548. # Create a delimiter string that does not exist in confdefs.h, to ease
  16549. # handling of long lines.
  16550. ac_delim='%!_!# '
  16551. for ac_last_try in false false :; do
  16552. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  16553. if test -z "$ac_tt"; then
  16554. break
  16555. elif $ac_last_try; then
  16556. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  16557. else
  16558. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16559. fi
  16560. done
  16561. # For the awk script, D is an array of macro values keyed by name,
  16562. # likewise P contains macro parameters if any. Preserve backslash
  16563. # newline sequences.
  16564. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  16565. sed -n '
  16566. s/.\{148\}/&'"$ac_delim"'/g
  16567. t rset
  16568. :rset
  16569. s/^[ ]*#[ ]*define[ ][ ]*/ /
  16570. t def
  16571. d
  16572. :def
  16573. s/\\$//
  16574. t bsnl
  16575. s/["\\]/\\&/g
  16576. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16577. D["\1"]=" \3"/p
  16578. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  16579. d
  16580. :bsnl
  16581. s/["\\]/\\&/g
  16582. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16583. D["\1"]=" \3\\\\\\n"\\/p
  16584. t cont
  16585. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  16586. t cont
  16587. d
  16588. :cont
  16589. n
  16590. s/.\{148\}/&'"$ac_delim"'/g
  16591. t clear
  16592. :clear
  16593. s/\\$//
  16594. t bsnlc
  16595. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  16596. d
  16597. :bsnlc
  16598. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  16599. b cont
  16600. ' <confdefs.h | sed '
  16601. s/'"$ac_delim"'/"\\\
  16602. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  16603. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16604. for (key in D) D_is_set[key] = 1
  16605. FS = ""
  16606. }
  16607. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  16608. line = \$ 0
  16609. split(line, arg, " ")
  16610. if (arg[1] == "#") {
  16611. defundef = arg[2]
  16612. mac1 = arg[3]
  16613. } else {
  16614. defundef = substr(arg[1], 2)
  16615. mac1 = arg[2]
  16616. }
  16617. split(mac1, mac2, "(") #)
  16618. macro = mac2[1]
  16619. prefix = substr(line, 1, index(line, defundef) - 1)
  16620. if (D_is_set[macro]) {
  16621. # Preserve the white space surrounding the "#".
  16622. print prefix "define", macro P[macro] D[macro]
  16623. next
  16624. } else {
  16625. # Replace #undef with comments. This is necessary, for example,
  16626. # in the case of _POSIX_SOURCE, which is predefined and required
  16627. # on some systems where configure will not decide to define it.
  16628. if (defundef == "undef") {
  16629. print "/*", prefix defundef, macro, "*/"
  16630. next
  16631. }
  16632. }
  16633. }
  16634. { print }
  16635. _ACAWK
  16636. _ACEOF
  16637. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16638. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  16639. fi # test -n "$CONFIG_HEADERS"
  16640. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  16641. shift
  16642. for ac_tag
  16643. do
  16644. case $ac_tag in
  16645. :[FHLC]) ac_mode=$ac_tag; continue;;
  16646. esac
  16647. case $ac_mode$ac_tag in
  16648. :[FHL]*:*);;
  16649. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16650. :[FH]-) ac_tag=-:-;;
  16651. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16652. esac
  16653. ac_save_IFS=$IFS
  16654. IFS=:
  16655. set x $ac_tag
  16656. IFS=$ac_save_IFS
  16657. shift
  16658. ac_file=$1
  16659. shift
  16660. case $ac_mode in
  16661. :L) ac_source=$1;;
  16662. :[FH])
  16663. ac_file_inputs=
  16664. for ac_f
  16665. do
  16666. case $ac_f in
  16667. -) ac_f="$ac_tmp/stdin";;
  16668. *) # Look for the file first in the build tree, then in the source tree
  16669. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16670. # because $ac_f cannot contain `:'.
  16671. test -f "$ac_f" ||
  16672. case $ac_f in
  16673. [\\/$]*) false;;
  16674. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16675. esac ||
  16676. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16677. esac
  16678. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16679. as_fn_append ac_file_inputs " '$ac_f'"
  16680. done
  16681. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16682. # use $as_me), people would be surprised to read:
  16683. # /* config.h. Generated by config.status. */
  16684. configure_input='Generated from '`
  16685. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16686. `' by configure.'
  16687. if test x"$ac_file" != x-; then
  16688. configure_input="$ac_file. $configure_input"
  16689. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16690. $as_echo "$as_me: creating $ac_file" >&6;}
  16691. fi
  16692. # Neutralize special characters interpreted by sed in replacement strings.
  16693. case $configure_input in #(
  16694. *\&* | *\|* | *\\* )
  16695. ac_sed_conf_input=`$as_echo "$configure_input" |
  16696. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16697. *) ac_sed_conf_input=$configure_input;;
  16698. esac
  16699. case $ac_tag in
  16700. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16701. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16702. esac
  16703. ;;
  16704. esac
  16705. ac_dir=`$as_dirname -- "$ac_file" ||
  16706. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16707. X"$ac_file" : 'X\(//\)[^/]' \| \
  16708. X"$ac_file" : 'X\(//\)$' \| \
  16709. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16710. $as_echo X"$ac_file" |
  16711. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16712. s//\1/
  16713. q
  16714. }
  16715. /^X\(\/\/\)[^/].*/{
  16716. s//\1/
  16717. q
  16718. }
  16719. /^X\(\/\/\)$/{
  16720. s//\1/
  16721. q
  16722. }
  16723. /^X\(\/\).*/{
  16724. s//\1/
  16725. q
  16726. }
  16727. s/.*/./; q'`
  16728. as_dir="$ac_dir"; as_fn_mkdir_p
  16729. ac_builddir=.
  16730. case "$ac_dir" in
  16731. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16732. *)
  16733. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16734. # A ".." for each directory in $ac_dir_suffix.
  16735. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16736. case $ac_top_builddir_sub in
  16737. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16738. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16739. esac ;;
  16740. esac
  16741. ac_abs_top_builddir=$ac_pwd
  16742. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16743. # for backward compatibility:
  16744. ac_top_builddir=$ac_top_build_prefix
  16745. case $srcdir in
  16746. .) # We are building in place.
  16747. ac_srcdir=.
  16748. ac_top_srcdir=$ac_top_builddir_sub
  16749. ac_abs_top_srcdir=$ac_pwd ;;
  16750. [\\/]* | ?:[\\/]* ) # Absolute name.
  16751. ac_srcdir=$srcdir$ac_dir_suffix;
  16752. ac_top_srcdir=$srcdir
  16753. ac_abs_top_srcdir=$srcdir ;;
  16754. *) # Relative name.
  16755. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16756. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16757. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16758. esac
  16759. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16760. case $ac_mode in
  16761. :F)
  16762. #
  16763. # CONFIG_FILE
  16764. #
  16765. case $INSTALL in
  16766. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16767. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16768. esac
  16769. ac_MKDIR_P=$MKDIR_P
  16770. case $MKDIR_P in
  16771. [\\/$]* | ?:[\\/]* ) ;;
  16772. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16773. esac
  16774. _ACEOF
  16775. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16776. # If the template does not know about datarootdir, expand it.
  16777. # FIXME: This hack should be removed a few years after 2.60.
  16778. ac_datarootdir_hack=; ac_datarootdir_seen=
  16779. ac_sed_dataroot='
  16780. /datarootdir/ {
  16781. p
  16782. q
  16783. }
  16784. /@datadir@/p
  16785. /@docdir@/p
  16786. /@infodir@/p
  16787. /@localedir@/p
  16788. /@mandir@/p'
  16789. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16790. *datarootdir*) ac_datarootdir_seen=yes;;
  16791. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16793. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16794. _ACEOF
  16795. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16796. ac_datarootdir_hack='
  16797. s&@datadir@&$datadir&g
  16798. s&@docdir@&$docdir&g
  16799. s&@infodir@&$infodir&g
  16800. s&@localedir@&$localedir&g
  16801. s&@mandir@&$mandir&g
  16802. s&\\\${datarootdir}&$datarootdir&g' ;;
  16803. esac
  16804. _ACEOF
  16805. # Neutralize VPATH when `$srcdir' = `.'.
  16806. # Shell code in configure.ac might set extrasub.
  16807. # FIXME: do we really want to maintain this feature?
  16808. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16809. ac_sed_extra="$ac_vpsub
  16810. $extrasub
  16811. _ACEOF
  16812. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16813. :t
  16814. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16815. s|@configure_input@|$ac_sed_conf_input|;t t
  16816. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16817. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16818. s&@srcdir@&$ac_srcdir&;t t
  16819. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16820. s&@top_srcdir@&$ac_top_srcdir&;t t
  16821. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16822. s&@builddir@&$ac_builddir&;t t
  16823. s&@abs_builddir@&$ac_abs_builddir&;t t
  16824. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16825. s&@INSTALL@&$ac_INSTALL&;t t
  16826. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16827. $ac_datarootdir_hack
  16828. "
  16829. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16830. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16831. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16832. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16833. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16834. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16836. which seems to be undefined. Please make sure it is defined" >&5
  16837. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16838. which seems to be undefined. Please make sure it is defined" >&2;}
  16839. rm -f "$ac_tmp/stdin"
  16840. case $ac_file in
  16841. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16842. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16843. esac \
  16844. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16845. ;;
  16846. :H)
  16847. #
  16848. # CONFIG_HEADER
  16849. #
  16850. if test x"$ac_file" != x-; then
  16851. {
  16852. $as_echo "/* $configure_input */" \
  16853. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16854. } >"$ac_tmp/config.h" \
  16855. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16856. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16857. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16858. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16859. else
  16860. rm -f "$ac_file"
  16861. mv "$ac_tmp/config.h" "$ac_file" \
  16862. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16863. fi
  16864. else
  16865. $as_echo "/* $configure_input */" \
  16866. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16867. || as_fn_error $? "could not create -" "$LINENO" 5
  16868. fi
  16869. # Compute "$ac_file"'s index in $config_headers.
  16870. _am_arg="$ac_file"
  16871. _am_stamp_count=1
  16872. for _am_header in $config_headers :; do
  16873. case $_am_header in
  16874. $_am_arg | $_am_arg:* )
  16875. break ;;
  16876. * )
  16877. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16878. esac
  16879. done
  16880. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16881. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16882. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16883. X"$_am_arg" : 'X\(//\)$' \| \
  16884. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16885. $as_echo X"$_am_arg" |
  16886. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16887. s//\1/
  16888. q
  16889. }
  16890. /^X\(\/\/\)[^/].*/{
  16891. s//\1/
  16892. q
  16893. }
  16894. /^X\(\/\/\)$/{
  16895. s//\1/
  16896. q
  16897. }
  16898. /^X\(\/\).*/{
  16899. s//\1/
  16900. q
  16901. }
  16902. s/.*/./; q'`/stamp-h$_am_stamp_count
  16903. ;;
  16904. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16905. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16906. ;;
  16907. esac
  16908. case $ac_file$ac_mode in
  16909. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16910. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16911. # are listed without --file. Let's play safe and only enable the eval
  16912. # if we detect the quoting.
  16913. case $CONFIG_FILES in
  16914. *\'*) eval set x "$CONFIG_FILES" ;;
  16915. *) set x $CONFIG_FILES ;;
  16916. esac
  16917. shift
  16918. for mf
  16919. do
  16920. # Strip MF so we end up with the name of the file.
  16921. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16922. # Check whether this is an Automake generated Makefile or not.
  16923. # We used to match only the files named 'Makefile.in', but
  16924. # some people rename them; so instead we look at the file content.
  16925. # Grep'ing the first line is not enough: some people post-process
  16926. # each Makefile.in and add a new line on top of each file to say so.
  16927. # Grep'ing the whole file is not good either: AIX grep has a line
  16928. # limit of 2048, but all sed's we know have understand at least 4000.
  16929. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16930. dirpart=`$as_dirname -- "$mf" ||
  16931. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16932. X"$mf" : 'X\(//\)[^/]' \| \
  16933. X"$mf" : 'X\(//\)$' \| \
  16934. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16935. $as_echo X"$mf" |
  16936. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16937. s//\1/
  16938. q
  16939. }
  16940. /^X\(\/\/\)[^/].*/{
  16941. s//\1/
  16942. q
  16943. }
  16944. /^X\(\/\/\)$/{
  16945. s//\1/
  16946. q
  16947. }
  16948. /^X\(\/\).*/{
  16949. s//\1/
  16950. q
  16951. }
  16952. s/.*/./; q'`
  16953. else
  16954. continue
  16955. fi
  16956. # Extract the definition of DEPDIR, am__include, and am__quote
  16957. # from the Makefile without running 'make'.
  16958. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16959. test -z "$DEPDIR" && continue
  16960. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16961. test -z "am__include" && continue
  16962. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16963. # Find all dependency output files, they are included files with
  16964. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16965. # simplest approach to changing $(DEPDIR) to its actual value in the
  16966. # expansion.
  16967. for file in `sed -n "
  16968. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16969. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  16970. # Make sure the directory exists.
  16971. test -f "$dirpart/$file" && continue
  16972. fdir=`$as_dirname -- "$file" ||
  16973. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16974. X"$file" : 'X\(//\)[^/]' \| \
  16975. X"$file" : 'X\(//\)$' \| \
  16976. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16977. $as_echo X"$file" |
  16978. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16979. s//\1/
  16980. q
  16981. }
  16982. /^X\(\/\/\)[^/].*/{
  16983. s//\1/
  16984. q
  16985. }
  16986. /^X\(\/\/\)$/{
  16987. s//\1/
  16988. q
  16989. }
  16990. /^X\(\/\).*/{
  16991. s//\1/
  16992. q
  16993. }
  16994. s/.*/./; q'`
  16995. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16996. # echo "creating $dirpart/$file"
  16997. echo '# dummy' > "$dirpart/$file"
  16998. done
  16999. done
  17000. }
  17001. ;;
  17002. "libtool":C)
  17003. # See if we are running on zsh, and set the options which allow our
  17004. # commands through without removal of \ escapes.
  17005. if test -n "${ZSH_VERSION+set}" ; then
  17006. setopt NO_GLOB_SUBST
  17007. fi
  17008. cfgfile="${ofile}T"
  17009. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  17010. $RM "$cfgfile"
  17011. cat <<_LT_EOF >> "$cfgfile"
  17012. #! $SHELL
  17013. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  17014. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  17015. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17016. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17017. #
  17018. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  17019. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  17020. # Foundation, Inc.
  17021. # Written by Gordon Matzigkeit, 1996
  17022. #
  17023. # This file is part of GNU Libtool.
  17024. #
  17025. # GNU Libtool is free software; you can redistribute it and/or
  17026. # modify it under the terms of the GNU General Public License as
  17027. # published by the Free Software Foundation; either version 2 of
  17028. # the License, or (at your option) any later version.
  17029. #
  17030. # As a special exception to the GNU General Public License,
  17031. # if you distribute this file as part of a program or library that
  17032. # is built using GNU Libtool, you may include this file under the
  17033. # same distribution terms that you use for the rest of that program.
  17034. #
  17035. # GNU Libtool is distributed in the hope that it will be useful,
  17036. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17037. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17038. # GNU General Public License for more details.
  17039. #
  17040. # You should have received a copy of the GNU General Public License
  17041. # along with GNU Libtool; see the file COPYING. If not, a copy
  17042. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  17043. # obtained by writing to the Free Software Foundation, Inc.,
  17044. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17045. # The names of the tagged configurations supported by this script.
  17046. available_tags=""
  17047. # ### BEGIN LIBTOOL CONFIG
  17048. # Whether or not to build static libraries.
  17049. build_old_libs=$enable_static
  17050. # Whether or not to build shared libraries.
  17051. build_libtool_libs=$enable_shared
  17052. # Assembler program.
  17053. AS=$lt_AS
  17054. # DLL creation program.
  17055. DLLTOOL=$lt_DLLTOOL
  17056. # Object dumper program.
  17057. OBJDUMP=$lt_OBJDUMP
  17058. # Which release of libtool.m4 was used?
  17059. macro_version=$macro_version
  17060. macro_revision=$macro_revision
  17061. # What type of objects to build.
  17062. pic_mode=$pic_mode
  17063. # Whether or not to optimize for fast installation.
  17064. fast_install=$enable_fast_install
  17065. # Shell to use when invoking shell scripts.
  17066. SHELL=$lt_SHELL
  17067. # An echo program that protects backslashes.
  17068. ECHO=$lt_ECHO
  17069. # The PATH separator for the build system.
  17070. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  17071. # The host system.
  17072. host_alias=$host_alias
  17073. host=$host
  17074. host_os=$host_os
  17075. # The build system.
  17076. build_alias=$build_alias
  17077. build=$build
  17078. build_os=$build_os
  17079. # A sed program that does not truncate output.
  17080. SED=$lt_SED
  17081. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17082. Xsed="\$SED -e 1s/^X//"
  17083. # A grep program that handles long lines.
  17084. GREP=$lt_GREP
  17085. # An ERE matcher.
  17086. EGREP=$lt_EGREP
  17087. # A literal string matcher.
  17088. FGREP=$lt_FGREP
  17089. # A BSD- or MS-compatible name lister.
  17090. NM=$lt_NM
  17091. # Whether we need soft or hard links.
  17092. LN_S=$lt_LN_S
  17093. # What is the maximum length of a command?
  17094. max_cmd_len=$max_cmd_len
  17095. # Object file suffix (normally "o").
  17096. objext=$ac_objext
  17097. # Executable file suffix (normally "").
  17098. exeext=$exeext
  17099. # whether the shell understands "unset".
  17100. lt_unset=$lt_unset
  17101. # turn spaces into newlines.
  17102. SP2NL=$lt_lt_SP2NL
  17103. # turn newlines into spaces.
  17104. NL2SP=$lt_lt_NL2SP
  17105. # convert \$build file names to \$host format.
  17106. to_host_file_cmd=$lt_cv_to_host_file_cmd
  17107. # convert \$build files to toolchain format.
  17108. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  17109. # Method to check whether dependent libraries are shared objects.
  17110. deplibs_check_method=$lt_deplibs_check_method
  17111. # Command to use when deplibs_check_method = "file_magic".
  17112. file_magic_cmd=$lt_file_magic_cmd
  17113. # How to find potential files when deplibs_check_method = "file_magic".
  17114. file_magic_glob=$lt_file_magic_glob
  17115. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  17116. want_nocaseglob=$lt_want_nocaseglob
  17117. # Command to associate shared and link libraries.
  17118. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  17119. # The archiver.
  17120. AR=$lt_AR
  17121. # Flags to create an archive.
  17122. AR_FLAGS=$lt_AR_FLAGS
  17123. # How to feed a file listing to the archiver.
  17124. archiver_list_spec=$lt_archiver_list_spec
  17125. # A symbol stripping program.
  17126. STRIP=$lt_STRIP
  17127. # Commands used to install an old-style archive.
  17128. RANLIB=$lt_RANLIB
  17129. old_postinstall_cmds=$lt_old_postinstall_cmds
  17130. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17131. # Whether to use a lock for old archive extraction.
  17132. lock_old_archive_extraction=$lock_old_archive_extraction
  17133. # A C compiler.
  17134. LTCC=$lt_CC
  17135. # LTCC compiler flags.
  17136. LTCFLAGS=$lt_CFLAGS
  17137. # Take the output of nm and produce a listing of raw symbols and C names.
  17138. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17139. # Transform the output of nm in a proper C declaration.
  17140. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17141. # Transform the output of nm in a C name address pair.
  17142. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17143. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17144. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17145. # Specify filename containing input files for \$NM.
  17146. nm_file_list_spec=$lt_nm_file_list_spec
  17147. # The root where to search for dependent libraries,and in which our libraries should be installed.
  17148. lt_sysroot=$lt_sysroot
  17149. # The name of the directory that contains temporary libtool files.
  17150. objdir=$objdir
  17151. # Used to examine libraries when file_magic_cmd begins with "file".
  17152. MAGIC_CMD=$MAGIC_CMD
  17153. # Must we lock files when doing compilation?
  17154. need_locks=$lt_need_locks
  17155. # Manifest tool.
  17156. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  17157. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17158. DSYMUTIL=$lt_DSYMUTIL
  17159. # Tool to change global to local symbols on Mac OS X.
  17160. NMEDIT=$lt_NMEDIT
  17161. # Tool to manipulate fat objects and archives on Mac OS X.
  17162. LIPO=$lt_LIPO
  17163. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17164. OTOOL=$lt_OTOOL
  17165. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17166. OTOOL64=$lt_OTOOL64
  17167. # Old archive suffix (normally "a").
  17168. libext=$libext
  17169. # Shared library suffix (normally ".so").
  17170. shrext_cmds=$lt_shrext_cmds
  17171. # The commands to extract the exported symbol list from a shared archive.
  17172. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17173. # Variables whose values should be saved in libtool wrapper scripts and
  17174. # restored at link time.
  17175. variables_saved_for_relink=$lt_variables_saved_for_relink
  17176. # Do we need the "lib" prefix for modules?
  17177. need_lib_prefix=$need_lib_prefix
  17178. # Do we need a version for libraries?
  17179. need_version=$need_version
  17180. # Library versioning type.
  17181. version_type=$version_type
  17182. # Shared library runtime path variable.
  17183. runpath_var=$runpath_var
  17184. # Shared library path variable.
  17185. shlibpath_var=$shlibpath_var
  17186. # Is shlibpath searched before the hard-coded library search path?
  17187. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17188. # Format of library name prefix.
  17189. libname_spec=$lt_libname_spec
  17190. # List of archive names. First name is the real one, the rest are links.
  17191. # The last name is the one that the linker finds with -lNAME
  17192. library_names_spec=$lt_library_names_spec
  17193. # The coded name of the library, if different from the real name.
  17194. soname_spec=$lt_soname_spec
  17195. # Permission mode override for installation of shared libraries.
  17196. install_override_mode=$lt_install_override_mode
  17197. # Command to use after installation of a shared archive.
  17198. postinstall_cmds=$lt_postinstall_cmds
  17199. # Command to use after uninstallation of a shared archive.
  17200. postuninstall_cmds=$lt_postuninstall_cmds
  17201. # Commands used to finish a libtool library installation in a directory.
  17202. finish_cmds=$lt_finish_cmds
  17203. # As "finish_cmds", except a single script fragment to be evaled but
  17204. # not shown.
  17205. finish_eval=$lt_finish_eval
  17206. # Whether we should hardcode library paths into libraries.
  17207. hardcode_into_libs=$hardcode_into_libs
  17208. # Compile-time system search path for libraries.
  17209. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17210. # Run-time system search path for libraries.
  17211. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17212. # Whether dlopen is supported.
  17213. dlopen_support=$enable_dlopen
  17214. # Whether dlopen of programs is supported.
  17215. dlopen_self=$enable_dlopen_self
  17216. # Whether dlopen of statically linked programs is supported.
  17217. dlopen_self_static=$enable_dlopen_self_static
  17218. # Commands to strip libraries.
  17219. old_striplib=$lt_old_striplib
  17220. striplib=$lt_striplib
  17221. # The linker used to build libraries.
  17222. LD=$lt_LD
  17223. # How to create reloadable object files.
  17224. reload_flag=$lt_reload_flag
  17225. reload_cmds=$lt_reload_cmds
  17226. # Commands used to build an old-style archive.
  17227. old_archive_cmds=$lt_old_archive_cmds
  17228. # A language specific compiler.
  17229. CC=$lt_compiler
  17230. # Is the compiler the GNU compiler?
  17231. with_gcc=$GCC
  17232. # Compiler flag to turn off builtin functions.
  17233. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17234. # Additional compiler flags for building library objects.
  17235. pic_flag=$lt_lt_prog_compiler_pic
  17236. # How to pass a linker flag through the compiler.
  17237. wl=$lt_lt_prog_compiler_wl
  17238. # Compiler flag to prevent dynamic linking.
  17239. link_static_flag=$lt_lt_prog_compiler_static
  17240. # Does compiler simultaneously support -c and -o options?
  17241. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17242. # Whether or not to add -lc for building shared libraries.
  17243. build_libtool_need_lc=$archive_cmds_need_lc
  17244. # Whether or not to disallow shared libs when runtime libs are static.
  17245. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17246. # Compiler flag to allow reflexive dlopens.
  17247. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17248. # Compiler flag to generate shared objects directly from archives.
  17249. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17250. # Whether the compiler copes with passing no objects directly.
  17251. compiler_needs_object=$lt_compiler_needs_object
  17252. # Create an old-style archive from a shared archive.
  17253. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17254. # Create a temporary old-style archive to link instead of a shared archive.
  17255. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17256. # Commands used to build a shared archive.
  17257. archive_cmds=$lt_archive_cmds
  17258. archive_expsym_cmds=$lt_archive_expsym_cmds
  17259. # Commands used to build a loadable module if different from building
  17260. # a shared archive.
  17261. module_cmds=$lt_module_cmds
  17262. module_expsym_cmds=$lt_module_expsym_cmds
  17263. # Whether we are building with GNU ld or not.
  17264. with_gnu_ld=$lt_with_gnu_ld
  17265. # Flag that allows shared libraries with undefined symbols to be built.
  17266. allow_undefined_flag=$lt_allow_undefined_flag
  17267. # Flag that enforces no undefined symbols.
  17268. no_undefined_flag=$lt_no_undefined_flag
  17269. # Flag to hardcode \$libdir into a binary during linking.
  17270. # This must work even if \$libdir does not exist
  17271. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17272. # Whether we need a single "-rpath" flag with a separated argument.
  17273. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17274. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17275. # DIR into the resulting binary.
  17276. hardcode_direct=$hardcode_direct
  17277. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17278. # DIR into the resulting binary and the resulting library dependency is
  17279. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17280. # library is relocated.
  17281. hardcode_direct_absolute=$hardcode_direct_absolute
  17282. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17283. # into the resulting binary.
  17284. hardcode_minus_L=$hardcode_minus_L
  17285. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17286. # into the resulting binary.
  17287. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17288. # Set to "yes" if building a shared library automatically hardcodes DIR
  17289. # into the library and all subsequent libraries and executables linked
  17290. # against it.
  17291. hardcode_automatic=$hardcode_automatic
  17292. # Set to yes if linker adds runtime paths of dependent libraries
  17293. # to runtime path list.
  17294. inherit_rpath=$inherit_rpath
  17295. # Whether libtool must link a program against all its dependency libraries.
  17296. link_all_deplibs=$link_all_deplibs
  17297. # Set to "yes" if exported symbols are required.
  17298. always_export_symbols=$always_export_symbols
  17299. # The commands to list exported symbols.
  17300. export_symbols_cmds=$lt_export_symbols_cmds
  17301. # Symbols that should not be listed in the preloaded symbols.
  17302. exclude_expsyms=$lt_exclude_expsyms
  17303. # Symbols that must always be exported.
  17304. include_expsyms=$lt_include_expsyms
  17305. # Commands necessary for linking programs (against libraries) with templates.
  17306. prelink_cmds=$lt_prelink_cmds
  17307. # Commands necessary for finishing linking programs.
  17308. postlink_cmds=$lt_postlink_cmds
  17309. # Specify filename containing input files.
  17310. file_list_spec=$lt_file_list_spec
  17311. # How to hardcode a shared library path into an executable.
  17312. hardcode_action=$hardcode_action
  17313. # ### END LIBTOOL CONFIG
  17314. _LT_EOF
  17315. case $host_os in
  17316. aix3*)
  17317. cat <<\_LT_EOF >> "$cfgfile"
  17318. # AIX sometimes has problems with the GCC collect2 program. For some
  17319. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17320. # vanish in a puff of smoke.
  17321. if test "X${COLLECT_NAMES+set}" != Xset; then
  17322. COLLECT_NAMES=
  17323. export COLLECT_NAMES
  17324. fi
  17325. _LT_EOF
  17326. ;;
  17327. esac
  17328. ltmain="$ac_aux_dir/ltmain.sh"
  17329. # We use sed instead of cat because bash on DJGPP gets confused if
  17330. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17331. # text mode, it properly converts lines to CR/LF. This bash problem
  17332. # is reportedly fixed, but why not run on old versions too?
  17333. sed '$q' "$ltmain" >> "$cfgfile" \
  17334. || (rm -f "$cfgfile"; exit 1)
  17335. if test x"$xsi_shell" = xyes; then
  17336. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  17337. func_dirname ()\
  17338. {\
  17339. \ case ${1} in\
  17340. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  17341. \ * ) func_dirname_result="${3}" ;;\
  17342. \ esac\
  17343. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  17344. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17345. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17346. test 0 -eq $? || _lt_function_replace_fail=:
  17347. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  17348. func_basename ()\
  17349. {\
  17350. \ func_basename_result="${1##*/}"\
  17351. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  17352. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17353. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17354. test 0 -eq $? || _lt_function_replace_fail=:
  17355. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  17356. func_dirname_and_basename ()\
  17357. {\
  17358. \ case ${1} in\
  17359. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  17360. \ * ) func_dirname_result="${3}" ;;\
  17361. \ esac\
  17362. \ func_basename_result="${1##*/}"\
  17363. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  17364. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17365. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17366. test 0 -eq $? || _lt_function_replace_fail=:
  17367. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  17368. func_stripname ()\
  17369. {\
  17370. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  17371. \ # positional parameters, so assign one to ordinary parameter first.\
  17372. \ func_stripname_result=${3}\
  17373. \ func_stripname_result=${func_stripname_result#"${1}"}\
  17374. \ func_stripname_result=${func_stripname_result%"${2}"}\
  17375. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  17376. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17377. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17378. test 0 -eq $? || _lt_function_replace_fail=:
  17379. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  17380. func_split_long_opt ()\
  17381. {\
  17382. \ func_split_long_opt_name=${1%%=*}\
  17383. \ func_split_long_opt_arg=${1#*=}\
  17384. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  17385. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17386. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17387. test 0 -eq $? || _lt_function_replace_fail=:
  17388. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  17389. func_split_short_opt ()\
  17390. {\
  17391. \ func_split_short_opt_arg=${1#??}\
  17392. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  17393. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  17394. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17395. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17396. test 0 -eq $? || _lt_function_replace_fail=:
  17397. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  17398. func_lo2o ()\
  17399. {\
  17400. \ case ${1} in\
  17401. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  17402. \ *) func_lo2o_result=${1} ;;\
  17403. \ esac\
  17404. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  17405. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17406. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17407. test 0 -eq $? || _lt_function_replace_fail=:
  17408. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  17409. func_xform ()\
  17410. {\
  17411. func_xform_result=${1%.*}.lo\
  17412. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  17413. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17414. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17415. test 0 -eq $? || _lt_function_replace_fail=:
  17416. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  17417. func_arith ()\
  17418. {\
  17419. func_arith_result=$(( $* ))\
  17420. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  17421. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17422. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17423. test 0 -eq $? || _lt_function_replace_fail=:
  17424. sed -e '/^func_len ()$/,/^} # func_len /c\
  17425. func_len ()\
  17426. {\
  17427. func_len_result=${#1}\
  17428. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  17429. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17430. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17431. test 0 -eq $? || _lt_function_replace_fail=:
  17432. fi
  17433. if test x"$lt_shell_append" = xyes; then
  17434. sed -e '/^func_append ()$/,/^} # func_append /c\
  17435. func_append ()\
  17436. {\
  17437. eval "${1}+=\\${2}"\
  17438. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  17439. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17440. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17441. test 0 -eq $? || _lt_function_replace_fail=:
  17442. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  17443. func_append_quoted ()\
  17444. {\
  17445. \ func_quote_for_eval "${2}"\
  17446. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  17447. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  17448. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17449. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17450. test 0 -eq $? || _lt_function_replace_fail=:
  17451. # Save a `func_append' function call where possible by direct use of '+='
  17452. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  17453. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17454. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17455. test 0 -eq $? || _lt_function_replace_fail=:
  17456. else
  17457. # Save a `func_append' function call even when '+=' is not available
  17458. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  17459. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17460. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17461. test 0 -eq $? || _lt_function_replace_fail=:
  17462. fi
  17463. if test x"$_lt_function_replace_fail" = x":"; then
  17464. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  17465. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  17466. fi
  17467. mv -f "$cfgfile" "$ofile" ||
  17468. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17469. chmod +x "$ofile"
  17470. ;;
  17471. esac
  17472. done # for ac_tag
  17473. as_fn_exit 0
  17474. _ACEOF
  17475. ac_clean_files=$ac_clean_files_save
  17476. test $ac_write_fail = 0 ||
  17477. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17478. # configure is writing to config.log, and then calls config.status.
  17479. # config.status does its own redirection, appending to config.log.
  17480. # Unfortunately, on DOS this fails, as config.log is still kept open
  17481. # by configure, so config.status won't be able to write to it; its
  17482. # output is simply discarded. So we exec the FD to /dev/null,
  17483. # effectively closing config.log, so it can be properly (re)opened and
  17484. # appended to by config.status. When coming back to configure, we
  17485. # need to make the FD available again.
  17486. if test "$no_create" != yes; then
  17487. ac_cs_success=:
  17488. ac_config_status_args=
  17489. test "$silent" = yes &&
  17490. ac_config_status_args="$ac_config_status_args --quiet"
  17491. exec 5>/dev/null
  17492. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17493. exec 5>>config.log
  17494. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17495. # would make configure fail if this is the last instruction.
  17496. $ac_cs_success || as_fn_exit 1
  17497. fi
  17498. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17500. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17501. fi
  17502. echo "
  17503. $PACKAGE_NAME $PACKAGE_VERSION
  17504. Install path ............ $prefix
  17505. CPU Optimization ........ $cpu_type
  17506. Compiler Optimization ... $with_optimization
  17507. Gapless Support ......... $gapless
  17508. Debugging ............... $debugging
  17509. Seek table size ......... $seektable
  17510. FIFO support ............ $fifo
  17511. Buffer .................. $buffer
  17512. Network (http streams) .. $network
  17513. Network Sockets ......... $network_type
  17514. IPv6 (getaddrinfo) ...... $ipv6"
  17515. if test x"$LARGEFILE_BITS" = x; then
  17516. echo " File offsets ............ default"
  17517. else
  17518. echo " File offsets ............ $LARGEFILE_BITS"
  17519. echo " The lib will (try to) support default offset size, too."
  17520. fi
  17521. echo " LFS alias symbols ....... $lfs_alias ($LFS_ALIAS_BITS)"
  17522. echo -n "
  17523. Core libmpg123 features:
  17524. Integer conversion ...... $integers
  17525. New/old WRITE_SAMPLE .... $newoldwritesample
  17526. Layer I ................. $layer1
  17527. Layer II ................ $layer2
  17528. Layer III ............... $layer3
  17529. NtoM resampling ......... $ntom
  17530. downsampled decoding .... $downsample
  17531. Feeder/buffered input ... $feeder
  17532. ID3v2 parsing ........... $id3v2
  17533. String API .............. $string
  17534. ICY parsing/conversion .. $icy
  17535. Error/warning messages .. $messages
  17536. Win32 Unicode File Open.. $win32_unicode
  17537. Feature Report Function.. $feature_report
  17538. Output formats (nofpu will disable all but 16 or 8 bit!):
  17539. 8 bit integer ........... $int8
  17540. 16 bit integer .......... $int16
  17541. 32/24 bit integer ....... $int32
  17542. real (32 bit float) ..... $real
  17543. Note: Disabling core features is not commonly done and some combinations might not build/work. If you encounter such a case, help yourself (and provide a patch) or just poke the maintainers.
  17544. "
  17545. # just an empty line
  17546. echo
  17547. echo " Modules ................. $modules"
  17548. echo " Module suffix ........... $with_module_suffix"
  17549. echo " Checked audio modules ... $check_modules
  17550. Detected audio support ..$output_modules
  17551. Default output module ... $default_output_module
  17552. "
  17553. if test x"$modules" = xdisabled; then
  17554. echo "The _single_ active output module is being statically linked in.
  17555. "
  17556. fi
  17557. if test x"$with_optimization" = x0; then
  17558. echo "No optimization flags chosen, make sure you have something basic in your CFLAGS at least...
  17559. "
  17560. fi
  17561. if test x"$debugging" = xenabled; then
  17562. echo "CFLAGS='$CFLAGS'"
  17563. echo "LIBS='$LIBS'"
  17564. else
  17565. echo "Next type 'make' and then 'make install'."
  17566. fi